You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by la...@apache.org on 2026/06/25 08:58:59 UTC
(airavata-custos) 01/01: Remove AMIE protobuf stubs and processing_events.payload column
This is an automated email from the ASF dual-hosted git repository.
lahirujayathilake pushed a commit to branch access-amie
in repository https://gitbox.apache.org/repos/asf/airavata-custos.git
commit 40ddd13c7ad2d481ecb558bfb61f2f006c443c08
Author: lahiruj <la...@gmail.com>
AuthorDate: Thu Jun 25 04:58:47 2026 -0400
Remove AMIE protobuf stubs and processing_events.payload column
---
README.md | 1 -
.../db/migrations/000001_initial_schema.up.sql | 1 -
connectors/ACCESS/AMIE-Processor/model/event.go | 1 -
.../ACCESS/AMIE-Processor/proto/amie_packets.proto | 171 ---
.../AMIE-Processor/proto/gen/amie_packets.pb.go | 1601 --------------------
.../AMIE-Processor/proto/gen/internal_events.pb.go | 1493 ------------------
.../AMIE-Processor/proto/internal_events.proto | 155 --
.../ACCESS/AMIE-Processor/store/event_store.go | 14 +-
.../ACCESS/AMIE-Processor/store/packet_store.go | 2 +-
connectors/ACCESS/AMIE-Processor/worker/poller.go | 6 -
.../worker/processor_integration_test.go | 8 +-
.../ACCESS/AMIE-Processor/worker/proto_utils.go | 44 -
.../AMIE-Processor/worker/proto_utils_test.go | 84 -
go.mod | 4 +-
14 files changed, 14 insertions(+), 3571 deletions(-)
diff --git a/README.md b/README.md
index deec0d77a..b9e8d502a 100644
--- a/README.md
+++ b/README.md
@@ -61,7 +61,6 @@ The shape generalizes: a new connector that needs to record connector-specific r
* Go 1.24+
* Docker and Docker Compose
-* `protoc` and `protoc-gen-go` (only needed when regenerating proto sources)
## Quick Start
diff --git a/connectors/ACCESS/AMIE-Processor/db/migrations/000001_initial_schema.up.sql b/connectors/ACCESS/AMIE-Processor/db/migrations/000001_initial_schema.up.sql
index 055b68ae9..09a033f19 100644
--- a/connectors/ACCESS/AMIE-Processor/db/migrations/000001_initial_schema.up.sql
+++ b/connectors/ACCESS/AMIE-Processor/db/migrations/000001_initial_schema.up.sql
@@ -43,7 +43,6 @@ CREATE TABLE IF NOT EXISTS amie_processing_events
type VARCHAR(64) NOT NULL,
status VARCHAR(32) NOT NULL,
attempts INT NOT NULL DEFAULT 0,
- payload LONGBLOB NOT NULL,
created_at TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
started_at TIMESTAMP(6) NULL,
finished_at TIMESTAMP(6) NULL,
diff --git a/connectors/ACCESS/AMIE-Processor/model/event.go b/connectors/ACCESS/AMIE-Processor/model/event.go
index 8ed91fde7..3dc050a8d 100644
--- a/connectors/ACCESS/AMIE-Processor/model/event.go
+++ b/connectors/ACCESS/AMIE-Processor/model/event.go
@@ -45,7 +45,6 @@ type ProcessingEvent struct {
Type ProcessingEventType `db:"type" json:"type"`
Status ProcessingStatus `db:"status" json:"status"`
Attempts int `db:"attempts" json:"attempts"`
- Payload []byte `db:"payload" json:"-"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
StartedAt *time.Time `db:"started_at" json:"started_at,omitempty"`
FinishedAt *time.Time `db:"finished_at" json:"finished_at,omitempty"`
diff --git a/connectors/ACCESS/AMIE-Processor/proto/amie_packets.proto b/connectors/ACCESS/AMIE-Processor/proto/amie_packets.proto
deleted file mode 100644
index 3e25ce8cc..000000000
--- a/connectors/ACCESS/AMIE-Processor/proto/amie_packets.proto
+++ /dev/null
@@ -1,171 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-syntax = "proto3";
-
-option go_package = "github.com/apache/airavata-custos/connectors/ACCESS/AMIE-Processor/proto/gen";
-
-package org.apache.custos.access.ci.service.v1;
-
-import "google/protobuf/struct.proto";
-import "google/protobuf/timestamp.proto";
-
-// AMIE packet types that the service must handle from the Client API
-enum PacketType {
- PACKET_TYPE_UNSPECIFIED = 0;
- REQUEST_PROJECT_CREATE = 1;
- REQUEST_PROJECT_INACTIVATE = 2;
- REQUEST_PROJECT_REACTIVATE = 3;
- REQUEST_ACCOUNT_CREATE = 4;
- REQUEST_ACCOUNT_INACTIVATE = 5;
- REQUEST_ACCOUNT_REACTIVATE = 6;
- REQUEST_USER_MODIFY = 7;
- REQUEST_PERSON_MERGE = 8;
-}
-
-// Expected reply descriptor from the AMIE header
-message ExpectedReply {
- string type = 1;
- int64 timeout = 2;
-}
-
-// Packet header as returned by the Client API
-message PacketHeader {
- repeated ExpectedReply expected_reply_list = 1;
- int64 packet_id = 2;
- int64 trans_rec_id = 3;
- int64 transaction_id = 4;
- string remote_site_name = 5;
- string local_site_name = 6;
- string originating_site_name = 7;
- bool outgoing_flag = 8;
- string transaction_state = 9;
- int64 packet_rec_id = 10;
- string client_state = 11;
- string packet_state = 12;
- google.protobuf.Timestamp packet_timestamp = 13;
- google.protobuf.Struct client_json = 14;
-}
-
-message RequestProjectCreate {
- string allocated_resource = 1;
- repeated string pi_requested_login_list = 2;
- repeated string resource_list = 3;
- string service_units_allocated = 4;
- string start_date = 5;
- string end_date = 6;
- string project_id = 7;
- string pi_person_id = 8;
- string pi_global_id = 9;
- google.protobuf.Struct extra_fields = 99;
-}
-
-message RequestProjectInactivate {
- string project_id = 1;
- string person_id = 2;
- repeated string resource_list = 3;
- string allocated_resource = 4;
- string comment = 5;
- string start_date = 6;
- string end_date = 7;
- string service_units_allocated = 8;
- string service_units_remaining = 9;
- google.protobuf.Struct extra_fields = 99;
-}
-
-message RequestProjectReactivate {
- string project_id = 1;
- string person_id = 2;
- repeated string resource_list = 3;
- string allocated_resource = 4;
- string start_date = 5;
- string end_date = 6;
- string service_units_allocated = 7;
- string service_units_remaining = 8;
- string grant_number = 9;
- google.protobuf.Struct extra_fields = 99;
-}
-
-message RequestAccountCreate {
- string project_id = 1;
- string person_id = 2;
- repeated string resource_list = 3;
- string allocated_resource = 4;
- repeated string user_requested_login_list = 5;
- google.protobuf.Struct extra_fields = 99;
-}
-
-message RequestAccountInactivate {
- string project_id = 1;
- string person_id = 2;
- repeated string resource_list = 3;
- string allocated_resource = 4;
- string comment = 5;
- google.protobuf.Struct extra_fields = 99;
-}
-
-message RequestAccountReactivate {
- string project_id = 1;
- string person_id = 2;
- repeated string resource_list = 3;
- string allocated_resource = 4;
- google.protobuf.Struct extra_fields = 99;
-}
-
-message RequestUserModify {
- string action_type = 1;
- string person_id = 2;
- string first_name = 3;
- string middle_name = 4;
- string last_name = 5;
- string title = 6;
- string email = 7;
- string organization = 8;
- string org_code = 9;
- string business_phone_number = 10;
- string street_address = 11;
- string street_address2 = 12;
- string city = 13;
- string state = 14;
- string zip = 15;
- string country = 16;
- repeated string dn_list = 17;
- google.protobuf.Struct extra_fields = 99;
-}
-
-message RequestPersonMerge {
- string surviving_person_id = 1;
- string retiring_person_id = 2;
- google.protobuf.Struct extra_fields = 99;
-}
-
-message Packet {
- PacketType type = 1;
- PacketHeader header = 2;
- oneof body {
- RequestProjectCreate request_project_create = 10;
- RequestProjectInactivate request_project_inactivate = 11;
- RequestProjectReactivate request_project_reactivate = 12;
- RequestAccountCreate request_account_create = 13;
- RequestAccountInactivate request_account_inactivate = 14;
- RequestAccountReactivate request_account_reactivate = 15;
- RequestUserModify request_user_modify = 16;
- RequestPersonMerge request_person_merge = 17;
- google.protobuf.Struct unknown_body = 50;
- }
- string raw_json_payload = 98;
-}
diff --git a/connectors/ACCESS/AMIE-Processor/proto/gen/amie_packets.pb.go b/connectors/ACCESS/AMIE-Processor/proto/gen/amie_packets.pb.go
deleted file mode 100644
index dfcedf8fa..000000000
--- a/connectors/ACCESS/AMIE-Processor/proto/gen/amie_packets.pb.go
+++ /dev/null
@@ -1,1601 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.11
-// protoc v7.34.1
-// source: amie_packets.proto
-
-package gen
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- structpb "google.golang.org/protobuf/types/known/structpb"
- timestamppb "google.golang.org/protobuf/types/known/timestamppb"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-// AMIE packet types that the service must handle from the Client API
-type PacketType int32
-
-const (
- PacketType_PACKET_TYPE_UNSPECIFIED PacketType = 0
- PacketType_REQUEST_PROJECT_CREATE PacketType = 1
- PacketType_REQUEST_PROJECT_INACTIVATE PacketType = 2
- PacketType_REQUEST_PROJECT_REACTIVATE PacketType = 3
- PacketType_REQUEST_ACCOUNT_CREATE PacketType = 4
- PacketType_REQUEST_ACCOUNT_INACTIVATE PacketType = 5
- PacketType_REQUEST_ACCOUNT_REACTIVATE PacketType = 6
- PacketType_REQUEST_USER_MODIFY PacketType = 7
- PacketType_REQUEST_PERSON_MERGE PacketType = 8
-)
-
-// Enum value maps for PacketType.
-var (
- PacketType_name = map[int32]string{
- 0: "PACKET_TYPE_UNSPECIFIED",
- 1: "REQUEST_PROJECT_CREATE",
- 2: "REQUEST_PROJECT_INACTIVATE",
- 3: "REQUEST_PROJECT_REACTIVATE",
- 4: "REQUEST_ACCOUNT_CREATE",
- 5: "REQUEST_ACCOUNT_INACTIVATE",
- 6: "REQUEST_ACCOUNT_REACTIVATE",
- 7: "REQUEST_USER_MODIFY",
- 8: "REQUEST_PERSON_MERGE",
- }
- PacketType_value = map[string]int32{
- "PACKET_TYPE_UNSPECIFIED": 0,
- "REQUEST_PROJECT_CREATE": 1,
- "REQUEST_PROJECT_INACTIVATE": 2,
- "REQUEST_PROJECT_REACTIVATE": 3,
- "REQUEST_ACCOUNT_CREATE": 4,
- "REQUEST_ACCOUNT_INACTIVATE": 5,
- "REQUEST_ACCOUNT_REACTIVATE": 6,
- "REQUEST_USER_MODIFY": 7,
- "REQUEST_PERSON_MERGE": 8,
- }
-)
-
-func (x PacketType) Enum() *PacketType {
- p := new(PacketType)
- *p = x
- return p
-}
-
-func (x PacketType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
-}
-
-func (PacketType) Descriptor() protoreflect.EnumDescriptor {
- return file_amie_packets_proto_enumTypes[0].Descriptor()
-}
-
-func (PacketType) Type() protoreflect.EnumType {
- return &file_amie_packets_proto_enumTypes[0]
-}
-
-func (x PacketType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
-}
-
-// Deprecated: Use PacketType.Descriptor instead.
-func (PacketType) EnumDescriptor() ([]byte, []int) {
- return file_amie_packets_proto_rawDescGZIP(), []int{0}
-}
-
-// Expected reply descriptor from the AMIE header
-type ExpectedReply struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
- Timeout int64 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ExpectedReply) Reset() {
- *x = ExpectedReply{}
- mi := &file_amie_packets_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ExpectedReply) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ExpectedReply) ProtoMessage() {}
-
-func (x *ExpectedReply) ProtoReflect() protoreflect.Message {
- mi := &file_amie_packets_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ExpectedReply.ProtoReflect.Descriptor instead.
-func (*ExpectedReply) Descriptor() ([]byte, []int) {
- return file_amie_packets_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *ExpectedReply) GetType() string {
- if x != nil {
- return x.Type
- }
- return ""
-}
-
-func (x *ExpectedReply) GetTimeout() int64 {
- if x != nil {
- return x.Timeout
- }
- return 0
-}
-
-// Packet header as returned by the Client API
-type PacketHeader struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ExpectedReplyList []*ExpectedReply `protobuf:"bytes,1,rep,name=expected_reply_list,json=expectedReplyList,proto3" json:"expected_reply_list,omitempty"`
- PacketId int64 `protobuf:"varint,2,opt,name=packet_id,json=packetId,proto3" json:"packet_id,omitempty"`
- TransRecId int64 `protobuf:"varint,3,opt,name=trans_rec_id,json=transRecId,proto3" json:"trans_rec_id,omitempty"`
- TransactionId int64 `protobuf:"varint,4,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
- RemoteSiteName string `protobuf:"bytes,5,opt,name=remote_site_name,json=remoteSiteName,proto3" json:"remote_site_name,omitempty"`
- LocalSiteName string `protobuf:"bytes,6,opt,name=local_site_name,json=localSiteName,proto3" json:"local_site_name,omitempty"`
- OriginatingSiteName string `protobuf:"bytes,7,opt,name=originating_site_name,json=originatingSiteName,proto3" json:"originating_site_name,omitempty"`
- OutgoingFlag bool `protobuf:"varint,8,opt,name=outgoing_flag,json=outgoingFlag,proto3" json:"outgoing_flag,omitempty"`
- TransactionState string `protobuf:"bytes,9,opt,name=transaction_state,json=transactionState,proto3" json:"transaction_state,omitempty"`
- PacketRecId int64 `protobuf:"varint,10,opt,name=packet_rec_id,json=packetRecId,proto3" json:"packet_rec_id,omitempty"`
- ClientState string `protobuf:"bytes,11,opt,name=client_state,json=clientState,proto3" json:"client_state,omitempty"`
- PacketState string `protobuf:"bytes,12,opt,name=packet_state,json=packetState,proto3" json:"packet_state,omitempty"`
- PacketTimestamp *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=packet_timestamp,json=packetTimestamp,proto3" json:"packet_timestamp,omitempty"`
- ClientJson *structpb.Struct `protobuf:"bytes,14,opt,name=client_json,json=clientJson,proto3" json:"client_json,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PacketHeader) Reset() {
- *x = PacketHeader{}
- mi := &file_amie_packets_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PacketHeader) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PacketHeader) ProtoMessage() {}
-
-func (x *PacketHeader) ProtoReflect() protoreflect.Message {
- mi := &file_amie_packets_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use PacketHeader.ProtoReflect.Descriptor instead.
-func (*PacketHeader) Descriptor() ([]byte, []int) {
- return file_amie_packets_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *PacketHeader) GetExpectedReplyList() []*ExpectedReply {
- if x != nil {
- return x.ExpectedReplyList
- }
- return nil
-}
-
-func (x *PacketHeader) GetPacketId() int64 {
- if x != nil {
- return x.PacketId
- }
- return 0
-}
-
-func (x *PacketHeader) GetTransRecId() int64 {
- if x != nil {
- return x.TransRecId
- }
- return 0
-}
-
-func (x *PacketHeader) GetTransactionId() int64 {
- if x != nil {
- return x.TransactionId
- }
- return 0
-}
-
-func (x *PacketHeader) GetRemoteSiteName() string {
- if x != nil {
- return x.RemoteSiteName
- }
- return ""
-}
-
-func (x *PacketHeader) GetLocalSiteName() string {
- if x != nil {
- return x.LocalSiteName
- }
- return ""
-}
-
-func (x *PacketHeader) GetOriginatingSiteName() string {
- if x != nil {
- return x.OriginatingSiteName
- }
- return ""
-}
-
-func (x *PacketHeader) GetOutgoingFlag() bool {
- if x != nil {
- return x.OutgoingFlag
- }
- return false
-}
-
-func (x *PacketHeader) GetTransactionState() string {
- if x != nil {
- return x.TransactionState
- }
- return ""
-}
-
-func (x *PacketHeader) GetPacketRecId() int64 {
- if x != nil {
- return x.PacketRecId
- }
- return 0
-}
-
-func (x *PacketHeader) GetClientState() string {
- if x != nil {
- return x.ClientState
- }
- return ""
-}
-
-func (x *PacketHeader) GetPacketState() string {
- if x != nil {
- return x.PacketState
- }
- return ""
-}
-
-func (x *PacketHeader) GetPacketTimestamp() *timestamppb.Timestamp {
- if x != nil {
- return x.PacketTimestamp
- }
- return nil
-}
-
-func (x *PacketHeader) GetClientJson() *structpb.Struct {
- if x != nil {
- return x.ClientJson
- }
- return nil
-}
-
-type RequestProjectCreate struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- AllocatedResource string `protobuf:"bytes,1,opt,name=allocated_resource,json=allocatedResource,proto3" json:"allocated_resource,omitempty"`
- PiRequestedLoginList []string `protobuf:"bytes,2,rep,name=pi_requested_login_list,json=piRequestedLoginList,proto3" json:"pi_requested_login_list,omitempty"`
- ResourceList []string `protobuf:"bytes,3,rep,name=resource_list,json=resourceList,proto3" json:"resource_list,omitempty"`
- ServiceUnitsAllocated string `protobuf:"bytes,4,opt,name=service_units_allocated,json=serviceUnitsAllocated,proto3" json:"service_units_allocated,omitempty"`
- StartDate string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
- EndDate string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
- ProjectId string `protobuf:"bytes,7,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
- PiPersonId string `protobuf:"bytes,8,opt,name=pi_person_id,json=piPersonId,proto3" json:"pi_person_id,omitempty"`
- PiGlobalId string `protobuf:"bytes,9,opt,name=pi_global_id,json=piGlobalId,proto3" json:"pi_global_id,omitempty"`
- ExtraFields *structpb.Struct `protobuf:"bytes,99,opt,name=extra_fields,json=extraFields,proto3" json:"extra_fields,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *RequestProjectCreate) Reset() {
- *x = RequestProjectCreate{}
- mi := &file_amie_packets_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *RequestProjectCreate) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*RequestProjectCreate) ProtoMessage() {}
-
-func (x *RequestProjectCreate) ProtoReflect() protoreflect.Message {
- mi := &file_amie_packets_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use RequestProjectCreate.ProtoReflect.Descriptor instead.
-func (*RequestProjectCreate) Descriptor() ([]byte, []int) {
- return file_amie_packets_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *RequestProjectCreate) GetAllocatedResource() string {
- if x != nil {
- return x.AllocatedResource
- }
- return ""
-}
-
-func (x *RequestProjectCreate) GetPiRequestedLoginList() []string {
- if x != nil {
- return x.PiRequestedLoginList
- }
- return nil
-}
-
-func (x *RequestProjectCreate) GetResourceList() []string {
- if x != nil {
- return x.ResourceList
- }
- return nil
-}
-
-func (x *RequestProjectCreate) GetServiceUnitsAllocated() string {
- if x != nil {
- return x.ServiceUnitsAllocated
- }
- return ""
-}
-
-func (x *RequestProjectCreate) GetStartDate() string {
- if x != nil {
- return x.StartDate
- }
- return ""
-}
-
-func (x *RequestProjectCreate) GetEndDate() string {
- if x != nil {
- return x.EndDate
- }
- return ""
-}
-
-func (x *RequestProjectCreate) GetProjectId() string {
- if x != nil {
- return x.ProjectId
- }
- return ""
-}
-
-func (x *RequestProjectCreate) GetPiPersonId() string {
- if x != nil {
- return x.PiPersonId
- }
- return ""
-}
-
-func (x *RequestProjectCreate) GetPiGlobalId() string {
- if x != nil {
- return x.PiGlobalId
- }
- return ""
-}
-
-func (x *RequestProjectCreate) GetExtraFields() *structpb.Struct {
- if x != nil {
- return x.ExtraFields
- }
- return nil
-}
-
-type RequestProjectInactivate struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
- PersonId string `protobuf:"bytes,2,opt,name=person_id,json=personId,proto3" json:"person_id,omitempty"`
- ResourceList []string `protobuf:"bytes,3,rep,name=resource_list,json=resourceList,proto3" json:"resource_list,omitempty"`
- AllocatedResource string `protobuf:"bytes,4,opt,name=allocated_resource,json=allocatedResource,proto3" json:"allocated_resource,omitempty"`
- Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"`
- StartDate string `protobuf:"bytes,6,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
- EndDate string `protobuf:"bytes,7,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
- ServiceUnitsAllocated string `protobuf:"bytes,8,opt,name=service_units_allocated,json=serviceUnitsAllocated,proto3" json:"service_units_allocated,omitempty"`
- ServiceUnitsRemaining string `protobuf:"bytes,9,opt,name=service_units_remaining,json=serviceUnitsRemaining,proto3" json:"service_units_remaining,omitempty"`
- ExtraFields *structpb.Struct `protobuf:"bytes,99,opt,name=extra_fields,json=extraFields,proto3" json:"extra_fields,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *RequestProjectInactivate) Reset() {
- *x = RequestProjectInactivate{}
- mi := &file_amie_packets_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *RequestProjectInactivate) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*RequestProjectInactivate) ProtoMessage() {}
-
-func (x *RequestProjectInactivate) ProtoReflect() protoreflect.Message {
- mi := &file_amie_packets_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use RequestProjectInactivate.ProtoReflect.Descriptor instead.
-func (*RequestProjectInactivate) Descriptor() ([]byte, []int) {
- return file_amie_packets_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *RequestProjectInactivate) GetProjectId() string {
- if x != nil {
- return x.ProjectId
- }
- return ""
-}
-
-func (x *RequestProjectInactivate) GetPersonId() string {
- if x != nil {
- return x.PersonId
- }
- return ""
-}
-
-func (x *RequestProjectInactivate) GetResourceList() []string {
- if x != nil {
- return x.ResourceList
- }
- return nil
-}
-
-func (x *RequestProjectInactivate) GetAllocatedResource() string {
- if x != nil {
- return x.AllocatedResource
- }
- return ""
-}
-
-func (x *RequestProjectInactivate) GetComment() string {
- if x != nil {
- return x.Comment
- }
- return ""
-}
-
-func (x *RequestProjectInactivate) GetStartDate() string {
- if x != nil {
- return x.StartDate
- }
- return ""
-}
-
-func (x *RequestProjectInactivate) GetEndDate() string {
- if x != nil {
- return x.EndDate
- }
- return ""
-}
-
-func (x *RequestProjectInactivate) GetServiceUnitsAllocated() string {
- if x != nil {
- return x.ServiceUnitsAllocated
- }
- return ""
-}
-
-func (x *RequestProjectInactivate) GetServiceUnitsRemaining() string {
- if x != nil {
- return x.ServiceUnitsRemaining
- }
- return ""
-}
-
-func (x *RequestProjectInactivate) GetExtraFields() *structpb.Struct {
- if x != nil {
- return x.ExtraFields
- }
- return nil
-}
-
-type RequestProjectReactivate struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
- PersonId string `protobuf:"bytes,2,opt,name=person_id,json=personId,proto3" json:"person_id,omitempty"`
- ResourceList []string `protobuf:"bytes,3,rep,name=resource_list,json=resourceList,proto3" json:"resource_list,omitempty"`
- AllocatedResource string `protobuf:"bytes,4,opt,name=allocated_resource,json=allocatedResource,proto3" json:"allocated_resource,omitempty"`
- StartDate string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
- EndDate string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
- ServiceUnitsAllocated string `protobuf:"bytes,7,opt,name=service_units_allocated,json=serviceUnitsAllocated,proto3" json:"service_units_allocated,omitempty"`
- ServiceUnitsRemaining string `protobuf:"bytes,8,opt,name=service_units_remaining,json=serviceUnitsRemaining,proto3" json:"service_units_remaining,omitempty"`
- GrantNumber string `protobuf:"bytes,9,opt,name=grant_number,json=grantNumber,proto3" json:"grant_number,omitempty"`
- ExtraFields *structpb.Struct `protobuf:"bytes,99,opt,name=extra_fields,json=extraFields,proto3" json:"extra_fields,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *RequestProjectReactivate) Reset() {
- *x = RequestProjectReactivate{}
- mi := &file_amie_packets_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *RequestProjectReactivate) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*RequestProjectReactivate) ProtoMessage() {}
-
-func (x *RequestProjectReactivate) ProtoReflect() protoreflect.Message {
- mi := &file_amie_packets_proto_msgTypes[4]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use RequestProjectReactivate.ProtoReflect.Descriptor instead.
-func (*RequestProjectReactivate) Descriptor() ([]byte, []int) {
- return file_amie_packets_proto_rawDescGZIP(), []int{4}
-}
-
-func (x *RequestProjectReactivate) GetProjectId() string {
- if x != nil {
- return x.ProjectId
- }
- return ""
-}
-
-func (x *RequestProjectReactivate) GetPersonId() string {
- if x != nil {
- return x.PersonId
- }
- return ""
-}
-
-func (x *RequestProjectReactivate) GetResourceList() []string {
- if x != nil {
- return x.ResourceList
- }
- return nil
-}
-
-func (x *RequestProjectReactivate) GetAllocatedResource() string {
- if x != nil {
- return x.AllocatedResource
- }
- return ""
-}
-
-func (x *RequestProjectReactivate) GetStartDate() string {
- if x != nil {
- return x.StartDate
- }
- return ""
-}
-
-func (x *RequestProjectReactivate) GetEndDate() string {
- if x != nil {
- return x.EndDate
- }
- return ""
-}
-
-func (x *RequestProjectReactivate) GetServiceUnitsAllocated() string {
- if x != nil {
- return x.ServiceUnitsAllocated
- }
- return ""
-}
-
-func (x *RequestProjectReactivate) GetServiceUnitsRemaining() string {
- if x != nil {
- return x.ServiceUnitsRemaining
- }
- return ""
-}
-
-func (x *RequestProjectReactivate) GetGrantNumber() string {
- if x != nil {
- return x.GrantNumber
- }
- return ""
-}
-
-func (x *RequestProjectReactivate) GetExtraFields() *structpb.Struct {
- if x != nil {
- return x.ExtraFields
- }
- return nil
-}
-
-type RequestAccountCreate struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
- PersonId string `protobuf:"bytes,2,opt,name=person_id,json=personId,proto3" json:"person_id,omitempty"`
- ResourceList []string `protobuf:"bytes,3,rep,name=resource_list,json=resourceList,proto3" json:"resource_list,omitempty"`
- AllocatedResource string `protobuf:"bytes,4,opt,name=allocated_resource,json=allocatedResource,proto3" json:"allocated_resource,omitempty"`
- UserRequestedLoginList []string `protobuf:"bytes,5,rep,name=user_requested_login_list,json=userRequestedLoginList,proto3" json:"user_requested_login_list,omitempty"`
- ExtraFields *structpb.Struct `protobuf:"bytes,99,opt,name=extra_fields,json=extraFields,proto3" json:"extra_fields,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *RequestAccountCreate) Reset() {
- *x = RequestAccountCreate{}
- mi := &file_amie_packets_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *RequestAccountCreate) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*RequestAccountCreate) ProtoMessage() {}
-
-func (x *RequestAccountCreate) ProtoReflect() protoreflect.Message {
- mi := &file_amie_packets_proto_msgTypes[5]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use RequestAccountCreate.ProtoReflect.Descriptor instead.
-func (*RequestAccountCreate) Descriptor() ([]byte, []int) {
- return file_amie_packets_proto_rawDescGZIP(), []int{5}
-}
-
-func (x *RequestAccountCreate) GetProjectId() string {
- if x != nil {
- return x.ProjectId
- }
- return ""
-}
-
-func (x *RequestAccountCreate) GetPersonId() string {
- if x != nil {
- return x.PersonId
- }
- return ""
-}
-
-func (x *RequestAccountCreate) GetResourceList() []string {
- if x != nil {
- return x.ResourceList
- }
- return nil
-}
-
-func (x *RequestAccountCreate) GetAllocatedResource() string {
- if x != nil {
- return x.AllocatedResource
- }
- return ""
-}
-
-func (x *RequestAccountCreate) GetUserRequestedLoginList() []string {
- if x != nil {
- return x.UserRequestedLoginList
- }
- return nil
-}
-
-func (x *RequestAccountCreate) GetExtraFields() *structpb.Struct {
- if x != nil {
- return x.ExtraFields
- }
- return nil
-}
-
-type RequestAccountInactivate struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
- PersonId string `protobuf:"bytes,2,opt,name=person_id,json=personId,proto3" json:"person_id,omitempty"`
- ResourceList []string `protobuf:"bytes,3,rep,name=resource_list,json=resourceList,proto3" json:"resource_list,omitempty"`
- AllocatedResource string `protobuf:"bytes,4,opt,name=allocated_resource,json=allocatedResource,proto3" json:"allocated_resource,omitempty"`
- Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"`
- ExtraFields *structpb.Struct `protobuf:"bytes,99,opt,name=extra_fields,json=extraFields,proto3" json:"extra_fields,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *RequestAccountInactivate) Reset() {
- *x = RequestAccountInactivate{}
- mi := &file_amie_packets_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *RequestAccountInactivate) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*RequestAccountInactivate) ProtoMessage() {}
-
-func (x *RequestAccountInactivate) ProtoReflect() protoreflect.Message {
- mi := &file_amie_packets_proto_msgTypes[6]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use RequestAccountInactivate.ProtoReflect.Descriptor instead.
-func (*RequestAccountInactivate) Descriptor() ([]byte, []int) {
- return file_amie_packets_proto_rawDescGZIP(), []int{6}
-}
-
-func (x *RequestAccountInactivate) GetProjectId() string {
- if x != nil {
- return x.ProjectId
- }
- return ""
-}
-
-func (x *RequestAccountInactivate) GetPersonId() string {
- if x != nil {
- return x.PersonId
- }
- return ""
-}
-
-func (x *RequestAccountInactivate) GetResourceList() []string {
- if x != nil {
- return x.ResourceList
- }
- return nil
-}
-
-func (x *RequestAccountInactivate) GetAllocatedResource() string {
- if x != nil {
- return x.AllocatedResource
- }
- return ""
-}
-
-func (x *RequestAccountInactivate) GetComment() string {
- if x != nil {
- return x.Comment
- }
- return ""
-}
-
-func (x *RequestAccountInactivate) GetExtraFields() *structpb.Struct {
- if x != nil {
- return x.ExtraFields
- }
- return nil
-}
-
-type RequestAccountReactivate struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
- PersonId string `protobuf:"bytes,2,opt,name=person_id,json=personId,proto3" json:"person_id,omitempty"`
- ResourceList []string `protobuf:"bytes,3,rep,name=resource_list,json=resourceList,proto3" json:"resource_list,omitempty"`
- AllocatedResource string `protobuf:"bytes,4,opt,name=allocated_resource,json=allocatedResource,proto3" json:"allocated_resource,omitempty"`
- ExtraFields *structpb.Struct `protobuf:"bytes,99,opt,name=extra_fields,json=extraFields,proto3" json:"extra_fields,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *RequestAccountReactivate) Reset() {
- *x = RequestAccountReactivate{}
- mi := &file_amie_packets_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *RequestAccountReactivate) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*RequestAccountReactivate) ProtoMessage() {}
-
-func (x *RequestAccountReactivate) ProtoReflect() protoreflect.Message {
- mi := &file_amie_packets_proto_msgTypes[7]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use RequestAccountReactivate.ProtoReflect.Descriptor instead.
-func (*RequestAccountReactivate) Descriptor() ([]byte, []int) {
- return file_amie_packets_proto_rawDescGZIP(), []int{7}
-}
-
-func (x *RequestAccountReactivate) GetProjectId() string {
- if x != nil {
- return x.ProjectId
- }
- return ""
-}
-
-func (x *RequestAccountReactivate) GetPersonId() string {
- if x != nil {
- return x.PersonId
- }
- return ""
-}
-
-func (x *RequestAccountReactivate) GetResourceList() []string {
- if x != nil {
- return x.ResourceList
- }
- return nil
-}
-
-func (x *RequestAccountReactivate) GetAllocatedResource() string {
- if x != nil {
- return x.AllocatedResource
- }
- return ""
-}
-
-func (x *RequestAccountReactivate) GetExtraFields() *structpb.Struct {
- if x != nil {
- return x.ExtraFields
- }
- return nil
-}
-
-type RequestUserModify struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ActionType string `protobuf:"bytes,1,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"`
- PersonId string `protobuf:"bytes,2,opt,name=person_id,json=personId,proto3" json:"person_id,omitempty"`
- FirstName string `protobuf:"bytes,3,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
- MiddleName string `protobuf:"bytes,4,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"`
- LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
- Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"`
- Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"`
- Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"`
- OrgCode string `protobuf:"bytes,9,opt,name=org_code,json=orgCode,proto3" json:"org_code,omitempty"`
- BusinessPhoneNumber string `protobuf:"bytes,10,opt,name=business_phone_number,json=businessPhoneNumber,proto3" json:"business_phone_number,omitempty"`
- StreetAddress string `protobuf:"bytes,11,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"`
- StreetAddress2 string `protobuf:"bytes,12,opt,name=street_address2,json=streetAddress2,proto3" json:"street_address2,omitempty"`
- City string `protobuf:"bytes,13,opt,name=city,proto3" json:"city,omitempty"`
- State string `protobuf:"bytes,14,opt,name=state,proto3" json:"state,omitempty"`
- Zip string `protobuf:"bytes,15,opt,name=zip,proto3" json:"zip,omitempty"`
- Country string `protobuf:"bytes,16,opt,name=country,proto3" json:"country,omitempty"`
- DnList []string `protobuf:"bytes,17,rep,name=dn_list,json=dnList,proto3" json:"dn_list,omitempty"`
- ExtraFields *structpb.Struct `protobuf:"bytes,99,opt,name=extra_fields,json=extraFields,proto3" json:"extra_fields,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *RequestUserModify) Reset() {
- *x = RequestUserModify{}
- mi := &file_amie_packets_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *RequestUserModify) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*RequestUserModify) ProtoMessage() {}
-
-func (x *RequestUserModify) ProtoReflect() protoreflect.Message {
- mi := &file_amie_packets_proto_msgTypes[8]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use RequestUserModify.ProtoReflect.Descriptor instead.
-func (*RequestUserModify) Descriptor() ([]byte, []int) {
- return file_amie_packets_proto_rawDescGZIP(), []int{8}
-}
-
-func (x *RequestUserModify) GetActionType() string {
- if x != nil {
- return x.ActionType
- }
- return ""
-}
-
-func (x *RequestUserModify) GetPersonId() string {
- if x != nil {
- return x.PersonId
- }
- return ""
-}
-
-func (x *RequestUserModify) GetFirstName() string {
- if x != nil {
- return x.FirstName
- }
- return ""
-}
-
-func (x *RequestUserModify) GetMiddleName() string {
- if x != nil {
- return x.MiddleName
- }
- return ""
-}
-
-func (x *RequestUserModify) GetLastName() string {
- if x != nil {
- return x.LastName
- }
- return ""
-}
-
-func (x *RequestUserModify) GetTitle() string {
- if x != nil {
- return x.Title
- }
- return ""
-}
-
-func (x *RequestUserModify) GetEmail() string {
- if x != nil {
- return x.Email
- }
- return ""
-}
-
-func (x *RequestUserModify) GetOrganization() string {
- if x != nil {
- return x.Organization
- }
- return ""
-}
-
-func (x *RequestUserModify) GetOrgCode() string {
- if x != nil {
- return x.OrgCode
- }
- return ""
-}
-
-func (x *RequestUserModify) GetBusinessPhoneNumber() string {
- if x != nil {
- return x.BusinessPhoneNumber
- }
- return ""
-}
-
-func (x *RequestUserModify) GetStreetAddress() string {
- if x != nil {
- return x.StreetAddress
- }
- return ""
-}
-
-func (x *RequestUserModify) GetStreetAddress2() string {
- if x != nil {
- return x.StreetAddress2
- }
- return ""
-}
-
-func (x *RequestUserModify) GetCity() string {
- if x != nil {
- return x.City
- }
- return ""
-}
-
-func (x *RequestUserModify) GetState() string {
- if x != nil {
- return x.State
- }
- return ""
-}
-
-func (x *RequestUserModify) GetZip() string {
- if x != nil {
- return x.Zip
- }
- return ""
-}
-
-func (x *RequestUserModify) GetCountry() string {
- if x != nil {
- return x.Country
- }
- return ""
-}
-
-func (x *RequestUserModify) GetDnList() []string {
- if x != nil {
- return x.DnList
- }
- return nil
-}
-
-func (x *RequestUserModify) GetExtraFields() *structpb.Struct {
- if x != nil {
- return x.ExtraFields
- }
- return nil
-}
-
-type RequestPersonMerge struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SurvivingPersonId string `protobuf:"bytes,1,opt,name=surviving_person_id,json=survivingPersonId,proto3" json:"surviving_person_id,omitempty"`
- RetiringPersonId string `protobuf:"bytes,2,opt,name=retiring_person_id,json=retiringPersonId,proto3" json:"retiring_person_id,omitempty"`
- ExtraFields *structpb.Struct `protobuf:"bytes,99,opt,name=extra_fields,json=extraFields,proto3" json:"extra_fields,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *RequestPersonMerge) Reset() {
- *x = RequestPersonMerge{}
- mi := &file_amie_packets_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *RequestPersonMerge) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*RequestPersonMerge) ProtoMessage() {}
-
-func (x *RequestPersonMerge) ProtoReflect() protoreflect.Message {
- mi := &file_amie_packets_proto_msgTypes[9]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use RequestPersonMerge.ProtoReflect.Descriptor instead.
-func (*RequestPersonMerge) Descriptor() ([]byte, []int) {
- return file_amie_packets_proto_rawDescGZIP(), []int{9}
-}
-
-func (x *RequestPersonMerge) GetSurvivingPersonId() string {
- if x != nil {
- return x.SurvivingPersonId
- }
- return ""
-}
-
-func (x *RequestPersonMerge) GetRetiringPersonId() string {
- if x != nil {
- return x.RetiringPersonId
- }
- return ""
-}
-
-func (x *RequestPersonMerge) GetExtraFields() *structpb.Struct {
- if x != nil {
- return x.ExtraFields
- }
- return nil
-}
-
-type Packet struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Type PacketType `protobuf:"varint,1,opt,name=type,proto3,enum=org.apache.custos.access.ci.service.v1.PacketType" json:"type,omitempty"`
- Header *PacketHeader `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
- // Types that are valid to be assigned to Body:
- //
- // *Packet_RequestProjectCreate
- // *Packet_RequestProjectInactivate
- // *Packet_RequestProjectReactivate
- // *Packet_RequestAccountCreate
- // *Packet_RequestAccountInactivate
- // *Packet_RequestAccountReactivate
- // *Packet_RequestUserModify
- // *Packet_RequestPersonMerge
- // *Packet_UnknownBody
- Body isPacket_Body `protobuf_oneof:"body"`
- RawJsonPayload string `protobuf:"bytes,98,opt,name=raw_json_payload,json=rawJsonPayload,proto3" json:"raw_json_payload,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *Packet) Reset() {
- *x = Packet{}
- mi := &file_amie_packets_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *Packet) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Packet) ProtoMessage() {}
-
-func (x *Packet) ProtoReflect() protoreflect.Message {
- mi := &file_amie_packets_proto_msgTypes[10]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use Packet.ProtoReflect.Descriptor instead.
-func (*Packet) Descriptor() ([]byte, []int) {
- return file_amie_packets_proto_rawDescGZIP(), []int{10}
-}
-
-func (x *Packet) GetType() PacketType {
- if x != nil {
- return x.Type
- }
- return PacketType_PACKET_TYPE_UNSPECIFIED
-}
-
-func (x *Packet) GetHeader() *PacketHeader {
- if x != nil {
- return x.Header
- }
- return nil
-}
-
-func (x *Packet) GetBody() isPacket_Body {
- if x != nil {
- return x.Body
- }
- return nil
-}
-
-func (x *Packet) GetRequestProjectCreate() *RequestProjectCreate {
- if x != nil {
- if x, ok := x.Body.(*Packet_RequestProjectCreate); ok {
- return x.RequestProjectCreate
- }
- }
- return nil
-}
-
-func (x *Packet) GetRequestProjectInactivate() *RequestProjectInactivate {
- if x != nil {
- if x, ok := x.Body.(*Packet_RequestProjectInactivate); ok {
- return x.RequestProjectInactivate
- }
- }
- return nil
-}
-
-func (x *Packet) GetRequestProjectReactivate() *RequestProjectReactivate {
- if x != nil {
- if x, ok := x.Body.(*Packet_RequestProjectReactivate); ok {
- return x.RequestProjectReactivate
- }
- }
- return nil
-}
-
-func (x *Packet) GetRequestAccountCreate() *RequestAccountCreate {
- if x != nil {
- if x, ok := x.Body.(*Packet_RequestAccountCreate); ok {
- return x.RequestAccountCreate
- }
- }
- return nil
-}
-
-func (x *Packet) GetRequestAccountInactivate() *RequestAccountInactivate {
- if x != nil {
- if x, ok := x.Body.(*Packet_RequestAccountInactivate); ok {
- return x.RequestAccountInactivate
- }
- }
- return nil
-}
-
-func (x *Packet) GetRequestAccountReactivate() *RequestAccountReactivate {
- if x != nil {
- if x, ok := x.Body.(*Packet_RequestAccountReactivate); ok {
- return x.RequestAccountReactivate
- }
- }
- return nil
-}
-
-func (x *Packet) GetRequestUserModify() *RequestUserModify {
- if x != nil {
- if x, ok := x.Body.(*Packet_RequestUserModify); ok {
- return x.RequestUserModify
- }
- }
- return nil
-}
-
-func (x *Packet) GetRequestPersonMerge() *RequestPersonMerge {
- if x != nil {
- if x, ok := x.Body.(*Packet_RequestPersonMerge); ok {
- return x.RequestPersonMerge
- }
- }
- return nil
-}
-
-func (x *Packet) GetUnknownBody() *structpb.Struct {
- if x != nil {
- if x, ok := x.Body.(*Packet_UnknownBody); ok {
- return x.UnknownBody
- }
- }
- return nil
-}
-
-func (x *Packet) GetRawJsonPayload() string {
- if x != nil {
- return x.RawJsonPayload
- }
- return ""
-}
-
-type isPacket_Body interface {
- isPacket_Body()
-}
-
-type Packet_RequestProjectCreate struct {
- RequestProjectCreate *RequestProjectCreate `protobuf:"bytes,10,opt,name=request_project_create,json=requestProjectCreate,proto3,oneof"`
-}
-
-type Packet_RequestProjectInactivate struct {
- RequestProjectInactivate *RequestProjectInactivate `protobuf:"bytes,11,opt,name=request_project_inactivate,json=requestProjectInactivate,proto3,oneof"`
-}
-
-type Packet_RequestProjectReactivate struct {
- RequestProjectReactivate *RequestProjectReactivate `protobuf:"bytes,12,opt,name=request_project_reactivate,json=requestProjectReactivate,proto3,oneof"`
-}
-
-type Packet_RequestAccountCreate struct {
- RequestAccountCreate *RequestAccountCreate `protobuf:"bytes,13,opt,name=request_account_create,json=requestAccountCreate,proto3,oneof"`
-}
-
-type Packet_RequestAccountInactivate struct {
- RequestAccountInactivate *RequestAccountInactivate `protobuf:"bytes,14,opt,name=request_account_inactivate,json=requestAccountInactivate,proto3,oneof"`
-}
-
-type Packet_RequestAccountReactivate struct {
- RequestAccountReactivate *RequestAccountReactivate `protobuf:"bytes,15,opt,name=request_account_reactivate,json=requestAccountReactivate,proto3,oneof"`
-}
-
-type Packet_RequestUserModify struct {
- RequestUserModify *RequestUserModify `protobuf:"bytes,16,opt,name=request_user_modify,json=requestUserModify,proto3,oneof"`
-}
-
-type Packet_RequestPersonMerge struct {
- RequestPersonMerge *RequestPersonMerge `protobuf:"bytes,17,opt,name=request_person_merge,json=requestPersonMerge,proto3,oneof"`
-}
-
-type Packet_UnknownBody struct {
- UnknownBody *structpb.Struct `protobuf:"bytes,50,opt,name=unknown_body,json=unknownBody,proto3,oneof"`
-}
-
-func (*Packet_RequestProjectCreate) isPacket_Body() {}
-
-func (*Packet_RequestProjectInactivate) isPacket_Body() {}
-
-func (*Packet_RequestProjectReactivate) isPacket_Body() {}
-
-func (*Packet_RequestAccountCreate) isPacket_Body() {}
-
-func (*Packet_RequestAccountInactivate) isPacket_Body() {}
-
-func (*Packet_RequestAccountReactivate) isPacket_Body() {}
-
-func (*Packet_RequestUserModify) isPacket_Body() {}
-
-func (*Packet_RequestPersonMerge) isPacket_Body() {}
-
-func (*Packet_UnknownBody) isPacket_Body() {}
-
-var File_amie_packets_proto protoreflect.FileDescriptor
-
-const file_amie_packets_proto_rawDesc = "" +
- "\n" +
- "\x12amie_packets.proto\x12&org.apache.custos.access.ci.service.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"=\n" +
- "\rExpectedReply\x12\x12\n" +
- "\x04type\x18\x01 \x01(\tR\x04type\x12\x18\n" +
- "\atimeout\x18\x02 \x01(\x03R\atimeout\"\x9e\x05\n" +
- "\fPacketHeader\x12e\n" +
- "\x13expected_reply_list\x18\x01 \x03(\v25.org.apache.custos.access.ci.service.v1.ExpectedReplyR\x11expectedReplyList\x12\x1b\n" +
- "\tpacket_id\x18\x02 \x01(\x03R\bpacketId\x12 \n" +
- "\ftrans_rec_id\x18\x03 \x01(\x03R\n" +
- "transRecId\x12%\n" +
- "\x0etransaction_id\x18\x04 \x01(\x03R\rtransactionId\x12(\n" +
- "\x10remote_site_name\x18\x05 \x01(\tR\x0eremoteSiteName\x12&\n" +
- "\x0flocal_site_name\x18\x06 \x01(\tR\rlocalSiteName\x122\n" +
- "\x15originating_site_name\x18\a \x01(\tR\x13originatingSiteName\x12#\n" +
- "\routgoing_flag\x18\b \x01(\bR\foutgoingFlag\x12+\n" +
- "\x11transaction_state\x18\t \x01(\tR\x10transactionState\x12\"\n" +
- "\rpacket_rec_id\x18\n" +
- " \x01(\x03R\vpacketRecId\x12!\n" +
- "\fclient_state\x18\v \x01(\tR\vclientState\x12!\n" +
- "\fpacket_state\x18\f \x01(\tR\vpacketState\x12E\n" +
- "\x10packet_timestamp\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\x0fpacketTimestamp\x128\n" +
- "\vclient_json\x18\x0e \x01(\v2\x17.google.protobuf.StructR\n" +
- "clientJson\"\xb2\x03\n" +
- "\x14RequestProjectCreate\x12-\n" +
- "\x12allocated_resource\x18\x01 \x01(\tR\x11allocatedResource\x125\n" +
- "\x17pi_requested_login_list\x18\x02 \x03(\tR\x14piRequestedLoginList\x12#\n" +
- "\rresource_list\x18\x03 \x03(\tR\fresourceList\x126\n" +
- "\x17service_units_allocated\x18\x04 \x01(\tR\x15serviceUnitsAllocated\x12\x1d\n" +
- "\n" +
- "start_date\x18\x05 \x01(\tR\tstartDate\x12\x19\n" +
- "\bend_date\x18\x06 \x01(\tR\aendDate\x12\x1d\n" +
- "\n" +
- "project_id\x18\a \x01(\tR\tprojectId\x12 \n" +
- "\fpi_person_id\x18\b \x01(\tR\n" +
- "piPersonId\x12 \n" +
- "\fpi_global_id\x18\t \x01(\tR\n" +
- "piGlobalId\x12:\n" +
- "\fextra_fields\x18c \x01(\v2\x17.google.protobuf.StructR\vextraFields\"\xaa\x03\n" +
- "\x18RequestProjectInactivate\x12\x1d\n" +
- "\n" +
- "project_id\x18\x01 \x01(\tR\tprojectId\x12\x1b\n" +
- "\tperson_id\x18\x02 \x01(\tR\bpersonId\x12#\n" +
- "\rresource_list\x18\x03 \x03(\tR\fresourceList\x12-\n" +
- "\x12allocated_resource\x18\x04 \x01(\tR\x11allocatedResource\x12\x18\n" +
- "\acomment\x18\x05 \x01(\tR\acomment\x12\x1d\n" +
- "\n" +
- "start_date\x18\x06 \x01(\tR\tstartDate\x12\x19\n" +
- "\bend_date\x18\a \x01(\tR\aendDate\x126\n" +
- "\x17service_units_allocated\x18\b \x01(\tR\x15serviceUnitsAllocated\x126\n" +
- "\x17service_units_remaining\x18\t \x01(\tR\x15serviceUnitsRemaining\x12:\n" +
- "\fextra_fields\x18c \x01(\v2\x17.google.protobuf.StructR\vextraFields\"\xb3\x03\n" +
- "\x18RequestProjectReactivate\x12\x1d\n" +
- "\n" +
- "project_id\x18\x01 \x01(\tR\tprojectId\x12\x1b\n" +
- "\tperson_id\x18\x02 \x01(\tR\bpersonId\x12#\n" +
- "\rresource_list\x18\x03 \x03(\tR\fresourceList\x12-\n" +
- "\x12allocated_resource\x18\x04 \x01(\tR\x11allocatedResource\x12\x1d\n" +
- "\n" +
- "start_date\x18\x05 \x01(\tR\tstartDate\x12\x19\n" +
- "\bend_date\x18\x06 \x01(\tR\aendDate\x126\n" +
- "\x17service_units_allocated\x18\a \x01(\tR\x15serviceUnitsAllocated\x126\n" +
- "\x17service_units_remaining\x18\b \x01(\tR\x15serviceUnitsRemaining\x12!\n" +
- "\fgrant_number\x18\t \x01(\tR\vgrantNumber\x12:\n" +
- "\fextra_fields\x18c \x01(\v2\x17.google.protobuf.StructR\vextraFields\"\x9d\x02\n" +
- "\x14RequestAccountCreate\x12\x1d\n" +
- "\n" +
- "project_id\x18\x01 \x01(\tR\tprojectId\x12\x1b\n" +
- "\tperson_id\x18\x02 \x01(\tR\bpersonId\x12#\n" +
- "\rresource_list\x18\x03 \x03(\tR\fresourceList\x12-\n" +
- "\x12allocated_resource\x18\x04 \x01(\tR\x11allocatedResource\x129\n" +
- "\x19user_requested_login_list\x18\x05 \x03(\tR\x16userRequestedLoginList\x12:\n" +
- "\fextra_fields\x18c \x01(\v2\x17.google.protobuf.StructR\vextraFields\"\x80\x02\n" +
- "\x18RequestAccountInactivate\x12\x1d\n" +
- "\n" +
- "project_id\x18\x01 \x01(\tR\tprojectId\x12\x1b\n" +
- "\tperson_id\x18\x02 \x01(\tR\bpersonId\x12#\n" +
- "\rresource_list\x18\x03 \x03(\tR\fresourceList\x12-\n" +
- "\x12allocated_resource\x18\x04 \x01(\tR\x11allocatedResource\x12\x18\n" +
- "\acomment\x18\x05 \x01(\tR\acomment\x12:\n" +
- "\fextra_fields\x18c \x01(\v2\x17.google.protobuf.StructR\vextraFields\"\xe6\x01\n" +
- "\x18RequestAccountReactivate\x12\x1d\n" +
- "\n" +
- "project_id\x18\x01 \x01(\tR\tprojectId\x12\x1b\n" +
- "\tperson_id\x18\x02 \x01(\tR\bpersonId\x12#\n" +
- "\rresource_list\x18\x03 \x03(\tR\fresourceList\x12-\n" +
- "\x12allocated_resource\x18\x04 \x01(\tR\x11allocatedResource\x12:\n" +
- "\fextra_fields\x18c \x01(\v2\x17.google.protobuf.StructR\vextraFields\"\xc8\x04\n" +
- "\x11RequestUserModify\x12\x1f\n" +
- "\vaction_type\x18\x01 \x01(\tR\n" +
- "actionType\x12\x1b\n" +
- "\tperson_id\x18\x02 \x01(\tR\bpersonId\x12\x1d\n" +
- "\n" +
- "first_name\x18\x03 \x01(\tR\tfirstName\x12\x1f\n" +
- "\vmiddle_name\x18\x04 \x01(\tR\n" +
- "middleName\x12\x1b\n" +
- "\tlast_name\x18\x05 \x01(\tR\blastName\x12\x14\n" +
- "\x05title\x18\x06 \x01(\tR\x05title\x12\x14\n" +
- "\x05email\x18\a \x01(\tR\x05email\x12\"\n" +
- "\forganization\x18\b \x01(\tR\forganization\x12\x19\n" +
- "\borg_code\x18\t \x01(\tR\aorgCode\x122\n" +
- "\x15business_phone_number\x18\n" +
- " \x01(\tR\x13businessPhoneNumber\x12%\n" +
- "\x0estreet_address\x18\v \x01(\tR\rstreetAddress\x12'\n" +
- "\x0fstreet_address2\x18\f \x01(\tR\x0estreetAddress2\x12\x12\n" +
- "\x04city\x18\r \x01(\tR\x04city\x12\x14\n" +
- "\x05state\x18\x0e \x01(\tR\x05state\x12\x10\n" +
- "\x03zip\x18\x0f \x01(\tR\x03zip\x12\x18\n" +
- "\acountry\x18\x10 \x01(\tR\acountry\x12\x17\n" +
- "\adn_list\x18\x11 \x03(\tR\x06dnList\x12:\n" +
- "\fextra_fields\x18c \x01(\v2\x17.google.protobuf.StructR\vextraFields\"\xae\x01\n" +
- "\x12RequestPersonMerge\x12.\n" +
- "\x13surviving_person_id\x18\x01 \x01(\tR\x11survivingPersonId\x12,\n" +
- "\x12retiring_person_id\x18\x02 \x01(\tR\x10retiringPersonId\x12:\n" +
- "\fextra_fields\x18c \x01(\v2\x17.google.protobuf.StructR\vextraFields\"\xe3\t\n" +
- "\x06Packet\x12F\n" +
- "\x04type\x18\x01 \x01(\x0e22.org.apache.custos.access.ci.service.v1.PacketTypeR\x04type\x12L\n" +
- "\x06header\x18\x02 \x01(\v24.org.apache.custos.access.ci.service.v1.PacketHeaderR\x06header\x12t\n" +
- "\x16request_project_create\x18\n" +
- " \x01(\v2<.org.apache.custos.access.ci.service.v1.RequestProjectCreateH\x00R\x14requestProjectCreate\x12\x80\x01\n" +
- "\x1arequest_project_inactivate\x18\v \x01(\v2@.org.apache.custos.access.ci.service.v1.RequestProjectInactivateH\x00R\x18requestProjectInactivate\x12\x80\x01\n" +
- "\x1arequest_project_reactivate\x18\f \x01(\v2@.org.apache.custos.access.ci.service.v1.RequestProjectReactivateH\x00R\x18requestProjectReactivate\x12t\n" +
- "\x16request_account_create\x18\r \x01(\v2<.org.apache.custos.access.ci.service.v1.RequestAccountCreateH\x00R\x14requestAccountCreate\x12\x80\x01\n" +
- "\x1arequest_account_inactivate\x18\x0e \x01(\v2@.org.apache.custos.access.ci.service.v1.RequestAccountInactivateH\x00R\x18requestAccountInactivate\x12\x80\x01\n" +
- "\x1arequest_account_reactivate\x18\x0f \x01(\v2@.org.apache.custos.access.ci.service.v1.RequestAccountReactivateH\x00R\x18requestAccountReactivate\x12k\n" +
- "\x13request_user_modify\x18\x10 \x01(\v29.org.apache.custos.access.ci.service.v1.RequestUserModifyH\x00R\x11requestUserModify\x12n\n" +
- "\x14request_person_merge\x18\x11 \x01(\v2:.org.apache.custos.access.ci.service.v1.RequestPersonMergeH\x00R\x12requestPersonMerge\x12<\n" +
- "\funknown_body\x182 \x01(\v2\x17.google.protobuf.StructH\x00R\vunknownBody\x12(\n" +
- "\x10raw_json_payload\x18b \x01(\tR\x0erawJsonPayloadB\x06\n" +
- "\x04body*\x94\x02\n" +
- "\n" +
- "PacketType\x12\x1b\n" +
- "\x17PACKET_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n" +
- "\x16REQUEST_PROJECT_CREATE\x10\x01\x12\x1e\n" +
- "\x1aREQUEST_PROJECT_INACTIVATE\x10\x02\x12\x1e\n" +
- "\x1aREQUEST_PROJECT_REACTIVATE\x10\x03\x12\x1a\n" +
- "\x16REQUEST_ACCOUNT_CREATE\x10\x04\x12\x1e\n" +
- "\x1aREQUEST_ACCOUNT_INACTIVATE\x10\x05\x12\x1e\n" +
- "\x1aREQUEST_ACCOUNT_REACTIVATE\x10\x06\x12\x17\n" +
- "\x13REQUEST_USER_MODIFY\x10\a\x12\x18\n" +
- "\x14REQUEST_PERSON_MERGE\x10\bBNZLgithub.com/apache/airavata-custos/connectors/ACCESS/AMIE-Processor/proto/genb\x06proto3"
-
-var (
- file_amie_packets_proto_rawDescOnce sync.Once
- file_amie_packets_proto_rawDescData []byte
-)
-
-func file_amie_packets_proto_rawDescGZIP() []byte {
- file_amie_packets_proto_rawDescOnce.Do(func() {
- file_amie_packets_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_amie_packets_proto_rawDesc), len(file_amie_packets_proto_rawDesc)))
- })
- return file_amie_packets_proto_rawDescData
-}
-
-var file_amie_packets_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
-var file_amie_packets_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
-var file_amie_packets_proto_goTypes = []any{
- (PacketType)(0), // 0: org.apache.custos.access.ci.service.v1.PacketType
- (*ExpectedReply)(nil), // 1: org.apache.custos.access.ci.service.v1.ExpectedReply
- (*PacketHeader)(nil), // 2: org.apache.custos.access.ci.service.v1.PacketHeader
- (*RequestProjectCreate)(nil), // 3: org.apache.custos.access.ci.service.v1.RequestProjectCreate
- (*RequestProjectInactivate)(nil), // 4: org.apache.custos.access.ci.service.v1.RequestProjectInactivate
- (*RequestProjectReactivate)(nil), // 5: org.apache.custos.access.ci.service.v1.RequestProjectReactivate
- (*RequestAccountCreate)(nil), // 6: org.apache.custos.access.ci.service.v1.RequestAccountCreate
- (*RequestAccountInactivate)(nil), // 7: org.apache.custos.access.ci.service.v1.RequestAccountInactivate
- (*RequestAccountReactivate)(nil), // 8: org.apache.custos.access.ci.service.v1.RequestAccountReactivate
- (*RequestUserModify)(nil), // 9: org.apache.custos.access.ci.service.v1.RequestUserModify
- (*RequestPersonMerge)(nil), // 10: org.apache.custos.access.ci.service.v1.RequestPersonMerge
- (*Packet)(nil), // 11: org.apache.custos.access.ci.service.v1.Packet
- (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp
- (*structpb.Struct)(nil), // 13: google.protobuf.Struct
-}
-var file_amie_packets_proto_depIdxs = []int32{
- 1, // 0: org.apache.custos.access.ci.service.v1.PacketHeader.expected_reply_list:type_name -> org.apache.custos.access.ci.service.v1.ExpectedReply
- 12, // 1: org.apache.custos.access.ci.service.v1.PacketHeader.packet_timestamp:type_name -> google.protobuf.Timestamp
- 13, // 2: org.apache.custos.access.ci.service.v1.PacketHeader.client_json:type_name -> google.protobuf.Struct
- 13, // 3: org.apache.custos.access.ci.service.v1.RequestProjectCreate.extra_fields:type_name -> google.protobuf.Struct
- 13, // 4: org.apache.custos.access.ci.service.v1.RequestProjectInactivate.extra_fields:type_name -> google.protobuf.Struct
- 13, // 5: org.apache.custos.access.ci.service.v1.RequestProjectReactivate.extra_fields:type_name -> google.protobuf.Struct
- 13, // 6: org.apache.custos.access.ci.service.v1.RequestAccountCreate.extra_fields:type_name -> google.protobuf.Struct
- 13, // 7: org.apache.custos.access.ci.service.v1.RequestAccountInactivate.extra_fields:type_name -> google.protobuf.Struct
- 13, // 8: org.apache.custos.access.ci.service.v1.RequestAccountReactivate.extra_fields:type_name -> google.protobuf.Struct
- 13, // 9: org.apache.custos.access.ci.service.v1.RequestUserModify.extra_fields:type_name -> google.protobuf.Struct
- 13, // 10: org.apache.custos.access.ci.service.v1.RequestPersonMerge.extra_fields:type_name -> google.protobuf.Struct
- 0, // 11: org.apache.custos.access.ci.service.v1.Packet.type:type_name -> org.apache.custos.access.ci.service.v1.PacketType
- 2, // 12: org.apache.custos.access.ci.service.v1.Packet.header:type_name -> org.apache.custos.access.ci.service.v1.PacketHeader
- 3, // 13: org.apache.custos.access.ci.service.v1.Packet.request_project_create:type_name -> org.apache.custos.access.ci.service.v1.RequestProjectCreate
- 4, // 14: org.apache.custos.access.ci.service.v1.Packet.request_project_inactivate:type_name -> org.apache.custos.access.ci.service.v1.RequestProjectInactivate
- 5, // 15: org.apache.custos.access.ci.service.v1.Packet.request_project_reactivate:type_name -> org.apache.custos.access.ci.service.v1.RequestProjectReactivate
- 6, // 16: org.apache.custos.access.ci.service.v1.Packet.request_account_create:type_name -> org.apache.custos.access.ci.service.v1.RequestAccountCreate
- 7, // 17: org.apache.custos.access.ci.service.v1.Packet.request_account_inactivate:type_name -> org.apache.custos.access.ci.service.v1.RequestAccountInactivate
- 8, // 18: org.apache.custos.access.ci.service.v1.Packet.request_account_reactivate:type_name -> org.apache.custos.access.ci.service.v1.RequestAccountReactivate
- 9, // 19: org.apache.custos.access.ci.service.v1.Packet.request_user_modify:type_name -> org.apache.custos.access.ci.service.v1.RequestUserModify
- 10, // 20: org.apache.custos.access.ci.service.v1.Packet.request_person_merge:type_name -> org.apache.custos.access.ci.service.v1.RequestPersonMerge
- 13, // 21: org.apache.custos.access.ci.service.v1.Packet.unknown_body:type_name -> google.protobuf.Struct
- 22, // [22:22] is the sub-list for method output_type
- 22, // [22:22] is the sub-list for method input_type
- 22, // [22:22] is the sub-list for extension type_name
- 22, // [22:22] is the sub-list for extension extendee
- 0, // [0:22] is the sub-list for field type_name
-}
-
-func init() { file_amie_packets_proto_init() }
-func file_amie_packets_proto_init() {
- if File_amie_packets_proto != nil {
- return
- }
- file_amie_packets_proto_msgTypes[10].OneofWrappers = []any{
- (*Packet_RequestProjectCreate)(nil),
- (*Packet_RequestProjectInactivate)(nil),
- (*Packet_RequestProjectReactivate)(nil),
- (*Packet_RequestAccountCreate)(nil),
- (*Packet_RequestAccountInactivate)(nil),
- (*Packet_RequestAccountReactivate)(nil),
- (*Packet_RequestUserModify)(nil),
- (*Packet_RequestPersonMerge)(nil),
- (*Packet_UnknownBody)(nil),
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_amie_packets_proto_rawDesc), len(file_amie_packets_proto_rawDesc)),
- NumEnums: 1,
- NumMessages: 11,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_amie_packets_proto_goTypes,
- DependencyIndexes: file_amie_packets_proto_depIdxs,
- EnumInfos: file_amie_packets_proto_enumTypes,
- MessageInfos: file_amie_packets_proto_msgTypes,
- }.Build()
- File_amie_packets_proto = out.File
- file_amie_packets_proto_goTypes = nil
- file_amie_packets_proto_depIdxs = nil
-}
diff --git a/connectors/ACCESS/AMIE-Processor/proto/gen/internal_events.pb.go b/connectors/ACCESS/AMIE-Processor/proto/gen/internal_events.pb.go
deleted file mode 100644
index 30aa65b1b..000000000
--- a/connectors/ACCESS/AMIE-Processor/proto/gen/internal_events.pb.go
+++ /dev/null
@@ -1,1493 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.11
-// protoc v7.34.1
-// source: internal_events.proto
-
-package gen
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- structpb "google.golang.org/protobuf/types/known/structpb"
- timestamppb "google.golang.org/protobuf/types/known/timestamppb"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type EventType int32
-
-const (
- EventType_EVENT_TYPE_UNSPECIFIED EventType = 0
- EventType_PACKET_POLLED EventType = 10
- EventType_PACKET_PERSISTED EventType = 11
- EventType_DECODE_STARTED EventType = 20
- EventType_DECODE_SUCCEEDED EventType = 21
- EventType_DECODE_FAILED EventType = 22
- EventType_PROVISIONING_REQUESTED EventType = 30
- EventType_PROVISIONING_SUCCEEDED EventType = 31
- EventType_PROVISIONING_FAILED EventType = 32
- EventType_ACK_SCHEDULED EventType = 40
- EventType_ACK_DISPATCHED EventType = 41
- EventType_ACK_FAILED EventType = 42
-)
-
-// Enum value maps for EventType.
-var (
- EventType_name = map[int32]string{
- 0: "EVENT_TYPE_UNSPECIFIED",
- 10: "PACKET_POLLED",
- 11: "PACKET_PERSISTED",
- 20: "DECODE_STARTED",
- 21: "DECODE_SUCCEEDED",
- 22: "DECODE_FAILED",
- 30: "PROVISIONING_REQUESTED",
- 31: "PROVISIONING_SUCCEEDED",
- 32: "PROVISIONING_FAILED",
- 40: "ACK_SCHEDULED",
- 41: "ACK_DISPATCHED",
- 42: "ACK_FAILED",
- }
- EventType_value = map[string]int32{
- "EVENT_TYPE_UNSPECIFIED": 0,
- "PACKET_POLLED": 10,
- "PACKET_PERSISTED": 11,
- "DECODE_STARTED": 20,
- "DECODE_SUCCEEDED": 21,
- "DECODE_FAILED": 22,
- "PROVISIONING_REQUESTED": 30,
- "PROVISIONING_SUCCEEDED": 31,
- "PROVISIONING_FAILED": 32,
- "ACK_SCHEDULED": 40,
- "ACK_DISPATCHED": 41,
- "ACK_FAILED": 42,
- }
-)
-
-func (x EventType) Enum() *EventType {
- p := new(EventType)
- *p = x
- return p
-}
-
-func (x EventType) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
-}
-
-func (EventType) Descriptor() protoreflect.EnumDescriptor {
- return file_internal_events_proto_enumTypes[0].Descriptor()
-}
-
-func (EventType) Type() protoreflect.EnumType {
- return &file_internal_events_proto_enumTypes[0]
-}
-
-func (x EventType) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
-}
-
-// Deprecated: Use EventType.Descriptor instead.
-func (EventType) EnumDescriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{0}
-}
-
-type ProcessingStatus int32
-
-const (
- ProcessingStatus_PROCESSING_STATUS_UNSPECIFIED ProcessingStatus = 0
- ProcessingStatus_PENDING ProcessingStatus = 1
- ProcessingStatus_RUNNING ProcessingStatus = 2
- ProcessingStatus_SUCCEEDED ProcessingStatus = 3
- ProcessingStatus_FAILED ProcessingStatus = 4
- ProcessingStatus_RETRY_SCHEDULED ProcessingStatus = 5
- ProcessingStatus_SKIPPED ProcessingStatus = 6
-)
-
-// Enum value maps for ProcessingStatus.
-var (
- ProcessingStatus_name = map[int32]string{
- 0: "PROCESSING_STATUS_UNSPECIFIED",
- 1: "PENDING",
- 2: "RUNNING",
- 3: "SUCCEEDED",
- 4: "FAILED",
- 5: "RETRY_SCHEDULED",
- 6: "SKIPPED",
- }
- ProcessingStatus_value = map[string]int32{
- "PROCESSING_STATUS_UNSPECIFIED": 0,
- "PENDING": 1,
- "RUNNING": 2,
- "SUCCEEDED": 3,
- "FAILED": 4,
- "RETRY_SCHEDULED": 5,
- "SKIPPED": 6,
- }
-)
-
-func (x ProcessingStatus) Enum() *ProcessingStatus {
- p := new(ProcessingStatus)
- *p = x
- return p
-}
-
-func (x ProcessingStatus) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
-}
-
-func (ProcessingStatus) Descriptor() protoreflect.EnumDescriptor {
- return file_internal_events_proto_enumTypes[1].Descriptor()
-}
-
-func (ProcessingStatus) Type() protoreflect.EnumType {
- return &file_internal_events_proto_enumTypes[1]
-}
-
-func (x ProcessingStatus) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
-}
-
-// Deprecated: Use ProcessingStatus.Descriptor instead.
-func (ProcessingStatus) EnumDescriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{1}
-}
-
-type EventError struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
- Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
- Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
- Retriable bool `protobuf:"varint,4,opt,name=retriable,proto3" json:"retriable,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *EventError) Reset() {
- *x = EventError{}
- mi := &file_internal_events_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *EventError) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*EventError) ProtoMessage() {}
-
-func (x *EventError) ProtoReflect() protoreflect.Message {
- mi := &file_internal_events_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use EventError.ProtoReflect.Descriptor instead.
-func (*EventError) Descriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *EventError) GetCode() string {
- if x != nil {
- return x.Code
- }
- return ""
-}
-
-func (x *EventError) GetSummary() string {
- if x != nil {
- return x.Summary
- }
- return ""
-}
-
-func (x *EventError) GetDetail() string {
- if x != nil {
- return x.Detail
- }
- return ""
-}
-
-func (x *EventError) GetRetriable() bool {
- if x != nil {
- return x.Retriable
- }
- return false
-}
-
-type PacketPolledPayload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- AmiePacketRecId int64 `protobuf:"varint,1,opt,name=amie_packet_rec_id,json=amiePacketRecId,proto3" json:"amie_packet_rec_id,omitempty"`
- PollRunId string `protobuf:"bytes,2,opt,name=poll_run_id,json=pollRunId,proto3" json:"poll_run_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PacketPolledPayload) Reset() {
- *x = PacketPolledPayload{}
- mi := &file_internal_events_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PacketPolledPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PacketPolledPayload) ProtoMessage() {}
-
-func (x *PacketPolledPayload) ProtoReflect() protoreflect.Message {
- mi := &file_internal_events_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use PacketPolledPayload.ProtoReflect.Descriptor instead.
-func (*PacketPolledPayload) Descriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *PacketPolledPayload) GetAmiePacketRecId() int64 {
- if x != nil {
- return x.AmiePacketRecId
- }
- return 0
-}
-
-func (x *PacketPolledPayload) GetPollRunId() string {
- if x != nil {
- return x.PollRunId
- }
- return ""
-}
-
-type PacketPersistedPayload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- PacketDbId string `protobuf:"bytes,1,opt,name=packet_db_id,json=packetDbId,proto3" json:"packet_db_id,omitempty"`
- AmiePacketRecId int64 `protobuf:"varint,2,opt,name=amie_packet_rec_id,json=amiePacketRecId,proto3" json:"amie_packet_rec_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PacketPersistedPayload) Reset() {
- *x = PacketPersistedPayload{}
- mi := &file_internal_events_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PacketPersistedPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PacketPersistedPayload) ProtoMessage() {}
-
-func (x *PacketPersistedPayload) ProtoReflect() protoreflect.Message {
- mi := &file_internal_events_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use PacketPersistedPayload.ProtoReflect.Descriptor instead.
-func (*PacketPersistedPayload) Descriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *PacketPersistedPayload) GetPacketDbId() string {
- if x != nil {
- return x.PacketDbId
- }
- return ""
-}
-
-func (x *PacketPersistedPayload) GetAmiePacketRecId() int64 {
- if x != nil {
- return x.AmiePacketRecId
- }
- return 0
-}
-
-type DecodeStartedPayload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- PacketDbId string `protobuf:"bytes,1,opt,name=packet_db_id,json=packetDbId,proto3" json:"packet_db_id,omitempty"`
- AmiePacketRecId int64 `protobuf:"varint,2,opt,name=amie_packet_rec_id,json=amiePacketRecId,proto3" json:"amie_packet_rec_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *DecodeStartedPayload) Reset() {
- *x = DecodeStartedPayload{}
- mi := &file_internal_events_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *DecodeStartedPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DecodeStartedPayload) ProtoMessage() {}
-
-func (x *DecodeStartedPayload) ProtoReflect() protoreflect.Message {
- mi := &file_internal_events_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use DecodeStartedPayload.ProtoReflect.Descriptor instead.
-func (*DecodeStartedPayload) Descriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *DecodeStartedPayload) GetPacketDbId() string {
- if x != nil {
- return x.PacketDbId
- }
- return ""
-}
-
-func (x *DecodeStartedPayload) GetAmiePacketRecId() int64 {
- if x != nil {
- return x.AmiePacketRecId
- }
- return 0
-}
-
-type DecodeSucceededPayload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- PacketDbId string `protobuf:"bytes,1,opt,name=packet_db_id,json=packetDbId,proto3" json:"packet_db_id,omitempty"`
- AmiePacketRecId int64 `protobuf:"varint,2,opt,name=amie_packet_rec_id,json=amiePacketRecId,proto3" json:"amie_packet_rec_id,omitempty"`
- Packet *Packet `protobuf:"bytes,3,opt,name=packet,proto3" json:"packet,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *DecodeSucceededPayload) Reset() {
- *x = DecodeSucceededPayload{}
- mi := &file_internal_events_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *DecodeSucceededPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DecodeSucceededPayload) ProtoMessage() {}
-
-func (x *DecodeSucceededPayload) ProtoReflect() protoreflect.Message {
- mi := &file_internal_events_proto_msgTypes[4]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use DecodeSucceededPayload.ProtoReflect.Descriptor instead.
-func (*DecodeSucceededPayload) Descriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{4}
-}
-
-func (x *DecodeSucceededPayload) GetPacketDbId() string {
- if x != nil {
- return x.PacketDbId
- }
- return ""
-}
-
-func (x *DecodeSucceededPayload) GetAmiePacketRecId() int64 {
- if x != nil {
- return x.AmiePacketRecId
- }
- return 0
-}
-
-func (x *DecodeSucceededPayload) GetPacket() *Packet {
- if x != nil {
- return x.Packet
- }
- return nil
-}
-
-type DecodeFailedPayload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- PacketDbId string `protobuf:"bytes,1,opt,name=packet_db_id,json=packetDbId,proto3" json:"packet_db_id,omitempty"`
- AmiePacketRecId int64 `protobuf:"varint,2,opt,name=amie_packet_rec_id,json=amiePacketRecId,proto3" json:"amie_packet_rec_id,omitempty"`
- Error *EventError `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *DecodeFailedPayload) Reset() {
- *x = DecodeFailedPayload{}
- mi := &file_internal_events_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *DecodeFailedPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DecodeFailedPayload) ProtoMessage() {}
-
-func (x *DecodeFailedPayload) ProtoReflect() protoreflect.Message {
- mi := &file_internal_events_proto_msgTypes[5]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use DecodeFailedPayload.ProtoReflect.Descriptor instead.
-func (*DecodeFailedPayload) Descriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{5}
-}
-
-func (x *DecodeFailedPayload) GetPacketDbId() string {
- if x != nil {
- return x.PacketDbId
- }
- return ""
-}
-
-func (x *DecodeFailedPayload) GetAmiePacketRecId() int64 {
- if x != nil {
- return x.AmiePacketRecId
- }
- return 0
-}
-
-func (x *DecodeFailedPayload) GetError() *EventError {
- if x != nil {
- return x.Error
- }
- return nil
-}
-
-type ProvisioningRequestedPayload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- PacketDbId string `protobuf:"bytes,1,opt,name=packet_db_id,json=packetDbId,proto3" json:"packet_db_id,omitempty"`
- AmiePacketRecId int64 `protobuf:"varint,2,opt,name=amie_packet_rec_id,json=amiePacketRecId,proto3" json:"amie_packet_rec_id,omitempty"`
- Operation string `protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"`
- UnixUsername string `protobuf:"bytes,4,opt,name=unix_username,json=unixUsername,proto3" json:"unix_username,omitempty"`
- ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
- Resources []string `protobuf:"bytes,6,rep,name=resources,proto3" json:"resources,omitempty"`
- DesiredState *structpb.Struct `protobuf:"bytes,7,opt,name=desired_state,json=desiredState,proto3" json:"desired_state,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ProvisioningRequestedPayload) Reset() {
- *x = ProvisioningRequestedPayload{}
- mi := &file_internal_events_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ProvisioningRequestedPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ProvisioningRequestedPayload) ProtoMessage() {}
-
-func (x *ProvisioningRequestedPayload) ProtoReflect() protoreflect.Message {
- mi := &file_internal_events_proto_msgTypes[6]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ProvisioningRequestedPayload.ProtoReflect.Descriptor instead.
-func (*ProvisioningRequestedPayload) Descriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{6}
-}
-
-func (x *ProvisioningRequestedPayload) GetPacketDbId() string {
- if x != nil {
- return x.PacketDbId
- }
- return ""
-}
-
-func (x *ProvisioningRequestedPayload) GetAmiePacketRecId() int64 {
- if x != nil {
- return x.AmiePacketRecId
- }
- return 0
-}
-
-func (x *ProvisioningRequestedPayload) GetOperation() string {
- if x != nil {
- return x.Operation
- }
- return ""
-}
-
-func (x *ProvisioningRequestedPayload) GetUnixUsername() string {
- if x != nil {
- return x.UnixUsername
- }
- return ""
-}
-
-func (x *ProvisioningRequestedPayload) GetProjectId() string {
- if x != nil {
- return x.ProjectId
- }
- return ""
-}
-
-func (x *ProvisioningRequestedPayload) GetResources() []string {
- if x != nil {
- return x.Resources
- }
- return nil
-}
-
-func (x *ProvisioningRequestedPayload) GetDesiredState() *structpb.Struct {
- if x != nil {
- return x.DesiredState
- }
- return nil
-}
-
-type ProvisioningSucceededPayload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- PacketDbId string `protobuf:"bytes,1,opt,name=packet_db_id,json=packetDbId,proto3" json:"packet_db_id,omitempty"`
- AmiePacketRecId int64 `protobuf:"varint,2,opt,name=amie_packet_rec_id,json=amiePacketRecId,proto3" json:"amie_packet_rec_id,omitempty"`
- Operation string `protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"`
- Result *structpb.Struct `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ProvisioningSucceededPayload) Reset() {
- *x = ProvisioningSucceededPayload{}
- mi := &file_internal_events_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ProvisioningSucceededPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ProvisioningSucceededPayload) ProtoMessage() {}
-
-func (x *ProvisioningSucceededPayload) ProtoReflect() protoreflect.Message {
- mi := &file_internal_events_proto_msgTypes[7]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ProvisioningSucceededPayload.ProtoReflect.Descriptor instead.
-func (*ProvisioningSucceededPayload) Descriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{7}
-}
-
-func (x *ProvisioningSucceededPayload) GetPacketDbId() string {
- if x != nil {
- return x.PacketDbId
- }
- return ""
-}
-
-func (x *ProvisioningSucceededPayload) GetAmiePacketRecId() int64 {
- if x != nil {
- return x.AmiePacketRecId
- }
- return 0
-}
-
-func (x *ProvisioningSucceededPayload) GetOperation() string {
- if x != nil {
- return x.Operation
- }
- return ""
-}
-
-func (x *ProvisioningSucceededPayload) GetResult() *structpb.Struct {
- if x != nil {
- return x.Result
- }
- return nil
-}
-
-type ProvisioningFailedPayload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- PacketDbId string `protobuf:"bytes,1,opt,name=packet_db_id,json=packetDbId,proto3" json:"packet_db_id,omitempty"`
- AmiePacketRecId int64 `protobuf:"varint,2,opt,name=amie_packet_rec_id,json=amiePacketRecId,proto3" json:"amie_packet_rec_id,omitempty"`
- Operation string `protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"`
- Error *EventError `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ProvisioningFailedPayload) Reset() {
- *x = ProvisioningFailedPayload{}
- mi := &file_internal_events_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ProvisioningFailedPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ProvisioningFailedPayload) ProtoMessage() {}
-
-func (x *ProvisioningFailedPayload) ProtoReflect() protoreflect.Message {
- mi := &file_internal_events_proto_msgTypes[8]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ProvisioningFailedPayload.ProtoReflect.Descriptor instead.
-func (*ProvisioningFailedPayload) Descriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{8}
-}
-
-func (x *ProvisioningFailedPayload) GetPacketDbId() string {
- if x != nil {
- return x.PacketDbId
- }
- return ""
-}
-
-func (x *ProvisioningFailedPayload) GetAmiePacketRecId() int64 {
- if x != nil {
- return x.AmiePacketRecId
- }
- return 0
-}
-
-func (x *ProvisioningFailedPayload) GetOperation() string {
- if x != nil {
- return x.Operation
- }
- return ""
-}
-
-func (x *ProvisioningFailedPayload) GetError() *EventError {
- if x != nil {
- return x.Error
- }
- return nil
-}
-
-type AckScheduledPayload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- PacketDbId string `protobuf:"bytes,1,opt,name=packet_db_id,json=packetDbId,proto3" json:"packet_db_id,omitempty"`
- AmiePacketRecId int64 `protobuf:"varint,2,opt,name=amie_packet_rec_id,json=amiePacketRecId,proto3" json:"amie_packet_rec_id,omitempty"`
- ReplyType string `protobuf:"bytes,3,opt,name=reply_type,json=replyType,proto3" json:"reply_type,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *AckScheduledPayload) Reset() {
- *x = AckScheduledPayload{}
- mi := &file_internal_events_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *AckScheduledPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*AckScheduledPayload) ProtoMessage() {}
-
-func (x *AckScheduledPayload) ProtoReflect() protoreflect.Message {
- mi := &file_internal_events_proto_msgTypes[9]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use AckScheduledPayload.ProtoReflect.Descriptor instead.
-func (*AckScheduledPayload) Descriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{9}
-}
-
-func (x *AckScheduledPayload) GetPacketDbId() string {
- if x != nil {
- return x.PacketDbId
- }
- return ""
-}
-
-func (x *AckScheduledPayload) GetAmiePacketRecId() int64 {
- if x != nil {
- return x.AmiePacketRecId
- }
- return 0
-}
-
-func (x *AckScheduledPayload) GetReplyType() string {
- if x != nil {
- return x.ReplyType
- }
- return ""
-}
-
-type AckDispatchedPayload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- PacketDbId string `protobuf:"bytes,1,opt,name=packet_db_id,json=packetDbId,proto3" json:"packet_db_id,omitempty"`
- AmiePacketRecId int64 `protobuf:"varint,2,opt,name=amie_packet_rec_id,json=amiePacketRecId,proto3" json:"amie_packet_rec_id,omitempty"`
- ReplyType string `protobuf:"bytes,3,opt,name=reply_type,json=replyType,proto3" json:"reply_type,omitempty"`
- HttpStatus int32 `protobuf:"varint,4,opt,name=http_status,json=httpStatus,proto3" json:"http_status,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *AckDispatchedPayload) Reset() {
- *x = AckDispatchedPayload{}
- mi := &file_internal_events_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *AckDispatchedPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*AckDispatchedPayload) ProtoMessage() {}
-
-func (x *AckDispatchedPayload) ProtoReflect() protoreflect.Message {
- mi := &file_internal_events_proto_msgTypes[10]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use AckDispatchedPayload.ProtoReflect.Descriptor instead.
-func (*AckDispatchedPayload) Descriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{10}
-}
-
-func (x *AckDispatchedPayload) GetPacketDbId() string {
- if x != nil {
- return x.PacketDbId
- }
- return ""
-}
-
-func (x *AckDispatchedPayload) GetAmiePacketRecId() int64 {
- if x != nil {
- return x.AmiePacketRecId
- }
- return 0
-}
-
-func (x *AckDispatchedPayload) GetReplyType() string {
- if x != nil {
- return x.ReplyType
- }
- return ""
-}
-
-func (x *AckDispatchedPayload) GetHttpStatus() int32 {
- if x != nil {
- return x.HttpStatus
- }
- return 0
-}
-
-type AckFailedPayload struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- PacketDbId string `protobuf:"bytes,1,opt,name=packet_db_id,json=packetDbId,proto3" json:"packet_db_id,omitempty"`
- AmiePacketRecId int64 `protobuf:"varint,2,opt,name=amie_packet_rec_id,json=amiePacketRecId,proto3" json:"amie_packet_rec_id,omitempty"`
- ReplyType string `protobuf:"bytes,3,opt,name=reply_type,json=replyType,proto3" json:"reply_type,omitempty"`
- Error *EventError `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *AckFailedPayload) Reset() {
- *x = AckFailedPayload{}
- mi := &file_internal_events_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *AckFailedPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*AckFailedPayload) ProtoMessage() {}
-
-func (x *AckFailedPayload) ProtoReflect() protoreflect.Message {
- mi := &file_internal_events_proto_msgTypes[11]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use AckFailedPayload.ProtoReflect.Descriptor instead.
-func (*AckFailedPayload) Descriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{11}
-}
-
-func (x *AckFailedPayload) GetPacketDbId() string {
- if x != nil {
- return x.PacketDbId
- }
- return ""
-}
-
-func (x *AckFailedPayload) GetAmiePacketRecId() int64 {
- if x != nil {
- return x.AmiePacketRecId
- }
- return 0
-}
-
-func (x *AckFailedPayload) GetReplyType() string {
- if x != nil {
- return x.ReplyType
- }
- return ""
-}
-
-func (x *AckFailedPayload) GetError() *EventError {
- if x != nil {
- return x.Error
- }
- return nil
-}
-
-type ProcessingEvent struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- PacketDbId string `protobuf:"bytes,2,opt,name=packet_db_id,json=packetDbId,proto3" json:"packet_db_id,omitempty"`
- AmiePacketRecId int64 `protobuf:"varint,3,opt,name=amie_packet_rec_id,json=amiePacketRecId,proto3" json:"amie_packet_rec_id,omitempty"`
- Type EventType `protobuf:"varint,4,opt,name=type,proto3,enum=org.apache.custos.access.ci.service.internal.events.v1.EventType" json:"type,omitempty"`
- Status ProcessingStatus `protobuf:"varint,5,opt,name=status,proto3,enum=org.apache.custos.access.ci.service.internal.events.v1.ProcessingStatus" json:"status,omitempty"`
- Attempts int32 `protobuf:"varint,6,opt,name=attempts,proto3" json:"attempts,omitempty"`
- CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
- StartedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
- FinishedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"`
- // Types that are valid to be assigned to Payload:
- //
- // *ProcessingEvent_PacketPolled
- // *ProcessingEvent_PacketPersisted
- // *ProcessingEvent_DecodeStarted
- // *ProcessingEvent_DecodeSucceeded
- // *ProcessingEvent_DecodeFailed
- // *ProcessingEvent_ProvisioningRequested
- // *ProcessingEvent_ProvisioningSucceeded
- // *ProcessingEvent_ProvisioningFailed
- // *ProcessingEvent_AckScheduled
- // *ProcessingEvent_AckDispatched
- // *ProcessingEvent_AckFailed
- // *ProcessingEvent_Generic
- Payload isProcessingEvent_Payload `protobuf_oneof:"payload"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ProcessingEvent) Reset() {
- *x = ProcessingEvent{}
- mi := &file_internal_events_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ProcessingEvent) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ProcessingEvent) ProtoMessage() {}
-
-func (x *ProcessingEvent) ProtoReflect() protoreflect.Message {
- mi := &file_internal_events_proto_msgTypes[12]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use ProcessingEvent.ProtoReflect.Descriptor instead.
-func (*ProcessingEvent) Descriptor() ([]byte, []int) {
- return file_internal_events_proto_rawDescGZIP(), []int{12}
-}
-
-func (x *ProcessingEvent) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
-}
-
-func (x *ProcessingEvent) GetPacketDbId() string {
- if x != nil {
- return x.PacketDbId
- }
- return ""
-}
-
-func (x *ProcessingEvent) GetAmiePacketRecId() int64 {
- if x != nil {
- return x.AmiePacketRecId
- }
- return 0
-}
-
-func (x *ProcessingEvent) GetType() EventType {
- if x != nil {
- return x.Type
- }
- return EventType_EVENT_TYPE_UNSPECIFIED
-}
-
-func (x *ProcessingEvent) GetStatus() ProcessingStatus {
- if x != nil {
- return x.Status
- }
- return ProcessingStatus_PROCESSING_STATUS_UNSPECIFIED
-}
-
-func (x *ProcessingEvent) GetAttempts() int32 {
- if x != nil {
- return x.Attempts
- }
- return 0
-}
-
-func (x *ProcessingEvent) GetCreatedAt() *timestamppb.Timestamp {
- if x != nil {
- return x.CreatedAt
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetStartedAt() *timestamppb.Timestamp {
- if x != nil {
- return x.StartedAt
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetFinishedAt() *timestamppb.Timestamp {
- if x != nil {
- return x.FinishedAt
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetPayload() isProcessingEvent_Payload {
- if x != nil {
- return x.Payload
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetPacketPolled() *PacketPolledPayload {
- if x != nil {
- if x, ok := x.Payload.(*ProcessingEvent_PacketPolled); ok {
- return x.PacketPolled
- }
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetPacketPersisted() *PacketPersistedPayload {
- if x != nil {
- if x, ok := x.Payload.(*ProcessingEvent_PacketPersisted); ok {
- return x.PacketPersisted
- }
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetDecodeStarted() *DecodeStartedPayload {
- if x != nil {
- if x, ok := x.Payload.(*ProcessingEvent_DecodeStarted); ok {
- return x.DecodeStarted
- }
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetDecodeSucceeded() *DecodeSucceededPayload {
- if x != nil {
- if x, ok := x.Payload.(*ProcessingEvent_DecodeSucceeded); ok {
- return x.DecodeSucceeded
- }
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetDecodeFailed() *DecodeFailedPayload {
- if x != nil {
- if x, ok := x.Payload.(*ProcessingEvent_DecodeFailed); ok {
- return x.DecodeFailed
- }
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetProvisioningRequested() *ProvisioningRequestedPayload {
- if x != nil {
- if x, ok := x.Payload.(*ProcessingEvent_ProvisioningRequested); ok {
- return x.ProvisioningRequested
- }
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetProvisioningSucceeded() *ProvisioningSucceededPayload {
- if x != nil {
- if x, ok := x.Payload.(*ProcessingEvent_ProvisioningSucceeded); ok {
- return x.ProvisioningSucceeded
- }
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetProvisioningFailed() *ProvisioningFailedPayload {
- if x != nil {
- if x, ok := x.Payload.(*ProcessingEvent_ProvisioningFailed); ok {
- return x.ProvisioningFailed
- }
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetAckScheduled() *AckScheduledPayload {
- if x != nil {
- if x, ok := x.Payload.(*ProcessingEvent_AckScheduled); ok {
- return x.AckScheduled
- }
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetAckDispatched() *AckDispatchedPayload {
- if x != nil {
- if x, ok := x.Payload.(*ProcessingEvent_AckDispatched); ok {
- return x.AckDispatched
- }
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetAckFailed() *AckFailedPayload {
- if x != nil {
- if x, ok := x.Payload.(*ProcessingEvent_AckFailed); ok {
- return x.AckFailed
- }
- }
- return nil
-}
-
-func (x *ProcessingEvent) GetGeneric() *structpb.Struct {
- if x != nil {
- if x, ok := x.Payload.(*ProcessingEvent_Generic); ok {
- return x.Generic
- }
- }
- return nil
-}
-
-type isProcessingEvent_Payload interface {
- isProcessingEvent_Payload()
-}
-
-type ProcessingEvent_PacketPolled struct {
- PacketPolled *PacketPolledPayload `protobuf:"bytes,20,opt,name=packet_polled,json=packetPolled,proto3,oneof"`
-}
-
-type ProcessingEvent_PacketPersisted struct {
- PacketPersisted *PacketPersistedPayload `protobuf:"bytes,21,opt,name=packet_persisted,json=packetPersisted,proto3,oneof"`
-}
-
-type ProcessingEvent_DecodeStarted struct {
- DecodeStarted *DecodeStartedPayload `protobuf:"bytes,30,opt,name=decode_started,json=decodeStarted,proto3,oneof"`
-}
-
-type ProcessingEvent_DecodeSucceeded struct {
- DecodeSucceeded *DecodeSucceededPayload `protobuf:"bytes,31,opt,name=decode_succeeded,json=decodeSucceeded,proto3,oneof"`
-}
-
-type ProcessingEvent_DecodeFailed struct {
- DecodeFailed *DecodeFailedPayload `protobuf:"bytes,32,opt,name=decode_failed,json=decodeFailed,proto3,oneof"`
-}
-
-type ProcessingEvent_ProvisioningRequested struct {
- ProvisioningRequested *ProvisioningRequestedPayload `protobuf:"bytes,40,opt,name=provisioning_requested,json=provisioningRequested,proto3,oneof"`
-}
-
-type ProcessingEvent_ProvisioningSucceeded struct {
- ProvisioningSucceeded *ProvisioningSucceededPayload `protobuf:"bytes,41,opt,name=provisioning_succeeded,json=provisioningSucceeded,proto3,oneof"`
-}
-
-type ProcessingEvent_ProvisioningFailed struct {
- ProvisioningFailed *ProvisioningFailedPayload `protobuf:"bytes,42,opt,name=provisioning_failed,json=provisioningFailed,proto3,oneof"`
-}
-
-type ProcessingEvent_AckScheduled struct {
- AckScheduled *AckScheduledPayload `protobuf:"bytes,50,opt,name=ack_scheduled,json=ackScheduled,proto3,oneof"`
-}
-
-type ProcessingEvent_AckDispatched struct {
- AckDispatched *AckDispatchedPayload `protobuf:"bytes,51,opt,name=ack_dispatched,json=ackDispatched,proto3,oneof"`
-}
-
-type ProcessingEvent_AckFailed struct {
- AckFailed *AckFailedPayload `protobuf:"bytes,52,opt,name=ack_failed,json=ackFailed,proto3,oneof"`
-}
-
-type ProcessingEvent_Generic struct {
- Generic *structpb.Struct `protobuf:"bytes,90,opt,name=generic,proto3,oneof"`
-}
-
-func (*ProcessingEvent_PacketPolled) isProcessingEvent_Payload() {}
-
-func (*ProcessingEvent_PacketPersisted) isProcessingEvent_Payload() {}
-
-func (*ProcessingEvent_DecodeStarted) isProcessingEvent_Payload() {}
-
-func (*ProcessingEvent_DecodeSucceeded) isProcessingEvent_Payload() {}
-
-func (*ProcessingEvent_DecodeFailed) isProcessingEvent_Payload() {}
-
-func (*ProcessingEvent_ProvisioningRequested) isProcessingEvent_Payload() {}
-
-func (*ProcessingEvent_ProvisioningSucceeded) isProcessingEvent_Payload() {}
-
-func (*ProcessingEvent_ProvisioningFailed) isProcessingEvent_Payload() {}
-
-func (*ProcessingEvent_AckScheduled) isProcessingEvent_Payload() {}
-
-func (*ProcessingEvent_AckDispatched) isProcessingEvent_Payload() {}
-
-func (*ProcessingEvent_AckFailed) isProcessingEvent_Payload() {}
-
-func (*ProcessingEvent_Generic) isProcessingEvent_Payload() {}
-
-var File_internal_events_proto protoreflect.FileDescriptor
-
-const file_internal_events_proto_rawDesc = "" +
- "\n" +
- "\x15internal_events.proto\x126org.apache.custos.access.ci.service.internal.events.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x12amie_packets.proto\"p\n" +
- "\n" +
- "EventError\x12\x12\n" +
- "\x04code\x18\x01 \x01(\tR\x04code\x12\x18\n" +
- "\asummary\x18\x02 \x01(\tR\asummary\x12\x16\n" +
- "\x06detail\x18\x03 \x01(\tR\x06detail\x12\x1c\n" +
- "\tretriable\x18\x04 \x01(\bR\tretriable\"b\n" +
- "\x13PacketPolledPayload\x12+\n" +
- "\x12amie_packet_rec_id\x18\x01 \x01(\x03R\x0famiePacketRecId\x12\x1e\n" +
- "\vpoll_run_id\x18\x02 \x01(\tR\tpollRunId\"g\n" +
- "\x16PacketPersistedPayload\x12 \n" +
- "\fpacket_db_id\x18\x01 \x01(\tR\n" +
- "packetDbId\x12+\n" +
- "\x12amie_packet_rec_id\x18\x02 \x01(\x03R\x0famiePacketRecId\"e\n" +
- "\x14DecodeStartedPayload\x12 \n" +
- "\fpacket_db_id\x18\x01 \x01(\tR\n" +
- "packetDbId\x12+\n" +
- "\x12amie_packet_rec_id\x18\x02 \x01(\x03R\x0famiePacketRecId\"\xaf\x01\n" +
- "\x16DecodeSucceededPayload\x12 \n" +
- "\fpacket_db_id\x18\x01 \x01(\tR\n" +
- "packetDbId\x12+\n" +
- "\x12amie_packet_rec_id\x18\x02 \x01(\x03R\x0famiePacketRecId\x12F\n" +
- "\x06packet\x18\x03 \x01(\v2..org.apache.custos.access.ci.service.v1.PacketR\x06packet\"\xbe\x01\n" +
- "\x13DecodeFailedPayload\x12 \n" +
- "\fpacket_db_id\x18\x01 \x01(\tR\n" +
- "packetDbId\x12+\n" +
- "\x12amie_packet_rec_id\x18\x02 \x01(\x03R\x0famiePacketRecId\x12X\n" +
- "\x05error\x18\x03 \x01(\v2B.org.apache.custos.access.ci.service.internal.events.v1.EventErrorR\x05error\"\xab\x02\n" +
- "\x1cProvisioningRequestedPayload\x12 \n" +
- "\fpacket_db_id\x18\x01 \x01(\tR\n" +
- "packetDbId\x12+\n" +
- "\x12amie_packet_rec_id\x18\x02 \x01(\x03R\x0famiePacketRecId\x12\x1c\n" +
- "\toperation\x18\x03 \x01(\tR\toperation\x12#\n" +
- "\runix_username\x18\x04 \x01(\tR\funixUsername\x12\x1d\n" +
- "\n" +
- "project_id\x18\x05 \x01(\tR\tprojectId\x12\x1c\n" +
- "\tresources\x18\x06 \x03(\tR\tresources\x12<\n" +
- "\rdesired_state\x18\a \x01(\v2\x17.google.protobuf.StructR\fdesiredState\"\xbc\x01\n" +
- "\x1cProvisioningSucceededPayload\x12 \n" +
- "\fpacket_db_id\x18\x01 \x01(\tR\n" +
- "packetDbId\x12+\n" +
- "\x12amie_packet_rec_id\x18\x02 \x01(\x03R\x0famiePacketRecId\x12\x1c\n" +
- "\toperation\x18\x03 \x01(\tR\toperation\x12/\n" +
- "\x06result\x18\x04 \x01(\v2\x17.google.protobuf.StructR\x06result\"\xe2\x01\n" +
- "\x19ProvisioningFailedPayload\x12 \n" +
- "\fpacket_db_id\x18\x01 \x01(\tR\n" +
- "packetDbId\x12+\n" +
- "\x12amie_packet_rec_id\x18\x02 \x01(\x03R\x0famiePacketRecId\x12\x1c\n" +
- "\toperation\x18\x03 \x01(\tR\toperation\x12X\n" +
- "\x05error\x18\x04 \x01(\v2B.org.apache.custos.access.ci.service.internal.events.v1.EventErrorR\x05error\"\x83\x01\n" +
- "\x13AckScheduledPayload\x12 \n" +
- "\fpacket_db_id\x18\x01 \x01(\tR\n" +
- "packetDbId\x12+\n" +
- "\x12amie_packet_rec_id\x18\x02 \x01(\x03R\x0famiePacketRecId\x12\x1d\n" +
- "\n" +
- "reply_type\x18\x03 \x01(\tR\treplyType\"\xa5\x01\n" +
- "\x14AckDispatchedPayload\x12 \n" +
- "\fpacket_db_id\x18\x01 \x01(\tR\n" +
- "packetDbId\x12+\n" +
- "\x12amie_packet_rec_id\x18\x02 \x01(\x03R\x0famiePacketRecId\x12\x1d\n" +
- "\n" +
- "reply_type\x18\x03 \x01(\tR\treplyType\x12\x1f\n" +
- "\vhttp_status\x18\x04 \x01(\x05R\n" +
- "httpStatus\"\xda\x01\n" +
- "\x10AckFailedPayload\x12 \n" +
- "\fpacket_db_id\x18\x01 \x01(\tR\n" +
- "packetDbId\x12+\n" +
- "\x12amie_packet_rec_id\x18\x02 \x01(\x03R\x0famiePacketRecId\x12\x1d\n" +
- "\n" +
- "reply_type\x18\x03 \x01(\tR\treplyType\x12X\n" +
- "\x05error\x18\x04 \x01(\v2B.org.apache.custos.access.ci.service.internal.events.v1.EventErrorR\x05error\"\x8e\x0f\n" +
- "\x0fProcessingEvent\x12\x0e\n" +
- "\x02id\x18\x01 \x01(\tR\x02id\x12 \n" +
- "\fpacket_db_id\x18\x02 \x01(\tR\n" +
- "packetDbId\x12+\n" +
- "\x12amie_packet_rec_id\x18\x03 \x01(\x03R\x0famiePacketRecId\x12U\n" +
- "\x04type\x18\x04 \x01(\x0e2A.org.apache.custos.access.ci.service.internal.events.v1.EventTypeR\x04type\x12`\n" +
- "\x06status\x18\x05 \x01(\x0e2H.org.apache.custos.access.ci.service.internal.events.v1.ProcessingStatusR\x06status\x12\x1a\n" +
- "\battempts\x18\x06 \x01(\x05R\battempts\x129\n" +
- "\n" +
- "created_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
- "\n" +
- "started_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12;\n" +
- "\vfinished_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\n" +
- "finishedAt\x12r\n" +
- "\rpacket_polled\x18\x14 \x01(\v2K.org.apache.custos.access.ci.service.internal.events.v1.PacketPolledPayloadH\x00R\fpacketPolled\x12{\n" +
- "\x10packet_persisted\x18\x15 \x01(\v2N.org.apache.custos.access.ci.service.internal.events.v1.PacketPersistedPayloadH\x00R\x0fpacketPersisted\x12u\n" +
- "\x0edecode_started\x18\x1e \x01(\v2L.org.apache.custos.access.ci.service.internal.events.v1.DecodeStartedPayloadH\x00R\rdecodeStarted\x12{\n" +
- "\x10decode_succeeded\x18\x1f \x01(\v2N.org.apache.custos.access.ci.service.internal.events.v1.DecodeSucceededPayloadH\x00R\x0fdecodeSucceeded\x12r\n" +
- "\rdecode_failed\x18 \x01(\v2K.org.apache.custos.access.ci.service.internal.events.v1.DecodeFailedPayloadH\x00R\fdecodeFailed\x12\x8d\x01\n" +
- "\x16provisioning_requested\x18( \x01(\v2T.org.apache.custos.access.ci.service.internal.events.v1.ProvisioningRequestedPayloadH\x00R\x15provisioningRequested\x12\x8d\x01\n" +
- "\x16provisioning_succeeded\x18) \x01(\v2T.org.apache.custos.access.ci.service.internal.events.v1.ProvisioningSucceededPayloadH\x00R\x15provisioningSucceeded\x12\x84\x01\n" +
- "\x13provisioning_failed\x18* \x01(\v2Q.org.apache.custos.access.ci.service.internal.events.v1.ProvisioningFailedPayloadH\x00R\x12provisioningFailed\x12r\n" +
- "\rack_scheduled\x182 \x01(\v2K.org.apache.custos.access.ci.service.internal.events.v1.AckScheduledPayloadH\x00R\fackScheduled\x12u\n" +
- "\x0eack_dispatched\x183 \x01(\v2L.org.apache.custos.access.ci.service.internal.events.v1.AckDispatchedPayloadH\x00R\rackDispatched\x12i\n" +
- "\n" +
- "ack_failed\x184 \x01(\v2H.org.apache.custos.access.ci.service.internal.events.v1.AckFailedPayloadH\x00R\tackFailed\x123\n" +
- "\ageneric\x18Z \x01(\v2\x17.google.protobuf.StructH\x00R\agenericB\t\n" +
- "\apayload*\x95\x02\n" +
- "\tEventType\x12\x1a\n" +
- "\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x11\n" +
- "\rPACKET_POLLED\x10\n" +
- "\x12\x14\n" +
- "\x10PACKET_PERSISTED\x10\v\x12\x12\n" +
- "\x0eDECODE_STARTED\x10\x14\x12\x14\n" +
- "\x10DECODE_SUCCEEDED\x10\x15\x12\x11\n" +
- "\rDECODE_FAILED\x10\x16\x12\x1a\n" +
- "\x16PROVISIONING_REQUESTED\x10\x1e\x12\x1a\n" +
- "\x16PROVISIONING_SUCCEEDED\x10\x1f\x12\x17\n" +
- "\x13PROVISIONING_FAILED\x10 \x12\x11\n" +
- "\rACK_SCHEDULED\x10(\x12\x12\n" +
- "\x0eACK_DISPATCHED\x10)\x12\x0e\n" +
- "\n" +
- "ACK_FAILED\x10**\x8c\x01\n" +
- "\x10ProcessingStatus\x12!\n" +
- "\x1dPROCESSING_STATUS_UNSPECIFIED\x10\x00\x12\v\n" +
- "\aPENDING\x10\x01\x12\v\n" +
- "\aRUNNING\x10\x02\x12\r\n" +
- "\tSUCCEEDED\x10\x03\x12\n" +
- "\n" +
- "\x06FAILED\x10\x04\x12\x13\n" +
- "\x0fRETRY_SCHEDULED\x10\x05\x12\v\n" +
- "\aSKIPPED\x10\x06BNZLgithub.com/apache/airavata-custos/connectors/ACCESS/AMIE-Processor/proto/genb\x06proto3"
-
-var (
- file_internal_events_proto_rawDescOnce sync.Once
- file_internal_events_proto_rawDescData []byte
-)
-
-func file_internal_events_proto_rawDescGZIP() []byte {
- file_internal_events_proto_rawDescOnce.Do(func() {
- file_internal_events_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_internal_events_proto_rawDesc), len(file_internal_events_proto_rawDesc)))
- })
- return file_internal_events_proto_rawDescData
-}
-
-var file_internal_events_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
-var file_internal_events_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
-var file_internal_events_proto_goTypes = []any{
- (EventType)(0), // 0: org.apache.custos.access.ci.service.internal.events.v1.EventType
- (ProcessingStatus)(0), // 1: org.apache.custos.access.ci.service.internal.events.v1.ProcessingStatus
- (*EventError)(nil), // 2: org.apache.custos.access.ci.service.internal.events.v1.EventError
- (*PacketPolledPayload)(nil), // 3: org.apache.custos.access.ci.service.internal.events.v1.PacketPolledPayload
- (*PacketPersistedPayload)(nil), // 4: org.apache.custos.access.ci.service.internal.events.v1.PacketPersistedPayload
- (*DecodeStartedPayload)(nil), // 5: org.apache.custos.access.ci.service.internal.events.v1.DecodeStartedPayload
- (*DecodeSucceededPayload)(nil), // 6: org.apache.custos.access.ci.service.internal.events.v1.DecodeSucceededPayload
- (*DecodeFailedPayload)(nil), // 7: org.apache.custos.access.ci.service.internal.events.v1.DecodeFailedPayload
- (*ProvisioningRequestedPayload)(nil), // 8: org.apache.custos.access.ci.service.internal.events.v1.ProvisioningRequestedPayload
- (*ProvisioningSucceededPayload)(nil), // 9: org.apache.custos.access.ci.service.internal.events.v1.ProvisioningSucceededPayload
- (*ProvisioningFailedPayload)(nil), // 10: org.apache.custos.access.ci.service.internal.events.v1.ProvisioningFailedPayload
- (*AckScheduledPayload)(nil), // 11: org.apache.custos.access.ci.service.internal.events.v1.AckScheduledPayload
- (*AckDispatchedPayload)(nil), // 12: org.apache.custos.access.ci.service.internal.events.v1.AckDispatchedPayload
- (*AckFailedPayload)(nil), // 13: org.apache.custos.access.ci.service.internal.events.v1.AckFailedPayload
- (*ProcessingEvent)(nil), // 14: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent
- (*Packet)(nil), // 15: org.apache.custos.access.ci.service.v1.Packet
- (*structpb.Struct)(nil), // 16: google.protobuf.Struct
- (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp
-}
-var file_internal_events_proto_depIdxs = []int32{
- 15, // 0: org.apache.custos.access.ci.service.internal.events.v1.DecodeSucceededPayload.packet:type_name -> org.apache.custos.access.ci.service.v1.Packet
- 2, // 1: org.apache.custos.access.ci.service.internal.events.v1.DecodeFailedPayload.error:type_name -> org.apache.custos.access.ci.service.internal.events.v1.EventError
- 16, // 2: org.apache.custos.access.ci.service.internal.events.v1.ProvisioningRequestedPayload.desired_state:type_name -> google.protobuf.Struct
- 16, // 3: org.apache.custos.access.ci.service.internal.events.v1.ProvisioningSucceededPayload.result:type_name -> google.protobuf.Struct
- 2, // 4: org.apache.custos.access.ci.service.internal.events.v1.ProvisioningFailedPayload.error:type_name -> org.apache.custos.access.ci.service.internal.events.v1.EventError
- 2, // 5: org.apache.custos.access.ci.service.internal.events.v1.AckFailedPayload.error:type_name -> org.apache.custos.access.ci.service.internal.events.v1.EventError
- 0, // 6: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.type:type_name -> org.apache.custos.access.ci.service.internal.events.v1.EventType
- 1, // 7: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.status:type_name -> org.apache.custos.access.ci.service.internal.events.v1.ProcessingStatus
- 17, // 8: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.created_at:type_name -> google.protobuf.Timestamp
- 17, // 9: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.started_at:type_name -> google.protobuf.Timestamp
- 17, // 10: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.finished_at:type_name -> google.protobuf.Timestamp
- 3, // 11: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.packet_polled:type_name -> org.apache.custos.access.ci.service.internal.events.v1.PacketPolledPayload
- 4, // 12: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.packet_persisted:type_name -> org.apache.custos.access.ci.service.internal.events.v1.PacketPersistedPayload
- 5, // 13: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.decode_started:type_name -> org.apache.custos.access.ci.service.internal.events.v1.DecodeStartedPayload
- 6, // 14: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.decode_succeeded:type_name -> org.apache.custos.access.ci.service.internal.events.v1.DecodeSucceededPayload
- 7, // 15: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.decode_failed:type_name -> org.apache.custos.access.ci.service.internal.events.v1.DecodeFailedPayload
- 8, // 16: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.provisioning_requested:type_name -> org.apache.custos.access.ci.service.internal.events.v1.ProvisioningRequestedPayload
- 9, // 17: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.provisioning_succeeded:type_name -> org.apache.custos.access.ci.service.internal.events.v1.ProvisioningSucceededPayload
- 10, // 18: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.provisioning_failed:type_name -> org.apache.custos.access.ci.service.internal.events.v1.ProvisioningFailedPayload
- 11, // 19: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.ack_scheduled:type_name -> org.apache.custos.access.ci.service.internal.events.v1.AckScheduledPayload
- 12, // 20: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.ack_dispatched:type_name -> org.apache.custos.access.ci.service.internal.events.v1.AckDispatchedPayload
- 13, // 21: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.ack_failed:type_name -> org.apache.custos.access.ci.service.internal.events.v1.AckFailedPayload
- 16, // 22: org.apache.custos.access.ci.service.internal.events.v1.ProcessingEvent.generic:type_name -> google.protobuf.Struct
- 23, // [23:23] is the sub-list for method output_type
- 23, // [23:23] is the sub-list for method input_type
- 23, // [23:23] is the sub-list for extension type_name
- 23, // [23:23] is the sub-list for extension extendee
- 0, // [0:23] is the sub-list for field type_name
-}
-
-func init() { file_internal_events_proto_init() }
-func file_internal_events_proto_init() {
- if File_internal_events_proto != nil {
- return
- }
- file_amie_packets_proto_init()
- file_internal_events_proto_msgTypes[12].OneofWrappers = []any{
- (*ProcessingEvent_PacketPolled)(nil),
- (*ProcessingEvent_PacketPersisted)(nil),
- (*ProcessingEvent_DecodeStarted)(nil),
- (*ProcessingEvent_DecodeSucceeded)(nil),
- (*ProcessingEvent_DecodeFailed)(nil),
- (*ProcessingEvent_ProvisioningRequested)(nil),
- (*ProcessingEvent_ProvisioningSucceeded)(nil),
- (*ProcessingEvent_ProvisioningFailed)(nil),
- (*ProcessingEvent_AckScheduled)(nil),
- (*ProcessingEvent_AckDispatched)(nil),
- (*ProcessingEvent_AckFailed)(nil),
- (*ProcessingEvent_Generic)(nil),
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_events_proto_rawDesc), len(file_internal_events_proto_rawDesc)),
- NumEnums: 2,
- NumMessages: 13,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_internal_events_proto_goTypes,
- DependencyIndexes: file_internal_events_proto_depIdxs,
- EnumInfos: file_internal_events_proto_enumTypes,
- MessageInfos: file_internal_events_proto_msgTypes,
- }.Build()
- File_internal_events_proto = out.File
- file_internal_events_proto_goTypes = nil
- file_internal_events_proto_depIdxs = nil
-}
diff --git a/connectors/ACCESS/AMIE-Processor/proto/internal_events.proto b/connectors/ACCESS/AMIE-Processor/proto/internal_events.proto
deleted file mode 100644
index 1df5e1ac1..000000000
--- a/connectors/ACCESS/AMIE-Processor/proto/internal_events.proto
+++ /dev/null
@@ -1,155 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-syntax = "proto3";
-
-option go_package = "github.com/apache/airavata-custos/connectors/ACCESS/AMIE-Processor/proto/gen";
-
-package org.apache.custos.access.ci.service.internal.events.v1;
-
-import "google/protobuf/timestamp.proto";
-import "google/protobuf/struct.proto";
-import "amie_packets.proto";
-
-enum EventType {
- EVENT_TYPE_UNSPECIFIED = 0;
- PACKET_POLLED = 10;
- PACKET_PERSISTED = 11;
- DECODE_STARTED = 20;
- DECODE_SUCCEEDED = 21;
- DECODE_FAILED = 22;
- PROVISIONING_REQUESTED = 30;
- PROVISIONING_SUCCEEDED = 31;
- PROVISIONING_FAILED = 32;
- ACK_SCHEDULED = 40;
- ACK_DISPATCHED = 41;
- ACK_FAILED = 42;
-}
-
-enum ProcessingStatus {
- PROCESSING_STATUS_UNSPECIFIED = 0;
- PENDING = 1;
- RUNNING = 2;
- SUCCEEDED = 3;
- FAILED = 4;
- RETRY_SCHEDULED = 5;
- SKIPPED = 6;
-}
-
-message EventError {
- string code = 1;
- string summary = 2;
- string detail = 3;
- bool retriable = 4;
-}
-
-message PacketPolledPayload {
- int64 amie_packet_rec_id = 1;
- string poll_run_id = 2;
-}
-
-message PacketPersistedPayload {
- string packet_db_id = 1;
- int64 amie_packet_rec_id = 2;
-}
-
-message DecodeStartedPayload {
- string packet_db_id = 1;
- int64 amie_packet_rec_id = 2;
-}
-
-message DecodeSucceededPayload {
- string packet_db_id = 1;
- int64 amie_packet_rec_id = 2;
- org.apache.custos.access.ci.service.v1.Packet packet = 3;
-}
-
-message DecodeFailedPayload {
- string packet_db_id = 1;
- int64 amie_packet_rec_id = 2;
- EventError error = 3;
-}
-
-message ProvisioningRequestedPayload {
- string packet_db_id = 1;
- int64 amie_packet_rec_id = 2;
- string operation = 3;
- string unix_username = 4;
- string project_id = 5;
- repeated string resources = 6;
- google.protobuf.Struct desired_state = 7;
-}
-
-message ProvisioningSucceededPayload {
- string packet_db_id = 1;
- int64 amie_packet_rec_id = 2;
- string operation = 3;
- google.protobuf.Struct result = 4;
-}
-
-message ProvisioningFailedPayload {
- string packet_db_id = 1;
- int64 amie_packet_rec_id = 2;
- string operation = 3;
- EventError error = 4;
-}
-
-message AckScheduledPayload {
- string packet_db_id = 1;
- int64 amie_packet_rec_id = 2;
- string reply_type = 3;
-}
-
-message AckDispatchedPayload {
- string packet_db_id = 1;
- int64 amie_packet_rec_id = 2;
- string reply_type = 3;
- int32 http_status = 4;
-}
-
-message AckFailedPayload {
- string packet_db_id = 1;
- int64 amie_packet_rec_id = 2;
- string reply_type = 3;
- EventError error = 4;
-}
-
-message ProcessingEvent {
- string id = 1;
- string packet_db_id = 2;
- int64 amie_packet_rec_id = 3;
- EventType type = 4;
- ProcessingStatus status = 5;
- int32 attempts = 6;
- google.protobuf.Timestamp created_at = 7;
- google.protobuf.Timestamp started_at = 8;
- google.protobuf.Timestamp finished_at = 9;
- oneof payload {
- PacketPolledPayload packet_polled = 20;
- PacketPersistedPayload packet_persisted = 21;
- DecodeStartedPayload decode_started = 30;
- DecodeSucceededPayload decode_succeeded = 31;
- DecodeFailedPayload decode_failed = 32;
- ProvisioningRequestedPayload provisioning_requested = 40;
- ProvisioningSucceededPayload provisioning_succeeded = 41;
- ProvisioningFailedPayload provisioning_failed = 42;
- AckScheduledPayload ack_scheduled = 50;
- AckDispatchedPayload ack_dispatched = 51;
- AckFailedPayload ack_failed = 52;
- google.protobuf.Struct generic = 90;
- }
-}
diff --git a/connectors/ACCESS/AMIE-Processor/store/event_store.go b/connectors/ACCESS/AMIE-Processor/store/event_store.go
index 63bcf27e3..547137a05 100644
--- a/connectors/ACCESS/AMIE-Processor/store/event_store.go
+++ b/connectors/ACCESS/AMIE-Processor/store/event_store.go
@@ -45,7 +45,7 @@ func NewEventStore(db *sqlx.DB) EventStore {
func (s *mariaDBEventStore) FindByID(ctx context.Context, id string) (*model.ProcessingEvent, error) {
var e model.ProcessingEvent
err := s.db.GetContext(ctx, &e,
- `SELECT id, packet_id, type, status, attempts, payload, created_at, started_at, finished_at, last_error, next_retry_at
+ `SELECT id, packet_id, type, status, attempts, created_at, started_at, finished_at, last_error, next_retry_at
FROM amie_processing_events WHERE id = ?`, id)
if err != nil {
if errors.Is(err, sql.ErrNoRows) {
@@ -57,7 +57,7 @@ func (s *mariaDBEventStore) FindByID(ctx context.Context, id string) (*model.Pro
}
func (s *mariaDBEventStore) FindTop50EventsToProcess(ctx context.Context, statuses []model.ProcessingStatus, now time.Time) ([]model.EventWithPacket, error) {
- query := `SELECT e.id, e.packet_id, e.type, e.status, e.attempts, e.payload, e.created_at, e.started_at, e.finished_at, e.last_error, e.next_retry_at,
+ query := `SELECT e.id, e.packet_id, e.type, e.status, e.attempts, e.created_at, e.started_at, e.finished_at, e.last_error, e.next_retry_at,
p.amie_id AS packet_amie_id, p.type AS packet_type, p.raw_json AS packet_raw_json
FROM amie_processing_events e
JOIN amie_packets p ON e.packet_id = p.id
@@ -84,9 +84,9 @@ func (s *mariaDBEventStore) FindTop50EventsToProcess(ctx context.Context, status
func (s *mariaDBEventStore) Save(ctx context.Context, tx *sql.Tx, e *model.ProcessingEvent) error {
_, err := tx.ExecContext(ctx,
- `INSERT INTO amie_processing_events (id, packet_id, type, status, attempts, payload, created_at, started_at, finished_at, last_error, next_retry_at)
- VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
- e.ID, e.PacketID, e.Type, e.Status, e.Attempts, e.Payload,
+ `INSERT INTO amie_processing_events (id, packet_id, type, status, attempts, created_at, started_at, finished_at, last_error, next_retry_at)
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,
+ e.ID, e.PacketID, e.Type, e.Status, e.Attempts,
e.CreatedAt, e.StartedAt, e.FinishedAt,
e.LastError, e.NextRetryAt)
return err
@@ -94,9 +94,9 @@ func (s *mariaDBEventStore) Save(ctx context.Context, tx *sql.Tx, e *model.Proce
func (s *mariaDBEventStore) Update(ctx context.Context, tx *sql.Tx, e *model.ProcessingEvent) error {
_, err := tx.ExecContext(ctx,
- `UPDATE amie_processing_events SET status = ?, attempts = ?, payload = ?, started_at = ?, finished_at = ?, last_error = ?, next_retry_at = ?
+ `UPDATE amie_processing_events SET status = ?, attempts = ?, started_at = ?, finished_at = ?, last_error = ?, next_retry_at = ?
WHERE id = ?`,
- e.Status, e.Attempts, e.Payload,
+ e.Status, e.Attempts,
e.StartedAt, e.FinishedAt,
e.LastError, e.NextRetryAt, e.ID)
return err
diff --git a/connectors/ACCESS/AMIE-Processor/store/packet_store.go b/connectors/ACCESS/AMIE-Processor/store/packet_store.go
index 1c196c5fa..511482e20 100644
--- a/connectors/ACCESS/AMIE-Processor/store/packet_store.go
+++ b/connectors/ACCESS/AMIE-Processor/store/packet_store.go
@@ -176,7 +176,7 @@ func buildPacketFilter(f PacketListFilter) (string, []any) {
func (s *mariaDBPacketStore) ListPacketEvents(ctx context.Context, packetID string) ([]model.ProcessingEvent, error) {
var rows []model.ProcessingEvent
err := s.db.SelectContext(ctx, &rows,
- `SELECT id, packet_id, type, status, attempts, payload, created_at, started_at, finished_at, last_error, next_retry_at
+ `SELECT id, packet_id, type, status, attempts, created_at, started_at, finished_at, last_error, next_retry_at
FROM amie_processing_events WHERE packet_id = ? ORDER BY created_at ASC`, packetID)
if err != nil {
return nil, err
diff --git a/connectors/ACCESS/AMIE-Processor/worker/poller.go b/connectors/ACCESS/AMIE-Processor/worker/poller.go
index 40a712ade..83a08ab68 100644
--- a/connectors/ACCESS/AMIE-Processor/worker/poller.go
+++ b/connectors/ACCESS/AMIE-Processor/worker/poller.go
@@ -171,17 +171,11 @@ func (p *Poller) processIndividualPacket(ctx context.Context, packetNode map[str
// Create processing event.
eventID := uuid.NewString()
- payload, err := CreateDecodeStartedEvent(eventID, newPacket.ID, amiePacketRecID)
- if err != nil {
- return fmt.Errorf("create protobuf payload: %w", err)
- }
-
event := &model.ProcessingEvent{
ID: eventID,
PacketID: newPacket.ID,
Type: model.EventTypeDecodePacket,
Status: model.ProcessingStatusNew,
- Payload: payload,
CreatedAt: now,
}
if err := p.eventStore.Save(ctx, tx, event); err != nil {
diff --git a/connectors/ACCESS/AMIE-Processor/worker/processor_integration_test.go b/connectors/ACCESS/AMIE-Processor/worker/processor_integration_test.go
index 0b454f7a7..ce08c2844 100644
--- a/connectors/ACCESS/AMIE-Processor/worker/processor_integration_test.go
+++ b/connectors/ACCESS/AMIE-Processor/worker/processor_integration_test.go
@@ -75,9 +75,9 @@ func seedNewEvent(t *testing.T, database *sqlx.DB) (packetID, eventID string) {
}
if _, err := database.Exec(
- `INSERT INTO amie_processing_events (id, packet_id, type, status, attempts, payload, created_at)
- VALUES (?, ?, ?, ?, ?, ?, ?)`,
- eventID, packetID, string(model.EventTypeDecodePacket), string(model.ProcessingStatusNew), 0, []byte(""), now,
+ `INSERT INTO amie_processing_events (id, packet_id, type, status, attempts, created_at)
+ VALUES (?, ?, ?, ?, ?, ?)`,
+ eventID, packetID, string(model.EventTypeDecodePacket), string(model.ProcessingStatusNew), 0, now,
); err != nil {
t.Fatalf("seed event: %v", err)
}
@@ -102,7 +102,7 @@ func readEvent(t *testing.T, database *sqlx.DB, id string) *model.ProcessingEven
t.Helper()
var e model.ProcessingEvent
if err := database.Get(&e,
- `SELECT id, packet_id, type, status, attempts, payload, created_at, started_at, finished_at, last_error, next_retry_at
+ `SELECT id, packet_id, type, status, attempts, created_at, started_at, finished_at, last_error, next_retry_at
FROM amie_processing_events WHERE id = ?`, id,
); err != nil {
t.Fatalf("read event %s: %v", id, err)
diff --git a/connectors/ACCESS/AMIE-Processor/worker/proto_utils.go b/connectors/ACCESS/AMIE-Processor/worker/proto_utils.go
deleted file mode 100644
index 3816ef65a..000000000
--- a/connectors/ACCESS/AMIE-Processor/worker/proto_utils.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-package worker
-
-import (
- "time"
-
- pb "github.com/apache/airavata-custos/connectors/ACCESS/AMIE-Processor/proto/gen"
- "google.golang.org/protobuf/proto"
- "google.golang.org/protobuf/types/known/timestamppb"
-)
-
-func CreateDecodeStartedEvent(eventID, packetID string, amiePacketRecID int64) ([]byte, error) {
- payload := &pb.DecodeStartedPayload{
- PacketDbId: packetID,
- AmiePacketRecId: amiePacketRecID,
- }
- event := &pb.ProcessingEvent{
- Id: eventID,
- PacketDbId: packetID,
- AmiePacketRecId: amiePacketRecID,
- Type: pb.EventType_DECODE_STARTED,
- Status: pb.ProcessingStatus_PENDING,
- Attempts: 0,
- CreatedAt: timestamppb.New(time.Now()),
- Payload: &pb.ProcessingEvent_DecodeStarted{DecodeStarted: payload},
- }
- return proto.Marshal(event)
-}
diff --git a/connectors/ACCESS/AMIE-Processor/worker/proto_utils_test.go b/connectors/ACCESS/AMIE-Processor/worker/proto_utils_test.go
deleted file mode 100644
index 37275e6d6..000000000
--- a/connectors/ACCESS/AMIE-Processor/worker/proto_utils_test.go
+++ /dev/null
@@ -1,84 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-package worker
-
-import (
- "testing"
-
- pb "github.com/apache/airavata-custos/connectors/ACCESS/AMIE-Processor/proto/gen"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/require"
- "google.golang.org/protobuf/proto"
-)
-
-// ---------------------------------------------------------------------------
-// CreateDecodeStartedEvent tests
-// ---------------------------------------------------------------------------
-
-func TestCreateDecodeStartedEvent_ValidEventDeserializeVerifyFields(t *testing.T) {
- eventID := "evt-abc-123"
- packetID := "pkt-xyz-456"
- var amieRecID int64 = 99
-
- data, err := CreateDecodeStartedEvent(eventID, packetID, amieRecID)
- require.NoError(t, err)
- require.NotEmpty(t, data)
-
- var event pb.ProcessingEvent
- require.NoError(t, proto.Unmarshal(data, &event))
-
- assert.Equal(t, eventID, event.GetId())
- assert.Equal(t, packetID, event.GetPacketDbId())
- assert.Equal(t, amieRecID, event.GetAmiePacketRecId())
- assert.Equal(t, pb.EventType_DECODE_STARTED, event.GetType())
- assert.Equal(t, pb.ProcessingStatus_PENDING, event.GetStatus())
- assert.Equal(t, int32(0), event.GetAttempts())
- assert.NotNil(t, event.GetCreatedAt())
-
- payload := event.GetDecodeStarted()
- require.NotNil(t, payload)
- assert.Equal(t, packetID, payload.GetPacketDbId())
- assert.Equal(t, amieRecID, payload.GetAmiePacketRecId())
-}
-
-func TestCreateDecodeStartedEvent_EmptyEventIDAndPacketID(t *testing.T) {
- data, err := CreateDecodeStartedEvent("", "", 1)
- require.NoError(t, err)
- require.NotEmpty(t, data)
-
- var event pb.ProcessingEvent
- require.NoError(t, proto.Unmarshal(data, &event))
-
- assert.Equal(t, "", event.GetId())
- assert.Equal(t, "", event.GetPacketDbId())
- assert.Equal(t, int64(1), event.GetAmiePacketRecId())
-}
-
-func TestCreateDecodeStartedEvent_ZeroAmiePacketRecID(t *testing.T) {
- data, err := CreateDecodeStartedEvent("evt-1", "pkt-1", 0)
- require.NoError(t, err)
- require.NotEmpty(t, data)
-
- var event pb.ProcessingEvent
- require.NoError(t, proto.Unmarshal(data, &event))
-
- assert.Equal(t, int64(0), event.GetAmiePacketRecId())
- payload := event.GetDecodeStarted()
- require.NotNil(t, payload)
- assert.Equal(t, int64(0), payload.GetAmiePacketRecId())
-}
diff --git a/go.mod b/go.mod
index 24d13868a..ee14e4a0e 100644
--- a/go.mod
+++ b/go.mod
@@ -3,6 +3,7 @@ module github.com/apache/airavata-custos
go 1.25.0
require (
+ github.com/coreos/go-oidc/v3 v3.19.0
github.com/go-sql-driver/mysql v1.8.1
github.com/golang-migrate/migrate/v4 v4.19.1
github.com/google/uuid v1.6.0
@@ -13,7 +14,6 @@ require (
go.opentelemetry.io/otel v1.43.0
go.opentelemetry.io/otel/sdk v1.43.0
go.opentelemetry.io/otel/trace v1.43.0
- google.golang.org/protobuf v1.36.8
gopkg.in/yaml.v3 v3.0.1
)
@@ -22,7 +22,6 @@ require (
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
- github.com/coreos/go-oidc/v3 v3.19.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/go-jose/go-jose/v4 v4.1.4 // indirect
@@ -52,6 +51,7 @@ require (
golang.org/x/sys v0.42.0 // indirect
golang.org/x/text v0.31.0 // indirect
golang.org/x/tools v0.38.0 // indirect
+ google.golang.org/protobuf v1.36.8 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)