diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml deleted file mode 100644 index ae3148a..0000000 --- a/.github/workflows/documentation.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: buf-push -on: - push: - branches: - - main -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: bufbuild/buf-setup-action@v1.27.0 - with: - version: 1.27.0 - - uses: bufbuild/buf-push-action@v1 - with: - buf_token: ${{ secrets.BUF_TOKEN }} - input: 'protos' diff --git a/.github/workflows/pr_test.yml b/.github/workflows/pr_test.yml index cdd9a4a..5b5af0d 100644 --- a/.github/workflows/pr_test.yml +++ b/.github/workflows/pr_test.yml @@ -12,7 +12,7 @@ jobs: configDirectory: ./ - uses: actions/setup-go@v3 with: - go-version: '~1.17' + go-version: '~1.21' - name: Compile protos run: | make setup/linux diff --git a/Makefile b/Makefile index 5f7aa4e..6b19cd4 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ setup/linux: go get -u github.com/golang/protobuf/protoc-gen-go # protoc-go-inject-tag - go get github.com/favadi/protoc-go-inject-tag + go install github.com/favadi/protoc-go-inject-tag@latest .PHONY: generate/all generate/all: description = Compile protos for all languages @@ -75,7 +75,6 @@ generate/ts: -p ./protos/encoding \ -p ./protos/records \ -o ./build/ts/plumber-schemas.js \ - ./protos/*.proto \ ./protos/**/*.proto ./node_modules/.bin/pbts -o ./build/ts/plumber-schemas.d.ts ./build/ts/plumber-schemas.js @@ -91,23 +90,6 @@ generate/go: mkdir -p $(GO_PROTOS_DIR)/opts mkdir -p $(GO_PROTOS_DIR)/records - docker run --platform linux/amd64 -w $(PWD) -v $(PWD):/defs namely/protoc-all:1.51_1 \ - -d /defs/protos \ - -l descriptor_set \ - --go-source-relative \ - -o /defs/build/go/descriptor-sets/ \ - --descr-include-imports \ - --descr-include-source-info \ - --descr-filename protos.fds \ - protos/*.proto - - docker run --platform linux/amd64 --rm -w $(PWD) -v $(PWD):/defs -w${PWD} namely/protoc-all:1.51_1 \ - -d /defs/protos \ - --go-source-relative \ - -o /defs/build/go/protos \ - -l go \ - protos/*.proto - docker run --platform linux/amd64 --rm -w $(PWD) -v $(PWD):/defs -w${PWD} namely/protoc-all:1.51_1 \ -d /defs/protos/args \ --go-source-relative \ @@ -151,8 +133,6 @@ generate/go: # Running code generation tasks go run generate-type-aliases.go go run generate-conn-opts-func.go - go run generate-merge-relay-opts.go - go run generate-merge-tunnel-opts.go .PHONY: inject-tags/local inject-tags/local: description = Inject tags for CLI @@ -175,7 +155,6 @@ ifdef CI endif # Injecting tags into *.pb.go files... - protoc-go-inject-tag -input="$(GO_PROTOS_DIR)/*.pb.go" protoc-go-inject-tag -input="$(GO_PROTOS_DIR)/args/*.pb.go" protoc-go-inject-tag -input="$(GO_PROTOS_DIR)/common/*.pb.go" protoc-go-inject-tag -input="$(GO_PROTOS_DIR)/encoding/*.pb.go" diff --git a/build/go/descriptor-sets/protos.fds b/build/go/descriptor-sets/protos.fds deleted file mode 100644 index c5133b3..0000000 Binary files a/build/go/descriptor-sets/protos.fds and /dev/null differ diff --git a/build/go/protos/opts/batch_connection_options.pb.go b/build/go/protos/opts/batch_connection_options.pb.go index 312243e..ecef1e6 100644 --- a/build/go/protos/opts/batch_connection_options.pb.go +++ b/build/go/protos/opts/batch_connection_options.pb.go @@ -8,203 +8,203 @@ import ( func GenerateConnOpts(backend string, connArgs interface{}) (IsConnectionOptions_Conn, bool) { switch backend { - case "awssqs": - asserted, ok := connArgs.(args.AWSSQSConn) + case "natsjetstream": + asserted, ok := connArgs.(args.NatsJetstreamConn) if !ok { return nil, false } - return &ConnectionOptions_AwsSqs{ - AwsSqs: &asserted, + return &ConnectionOptions_NatsJetstream{ + NatsJetstream: &asserted, }, true - case "nats": - asserted, ok := connArgs.(args.NatsConn) + case "rabbit": + asserted, ok := connArgs.(args.RabbitConn) if !ok { return nil, false } - return &ConnectionOptions_Nats{ - Nats: &asserted, + return &ConnectionOptions_Rabbit{ + Rabbit: &asserted, }, true - case "natsstreaming": - asserted, ok := connArgs.(args.NatsStreamingConn) + case "azureeventhub": + asserted, ok := connArgs.(args.AzureEventHubConn) if !ok { return nil, false } - return &ConnectionOptions_NatsStreaming{ - NatsStreaming: &asserted, + return &ConnectionOptions_AzureEventHub{ + AzureEventHub: &asserted, }, true - case "postgres": - asserted, ok := connArgs.(args.PostgresConn) + case "azureservicebus": + asserted, ok := connArgs.(args.AzureServiceBusConn) if !ok { return nil, false } - return &ConnectionOptions_Postgres{ - Postgres: &asserted, + return &ConnectionOptions_AzureServiceBus{ + AzureServiceBus: &asserted, }, true - case "natsjetstream": - asserted, ok := connArgs.(args.NatsJetstreamConn) + case "mqtt": + asserted, ok := connArgs.(args.MQTTConn) if !ok { return nil, false } - return &ConnectionOptions_NatsJetstream{ - NatsJetstream: &asserted, + return &ConnectionOptions_Mqtt{ + Mqtt: &asserted, }, true - case "awskinesis": - asserted, ok := connArgs.(args.AWSKinesisConn) + case "awssns": + asserted, ok := connArgs.(args.AWSSNSConn) if !ok { return nil, false } - return &ConnectionOptions_AwsKinesis{ - AwsKinesis: &asserted, + return &ConnectionOptions_AwsSns{ + AwsSns: &asserted, }, true - case "activemq": - asserted, ok := connArgs.(args.ActiveMQConn) + case "mongo": + asserted, ok := connArgs.(args.MongoConn) if !ok { return nil, false } - return &ConnectionOptions_ActiveMq{ - ActiveMq: &asserted, + return &ConnectionOptions_Mongo{ + Mongo: &asserted, }, true - case "pulsar": - asserted, ok := connArgs.(args.PulsarConn) + case "nats": + asserted, ok := connArgs.(args.NatsConn) if !ok { return nil, false } - return &ConnectionOptions_Pulsar{ - Pulsar: &asserted, + return &ConnectionOptions_Nats{ + Nats: &asserted, }, true - case "rabbit": - asserted, ok := connArgs.(args.RabbitConn) + case "natsstreaming": + asserted, ok := connArgs.(args.NatsStreamingConn) if !ok { return nil, false } - return &ConnectionOptions_Rabbit{ - Rabbit: &asserted, + return &ConnectionOptions_NatsStreaming{ + NatsStreaming: &asserted, }, true - case "rabbitstreams": - asserted, ok := connArgs.(args.RabbitStreamsConn) + case "redispubsub": + asserted, ok := connArgs.(args.RedisPubSubConn) if !ok { return nil, false } - return &ConnectionOptions_RabbitStreams{ - RabbitStreams: &asserted, + return &ConnectionOptions_RedisPubsub{ + RedisPubsub: &asserted, }, true - case "azureservicebus": - asserted, ok := connArgs.(args.AzureServiceBusConn) + case "redisstreams": + asserted, ok := connArgs.(args.RedisStreamsConn) if !ok { return nil, false } - return &ConnectionOptions_AzureServiceBus{ - AzureServiceBus: &asserted, + return &ConnectionOptions_RedisStreams{ + RedisStreams: &asserted, }, true - case "memphis": - asserted, ok := connArgs.(args.MemphisConn) + case "kubemqqueue": + asserted, ok := connArgs.(args.KubeMQQueueConn) if !ok { return nil, false } - return &ConnectionOptions_Memphis{ - Memphis: &asserted, + return &ConnectionOptions_KubemqQueue{ + KubemqQueue: &asserted, }, true - case "awssns": - asserted, ok := connArgs.(args.AWSSNSConn) + case "gcppubsub": + asserted, ok := connArgs.(args.GCPPubSubConn) if !ok { return nil, false } - return &ConnectionOptions_AwsSns{ - AwsSns: &asserted, + return &ConnectionOptions_GcpPubsub{ + GcpPubsub: &asserted, }, true - case "redispubsub": - asserted, ok := connArgs.(args.RedisPubSubConn) + case "kafka": + asserted, ok := connArgs.(args.KafkaConn) if !ok { return nil, false } - return &ConnectionOptions_RedisPubsub{ - RedisPubsub: &asserted, + return &ConnectionOptions_Kafka{ + Kafka: &asserted, }, true - case "kafka": - asserted, ok := connArgs.(args.KafkaConn) + case "activemq": + asserted, ok := connArgs.(args.ActiveMQConn) if !ok { return nil, false } - return &ConnectionOptions_Kafka{ - Kafka: &asserted, + return &ConnectionOptions_ActiveMq{ + ActiveMq: &asserted, }, true - case "mongo": - asserted, ok := connArgs.(args.MongoConn) + case "awssqs": + asserted, ok := connArgs.(args.AWSSQSConn) if !ok { return nil, false } - return &ConnectionOptions_Mongo{ - Mongo: &asserted, + return &ConnectionOptions_AwsSqs{ + AwsSqs: &asserted, }, true - case "nsq": - asserted, ok := connArgs.(args.NSQConn) + case "pulsar": + asserted, ok := connArgs.(args.PulsarConn) if !ok { return nil, false } - return &ConnectionOptions_Nsq{ - Nsq: &asserted, + return &ConnectionOptions_Pulsar{ + Pulsar: &asserted, }, true - case "redisstreams": - asserted, ok := connArgs.(args.RedisStreamsConn) + case "memphis": + asserted, ok := connArgs.(args.MemphisConn) if !ok { return nil, false } - return &ConnectionOptions_RedisStreams{ - RedisStreams: &asserted, + return &ConnectionOptions_Memphis{ + Memphis: &asserted, }, true - case "azureeventhub": - asserted, ok := connArgs.(args.AzureEventHubConn) + case "nsq": + asserted, ok := connArgs.(args.NSQConn) if !ok { return nil, false } - return &ConnectionOptions_AzureEventHub{ - AzureEventHub: &asserted, + return &ConnectionOptions_Nsq{ + Nsq: &asserted, }, true - case "mqtt": - asserted, ok := connArgs.(args.MQTTConn) + case "postgres": + asserted, ok := connArgs.(args.PostgresConn) if !ok { return nil, false } - return &ConnectionOptions_Mqtt{ - Mqtt: &asserted, + return &ConnectionOptions_Postgres{ + Postgres: &asserted, }, true - case "kubemqqueue": - asserted, ok := connArgs.(args.KubeMQQueueConn) + case "rabbitstreams": + asserted, ok := connArgs.(args.RabbitStreamsConn) if !ok { return nil, false } - return &ConnectionOptions_KubemqQueue{ - KubemqQueue: &asserted, + return &ConnectionOptions_RabbitStreams{ + RabbitStreams: &asserted, }, true - case "gcppubsub": - asserted, ok := connArgs.(args.GCPPubSubConn) + case "awskinesis": + asserted, ok := connArgs.(args.AWSKinesisConn) if !ok { return nil, false } - return &ConnectionOptions_GcpPubsub{ - GcpPubsub: &asserted, + return &ConnectionOptions_AwsKinesis{ + AwsKinesis: &asserted, }, true default: return nil, false diff --git a/build/go/protos/opts/batch_merge_relay_opts.pb.go b/build/go/protos/opts/batch_merge_relay_opts.pb.go deleted file mode 100644 index 84efad8..0000000 --- a/build/go/protos/opts/batch_merge_relay_opts.pb.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by generate-merge-relay-opts.go. DO NOT EDIT. - -package opts - -import ( - "errors" -) - -func MergeRelayOptions(backend string, relayOpts *RelayOptions, createRelayOpts *CreateRelayOptions) error { - switch backend { - case "awssqs": - relayOpts.AwsSqs = &RelayGroupAWSSQSOptions{Args: createRelayOpts.AwsSqs} - case "azureservicebus": - relayOpts.AzureServiceBus = &RelayGroupAzureServiceBusOptions{Args: createRelayOpts.AzureServiceBus} - case "gcppubsub": - relayOpts.GcpPubsub = &RelayGroupGCPPubSubOptions{Args: createRelayOpts.GcpPubsub} - case "kafka": - relayOpts.Kafka = &RelayGroupKafkaOptions{Args: createRelayOpts.Kafka} - case "kubemqqueue": - relayOpts.KubemqQueue = &RelayGroupKubeMQQueueOptions{Args: createRelayOpts.KubemqQueue} - case "mongo": - relayOpts.Mongo = &RelayGroupMongoOptions{Args: createRelayOpts.Mongo} - case "mqtt": - relayOpts.Mqtt = &RelayGroupMQTTOptions{Args: createRelayOpts.Mqtt} - case "nats": - relayOpts.Nats = &RelayGroupNatsOptions{Args: createRelayOpts.Nats} - case "natsjetstream": - relayOpts.NatsJetstream = &RelayGroupNatsJetStreamOptions{Args: createRelayOpts.NatsJetstream} - case "natsstreaming": - relayOpts.NatsStreaming = &RelayGroupNatsStreamingOptions{Args: createRelayOpts.NatsStreaming} - case "nsq": - relayOpts.Nsq = &RelayGroupNSQOptions{Args: createRelayOpts.Nsq} - case "postgres": - relayOpts.Postgres = &RelayGroupPostgresOptions{Args: createRelayOpts.Postgres} - case "rabbit": - relayOpts.Rabbit = &RelayGroupRabbitOptions{Args: createRelayOpts.Rabbit} - case "redispubsub": - relayOpts.RedisPubsub = &RelayGroupRedisPubSubOptions{Args: createRelayOpts.RedisPubsub} - case "redisstreams": - relayOpts.RedisStreams = &RelayGroupRedisStreamsOptions{Args: createRelayOpts.RedisStreams} - default: - return errors.New("unknown backend") - } - - return nil -} diff --git a/build/go/protos/opts/batch_merge_tunnel_opts.pb.go b/build/go/protos/opts/batch_merge_tunnel_opts.pb.go deleted file mode 100644 index f71edb6..0000000 --- a/build/go/protos/opts/batch_merge_tunnel_opts.pb.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by generate-merge-relay-opts.go. DO NOT EDIT. - -package opts - -import ( - "errors" -) - -func MergeTunnelOptions(backend string, tunnelOpts *TunnelOptions, createTunnelOpts *CreateTunnelOptions) error { - switch backend { - case "activemq": - tunnelOpts.Activemq = &TunnelGroupActiveMQOptions{Args: createTunnelOpts.Activemq} - case "awskinesis": - tunnelOpts.AwsKinesis = &TunnelGroupAWSKinesisOptions{Args: createTunnelOpts.AwsKinesis} - case "awssns": - tunnelOpts.AwsSns = &TunnelGroupAWSSNSOptions{Args: createTunnelOpts.AwsSns} - case "awssqs": - tunnelOpts.AwsSqs = &TunnelGroupAWSSQSOptions{Args: createTunnelOpts.AwsSqs} - case "azureeventhub": - tunnelOpts.AzureEventHub = &TunnelGroupAzureEventHubOptions{Args: createTunnelOpts.AzureEventHub} - case "azureservicebus": - tunnelOpts.AzureServiceBus = &TunnelGroupAzureServiceBusOptions{Args: createTunnelOpts.AzureServiceBus} - case "gcppubsub": - tunnelOpts.GcpPubsub = &TunnelGroupGCPPubSubOptions{Args: createTunnelOpts.GcpPubsub} - case "kafka": - tunnelOpts.Kafka = &TunnelGroupKafkaOptions{Args: createTunnelOpts.Kafka} - case "kubemqqueue": - tunnelOpts.KubemqQueue = &TunnelGroupKubeMQQueueOptions{Args: createTunnelOpts.KubemqQueue} - case "memphis": - tunnelOpts.Memphis = &TunnelGroupMemphisOptions{Args: createTunnelOpts.Memphis} - case "mqtt": - tunnelOpts.Mqtt = &TunnelGroupMQTTOptions{Args: createTunnelOpts.Mqtt} - case "nats": - tunnelOpts.Nats = &TunnelGroupNatsOptions{Args: createTunnelOpts.Nats} - case "natsjetstream": - tunnelOpts.NatsJetstream = &TunnelGroupNatsJetstreamOptions{Args: createTunnelOpts.NatsJetstream} - case "natsstreaming": - tunnelOpts.NatsStreaming = &TunnelGroupNatsStreamingOptions{Args: createTunnelOpts.NatsStreaming} - case "nsq": - tunnelOpts.Nsq = &TunnelGroupNSQOptions{Args: createTunnelOpts.Nsq} - case "pulsar": - tunnelOpts.Pulsar = &TunnelGroupPulsarOptions{Args: createTunnelOpts.Pulsar} - case "rabbit": - tunnelOpts.Rabbit = &TunnelGroupRabbitOptions{Args: createTunnelOpts.Rabbit} - case "rabbitstreams": - tunnelOpts.RabbitStreams = &TunnelGroupRabbitStreamsOptions{Args: createTunnelOpts.RabbitStreams} - case "redispubsub": - tunnelOpts.RedisPubsub = &TunnelGroupRedisPubSubOptions{Args: createTunnelOpts.RedisPubsub} - case "redisstreams": - tunnelOpts.RedisStreams = &TunnelGroupRedisStreamsOptions{Args: createTunnelOpts.RedisStreams} - default: - return errors.New("unknown backend") - } - - return nil -} diff --git a/build/go/protos/opts/ps_opts_cli.pb.go b/build/go/protos/opts/ps_opts_cli.pb.go index 8318d49..7cfbff5 100644 --- a/build/go/protos/opts/ps_opts_cli.pb.go +++ b/build/go/protos/opts/ps_opts_cli.pb.go @@ -139,14 +139,6 @@ type CLIOptions struct { Read *ReadOptions `protobuf:"bytes,2,opt,name=read,proto3" json:"read,omitempty" kong:"cmd,help='Read message(s) from messaging system'"` // @gotags: kong:"cmd,help='Write message(s) to messaging system'" Write *WriteOptions `protobuf:"bytes,3,opt,name=write,proto3" json:"write,omitempty" kong:"cmd,help='Write message(s) to messaging system'"` - // @gotags: kong:"cmd,help='Relay message(s) from messaging system to Streamdal'" - Relay *RelayOptions `protobuf:"bytes,4,opt,name=relay,proto3" json:"relay,omitempty" kong:"cmd,help='Relay message(s) from messaging system to Streamdal'"` - // @gotags: kong:"cmd,help='Use plumber as a destination tunnel in Streamdal'" - Tunnel *TunnelOptions `protobuf:"bytes,5,opt,name=tunnel,proto3" json:"tunnel,omitempty" kong:"cmd,help='Use plumber as a destination tunnel in Streamdal'"` - // @gotags: kong:"cmd,help='Run plumber in server mode'" - Server *ServerOptions `protobuf:"bytes,7,opt,name=server,proto3" json:"server,omitempty" kong:"cmd,help='Run plumber in server mode'"` - // @gotags: kong:"cmd,help='Manage plumber server'" - Manage *ManageOptions `protobuf:"bytes,8,opt,name=manage,proto3" json:"manage,omitempty" kong:"cmd,help='Manage plumber server'"` } func (x *CLIOptions) Reset() { @@ -202,86 +194,40 @@ func (x *CLIOptions) GetWrite() *WriteOptions { return nil } -func (x *CLIOptions) GetRelay() *RelayOptions { - if x != nil { - return x.Relay - } - return nil -} - -func (x *CLIOptions) GetTunnel() *TunnelOptions { - if x != nil { - return x.Tunnel - } - return nil -} - -func (x *CLIOptions) GetServer() *ServerOptions { - if x != nil { - return x.Server - } - return nil -} - -func (x *CLIOptions) GetManage() *ManageOptions { - if x != nil { - return x.Manage - } - return nil -} - var File_opts_ps_opts_cli_proto protoreflect.FileDescriptor var file_opts_ps_opts_cli_proto_rawDesc = []byte{ 0x0a, 0x16, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x63, 0x6c, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x1a, 0x19, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, - 0x70, 0x74, 0x73, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x17, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x72, - 0x65, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x6f, 0x70, 0x74, 0x73, 0x2f, - 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, - 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, - 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x74, 0x75, 0x6e, - 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x6f, 0x70, 0x74, 0x73, 0x2f, - 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xd1, 0x01, 0x0a, 0x10, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x43, 0x4c, - 0x49, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x62, 0x75, - 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x64, 0x65, 0x62, 0x75, 0x67, 0x12, 0x14, - 0x0a, 0x05, 0x71, 0x75, 0x69, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x71, - 0x75, 0x69, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, - 0x0a, 0x0d, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, - 0xe8, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x46, 0x75, 0x6c, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, - 0x61, 0x6e, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0xe9, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, - 0x08, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x18, 0xea, 0x07, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x5f, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x18, 0xeb, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x43, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x22, 0xef, 0x02, 0x0a, 0x0a, 0x43, 0x4c, 0x49, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x0a, 0x06, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x43, 0x4c, 0x49, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x12, 0x2c, 0x0a, - 0x04, 0x72, 0x65, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, 0x12, 0x2f, 0x0a, 0x05, 0x77, - 0x72, 0x69, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x2f, 0x0a, 0x05, - 0x72, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x32, 0x0a, - 0x06, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, - 0x65, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x74, 0x75, 0x6e, 0x6e, 0x65, - 0x6c, 0x12, 0x32, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x06, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, - 0x70, 0x74, 0x73, 0x2e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x06, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, + 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x1a, 0x17, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, + 0x70, 0x74, 0x73, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, + 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x77, 0x72, 0x69, + 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd1, 0x01, 0x0a, 0x10, 0x47, 0x6c, 0x6f, + 0x62, 0x61, 0x6c, 0x43, 0x4c, 0x49, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, + 0x05, 0x64, 0x65, 0x62, 0x75, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x64, 0x65, + 0x62, 0x75, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x69, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x05, 0x71, 0x75, 0x69, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x63, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x46, 0x75, 0x6c, + 0x6c, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x5f, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x18, 0xea, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x1c, + 0x0a, 0x09, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x18, 0xeb, 0x07, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x08, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x22, 0xba, 0x01, 0x0a, + 0x0a, 0x43, 0x4c, 0x49, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x0a, 0x06, 0x67, + 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, + 0x43, 0x4c, 0x49, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x67, 0x6c, 0x6f, 0x62, + 0x61, 0x6c, 0x12, 0x2c, 0x0a, 0x04, 0x72, 0x65, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, + 0x65, 0x61, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, + 0x12, 0x2f, 0x0a, 0x05, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x57, 0x72, + 0x69, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, 0x77, 0x72, 0x69, 0x74, + 0x65, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x4a, 0x04, 0x08, + 0x07, 0x10, 0x08, 0x4a, 0x04, 0x08, 0x08, 0x10, 0x09, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x70, 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, @@ -306,24 +252,16 @@ var file_opts_ps_opts_cli_proto_goTypes = []interface{}{ (*CLIOptions)(nil), // 1: protos.opts.CLIOptions (*ReadOptions)(nil), // 2: protos.opts.ReadOptions (*WriteOptions)(nil), // 3: protos.opts.WriteOptions - (*RelayOptions)(nil), // 4: protos.opts.RelayOptions - (*TunnelOptions)(nil), // 5: protos.opts.TunnelOptions - (*ServerOptions)(nil), // 6: protos.opts.ServerOptions - (*ManageOptions)(nil), // 7: protos.opts.ManageOptions } var file_opts_ps_opts_cli_proto_depIdxs = []int32{ 0, // 0: protos.opts.CLIOptions.global:type_name -> protos.opts.GlobalCLIOptions 2, // 1: protos.opts.CLIOptions.read:type_name -> protos.opts.ReadOptions 3, // 2: protos.opts.CLIOptions.write:type_name -> protos.opts.WriteOptions - 4, // 3: protos.opts.CLIOptions.relay:type_name -> protos.opts.RelayOptions - 5, // 4: protos.opts.CLIOptions.tunnel:type_name -> protos.opts.TunnelOptions - 6, // 5: protos.opts.CLIOptions.server:type_name -> protos.opts.ServerOptions - 7, // 6: protos.opts.CLIOptions.manage:type_name -> protos.opts.ManageOptions - 7, // [7:7] is the sub-list for method output_type - 7, // [7:7] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name } func init() { file_opts_ps_opts_cli_proto_init() } @@ -331,11 +269,7 @@ func file_opts_ps_opts_cli_proto_init() { if File_opts_ps_opts_cli_proto != nil { return } - file_opts_ps_opts_manage_proto_init() file_opts_ps_opts_read_proto_init() - file_opts_ps_opts_relay_proto_init() - file_opts_ps_opts_server_proto_init() - file_opts_ps_opts_tunnel_proto_init() file_opts_ps_opts_write_proto_init() if !protoimpl.UnsafeEnabled { file_opts_ps_opts_cli_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { diff --git a/build/go/protos/opts/ps_opts_manage.pb.go b/build/go/protos/opts/ps_opts_manage.pb.go deleted file mode 100644 index f1652d2..0000000 --- a/build/go/protos/opts/ps_opts_manage.pb.go +++ /dev/null @@ -1,841 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: opts/ps_opts_manage.proto - -package opts - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 ManageOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - GlobalOptions *GlobalManageOptions `protobuf:"bytes,1,opt,name=global_options,json=globalOptions,proto3" json:"global_options,omitempty" kong:"embed"` - // @gotags: kong:"cmd,help='Get resource(s) from plumber server'" - Get *GetOptions `protobuf:"bytes,2,opt,name=get,proto3" json:"get,omitempty" kong:"cmd,help='Get resource(s) from plumber server'"` - // @gotags: kong:"cmd,help='Create resources in plumber server'" - Create *CreateOptions `protobuf:"bytes,3,opt,name=create,proto3" json:"create,omitempty" kong:"cmd,help='Create resources in plumber server'"` - // @gotags: kong:"cmd,help='Delete resources in plumber server'" - Delete *DeleteOptions `protobuf:"bytes,5,opt,name=delete,proto3" json:"delete,omitempty" kong:"cmd,help='Delete resources in plumber server'"` - // @gotags: kong:"cmd,help='Stop resources in plumber server'" - Stop *StopOptions `protobuf:"bytes,6,opt,name=stop,proto3" json:"stop,omitempty" kong:"cmd,help='Stop resources in plumber server'"` - // @gotags: kong:"cmd,help='Resume/Start resources in plumber server'" - Resume *ResumeOptions `protobuf:"bytes,7,opt,name=resume,proto3" json:"resume,omitempty" kong:"cmd,help='Resume/Start resources in plumber server'"` -} - -func (x *ManageOptions) Reset() { - *x = ManageOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ManageOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ManageOptions) ProtoMessage() {} - -func (x *ManageOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ManageOptions.ProtoReflect.Descriptor instead. -func (*ManageOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_proto_rawDescGZIP(), []int{0} -} - -func (x *ManageOptions) GetGlobalOptions() *GlobalManageOptions { - if x != nil { - return x.GlobalOptions - } - return nil -} - -func (x *ManageOptions) GetGet() *GetOptions { - if x != nil { - return x.Get - } - return nil -} - -func (x *ManageOptions) GetCreate() *CreateOptions { - if x != nil { - return x.Create - } - return nil -} - -func (x *ManageOptions) GetDelete() *DeleteOptions { - if x != nil { - return x.Delete - } - return nil -} - -func (x *ManageOptions) GetStop() *StopOptions { - if x != nil { - return x.Stop - } - return nil -} - -func (x *ManageOptions) GetResume() *ResumeOptions { - if x != nil { - return x.Resume - } - return nil -} - -type GlobalManageOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='Plumber server gRPC API address',default='localhost:9090'" - ManageAddress string `protobuf:"bytes,1,opt,name=manage_address,json=manageAddress,proto3" json:"manage_address,omitempty" kong:"help='Plumber server gRPC API address',default='localhost:9090'"` - // @gotags: kong:"help='Plumber server auth token',default='plumber-token'" - ManageToken string `protobuf:"bytes,2,opt,name=manage_token,json=manageToken,proto3" json:"manage_token,omitempty" kong:"help='Plumber server auth token',default='plumber-token'"` - // @gotags: kong:"help='gRPC call timeout seconds',default=10" - ManageTimeoutSeconds int64 `protobuf:"varint,3,opt,name=manage_timeout_seconds,json=manageTimeoutSeconds,proto3" json:"manage_timeout_seconds,omitempty" kong:"help='gRPC call timeout seconds',default=10"` - // @gotags: kong:"help='Use TLS when talking to plumber server',default='false'" - ManageUseTls bool `protobuf:"varint,4,opt,name=manage_use_tls,json=manageUseTls,proto3" json:"manage_use_tls,omitempty" kong:"help='Use TLS when talking to plumber server',default='false'"` - // @gotags: kong:"help='Skip TLS server certificate verification',default='false'" - ManageInsecureTls bool `protobuf:"varint,5,opt,name=manage_insecure_tls,json=manageInsecureTls,proto3" json:"manage_insecure_tls,omitempty" kong:"help='Skip TLS server certificate verification',default='false'"` - // @gotags: kong:"help='TLS CA file'" - ManageTlsCaFile string `protobuf:"bytes,6,opt,name=manage_tls_ca_file,json=manageTlsCaFile,proto3" json:"manage_tls_ca_file,omitempty" kong:"help='TLS CA file'"` - // @gotags: kong:"help='TLS client cert file'" - ManageTlsCertFile string `protobuf:"bytes,7,opt,name=manage_tls_cert_file,json=manageTlsCertFile,proto3" json:"manage_tls_cert_file,omitempty" kong:"help='TLS client cert file'"` - // @gotags: kong:"help='TLS client key file'" - ManageTlsKeyFile string `protobuf:"bytes,8,opt,name=manage_tls_key_file,json=manageTlsKeyFile,proto3" json:"manage_tls_key_file,omitempty" kong:"help='TLS client key file'"` - // @gotags: kong:"help='Disable pretty/colorized output',default='false'" - DisablePretty bool `protobuf:"varint,9,opt,name=disable_pretty,json=disablePretty,proto3" json:"disable_pretty,omitempty" kong:"help='Disable pretty/colorized output',default='false'"` -} - -func (x *GlobalManageOptions) Reset() { - *x = GlobalManageOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GlobalManageOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GlobalManageOptions) ProtoMessage() {} - -func (x *GlobalManageOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GlobalManageOptions.ProtoReflect.Descriptor instead. -func (*GlobalManageOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_proto_rawDescGZIP(), []int{1} -} - -func (x *GlobalManageOptions) GetManageAddress() string { - if x != nil { - return x.ManageAddress - } - return "" -} - -func (x *GlobalManageOptions) GetManageToken() string { - if x != nil { - return x.ManageToken - } - return "" -} - -func (x *GlobalManageOptions) GetManageTimeoutSeconds() int64 { - if x != nil { - return x.ManageTimeoutSeconds - } - return 0 -} - -func (x *GlobalManageOptions) GetManageUseTls() bool { - if x != nil { - return x.ManageUseTls - } - return false -} - -func (x *GlobalManageOptions) GetManageInsecureTls() bool { - if x != nil { - return x.ManageInsecureTls - } - return false -} - -func (x *GlobalManageOptions) GetManageTlsCaFile() string { - if x != nil { - return x.ManageTlsCaFile - } - return "" -} - -func (x *GlobalManageOptions) GetManageTlsCertFile() string { - if x != nil { - return x.ManageTlsCertFile - } - return "" -} - -func (x *GlobalManageOptions) GetManageTlsKeyFile() string { - if x != nil { - return x.ManageTlsKeyFile - } - return "" -} - -func (x *GlobalManageOptions) GetDisablePretty() bool { - if x != nil { - return x.DisablePretty - } - return false -} - -type GetOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"cmd,help='Get connection(s) from plumber server'" - Connection *GetConnectionOptions `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty" kong:"cmd,help='Get connection(s) from plumber server'"` - // @gotags: kong:"cmd,help='Get relay(s) from plumber server'" - Relay *GetRelayOptions `protobuf:"bytes,2,opt,name=relay,proto3" json:"relay,omitempty" kong:"cmd,help='Get relay(s) from plumber server'"` - // @gotags: kong:"cmd,help='Get tunnel(s) from plumber server'" - Tunnel *GetTunnelOptions `protobuf:"bytes,3,opt,name=tunnel,proto3" json:"tunnel,omitempty" kong:"cmd,help='Get tunnel(s) from plumber server'"` -} - -func (x *GetOptions) Reset() { - *x = GetOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetOptions) ProtoMessage() {} - -func (x *GetOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetOptions.ProtoReflect.Descriptor instead. -func (*GetOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_proto_rawDescGZIP(), []int{2} -} - -func (x *GetOptions) GetConnection() *GetConnectionOptions { - if x != nil { - return x.Connection - } - return nil -} - -func (x *GetOptions) GetRelay() *GetRelayOptions { - if x != nil { - return x.Relay - } - return nil -} - -func (x *GetOptions) GetTunnel() *GetTunnelOptions { - if x != nil { - return x.Tunnel - } - return nil -} - -type CreateOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"cmd,help='Create connection in plumber server'" - Connection *CreateConnectionOptions `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty" kong:"cmd,help='Create connection in plumber server'"` - // @gotags: kong:"cmd,help='Create relay in plumber server'" - Relay *CreateRelayOptions `protobuf:"bytes,2,opt,name=relay,proto3" json:"relay,omitempty" kong:"cmd,help='Create relay in plumber server'"` - // @gotags: kong:"cmd,help='Create tunnel in plumber server'" - Tunnel *CreateTunnelOptions `protobuf:"bytes,3,opt,name=tunnel,proto3" json:"tunnel,omitempty" kong:"cmd,help='Create tunnel in plumber server'"` -} - -func (x *CreateOptions) Reset() { - *x = CreateOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateOptions) ProtoMessage() {} - -func (x *CreateOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateOptions.ProtoReflect.Descriptor instead. -func (*CreateOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_proto_rawDescGZIP(), []int{3} -} - -func (x *CreateOptions) GetConnection() *CreateConnectionOptions { - if x != nil { - return x.Connection - } - return nil -} - -func (x *CreateOptions) GetRelay() *CreateRelayOptions { - if x != nil { - return x.Relay - } - return nil -} - -func (x *CreateOptions) GetTunnel() *CreateTunnelOptions { - if x != nil { - return x.Tunnel - } - return nil -} - -type DeleteOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"cmd,help='Delete connection in plumber server'" - Connection *DeleteConnectionOptions `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty" kong:"cmd,help='Delete connection in plumber server'"` - // @gotags: kong:"cmd,help='Delete relay in plumber server'" - Relay *DeleteRelayOptions `protobuf:"bytes,2,opt,name=relay,proto3" json:"relay,omitempty" kong:"cmd,help='Delete relay in plumber server'"` - // @gotags: kong:"cmd,help='Delete tunnel in plumber server'" - Tunnel *DeleteTunnelOptions `protobuf:"bytes,3,opt,name=tunnel,proto3" json:"tunnel,omitempty" kong:"cmd,help='Delete tunnel in plumber server'"` -} - -func (x *DeleteOptions) Reset() { - *x = DeleteOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteOptions) ProtoMessage() {} - -func (x *DeleteOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteOptions.ProtoReflect.Descriptor instead. -func (*DeleteOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_proto_rawDescGZIP(), []int{4} -} - -func (x *DeleteOptions) GetConnection() *DeleteConnectionOptions { - if x != nil { - return x.Connection - } - return nil -} - -func (x *DeleteOptions) GetRelay() *DeleteRelayOptions { - if x != nil { - return x.Relay - } - return nil -} - -func (x *DeleteOptions) GetTunnel() *DeleteTunnelOptions { - if x != nil { - return x.Tunnel - } - return nil -} - -type StopOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"cmd,help='Stop relay in plumber server'" - Relay *StopRelayOptions `protobuf:"bytes,1,opt,name=relay,proto3" json:"relay,omitempty" kong:"cmd,help='Stop relay in plumber server'"` - // @gotags: kong:"cmd,help='Stop tunnel in plumber server'" - Tunnel *StopTunnelOptions `protobuf:"bytes,2,opt,name=tunnel,proto3" json:"tunnel,omitempty" kong:"cmd,help='Stop tunnel in plumber server'"` -} - -func (x *StopOptions) Reset() { - *x = StopOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StopOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StopOptions) ProtoMessage() {} - -func (x *StopOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StopOptions.ProtoReflect.Descriptor instead. -func (*StopOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_proto_rawDescGZIP(), []int{5} -} - -func (x *StopOptions) GetRelay() *StopRelayOptions { - if x != nil { - return x.Relay - } - return nil -} - -func (x *StopOptions) GetTunnel() *StopTunnelOptions { - if x != nil { - return x.Tunnel - } - return nil -} - -type ResumeOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"cmd,help='Resume/Start relay in plumber server'" - Relay *ResumeRelayOptions `protobuf:"bytes,1,opt,name=relay,proto3" json:"relay,omitempty" kong:"cmd,help='Resume/Start relay in plumber server'"` - // @gotags: kong:"cmd,help='Resume/Start tunnel in plumber server'" - Tunnel *ResumeTunnelOptions `protobuf:"bytes,2,opt,name=tunnel,proto3" json:"tunnel,omitempty" kong:"cmd,help='Resume/Start tunnel in plumber server'"` -} - -func (x *ResumeOptions) Reset() { - *x = ResumeOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResumeOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResumeOptions) ProtoMessage() {} - -func (x *ResumeOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResumeOptions.ProtoReflect.Descriptor instead. -func (*ResumeOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_proto_rawDescGZIP(), []int{6} -} - -func (x *ResumeOptions) GetRelay() *ResumeRelayOptions { - if x != nil { - return x.Relay - } - return nil -} - -func (x *ResumeOptions) GetTunnel() *ResumeTunnelOptions { - if x != nil { - return x.Tunnel - } - return nil -} - -var File_opts_ps_opts_manage_proto protoreflect.FileDescriptor - -var file_opts_ps_opts_manage_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x1a, 0x24, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, - 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, - 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x20, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xd3, 0x02, 0x0a, 0x0d, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x47, 0x0a, 0x0e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, - 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x67, - 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x29, 0x0a, 0x03, - 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x03, 0x67, 0x65, 0x74, 0x12, 0x32, 0x0a, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x64, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, - 0x2c, 0x0a, 0x04, 0x73, 0x74, 0x6f, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x70, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, 0x73, 0x74, 0x6f, 0x70, 0x12, 0x32, 0x0a, - 0x06, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x75, - 0x6d, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6d, - 0x65, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x22, 0x9f, 0x03, 0x0a, 0x13, 0x47, 0x6c, 0x6f, 0x62, - 0x61, 0x6c, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x25, 0x0a, 0x0e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, - 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x5f, 0x74, 0x6c, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x55, - 0x73, 0x65, 0x54, 0x6c, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x5f, - 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x11, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x65, 0x63, 0x75, - 0x72, 0x65, 0x54, 0x6c, 0x73, 0x12, 0x2b, 0x0a, 0x12, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x5f, - 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x54, 0x6c, 0x73, 0x43, 0x61, 0x46, 0x69, - 0x6c, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6c, 0x73, - 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x11, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x54, 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x46, - 0x69, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x13, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6c, - 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x10, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x54, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x46, 0x69, - 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x72, - 0x65, 0x74, 0x74, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x64, 0x69, 0x73, 0x61, - 0x62, 0x6c, 0x65, 0x50, 0x72, 0x65, 0x74, 0x74, 0x79, 0x22, 0xba, 0x01, 0x0a, 0x0a, 0x47, 0x65, - 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x05, 0x72, - 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x61, - 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x12, - 0x35, 0x0a, 0x06, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x47, 0x65, - 0x74, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, - 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x22, 0xc6, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x44, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, - 0x0a, 0x05, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, - 0x72, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x38, 0x0a, 0x06, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, - 0x70, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x22, - 0xc6, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x44, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, - 0x70, 0x74, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x05, 0x72, 0x65, 0x6c, 0x61, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x38, - 0x0a, 0x06, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x06, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x22, 0x7a, 0x0a, 0x0b, 0x53, 0x74, 0x6f, 0x70, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x72, 0x65, 0x6c, 0x61, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x36, 0x0a, 0x06, - 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x54, - 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x74, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x22, 0x80, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x0a, 0x05, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, - 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x38, 0x0a, - 0x06, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x75, - 0x6d, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x06, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, 0x70, 0x2f, - 0x70, 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, - 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, - 0x6f, 0x70, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_opts_ps_opts_manage_proto_rawDescOnce sync.Once - file_opts_ps_opts_manage_proto_rawDescData = file_opts_ps_opts_manage_proto_rawDesc -) - -func file_opts_ps_opts_manage_proto_rawDescGZIP() []byte { - file_opts_ps_opts_manage_proto_rawDescOnce.Do(func() { - file_opts_ps_opts_manage_proto_rawDescData = protoimpl.X.CompressGZIP(file_opts_ps_opts_manage_proto_rawDescData) - }) - return file_opts_ps_opts_manage_proto_rawDescData -} - -var file_opts_ps_opts_manage_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_opts_ps_opts_manage_proto_goTypes = []interface{}{ - (*ManageOptions)(nil), // 0: protos.opts.ManageOptions - (*GlobalManageOptions)(nil), // 1: protos.opts.GlobalManageOptions - (*GetOptions)(nil), // 2: protos.opts.GetOptions - (*CreateOptions)(nil), // 3: protos.opts.CreateOptions - (*DeleteOptions)(nil), // 4: protos.opts.DeleteOptions - (*StopOptions)(nil), // 5: protos.opts.StopOptions - (*ResumeOptions)(nil), // 6: protos.opts.ResumeOptions - (*GetConnectionOptions)(nil), // 7: protos.opts.GetConnectionOptions - (*GetRelayOptions)(nil), // 8: protos.opts.GetRelayOptions - (*GetTunnelOptions)(nil), // 9: protos.opts.GetTunnelOptions - (*CreateConnectionOptions)(nil), // 10: protos.opts.CreateConnectionOptions - (*CreateRelayOptions)(nil), // 11: protos.opts.CreateRelayOptions - (*CreateTunnelOptions)(nil), // 12: protos.opts.CreateTunnelOptions - (*DeleteConnectionOptions)(nil), // 13: protos.opts.DeleteConnectionOptions - (*DeleteRelayOptions)(nil), // 14: protos.opts.DeleteRelayOptions - (*DeleteTunnelOptions)(nil), // 15: protos.opts.DeleteTunnelOptions - (*StopRelayOptions)(nil), // 16: protos.opts.StopRelayOptions - (*StopTunnelOptions)(nil), // 17: protos.opts.StopTunnelOptions - (*ResumeRelayOptions)(nil), // 18: protos.opts.ResumeRelayOptions - (*ResumeTunnelOptions)(nil), // 19: protos.opts.ResumeTunnelOptions -} -var file_opts_ps_opts_manage_proto_depIdxs = []int32{ - 1, // 0: protos.opts.ManageOptions.global_options:type_name -> protos.opts.GlobalManageOptions - 2, // 1: protos.opts.ManageOptions.get:type_name -> protos.opts.GetOptions - 3, // 2: protos.opts.ManageOptions.create:type_name -> protos.opts.CreateOptions - 4, // 3: protos.opts.ManageOptions.delete:type_name -> protos.opts.DeleteOptions - 5, // 4: protos.opts.ManageOptions.stop:type_name -> protos.opts.StopOptions - 6, // 5: protos.opts.ManageOptions.resume:type_name -> protos.opts.ResumeOptions - 7, // 6: protos.opts.GetOptions.connection:type_name -> protos.opts.GetConnectionOptions - 8, // 7: protos.opts.GetOptions.relay:type_name -> protos.opts.GetRelayOptions - 9, // 8: protos.opts.GetOptions.tunnel:type_name -> protos.opts.GetTunnelOptions - 10, // 9: protos.opts.CreateOptions.connection:type_name -> protos.opts.CreateConnectionOptions - 11, // 10: protos.opts.CreateOptions.relay:type_name -> protos.opts.CreateRelayOptions - 12, // 11: protos.opts.CreateOptions.tunnel:type_name -> protos.opts.CreateTunnelOptions - 13, // 12: protos.opts.DeleteOptions.connection:type_name -> protos.opts.DeleteConnectionOptions - 14, // 13: protos.opts.DeleteOptions.relay:type_name -> protos.opts.DeleteRelayOptions - 15, // 14: protos.opts.DeleteOptions.tunnel:type_name -> protos.opts.DeleteTunnelOptions - 16, // 15: protos.opts.StopOptions.relay:type_name -> protos.opts.StopRelayOptions - 17, // 16: protos.opts.StopOptions.tunnel:type_name -> protos.opts.StopTunnelOptions - 18, // 17: protos.opts.ResumeOptions.relay:type_name -> protos.opts.ResumeRelayOptions - 19, // 18: protos.opts.ResumeOptions.tunnel:type_name -> protos.opts.ResumeTunnelOptions - 19, // [19:19] is the sub-list for method output_type - 19, // [19:19] is the sub-list for method input_type - 19, // [19:19] is the sub-list for extension type_name - 19, // [19:19] is the sub-list for extension extendee - 0, // [0:19] is the sub-list for field type_name -} - -func init() { file_opts_ps_opts_manage_proto_init() } -func file_opts_ps_opts_manage_proto_init() { - if File_opts_ps_opts_manage_proto != nil { - return - } - file_opts_ps_opts_manage_connection_proto_init() - file_opts_ps_opts_manage_relay_proto_init() - file_opts_ps_opts_manage_tunnel_proto_init() - if !protoimpl.UnsafeEnabled { - file_opts_ps_opts_manage_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ManageOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GlobalManageOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_opts_ps_opts_manage_proto_rawDesc, - NumEnums: 0, - NumMessages: 7, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_opts_ps_opts_manage_proto_goTypes, - DependencyIndexes: file_opts_ps_opts_manage_proto_depIdxs, - MessageInfos: file_opts_ps_opts_manage_proto_msgTypes, - }.Build() - File_opts_ps_opts_manage_proto = out.File - file_opts_ps_opts_manage_proto_rawDesc = nil - file_opts_ps_opts_manage_proto_goTypes = nil - file_opts_ps_opts_manage_proto_depIdxs = nil -} diff --git a/build/go/protos/opts/ps_opts_manage_connection.pb.go b/build/go/protos/opts/ps_opts_manage_connection.pb.go deleted file mode 100644 index 6be51fb..0000000 --- a/build/go/protos/opts/ps_opts_manage_connection.pb.go +++ /dev/null @@ -1,633 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: opts/ps_opts_manage_connection.proto - -package opts - -import ( - args "github.com/batchcorp/plumber-schemas/build/go/protos/args" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 GetConnectionOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='ID of the connection to get (leave empty to get all)'" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the connection to get (leave empty to get all)'"` -} - -func (x *GetConnectionOptions) Reset() { - *x = GetConnectionOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_connection_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetConnectionOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetConnectionOptions) ProtoMessage() {} - -func (x *GetConnectionOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_connection_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetConnectionOptions.ProtoReflect.Descriptor instead. -func (*GetConnectionOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_connection_proto_rawDescGZIP(), []int{0} -} - -func (x *GetConnectionOptions) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type CreateConnectionOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='Friendly name for the connection', required" - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" kong:"help='Friendly name for the connection', required"` - // @gotags: kong:"help='Optional notes to associate with the connection'" - Notes string `protobuf:"bytes,2,opt,name=notes,proto3" json:"notes,omitempty" kong:"help='Optional notes to associate with the connection'"` - // @gotags: kong:"cmd,help='Apache Kafka'" - Kafka *args.KafkaConn `protobuf:"bytes,100,opt,name=kafka,proto3" json:"kafka,omitempty" kong:"cmd,help='Apache Kafka'"` - // @gotags: kong:"cmd,help='ActiveMQ'" - ActiveMq *args.ActiveMQConn `protobuf:"bytes,101,opt,name=active_mq,json=activeMq,proto3" json:"active_mq,omitempty" kong:"cmd,help='ActiveMQ'"` - // @gotags: kong:"cmd,help='AWS Simple Queue Service'" - AwsSqs *args.AWSSQSConn `protobuf:"bytes,102,opt,name=aws_sqs,json=awsSqs,proto3" json:"aws_sqs,omitempty" kong:"cmd,help='AWS Simple Queue Service'"` - // @gotags: kong:"cmd,help='AWS Simple Notification Service'" - AwsSns *args.AWSSNSConn `protobuf:"bytes,103,opt,name=aws_sns,json=awsSns,proto3" json:"aws_sns,omitempty" kong:"cmd,help='AWS Simple Notification Service'"` - // @gotags: kong:"cmd,help='Mongo (CDC)'" - Mongo *args.MongoConn `protobuf:"bytes,104,opt,name=mongo,proto3" json:"mongo,omitempty" kong:"cmd,help='Mongo (CDC)'"` - // @gotags: kong:"cmd,help='NATS PubSub'" - Nats *args.NatsConn `protobuf:"bytes,105,opt,name=nats,proto3" json:"nats,omitempty" kong:"cmd,help='NATS PubSub'"` - // @gotags: kong:"cmd,help='NATS Streaming (deprecated)'" - NatsStreaming *args.NatsStreamingConn `protobuf:"bytes,106,opt,name=nats_streaming,json=natsStreaming,proto3" json:"nats_streaming,omitempty" kong:"cmd,help='NATS Streaming (deprecated)'"` - // @gotags: kong:"cmd,help='NSQ'" - Nsq *args.NSQConn `protobuf:"bytes,107,opt,name=nsq,proto3" json:"nsq,omitempty" kong:"cmd,help='NSQ'"` - // @gotags: kong:"cmd,help='PostgreSQL (CDC)'" - Postgres *args.PostgresConn `protobuf:"bytes,108,opt,name=postgres,proto3" json:"postgres,omitempty" kong:"cmd,help='PostgreSQL (CDC)'"` - // @gotags: kong:"cmd,help='Pulsar'" - Pulsar *args.PulsarConn `protobuf:"bytes,109,opt,name=pulsar,proto3" json:"pulsar,omitempty" kong:"cmd,help='Pulsar'"` - // @gotags: kong:"cmd,help='Rabbit'" - Rabbit *args.RabbitConn `protobuf:"bytes,110,opt,name=rabbit,proto3" json:"rabbit,omitempty" kong:"cmd,help='Rabbit'"` - // @gotags: kong:"cmd,help='Rabbit Streams'" - RabbitStreams *args.RabbitStreamsConn `protobuf:"bytes,111,opt,name=rabbit_streams,json=rabbitStreams,proto3" json:"rabbit_streams,omitempty" kong:"cmd,help='Rabbit Streams'"` - // @gotags: kong:"cmd,help='Redis PubSub'" - RedisPubsub *args.RedisPubSubConn `protobuf:"bytes,112,opt,name=redis_pubsub,json=redisPubsub,proto3" json:"redis_pubsub,omitempty" kong:"cmd,help='Redis PubSub'"` - // @gotags: kong:"cmd,help='Redis Streams'" - RedisStreams *args.RedisStreamsConn `protobuf:"bytes,113,opt,name=redis_streams,json=redisStreams,proto3" json:"redis_streams,omitempty" kong:"cmd,help='Redis Streams'"` - // @gotags: kong:"cmd,help='Azure Event Hub'" - AzureEventHub *args.AzureEventHubConn `protobuf:"bytes,114,opt,name=azure_event_hub,json=azureEventHub,proto3" json:"azure_event_hub,omitempty" kong:"cmd,help='Azure Event Hub'"` - // @gotags: kong:"cmd,help='Azure Service Bus'" - AzureServiceBus *args.AzureServiceBusConn `protobuf:"bytes,115,opt,name=azure_service_bus,json=azureServiceBus,proto3" json:"azure_service_bus,omitempty" kong:"cmd,help='Azure Service Bus'"` - // @gotags: kong:"cmd,help='MQTT'" - Mqtt *args.MQTTConn `protobuf:"bytes,116,opt,name=mqtt,proto3" json:"mqtt,omitempty" kong:"cmd,help='MQTT'"` - // @gotags: kong:"cmd,help='KubeMQ Queue'" - KubemqQueue *args.KubeMQQueueConn `protobuf:"bytes,117,opt,name=kubemq_queue,json=kubemqQueue,proto3" json:"kubemq_queue,omitempty" kong:"cmd,help='KubeMQ Queue'"` - // @gotags: kong:"cmd,help='Google Cloud Pub/Sub'" - GcpPubsub *args.GCPPubSubConn `protobuf:"bytes,118,opt,name=gcp_pubsub,json=gcpPubsub,proto3" json:"gcp_pubsub,omitempty" kong:"cmd,help='Google Cloud Pub/Sub'"` - // @gotags: kong:"cmd,help='NATS JetStream'" - NatsJetstream *args.NatsJetstreamConn `protobuf:"bytes,119,opt,name=nats_jetstream,json=natsJetstream,proto3" json:"nats_jetstream,omitempty" kong:"cmd,help='NATS JetStream'"` - // @gotags: kong:"cmd,help='AWS Kinesis'" - AwsKinesis *args.AWSKinesisConn `protobuf:"bytes,120,opt,name=aws_kinesis,json=awsKinesis,proto3" json:"aws_kinesis,omitempty" kong:"cmd,help='AWS Kinesis'"` -} - -func (x *CreateConnectionOptions) Reset() { - *x = CreateConnectionOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_connection_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateConnectionOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateConnectionOptions) ProtoMessage() {} - -func (x *CreateConnectionOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_connection_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateConnectionOptions.ProtoReflect.Descriptor instead. -func (*CreateConnectionOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_connection_proto_rawDescGZIP(), []int{1} -} - -func (x *CreateConnectionOptions) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateConnectionOptions) GetNotes() string { - if x != nil { - return x.Notes - } - return "" -} - -func (x *CreateConnectionOptions) GetKafka() *args.KafkaConn { - if x != nil { - return x.Kafka - } - return nil -} - -func (x *CreateConnectionOptions) GetActiveMq() *args.ActiveMQConn { - if x != nil { - return x.ActiveMq - } - return nil -} - -func (x *CreateConnectionOptions) GetAwsSqs() *args.AWSSQSConn { - if x != nil { - return x.AwsSqs - } - return nil -} - -func (x *CreateConnectionOptions) GetAwsSns() *args.AWSSNSConn { - if x != nil { - return x.AwsSns - } - return nil -} - -func (x *CreateConnectionOptions) GetMongo() *args.MongoConn { - if x != nil { - return x.Mongo - } - return nil -} - -func (x *CreateConnectionOptions) GetNats() *args.NatsConn { - if x != nil { - return x.Nats - } - return nil -} - -func (x *CreateConnectionOptions) GetNatsStreaming() *args.NatsStreamingConn { - if x != nil { - return x.NatsStreaming - } - return nil -} - -func (x *CreateConnectionOptions) GetNsq() *args.NSQConn { - if x != nil { - return x.Nsq - } - return nil -} - -func (x *CreateConnectionOptions) GetPostgres() *args.PostgresConn { - if x != nil { - return x.Postgres - } - return nil -} - -func (x *CreateConnectionOptions) GetPulsar() *args.PulsarConn { - if x != nil { - return x.Pulsar - } - return nil -} - -func (x *CreateConnectionOptions) GetRabbit() *args.RabbitConn { - if x != nil { - return x.Rabbit - } - return nil -} - -func (x *CreateConnectionOptions) GetRabbitStreams() *args.RabbitStreamsConn { - if x != nil { - return x.RabbitStreams - } - return nil -} - -func (x *CreateConnectionOptions) GetRedisPubsub() *args.RedisPubSubConn { - if x != nil { - return x.RedisPubsub - } - return nil -} - -func (x *CreateConnectionOptions) GetRedisStreams() *args.RedisStreamsConn { - if x != nil { - return x.RedisStreams - } - return nil -} - -func (x *CreateConnectionOptions) GetAzureEventHub() *args.AzureEventHubConn { - if x != nil { - return x.AzureEventHub - } - return nil -} - -func (x *CreateConnectionOptions) GetAzureServiceBus() *args.AzureServiceBusConn { - if x != nil { - return x.AzureServiceBus - } - return nil -} - -func (x *CreateConnectionOptions) GetMqtt() *args.MQTTConn { - if x != nil { - return x.Mqtt - } - return nil -} - -func (x *CreateConnectionOptions) GetKubemqQueue() *args.KubeMQQueueConn { - if x != nil { - return x.KubemqQueue - } - return nil -} - -func (x *CreateConnectionOptions) GetGcpPubsub() *args.GCPPubSubConn { - if x != nil { - return x.GcpPubsub - } - return nil -} - -func (x *CreateConnectionOptions) GetNatsJetstream() *args.NatsJetstreamConn { - if x != nil { - return x.NatsJetstream - } - return nil -} - -func (x *CreateConnectionOptions) GetAwsKinesis() *args.AWSKinesisConn { - if x != nil { - return x.AwsKinesis - } - return nil -} - -type DeleteConnectionOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='ID of the connection to delete',required=true" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the connection to delete',required=true"` -} - -func (x *DeleteConnectionOptions) Reset() { - *x = DeleteConnectionOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_connection_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteConnectionOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteConnectionOptions) ProtoMessage() {} - -func (x *DeleteConnectionOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_connection_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteConnectionOptions.ProtoReflect.Descriptor instead. -func (*DeleteConnectionOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_connection_proto_rawDescGZIP(), []int{2} -} - -func (x *DeleteConnectionOptions) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -var File_opts_ps_opts_manage_connection_proto protoreflect.FileDescriptor - -var file_opts_ps_opts_manage_connection_proto_rawDesc = []byte{ - 0x0a, 0x24, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, - 0x70, 0x74, 0x73, 0x1a, 0x1b, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, - 0x73, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6d, 0x71, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1e, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, - 0x77, 0x73, 0x5f, 0x6b, 0x69, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1a, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, - 0x77, 0x73, 0x5f, 0x73, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x61, 0x72, - 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, 0x77, 0x73, 0x5f, 0x73, - 0x71, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, - 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x5f, 0x68, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x61, 0x72, - 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, 0x7a, 0x75, 0x72, 0x65, - 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1d, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, - 0x5f, 0x67, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x18, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, - 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x61, 0x72, 0x67, - 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6b, 0x75, 0x62, 0x65, 0x6d, 0x71, - 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x61, 0x72, - 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, - 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6d, 0x71, 0x74, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x17, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x61, - 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, - 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x6a, 0x65, 0x74, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x61, 0x72, 0x67, - 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, - 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x73, 0x71, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, - 0x61, 0x72, 0x67, 0x73, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, - 0x73, 0x5f, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, - 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x61, 0x62, - 0x62, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x61, 0x72, 0x67, 0x73, 0x2f, - 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x5f, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x61, 0x72, - 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x73, - 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x61, - 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x65, 0x64, 0x69, - 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x26, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xfc, 0x09, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x0a, - 0x05, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, - 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x05, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x12, 0x36, 0x0a, 0x09, 0x61, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6d, 0x71, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x63, 0x74, - 0x69, 0x76, 0x65, 0x4d, 0x51, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, - 0x65, 0x4d, 0x71, 0x12, 0x30, 0x0a, 0x07, 0x61, 0x77, 0x73, 0x5f, 0x73, 0x71, 0x73, 0x18, 0x66, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, - 0x67, 0x73, 0x2e, 0x41, 0x57, 0x53, 0x53, 0x51, 0x53, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x06, 0x61, - 0x77, 0x73, 0x53, 0x71, 0x73, 0x12, 0x30, 0x0a, 0x07, 0x61, 0x77, 0x73, 0x5f, 0x73, 0x6e, 0x73, - 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x57, 0x53, 0x53, 0x4e, 0x53, 0x43, 0x6f, 0x6e, 0x6e, 0x52, - 0x06, 0x61, 0x77, 0x73, 0x53, 0x6e, 0x73, 0x12, 0x2c, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, - 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x05, - 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x12, 0x29, 0x0a, 0x04, 0x6e, 0x61, 0x74, 0x73, 0x18, 0x69, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, - 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x74, 0x73, - 0x12, 0x45, 0x0a, 0x0e, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x18, 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x0d, 0x6e, 0x61, 0x74, 0x73, 0x53, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x03, 0x6e, 0x73, 0x71, 0x18, 0x6b, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, - 0x67, 0x73, 0x2e, 0x4e, 0x53, 0x51, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x03, 0x6e, 0x73, 0x71, 0x12, - 0x35, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x18, 0x6c, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, - 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x08, 0x70, 0x6f, - 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x12, 0x2f, 0x0a, 0x06, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, - 0x18, 0x6d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x61, 0x72, 0x67, 0x73, 0x2e, 0x50, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x52, - 0x06, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x12, 0x2f, 0x0a, 0x06, 0x72, 0x61, 0x62, 0x62, 0x69, - 0x74, 0x18, 0x6e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x61, 0x62, 0x62, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x6e, - 0x52, 0x06, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x12, 0x45, 0x0a, 0x0e, 0x72, 0x61, 0x62, 0x62, - 0x69, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x6f, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, - 0x61, 0x62, 0x62, 0x69, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x43, 0x6f, 0x6e, 0x6e, - 0x52, 0x0d, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, - 0x3f, 0x0a, 0x0c, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x18, - 0x70, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, - 0x72, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x43, - 0x6f, 0x6e, 0x6e, 0x52, 0x0b, 0x72, 0x65, 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, - 0x12, 0x42, 0x0a, 0x0d, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x73, 0x18, 0x71, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x0c, 0x72, 0x65, 0x64, 0x69, 0x73, 0x53, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x73, 0x12, 0x46, 0x0a, 0x0f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x75, 0x62, 0x18, 0x72, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x7a, 0x75, 0x72, - 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x75, 0x62, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x0d, 0x61, - 0x7a, 0x75, 0x72, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x75, 0x62, 0x12, 0x4c, 0x0a, 0x11, - 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x62, 0x75, - 0x73, 0x18, 0x73, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x42, 0x75, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x0f, 0x61, 0x7a, 0x75, 0x72, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x73, 0x12, 0x29, 0x0a, 0x04, 0x6d, 0x71, - 0x74, 0x74, 0x18, 0x74, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4d, 0x51, 0x54, 0x54, 0x43, 0x6f, 0x6e, 0x6e, 0x52, - 0x04, 0x6d, 0x71, 0x74, 0x74, 0x12, 0x3f, 0x0a, 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x6d, 0x71, 0x5f, - 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x75, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x4d, 0x51, - 0x51, 0x75, 0x65, 0x75, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x0b, 0x6b, 0x75, 0x62, 0x65, 0x6d, - 0x71, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x67, 0x63, 0x70, 0x5f, 0x70, 0x75, - 0x62, 0x73, 0x75, 0x62, 0x18, 0x76, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x47, 0x43, 0x50, 0x50, 0x75, 0x62, 0x53, - 0x75, 0x62, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x09, 0x67, 0x63, 0x70, 0x50, 0x75, 0x62, 0x73, 0x75, - 0x62, 0x12, 0x45, 0x0a, 0x0e, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x6a, 0x65, 0x74, 0x73, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x18, 0x77, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x4a, 0x65, 0x74, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x0d, 0x6e, 0x61, 0x74, 0x73, 0x4a, - 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x3c, 0x0a, 0x0b, 0x61, 0x77, 0x73, 0x5f, - 0x6b, 0x69, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x18, 0x78, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x57, 0x53, 0x4b, - 0x69, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x0a, 0x61, 0x77, 0x73, 0x4b, - 0x69, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x22, 0x29, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x70, 0x6c, 0x75, 0x6d, 0x62, 0x65, - 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, - 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6f, 0x70, 0x74, 0x73, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_opts_ps_opts_manage_connection_proto_rawDescOnce sync.Once - file_opts_ps_opts_manage_connection_proto_rawDescData = file_opts_ps_opts_manage_connection_proto_rawDesc -) - -func file_opts_ps_opts_manage_connection_proto_rawDescGZIP() []byte { - file_opts_ps_opts_manage_connection_proto_rawDescOnce.Do(func() { - file_opts_ps_opts_manage_connection_proto_rawDescData = protoimpl.X.CompressGZIP(file_opts_ps_opts_manage_connection_proto_rawDescData) - }) - return file_opts_ps_opts_manage_connection_proto_rawDescData -} - -var file_opts_ps_opts_manage_connection_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_opts_ps_opts_manage_connection_proto_goTypes = []interface{}{ - (*GetConnectionOptions)(nil), // 0: protos.opts.GetConnectionOptions - (*CreateConnectionOptions)(nil), // 1: protos.opts.CreateConnectionOptions - (*DeleteConnectionOptions)(nil), // 2: protos.opts.DeleteConnectionOptions - (*args.KafkaConn)(nil), // 3: protos.args.KafkaConn - (*args.ActiveMQConn)(nil), // 4: protos.args.ActiveMQConn - (*args.AWSSQSConn)(nil), // 5: protos.args.AWSSQSConn - (*args.AWSSNSConn)(nil), // 6: protos.args.AWSSNSConn - (*args.MongoConn)(nil), // 7: protos.args.MongoConn - (*args.NatsConn)(nil), // 8: protos.args.NatsConn - (*args.NatsStreamingConn)(nil), // 9: protos.args.NatsStreamingConn - (*args.NSQConn)(nil), // 10: protos.args.NSQConn - (*args.PostgresConn)(nil), // 11: protos.args.PostgresConn - (*args.PulsarConn)(nil), // 12: protos.args.PulsarConn - (*args.RabbitConn)(nil), // 13: protos.args.RabbitConn - (*args.RabbitStreamsConn)(nil), // 14: protos.args.RabbitStreamsConn - (*args.RedisPubSubConn)(nil), // 15: protos.args.RedisPubSubConn - (*args.RedisStreamsConn)(nil), // 16: protos.args.RedisStreamsConn - (*args.AzureEventHubConn)(nil), // 17: protos.args.AzureEventHubConn - (*args.AzureServiceBusConn)(nil), // 18: protos.args.AzureServiceBusConn - (*args.MQTTConn)(nil), // 19: protos.args.MQTTConn - (*args.KubeMQQueueConn)(nil), // 20: protos.args.KubeMQQueueConn - (*args.GCPPubSubConn)(nil), // 21: protos.args.GCPPubSubConn - (*args.NatsJetstreamConn)(nil), // 22: protos.args.NatsJetstreamConn - (*args.AWSKinesisConn)(nil), // 23: protos.args.AWSKinesisConn -} -var file_opts_ps_opts_manage_connection_proto_depIdxs = []int32{ - 3, // 0: protos.opts.CreateConnectionOptions.kafka:type_name -> protos.args.KafkaConn - 4, // 1: protos.opts.CreateConnectionOptions.active_mq:type_name -> protos.args.ActiveMQConn - 5, // 2: protos.opts.CreateConnectionOptions.aws_sqs:type_name -> protos.args.AWSSQSConn - 6, // 3: protos.opts.CreateConnectionOptions.aws_sns:type_name -> protos.args.AWSSNSConn - 7, // 4: protos.opts.CreateConnectionOptions.mongo:type_name -> protos.args.MongoConn - 8, // 5: protos.opts.CreateConnectionOptions.nats:type_name -> protos.args.NatsConn - 9, // 6: protos.opts.CreateConnectionOptions.nats_streaming:type_name -> protos.args.NatsStreamingConn - 10, // 7: protos.opts.CreateConnectionOptions.nsq:type_name -> protos.args.NSQConn - 11, // 8: protos.opts.CreateConnectionOptions.postgres:type_name -> protos.args.PostgresConn - 12, // 9: protos.opts.CreateConnectionOptions.pulsar:type_name -> protos.args.PulsarConn - 13, // 10: protos.opts.CreateConnectionOptions.rabbit:type_name -> protos.args.RabbitConn - 14, // 11: protos.opts.CreateConnectionOptions.rabbit_streams:type_name -> protos.args.RabbitStreamsConn - 15, // 12: protos.opts.CreateConnectionOptions.redis_pubsub:type_name -> protos.args.RedisPubSubConn - 16, // 13: protos.opts.CreateConnectionOptions.redis_streams:type_name -> protos.args.RedisStreamsConn - 17, // 14: protos.opts.CreateConnectionOptions.azure_event_hub:type_name -> protos.args.AzureEventHubConn - 18, // 15: protos.opts.CreateConnectionOptions.azure_service_bus:type_name -> protos.args.AzureServiceBusConn - 19, // 16: protos.opts.CreateConnectionOptions.mqtt:type_name -> protos.args.MQTTConn - 20, // 17: protos.opts.CreateConnectionOptions.kubemq_queue:type_name -> protos.args.KubeMQQueueConn - 21, // 18: protos.opts.CreateConnectionOptions.gcp_pubsub:type_name -> protos.args.GCPPubSubConn - 22, // 19: protos.opts.CreateConnectionOptions.nats_jetstream:type_name -> protos.args.NatsJetstreamConn - 23, // 20: protos.opts.CreateConnectionOptions.aws_kinesis:type_name -> protos.args.AWSKinesisConn - 21, // [21:21] is the sub-list for method output_type - 21, // [21:21] is the sub-list for method input_type - 21, // [21:21] is the sub-list for extension type_name - 21, // [21:21] is the sub-list for extension extendee - 0, // [0:21] is the sub-list for field type_name -} - -func init() { file_opts_ps_opts_manage_connection_proto_init() } -func file_opts_ps_opts_manage_connection_proto_init() { - if File_opts_ps_opts_manage_connection_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_opts_ps_opts_manage_connection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetConnectionOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_connection_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateConnectionOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_connection_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteConnectionOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_opts_ps_opts_manage_connection_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_opts_ps_opts_manage_connection_proto_goTypes, - DependencyIndexes: file_opts_ps_opts_manage_connection_proto_depIdxs, - MessageInfos: file_opts_ps_opts_manage_connection_proto_msgTypes, - }.Build() - File_opts_ps_opts_manage_connection_proto = out.File - file_opts_ps_opts_manage_connection_proto_rawDesc = nil - file_opts_ps_opts_manage_connection_proto_goTypes = nil - file_opts_ps_opts_manage_connection_proto_depIdxs = nil -} diff --git a/build/go/protos/opts/ps_opts_manage_relay.pb.go b/build/go/protos/opts/ps_opts_manage_relay.pb.go deleted file mode 100644 index 46f3d24..0000000 --- a/build/go/protos/opts/ps_opts_manage_relay.pb.go +++ /dev/null @@ -1,747 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: opts/ps_opts_manage_relay.proto - -package opts - -import ( - args "github.com/batchcorp/plumber-schemas/build/go/protos/args" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 GetRelayOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='ID of the relay to get (leave empty to get all)'" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the relay to get (leave empty to get all)'"` -} - -func (x *GetRelayOptions) Reset() { - *x = GetRelayOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_relay_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetRelayOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRelayOptions) ProtoMessage() {} - -func (x *GetRelayOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_relay_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetRelayOptions.ProtoReflect.Descriptor instead. -func (*GetRelayOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_relay_proto_rawDescGZIP(), []int{0} -} - -func (x *GetRelayOptions) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type CreateRelayOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='ID of the connection to use',required" - ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" kong:"help='ID of the connection to use',required"` - // @gotags: kong:"help='Secret collection token',required" - CollectionToken string `protobuf:"bytes,2,opt,name=collection_token,json=collectionToken,proto3" json:"collection_token,omitempty" kong:"help='Secret collection token',required"` - // @gotags: kong:"help='How many messages to send in a single batch',default=1000" - BatchSize int32 `protobuf:"varint,3,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty" kong:"help='How many messages to send in a single batch',default=1000"` - // @gotags: kong:"help='How many times plumber will try re-sending a batch',default=3" - BatchMaxRetry int32 `protobuf:"varint,4,opt,name=batch_max_retry,json=batchMaxRetry,proto3" json:"batch_max_retry,omitempty" kong:"help='How many times plumber will try re-sending a batch',default=3"` - // @gotags: kong:"help='How many workers to launch per relay',default=10" - NumWorkers int32 `protobuf:"varint,5,opt,name=num_workers,json=numWorkers,proto3" json:"num_workers,omitempty" kong:"help='How many workers to launch per relay',default=10"` - // @gotags: kong:"help='Alternative collector to relay events to',default='grpc-collector.streamdal.com:9000'" - StreamdalGrpcAddress string `protobuf:"bytes,6,opt,name=streamdal_grpc_address,json=streamdalGrpcAddress,proto3" json:"streamdal_grpc_address,omitempty" kong:"help='Alternative collector to relay events to',default='grpc-collector.streamdal.com:9000'"` - // @gotags: kong:"help='Whether to use TLS with collector'" - StreamdalGrpcDisableTls bool `protobuf:"varint,7,opt,name=streamdal_grpc_disable_tls,json=streamdalGrpcDisableTls,proto3" json:"streamdal_grpc_disable_tls,omitempty" kong:"help='Whether to use TLS with collector'"` - // @gotags: kong:"help='How long to wait before giving up talking to the gRPC collector',default=5" - StreamdalGrpcTimeoutSeconds int32 `protobuf:"varint,8,opt,name=streamdal_grpc_timeout_seconds,json=streamdalGrpcTimeoutSeconds,proto3" json:"streamdal_grpc_timeout_seconds,omitempty" kong:"help='How long to wait before giving up talking to the gRPC collector',default=5"` - // @gotags: kong:"help='Consumed messages are intended to be dead-lettered'" - DeadLetter bool `protobuf:"varint,9,opt,name=dead_letter,json=deadLetter,proto3" json:"dead_letter,omitempty" kong:"help='Consumed messages are intended to be dead-lettered'"` - // @gotags: kong:"cmd,help='Apache Kafka'" - Kafka *args.KafkaRelayArgs `protobuf:"bytes,100,opt,name=kafka,proto3" json:"kafka,omitempty" kong:"cmd,help='Apache Kafka'"` - // @gotags: kong:"cmd,help='AWS Simple Queue System'" - AwsSqs *args.AWSSQSRelayArgs `protobuf:"bytes,101,opt,name=aws_sqs,json=awsSqs,proto3" json:"aws_sqs,omitempty" kong:"cmd,help='AWS Simple Queue System'"` - // @gotags: kong:"cmd,help='MongoDB (CDC)'" - Mongo *args.MongoReadArgs `protobuf:"bytes,102,opt,name=mongo,proto3" json:"mongo,omitempty" kong:"cmd,help='MongoDB (CDC)'"` - // @gotags: kong:"cmd,help='NSQ'" - Nsq *args.NSQReadArgs `protobuf:"bytes,103,opt,name=nsq,proto3" json:"nsq,omitempty" kong:"cmd,help='NSQ'"` - // @gotags: kong:"cmd,help='MQTT'" - Rabbit *args.RabbitReadArgs `protobuf:"bytes,104,opt,name=rabbit,proto3" json:"rabbit,omitempty" kong:"cmd,help='MQTT'"` - // @gotags: kong:"cmd,help='MQTT'" - Mqtt *args.MQTTReadArgs `protobuf:"bytes,105,opt,name=mqtt,proto3" json:"mqtt,omitempty" kong:"cmd,help='MQTT'"` - // @gotags: kong:"cmd,help='Azure Service Bus'" - AzureServiceBus *args.AzureServiceBusReadArgs `protobuf:"bytes,106,opt,name=azure_service_bus,json=azureServiceBus,proto3" json:"azure_service_bus,omitempty" kong:"cmd,help='Azure Service Bus'"` - // @gotags: kong:"cmd,help='Google Cloud Platform Pub/Sub'" - GcpPubsub *args.GCPPubSubReadArgs `protobuf:"bytes,107,opt,name=gcp_pubsub,json=gcpPubsub,proto3" json:"gcp_pubsub,omitempty" kong:"cmd,help='Google Cloud Platform Pub/Sub'"` - // @gotags: kong:"cmd,help='KubeMQ Queue'" - KubemqQueue *args.KubeMQQueueReadArgs `protobuf:"bytes,108,opt,name=kubemq_queue,json=kubemqQueue,proto3" json:"kubemq_queue,omitempty" kong:"cmd,help='KubeMQ Queue'"` - // @gotags: kong:"cmd,help='Redis PubSub'" - RedisPubsub *args.RedisPubSubReadArgs `protobuf:"bytes,109,opt,name=redis_pubsub,json=redisPubsub,proto3" json:"redis_pubsub,omitempty" kong:"cmd,help='Redis PubSub'"` - // @gotags: kong:"cmd,help='Redis Streams'" - RedisStreams *args.RedisStreamsReadArgs `protobuf:"bytes,111,opt,name=redis_streams,json=redisStreams,proto3" json:"redis_streams,omitempty" kong:"cmd,help='Redis Streams'"` - // @gotags: kong:"cmd,help='PostgreSQL (CDC)'" - Postgres *args.PostgresReadArgs `protobuf:"bytes,112,opt,name=postgres,proto3" json:"postgres,omitempty" kong:"cmd,help='PostgreSQL (CDC)'"` - // @gotags: kong:"cmd,help='NATS'" - Nats *args.NatsReadArgs `protobuf:"bytes,113,opt,name=nats,proto3" json:"nats,omitempty" kong:"cmd,help='NATS'"` - // @gotags: kong:"cmd,help='NATS Streaming'" - NatsStreaming *args.NatsStreamingReadArgs `protobuf:"bytes,114,opt,name=nats_streaming,json=natsStreaming,proto3" json:"nats_streaming,omitempty" kong:"cmd,help='NATS Streaming'"` - // @gotags: kong:"cmd,help='NATS JetStream'" - NatsJetstream *args.NatsJetstreamReadArgs `protobuf:"bytes,115,opt,name=nats_jetstream,json=natsJetstream,proto3" json:"nats_jetstream,omitempty" kong:"cmd,help='NATS JetStream'"` -} - -func (x *CreateRelayOptions) Reset() { - *x = CreateRelayOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_relay_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateRelayOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateRelayOptions) ProtoMessage() {} - -func (x *CreateRelayOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_relay_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateRelayOptions.ProtoReflect.Descriptor instead. -func (*CreateRelayOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_relay_proto_rawDescGZIP(), []int{1} -} - -func (x *CreateRelayOptions) GetConnectionId() string { - if x != nil { - return x.ConnectionId - } - return "" -} - -func (x *CreateRelayOptions) GetCollectionToken() string { - if x != nil { - return x.CollectionToken - } - return "" -} - -func (x *CreateRelayOptions) GetBatchSize() int32 { - if x != nil { - return x.BatchSize - } - return 0 -} - -func (x *CreateRelayOptions) GetBatchMaxRetry() int32 { - if x != nil { - return x.BatchMaxRetry - } - return 0 -} - -func (x *CreateRelayOptions) GetNumWorkers() int32 { - if x != nil { - return x.NumWorkers - } - return 0 -} - -func (x *CreateRelayOptions) GetStreamdalGrpcAddress() string { - if x != nil { - return x.StreamdalGrpcAddress - } - return "" -} - -func (x *CreateRelayOptions) GetStreamdalGrpcDisableTls() bool { - if x != nil { - return x.StreamdalGrpcDisableTls - } - return false -} - -func (x *CreateRelayOptions) GetStreamdalGrpcTimeoutSeconds() int32 { - if x != nil { - return x.StreamdalGrpcTimeoutSeconds - } - return 0 -} - -func (x *CreateRelayOptions) GetDeadLetter() bool { - if x != nil { - return x.DeadLetter - } - return false -} - -func (x *CreateRelayOptions) GetKafka() *args.KafkaRelayArgs { - if x != nil { - return x.Kafka - } - return nil -} - -func (x *CreateRelayOptions) GetAwsSqs() *args.AWSSQSRelayArgs { - if x != nil { - return x.AwsSqs - } - return nil -} - -func (x *CreateRelayOptions) GetMongo() *args.MongoReadArgs { - if x != nil { - return x.Mongo - } - return nil -} - -func (x *CreateRelayOptions) GetNsq() *args.NSQReadArgs { - if x != nil { - return x.Nsq - } - return nil -} - -func (x *CreateRelayOptions) GetRabbit() *args.RabbitReadArgs { - if x != nil { - return x.Rabbit - } - return nil -} - -func (x *CreateRelayOptions) GetMqtt() *args.MQTTReadArgs { - if x != nil { - return x.Mqtt - } - return nil -} - -func (x *CreateRelayOptions) GetAzureServiceBus() *args.AzureServiceBusReadArgs { - if x != nil { - return x.AzureServiceBus - } - return nil -} - -func (x *CreateRelayOptions) GetGcpPubsub() *args.GCPPubSubReadArgs { - if x != nil { - return x.GcpPubsub - } - return nil -} - -func (x *CreateRelayOptions) GetKubemqQueue() *args.KubeMQQueueReadArgs { - if x != nil { - return x.KubemqQueue - } - return nil -} - -func (x *CreateRelayOptions) GetRedisPubsub() *args.RedisPubSubReadArgs { - if x != nil { - return x.RedisPubsub - } - return nil -} - -func (x *CreateRelayOptions) GetRedisStreams() *args.RedisStreamsReadArgs { - if x != nil { - return x.RedisStreams - } - return nil -} - -func (x *CreateRelayOptions) GetPostgres() *args.PostgresReadArgs { - if x != nil { - return x.Postgres - } - return nil -} - -func (x *CreateRelayOptions) GetNats() *args.NatsReadArgs { - if x != nil { - return x.Nats - } - return nil -} - -func (x *CreateRelayOptions) GetNatsStreaming() *args.NatsStreamingReadArgs { - if x != nil { - return x.NatsStreaming - } - return nil -} - -func (x *CreateRelayOptions) GetNatsJetstream() *args.NatsJetstreamReadArgs { - if x != nil { - return x.NatsJetstream - } - return nil -} - -type DeleteRelayOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='ID of the relay to delete',required=true" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the relay to delete',required=true"` -} - -func (x *DeleteRelayOptions) Reset() { - *x = DeleteRelayOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_relay_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteRelayOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteRelayOptions) ProtoMessage() {} - -func (x *DeleteRelayOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_relay_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteRelayOptions.ProtoReflect.Descriptor instead. -func (*DeleteRelayOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_relay_proto_rawDescGZIP(), []int{2} -} - -func (x *DeleteRelayOptions) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type StopRelayOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='ID of the relay to stop',required=true" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the relay to stop',required=true"` -} - -func (x *StopRelayOptions) Reset() { - *x = StopRelayOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_relay_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StopRelayOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StopRelayOptions) ProtoMessage() {} - -func (x *StopRelayOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_relay_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StopRelayOptions.ProtoReflect.Descriptor instead. -func (*StopRelayOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_relay_proto_rawDescGZIP(), []int{3} -} - -func (x *StopRelayOptions) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type ResumeRelayOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='ID of the relay to resume',required=true" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the relay to resume',required=true"` -} - -func (x *ResumeRelayOptions) Reset() { - *x = ResumeRelayOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_relay_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResumeRelayOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResumeRelayOptions) ProtoMessage() {} - -func (x *ResumeRelayOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_relay_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResumeRelayOptions.ProtoReflect.Descriptor instead. -func (*ResumeRelayOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_relay_proto_rawDescGZIP(), []int{4} -} - -func (x *ResumeRelayOptions) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -var File_opts_ps_opts_manage_relay_proto protoreflect.FileDescriptor - -var file_opts_ps_opts_manage_relay_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x0b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x1a, 0x1a, - 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, 0x77, 0x73, - 0x5f, 0x73, 0x71, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x61, 0x72, 0x67, 0x73, - 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1d, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x67, - 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x18, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6b, 0x61, - 0x66, 0x6b, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x61, 0x72, 0x67, 0x73, 0x2f, - 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6b, 0x75, 0x62, 0x65, 0x6d, 0x71, 0x5f, 0x71, - 0x75, 0x65, 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x61, 0x72, 0x67, 0x73, - 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, - 0x67, 0x73, 0x5f, 0x6d, 0x71, 0x74, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, - 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x61, 0x74, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, - 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x6a, 0x65, 0x74, 0x73, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x61, 0x72, 0x67, 0x73, 0x2f, - 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x73, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x61, 0x72, - 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x73, 0x71, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, - 0x67, 0x73, 0x5f, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x19, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, - 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x61, 0x72, - 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x73, - 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x61, - 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x65, 0x64, 0x69, - 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x21, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x22, 0xb4, 0x0a, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, - 0x61, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x29, - 0x0a, 0x10, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x62, - 0x61, 0x74, 0x63, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x62, 0x61, 0x74, 0x63, - 0x68, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x0d, 0x62, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x61, 0x78, 0x52, 0x65, 0x74, 0x72, 0x79, - 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x75, 0x6d, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6e, 0x75, 0x6d, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, - 0x73, 0x12, 0x34, 0x0a, 0x16, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x64, 0x61, 0x6c, 0x5f, 0x67, - 0x72, 0x70, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x14, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x64, 0x61, 0x6c, 0x47, 0x72, 0x70, 0x63, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x73, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x64, 0x61, 0x6c, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, - 0x65, 0x5f, 0x74, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x73, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x64, 0x61, 0x6c, 0x47, 0x72, 0x70, 0x63, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, - 0x65, 0x54, 0x6c, 0x73, 0x12, 0x43, 0x0a, 0x1e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x64, 0x61, - 0x6c, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x73, - 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x1b, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x64, 0x61, 0x6c, 0x47, 0x72, 0x70, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x6f, - 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x61, - 0x64, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, - 0x64, 0x65, 0x61, 0x64, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x05, 0x6b, 0x61, - 0x66, 0x6b, 0x61, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x52, 0x65, 0x6c, - 0x61, 0x79, 0x41, 0x72, 0x67, 0x73, 0x52, 0x05, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x12, 0x35, 0x0a, - 0x07, 0x61, 0x77, 0x73, 0x5f, 0x73, 0x71, 0x73, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x57, 0x53, - 0x53, 0x51, 0x53, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x72, 0x67, 0x73, 0x52, 0x06, 0x61, 0x77, - 0x73, 0x53, 0x71, 0x73, 0x12, 0x30, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x18, 0x66, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, - 0x73, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, - 0x05, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x12, 0x2a, 0x0a, 0x03, 0x6e, 0x73, 0x71, 0x18, 0x67, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, - 0x73, 0x2e, 0x4e, 0x53, 0x51, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, 0x03, 0x6e, - 0x73, 0x71, 0x12, 0x33, 0x0a, 0x06, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x18, 0x68, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, - 0x2e, 0x52, 0x61, 0x62, 0x62, 0x69, 0x74, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, - 0x06, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x71, 0x74, 0x74, 0x18, - 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, - 0x72, 0x67, 0x73, 0x2e, 0x4d, 0x51, 0x54, 0x54, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, - 0x52, 0x04, 0x6d, 0x71, 0x74, 0x74, 0x12, 0x50, 0x0a, 0x11, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x73, 0x18, 0x6a, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, - 0x41, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x73, 0x52, - 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, 0x0f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x73, 0x12, 0x3d, 0x0a, 0x0a, 0x67, 0x63, 0x70, 0x5f, - 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x47, 0x43, 0x50, 0x50, 0x75, - 0x62, 0x53, 0x75, 0x62, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, 0x09, 0x67, 0x63, - 0x70, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x12, 0x43, 0x0a, 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x6d, - 0x71, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x6c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, - 0x4d, 0x51, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, - 0x0b, 0x6b, 0x75, 0x62, 0x65, 0x6d, 0x71, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x43, 0x0a, 0x0c, - 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x18, 0x6d, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, - 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x52, 0x65, 0x61, 0x64, - 0x41, 0x72, 0x67, 0x73, 0x52, 0x0b, 0x72, 0x65, 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x73, 0x75, - 0x62, 0x12, 0x46, 0x0a, 0x0d, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x73, 0x18, 0x6f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x73, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, 0x0c, 0x72, 0x65, 0x64, - 0x69, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x39, 0x0a, 0x08, 0x70, 0x6f, 0x73, - 0x74, 0x67, 0x72, 0x65, 0x73, 0x18, 0x70, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, - 0x65, 0x73, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, - 0x67, 0x72, 0x65, 0x73, 0x12, 0x2d, 0x0a, 0x04, 0x6e, 0x61, 0x74, 0x73, 0x18, 0x71, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, - 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x6e, - 0x61, 0x74, 0x73, 0x12, 0x49, 0x0a, 0x0e, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x18, 0x72, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x53, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, - 0x0d, 0x6e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x49, - 0x0a, 0x0e, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x6a, 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x18, 0x73, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x4a, 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, 0x0d, 0x6e, 0x61, 0x74, 0x73, - 0x4a, 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x22, 0x24, 0x0a, 0x12, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, - 0x22, 0x0a, 0x10, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x22, 0x24, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x6c, - 0x61, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, - 0x70, 0x2f, 0x70, 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2f, 0x6f, 0x70, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_opts_ps_opts_manage_relay_proto_rawDescOnce sync.Once - file_opts_ps_opts_manage_relay_proto_rawDescData = file_opts_ps_opts_manage_relay_proto_rawDesc -) - -func file_opts_ps_opts_manage_relay_proto_rawDescGZIP() []byte { - file_opts_ps_opts_manage_relay_proto_rawDescOnce.Do(func() { - file_opts_ps_opts_manage_relay_proto_rawDescData = protoimpl.X.CompressGZIP(file_opts_ps_opts_manage_relay_proto_rawDescData) - }) - return file_opts_ps_opts_manage_relay_proto_rawDescData -} - -var file_opts_ps_opts_manage_relay_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_opts_ps_opts_manage_relay_proto_goTypes = []interface{}{ - (*GetRelayOptions)(nil), // 0: protos.opts.GetRelayOptions - (*CreateRelayOptions)(nil), // 1: protos.opts.CreateRelayOptions - (*DeleteRelayOptions)(nil), // 2: protos.opts.DeleteRelayOptions - (*StopRelayOptions)(nil), // 3: protos.opts.StopRelayOptions - (*ResumeRelayOptions)(nil), // 4: protos.opts.ResumeRelayOptions - (*args.KafkaRelayArgs)(nil), // 5: protos.args.KafkaRelayArgs - (*args.AWSSQSRelayArgs)(nil), // 6: protos.args.AWSSQSRelayArgs - (*args.MongoReadArgs)(nil), // 7: protos.args.MongoReadArgs - (*args.NSQReadArgs)(nil), // 8: protos.args.NSQReadArgs - (*args.RabbitReadArgs)(nil), // 9: protos.args.RabbitReadArgs - (*args.MQTTReadArgs)(nil), // 10: protos.args.MQTTReadArgs - (*args.AzureServiceBusReadArgs)(nil), // 11: protos.args.AzureServiceBusReadArgs - (*args.GCPPubSubReadArgs)(nil), // 12: protos.args.GCPPubSubReadArgs - (*args.KubeMQQueueReadArgs)(nil), // 13: protos.args.KubeMQQueueReadArgs - (*args.RedisPubSubReadArgs)(nil), // 14: protos.args.RedisPubSubReadArgs - (*args.RedisStreamsReadArgs)(nil), // 15: protos.args.RedisStreamsReadArgs - (*args.PostgresReadArgs)(nil), // 16: protos.args.PostgresReadArgs - (*args.NatsReadArgs)(nil), // 17: protos.args.NatsReadArgs - (*args.NatsStreamingReadArgs)(nil), // 18: protos.args.NatsStreamingReadArgs - (*args.NatsJetstreamReadArgs)(nil), // 19: protos.args.NatsJetstreamReadArgs -} -var file_opts_ps_opts_manage_relay_proto_depIdxs = []int32{ - 5, // 0: protos.opts.CreateRelayOptions.kafka:type_name -> protos.args.KafkaRelayArgs - 6, // 1: protos.opts.CreateRelayOptions.aws_sqs:type_name -> protos.args.AWSSQSRelayArgs - 7, // 2: protos.opts.CreateRelayOptions.mongo:type_name -> protos.args.MongoReadArgs - 8, // 3: protos.opts.CreateRelayOptions.nsq:type_name -> protos.args.NSQReadArgs - 9, // 4: protos.opts.CreateRelayOptions.rabbit:type_name -> protos.args.RabbitReadArgs - 10, // 5: protos.opts.CreateRelayOptions.mqtt:type_name -> protos.args.MQTTReadArgs - 11, // 6: protos.opts.CreateRelayOptions.azure_service_bus:type_name -> protos.args.AzureServiceBusReadArgs - 12, // 7: protos.opts.CreateRelayOptions.gcp_pubsub:type_name -> protos.args.GCPPubSubReadArgs - 13, // 8: protos.opts.CreateRelayOptions.kubemq_queue:type_name -> protos.args.KubeMQQueueReadArgs - 14, // 9: protos.opts.CreateRelayOptions.redis_pubsub:type_name -> protos.args.RedisPubSubReadArgs - 15, // 10: protos.opts.CreateRelayOptions.redis_streams:type_name -> protos.args.RedisStreamsReadArgs - 16, // 11: protos.opts.CreateRelayOptions.postgres:type_name -> protos.args.PostgresReadArgs - 17, // 12: protos.opts.CreateRelayOptions.nats:type_name -> protos.args.NatsReadArgs - 18, // 13: protos.opts.CreateRelayOptions.nats_streaming:type_name -> protos.args.NatsStreamingReadArgs - 19, // 14: protos.opts.CreateRelayOptions.nats_jetstream:type_name -> protos.args.NatsJetstreamReadArgs - 15, // [15:15] is the sub-list for method output_type - 15, // [15:15] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name -} - -func init() { file_opts_ps_opts_manage_relay_proto_init() } -func file_opts_ps_opts_manage_relay_proto_init() { - if File_opts_ps_opts_manage_relay_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_opts_ps_opts_manage_relay_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRelayOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_relay_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRelayOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_relay_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteRelayOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_relay_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopRelayOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_relay_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeRelayOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_opts_ps_opts_manage_relay_proto_rawDesc, - NumEnums: 0, - NumMessages: 5, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_opts_ps_opts_manage_relay_proto_goTypes, - DependencyIndexes: file_opts_ps_opts_manage_relay_proto_depIdxs, - MessageInfos: file_opts_ps_opts_manage_relay_proto_msgTypes, - }.Build() - File_opts_ps_opts_manage_relay_proto = out.File - file_opts_ps_opts_manage_relay_proto_rawDesc = nil - file_opts_ps_opts_manage_relay_proto_goTypes = nil - file_opts_ps_opts_manage_relay_proto_depIdxs = nil -} diff --git a/build/go/protos/opts/ps_opts_manage_tunnel.pb.go b/build/go/protos/opts/ps_opts_manage_tunnel.pb.go deleted file mode 100644 index 9804fd4..0000000 --- a/build/go/protos/opts/ps_opts_manage_tunnel.pb.go +++ /dev/null @@ -1,807 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: opts/ps_opts_manage_tunnel.proto - -package opts - -import ( - args "github.com/batchcorp/plumber-schemas/build/go/protos/args" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 GetTunnelOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='ID of the tunnel to get (leave empty to get all)'" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the tunnel to get (leave empty to get all)'"` -} - -func (x *GetTunnelOptions) Reset() { - *x = GetTunnelOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_tunnel_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTunnelOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTunnelOptions) ProtoMessage() {} - -func (x *GetTunnelOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_tunnel_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTunnelOptions.ProtoReflect.Descriptor instead. -func (*GetTunnelOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_tunnel_proto_rawDescGZIP(), []int{0} -} - -func (x *GetTunnelOptions) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type CreateTunnelOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='Connection ID for the tunnel to use',required=true" - ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" kong:"help='Connection ID for the tunnel to use',required=true"` - // @gotags: kong:"help='Streamdal API token (create in settings -> security)',required=true" - TunnelToken string `protobuf:"bytes,3,opt,name=tunnel_token,json=tunnelToken,proto3" json:"tunnel_token,omitempty" kong:"help='Streamdal API token (create in settings -> security)',required=true"` - // @gotags: kong:"help='Name for the tunnel (auto-generated if left empty)'" - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" kong:"help='Name for the tunnel (auto-generated if left empty)'"` - // @gotags: kong:"help='Notes associated with the tunnel'" - Notes string `protobuf:"bytes,5,opt,name=notes,proto3" json:"notes,omitempty" kong:"help='Notes associated with the tunnel'"` - // @gotags: kong:"help='Tunnel API address',default='dproxy.streamdal.com:443'" - XTunnelAddress string `protobuf:"bytes,6,opt,name=_tunnel_address,json=TunnelAddress,proto3" json:"_tunnel_address,omitempty" kong:"help='Tunnel API address',default='dproxy.streamdal.com:443'"` - // @gotags: kong:"help='Tunnel API initial connection timeout',default=5" - XTunnelTimeoutSeconds uint32 `protobuf:"varint,7,opt,name=_tunnel_timeout_seconds,json=TunnelTimeoutSeconds,proto3" json:"_tunnel_timeout_seconds,omitempty" kong:"help='Tunnel API initial connection timeout',default=5"` - // @gotags: kong:"help='Use gRPC insecure mode when talking to Streamdal Tunnel API'" - XTunnelInsecure bool `protobuf:"varint,8,opt,name=_tunnel_insecure,json=TunnelInsecure,proto3" json:"_tunnel_insecure,omitempty" kong:"help='Use gRPC insecure mode when talking to Streamdal Tunnel API'"` - // @gotags: kong:"cmd,help='Apache Kafka'" - Kafka *args.KafkaWriteArgs `protobuf:"bytes,100,opt,name=kafka,proto3" json:"kafka,omitempty" kong:"cmd,help='Apache Kafka'"` - // @gotags: kong:"cmd,help='Apache ActiveMQ'" - Activemq *args.ActiveMQWriteArgs `protobuf:"bytes,101,opt,name=activemq,proto3" json:"activemq,omitempty" kong:"cmd,help='Apache ActiveMQ'"` - // @gotags: kong:"cmd,help='AWS Simple Queue System'" - AwsSqs *args.AWSSQSWriteArgs `protobuf:"bytes,102,opt,name=aws_sqs,json=awsSqs,proto3" json:"aws_sqs,omitempty" kong:"cmd,help='AWS Simple Queue System'"` - // @gotags: kong:"cmd,help='AWS Simple Notification System'" - AwsSns *args.AWSSNSWriteArgs `protobuf:"bytes,103,opt,name=aws_sns,json=awsSns,proto3" json:"aws_sns,omitempty" kong:"cmd,help='AWS Simple Notification System'"` - // @gotags: kong:"cmd,help='NATS'" - Nats *args.NatsWriteArgs `protobuf:"bytes,104,opt,name=nats,proto3" json:"nats,omitempty" kong:"cmd,help='NATS'"` - // @gotags: kong:"cmd,help='NATS Streaming'" - NatsStreaming *args.NatsStreamingWriteArgs `protobuf:"bytes,105,opt,name=nats_streaming,json=natsStreaming,proto3" json:"nats_streaming,omitempty" kong:"cmd,help='NATS Streaming'"` - // @gotags: kong:"cmd,help='NSQ'" - Nsq *args.NSQWriteArgs `protobuf:"bytes,106,opt,name=nsq,proto3" json:"nsq,omitempty" kong:"cmd,help='NSQ'"` - // @gotags: kong:"cmd,help='RabbitMQ'" - Rabbit *args.RabbitWriteArgs `protobuf:"bytes,107,opt,name=rabbit,proto3" json:"rabbit,omitempty" kong:"cmd,help='RabbitMQ'"` - // @gotags: kong:"cmd,help='MQTT'" - Mqtt *args.MQTTWriteArgs `protobuf:"bytes,108,opt,name=mqtt,proto3" json:"mqtt,omitempty" kong:"cmd,help='MQTT'"` - // @gotags: kong:"cmd,help='Azure Service Bus'" - AzureServiceBus *args.AzureServiceBusWriteArgs `protobuf:"bytes,109,opt,name=azure_service_bus,json=azureServiceBus,proto3" json:"azure_service_bus,omitempty" kong:"cmd,help='Azure Service Bus'"` - // @gotags: kong:"cmd,help='Azure Event Hub'" - AzureEventHub *args.AzureEventHubWriteArgs `protobuf:"bytes,110,opt,name=azure_event_hub,json=azureEventHub,proto3" json:"azure_event_hub,omitempty" kong:"cmd,help='Azure Event Hub'"` - // @gotags: kong:"cmd,help='Google Cloud Platform Pub/Sub'" - GcpPubsub *args.GCPPubSubWriteArgs `protobuf:"bytes,111,opt,name=gcp_pubsub,json=gcpPubsub,proto3" json:"gcp_pubsub,omitempty" kong:"cmd,help='Google Cloud Platform Pub/Sub'"` - // @gotags: kong:"cmd,help='KubeMQ Queue'" - KubemqQueue *args.KubeMQQueueWriteArgs `protobuf:"bytes,112,opt,name=kubemq_queue,json=kubemqQueue,proto3" json:"kubemq_queue,omitempty" kong:"cmd,help='KubeMQ Queue'"` - // @gotags: kong:"cmd,help='Redis PubSub'" - RedisPubsub *args.RedisPubSubWriteArgs `protobuf:"bytes,113,opt,name=redis_pubsub,json=redisPubsub,proto3" json:"redis_pubsub,omitempty" kong:"cmd,help='Redis PubSub'"` - // @gotags: kong:"cmd,help='Redis Streams'" - RedisStreams *args.RedisStreamsWriteArgs `protobuf:"bytes,114,opt,name=redis_streams,json=redisStreams,proto3" json:"redis_streams,omitempty" kong:"cmd,help='Redis Streams'"` - // @gotags: kong:"cmd,help='Apache Pulsar'" - Pulsar *args.PulsarWriteArgs `protobuf:"bytes,115,opt,name=pulsar,proto3" json:"pulsar,omitempty" kong:"cmd,help='Apache Pulsar'"` - // @gotags: kong:"cmd,help='RabbitMQ Streams'" - RabbitStreams *args.RabbitStreamsWriteArgs `protobuf:"bytes,116,opt,name=rabbit_streams,json=rabbitStreams,proto3" json:"rabbit_streams,omitempty" kong:"cmd,help='RabbitMQ Streams'"` - // @gotags: kong:"cmd,help='NATS JetStream'" - NatsJetstream *args.NatsJetstreamWriteArgs `protobuf:"bytes,117,opt,name=nats_jetstream,json=natsJetstream,proto3" json:"nats_jetstream,omitempty" kong:"cmd,help='NATS JetStream'"` - // @gotags: kong:"cmd,help='AWS Kinesis Streams'" - AwsKinesis *args.AWSKinesisWriteArgs `protobuf:"bytes,118,opt,name=aws_kinesis,json=awsKinesis,proto3" json:"aws_kinesis,omitempty" kong:"cmd,help='AWS Kinesis Streams'"` - // @gotags: kong:"cmd,help='Memphis'" - Memphis *args.MemphisWriteArgs `protobuf:"bytes,119,opt,name=memphis,proto3" json:"memphis,omitempty" kong:"cmd,help='Memphis'"` -} - -func (x *CreateTunnelOptions) Reset() { - *x = CreateTunnelOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_tunnel_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateTunnelOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateTunnelOptions) ProtoMessage() {} - -func (x *CreateTunnelOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_tunnel_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateTunnelOptions.ProtoReflect.Descriptor instead. -func (*CreateTunnelOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_tunnel_proto_rawDescGZIP(), []int{1} -} - -func (x *CreateTunnelOptions) GetConnectionId() string { - if x != nil { - return x.ConnectionId - } - return "" -} - -func (x *CreateTunnelOptions) GetTunnelToken() string { - if x != nil { - return x.TunnelToken - } - return "" -} - -func (x *CreateTunnelOptions) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateTunnelOptions) GetNotes() string { - if x != nil { - return x.Notes - } - return "" -} - -func (x *CreateTunnelOptions) GetXTunnelAddress() string { - if x != nil { - return x.XTunnelAddress - } - return "" -} - -func (x *CreateTunnelOptions) GetXTunnelTimeoutSeconds() uint32 { - if x != nil { - return x.XTunnelTimeoutSeconds - } - return 0 -} - -func (x *CreateTunnelOptions) GetXTunnelInsecure() bool { - if x != nil { - return x.XTunnelInsecure - } - return false -} - -func (x *CreateTunnelOptions) GetKafka() *args.KafkaWriteArgs { - if x != nil { - return x.Kafka - } - return nil -} - -func (x *CreateTunnelOptions) GetActivemq() *args.ActiveMQWriteArgs { - if x != nil { - return x.Activemq - } - return nil -} - -func (x *CreateTunnelOptions) GetAwsSqs() *args.AWSSQSWriteArgs { - if x != nil { - return x.AwsSqs - } - return nil -} - -func (x *CreateTunnelOptions) GetAwsSns() *args.AWSSNSWriteArgs { - if x != nil { - return x.AwsSns - } - return nil -} - -func (x *CreateTunnelOptions) GetNats() *args.NatsWriteArgs { - if x != nil { - return x.Nats - } - return nil -} - -func (x *CreateTunnelOptions) GetNatsStreaming() *args.NatsStreamingWriteArgs { - if x != nil { - return x.NatsStreaming - } - return nil -} - -func (x *CreateTunnelOptions) GetNsq() *args.NSQWriteArgs { - if x != nil { - return x.Nsq - } - return nil -} - -func (x *CreateTunnelOptions) GetRabbit() *args.RabbitWriteArgs { - if x != nil { - return x.Rabbit - } - return nil -} - -func (x *CreateTunnelOptions) GetMqtt() *args.MQTTWriteArgs { - if x != nil { - return x.Mqtt - } - return nil -} - -func (x *CreateTunnelOptions) GetAzureServiceBus() *args.AzureServiceBusWriteArgs { - if x != nil { - return x.AzureServiceBus - } - return nil -} - -func (x *CreateTunnelOptions) GetAzureEventHub() *args.AzureEventHubWriteArgs { - if x != nil { - return x.AzureEventHub - } - return nil -} - -func (x *CreateTunnelOptions) GetGcpPubsub() *args.GCPPubSubWriteArgs { - if x != nil { - return x.GcpPubsub - } - return nil -} - -func (x *CreateTunnelOptions) GetKubemqQueue() *args.KubeMQQueueWriteArgs { - if x != nil { - return x.KubemqQueue - } - return nil -} - -func (x *CreateTunnelOptions) GetRedisPubsub() *args.RedisPubSubWriteArgs { - if x != nil { - return x.RedisPubsub - } - return nil -} - -func (x *CreateTunnelOptions) GetRedisStreams() *args.RedisStreamsWriteArgs { - if x != nil { - return x.RedisStreams - } - return nil -} - -func (x *CreateTunnelOptions) GetPulsar() *args.PulsarWriteArgs { - if x != nil { - return x.Pulsar - } - return nil -} - -func (x *CreateTunnelOptions) GetRabbitStreams() *args.RabbitStreamsWriteArgs { - if x != nil { - return x.RabbitStreams - } - return nil -} - -func (x *CreateTunnelOptions) GetNatsJetstream() *args.NatsJetstreamWriteArgs { - if x != nil { - return x.NatsJetstream - } - return nil -} - -func (x *CreateTunnelOptions) GetAwsKinesis() *args.AWSKinesisWriteArgs { - if x != nil { - return x.AwsKinesis - } - return nil -} - -func (x *CreateTunnelOptions) GetMemphis() *args.MemphisWriteArgs { - if x != nil { - return x.Memphis - } - return nil -} - -type DeleteTunnelOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='ID of the tunnel to delete',required=true" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the tunnel to delete',required=true"` -} - -func (x *DeleteTunnelOptions) Reset() { - *x = DeleteTunnelOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_tunnel_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteTunnelOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteTunnelOptions) ProtoMessage() {} - -func (x *DeleteTunnelOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_tunnel_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteTunnelOptions.ProtoReflect.Descriptor instead. -func (*DeleteTunnelOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_tunnel_proto_rawDescGZIP(), []int{2} -} - -func (x *DeleteTunnelOptions) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type StopTunnelOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='ID of the tunnel to stop',required=true" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the tunnel to stop',required=true"` -} - -func (x *StopTunnelOptions) Reset() { - *x = StopTunnelOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_tunnel_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StopTunnelOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StopTunnelOptions) ProtoMessage() {} - -func (x *StopTunnelOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_tunnel_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StopTunnelOptions.ProtoReflect.Descriptor instead. -func (*StopTunnelOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_tunnel_proto_rawDescGZIP(), []int{3} -} - -func (x *StopTunnelOptions) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type ResumeTunnelOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='ID of the tunnel to resume',required=true" - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" kong:"help='ID of the tunnel to resume',required=true"` -} - -func (x *ResumeTunnelOptions) Reset() { - *x = ResumeTunnelOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_manage_tunnel_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResumeTunnelOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResumeTunnelOptions) ProtoMessage() {} - -func (x *ResumeTunnelOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_manage_tunnel_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResumeTunnelOptions.ProtoReflect.Descriptor instead. -func (*ResumeTunnelOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_manage_tunnel_proto_rawDescGZIP(), []int{4} -} - -func (x *ResumeTunnelOptions) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -var File_opts_ps_opts_manage_tunnel_proto protoreflect.FileDescriptor - -var file_opts_ps_opts_manage_tunnel_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x0b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x1a, - 0x1b, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x65, 0x6d, 0x71, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x61, 0x72, - 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, 0x77, 0x73, 0x5f, 0x6b, - 0x69, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x61, 0x72, - 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, 0x77, 0x73, 0x5f, 0x73, - 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, - 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, 0x77, 0x73, 0x5f, 0x73, 0x71, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, - 0x67, 0x73, 0x5f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x68, - 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, - 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, - 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x67, 0x63, 0x70, - 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x61, - 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6b, 0x61, 0x66, 0x6b, - 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, - 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6b, 0x75, 0x62, 0x65, 0x6d, 0x71, 0x5f, 0x71, 0x75, 0x65, - 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, - 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6d, 0x65, 0x6d, 0x70, 0x68, 0x69, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, - 0x67, 0x73, 0x5f, 0x6d, 0x71, 0x74, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, - 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x61, 0x74, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, - 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x6a, 0x65, 0x74, 0x73, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x61, 0x72, 0x67, 0x73, 0x2f, - 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x73, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x61, 0x72, - 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x73, 0x71, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, - 0x67, 0x73, 0x5f, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x19, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x61, - 0x62, 0x62, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x61, 0x72, 0x67, 0x73, - 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x5f, - 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x61, - 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x65, 0x64, 0x69, - 0x73, 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, - 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x65, 0x64, - 0x69, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x22, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x22, 0xfb, 0x0b, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, - 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x0a, 0x0d, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x74, 0x65, - 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x26, - 0x0a, 0x0f, 0x5f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, 0x17, 0x5f, 0x74, 0x75, 0x6e, 0x6e, 0x65, - 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x14, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x54, - 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x28, 0x0a, - 0x10, 0x5f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, - 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, - 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x6b, 0x61, 0x66, 0x6b, 0x61, - 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, - 0x72, 0x67, 0x73, 0x52, 0x05, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x12, 0x3a, 0x0a, 0x08, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x65, 0x6d, 0x71, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x65, 0x4d, 0x51, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x08, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x65, 0x6d, 0x71, 0x12, 0x35, 0x0a, 0x07, 0x61, 0x77, 0x73, 0x5f, 0x73, 0x71, - 0x73, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x57, 0x53, 0x53, 0x51, 0x53, 0x57, 0x72, 0x69, 0x74, - 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x06, 0x61, 0x77, 0x73, 0x53, 0x71, 0x73, 0x12, 0x35, 0x0a, - 0x07, 0x61, 0x77, 0x73, 0x5f, 0x73, 0x6e, 0x73, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x57, 0x53, - 0x53, 0x4e, 0x53, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x06, 0x61, 0x77, - 0x73, 0x53, 0x6e, 0x73, 0x12, 0x2e, 0x0a, 0x04, 0x6e, 0x61, 0x74, 0x73, 0x18, 0x68, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, - 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, - 0x6e, 0x61, 0x74, 0x73, 0x12, 0x4a, 0x0a, 0x0e, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x73, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x18, 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, - 0x73, 0x52, 0x0d, 0x6e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x12, 0x2b, 0x0a, 0x03, 0x6e, 0x73, 0x71, 0x18, 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x53, 0x51, 0x57, - 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x03, 0x6e, 0x73, 0x71, 0x12, 0x34, 0x0a, - 0x06, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x61, 0x62, 0x62, - 0x69, 0x74, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x06, 0x72, 0x61, 0x62, - 0x62, 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x6d, 0x71, 0x74, 0x74, 0x18, 0x6c, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, - 0x4d, 0x51, 0x54, 0x54, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x6d, - 0x71, 0x74, 0x74, 0x12, 0x51, 0x0a, 0x11, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x73, 0x18, 0x6d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x7a, 0x75, - 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x73, 0x57, 0x72, 0x69, 0x74, - 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x0f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x42, 0x75, 0x73, 0x12, 0x4b, 0x0a, 0x0f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x75, 0x62, 0x18, 0x6e, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x7a, - 0x75, 0x72, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x75, 0x62, 0x57, 0x72, 0x69, 0x74, 0x65, - 0x41, 0x72, 0x67, 0x73, 0x52, 0x0d, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x48, 0x75, 0x62, 0x12, 0x3e, 0x0a, 0x0a, 0x67, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, - 0x62, 0x18, 0x6f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x47, 0x43, 0x50, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x57, - 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x09, 0x67, 0x63, 0x70, 0x50, 0x75, 0x62, - 0x73, 0x75, 0x62, 0x12, 0x44, 0x0a, 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x6d, 0x71, 0x5f, 0x71, 0x75, - 0x65, 0x75, 0x65, 0x18, 0x70, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x4d, 0x51, 0x51, 0x75, - 0x65, 0x75, 0x65, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x0b, 0x6b, 0x75, - 0x62, 0x65, 0x6d, 0x71, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x0c, 0x72, 0x65, 0x64, - 0x69, 0x73, 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x18, 0x71, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x65, - 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, - 0x67, 0x73, 0x52, 0x0b, 0x72, 0x65, 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x12, - 0x47, 0x0a, 0x0d, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, - 0x18, 0x72, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x73, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x0c, 0x72, 0x65, 0x64, 0x69, - 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x34, 0x0a, 0x06, 0x70, 0x75, 0x6c, 0x73, - 0x61, 0x72, 0x18, 0x73, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x50, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x57, 0x72, 0x69, - 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x06, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x12, 0x4a, - 0x0a, 0x0e, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, - 0x18, 0x74, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x61, 0x62, 0x62, 0x69, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x73, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x0d, 0x72, 0x61, 0x62, - 0x62, 0x69, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x4a, 0x0a, 0x0e, 0x6e, 0x61, - 0x74, 0x73, 0x5f, 0x6a, 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x75, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, - 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x4a, 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x57, 0x72, - 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x0d, 0x6e, 0x61, 0x74, 0x73, 0x4a, 0x65, 0x74, - 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x41, 0x0a, 0x0b, 0x61, 0x77, 0x73, 0x5f, 0x6b, 0x69, - 0x6e, 0x65, 0x73, 0x69, 0x73, 0x18, 0x76, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x57, 0x53, 0x4b, 0x69, 0x6e, - 0x65, 0x73, 0x69, 0x73, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x0a, 0x61, - 0x77, 0x73, 0x4b, 0x69, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x6d, 0x65, 0x6d, - 0x70, 0x68, 0x69, 0x73, 0x18, 0x77, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4d, 0x65, 0x6d, 0x70, 0x68, 0x69, 0x73, - 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x70, 0x68, - 0x69, 0x73, 0x22, 0x25, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, - 0x65, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x23, 0x0a, 0x11, 0x53, 0x74, 0x6f, - 0x70, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x25, - 0x0a, 0x13, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x70, 0x6c, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x62, 0x75, - 0x69, 0x6c, 0x64, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6f, 0x70, - 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_opts_ps_opts_manage_tunnel_proto_rawDescOnce sync.Once - file_opts_ps_opts_manage_tunnel_proto_rawDescData = file_opts_ps_opts_manage_tunnel_proto_rawDesc -) - -func file_opts_ps_opts_manage_tunnel_proto_rawDescGZIP() []byte { - file_opts_ps_opts_manage_tunnel_proto_rawDescOnce.Do(func() { - file_opts_ps_opts_manage_tunnel_proto_rawDescData = protoimpl.X.CompressGZIP(file_opts_ps_opts_manage_tunnel_proto_rawDescData) - }) - return file_opts_ps_opts_manage_tunnel_proto_rawDescData -} - -var file_opts_ps_opts_manage_tunnel_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_opts_ps_opts_manage_tunnel_proto_goTypes = []interface{}{ - (*GetTunnelOptions)(nil), // 0: protos.opts.GetTunnelOptions - (*CreateTunnelOptions)(nil), // 1: protos.opts.CreateTunnelOptions - (*DeleteTunnelOptions)(nil), // 2: protos.opts.DeleteTunnelOptions - (*StopTunnelOptions)(nil), // 3: protos.opts.StopTunnelOptions - (*ResumeTunnelOptions)(nil), // 4: protos.opts.ResumeTunnelOptions - (*args.KafkaWriteArgs)(nil), // 5: protos.args.KafkaWriteArgs - (*args.ActiveMQWriteArgs)(nil), // 6: protos.args.ActiveMQWriteArgs - (*args.AWSSQSWriteArgs)(nil), // 7: protos.args.AWSSQSWriteArgs - (*args.AWSSNSWriteArgs)(nil), // 8: protos.args.AWSSNSWriteArgs - (*args.NatsWriteArgs)(nil), // 9: protos.args.NatsWriteArgs - (*args.NatsStreamingWriteArgs)(nil), // 10: protos.args.NatsStreamingWriteArgs - (*args.NSQWriteArgs)(nil), // 11: protos.args.NSQWriteArgs - (*args.RabbitWriteArgs)(nil), // 12: protos.args.RabbitWriteArgs - (*args.MQTTWriteArgs)(nil), // 13: protos.args.MQTTWriteArgs - (*args.AzureServiceBusWriteArgs)(nil), // 14: protos.args.AzureServiceBusWriteArgs - (*args.AzureEventHubWriteArgs)(nil), // 15: protos.args.AzureEventHubWriteArgs - (*args.GCPPubSubWriteArgs)(nil), // 16: protos.args.GCPPubSubWriteArgs - (*args.KubeMQQueueWriteArgs)(nil), // 17: protos.args.KubeMQQueueWriteArgs - (*args.RedisPubSubWriteArgs)(nil), // 18: protos.args.RedisPubSubWriteArgs - (*args.RedisStreamsWriteArgs)(nil), // 19: protos.args.RedisStreamsWriteArgs - (*args.PulsarWriteArgs)(nil), // 20: protos.args.PulsarWriteArgs - (*args.RabbitStreamsWriteArgs)(nil), // 21: protos.args.RabbitStreamsWriteArgs - (*args.NatsJetstreamWriteArgs)(nil), // 22: protos.args.NatsJetstreamWriteArgs - (*args.AWSKinesisWriteArgs)(nil), // 23: protos.args.AWSKinesisWriteArgs - (*args.MemphisWriteArgs)(nil), // 24: protos.args.MemphisWriteArgs -} -var file_opts_ps_opts_manage_tunnel_proto_depIdxs = []int32{ - 5, // 0: protos.opts.CreateTunnelOptions.kafka:type_name -> protos.args.KafkaWriteArgs - 6, // 1: protos.opts.CreateTunnelOptions.activemq:type_name -> protos.args.ActiveMQWriteArgs - 7, // 2: protos.opts.CreateTunnelOptions.aws_sqs:type_name -> protos.args.AWSSQSWriteArgs - 8, // 3: protos.opts.CreateTunnelOptions.aws_sns:type_name -> protos.args.AWSSNSWriteArgs - 9, // 4: protos.opts.CreateTunnelOptions.nats:type_name -> protos.args.NatsWriteArgs - 10, // 5: protos.opts.CreateTunnelOptions.nats_streaming:type_name -> protos.args.NatsStreamingWriteArgs - 11, // 6: protos.opts.CreateTunnelOptions.nsq:type_name -> protos.args.NSQWriteArgs - 12, // 7: protos.opts.CreateTunnelOptions.rabbit:type_name -> protos.args.RabbitWriteArgs - 13, // 8: protos.opts.CreateTunnelOptions.mqtt:type_name -> protos.args.MQTTWriteArgs - 14, // 9: protos.opts.CreateTunnelOptions.azure_service_bus:type_name -> protos.args.AzureServiceBusWriteArgs - 15, // 10: protos.opts.CreateTunnelOptions.azure_event_hub:type_name -> protos.args.AzureEventHubWriteArgs - 16, // 11: protos.opts.CreateTunnelOptions.gcp_pubsub:type_name -> protos.args.GCPPubSubWriteArgs - 17, // 12: protos.opts.CreateTunnelOptions.kubemq_queue:type_name -> protos.args.KubeMQQueueWriteArgs - 18, // 13: protos.opts.CreateTunnelOptions.redis_pubsub:type_name -> protos.args.RedisPubSubWriteArgs - 19, // 14: protos.opts.CreateTunnelOptions.redis_streams:type_name -> protos.args.RedisStreamsWriteArgs - 20, // 15: protos.opts.CreateTunnelOptions.pulsar:type_name -> protos.args.PulsarWriteArgs - 21, // 16: protos.opts.CreateTunnelOptions.rabbit_streams:type_name -> protos.args.RabbitStreamsWriteArgs - 22, // 17: protos.opts.CreateTunnelOptions.nats_jetstream:type_name -> protos.args.NatsJetstreamWriteArgs - 23, // 18: protos.opts.CreateTunnelOptions.aws_kinesis:type_name -> protos.args.AWSKinesisWriteArgs - 24, // 19: protos.opts.CreateTunnelOptions.memphis:type_name -> protos.args.MemphisWriteArgs - 20, // [20:20] is the sub-list for method output_type - 20, // [20:20] is the sub-list for method input_type - 20, // [20:20] is the sub-list for extension type_name - 20, // [20:20] is the sub-list for extension extendee - 0, // [0:20] is the sub-list for field type_name -} - -func init() { file_opts_ps_opts_manage_tunnel_proto_init() } -func file_opts_ps_opts_manage_tunnel_proto_init() { - if File_opts_ps_opts_manage_tunnel_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_opts_ps_opts_manage_tunnel_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTunnelOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_tunnel_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTunnelOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_tunnel_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTunnelOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_tunnel_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopTunnelOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_manage_tunnel_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeTunnelOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_opts_ps_opts_manage_tunnel_proto_rawDesc, - NumEnums: 0, - NumMessages: 5, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_opts_ps_opts_manage_tunnel_proto_goTypes, - DependencyIndexes: file_opts_ps_opts_manage_tunnel_proto_depIdxs, - MessageInfos: file_opts_ps_opts_manage_tunnel_proto_msgTypes, - }.Build() - File_opts_ps_opts_manage_tunnel_proto = out.File - file_opts_ps_opts_manage_tunnel_proto_rawDesc = nil - file_opts_ps_opts_manage_tunnel_proto_goTypes = nil - file_opts_ps_opts_manage_tunnel_proto_depIdxs = nil -} diff --git a/build/go/protos/opts/ps_opts_relay.pb.go b/build/go/protos/opts/ps_opts_relay.pb.go deleted file mode 100644 index 63cebfb..0000000 --- a/build/go/protos/opts/ps_opts_relay.pb.go +++ /dev/null @@ -1,1851 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: opts/ps_opts_relay.proto - -package opts - -import ( - args "github.com/batchcorp/plumber-schemas/build/go/protos/args" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 RelayCLIOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='What address to bind the built-in HTTP server to',env='PLUMBER_RELAY_HTTP_LISTEN_ADDRESS',default='localhost:9191'" - HttpListenAddress string `protobuf:"bytes,1,opt,name=http_listen_address,json=httpListenAddress,proto3" json:"http_listen_address,omitempty" kong:"help='What address to bind the built-in HTTP server to',env='PLUMBER_RELAY_HTTP_LISTEN_ADDRESS',default='localhost:9191'"` -} - -func (x *RelayCLIOptions) Reset() { - *x = RelayCLIOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayCLIOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayCLIOptions) ProtoMessage() {} - -func (x *RelayCLIOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayCLIOptions.ProtoReflect.Descriptor instead. -func (*RelayCLIOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{0} -} - -func (x *RelayCLIOptions) GetHttpListenAddress() string { - if x != nil { - return x.HttpListenAddress - } - return "" -} - -// Relay is the structure that backends accept for facilitating a relay. -// NOTE: _conn is only used by the CLI - desktop does not need to set it. -type RelayOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='Secret collection token',env='PLUMBER_RELAY_TOKEN',name=token,required" - CollectionToken string `protobuf:"bytes,1,opt,name=collection_token,json=collectionToken,proto3" json:"collection_token,omitempty" kong:"help='Secret collection token',env='PLUMBER_RELAY_TOKEN',name=token,required"` - // @gotags: kong:"help='How many messages to send in a single batch',env='PLUMBER_RELAY_BATCH_SIZE',default=1000" - BatchSize int32 `protobuf:"varint,2,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty" kong:"help='How many messages to send in a single batch',env='PLUMBER_RELAY_BATCH_SIZE',default=1000"` - // @gotags: kong:"help='How many times plumber will try re-sending a batch',env='PLUMBER_RELAY_BATCH_MAX_RETRY',default=3" - BatchMaxRetry int32 `protobuf:"varint,3,opt,name=batch_max_retry,json=batchMaxRetry,proto3" json:"batch_max_retry,omitempty" kong:"help='How many times plumber will try re-sending a batch',env='PLUMBER_RELAY_BATCH_MAX_RETRY',default=3"` - // Required for desktop; ignored in CLI. - // @gotags: kong:"-" - ConnectionId string `protobuf:"bytes,4,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" kong:"-"` - // @gotags: kong:"help='How many workers to launch per relay',env='PLUMBER_RELAY_NUM_WORKERS',default=10" - NumWorkers int32 `protobuf:"varint,5,opt,name=num_workers,json=numWorkers,proto3" json:"num_workers,omitempty" kong:"help='How many workers to launch per relay',env='PLUMBER_RELAY_NUM_WORKERS',default=10"` - // @gotags: kong:"group=stats,help='Display periodic read stats'" - StatsEnable bool `protobuf:"varint,6,opt,name=stats_enable,json=statsEnable,proto3" json:"stats_enable,omitempty" kong:"group=stats,help='Display periodic read stats'"` - // @gotags: kong:"group=stats,help='How often to print stats',default=5" - StatsReportIntervalSec int32 `protobuf:"varint,7,opt,name=stats_report_interval_sec,json=statsReportIntervalSec,proto3" json:"stats_report_interval_sec,omitempty" kong:"group=stats,help='How often to print stats',default=5"` - // @gotags: kong:"help='Consumed messages are intended to be dead-lettered',env='PLUMBER_RELAY_DEAD_LETTER'" - DeadLetter bool `protobuf:"varint,8,opt,name=dead_letter,json=deadLetter,proto3" json:"dead_letter,omitempty" kong:"help='Consumed messages are intended to be dead-lettered',env='PLUMBER_RELAY_DEAD_LETTER'"` - // @gotags: kong:"help='Alternative collector to relay events to',name='grpc-address',env='PLUMBER_RELAY_GRPC_ADDRESS',default='grpc-collector.streamdal.com:9000'" - XStreamdalGrpcAddress string `protobuf:"bytes,1000,opt,name=_streamdal_grpc_address,json=StreamdalGrpcAddress,proto3" json:"_streamdal_grpc_address,omitempty" kong:"help='Alternative collector to relay events to',name='grpc-address',env='PLUMBER_RELAY_GRPC_ADDRESS',default='grpc-collector.streamdal.com:9000'"` - // @gotags: kong:"help='Whether to use TLS with collector',name=grpc-disable-tls,env='PLUMBER_RELAY_GRPC_DISABLE_TLS',default=false" - XStreamdalGrpcDisableTls bool `protobuf:"varint,1001,opt,name=_streamdal_grpc_disable_tls,json=StreamdalGrpcDisableTls,proto3" json:"_streamdal_grpc_disable_tls,omitempty" kong:"help='Whether to use TLS with collector',name=grpc-disable-tls,env='PLUMBER_RELAY_GRPC_DISABLE_TLS',default=false"` - // @gotags: kong:"help='How long to wait before giving up talking to the gRPC collector',name='grpc-timeout-seconds',env='PLUMBER_RELAY_GRPC_TIMEOUT',default=5" - XStreamdalGrpcTimeoutSeconds int32 `protobuf:"varint,1002,opt,name=_streamdal_grpc_timeout_seconds,json=StreamdalGrpcTimeoutSeconds,proto3" json:"_streamdal_grpc_timeout_seconds,omitempty" kong:"help='How long to wait before giving up talking to the gRPC collector',name='grpc-timeout-seconds',env='PLUMBER_RELAY_GRPC_TIMEOUT',default=5"` - // ID of the created relay entry; populated by plumber. - // @gotags: kong:"-" - XRelayId string `protobuf:"bytes,1003,opt,name=_relay_id,json=RelayId,proto3" json:"_relay_id,omitempty" kong:"-"` - // @gotags: kong:"embed" - XCliOptions *RelayCLIOptions `protobuf:"bytes,1004,opt,name=_cli_options,json=CliOptions,proto3" json:"_cli_options,omitempty" kong:"embed"` - // Populated by plumber server during GetRelay* methods - // @gotags: kong:"-" - XActive bool `protobuf:"varint,1005,opt,name=_active,json=Active,proto3" json:"_active,omitempty" kong:"-"` - // @gotags: kong:"cmd,help='Apache Kafka'" - Kafka *RelayGroupKafkaOptions `protobuf:"bytes,100,opt,name=kafka,proto3" json:"kafka,omitempty" kong:"cmd,help='Apache Kafka'"` - // @gotags: kong:"cmd,help='AWS Simple Queue System'" - AwsSqs *RelayGroupAWSSQSOptions `protobuf:"bytes,101,opt,name=aws_sqs,json=awsSqs,proto3" json:"aws_sqs,omitempty" kong:"cmd,help='AWS Simple Queue System'"` - // @gotags: kong:"cmd,help='MongoDB (CDC)'" - Mongo *RelayGroupMongoOptions `protobuf:"bytes,102,opt,name=mongo,proto3" json:"mongo,omitempty" kong:"cmd,help='MongoDB (CDC)'"` - // @gotags: kong:"cmd,help='NSQ'" - Nsq *RelayGroupNSQOptions `protobuf:"bytes,103,opt,name=nsq,proto3" json:"nsq,omitempty" kong:"cmd,help='NSQ'"` - // @gotags: kong:"cmd,help='MQTT'" - Rabbit *RelayGroupRabbitOptions `protobuf:"bytes,104,opt,name=rabbit,proto3" json:"rabbit,omitempty" kong:"cmd,help='MQTT'"` - // @gotags: kong:"cmd,help='MQTT'" - Mqtt *RelayGroupMQTTOptions `protobuf:"bytes,105,opt,name=mqtt,proto3" json:"mqtt,omitempty" kong:"cmd,help='MQTT'"` - // @gotags: kong:"cmd,help='Azure Service Bus'" - AzureServiceBus *RelayGroupAzureServiceBusOptions `protobuf:"bytes,106,opt,name=azure_service_bus,json=azureServiceBus,proto3" json:"azure_service_bus,omitempty" kong:"cmd,help='Azure Service Bus'"` - // @gotags: kong:"cmd,help='Google Cloud Platform Pub/Sub'" - GcpPubsub *RelayGroupGCPPubSubOptions `protobuf:"bytes,107,opt,name=gcp_pubsub,json=gcpPubsub,proto3" json:"gcp_pubsub,omitempty" kong:"cmd,help='Google Cloud Platform Pub/Sub'"` - // @gotags: kong:"cmd,help='KubeMQ Queue'" - KubemqQueue *RelayGroupKubeMQQueueOptions `protobuf:"bytes,108,opt,name=kubemq_queue,json=kubemqQueue,proto3" json:"kubemq_queue,omitempty" kong:"cmd,help='KubeMQ Queue'"` - // @gotags: kong:"cmd,help='Redis PubSub'" - RedisPubsub *RelayGroupRedisPubSubOptions `protobuf:"bytes,109,opt,name=redis_pubsub,json=redisPubsub,proto3" json:"redis_pubsub,omitempty" kong:"cmd,help='Redis PubSub'"` - // @gotags: kong:"cmd,help='Redis Streams'" - RedisStreams *RelayGroupRedisStreamsOptions `protobuf:"bytes,111,opt,name=redis_streams,json=redisStreams,proto3" json:"redis_streams,omitempty" kong:"cmd,help='Redis Streams'"` - // @gotags: kong:"cmd,help='PostgreSQL (CDC)'" - Postgres *RelayGroupPostgresOptions `protobuf:"bytes,112,opt,name=postgres,proto3" json:"postgres,omitempty" kong:"cmd,help='PostgreSQL (CDC)'"` - // @gotags: kong:"cmd,help='NATS'" - Nats *RelayGroupNatsOptions `protobuf:"bytes,113,opt,name=nats,proto3" json:"nats,omitempty" kong:"cmd,help='NATS'"` - // @gotags: kong:"cmd,help='NATS Streaming'" - NatsStreaming *RelayGroupNatsStreamingOptions `protobuf:"bytes,114,opt,name=nats_streaming,json=natsStreaming,proto3" json:"nats_streaming,omitempty" kong:"cmd,help='NATS Streaming'"` - // @gotags: kong:"cmd,help='NATS JetStream'" - NatsJetstream *RelayGroupNatsJetStreamOptions `protobuf:"bytes,115,opt,name=nats_jetstream,json=natsJetstream,proto3" json:"nats_jetstream,omitempty" kong:"cmd,help='NATS JetStream'"` -} - -func (x *RelayOptions) Reset() { - *x = RelayOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayOptions) ProtoMessage() {} - -func (x *RelayOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayOptions.ProtoReflect.Descriptor instead. -func (*RelayOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{1} -} - -func (x *RelayOptions) GetCollectionToken() string { - if x != nil { - return x.CollectionToken - } - return "" -} - -func (x *RelayOptions) GetBatchSize() int32 { - if x != nil { - return x.BatchSize - } - return 0 -} - -func (x *RelayOptions) GetBatchMaxRetry() int32 { - if x != nil { - return x.BatchMaxRetry - } - return 0 -} - -func (x *RelayOptions) GetConnectionId() string { - if x != nil { - return x.ConnectionId - } - return "" -} - -func (x *RelayOptions) GetNumWorkers() int32 { - if x != nil { - return x.NumWorkers - } - return 0 -} - -func (x *RelayOptions) GetStatsEnable() bool { - if x != nil { - return x.StatsEnable - } - return false -} - -func (x *RelayOptions) GetStatsReportIntervalSec() int32 { - if x != nil { - return x.StatsReportIntervalSec - } - return 0 -} - -func (x *RelayOptions) GetDeadLetter() bool { - if x != nil { - return x.DeadLetter - } - return false -} - -func (x *RelayOptions) GetXStreamdalGrpcAddress() string { - if x != nil { - return x.XStreamdalGrpcAddress - } - return "" -} - -func (x *RelayOptions) GetXStreamdalGrpcDisableTls() bool { - if x != nil { - return x.XStreamdalGrpcDisableTls - } - return false -} - -func (x *RelayOptions) GetXStreamdalGrpcTimeoutSeconds() int32 { - if x != nil { - return x.XStreamdalGrpcTimeoutSeconds - } - return 0 -} - -func (x *RelayOptions) GetXRelayId() string { - if x != nil { - return x.XRelayId - } - return "" -} - -func (x *RelayOptions) GetXCliOptions() *RelayCLIOptions { - if x != nil { - return x.XCliOptions - } - return nil -} - -func (x *RelayOptions) GetXActive() bool { - if x != nil { - return x.XActive - } - return false -} - -func (x *RelayOptions) GetKafka() *RelayGroupKafkaOptions { - if x != nil { - return x.Kafka - } - return nil -} - -func (x *RelayOptions) GetAwsSqs() *RelayGroupAWSSQSOptions { - if x != nil { - return x.AwsSqs - } - return nil -} - -func (x *RelayOptions) GetMongo() *RelayGroupMongoOptions { - if x != nil { - return x.Mongo - } - return nil -} - -func (x *RelayOptions) GetNsq() *RelayGroupNSQOptions { - if x != nil { - return x.Nsq - } - return nil -} - -func (x *RelayOptions) GetRabbit() *RelayGroupRabbitOptions { - if x != nil { - return x.Rabbit - } - return nil -} - -func (x *RelayOptions) GetMqtt() *RelayGroupMQTTOptions { - if x != nil { - return x.Mqtt - } - return nil -} - -func (x *RelayOptions) GetAzureServiceBus() *RelayGroupAzureServiceBusOptions { - if x != nil { - return x.AzureServiceBus - } - return nil -} - -func (x *RelayOptions) GetGcpPubsub() *RelayGroupGCPPubSubOptions { - if x != nil { - return x.GcpPubsub - } - return nil -} - -func (x *RelayOptions) GetKubemqQueue() *RelayGroupKubeMQQueueOptions { - if x != nil { - return x.KubemqQueue - } - return nil -} - -func (x *RelayOptions) GetRedisPubsub() *RelayGroupRedisPubSubOptions { - if x != nil { - return x.RedisPubsub - } - return nil -} - -func (x *RelayOptions) GetRedisStreams() *RelayGroupRedisStreamsOptions { - if x != nil { - return x.RedisStreams - } - return nil -} - -func (x *RelayOptions) GetPostgres() *RelayGroupPostgresOptions { - if x != nil { - return x.Postgres - } - return nil -} - -func (x *RelayOptions) GetNats() *RelayGroupNatsOptions { - if x != nil { - return x.Nats - } - return nil -} - -func (x *RelayOptions) GetNatsStreaming() *RelayGroupNatsStreamingOptions { - if x != nil { - return x.NatsStreaming - } - return nil -} - -func (x *RelayOptions) GetNatsJetstream() *RelayGroupNatsJetStreamOptions { - if x != nil { - return x.NatsJetstream - } - return nil -} - -type RelayGroupKafkaOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.KafkaConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.KafkaRelayArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupKafkaOptions) Reset() { - *x = RelayGroupKafkaOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupKafkaOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupKafkaOptions) ProtoMessage() {} - -func (x *RelayGroupKafkaOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupKafkaOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupKafkaOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{2} -} - -func (x *RelayGroupKafkaOptions) GetXConn() *args.KafkaConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupKafkaOptions) GetArgs() *args.KafkaRelayArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupAWSSQSOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.AWSSQSConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.AWSSQSRelayArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupAWSSQSOptions) Reset() { - *x = RelayGroupAWSSQSOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupAWSSQSOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupAWSSQSOptions) ProtoMessage() {} - -func (x *RelayGroupAWSSQSOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupAWSSQSOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupAWSSQSOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{3} -} - -func (x *RelayGroupAWSSQSOptions) GetXConn() *args.AWSSQSConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupAWSSQSOptions) GetArgs() *args.AWSSQSRelayArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupMongoOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.MongoConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.MongoReadArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupMongoOptions) Reset() { - *x = RelayGroupMongoOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupMongoOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupMongoOptions) ProtoMessage() {} - -func (x *RelayGroupMongoOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupMongoOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupMongoOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{4} -} - -func (x *RelayGroupMongoOptions) GetXConn() *args.MongoConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupMongoOptions) GetArgs() *args.MongoReadArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupNSQOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.NSQConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.NSQReadArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupNSQOptions) Reset() { - *x = RelayGroupNSQOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupNSQOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupNSQOptions) ProtoMessage() {} - -func (x *RelayGroupNSQOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupNSQOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupNSQOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{5} -} - -func (x *RelayGroupNSQOptions) GetXConn() *args.NSQConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupNSQOptions) GetArgs() *args.NSQReadArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupPostgresOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.PostgresConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.PostgresReadArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupPostgresOptions) Reset() { - *x = RelayGroupPostgresOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupPostgresOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupPostgresOptions) ProtoMessage() {} - -func (x *RelayGroupPostgresOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupPostgresOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupPostgresOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{6} -} - -func (x *RelayGroupPostgresOptions) GetXConn() *args.PostgresConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupPostgresOptions) GetArgs() *args.PostgresReadArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupRabbitOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.RabbitConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.RabbitReadArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupRabbitOptions) Reset() { - *x = RelayGroupRabbitOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupRabbitOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupRabbitOptions) ProtoMessage() {} - -func (x *RelayGroupRabbitOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupRabbitOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupRabbitOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{7} -} - -func (x *RelayGroupRabbitOptions) GetXConn() *args.RabbitConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupRabbitOptions) GetArgs() *args.RabbitReadArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupRedisPubSubOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.RedisPubSubConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.RedisPubSubReadArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupRedisPubSubOptions) Reset() { - *x = RelayGroupRedisPubSubOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupRedisPubSubOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupRedisPubSubOptions) ProtoMessage() {} - -func (x *RelayGroupRedisPubSubOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupRedisPubSubOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupRedisPubSubOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{8} -} - -func (x *RelayGroupRedisPubSubOptions) GetXConn() *args.RedisPubSubConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupRedisPubSubOptions) GetArgs() *args.RedisPubSubReadArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupRedisStreamsOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.RedisStreamsConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.RedisStreamsReadArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupRedisStreamsOptions) Reset() { - *x = RelayGroupRedisStreamsOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupRedisStreamsOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupRedisStreamsOptions) ProtoMessage() {} - -func (x *RelayGroupRedisStreamsOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupRedisStreamsOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupRedisStreamsOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{9} -} - -func (x *RelayGroupRedisStreamsOptions) GetXConn() *args.RedisStreamsConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupRedisStreamsOptions) GetArgs() *args.RedisStreamsReadArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupAzureServiceBusOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.AzureServiceBusConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.AzureServiceBusReadArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupAzureServiceBusOptions) Reset() { - *x = RelayGroupAzureServiceBusOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupAzureServiceBusOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupAzureServiceBusOptions) ProtoMessage() {} - -func (x *RelayGroupAzureServiceBusOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupAzureServiceBusOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupAzureServiceBusOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{10} -} - -func (x *RelayGroupAzureServiceBusOptions) GetXConn() *args.AzureServiceBusConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupAzureServiceBusOptions) GetArgs() *args.AzureServiceBusReadArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupMQTTOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.MQTTConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.MQTTReadArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupMQTTOptions) Reset() { - *x = RelayGroupMQTTOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupMQTTOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupMQTTOptions) ProtoMessage() {} - -func (x *RelayGroupMQTTOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupMQTTOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupMQTTOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{11} -} - -func (x *RelayGroupMQTTOptions) GetXConn() *args.MQTTConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupMQTTOptions) GetArgs() *args.MQTTReadArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupGCPPubSubOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.GCPPubSubConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.GCPPubSubReadArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupGCPPubSubOptions) Reset() { - *x = RelayGroupGCPPubSubOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupGCPPubSubOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupGCPPubSubOptions) ProtoMessage() {} - -func (x *RelayGroupGCPPubSubOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupGCPPubSubOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupGCPPubSubOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{12} -} - -func (x *RelayGroupGCPPubSubOptions) GetXConn() *args.GCPPubSubConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupGCPPubSubOptions) GetArgs() *args.GCPPubSubReadArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupKubeMQQueueOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.KubeMQQueueConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.KubeMQQueueReadArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupKubeMQQueueOptions) Reset() { - *x = RelayGroupKubeMQQueueOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupKubeMQQueueOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupKubeMQQueueOptions) ProtoMessage() {} - -func (x *RelayGroupKubeMQQueueOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupKubeMQQueueOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupKubeMQQueueOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{13} -} - -func (x *RelayGroupKubeMQQueueOptions) GetXConn() *args.KubeMQQueueConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupKubeMQQueueOptions) GetArgs() *args.KubeMQQueueReadArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupNatsOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.NatsConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.NatsReadArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupNatsOptions) Reset() { - *x = RelayGroupNatsOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupNatsOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupNatsOptions) ProtoMessage() {} - -func (x *RelayGroupNatsOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupNatsOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupNatsOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{14} -} - -func (x *RelayGroupNatsOptions) GetXConn() *args.NatsConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupNatsOptions) GetArgs() *args.NatsReadArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupNatsStreamingOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.NatsStreamingConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.NatsStreamingReadArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupNatsStreamingOptions) Reset() { - *x = RelayGroupNatsStreamingOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupNatsStreamingOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupNatsStreamingOptions) ProtoMessage() {} - -func (x *RelayGroupNatsStreamingOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupNatsStreamingOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupNatsStreamingOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{15} -} - -func (x *RelayGroupNatsStreamingOptions) GetXConn() *args.NatsStreamingConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupNatsStreamingOptions) GetArgs() *args.NatsStreamingReadArgs { - if x != nil { - return x.Args - } - return nil -} - -type RelayGroupNatsJetStreamOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.NatsJetstreamConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.NatsJetstreamReadArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *RelayGroupNatsJetStreamOptions) Reset() { - *x = RelayGroupNatsJetStreamOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_relay_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RelayGroupNatsJetStreamOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RelayGroupNatsJetStreamOptions) ProtoMessage() {} - -func (x *RelayGroupNatsJetStreamOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_relay_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RelayGroupNatsJetStreamOptions.ProtoReflect.Descriptor instead. -func (*RelayGroupNatsJetStreamOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_relay_proto_rawDescGZIP(), []int{16} -} - -func (x *RelayGroupNatsJetStreamOptions) GetXConn() *args.NatsJetstreamConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *RelayGroupNatsJetStreamOptions) GetArgs() *args.NatsJetstreamReadArgs { - if x != nil { - return x.Args - } - return nil -} - -var File_opts_ps_opts_relay_proto protoreflect.FileDescriptor - -var file_opts_ps_opts_relay_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x72, - 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x1a, 0x1a, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, - 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, 0x77, 0x73, 0x5f, 0x73, 0x71, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, - 0x73, 0x5f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, - 0x62, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x61, 0x72, 0x67, 0x73, 0x2f, - 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x67, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x73, - 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, - 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1f, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, - 0x5f, 0x6b, 0x75, 0x62, 0x65, 0x6d, 0x71, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, - 0x73, 0x5f, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, - 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6d, 0x71, 0x74, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, - 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x61, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x21, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x61, - 0x74, 0x73, 0x5f, 0x6a, 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x21, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, - 0x5f, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, - 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x73, 0x71, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x61, - 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x70, 0x6f, 0x73, 0x74, - 0x67, 0x72, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x61, 0x72, 0x67, 0x73, - 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, - 0x72, 0x67, 0x73, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, - 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, - 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, - 0x6c, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x41, 0x0a, 0x0f, 0x52, 0x65, 0x6c, - 0x61, 0x79, 0x43, 0x4c, 0x49, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2e, 0x0a, 0x13, - 0x68, 0x74, 0x74, 0x70, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x68, 0x74, 0x74, 0x70, 0x4c, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x8f, 0x0d, 0x0a, - 0x0c, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x29, 0x0a, - 0x10, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x74, 0x63, - 0x68, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x62, 0x61, - 0x74, 0x63, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x62, 0x61, 0x74, 0x63, 0x68, - 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0d, 0x62, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x61, 0x78, 0x52, 0x65, 0x74, 0x72, 0x79, 0x12, - 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x75, 0x6d, 0x5f, 0x77, 0x6f, 0x72, 0x6b, - 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6e, 0x75, 0x6d, 0x57, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x73, 0x5f, 0x65, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x74, 0x61, - 0x74, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x39, 0x0a, 0x19, 0x73, 0x74, 0x61, 0x74, - 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, - 0x6c, 0x5f, 0x73, 0x65, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x73, 0x74, 0x61, - 0x74, 0x73, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, - 0x53, 0x65, 0x63, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x61, 0x64, 0x5f, 0x6c, 0x65, 0x74, 0x74, - 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x61, 0x64, 0x4c, 0x65, - 0x74, 0x74, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x64, - 0x61, 0x6c, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0xe8, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x64, 0x61, - 0x6c, 0x47, 0x72, 0x70, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3d, 0x0a, 0x1b, - 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x64, 0x61, 0x6c, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x5f, - 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x6c, 0x73, 0x18, 0xe9, 0x07, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x17, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x64, 0x61, 0x6c, 0x47, 0x72, 0x70, - 0x63, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6c, 0x73, 0x12, 0x45, 0x0a, 0x1f, 0x5f, - 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x64, 0x61, 0x6c, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0xea, - 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x1b, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x64, 0x61, 0x6c, - 0x47, 0x72, 0x70, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, - 0x64, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18, - 0xeb, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x49, 0x64, 0x12, - 0x3f, 0x0a, 0x0c, 0x5f, 0x63, 0x6c, 0x69, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0xec, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x43, 0x4c, 0x49, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x43, 0x6c, 0x69, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x18, 0x0a, 0x07, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0xed, 0x07, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x06, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x39, 0x0a, 0x05, 0x6b, 0x61, - 0x66, 0x6b, 0x61, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, - 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x12, 0x3d, 0x0a, 0x07, 0x61, 0x77, 0x73, 0x5f, 0x73, 0x71, 0x73, - 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, - 0x57, 0x53, 0x53, 0x51, 0x53, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x61, 0x77, - 0x73, 0x53, 0x71, 0x73, 0x12, 0x39, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x18, 0x66, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, - 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x6f, 0x6e, 0x67, - 0x6f, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, 0x6d, 0x6f, 0x6e, 0x67, 0x6f, 0x12, - 0x33, 0x0a, 0x03, 0x6e, 0x73, 0x71, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x53, 0x51, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x03, 0x6e, 0x73, 0x71, 0x12, 0x3c, 0x0a, 0x06, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x18, 0x68, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, - 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x61, 0x62, - 0x62, 0x69, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x72, 0x61, 0x62, 0x62, - 0x69, 0x74, 0x12, 0x36, 0x0a, 0x04, 0x6d, 0x71, 0x74, 0x74, 0x18, 0x69, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, - 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x51, 0x54, 0x54, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, 0x6d, 0x71, 0x74, 0x74, 0x12, 0x59, 0x0a, 0x11, 0x61, 0x7a, - 0x75, 0x72, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x73, 0x18, - 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, - 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x7a, - 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x73, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x42, 0x75, 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x67, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, - 0x73, 0x75, 0x62, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x47, 0x43, 0x50, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x09, 0x67, 0x63, 0x70, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x12, 0x4c, 0x0a, - 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x6d, 0x71, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x6c, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, - 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x75, 0x62, 0x65, - 0x4d, 0x51, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, - 0x6b, 0x75, 0x62, 0x65, 0x6d, 0x71, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x4c, 0x0a, 0x0c, 0x72, - 0x65, 0x64, 0x69, 0x73, 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x18, 0x6d, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x29, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, - 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, - 0x75, 0x62, 0x53, 0x75, 0x62, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x72, 0x65, - 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x12, 0x4f, 0x0a, 0x0d, 0x72, 0x65, 0x64, - 0x69, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x6f, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, - 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x64, 0x69, 0x73, 0x53, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0c, 0x72, 0x65, - 0x64, 0x69, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x42, 0x0a, 0x08, 0x70, 0x6f, - 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x18, 0x70, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x12, 0x36, - 0x0a, 0x04, 0x6e, 0x61, 0x74, 0x73, 0x18, 0x71, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x74, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x04, 0x6e, 0x61, 0x74, 0x73, 0x12, 0x52, 0x0a, 0x0e, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x18, 0x72, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6c, - 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x6e, 0x61, 0x74, - 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x52, 0x0a, 0x0e, 0x6e, 0x61, - 0x74, 0x73, 0x5f, 0x6a, 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x73, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, - 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x74, 0x73, 0x4a, - 0x65, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x0d, 0x6e, 0x61, 0x74, 0x73, 0x4a, 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x22, 0x76, - 0x0a, 0x16, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x61, 0x66, 0x6b, - 0x61, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x43, 0x6f, 0x6e, 0x6e, 0x52, - 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x2f, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, - 0x73, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x72, 0x67, 0x73, - 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x79, 0x0a, 0x17, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x41, 0x57, 0x53, 0x53, 0x51, 0x53, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x2c, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, - 0x57, 0x53, 0x53, 0x51, 0x53, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, - 0x30, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x57, 0x53, 0x53, - 0x51, 0x53, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, - 0x73, 0x22, 0x75, 0x0a, 0x16, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, - 0x6f, 0x6e, 0x67, 0x6f, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x5f, - 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x43, 0x6f, - 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x2e, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4d, 0x6f, 0x6e, 0x67, 0x6f, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, - 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x6f, 0x0a, 0x14, 0x52, 0x65, 0x6c, 0x61, - 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x53, 0x51, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x29, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x53, - 0x51, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x2c, 0x0a, 0x04, 0x61, - 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x53, 0x51, 0x52, 0x65, 0x61, 0x64, 0x41, - 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x7e, 0x0a, 0x19, 0x52, 0x65, 0x6c, - 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2e, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, - 0x72, 0x67, 0x73, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x6e, - 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x31, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, - 0x67, 0x73, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x67, 0x72, 0x65, 0x73, 0x52, 0x65, 0x61, 0x64, 0x41, - 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x78, 0x0a, 0x17, 0x52, 0x65, 0x6c, - 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x61, 0x62, 0x62, 0x69, 0x74, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2c, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, - 0x73, 0x2e, 0x52, 0x61, 0x62, 0x62, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, - 0x6e, 0x6e, 0x12, 0x2f, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, - 0x61, 0x62, 0x62, 0x69, 0x74, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, - 0x72, 0x67, 0x73, 0x22, 0x87, 0x01, 0x0a, 0x1c, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, - 0x73, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x43, 0x6f, 0x6e, - 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x34, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, - 0x72, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x52, - 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x8a, 0x01, - 0x0a, 0x1d, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x64, 0x69, - 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x32, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x64, - 0x69, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, - 0x6f, 0x6e, 0x6e, 0x12, 0x35, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, - 0x52, 0x65, 0x64, 0x69, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x61, 0x64, - 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x20, 0x52, - 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x35, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x7a, 0x75, - 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x73, 0x43, 0x6f, 0x6e, 0x6e, - 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x38, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, - 0x67, 0x73, 0x2e, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, - 0x75, 0x73, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, - 0x22, 0x72, 0x0a, 0x15, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x51, - 0x54, 0x54, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2a, 0x0a, 0x05, 0x5f, 0x63, 0x6f, - 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4d, 0x51, 0x54, 0x54, 0x43, 0x6f, 0x6e, 0x6e, 0x52, - 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x2d, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, - 0x73, 0x2e, 0x4d, 0x51, 0x54, 0x54, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, - 0x61, 0x72, 0x67, 0x73, 0x22, 0x81, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x47, 0x43, 0x50, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, - 0x2e, 0x47, 0x43, 0x50, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, - 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x32, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, - 0x2e, 0x47, 0x43, 0x50, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, - 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x87, 0x01, 0x0a, 0x1c, 0x52, 0x65, 0x6c, - 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x75, 0x62, 0x65, 0x4d, 0x51, 0x51, 0x75, 0x65, - 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x5f, 0x63, 0x6f, - 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x4d, 0x51, 0x51, 0x75, 0x65, - 0x75, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x34, 0x0a, 0x04, - 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x4d, 0x51, 0x51, - 0x75, 0x65, 0x75, 0x65, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, - 0x67, 0x73, 0x22, 0x72, 0x0a, 0x15, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x4e, 0x61, 0x74, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2a, 0x0a, 0x05, 0x5f, - 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x43, 0x6f, 0x6e, - 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x2d, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, - 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, - 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x6c, 0x61, 0x79, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x5f, 0x63, 0x6f, - 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x36, - 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, - 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x6c, 0x61, 0x79, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x74, 0x73, 0x4a, 0x65, 0x74, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x5f, 0x63, 0x6f, - 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x4a, 0x65, 0x74, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x36, - 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x4a, - 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x61, 0x64, 0x41, 0x72, 0x67, 0x73, - 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x70, - 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x62, - 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6f, - 0x70, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_opts_ps_opts_relay_proto_rawDescOnce sync.Once - file_opts_ps_opts_relay_proto_rawDescData = file_opts_ps_opts_relay_proto_rawDesc -) - -func file_opts_ps_opts_relay_proto_rawDescGZIP() []byte { - file_opts_ps_opts_relay_proto_rawDescOnce.Do(func() { - file_opts_ps_opts_relay_proto_rawDescData = protoimpl.X.CompressGZIP(file_opts_ps_opts_relay_proto_rawDescData) - }) - return file_opts_ps_opts_relay_proto_rawDescData -} - -var file_opts_ps_opts_relay_proto_msgTypes = make([]protoimpl.MessageInfo, 17) -var file_opts_ps_opts_relay_proto_goTypes = []interface{}{ - (*RelayCLIOptions)(nil), // 0: protos.opts.RelayCLIOptions - (*RelayOptions)(nil), // 1: protos.opts.RelayOptions - (*RelayGroupKafkaOptions)(nil), // 2: protos.opts.RelayGroupKafkaOptions - (*RelayGroupAWSSQSOptions)(nil), // 3: protos.opts.RelayGroupAWSSQSOptions - (*RelayGroupMongoOptions)(nil), // 4: protos.opts.RelayGroupMongoOptions - (*RelayGroupNSQOptions)(nil), // 5: protos.opts.RelayGroupNSQOptions - (*RelayGroupPostgresOptions)(nil), // 6: protos.opts.RelayGroupPostgresOptions - (*RelayGroupRabbitOptions)(nil), // 7: protos.opts.RelayGroupRabbitOptions - (*RelayGroupRedisPubSubOptions)(nil), // 8: protos.opts.RelayGroupRedisPubSubOptions - (*RelayGroupRedisStreamsOptions)(nil), // 9: protos.opts.RelayGroupRedisStreamsOptions - (*RelayGroupAzureServiceBusOptions)(nil), // 10: protos.opts.RelayGroupAzureServiceBusOptions - (*RelayGroupMQTTOptions)(nil), // 11: protos.opts.RelayGroupMQTTOptions - (*RelayGroupGCPPubSubOptions)(nil), // 12: protos.opts.RelayGroupGCPPubSubOptions - (*RelayGroupKubeMQQueueOptions)(nil), // 13: protos.opts.RelayGroupKubeMQQueueOptions - (*RelayGroupNatsOptions)(nil), // 14: protos.opts.RelayGroupNatsOptions - (*RelayGroupNatsStreamingOptions)(nil), // 15: protos.opts.RelayGroupNatsStreamingOptions - (*RelayGroupNatsJetStreamOptions)(nil), // 16: protos.opts.RelayGroupNatsJetStreamOptions - (*args.KafkaConn)(nil), // 17: protos.args.KafkaConn - (*args.KafkaRelayArgs)(nil), // 18: protos.args.KafkaRelayArgs - (*args.AWSSQSConn)(nil), // 19: protos.args.AWSSQSConn - (*args.AWSSQSRelayArgs)(nil), // 20: protos.args.AWSSQSRelayArgs - (*args.MongoConn)(nil), // 21: protos.args.MongoConn - (*args.MongoReadArgs)(nil), // 22: protos.args.MongoReadArgs - (*args.NSQConn)(nil), // 23: protos.args.NSQConn - (*args.NSQReadArgs)(nil), // 24: protos.args.NSQReadArgs - (*args.PostgresConn)(nil), // 25: protos.args.PostgresConn - (*args.PostgresReadArgs)(nil), // 26: protos.args.PostgresReadArgs - (*args.RabbitConn)(nil), // 27: protos.args.RabbitConn - (*args.RabbitReadArgs)(nil), // 28: protos.args.RabbitReadArgs - (*args.RedisPubSubConn)(nil), // 29: protos.args.RedisPubSubConn - (*args.RedisPubSubReadArgs)(nil), // 30: protos.args.RedisPubSubReadArgs - (*args.RedisStreamsConn)(nil), // 31: protos.args.RedisStreamsConn - (*args.RedisStreamsReadArgs)(nil), // 32: protos.args.RedisStreamsReadArgs - (*args.AzureServiceBusConn)(nil), // 33: protos.args.AzureServiceBusConn - (*args.AzureServiceBusReadArgs)(nil), // 34: protos.args.AzureServiceBusReadArgs - (*args.MQTTConn)(nil), // 35: protos.args.MQTTConn - (*args.MQTTReadArgs)(nil), // 36: protos.args.MQTTReadArgs - (*args.GCPPubSubConn)(nil), // 37: protos.args.GCPPubSubConn - (*args.GCPPubSubReadArgs)(nil), // 38: protos.args.GCPPubSubReadArgs - (*args.KubeMQQueueConn)(nil), // 39: protos.args.KubeMQQueueConn - (*args.KubeMQQueueReadArgs)(nil), // 40: protos.args.KubeMQQueueReadArgs - (*args.NatsConn)(nil), // 41: protos.args.NatsConn - (*args.NatsReadArgs)(nil), // 42: protos.args.NatsReadArgs - (*args.NatsStreamingConn)(nil), // 43: protos.args.NatsStreamingConn - (*args.NatsStreamingReadArgs)(nil), // 44: protos.args.NatsStreamingReadArgs - (*args.NatsJetstreamConn)(nil), // 45: protos.args.NatsJetstreamConn - (*args.NatsJetstreamReadArgs)(nil), // 46: protos.args.NatsJetstreamReadArgs -} -var file_opts_ps_opts_relay_proto_depIdxs = []int32{ - 0, // 0: protos.opts.RelayOptions._cli_options:type_name -> protos.opts.RelayCLIOptions - 2, // 1: protos.opts.RelayOptions.kafka:type_name -> protos.opts.RelayGroupKafkaOptions - 3, // 2: protos.opts.RelayOptions.aws_sqs:type_name -> protos.opts.RelayGroupAWSSQSOptions - 4, // 3: protos.opts.RelayOptions.mongo:type_name -> protos.opts.RelayGroupMongoOptions - 5, // 4: protos.opts.RelayOptions.nsq:type_name -> protos.opts.RelayGroupNSQOptions - 7, // 5: protos.opts.RelayOptions.rabbit:type_name -> protos.opts.RelayGroupRabbitOptions - 11, // 6: protos.opts.RelayOptions.mqtt:type_name -> protos.opts.RelayGroupMQTTOptions - 10, // 7: protos.opts.RelayOptions.azure_service_bus:type_name -> protos.opts.RelayGroupAzureServiceBusOptions - 12, // 8: protos.opts.RelayOptions.gcp_pubsub:type_name -> protos.opts.RelayGroupGCPPubSubOptions - 13, // 9: protos.opts.RelayOptions.kubemq_queue:type_name -> protos.opts.RelayGroupKubeMQQueueOptions - 8, // 10: protos.opts.RelayOptions.redis_pubsub:type_name -> protos.opts.RelayGroupRedisPubSubOptions - 9, // 11: protos.opts.RelayOptions.redis_streams:type_name -> protos.opts.RelayGroupRedisStreamsOptions - 6, // 12: protos.opts.RelayOptions.postgres:type_name -> protos.opts.RelayGroupPostgresOptions - 14, // 13: protos.opts.RelayOptions.nats:type_name -> protos.opts.RelayGroupNatsOptions - 15, // 14: protos.opts.RelayOptions.nats_streaming:type_name -> protos.opts.RelayGroupNatsStreamingOptions - 16, // 15: protos.opts.RelayOptions.nats_jetstream:type_name -> protos.opts.RelayGroupNatsJetStreamOptions - 17, // 16: protos.opts.RelayGroupKafkaOptions._conn:type_name -> protos.args.KafkaConn - 18, // 17: protos.opts.RelayGroupKafkaOptions.args:type_name -> protos.args.KafkaRelayArgs - 19, // 18: protos.opts.RelayGroupAWSSQSOptions._conn:type_name -> protos.args.AWSSQSConn - 20, // 19: protos.opts.RelayGroupAWSSQSOptions.args:type_name -> protos.args.AWSSQSRelayArgs - 21, // 20: protos.opts.RelayGroupMongoOptions._conn:type_name -> protos.args.MongoConn - 22, // 21: protos.opts.RelayGroupMongoOptions.args:type_name -> protos.args.MongoReadArgs - 23, // 22: protos.opts.RelayGroupNSQOptions._conn:type_name -> protos.args.NSQConn - 24, // 23: protos.opts.RelayGroupNSQOptions.args:type_name -> protos.args.NSQReadArgs - 25, // 24: protos.opts.RelayGroupPostgresOptions._conn:type_name -> protos.args.PostgresConn - 26, // 25: protos.opts.RelayGroupPostgresOptions.args:type_name -> protos.args.PostgresReadArgs - 27, // 26: protos.opts.RelayGroupRabbitOptions._conn:type_name -> protos.args.RabbitConn - 28, // 27: protos.opts.RelayGroupRabbitOptions.args:type_name -> protos.args.RabbitReadArgs - 29, // 28: protos.opts.RelayGroupRedisPubSubOptions._conn:type_name -> protos.args.RedisPubSubConn - 30, // 29: protos.opts.RelayGroupRedisPubSubOptions.args:type_name -> protos.args.RedisPubSubReadArgs - 31, // 30: protos.opts.RelayGroupRedisStreamsOptions._conn:type_name -> protos.args.RedisStreamsConn - 32, // 31: protos.opts.RelayGroupRedisStreamsOptions.args:type_name -> protos.args.RedisStreamsReadArgs - 33, // 32: protos.opts.RelayGroupAzureServiceBusOptions._conn:type_name -> protos.args.AzureServiceBusConn - 34, // 33: protos.opts.RelayGroupAzureServiceBusOptions.args:type_name -> protos.args.AzureServiceBusReadArgs - 35, // 34: protos.opts.RelayGroupMQTTOptions._conn:type_name -> protos.args.MQTTConn - 36, // 35: protos.opts.RelayGroupMQTTOptions.args:type_name -> protos.args.MQTTReadArgs - 37, // 36: protos.opts.RelayGroupGCPPubSubOptions._conn:type_name -> protos.args.GCPPubSubConn - 38, // 37: protos.opts.RelayGroupGCPPubSubOptions.args:type_name -> protos.args.GCPPubSubReadArgs - 39, // 38: protos.opts.RelayGroupKubeMQQueueOptions._conn:type_name -> protos.args.KubeMQQueueConn - 40, // 39: protos.opts.RelayGroupKubeMQQueueOptions.args:type_name -> protos.args.KubeMQQueueReadArgs - 41, // 40: protos.opts.RelayGroupNatsOptions._conn:type_name -> protos.args.NatsConn - 42, // 41: protos.opts.RelayGroupNatsOptions.args:type_name -> protos.args.NatsReadArgs - 43, // 42: protos.opts.RelayGroupNatsStreamingOptions._conn:type_name -> protos.args.NatsStreamingConn - 44, // 43: protos.opts.RelayGroupNatsStreamingOptions.args:type_name -> protos.args.NatsStreamingReadArgs - 45, // 44: protos.opts.RelayGroupNatsJetStreamOptions._conn:type_name -> protos.args.NatsJetstreamConn - 46, // 45: protos.opts.RelayGroupNatsJetStreamOptions.args:type_name -> protos.args.NatsJetstreamReadArgs - 46, // [46:46] is the sub-list for method output_type - 46, // [46:46] is the sub-list for method input_type - 46, // [46:46] is the sub-list for extension type_name - 46, // [46:46] is the sub-list for extension extendee - 0, // [0:46] is the sub-list for field type_name -} - -func init() { file_opts_ps_opts_relay_proto_init() } -func file_opts_ps_opts_relay_proto_init() { - if File_opts_ps_opts_relay_proto != nil { - return - } - file_opts_ps_opts_manage_relay_proto_init() - if !protoimpl.UnsafeEnabled { - file_opts_ps_opts_relay_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayCLIOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupKafkaOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupAWSSQSOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupMongoOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupNSQOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupPostgresOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupRabbitOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupRedisPubSubOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupRedisStreamsOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupAzureServiceBusOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupMQTTOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupGCPPubSubOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupKubeMQQueueOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupNatsOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupNatsStreamingOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_relay_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RelayGroupNatsJetStreamOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_opts_ps_opts_relay_proto_rawDesc, - NumEnums: 0, - NumMessages: 17, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_opts_ps_opts_relay_proto_goTypes, - DependencyIndexes: file_opts_ps_opts_relay_proto_depIdxs, - MessageInfos: file_opts_ps_opts_relay_proto_msgTypes, - }.Build() - File_opts_ps_opts_relay_proto = out.File - file_opts_ps_opts_relay_proto_rawDesc = nil - file_opts_ps_opts_relay_proto_goTypes = nil - file_opts_ps_opts_relay_proto_depIdxs = nil -} diff --git a/build/go/protos/opts/ps_opts_server.pb.go b/build/go/protos/opts/ps_opts_server.pb.go deleted file mode 100644 index 41c806c..0000000 --- a/build/go/protos/opts/ps_opts_server.pb.go +++ /dev/null @@ -1,346 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: opts/ps_opts_server.proto - -package opts - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 ServerOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"default=plumber1,help='Unique ID that identifies this plumber node',env='PLUMBER_SERVER_NODE_ID',required" - NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty" kong:"default=plumber1,help='Unique ID that identifies this plumber node',env='PLUMBER_SERVER_NODE_ID',required"` - // @gotags: kong:"default=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa,help='ID of the plumber cluster (has to be the same across all nodes)',env='PLUMBER_SERVER_CLUSTER_ID',required" - ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty" kong:"default=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa,help='ID of the plumber cluster (has to be the same across all nodes)',env='PLUMBER_SERVER_CLUSTER_ID',required"` - // @gotags: kong:"help='Host:port that the gRPC server will bind to',env='PLUMBER_SERVER_GRPC_LISTEN_ADDRESS',default=0.0.0.0:9090" - GrpcListenAddress string `protobuf:"bytes,3,opt,name=grpc_listen_address,json=grpcListenAddress,proto3" json:"grpc_listen_address,omitempty" kong:"help='Host:port that the gRPC server will bind to',env='PLUMBER_SERVER_GRPC_LISTEN_ADDRESS',default=0.0.0.0:9090"` - // @gotags: kong:"default=streamdal,help='All gRPC requests require this auth token to be set',env='PLUMBER_SERVER_AUTH_TOKEN',required" - AuthToken string `protobuf:"bytes,4,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty" kong:"default=streamdal,help='All gRPC requests require this auth token to be set',env='PLUMBER_SERVER_AUTH_TOKEN',required"` - // @gotags: kong:"help='Comma separated list of NATS server URLs (can contain user:password if using auth; only used if --enable-cluster is true)',env='PLUMBER_SERVER_NATS_URL',default='nats://localhost:4222'" - NatsUrl []string `protobuf:"bytes,5,rep,name=nats_url,json=natsUrl,proto3" json:"nats_url,omitempty" kong:"help='Comma separated list of NATS server URLs (can contain user:password if using auth; only used if --enable-cluster is true)',env='PLUMBER_SERVER_NATS_URL',default='nats://localhost:4222'"` - // @gotags: kong:"help='Whether to use TLS (only used if --enable-cluster is true)',env='PLUMBER_SERVER_USE_TLS'" - UseTls bool `protobuf:"varint,500,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty" kong:"help='Whether to use TLS (only used if --enable-cluster is true)',env='PLUMBER_SERVER_USE_TLS'"` - // @gotags: kong:"help='TLS client cert file (only used if --enable-cluster is true)',env='PLUMBER_SERVER_TLS_CERT_FILE'" - TlsCertFile string `protobuf:"bytes,6,opt,name=tls_cert_file,json=tlsCertFile,proto3" json:"tls_cert_file,omitempty" kong:"help='TLS client cert file (only used if --enable-cluster is true)',env='PLUMBER_SERVER_TLS_CERT_FILE'"` - // @gotags: kong:"help='TLS client key file (only used if --enable-cluster is true)',env='PLUMBER_SERVER_TLS_KEY_FILE'" - TlsKeyFile string `protobuf:"bytes,7,opt,name=tls_key_file,json=tlsKeyFile,proto3" json:"tls_key_file,omitempty" kong:"help='TLS client key file (only used if --enable-cluster is true)',env='PLUMBER_SERVER_TLS_KEY_FILE'"` - // @gotags: kong:"help='TLS CA certificate file (only used if --enable-cluster is true)',env='PLUMBER_SERVER_TLS_CA_FILE'" - TlsCaFile string `protobuf:"bytes,8,opt,name=tls_ca_file,json=tlsCaFile,proto3" json:"tls_ca_file,omitempty" kong:"help='TLS CA certificate file (only used if --enable-cluster is true)',env='PLUMBER_SERVER_TLS_CA_FILE'"` - // @gotags: kong:"help='Skip server cert verification (only used if --enable-cluster is true)',env='PLUMBER_SERVER_TLS_SKIP_VERIFY',default=false" - TlsSkipVerify bool `protobuf:"varint,9,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty" kong:"help='Skip server cert verification (only used if --enable-cluster is true)',env='PLUMBER_SERVER_TLS_SKIP_VERIFY',default=false"` - // @gotags: kong:"help='Run plumber in cluster mode (will use NATS)',env='PLUMBER_SERVER_ENABLE_CLUSTER',default=false" - EnableCluster bool `protobuf:"varint,10,opt,name=enable_cluster,json=enableCluster,proto3" json:"enable_cluster,omitempty" kong:"help='Run plumber in cluster mode (will use NATS)',env='PLUMBER_SERVER_ENABLE_CLUSTER',default=false"` - // @gotags: kong:"help='Location to store time-series data for counters',default='./.tsdata'" - StatsDatabasePath string `protobuf:"bytes,14,opt,name=stats_database_path,json=statsDatabasePath,proto3" json:"stats_database_path,omitempty" kong:"help='Location to store time-series data for counters',default='./.tsdata'"` - // @gotags: kong:"help='How often to flush time-series data (in seconds) from memory to storage',default='60'" - StatsFlushIntervalSeconds int32 `protobuf:"varint,15,opt,name=stats_flush_interval_seconds,json=statsFlushIntervalSeconds,proto3" json:"stats_flush_interval_seconds,omitempty" kong:"help='How often to flush time-series data (in seconds) from memory to storage',default='60'"` - // @gotags: kong:"help='What address to bind the built-in HTTP server to',default='0.0.0.0:9191'" - HttpListenAddress string `protobuf:"bytes,16,opt,name=http_listen_address,json=httpListenAddress,proto3" json:"http_listen_address,omitempty" kong:"help='What address to bind the built-in HTTP server to',default='0.0.0.0:9191'"` - // @gotags: kong:"help='Allow plumber to be controlled from https://console.streamdal.com',env='PLUMBER_REMOTE_CONTROL_ENABLED',default=false" - RemoteControlEnabled bool `protobuf:"varint,17,opt,name=remote_control_enabled,json=remoteControlEnabled,proto3" json:"remote_control_enabled,omitempty" kong:"help='Allow plumber to be controlled from https://console.streamdal.com',env='PLUMBER_REMOTE_CONTROL_ENABLED',default=false"` - // @gotags: kong:"help='Address of Streamdal Plumber remote control service',env='PLUMBER_REMOTE_CONTROL_ADDRESS',default='foreman.streamdal.com:443'" - RemoteControlAddress string `protobuf:"bytes,18,opt,name=remote_control_address,json=remoteControlAddress,proto3" json:"remote_control_address,omitempty" kong:"help='Address of Streamdal Plumber remote control service',env='PLUMBER_REMOTE_CONTROL_ADDRESS',default='foreman.streamdal.com:443'"` - // @gotags: kong:"help='Streamdal API token, needed to access remote control service',env='PLUMBER_REMOTE_CONTROL_API_TOKEN'" - RemoteControlApiToken string `protobuf:"bytes,19,opt,name=remote_control_api_token,json=remoteControlApiToken,proto3" json:"remote_control_api_token,omitempty" kong:"help='Streamdal API token, needed to access remote control service',env='PLUMBER_REMOTE_CONTROL_API_TOKEN'"` - // @gotags: kong:"help='Connect to remote control server without TLS',default=false" - RemoteControlDisableTls bool `protobuf:"varint,20,opt,name=remote_control_disable_tls,json=remoteControlDisableTls,proto3" json:"remote_control_disable_tls,omitempty" kong:"help='Connect to remote control server without TLS',default=false"` -} - -func (x *ServerOptions) Reset() { - *x = ServerOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_server_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServerOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServerOptions) ProtoMessage() {} - -func (x *ServerOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_server_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServerOptions.ProtoReflect.Descriptor instead. -func (*ServerOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_server_proto_rawDescGZIP(), []int{0} -} - -func (x *ServerOptions) GetNodeId() string { - if x != nil { - return x.NodeId - } - return "" -} - -func (x *ServerOptions) GetClusterId() string { - if x != nil { - return x.ClusterId - } - return "" -} - -func (x *ServerOptions) GetGrpcListenAddress() string { - if x != nil { - return x.GrpcListenAddress - } - return "" -} - -func (x *ServerOptions) GetAuthToken() string { - if x != nil { - return x.AuthToken - } - return "" -} - -func (x *ServerOptions) GetNatsUrl() []string { - if x != nil { - return x.NatsUrl - } - return nil -} - -func (x *ServerOptions) GetUseTls() bool { - if x != nil { - return x.UseTls - } - return false -} - -func (x *ServerOptions) GetTlsCertFile() string { - if x != nil { - return x.TlsCertFile - } - return "" -} - -func (x *ServerOptions) GetTlsKeyFile() string { - if x != nil { - return x.TlsKeyFile - } - return "" -} - -func (x *ServerOptions) GetTlsCaFile() string { - if x != nil { - return x.TlsCaFile - } - return "" -} - -func (x *ServerOptions) GetTlsSkipVerify() bool { - if x != nil { - return x.TlsSkipVerify - } - return false -} - -func (x *ServerOptions) GetEnableCluster() bool { - if x != nil { - return x.EnableCluster - } - return false -} - -func (x *ServerOptions) GetStatsDatabasePath() string { - if x != nil { - return x.StatsDatabasePath - } - return "" -} - -func (x *ServerOptions) GetStatsFlushIntervalSeconds() int32 { - if x != nil { - return x.StatsFlushIntervalSeconds - } - return 0 -} - -func (x *ServerOptions) GetHttpListenAddress() string { - if x != nil { - return x.HttpListenAddress - } - return "" -} - -func (x *ServerOptions) GetRemoteControlEnabled() bool { - if x != nil { - return x.RemoteControlEnabled - } - return false -} - -func (x *ServerOptions) GetRemoteControlAddress() string { - if x != nil { - return x.RemoteControlAddress - } - return "" -} - -func (x *ServerOptions) GetRemoteControlApiToken() string { - if x != nil { - return x.RemoteControlApiToken - } - return "" -} - -func (x *ServerOptions) GetRemoteControlDisableTls() bool { - if x != nil { - return x.RemoteControlDisableTls - } - return false -} - -var File_opts_ps_opts_server_proto protoreflect.FileDescriptor - -var file_opts_ps_opts_server_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x22, 0x89, 0x06, 0x0a, 0x0d, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, - 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, - 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x65, - 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x11, 0x67, 0x72, 0x70, 0x63, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x61, 0x74, 0x73, 0x55, 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, - 0x75, 0x73, 0x65, 0x5f, 0x74, 0x6c, 0x73, 0x18, 0xf4, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, - 0x75, 0x73, 0x65, 0x54, 0x6c, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x65, - 0x72, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, - 0x6c, 0x73, 0x43, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x74, 0x6c, - 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x74, 0x6c, 0x73, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0b, - 0x74, 0x6c, 0x73, 0x5f, 0x63, 0x61, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x74, 0x6c, 0x73, 0x43, 0x61, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x26, 0x0a, 0x0f, - 0x74, 0x6c, 0x73, 0x5f, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x74, 0x6c, 0x73, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x65, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x13, 0x73, - 0x74, 0x61, 0x74, 0x73, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x70, 0x61, - 0x74, 0x68, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x73, 0x74, 0x61, 0x74, 0x73, 0x44, - 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x3f, 0x0a, 0x1c, 0x73, - 0x74, 0x61, 0x74, 0x73, 0x5f, 0x66, 0x6c, 0x75, 0x73, 0x68, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x19, 0x73, 0x74, 0x61, 0x74, 0x73, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x49, 0x6e, 0x74, - 0x65, 0x72, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x2e, 0x0a, 0x13, - 0x68, 0x74, 0x74, 0x70, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x68, 0x74, 0x74, 0x70, 0x4c, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x34, 0x0a, 0x16, - 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x65, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x72, 0x65, - 0x6d, 0x6f, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x12, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x14, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, - 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x72, 0x65, 0x6d, 0x6f, - 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x72, 0x65, 0x6d, 0x6f, - 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x12, 0x3b, 0x0a, 0x1a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x6f, 0x6c, 0x5f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x6c, 0x73, 0x18, - 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x6f, 0x6c, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6c, 0x73, 0x4a, 0x04, - 0x08, 0x0b, 0x10, 0x0e, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x70, 0x6c, 0x75, - 0x6d, 0x62, 0x65, 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x62, 0x75, 0x69, - 0x6c, 0x64, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6f, 0x70, 0x74, - 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_opts_ps_opts_server_proto_rawDescOnce sync.Once - file_opts_ps_opts_server_proto_rawDescData = file_opts_ps_opts_server_proto_rawDesc -) - -func file_opts_ps_opts_server_proto_rawDescGZIP() []byte { - file_opts_ps_opts_server_proto_rawDescOnce.Do(func() { - file_opts_ps_opts_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_opts_ps_opts_server_proto_rawDescData) - }) - return file_opts_ps_opts_server_proto_rawDescData -} - -var file_opts_ps_opts_server_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_opts_ps_opts_server_proto_goTypes = []interface{}{ - (*ServerOptions)(nil), // 0: protos.opts.ServerOptions -} -var file_opts_ps_opts_server_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_opts_ps_opts_server_proto_init() } -func file_opts_ps_opts_server_proto_init() { - if File_opts_ps_opts_server_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_opts_ps_opts_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_opts_ps_opts_server_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_opts_ps_opts_server_proto_goTypes, - DependencyIndexes: file_opts_ps_opts_server_proto_depIdxs, - MessageInfos: file_opts_ps_opts_server_proto_msgTypes, - }.Build() - File_opts_ps_opts_server_proto = out.File - file_opts_ps_opts_server_proto_rawDesc = nil - file_opts_ps_opts_server_proto_goTypes = nil - file_opts_ps_opts_server_proto_depIdxs = nil -} diff --git a/build/go/protos/opts/ps_opts_tunnel.pb.go b/build/go/protos/opts/ps_opts_tunnel.pb.go deleted file mode 100644 index 64cb967..0000000 --- a/build/go/protos/opts/ps_opts_tunnel.pb.go +++ /dev/null @@ -1,2204 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: opts/ps_opts_tunnel.proto - -package opts - -import ( - args "github.com/batchcorp/plumber-schemas/build/go/protos/args" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 TunnelOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"help='API token to use for tunnel (create here: https://console.streamdal.com/account/security)',required" - ApiToken string `protobuf:"bytes,1,opt,name=api_token,json=apiToken,proto3" json:"api_token,omitempty" kong:"help='API token to use for tunnel (create here: https://console.streamdal.com/account/security)',required"` - // @gotags: kong:"-" - ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" kong:"-"` - // @gotags: kong:"help='Tunnel API address',default='dproxy.streamdal.com:443'" - XGrpcAddress string `protobuf:"bytes,3,opt,name=_grpc_address,json=GrpcAddress,proto3" json:"_grpc_address,omitempty" kong:"help='Tunnel API address',default='dproxy.streamdal.com:443'"` - // @gotags: kong:"help='Tunnel API initial connection timeout',default=5" - XGrpcTimeoutSeconds uint32 `protobuf:"varint,4,opt,name=_grpc_timeout_seconds,json=GrpcTimeoutSeconds,proto3" json:"_grpc_timeout_seconds,omitempty" kong:"help='Tunnel API initial connection timeout',default=5"` - // @gotags: kong:"help='Use gRPC insecure mode when talking to Streamdal'" - XGrpcInsecure bool `protobuf:"varint,5,opt,name=_grpc_insecure,json=GrpcInsecure,proto3" json:"_grpc_insecure,omitempty" kong:"help='Use gRPC insecure mode when talking to Streamdal'"` - // Optional for server and CLI - // NOTE: CLI-based tunnels will be treated as ephemeral. - // @gotags: kong:"help='Name to identify tunnel in Streamdal console. If omitted, your IP address will be used'" - Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty" kong:"help='Name to identify tunnel in Streamdal console. If omitted, your IP address will be used'"` - // ID of the created tunnel; populated by plumber. - // @gotags: kong:"-" - XTunnelId string `protobuf:"bytes,1000,opt,name=_tunnel_id,json=TunnelId,proto3" json:"_tunnel_id,omitempty" kong:"-"` - // Set by CreateTunnel() StopTunnel() and ResumeTunnel() methods in Plumber - // @gotags: kong:"-" - XActive bool `protobuf:"varint,1001,opt,name=_active,json=Active,proto3" json:"_active,omitempty" kong:"-"` - // @gotags: kong:"cmd,help='Apache Kafka'" - Kafka *TunnelGroupKafkaOptions `protobuf:"bytes,100,opt,name=kafka,proto3" json:"kafka,omitempty" kong:"cmd,help='Apache Kafka'"` - // @gotags: kong:"cmd,help='Apache ActiveMQ'" - Activemq *TunnelGroupActiveMQOptions `protobuf:"bytes,101,opt,name=activemq,proto3" json:"activemq,omitempty" kong:"cmd,help='Apache ActiveMQ'"` - // @gotags: kong:"cmd,help='AWS Simple Queue System'" - AwsSqs *TunnelGroupAWSSQSOptions `protobuf:"bytes,102,opt,name=aws_sqs,json=awsSqs,proto3" json:"aws_sqs,omitempty" kong:"cmd,help='AWS Simple Queue System'"` - // @gotags: kong:"cmd,help='AWS Simple Notification System'" - AwsSns *TunnelGroupAWSSNSOptions `protobuf:"bytes,103,opt,name=aws_sns,json=awsSns,proto3" json:"aws_sns,omitempty" kong:"cmd,help='AWS Simple Notification System'"` - // @gotags: kong:"cmd,help='NATS'" - Nats *TunnelGroupNatsOptions `protobuf:"bytes,104,opt,name=nats,proto3" json:"nats,omitempty" kong:"cmd,help='NATS'"` - // @gotags: kong:"cmd,help='NATS Streaming'" - NatsStreaming *TunnelGroupNatsStreamingOptions `protobuf:"bytes,105,opt,name=nats_streaming,json=natsStreaming,proto3" json:"nats_streaming,omitempty" kong:"cmd,help='NATS Streaming'"` - // @gotags: kong:"cmd,help='NSQ'" - Nsq *TunnelGroupNSQOptions `protobuf:"bytes,106,opt,name=nsq,proto3" json:"nsq,omitempty" kong:"cmd,help='NSQ'"` - // @gotags: kong:"cmd,help='RabbitMQ'" - Rabbit *TunnelGroupRabbitOptions `protobuf:"bytes,107,opt,name=rabbit,proto3" json:"rabbit,omitempty" kong:"cmd,help='RabbitMQ'"` - // @gotags: kong:"cmd,help='MQTT'" - Mqtt *TunnelGroupMQTTOptions `protobuf:"bytes,108,opt,name=mqtt,proto3" json:"mqtt,omitempty" kong:"cmd,help='MQTT'"` - // @gotags: kong:"cmd,help='Azure Service Bus'" - AzureServiceBus *TunnelGroupAzureServiceBusOptions `protobuf:"bytes,109,opt,name=azure_service_bus,json=azureServiceBus,proto3" json:"azure_service_bus,omitempty" kong:"cmd,help='Azure Service Bus'"` - // @gotags: kong:"cmd,help='Azure Event Hub'" - AzureEventHub *TunnelGroupAzureEventHubOptions `protobuf:"bytes,110,opt,name=azure_event_hub,json=azureEventHub,proto3" json:"azure_event_hub,omitempty" kong:"cmd,help='Azure Event Hub'"` - // @gotags: kong:"cmd,help='Google Cloud Platform Pub/Sub'" - GcpPubsub *TunnelGroupGCPPubSubOptions `protobuf:"bytes,111,opt,name=gcp_pubsub,json=gcpPubsub,proto3" json:"gcp_pubsub,omitempty" kong:"cmd,help='Google Cloud Platform Pub/Sub'"` - // @gotags: kong:"cmd,help='KubeMQ Queue'" - KubemqQueue *TunnelGroupKubeMQQueueOptions `protobuf:"bytes,112,opt,name=kubemq_queue,json=kubemqQueue,proto3" json:"kubemq_queue,omitempty" kong:"cmd,help='KubeMQ Queue'"` - // @gotags: kong:"cmd,help='Redis PubSub'" - RedisPubsub *TunnelGroupRedisPubSubOptions `protobuf:"bytes,113,opt,name=redis_pubsub,json=redisPubsub,proto3" json:"redis_pubsub,omitempty" kong:"cmd,help='Redis PubSub'"` - // @gotags: kong:"cmd,help='Redis Streams'" - RedisStreams *TunnelGroupRedisStreamsOptions `protobuf:"bytes,114,opt,name=redis_streams,json=redisStreams,proto3" json:"redis_streams,omitempty" kong:"cmd,help='Redis Streams'"` - // @gotags: kong:"cmd,help='Apache Pulsar'" - Pulsar *TunnelGroupPulsarOptions `protobuf:"bytes,115,opt,name=pulsar,proto3" json:"pulsar,omitempty" kong:"cmd,help='Apache Pulsar'"` - // @gotags: kong:"cmd,help='RabbitMQ Streams'" - RabbitStreams *TunnelGroupRabbitStreamsOptions `protobuf:"bytes,116,opt,name=rabbit_streams,json=rabbitStreams,proto3" json:"rabbit_streams,omitempty" kong:"cmd,help='RabbitMQ Streams'"` - // @gotags: kong:"cmd,help='NATS JetStream'" - NatsJetstream *TunnelGroupNatsJetstreamOptions `protobuf:"bytes,117,opt,name=nats_jetstream,json=natsJetstream,proto3" json:"nats_jetstream,omitempty" kong:"cmd,help='NATS JetStream'"` - // @gotags: kong:"cmd,help='AWS Kinesis Streams'" - AwsKinesis *TunnelGroupAWSKinesisOptions `protobuf:"bytes,118,opt,name=aws_kinesis,json=awsKinesis,proto3" json:"aws_kinesis,omitempty" kong:"cmd,help='AWS Kinesis Streams'"` - // @gotags: kong:"cmd,help='Memphis'" - Memphis *TunnelGroupMemphisOptions `protobuf:"bytes,119,opt,name=memphis,proto3" json:"memphis,omitempty" kong:"cmd,help='Memphis'"` -} - -func (x *TunnelOptions) Reset() { - *x = TunnelOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelOptions) ProtoMessage() {} - -func (x *TunnelOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelOptions.ProtoReflect.Descriptor instead. -func (*TunnelOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{0} -} - -func (x *TunnelOptions) GetApiToken() string { - if x != nil { - return x.ApiToken - } - return "" -} - -func (x *TunnelOptions) GetConnectionId() string { - if x != nil { - return x.ConnectionId - } - return "" -} - -func (x *TunnelOptions) GetXGrpcAddress() string { - if x != nil { - return x.XGrpcAddress - } - return "" -} - -func (x *TunnelOptions) GetXGrpcTimeoutSeconds() uint32 { - if x != nil { - return x.XGrpcTimeoutSeconds - } - return 0 -} - -func (x *TunnelOptions) GetXGrpcInsecure() bool { - if x != nil { - return x.XGrpcInsecure - } - return false -} - -func (x *TunnelOptions) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *TunnelOptions) GetXTunnelId() string { - if x != nil { - return x.XTunnelId - } - return "" -} - -func (x *TunnelOptions) GetXActive() bool { - if x != nil { - return x.XActive - } - return false -} - -func (x *TunnelOptions) GetKafka() *TunnelGroupKafkaOptions { - if x != nil { - return x.Kafka - } - return nil -} - -func (x *TunnelOptions) GetActivemq() *TunnelGroupActiveMQOptions { - if x != nil { - return x.Activemq - } - return nil -} - -func (x *TunnelOptions) GetAwsSqs() *TunnelGroupAWSSQSOptions { - if x != nil { - return x.AwsSqs - } - return nil -} - -func (x *TunnelOptions) GetAwsSns() *TunnelGroupAWSSNSOptions { - if x != nil { - return x.AwsSns - } - return nil -} - -func (x *TunnelOptions) GetNats() *TunnelGroupNatsOptions { - if x != nil { - return x.Nats - } - return nil -} - -func (x *TunnelOptions) GetNatsStreaming() *TunnelGroupNatsStreamingOptions { - if x != nil { - return x.NatsStreaming - } - return nil -} - -func (x *TunnelOptions) GetNsq() *TunnelGroupNSQOptions { - if x != nil { - return x.Nsq - } - return nil -} - -func (x *TunnelOptions) GetRabbit() *TunnelGroupRabbitOptions { - if x != nil { - return x.Rabbit - } - return nil -} - -func (x *TunnelOptions) GetMqtt() *TunnelGroupMQTTOptions { - if x != nil { - return x.Mqtt - } - return nil -} - -func (x *TunnelOptions) GetAzureServiceBus() *TunnelGroupAzureServiceBusOptions { - if x != nil { - return x.AzureServiceBus - } - return nil -} - -func (x *TunnelOptions) GetAzureEventHub() *TunnelGroupAzureEventHubOptions { - if x != nil { - return x.AzureEventHub - } - return nil -} - -func (x *TunnelOptions) GetGcpPubsub() *TunnelGroupGCPPubSubOptions { - if x != nil { - return x.GcpPubsub - } - return nil -} - -func (x *TunnelOptions) GetKubemqQueue() *TunnelGroupKubeMQQueueOptions { - if x != nil { - return x.KubemqQueue - } - return nil -} - -func (x *TunnelOptions) GetRedisPubsub() *TunnelGroupRedisPubSubOptions { - if x != nil { - return x.RedisPubsub - } - return nil -} - -func (x *TunnelOptions) GetRedisStreams() *TunnelGroupRedisStreamsOptions { - if x != nil { - return x.RedisStreams - } - return nil -} - -func (x *TunnelOptions) GetPulsar() *TunnelGroupPulsarOptions { - if x != nil { - return x.Pulsar - } - return nil -} - -func (x *TunnelOptions) GetRabbitStreams() *TunnelGroupRabbitStreamsOptions { - if x != nil { - return x.RabbitStreams - } - return nil -} - -func (x *TunnelOptions) GetNatsJetstream() *TunnelGroupNatsJetstreamOptions { - if x != nil { - return x.NatsJetstream - } - return nil -} - -func (x *TunnelOptions) GetAwsKinesis() *TunnelGroupAWSKinesisOptions { - if x != nil { - return x.AwsKinesis - } - return nil -} - -func (x *TunnelOptions) GetMemphis() *TunnelGroupMemphisOptions { - if x != nil { - return x.Memphis - } - return nil -} - -type TunnelGroupKafkaOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.KafkaConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.KafkaWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupKafkaOptions) Reset() { - *x = TunnelGroupKafkaOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupKafkaOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupKafkaOptions) ProtoMessage() {} - -func (x *TunnelGroupKafkaOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupKafkaOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupKafkaOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{1} -} - -func (x *TunnelGroupKafkaOptions) GetXConn() *args.KafkaConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupKafkaOptions) GetArgs() *args.KafkaWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupActiveMQOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.ActiveMQConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.ActiveMQWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupActiveMQOptions) Reset() { - *x = TunnelGroupActiveMQOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupActiveMQOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupActiveMQOptions) ProtoMessage() {} - -func (x *TunnelGroupActiveMQOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupActiveMQOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupActiveMQOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{2} -} - -func (x *TunnelGroupActiveMQOptions) GetXConn() *args.ActiveMQConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupActiveMQOptions) GetArgs() *args.ActiveMQWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupAWSSQSOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.AWSSQSConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.AWSSQSWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupAWSSQSOptions) Reset() { - *x = TunnelGroupAWSSQSOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupAWSSQSOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupAWSSQSOptions) ProtoMessage() {} - -func (x *TunnelGroupAWSSQSOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupAWSSQSOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupAWSSQSOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{3} -} - -func (x *TunnelGroupAWSSQSOptions) GetXConn() *args.AWSSQSConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupAWSSQSOptions) GetArgs() *args.AWSSQSWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupAWSSNSOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.AWSSNSConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.AWSSNSWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupAWSSNSOptions) Reset() { - *x = TunnelGroupAWSSNSOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupAWSSNSOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupAWSSNSOptions) ProtoMessage() {} - -func (x *TunnelGroupAWSSNSOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupAWSSNSOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupAWSSNSOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{4} -} - -func (x *TunnelGroupAWSSNSOptions) GetXConn() *args.AWSSNSConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupAWSSNSOptions) GetArgs() *args.AWSSNSWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupNatsOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.NatsConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.NatsWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupNatsOptions) Reset() { - *x = TunnelGroupNatsOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupNatsOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupNatsOptions) ProtoMessage() {} - -func (x *TunnelGroupNatsOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupNatsOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupNatsOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{5} -} - -func (x *TunnelGroupNatsOptions) GetXConn() *args.NatsConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupNatsOptions) GetArgs() *args.NatsWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupNatsJetstreamOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.NatsJetstreamConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.NatsJetstreamWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupNatsJetstreamOptions) Reset() { - *x = TunnelGroupNatsJetstreamOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupNatsJetstreamOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupNatsJetstreamOptions) ProtoMessage() {} - -func (x *TunnelGroupNatsJetstreamOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupNatsJetstreamOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupNatsJetstreamOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{6} -} - -func (x *TunnelGroupNatsJetstreamOptions) GetXConn() *args.NatsJetstreamConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupNatsJetstreamOptions) GetArgs() *args.NatsJetstreamWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupNatsStreamingOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.NatsStreamingConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.NatsStreamingWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupNatsStreamingOptions) Reset() { - *x = TunnelGroupNatsStreamingOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupNatsStreamingOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupNatsStreamingOptions) ProtoMessage() {} - -func (x *TunnelGroupNatsStreamingOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupNatsStreamingOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupNatsStreamingOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{7} -} - -func (x *TunnelGroupNatsStreamingOptions) GetXConn() *args.NatsStreamingConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupNatsStreamingOptions) GetArgs() *args.NatsStreamingWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupNSQOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.NSQConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.NSQWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupNSQOptions) Reset() { - *x = TunnelGroupNSQOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupNSQOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupNSQOptions) ProtoMessage() {} - -func (x *TunnelGroupNSQOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupNSQOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupNSQOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{8} -} - -func (x *TunnelGroupNSQOptions) GetXConn() *args.NSQConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupNSQOptions) GetArgs() *args.NSQWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupRabbitOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.RabbitConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.RabbitWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupRabbitOptions) Reset() { - *x = TunnelGroupRabbitOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupRabbitOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupRabbitOptions) ProtoMessage() {} - -func (x *TunnelGroupRabbitOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupRabbitOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupRabbitOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{9} -} - -func (x *TunnelGroupRabbitOptions) GetXConn() *args.RabbitConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupRabbitOptions) GetArgs() *args.RabbitWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupRabbitStreamsOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.RabbitStreamsConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.RabbitStreamsWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupRabbitStreamsOptions) Reset() { - *x = TunnelGroupRabbitStreamsOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupRabbitStreamsOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupRabbitStreamsOptions) ProtoMessage() {} - -func (x *TunnelGroupRabbitStreamsOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupRabbitStreamsOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupRabbitStreamsOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{10} -} - -func (x *TunnelGroupRabbitStreamsOptions) GetXConn() *args.RabbitStreamsConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupRabbitStreamsOptions) GetArgs() *args.RabbitStreamsWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupRedisPubSubOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.RedisPubSubConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.RedisPubSubWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupRedisPubSubOptions) Reset() { - *x = TunnelGroupRedisPubSubOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupRedisPubSubOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupRedisPubSubOptions) ProtoMessage() {} - -func (x *TunnelGroupRedisPubSubOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupRedisPubSubOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupRedisPubSubOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{11} -} - -func (x *TunnelGroupRedisPubSubOptions) GetXConn() *args.RedisPubSubConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupRedisPubSubOptions) GetArgs() *args.RedisPubSubWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupRedisStreamsOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.RedisStreamsConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.RedisStreamsWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupRedisStreamsOptions) Reset() { - *x = TunnelGroupRedisStreamsOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupRedisStreamsOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupRedisStreamsOptions) ProtoMessage() {} - -func (x *TunnelGroupRedisStreamsOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupRedisStreamsOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupRedisStreamsOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{12} -} - -func (x *TunnelGroupRedisStreamsOptions) GetXConn() *args.RedisStreamsConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupRedisStreamsOptions) GetArgs() *args.RedisStreamsWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupAzureEventHubOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.AzureEventHubConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.AzureEventHubWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupAzureEventHubOptions) Reset() { - *x = TunnelGroupAzureEventHubOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupAzureEventHubOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupAzureEventHubOptions) ProtoMessage() {} - -func (x *TunnelGroupAzureEventHubOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupAzureEventHubOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupAzureEventHubOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{13} -} - -func (x *TunnelGroupAzureEventHubOptions) GetXConn() *args.AzureEventHubConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupAzureEventHubOptions) GetArgs() *args.AzureEventHubWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupAzureServiceBusOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed"{ - XConn *args.AzureServiceBusConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.AzureServiceBusWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupAzureServiceBusOptions) Reset() { - *x = TunnelGroupAzureServiceBusOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupAzureServiceBusOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupAzureServiceBusOptions) ProtoMessage() {} - -func (x *TunnelGroupAzureServiceBusOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupAzureServiceBusOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupAzureServiceBusOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{14} -} - -func (x *TunnelGroupAzureServiceBusOptions) GetXConn() *args.AzureServiceBusConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupAzureServiceBusOptions) GetArgs() *args.AzureServiceBusWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupMQTTOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.MQTTConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.MQTTWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupMQTTOptions) Reset() { - *x = TunnelGroupMQTTOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupMQTTOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupMQTTOptions) ProtoMessage() {} - -func (x *TunnelGroupMQTTOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupMQTTOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupMQTTOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{15} -} - -func (x *TunnelGroupMQTTOptions) GetXConn() *args.MQTTConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupMQTTOptions) GetArgs() *args.MQTTWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupGCPPubSubOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.GCPPubSubConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.GCPPubSubWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupGCPPubSubOptions) Reset() { - *x = TunnelGroupGCPPubSubOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupGCPPubSubOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupGCPPubSubOptions) ProtoMessage() {} - -func (x *TunnelGroupGCPPubSubOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupGCPPubSubOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupGCPPubSubOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{16} -} - -func (x *TunnelGroupGCPPubSubOptions) GetXConn() *args.GCPPubSubConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupGCPPubSubOptions) GetArgs() *args.GCPPubSubWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupKubeMQQueueOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.KubeMQQueueConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.KubeMQQueueWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupKubeMQQueueOptions) Reset() { - *x = TunnelGroupKubeMQQueueOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupKubeMQQueueOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupKubeMQQueueOptions) ProtoMessage() {} - -func (x *TunnelGroupKubeMQQueueOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupKubeMQQueueOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupKubeMQQueueOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{17} -} - -func (x *TunnelGroupKubeMQQueueOptions) GetXConn() *args.KubeMQQueueConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupKubeMQQueueOptions) GetArgs() *args.KubeMQQueueWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupPulsarOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.PulsarConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.PulsarWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupPulsarOptions) Reset() { - *x = TunnelGroupPulsarOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupPulsarOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupPulsarOptions) ProtoMessage() {} - -func (x *TunnelGroupPulsarOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupPulsarOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupPulsarOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{18} -} - -func (x *TunnelGroupPulsarOptions) GetXConn() *args.PulsarConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupPulsarOptions) GetArgs() *args.PulsarWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupAWSKinesisOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.AWSKinesisConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.AWSKinesisWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupAWSKinesisOptions) Reset() { - *x = TunnelGroupAWSKinesisOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupAWSKinesisOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupAWSKinesisOptions) ProtoMessage() {} - -func (x *TunnelGroupAWSKinesisOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupAWSKinesisOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupAWSKinesisOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{19} -} - -func (x *TunnelGroupAWSKinesisOptions) GetXConn() *args.AWSKinesisConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupAWSKinesisOptions) GetArgs() *args.AWSKinesisWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -type TunnelGroupMemphisOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // @gotags: kong:"embed" - XConn *args.MemphisConn `protobuf:"bytes,1,opt,name=_conn,json=Conn,proto3" json:"_conn,omitempty" kong:"embed"` - // @gotags: kong:"embed" - Args *args.MemphisWriteArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty" kong:"embed"` -} - -func (x *TunnelGroupMemphisOptions) Reset() { - *x = TunnelGroupMemphisOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TunnelGroupMemphisOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TunnelGroupMemphisOptions) ProtoMessage() {} - -func (x *TunnelGroupMemphisOptions) ProtoReflect() protoreflect.Message { - mi := &file_opts_ps_opts_tunnel_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TunnelGroupMemphisOptions.ProtoReflect.Descriptor instead. -func (*TunnelGroupMemphisOptions) Descriptor() ([]byte, []int) { - return file_opts_ps_opts_tunnel_proto_rawDescGZIP(), []int{20} -} - -func (x *TunnelGroupMemphisOptions) GetXConn() *args.MemphisConn { - if x != nil { - return x.XConn - } - return nil -} - -func (x *TunnelGroupMemphisOptions) GetArgs() *args.MemphisWriteArgs { - if x != nil { - return x.Args - } - return nil -} - -var File_opts_ps_opts_tunnel_proto protoreflect.FileDescriptor - -var file_opts_ps_opts_tunnel_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x74, - 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x1a, 0x1b, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, - 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6d, 0x71, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, - 0x72, 0x67, 0x73, 0x5f, 0x61, 0x77, 0x73, 0x5f, 0x6b, 0x69, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, - 0x72, 0x67, 0x73, 0x5f, 0x61, 0x77, 0x73, 0x5f, 0x73, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1a, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, - 0x61, 0x77, 0x73, 0x5f, 0x73, 0x71, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x61, - 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x61, 0x7a, 0x75, 0x72, - 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x75, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x24, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, - 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x62, 0x75, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, - 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x67, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, - 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1f, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6b, - 0x75, 0x62, 0x65, 0x6d, 0x71, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1a, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, - 0x6d, 0x65, 0x6d, 0x70, 0x68, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, - 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6d, 0x71, 0x74, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, - 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x61, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x21, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x61, - 0x74, 0x73, 0x5f, 0x6a, 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x21, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, - 0x5f, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, - 0x72, 0x67, 0x73, 0x5f, 0x6e, 0x73, 0x71, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x61, - 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x70, 0x75, 0x6c, 0x73, - 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, - 0x73, 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x61, 0x72, 0x67, - 0x73, 0x5f, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, 0x5f, - 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, - 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x61, 0x72, 0x67, 0x73, 0x2f, 0x70, 0x73, - 0x5f, 0x61, 0x72, 0x67, 0x73, 0x5f, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xba, 0x0d, 0x0a, 0x0d, 0x54, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x61, - 0x70, 0x69, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x61, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x22, 0x0a, - 0x0d, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x47, 0x72, 0x70, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x31, 0x0a, 0x15, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, - 0x75, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x12, 0x47, 0x72, 0x70, 0x63, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, - 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x5f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x69, 0x6e, - 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x47, 0x72, - 0x70, 0x63, 0x49, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, - 0x0a, 0x0a, 0x5f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0xe8, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x18, 0x0a, - 0x07, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x06, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x3a, 0x0a, 0x05, 0x6b, 0x61, 0x66, 0x6b, 0x61, - 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, 0x6b, 0x61, - 0x66, 0x6b, 0x61, 0x12, 0x43, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6d, 0x71, 0x18, - 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, - 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x4d, 0x51, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x08, - 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x6d, 0x71, 0x12, 0x3e, 0x0a, 0x07, 0x61, 0x77, 0x73, 0x5f, - 0x73, 0x71, 0x73, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x41, 0x57, 0x53, 0x53, 0x51, 0x53, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x06, 0x61, 0x77, 0x73, 0x53, 0x71, 0x73, 0x12, 0x3e, 0x0a, 0x07, 0x61, 0x77, 0x73, 0x5f, - 0x73, 0x6e, 0x73, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x41, 0x57, 0x53, 0x53, 0x4e, 0x53, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x06, 0x61, 0x77, 0x73, 0x53, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x04, 0x6e, 0x61, 0x74, 0x73, - 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x4e, 0x61, 0x74, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, 0x6e, 0x61, 0x74, - 0x73, 0x12, 0x53, 0x0a, 0x0e, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x18, 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x6e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x34, 0x0a, 0x03, 0x6e, 0x73, 0x71, 0x18, 0x6a, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, - 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x53, 0x51, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x03, 0x6e, 0x73, 0x71, 0x12, 0x3d, 0x0a, 0x06, - 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, - 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x61, 0x62, 0x62, 0x69, 0x74, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x12, 0x37, 0x0a, 0x04, 0x6d, - 0x71, 0x74, 0x74, 0x18, 0x6c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x4d, 0x51, 0x54, 0x54, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, - 0x6d, 0x71, 0x74, 0x74, 0x12, 0x5a, 0x0a, 0x11, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x73, 0x18, 0x6d, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x0f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x73, - 0x12, 0x54, 0x0a, 0x0f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, - 0x68, 0x75, 0x62, 0x18, 0x6e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x75, 0x62, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x48, 0x75, 0x62, 0x12, 0x47, 0x0a, 0x0a, 0x67, 0x63, 0x70, 0x5f, 0x70, 0x75, - 0x62, 0x73, 0x75, 0x62, 0x18, 0x6f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x47, 0x43, 0x50, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x09, 0x67, 0x63, 0x70, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x12, - 0x4d, 0x0a, 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x6d, 0x71, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, - 0x70, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, - 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, - 0x75, 0x62, 0x65, 0x4d, 0x51, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x0b, 0x6b, 0x75, 0x62, 0x65, 0x6d, 0x71, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x4d, - 0x0a, 0x0c, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x18, 0x71, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, - 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, - 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x0b, 0x72, 0x65, 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x12, 0x50, 0x0a, - 0x0d, 0x72, 0x65, 0x64, 0x69, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x72, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, - 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, - 0x64, 0x69, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x0c, 0x72, 0x65, 0x64, 0x69, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, - 0x3d, 0x0a, 0x06, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x18, 0x73, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x12, 0x53, - 0x0a, 0x0e, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, - 0x18, 0x74, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x52, 0x61, 0x62, 0x62, 0x69, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x72, 0x61, 0x62, 0x62, 0x69, 0x74, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x73, 0x12, 0x53, 0x0a, 0x0e, 0x6e, 0x61, 0x74, 0x73, 0x5f, 0x6a, 0x65, 0x74, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x75, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x74, 0x73, 0x4a, 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x6e, 0x61, 0x74, 0x73, 0x4a, - 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x4a, 0x0a, 0x0b, 0x61, 0x77, 0x73, 0x5f, - 0x6b, 0x69, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x18, 0x76, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, - 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x57, 0x53, 0x4b, 0x69, 0x6e, 0x65, 0x73, 0x69, - 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x61, 0x77, 0x73, 0x4b, 0x69, 0x6e, - 0x65, 0x73, 0x69, 0x73, 0x12, 0x40, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x70, 0x68, 0x69, 0x73, 0x18, - 0x77, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, - 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, - 0x65, 0x6d, 0x70, 0x68, 0x69, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6d, - 0x65, 0x6d, 0x70, 0x68, 0x69, 0x73, 0x22, 0x77, 0x0a, 0x17, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4b, - 0x61, 0x66, 0x6b, 0x61, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x2f, - 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, - 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, - 0x80, 0x01, 0x0a, 0x1a, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x4d, 0x51, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2e, - 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x4d, 0x51, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x32, - 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x65, 0x4d, 0x51, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, - 0x67, 0x73, 0x22, 0x7a, 0x0a, 0x18, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x41, 0x57, 0x53, 0x53, 0x51, 0x53, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2c, - 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x57, 0x53, 0x53, - 0x51, 0x53, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x30, 0x0a, 0x04, - 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x57, 0x53, 0x53, 0x51, 0x53, 0x57, - 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x7a, - 0x0a, 0x18, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x57, 0x53, - 0x53, 0x4e, 0x53, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2c, 0x0a, 0x05, 0x5f, 0x63, - 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x57, 0x53, 0x53, 0x4e, 0x53, 0x43, 0x6f, - 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x30, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x57, 0x53, 0x53, 0x4e, 0x53, 0x57, 0x72, 0x69, 0x74, 0x65, - 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x74, 0x0a, 0x16, 0x54, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x74, 0x73, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2a, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, - 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, - 0x12, 0x2e, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, - 0x73, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, - 0x22, 0x8f, 0x01, 0x0a, 0x1f, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x4e, 0x61, 0x74, 0x73, 0x4a, 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, - 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x4a, 0x65, 0x74, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, - 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x37, 0x0a, 0x04, 0x61, 0x72, 0x67, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x4a, 0x65, 0x74, 0x73, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, - 0x67, 0x73, 0x22, 0x8f, 0x01, 0x0a, 0x1f, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x4e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, - 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x37, 0x0a, 0x04, 0x61, - 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, - 0x61, 0x72, 0x67, 0x73, 0x22, 0x71, 0x0a, 0x15, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x4e, 0x53, 0x51, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x29, 0x0a, - 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x53, 0x51, 0x43, 0x6f, - 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x2d, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4e, 0x53, 0x51, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, - 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x7a, 0x0a, 0x18, 0x54, 0x75, 0x6e, 0x6e, 0x65, - 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x61, 0x62, 0x62, 0x69, 0x74, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x2c, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, - 0x2e, 0x52, 0x61, 0x62, 0x62, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, - 0x6e, 0x12, 0x30, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x61, - 0x62, 0x62, 0x69, 0x74, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, - 0x72, 0x67, 0x73, 0x22, 0x8f, 0x01, 0x0a, 0x1f, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x52, 0x61, 0x62, 0x62, 0x69, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x61, 0x62, 0x62, 0x69, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x37, 0x0a, 0x04, - 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x61, 0x62, 0x62, 0x69, 0x74, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, - 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x1d, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, - 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x35, 0x0a, 0x04, 0x61, 0x72, - 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x50, 0x75, 0x62, 0x53, - 0x75, 0x62, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, - 0x73, 0x22, 0x8c, 0x01, 0x0a, 0x1e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x52, 0x65, 0x64, 0x69, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x32, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, - 0x73, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x43, 0x6f, - 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x36, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x61, 0x72, 0x67, 0x73, 0x2e, 0x52, 0x65, 0x64, 0x69, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x73, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, - 0x22, 0x8f, 0x01, 0x0a, 0x1f, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x41, 0x7a, 0x75, 0x72, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x75, 0x62, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, - 0x73, 0x2e, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x75, 0x62, 0x43, - 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x37, 0x0a, 0x04, 0x61, 0x72, 0x67, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x48, 0x75, 0x62, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, - 0x67, 0x73, 0x22, 0x95, 0x01, 0x0a, 0x21, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, - 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x42, 0x75, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, - 0x39, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x7a, 0x75, 0x72, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x73, 0x57, 0x72, 0x69, 0x74, 0x65, - 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x74, 0x0a, 0x16, 0x54, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x51, 0x54, 0x54, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2a, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, - 0x73, 0x2e, 0x4d, 0x51, 0x54, 0x54, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, - 0x12, 0x2e, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4d, 0x51, 0x54, - 0x54, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, - 0x22, 0x83, 0x01, 0x0a, 0x1b, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x47, 0x43, 0x50, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x2f, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x47, 0x43, - 0x50, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, - 0x6e, 0x12, 0x33, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x47, 0x43, - 0x50, 0x50, 0x75, 0x62, 0x53, 0x75, 0x62, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, - 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x1d, 0x54, 0x75, 0x6e, 0x6e, 0x65, - 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4b, 0x75, 0x62, 0x65, 0x4d, 0x51, 0x51, 0x75, 0x65, 0x75, - 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x4d, 0x51, 0x51, 0x75, 0x65, 0x75, - 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x35, 0x0a, 0x04, 0x61, - 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x4d, 0x51, 0x51, 0x75, - 0x65, 0x75, 0x65, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, - 0x67, 0x73, 0x22, 0x7a, 0x0a, 0x18, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x50, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2c, - 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x50, 0x75, 0x6c, 0x73, - 0x61, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, 0x6e, 0x12, 0x30, 0x0a, 0x04, - 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x50, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x57, - 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x86, - 0x01, 0x0a, 0x1c, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x57, - 0x53, 0x4b, 0x69, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x30, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x57, 0x53, - 0x4b, 0x69, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, 0x6f, 0x6e, - 0x6e, 0x12, 0x34, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, 0x41, 0x57, - 0x53, 0x4b, 0x69, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, - 0x73, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x22, 0x7d, 0x0a, 0x19, 0x54, 0x75, 0x6e, 0x6e, 0x65, - 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x70, 0x68, 0x69, 0x73, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2d, 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, - 0x73, 0x2e, 0x4d, 0x65, 0x6d, 0x70, 0x68, 0x69, 0x73, 0x43, 0x6f, 0x6e, 0x6e, 0x52, 0x04, 0x43, - 0x6f, 0x6e, 0x6e, 0x12, 0x31, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x61, 0x72, 0x67, 0x73, 0x2e, - 0x4d, 0x65, 0x6d, 0x70, 0x68, 0x69, 0x73, 0x57, 0x72, 0x69, 0x74, 0x65, 0x41, 0x72, 0x67, 0x73, - 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x70, - 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x62, - 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6f, - 0x70, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_opts_ps_opts_tunnel_proto_rawDescOnce sync.Once - file_opts_ps_opts_tunnel_proto_rawDescData = file_opts_ps_opts_tunnel_proto_rawDesc -) - -func file_opts_ps_opts_tunnel_proto_rawDescGZIP() []byte { - file_opts_ps_opts_tunnel_proto_rawDescOnce.Do(func() { - file_opts_ps_opts_tunnel_proto_rawDescData = protoimpl.X.CompressGZIP(file_opts_ps_opts_tunnel_proto_rawDescData) - }) - return file_opts_ps_opts_tunnel_proto_rawDescData -} - -var file_opts_ps_opts_tunnel_proto_msgTypes = make([]protoimpl.MessageInfo, 21) -var file_opts_ps_opts_tunnel_proto_goTypes = []interface{}{ - (*TunnelOptions)(nil), // 0: protos.opts.TunnelOptions - (*TunnelGroupKafkaOptions)(nil), // 1: protos.opts.TunnelGroupKafkaOptions - (*TunnelGroupActiveMQOptions)(nil), // 2: protos.opts.TunnelGroupActiveMQOptions - (*TunnelGroupAWSSQSOptions)(nil), // 3: protos.opts.TunnelGroupAWSSQSOptions - (*TunnelGroupAWSSNSOptions)(nil), // 4: protos.opts.TunnelGroupAWSSNSOptions - (*TunnelGroupNatsOptions)(nil), // 5: protos.opts.TunnelGroupNatsOptions - (*TunnelGroupNatsJetstreamOptions)(nil), // 6: protos.opts.TunnelGroupNatsJetstreamOptions - (*TunnelGroupNatsStreamingOptions)(nil), // 7: protos.opts.TunnelGroupNatsStreamingOptions - (*TunnelGroupNSQOptions)(nil), // 8: protos.opts.TunnelGroupNSQOptions - (*TunnelGroupRabbitOptions)(nil), // 9: protos.opts.TunnelGroupRabbitOptions - (*TunnelGroupRabbitStreamsOptions)(nil), // 10: protos.opts.TunnelGroupRabbitStreamsOptions - (*TunnelGroupRedisPubSubOptions)(nil), // 11: protos.opts.TunnelGroupRedisPubSubOptions - (*TunnelGroupRedisStreamsOptions)(nil), // 12: protos.opts.TunnelGroupRedisStreamsOptions - (*TunnelGroupAzureEventHubOptions)(nil), // 13: protos.opts.TunnelGroupAzureEventHubOptions - (*TunnelGroupAzureServiceBusOptions)(nil), // 14: protos.opts.TunnelGroupAzureServiceBusOptions - (*TunnelGroupMQTTOptions)(nil), // 15: protos.opts.TunnelGroupMQTTOptions - (*TunnelGroupGCPPubSubOptions)(nil), // 16: protos.opts.TunnelGroupGCPPubSubOptions - (*TunnelGroupKubeMQQueueOptions)(nil), // 17: protos.opts.TunnelGroupKubeMQQueueOptions - (*TunnelGroupPulsarOptions)(nil), // 18: protos.opts.TunnelGroupPulsarOptions - (*TunnelGroupAWSKinesisOptions)(nil), // 19: protos.opts.TunnelGroupAWSKinesisOptions - (*TunnelGroupMemphisOptions)(nil), // 20: protos.opts.TunnelGroupMemphisOptions - (*args.KafkaConn)(nil), // 21: protos.args.KafkaConn - (*args.KafkaWriteArgs)(nil), // 22: protos.args.KafkaWriteArgs - (*args.ActiveMQConn)(nil), // 23: protos.args.ActiveMQConn - (*args.ActiveMQWriteArgs)(nil), // 24: protos.args.ActiveMQWriteArgs - (*args.AWSSQSConn)(nil), // 25: protos.args.AWSSQSConn - (*args.AWSSQSWriteArgs)(nil), // 26: protos.args.AWSSQSWriteArgs - (*args.AWSSNSConn)(nil), // 27: protos.args.AWSSNSConn - (*args.AWSSNSWriteArgs)(nil), // 28: protos.args.AWSSNSWriteArgs - (*args.NatsConn)(nil), // 29: protos.args.NatsConn - (*args.NatsWriteArgs)(nil), // 30: protos.args.NatsWriteArgs - (*args.NatsJetstreamConn)(nil), // 31: protos.args.NatsJetstreamConn - (*args.NatsJetstreamWriteArgs)(nil), // 32: protos.args.NatsJetstreamWriteArgs - (*args.NatsStreamingConn)(nil), // 33: protos.args.NatsStreamingConn - (*args.NatsStreamingWriteArgs)(nil), // 34: protos.args.NatsStreamingWriteArgs - (*args.NSQConn)(nil), // 35: protos.args.NSQConn - (*args.NSQWriteArgs)(nil), // 36: protos.args.NSQWriteArgs - (*args.RabbitConn)(nil), // 37: protos.args.RabbitConn - (*args.RabbitWriteArgs)(nil), // 38: protos.args.RabbitWriteArgs - (*args.RabbitStreamsConn)(nil), // 39: protos.args.RabbitStreamsConn - (*args.RabbitStreamsWriteArgs)(nil), // 40: protos.args.RabbitStreamsWriteArgs - (*args.RedisPubSubConn)(nil), // 41: protos.args.RedisPubSubConn - (*args.RedisPubSubWriteArgs)(nil), // 42: protos.args.RedisPubSubWriteArgs - (*args.RedisStreamsConn)(nil), // 43: protos.args.RedisStreamsConn - (*args.RedisStreamsWriteArgs)(nil), // 44: protos.args.RedisStreamsWriteArgs - (*args.AzureEventHubConn)(nil), // 45: protos.args.AzureEventHubConn - (*args.AzureEventHubWriteArgs)(nil), // 46: protos.args.AzureEventHubWriteArgs - (*args.AzureServiceBusConn)(nil), // 47: protos.args.AzureServiceBusConn - (*args.AzureServiceBusWriteArgs)(nil), // 48: protos.args.AzureServiceBusWriteArgs - (*args.MQTTConn)(nil), // 49: protos.args.MQTTConn - (*args.MQTTWriteArgs)(nil), // 50: protos.args.MQTTWriteArgs - (*args.GCPPubSubConn)(nil), // 51: protos.args.GCPPubSubConn - (*args.GCPPubSubWriteArgs)(nil), // 52: protos.args.GCPPubSubWriteArgs - (*args.KubeMQQueueConn)(nil), // 53: protos.args.KubeMQQueueConn - (*args.KubeMQQueueWriteArgs)(nil), // 54: protos.args.KubeMQQueueWriteArgs - (*args.PulsarConn)(nil), // 55: protos.args.PulsarConn - (*args.PulsarWriteArgs)(nil), // 56: protos.args.PulsarWriteArgs - (*args.AWSKinesisConn)(nil), // 57: protos.args.AWSKinesisConn - (*args.AWSKinesisWriteArgs)(nil), // 58: protos.args.AWSKinesisWriteArgs - (*args.MemphisConn)(nil), // 59: protos.args.MemphisConn - (*args.MemphisWriteArgs)(nil), // 60: protos.args.MemphisWriteArgs -} -var file_opts_ps_opts_tunnel_proto_depIdxs = []int32{ - 1, // 0: protos.opts.TunnelOptions.kafka:type_name -> protos.opts.TunnelGroupKafkaOptions - 2, // 1: protos.opts.TunnelOptions.activemq:type_name -> protos.opts.TunnelGroupActiveMQOptions - 3, // 2: protos.opts.TunnelOptions.aws_sqs:type_name -> protos.opts.TunnelGroupAWSSQSOptions - 4, // 3: protos.opts.TunnelOptions.aws_sns:type_name -> protos.opts.TunnelGroupAWSSNSOptions - 5, // 4: protos.opts.TunnelOptions.nats:type_name -> protos.opts.TunnelGroupNatsOptions - 7, // 5: protos.opts.TunnelOptions.nats_streaming:type_name -> protos.opts.TunnelGroupNatsStreamingOptions - 8, // 6: protos.opts.TunnelOptions.nsq:type_name -> protos.opts.TunnelGroupNSQOptions - 9, // 7: protos.opts.TunnelOptions.rabbit:type_name -> protos.opts.TunnelGroupRabbitOptions - 15, // 8: protos.opts.TunnelOptions.mqtt:type_name -> protos.opts.TunnelGroupMQTTOptions - 14, // 9: protos.opts.TunnelOptions.azure_service_bus:type_name -> protos.opts.TunnelGroupAzureServiceBusOptions - 13, // 10: protos.opts.TunnelOptions.azure_event_hub:type_name -> protos.opts.TunnelGroupAzureEventHubOptions - 16, // 11: protos.opts.TunnelOptions.gcp_pubsub:type_name -> protos.opts.TunnelGroupGCPPubSubOptions - 17, // 12: protos.opts.TunnelOptions.kubemq_queue:type_name -> protos.opts.TunnelGroupKubeMQQueueOptions - 11, // 13: protos.opts.TunnelOptions.redis_pubsub:type_name -> protos.opts.TunnelGroupRedisPubSubOptions - 12, // 14: protos.opts.TunnelOptions.redis_streams:type_name -> protos.opts.TunnelGroupRedisStreamsOptions - 18, // 15: protos.opts.TunnelOptions.pulsar:type_name -> protos.opts.TunnelGroupPulsarOptions - 10, // 16: protos.opts.TunnelOptions.rabbit_streams:type_name -> protos.opts.TunnelGroupRabbitStreamsOptions - 6, // 17: protos.opts.TunnelOptions.nats_jetstream:type_name -> protos.opts.TunnelGroupNatsJetstreamOptions - 19, // 18: protos.opts.TunnelOptions.aws_kinesis:type_name -> protos.opts.TunnelGroupAWSKinesisOptions - 20, // 19: protos.opts.TunnelOptions.memphis:type_name -> protos.opts.TunnelGroupMemphisOptions - 21, // 20: protos.opts.TunnelGroupKafkaOptions._conn:type_name -> protos.args.KafkaConn - 22, // 21: protos.opts.TunnelGroupKafkaOptions.args:type_name -> protos.args.KafkaWriteArgs - 23, // 22: protos.opts.TunnelGroupActiveMQOptions._conn:type_name -> protos.args.ActiveMQConn - 24, // 23: protos.opts.TunnelGroupActiveMQOptions.args:type_name -> protos.args.ActiveMQWriteArgs - 25, // 24: protos.opts.TunnelGroupAWSSQSOptions._conn:type_name -> protos.args.AWSSQSConn - 26, // 25: protos.opts.TunnelGroupAWSSQSOptions.args:type_name -> protos.args.AWSSQSWriteArgs - 27, // 26: protos.opts.TunnelGroupAWSSNSOptions._conn:type_name -> protos.args.AWSSNSConn - 28, // 27: protos.opts.TunnelGroupAWSSNSOptions.args:type_name -> protos.args.AWSSNSWriteArgs - 29, // 28: protos.opts.TunnelGroupNatsOptions._conn:type_name -> protos.args.NatsConn - 30, // 29: protos.opts.TunnelGroupNatsOptions.args:type_name -> protos.args.NatsWriteArgs - 31, // 30: protos.opts.TunnelGroupNatsJetstreamOptions._conn:type_name -> protos.args.NatsJetstreamConn - 32, // 31: protos.opts.TunnelGroupNatsJetstreamOptions.args:type_name -> protos.args.NatsJetstreamWriteArgs - 33, // 32: protos.opts.TunnelGroupNatsStreamingOptions._conn:type_name -> protos.args.NatsStreamingConn - 34, // 33: protos.opts.TunnelGroupNatsStreamingOptions.args:type_name -> protos.args.NatsStreamingWriteArgs - 35, // 34: protos.opts.TunnelGroupNSQOptions._conn:type_name -> protos.args.NSQConn - 36, // 35: protos.opts.TunnelGroupNSQOptions.args:type_name -> protos.args.NSQWriteArgs - 37, // 36: protos.opts.TunnelGroupRabbitOptions._conn:type_name -> protos.args.RabbitConn - 38, // 37: protos.opts.TunnelGroupRabbitOptions.args:type_name -> protos.args.RabbitWriteArgs - 39, // 38: protos.opts.TunnelGroupRabbitStreamsOptions._conn:type_name -> protos.args.RabbitStreamsConn - 40, // 39: protos.opts.TunnelGroupRabbitStreamsOptions.args:type_name -> protos.args.RabbitStreamsWriteArgs - 41, // 40: protos.opts.TunnelGroupRedisPubSubOptions._conn:type_name -> protos.args.RedisPubSubConn - 42, // 41: protos.opts.TunnelGroupRedisPubSubOptions.args:type_name -> protos.args.RedisPubSubWriteArgs - 43, // 42: protos.opts.TunnelGroupRedisStreamsOptions._conn:type_name -> protos.args.RedisStreamsConn - 44, // 43: protos.opts.TunnelGroupRedisStreamsOptions.args:type_name -> protos.args.RedisStreamsWriteArgs - 45, // 44: protos.opts.TunnelGroupAzureEventHubOptions._conn:type_name -> protos.args.AzureEventHubConn - 46, // 45: protos.opts.TunnelGroupAzureEventHubOptions.args:type_name -> protos.args.AzureEventHubWriteArgs - 47, // 46: protos.opts.TunnelGroupAzureServiceBusOptions._conn:type_name -> protos.args.AzureServiceBusConn - 48, // 47: protos.opts.TunnelGroupAzureServiceBusOptions.args:type_name -> protos.args.AzureServiceBusWriteArgs - 49, // 48: protos.opts.TunnelGroupMQTTOptions._conn:type_name -> protos.args.MQTTConn - 50, // 49: protos.opts.TunnelGroupMQTTOptions.args:type_name -> protos.args.MQTTWriteArgs - 51, // 50: protos.opts.TunnelGroupGCPPubSubOptions._conn:type_name -> protos.args.GCPPubSubConn - 52, // 51: protos.opts.TunnelGroupGCPPubSubOptions.args:type_name -> protos.args.GCPPubSubWriteArgs - 53, // 52: protos.opts.TunnelGroupKubeMQQueueOptions._conn:type_name -> protos.args.KubeMQQueueConn - 54, // 53: protos.opts.TunnelGroupKubeMQQueueOptions.args:type_name -> protos.args.KubeMQQueueWriteArgs - 55, // 54: protos.opts.TunnelGroupPulsarOptions._conn:type_name -> protos.args.PulsarConn - 56, // 55: protos.opts.TunnelGroupPulsarOptions.args:type_name -> protos.args.PulsarWriteArgs - 57, // 56: protos.opts.TunnelGroupAWSKinesisOptions._conn:type_name -> protos.args.AWSKinesisConn - 58, // 57: protos.opts.TunnelGroupAWSKinesisOptions.args:type_name -> protos.args.AWSKinesisWriteArgs - 59, // 58: protos.opts.TunnelGroupMemphisOptions._conn:type_name -> protos.args.MemphisConn - 60, // 59: protos.opts.TunnelGroupMemphisOptions.args:type_name -> protos.args.MemphisWriteArgs - 60, // [60:60] is the sub-list for method output_type - 60, // [60:60] is the sub-list for method input_type - 60, // [60:60] is the sub-list for extension type_name - 60, // [60:60] is the sub-list for extension extendee - 0, // [0:60] is the sub-list for field type_name -} - -func init() { file_opts_ps_opts_tunnel_proto_init() } -func file_opts_ps_opts_tunnel_proto_init() { - if File_opts_ps_opts_tunnel_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_opts_ps_opts_tunnel_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupKafkaOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupActiveMQOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupAWSSQSOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupAWSSNSOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupNatsOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupNatsJetstreamOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupNatsStreamingOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupNSQOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupRabbitOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupRabbitStreamsOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupRedisPubSubOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupRedisStreamsOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupAzureEventHubOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupAzureServiceBusOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupMQTTOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupGCPPubSubOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupKubeMQQueueOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupPulsarOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupAWSKinesisOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_opts_ps_opts_tunnel_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TunnelGroupMemphisOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_opts_ps_opts_tunnel_proto_rawDesc, - NumEnums: 0, - NumMessages: 21, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_opts_ps_opts_tunnel_proto_goTypes, - DependencyIndexes: file_opts_ps_opts_tunnel_proto_depIdxs, - MessageInfos: file_opts_ps_opts_tunnel_proto_msgTypes, - }.Build() - File_opts_ps_opts_tunnel_proto = out.File - file_opts_ps_opts_tunnel_proto_rawDesc = nil - file_opts_ps_opts_tunnel_proto_goTypes = nil - file_opts_ps_opts_tunnel_proto_depIdxs = nil -} diff --git a/build/go/protos/ps_base.pb.go b/build/go/protos/ps_base.pb.go deleted file mode 100644 index 56a911a..0000000 --- a/build/go/protos/ps_base.pb.go +++ /dev/null @@ -1,258 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: ps_base.proto - -package protos - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" -) - -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) -) - -var File_ps_base_proto protoreflect.FileDescriptor - -var file_ps_base_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x70, 0x73, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x1a, 0x10, 0x70, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0e, 0x70, 0x73, 0x5f, 0x72, 0x65, - 0x6c, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x70, 0x73, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x70, 0x73, 0x5f, 0x74, - 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xd1, 0x0c, 0x0a, 0x0d, - 0x50, 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x58, 0x0a, - 0x11, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, - 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, - 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0e, - 0x54, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, - 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x47, - 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x73, 0x12, 0x1b, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x6c, 0x61, 0x79, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, - 0x61, 0x79, 0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x6c, 0x61, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, - 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x1a, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, - 0x65, 0x6c, 0x61, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x52, 0x65, - 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, - 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, - 0x09, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x18, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x53, 0x74, - 0x6f, 0x70, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x46, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x1a, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, - 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x54, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, - 0x74, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x75, 0x6e, 0x6e, 0x65, - 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x47, 0x65, 0x74, - 0x41, 0x6c, 0x6c, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x12, 0x1c, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x53, 0x74, 0x6f, 0x70, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, - 0x12, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x54, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x75, 0x6d, - 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x52, 0x65, - 0x73, 0x75, 0x6d, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, - 0x65, 0x6c, 0x12, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, - 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, - 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x1b, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x75, 0x6e, - 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, - 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x61, - 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x70, 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2d, - 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x67, 0x6f, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var file_ps_base_proto_goTypes = []interface{}{ - (*GetAllConnectionsRequest)(nil), // 0: protos.GetAllConnectionsRequest - (*GetConnectionRequest)(nil), // 1: protos.GetConnectionRequest - (*CreateConnectionRequest)(nil), // 2: protos.CreateConnectionRequest - (*TestConnectionRequest)(nil), // 3: protos.TestConnectionRequest - (*UpdateConnectionRequest)(nil), // 4: protos.UpdateConnectionRequest - (*DeleteConnectionRequest)(nil), // 5: protos.DeleteConnectionRequest - (*GetAllRelaysRequest)(nil), // 6: protos.GetAllRelaysRequest - (*GetRelayRequest)(nil), // 7: protos.GetRelayRequest - (*CreateRelayRequest)(nil), // 8: protos.CreateRelayRequest - (*UpdateRelayRequest)(nil), // 9: protos.UpdateRelayRequest - (*ResumeRelayRequest)(nil), // 10: protos.ResumeRelayRequest - (*StopRelayRequest)(nil), // 11: protos.StopRelayRequest - (*DeleteRelayRequest)(nil), // 12: protos.DeleteRelayRequest - (*GetTunnelRequest)(nil), // 13: protos.GetTunnelRequest - (*GetAllTunnelsRequest)(nil), // 14: protos.GetAllTunnelsRequest - (*CreateTunnelRequest)(nil), // 15: protos.CreateTunnelRequest - (*StopTunnelRequest)(nil), // 16: protos.StopTunnelRequest - (*ResumeTunnelRequest)(nil), // 17: protos.ResumeTunnelRequest - (*UpdateTunnelRequest)(nil), // 18: protos.UpdateTunnelRequest - (*DeleteTunnelRequest)(nil), // 19: protos.DeleteTunnelRequest - (*GetServerOptionsRequest)(nil), // 20: protos.GetServerOptionsRequest - (*GetAllConnectionsResponse)(nil), // 21: protos.GetAllConnectionsResponse - (*GetConnectionResponse)(nil), // 22: protos.GetConnectionResponse - (*CreateConnectionResponse)(nil), // 23: protos.CreateConnectionResponse - (*TestConnectionResponse)(nil), // 24: protos.TestConnectionResponse - (*UpdateConnectionResponse)(nil), // 25: protos.UpdateConnectionResponse - (*DeleteConnectionResponse)(nil), // 26: protos.DeleteConnectionResponse - (*GetAllRelaysResponse)(nil), // 27: protos.GetAllRelaysResponse - (*GetRelayResponse)(nil), // 28: protos.GetRelayResponse - (*CreateRelayResponse)(nil), // 29: protos.CreateRelayResponse - (*UpdateRelayResponse)(nil), // 30: protos.UpdateRelayResponse - (*ResumeRelayResponse)(nil), // 31: protos.ResumeRelayResponse - (*StopRelayResponse)(nil), // 32: protos.StopRelayResponse - (*DeleteRelayResponse)(nil), // 33: protos.DeleteRelayResponse - (*GetTunnelResponse)(nil), // 34: protos.GetTunnelResponse - (*GetAllTunnelsResponse)(nil), // 35: protos.GetAllTunnelsResponse - (*CreateTunnelResponse)(nil), // 36: protos.CreateTunnelResponse - (*StopTunnelResponse)(nil), // 37: protos.StopTunnelResponse - (*ResumeTunnelResponse)(nil), // 38: protos.ResumeTunnelResponse - (*UpdateTunnelResponse)(nil), // 39: protos.UpdateTunnelResponse - (*DeleteTunnelResponse)(nil), // 40: protos.DeleteTunnelResponse - (*GetServerOptionsResponse)(nil), // 41: protos.GetServerOptionsResponse -} -var file_ps_base_proto_depIdxs = []int32{ - 0, // 0: protos.PlumberServer.GetAllConnections:input_type -> protos.GetAllConnectionsRequest - 1, // 1: protos.PlumberServer.GetConnection:input_type -> protos.GetConnectionRequest - 2, // 2: protos.PlumberServer.CreateConnection:input_type -> protos.CreateConnectionRequest - 3, // 3: protos.PlumberServer.TestConnection:input_type -> protos.TestConnectionRequest - 4, // 4: protos.PlumberServer.UpdateConnection:input_type -> protos.UpdateConnectionRequest - 5, // 5: protos.PlumberServer.DeleteConnection:input_type -> protos.DeleteConnectionRequest - 6, // 6: protos.PlumberServer.GetAllRelays:input_type -> protos.GetAllRelaysRequest - 7, // 7: protos.PlumberServer.GetRelay:input_type -> protos.GetRelayRequest - 8, // 8: protos.PlumberServer.CreateRelay:input_type -> protos.CreateRelayRequest - 9, // 9: protos.PlumberServer.UpdateRelay:input_type -> protos.UpdateRelayRequest - 10, // 10: protos.PlumberServer.ResumeRelay:input_type -> protos.ResumeRelayRequest - 11, // 11: protos.PlumberServer.StopRelay:input_type -> protos.StopRelayRequest - 12, // 12: protos.PlumberServer.DeleteRelay:input_type -> protos.DeleteRelayRequest - 13, // 13: protos.PlumberServer.GetTunnel:input_type -> protos.GetTunnelRequest - 14, // 14: protos.PlumberServer.GetAllTunnels:input_type -> protos.GetAllTunnelsRequest - 15, // 15: protos.PlumberServer.CreateTunnel:input_type -> protos.CreateTunnelRequest - 16, // 16: protos.PlumberServer.StopTunnel:input_type -> protos.StopTunnelRequest - 17, // 17: protos.PlumberServer.ResumeTunnel:input_type -> protos.ResumeTunnelRequest - 18, // 18: protos.PlumberServer.UpdateTunnel:input_type -> protos.UpdateTunnelRequest - 19, // 19: protos.PlumberServer.DeleteTunnel:input_type -> protos.DeleteTunnelRequest - 20, // 20: protos.PlumberServer.GetServerOptions:input_type -> protos.GetServerOptionsRequest - 21, // 21: protos.PlumberServer.GetAllConnections:output_type -> protos.GetAllConnectionsResponse - 22, // 22: protos.PlumberServer.GetConnection:output_type -> protos.GetConnectionResponse - 23, // 23: protos.PlumberServer.CreateConnection:output_type -> protos.CreateConnectionResponse - 24, // 24: protos.PlumberServer.TestConnection:output_type -> protos.TestConnectionResponse - 25, // 25: protos.PlumberServer.UpdateConnection:output_type -> protos.UpdateConnectionResponse - 26, // 26: protos.PlumberServer.DeleteConnection:output_type -> protos.DeleteConnectionResponse - 27, // 27: protos.PlumberServer.GetAllRelays:output_type -> protos.GetAllRelaysResponse - 28, // 28: protos.PlumberServer.GetRelay:output_type -> protos.GetRelayResponse - 29, // 29: protos.PlumberServer.CreateRelay:output_type -> protos.CreateRelayResponse - 30, // 30: protos.PlumberServer.UpdateRelay:output_type -> protos.UpdateRelayResponse - 31, // 31: protos.PlumberServer.ResumeRelay:output_type -> protos.ResumeRelayResponse - 32, // 32: protos.PlumberServer.StopRelay:output_type -> protos.StopRelayResponse - 33, // 33: protos.PlumberServer.DeleteRelay:output_type -> protos.DeleteRelayResponse - 34, // 34: protos.PlumberServer.GetTunnel:output_type -> protos.GetTunnelResponse - 35, // 35: protos.PlumberServer.GetAllTunnels:output_type -> protos.GetAllTunnelsResponse - 36, // 36: protos.PlumberServer.CreateTunnel:output_type -> protos.CreateTunnelResponse - 37, // 37: protos.PlumberServer.StopTunnel:output_type -> protos.StopTunnelResponse - 38, // 38: protos.PlumberServer.ResumeTunnel:output_type -> protos.ResumeTunnelResponse - 39, // 39: protos.PlumberServer.UpdateTunnel:output_type -> protos.UpdateTunnelResponse - 40, // 40: protos.PlumberServer.DeleteTunnel:output_type -> protos.DeleteTunnelResponse - 41, // 41: protos.PlumberServer.GetServerOptions:output_type -> protos.GetServerOptionsResponse - 21, // [21:42] is the sub-list for method output_type - 0, // [0:21] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_ps_base_proto_init() } -func file_ps_base_proto_init() { - if File_ps_base_proto != nil { - return - } - file_ps_connect_proto_init() - file_ps_relay_proto_init() - file_ps_server_proto_init() - file_ps_tunnel_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_ps_base_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_ps_base_proto_goTypes, - DependencyIndexes: file_ps_base_proto_depIdxs, - }.Build() - File_ps_base_proto = out.File - file_ps_base_proto_rawDesc = nil - file_ps_base_proto_goTypes = nil - file_ps_base_proto_depIdxs = nil -} diff --git a/build/go/protos/ps_base_grpc.pb.go b/build/go/protos/ps_base_grpc.pb.go deleted file mode 100644 index 20e148f..0000000 --- a/build/go/protos/ps_base_grpc.pb.go +++ /dev/null @@ -1,835 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.6 -// source: ps_base.proto - -package protos - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// PlumberServerClient is the client API for PlumberServer service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type PlumberServerClient interface { - // List configured/known connections - GetAllConnections(ctx context.Context, in *GetAllConnectionsRequest, opts ...grpc.CallOption) (*GetAllConnectionsResponse, error) - // Fetch a specific connection by ID - GetConnection(ctx context.Context, in *GetConnectionRequest, opts ...grpc.CallOption) (*GetConnectionResponse, error) - // Create a connection in plumber - CreateConnection(ctx context.Context, in *CreateConnectionRequest, opts ...grpc.CallOption) (*CreateConnectionResponse, error) - // Test a connection before saving its configuration - TestConnection(ctx context.Context, in *TestConnectionRequest, opts ...grpc.CallOption) (*TestConnectionResponse, error) - // Any active connections will be restarted - UpdateConnection(ctx context.Context, in *UpdateConnectionRequest, opts ...grpc.CallOption) (*UpdateConnectionResponse, error) - // If there are any active connections, delete will cause them to get closed - DeleteConnection(ctx context.Context, in *DeleteConnectionRequest, opts ...grpc.CallOption) (*DeleteConnectionResponse, error) - GetAllRelays(ctx context.Context, in *GetAllRelaysRequest, opts ...grpc.CallOption) (*GetAllRelaysResponse, error) - GetRelay(ctx context.Context, in *GetRelayRequest, opts ...grpc.CallOption) (*GetRelayResponse, error) - CreateRelay(ctx context.Context, in *CreateRelayRequest, opts ...grpc.CallOption) (*CreateRelayResponse, error) - UpdateRelay(ctx context.Context, in *UpdateRelayRequest, opts ...grpc.CallOption) (*UpdateRelayResponse, error) - ResumeRelay(ctx context.Context, in *ResumeRelayRequest, opts ...grpc.CallOption) (*ResumeRelayResponse, error) - StopRelay(ctx context.Context, in *StopRelayRequest, opts ...grpc.CallOption) (*StopRelayResponse, error) - DeleteRelay(ctx context.Context, in *DeleteRelayRequest, opts ...grpc.CallOption) (*DeleteRelayResponse, error) - GetTunnel(ctx context.Context, in *GetTunnelRequest, opts ...grpc.CallOption) (*GetTunnelResponse, error) - GetAllTunnels(ctx context.Context, in *GetAllTunnelsRequest, opts ...grpc.CallOption) (*GetAllTunnelsResponse, error) - CreateTunnel(ctx context.Context, in *CreateTunnelRequest, opts ...grpc.CallOption) (*CreateTunnelResponse, error) - StopTunnel(ctx context.Context, in *StopTunnelRequest, opts ...grpc.CallOption) (*StopTunnelResponse, error) - ResumeTunnel(ctx context.Context, in *ResumeTunnelRequest, opts ...grpc.CallOption) (*ResumeTunnelResponse, error) - UpdateTunnel(ctx context.Context, in *UpdateTunnelRequest, opts ...grpc.CallOption) (*UpdateTunnelResponse, error) - DeleteTunnel(ctx context.Context, in *DeleteTunnelRequest, opts ...grpc.CallOption) (*DeleteTunnelResponse, error) - GetServerOptions(ctx context.Context, in *GetServerOptionsRequest, opts ...grpc.CallOption) (*GetServerOptionsResponse, error) -} - -type plumberServerClient struct { - cc grpc.ClientConnInterface -} - -func NewPlumberServerClient(cc grpc.ClientConnInterface) PlumberServerClient { - return &plumberServerClient{cc} -} - -func (c *plumberServerClient) GetAllConnections(ctx context.Context, in *GetAllConnectionsRequest, opts ...grpc.CallOption) (*GetAllConnectionsResponse, error) { - out := new(GetAllConnectionsResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/GetAllConnections", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) GetConnection(ctx context.Context, in *GetConnectionRequest, opts ...grpc.CallOption) (*GetConnectionResponse, error) { - out := new(GetConnectionResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/GetConnection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) CreateConnection(ctx context.Context, in *CreateConnectionRequest, opts ...grpc.CallOption) (*CreateConnectionResponse, error) { - out := new(CreateConnectionResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/CreateConnection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) TestConnection(ctx context.Context, in *TestConnectionRequest, opts ...grpc.CallOption) (*TestConnectionResponse, error) { - out := new(TestConnectionResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/TestConnection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) UpdateConnection(ctx context.Context, in *UpdateConnectionRequest, opts ...grpc.CallOption) (*UpdateConnectionResponse, error) { - out := new(UpdateConnectionResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/UpdateConnection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) DeleteConnection(ctx context.Context, in *DeleteConnectionRequest, opts ...grpc.CallOption) (*DeleteConnectionResponse, error) { - out := new(DeleteConnectionResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/DeleteConnection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) GetAllRelays(ctx context.Context, in *GetAllRelaysRequest, opts ...grpc.CallOption) (*GetAllRelaysResponse, error) { - out := new(GetAllRelaysResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/GetAllRelays", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) GetRelay(ctx context.Context, in *GetRelayRequest, opts ...grpc.CallOption) (*GetRelayResponse, error) { - out := new(GetRelayResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/GetRelay", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) CreateRelay(ctx context.Context, in *CreateRelayRequest, opts ...grpc.CallOption) (*CreateRelayResponse, error) { - out := new(CreateRelayResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/CreateRelay", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) UpdateRelay(ctx context.Context, in *UpdateRelayRequest, opts ...grpc.CallOption) (*UpdateRelayResponse, error) { - out := new(UpdateRelayResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/UpdateRelay", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) ResumeRelay(ctx context.Context, in *ResumeRelayRequest, opts ...grpc.CallOption) (*ResumeRelayResponse, error) { - out := new(ResumeRelayResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/ResumeRelay", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) StopRelay(ctx context.Context, in *StopRelayRequest, opts ...grpc.CallOption) (*StopRelayResponse, error) { - out := new(StopRelayResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/StopRelay", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) DeleteRelay(ctx context.Context, in *DeleteRelayRequest, opts ...grpc.CallOption) (*DeleteRelayResponse, error) { - out := new(DeleteRelayResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/DeleteRelay", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) GetTunnel(ctx context.Context, in *GetTunnelRequest, opts ...grpc.CallOption) (*GetTunnelResponse, error) { - out := new(GetTunnelResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/GetTunnel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) GetAllTunnels(ctx context.Context, in *GetAllTunnelsRequest, opts ...grpc.CallOption) (*GetAllTunnelsResponse, error) { - out := new(GetAllTunnelsResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/GetAllTunnels", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) CreateTunnel(ctx context.Context, in *CreateTunnelRequest, opts ...grpc.CallOption) (*CreateTunnelResponse, error) { - out := new(CreateTunnelResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/CreateTunnel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) StopTunnel(ctx context.Context, in *StopTunnelRequest, opts ...grpc.CallOption) (*StopTunnelResponse, error) { - out := new(StopTunnelResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/StopTunnel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) ResumeTunnel(ctx context.Context, in *ResumeTunnelRequest, opts ...grpc.CallOption) (*ResumeTunnelResponse, error) { - out := new(ResumeTunnelResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/ResumeTunnel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) UpdateTunnel(ctx context.Context, in *UpdateTunnelRequest, opts ...grpc.CallOption) (*UpdateTunnelResponse, error) { - out := new(UpdateTunnelResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/UpdateTunnel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) DeleteTunnel(ctx context.Context, in *DeleteTunnelRequest, opts ...grpc.CallOption) (*DeleteTunnelResponse, error) { - out := new(DeleteTunnelResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/DeleteTunnel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *plumberServerClient) GetServerOptions(ctx context.Context, in *GetServerOptionsRequest, opts ...grpc.CallOption) (*GetServerOptionsResponse, error) { - out := new(GetServerOptionsResponse) - err := c.cc.Invoke(ctx, "/protos.PlumberServer/GetServerOptions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// PlumberServerServer is the server API for PlumberServer service. -// All implementations should embed UnimplementedPlumberServerServer -// for forward compatibility -type PlumberServerServer interface { - // List configured/known connections - GetAllConnections(context.Context, *GetAllConnectionsRequest) (*GetAllConnectionsResponse, error) - // Fetch a specific connection by ID - GetConnection(context.Context, *GetConnectionRequest) (*GetConnectionResponse, error) - // Create a connection in plumber - CreateConnection(context.Context, *CreateConnectionRequest) (*CreateConnectionResponse, error) - // Test a connection before saving its configuration - TestConnection(context.Context, *TestConnectionRequest) (*TestConnectionResponse, error) - // Any active connections will be restarted - UpdateConnection(context.Context, *UpdateConnectionRequest) (*UpdateConnectionResponse, error) - // If there are any active connections, delete will cause them to get closed - DeleteConnection(context.Context, *DeleteConnectionRequest) (*DeleteConnectionResponse, error) - GetAllRelays(context.Context, *GetAllRelaysRequest) (*GetAllRelaysResponse, error) - GetRelay(context.Context, *GetRelayRequest) (*GetRelayResponse, error) - CreateRelay(context.Context, *CreateRelayRequest) (*CreateRelayResponse, error) - UpdateRelay(context.Context, *UpdateRelayRequest) (*UpdateRelayResponse, error) - ResumeRelay(context.Context, *ResumeRelayRequest) (*ResumeRelayResponse, error) - StopRelay(context.Context, *StopRelayRequest) (*StopRelayResponse, error) - DeleteRelay(context.Context, *DeleteRelayRequest) (*DeleteRelayResponse, error) - GetTunnel(context.Context, *GetTunnelRequest) (*GetTunnelResponse, error) - GetAllTunnels(context.Context, *GetAllTunnelsRequest) (*GetAllTunnelsResponse, error) - CreateTunnel(context.Context, *CreateTunnelRequest) (*CreateTunnelResponse, error) - StopTunnel(context.Context, *StopTunnelRequest) (*StopTunnelResponse, error) - ResumeTunnel(context.Context, *ResumeTunnelRequest) (*ResumeTunnelResponse, error) - UpdateTunnel(context.Context, *UpdateTunnelRequest) (*UpdateTunnelResponse, error) - DeleteTunnel(context.Context, *DeleteTunnelRequest) (*DeleteTunnelResponse, error) - GetServerOptions(context.Context, *GetServerOptionsRequest) (*GetServerOptionsResponse, error) -} - -// UnimplementedPlumberServerServer should be embedded to have forward compatible implementations. -type UnimplementedPlumberServerServer struct { -} - -func (UnimplementedPlumberServerServer) GetAllConnections(context.Context, *GetAllConnectionsRequest) (*GetAllConnectionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllConnections not implemented") -} -func (UnimplementedPlumberServerServer) GetConnection(context.Context, *GetConnectionRequest) (*GetConnectionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetConnection not implemented") -} -func (UnimplementedPlumberServerServer) CreateConnection(context.Context, *CreateConnectionRequest) (*CreateConnectionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateConnection not implemented") -} -func (UnimplementedPlumberServerServer) TestConnection(context.Context, *TestConnectionRequest) (*TestConnectionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TestConnection not implemented") -} -func (UnimplementedPlumberServerServer) UpdateConnection(context.Context, *UpdateConnectionRequest) (*UpdateConnectionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateConnection not implemented") -} -func (UnimplementedPlumberServerServer) DeleteConnection(context.Context, *DeleteConnectionRequest) (*DeleteConnectionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteConnection not implemented") -} -func (UnimplementedPlumberServerServer) GetAllRelays(context.Context, *GetAllRelaysRequest) (*GetAllRelaysResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllRelays not implemented") -} -func (UnimplementedPlumberServerServer) GetRelay(context.Context, *GetRelayRequest) (*GetRelayResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRelay not implemented") -} -func (UnimplementedPlumberServerServer) CreateRelay(context.Context, *CreateRelayRequest) (*CreateRelayResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateRelay not implemented") -} -func (UnimplementedPlumberServerServer) UpdateRelay(context.Context, *UpdateRelayRequest) (*UpdateRelayResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateRelay not implemented") -} -func (UnimplementedPlumberServerServer) ResumeRelay(context.Context, *ResumeRelayRequest) (*ResumeRelayResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResumeRelay not implemented") -} -func (UnimplementedPlumberServerServer) StopRelay(context.Context, *StopRelayRequest) (*StopRelayResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StopRelay not implemented") -} -func (UnimplementedPlumberServerServer) DeleteRelay(context.Context, *DeleteRelayRequest) (*DeleteRelayResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteRelay not implemented") -} -func (UnimplementedPlumberServerServer) GetTunnel(context.Context, *GetTunnelRequest) (*GetTunnelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTunnel not implemented") -} -func (UnimplementedPlumberServerServer) GetAllTunnels(context.Context, *GetAllTunnelsRequest) (*GetAllTunnelsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllTunnels not implemented") -} -func (UnimplementedPlumberServerServer) CreateTunnel(context.Context, *CreateTunnelRequest) (*CreateTunnelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTunnel not implemented") -} -func (UnimplementedPlumberServerServer) StopTunnel(context.Context, *StopTunnelRequest) (*StopTunnelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StopTunnel not implemented") -} -func (UnimplementedPlumberServerServer) ResumeTunnel(context.Context, *ResumeTunnelRequest) (*ResumeTunnelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResumeTunnel not implemented") -} -func (UnimplementedPlumberServerServer) UpdateTunnel(context.Context, *UpdateTunnelRequest) (*UpdateTunnelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateTunnel not implemented") -} -func (UnimplementedPlumberServerServer) DeleteTunnel(context.Context, *DeleteTunnelRequest) (*DeleteTunnelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteTunnel not implemented") -} -func (UnimplementedPlumberServerServer) GetServerOptions(context.Context, *GetServerOptionsRequest) (*GetServerOptionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetServerOptions not implemented") -} - -// UnsafePlumberServerServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to PlumberServerServer will -// result in compilation errors. -type UnsafePlumberServerServer interface { - mustEmbedUnimplementedPlumberServerServer() -} - -func RegisterPlumberServerServer(s grpc.ServiceRegistrar, srv PlumberServerServer) { - s.RegisterService(&PlumberServer_ServiceDesc, srv) -} - -func _PlumberServer_GetAllConnections_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAllConnectionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).GetAllConnections(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/GetAllConnections", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).GetAllConnections(ctx, req.(*GetAllConnectionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_GetConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetConnectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).GetConnection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/GetConnection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).GetConnection(ctx, req.(*GetConnectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_CreateConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateConnectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).CreateConnection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/CreateConnection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).CreateConnection(ctx, req.(*CreateConnectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_TestConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TestConnectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).TestConnection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/TestConnection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).TestConnection(ctx, req.(*TestConnectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_UpdateConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateConnectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).UpdateConnection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/UpdateConnection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).UpdateConnection(ctx, req.(*UpdateConnectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_DeleteConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteConnectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).DeleteConnection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/DeleteConnection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).DeleteConnection(ctx, req.(*DeleteConnectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_GetAllRelays_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAllRelaysRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).GetAllRelays(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/GetAllRelays", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).GetAllRelays(ctx, req.(*GetAllRelaysRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_GetRelay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRelayRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).GetRelay(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/GetRelay", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).GetRelay(ctx, req.(*GetRelayRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_CreateRelay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRelayRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).CreateRelay(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/CreateRelay", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).CreateRelay(ctx, req.(*CreateRelayRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_UpdateRelay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateRelayRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).UpdateRelay(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/UpdateRelay", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).UpdateRelay(ctx, req.(*UpdateRelayRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_ResumeRelay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResumeRelayRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).ResumeRelay(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/ResumeRelay", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).ResumeRelay(ctx, req.(*ResumeRelayRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_StopRelay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StopRelayRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).StopRelay(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/StopRelay", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).StopRelay(ctx, req.(*StopRelayRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_DeleteRelay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRelayRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).DeleteRelay(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/DeleteRelay", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).DeleteRelay(ctx, req.(*DeleteRelayRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_GetTunnel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetTunnelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).GetTunnel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/GetTunnel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).GetTunnel(ctx, req.(*GetTunnelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_GetAllTunnels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAllTunnelsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).GetAllTunnels(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/GetAllTunnels", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).GetAllTunnels(ctx, req.(*GetAllTunnelsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_CreateTunnel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateTunnelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).CreateTunnel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/CreateTunnel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).CreateTunnel(ctx, req.(*CreateTunnelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_StopTunnel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StopTunnelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).StopTunnel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/StopTunnel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).StopTunnel(ctx, req.(*StopTunnelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_ResumeTunnel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResumeTunnelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).ResumeTunnel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/ResumeTunnel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).ResumeTunnel(ctx, req.(*ResumeTunnelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_UpdateTunnel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateTunnelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).UpdateTunnel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/UpdateTunnel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).UpdateTunnel(ctx, req.(*UpdateTunnelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_DeleteTunnel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteTunnelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).DeleteTunnel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/DeleteTunnel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).DeleteTunnel(ctx, req.(*DeleteTunnelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _PlumberServer_GetServerOptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetServerOptionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PlumberServerServer).GetServerOptions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.PlumberServer/GetServerOptions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlumberServerServer).GetServerOptions(ctx, req.(*GetServerOptionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// PlumberServer_ServiceDesc is the grpc.ServiceDesc for PlumberServer service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var PlumberServer_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "protos.PlumberServer", - HandlerType: (*PlumberServerServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetAllConnections", - Handler: _PlumberServer_GetAllConnections_Handler, - }, - { - MethodName: "GetConnection", - Handler: _PlumberServer_GetConnection_Handler, - }, - { - MethodName: "CreateConnection", - Handler: _PlumberServer_CreateConnection_Handler, - }, - { - MethodName: "TestConnection", - Handler: _PlumberServer_TestConnection_Handler, - }, - { - MethodName: "UpdateConnection", - Handler: _PlumberServer_UpdateConnection_Handler, - }, - { - MethodName: "DeleteConnection", - Handler: _PlumberServer_DeleteConnection_Handler, - }, - { - MethodName: "GetAllRelays", - Handler: _PlumberServer_GetAllRelays_Handler, - }, - { - MethodName: "GetRelay", - Handler: _PlumberServer_GetRelay_Handler, - }, - { - MethodName: "CreateRelay", - Handler: _PlumberServer_CreateRelay_Handler, - }, - { - MethodName: "UpdateRelay", - Handler: _PlumberServer_UpdateRelay_Handler, - }, - { - MethodName: "ResumeRelay", - Handler: _PlumberServer_ResumeRelay_Handler, - }, - { - MethodName: "StopRelay", - Handler: _PlumberServer_StopRelay_Handler, - }, - { - MethodName: "DeleteRelay", - Handler: _PlumberServer_DeleteRelay_Handler, - }, - { - MethodName: "GetTunnel", - Handler: _PlumberServer_GetTunnel_Handler, - }, - { - MethodName: "GetAllTunnels", - Handler: _PlumberServer_GetAllTunnels_Handler, - }, - { - MethodName: "CreateTunnel", - Handler: _PlumberServer_CreateTunnel_Handler, - }, - { - MethodName: "StopTunnel", - Handler: _PlumberServer_StopTunnel_Handler, - }, - { - MethodName: "ResumeTunnel", - Handler: _PlumberServer_ResumeTunnel_Handler, - }, - { - MethodName: "UpdateTunnel", - Handler: _PlumberServer_UpdateTunnel_Handler, - }, - { - MethodName: "DeleteTunnel", - Handler: _PlumberServer_DeleteTunnel_Handler, - }, - { - MethodName: "GetServerOptions", - Handler: _PlumberServer_GetServerOptions_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "ps_base.proto", -} diff --git a/build/go/protos/ps_connect.pb.go b/build/go/protos/ps_connect.pb.go deleted file mode 100644 index 682b462..0000000 --- a/build/go/protos/ps_connect.pb.go +++ /dev/null @@ -1,954 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: ps_connect.proto - -package protos - -import ( - common "github.com/batchcorp/plumber-schemas/build/go/protos/common" - opts "github.com/batchcorp/plumber-schemas/build/go/protos/opts" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 GetAllConnectionsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` -} - -func (x *GetAllConnectionsRequest) Reset() { - *x = GetAllConnectionsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_connect_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllConnectionsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllConnectionsRequest) ProtoMessage() {} - -func (x *GetAllConnectionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_connect_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllConnectionsRequest.ProtoReflect.Descriptor instead. -func (*GetAllConnectionsRequest) Descriptor() ([]byte, []int) { - return file_ps_connect_proto_rawDescGZIP(), []int{0} -} - -func (x *GetAllConnectionsRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -type GetAllConnectionsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Options []*opts.ConnectionOptions `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"` -} - -func (x *GetAllConnectionsResponse) Reset() { - *x = GetAllConnectionsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_connect_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllConnectionsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllConnectionsResponse) ProtoMessage() {} - -func (x *GetAllConnectionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_connect_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllConnectionsResponse.ProtoReflect.Descriptor instead. -func (*GetAllConnectionsResponse) Descriptor() ([]byte, []int) { - return file_ps_connect_proto_rawDescGZIP(), []int{1} -} - -func (x *GetAllConnectionsResponse) GetOptions() []*opts.ConnectionOptions { - if x != nil { - return x.Options - } - return nil -} - -type GetConnectionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` -} - -func (x *GetConnectionRequest) Reset() { - *x = GetConnectionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_connect_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetConnectionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetConnectionRequest) ProtoMessage() {} - -func (x *GetConnectionRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_connect_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetConnectionRequest.ProtoReflect.Descriptor instead. -func (*GetConnectionRequest) Descriptor() ([]byte, []int) { - return file_ps_connect_proto_rawDescGZIP(), []int{2} -} - -func (x *GetConnectionRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *GetConnectionRequest) GetConnectionId() string { - if x != nil { - return x.ConnectionId - } - return "" -} - -type GetConnectionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Options *opts.ConnectionOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` -} - -func (x *GetConnectionResponse) Reset() { - *x = GetConnectionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_connect_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetConnectionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetConnectionResponse) ProtoMessage() {} - -func (x *GetConnectionResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_connect_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetConnectionResponse.ProtoReflect.Descriptor instead. -func (*GetConnectionResponse) Descriptor() ([]byte, []int) { - return file_ps_connect_proto_rawDescGZIP(), []int{3} -} - -func (x *GetConnectionResponse) GetOptions() *opts.ConnectionOptions { - if x != nil { - return x.Options - } - return nil -} - -type CreateConnectionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - Options *opts.ConnectionOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` -} - -func (x *CreateConnectionRequest) Reset() { - *x = CreateConnectionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_connect_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateConnectionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateConnectionRequest) ProtoMessage() {} - -func (x *CreateConnectionRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_connect_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateConnectionRequest.ProtoReflect.Descriptor instead. -func (*CreateConnectionRequest) Descriptor() ([]byte, []int) { - return file_ps_connect_proto_rawDescGZIP(), []int{4} -} - -func (x *CreateConnectionRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *CreateConnectionRequest) GetOptions() *opts.ConnectionOptions { - if x != nil { - return x.Options - } - return nil -} - -type CreateConnectionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Set with uuid that represents connection if create is successful - ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` -} - -func (x *CreateConnectionResponse) Reset() { - *x = CreateConnectionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_connect_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateConnectionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateConnectionResponse) ProtoMessage() {} - -func (x *CreateConnectionResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_connect_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateConnectionResponse.ProtoReflect.Descriptor instead. -func (*CreateConnectionResponse) Descriptor() ([]byte, []int) { - return file_ps_connect_proto_rawDescGZIP(), []int{5} -} - -func (x *CreateConnectionResponse) GetConnectionId() string { - if x != nil { - return x.ConnectionId - } - return "" -} - -type TestConnectionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - Options *opts.ConnectionOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"` -} - -func (x *TestConnectionRequest) Reset() { - *x = TestConnectionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_connect_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TestConnectionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TestConnectionRequest) ProtoMessage() {} - -func (x *TestConnectionRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_connect_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TestConnectionRequest.ProtoReflect.Descriptor instead. -func (*TestConnectionRequest) Descriptor() ([]byte, []int) { - return file_ps_connect_proto_rawDescGZIP(), []int{6} -} - -func (x *TestConnectionRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *TestConnectionRequest) GetOptions() *opts.ConnectionOptions { - if x != nil { - return x.Options - } - return nil -} - -type TestConnectionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *TestConnectionResponse) Reset() { - *x = TestConnectionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_connect_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TestConnectionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TestConnectionResponse) ProtoMessage() {} - -func (x *TestConnectionResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_connect_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TestConnectionResponse.ProtoReflect.Descriptor instead. -func (*TestConnectionResponse) Descriptor() ([]byte, []int) { - return file_ps_connect_proto_rawDescGZIP(), []int{7} -} - -func (x *TestConnectionResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -type UpdateConnectionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` - Options *opts.ConnectionOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` -} - -func (x *UpdateConnectionRequest) Reset() { - *x = UpdateConnectionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_connect_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateConnectionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateConnectionRequest) ProtoMessage() {} - -func (x *UpdateConnectionRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_connect_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateConnectionRequest.ProtoReflect.Descriptor instead. -func (*UpdateConnectionRequest) Descriptor() ([]byte, []int) { - return file_ps_connect_proto_rawDescGZIP(), []int{8} -} - -func (x *UpdateConnectionRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *UpdateConnectionRequest) GetConnectionId() string { - if x != nil { - return x.ConnectionId - } - return "" -} - -func (x *UpdateConnectionRequest) GetOptions() *opts.ConnectionOptions { - if x != nil { - return x.Options - } - return nil -} - -type UpdateConnectionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *UpdateConnectionResponse) Reset() { - *x = UpdateConnectionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_connect_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateConnectionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateConnectionResponse) ProtoMessage() {} - -func (x *UpdateConnectionResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_connect_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateConnectionResponse.ProtoReflect.Descriptor instead. -func (*UpdateConnectionResponse) Descriptor() ([]byte, []int) { - return file_ps_connect_proto_rawDescGZIP(), []int{9} -} - -func (x *UpdateConnectionResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -type DeleteConnectionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` -} - -func (x *DeleteConnectionRequest) Reset() { - *x = DeleteConnectionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_connect_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteConnectionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteConnectionRequest) ProtoMessage() {} - -func (x *DeleteConnectionRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_connect_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteConnectionRequest.ProtoReflect.Descriptor instead. -func (*DeleteConnectionRequest) Descriptor() ([]byte, []int) { - return file_ps_connect_proto_rawDescGZIP(), []int{10} -} - -func (x *DeleteConnectionRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *DeleteConnectionRequest) GetConnectionId() string { - if x != nil { - return x.ConnectionId - } - return "" -} - -type DeleteConnectionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *DeleteConnectionResponse) Reset() { - *x = DeleteConnectionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_connect_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteConnectionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteConnectionResponse) ProtoMessage() {} - -func (x *DeleteConnectionResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_connect_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteConnectionResponse.ProtoReflect.Descriptor instead. -func (*DeleteConnectionResponse) Descriptor() ([]byte, []int) { - return file_ps_connect_proto_rawDescGZIP(), []int{11} -} - -func (x *DeleteConnectionResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -var File_ps_connect_proto protoreflect.FileDescriptor - -var file_ps_connect_proto_rawDesc = []byte{ - 0x0a, 0x10, 0x70, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x1a, 0x1b, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x2f, 0x70, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x61, 0x75, 0x74, - 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, - 0x70, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, - 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x44, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x22, 0x55, 0x0a, 0x19, 0x47, - 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x22, 0x65, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, - 0x74, 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, - 0x61, 0x75, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x51, 0x0a, 0x15, 0x47, 0x65, 0x74, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, - 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7d, 0x0a, 0x17, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, - 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, - 0x68, 0x12, 0x38, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, - 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x3f, 0x0a, 0x18, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x7b, 0x0a, 0x15, - 0x54, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x8f, 0x4e, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, - 0x38, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x48, 0x0a, 0x16, 0x54, 0x65, 0x73, - 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xe8, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x22, 0xa2, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, - 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x38, - 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, - 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x4a, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xe8, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x22, 0x68, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, - 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x4a, - 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, - 0x72, 0x70, 0x2f, 0x70, 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_ps_connect_proto_rawDescOnce sync.Once - file_ps_connect_proto_rawDescData = file_ps_connect_proto_rawDesc -) - -func file_ps_connect_proto_rawDescGZIP() []byte { - file_ps_connect_proto_rawDescOnce.Do(func() { - file_ps_connect_proto_rawDescData = protoimpl.X.CompressGZIP(file_ps_connect_proto_rawDescData) - }) - return file_ps_connect_proto_rawDescData -} - -var file_ps_connect_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_ps_connect_proto_goTypes = []interface{}{ - (*GetAllConnectionsRequest)(nil), // 0: protos.GetAllConnectionsRequest - (*GetAllConnectionsResponse)(nil), // 1: protos.GetAllConnectionsResponse - (*GetConnectionRequest)(nil), // 2: protos.GetConnectionRequest - (*GetConnectionResponse)(nil), // 3: protos.GetConnectionResponse - (*CreateConnectionRequest)(nil), // 4: protos.CreateConnectionRequest - (*CreateConnectionResponse)(nil), // 5: protos.CreateConnectionResponse - (*TestConnectionRequest)(nil), // 6: protos.TestConnectionRequest - (*TestConnectionResponse)(nil), // 7: protos.TestConnectionResponse - (*UpdateConnectionRequest)(nil), // 8: protos.UpdateConnectionRequest - (*UpdateConnectionResponse)(nil), // 9: protos.UpdateConnectionResponse - (*DeleteConnectionRequest)(nil), // 10: protos.DeleteConnectionRequest - (*DeleteConnectionResponse)(nil), // 11: protos.DeleteConnectionResponse - (*common.Auth)(nil), // 12: protos.common.Auth - (*opts.ConnectionOptions)(nil), // 13: protos.opts.ConnectionOptions - (*common.Status)(nil), // 14: protos.common.Status -} -var file_ps_connect_proto_depIdxs = []int32{ - 12, // 0: protos.GetAllConnectionsRequest.auth:type_name -> protos.common.Auth - 13, // 1: protos.GetAllConnectionsResponse.options:type_name -> protos.opts.ConnectionOptions - 12, // 2: protos.GetConnectionRequest.auth:type_name -> protos.common.Auth - 13, // 3: protos.GetConnectionResponse.options:type_name -> protos.opts.ConnectionOptions - 12, // 4: protos.CreateConnectionRequest.auth:type_name -> protos.common.Auth - 13, // 5: protos.CreateConnectionRequest.options:type_name -> protos.opts.ConnectionOptions - 12, // 6: protos.TestConnectionRequest.auth:type_name -> protos.common.Auth - 13, // 7: protos.TestConnectionRequest.options:type_name -> protos.opts.ConnectionOptions - 14, // 8: protos.TestConnectionResponse.status:type_name -> protos.common.Status - 12, // 9: protos.UpdateConnectionRequest.auth:type_name -> protos.common.Auth - 13, // 10: protos.UpdateConnectionRequest.options:type_name -> protos.opts.ConnectionOptions - 14, // 11: protos.UpdateConnectionResponse.status:type_name -> protos.common.Status - 12, // 12: protos.DeleteConnectionRequest.auth:type_name -> protos.common.Auth - 14, // 13: protos.DeleteConnectionResponse.status:type_name -> protos.common.Status - 14, // [14:14] is the sub-list for method output_type - 14, // [14:14] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name -} - -func init() { file_ps_connect_proto_init() } -func file_ps_connect_proto_init() { - if File_ps_connect_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_ps_connect_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllConnectionsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_connect_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllConnectionsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_connect_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetConnectionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_connect_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetConnectionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_connect_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateConnectionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_connect_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateConnectionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_connect_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestConnectionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_connect_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TestConnectionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_connect_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateConnectionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_connect_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateConnectionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_connect_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteConnectionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_connect_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteConnectionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_ps_connect_proto_rawDesc, - NumEnums: 0, - NumMessages: 12, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_ps_connect_proto_goTypes, - DependencyIndexes: file_ps_connect_proto_depIdxs, - MessageInfos: file_ps_connect_proto_msgTypes, - }.Build() - File_ps_connect_proto = out.File - file_ps_connect_proto_rawDesc = nil - file_ps_connect_proto_goTypes = nil - file_ps_connect_proto_depIdxs = nil -} diff --git a/build/go/protos/ps_foreman_client.pb.go b/build/go/protos/ps_foreman_client.pb.go deleted file mode 100644 index 94e179b..0000000 --- a/build/go/protos/ps_foreman_client.pb.go +++ /dev/null @@ -1,266 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: ps_foreman_client.proto - -package protos - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 ForemanRegisterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // API token obtained from https://console.streamdal.com/account/security - ApiToken string `protobuf:"bytes,1,opt,name=api_token,json=apiToken,proto3" json:"api_token,omitempty"` - // Plumber cluster ID - ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - // Token used to authenticate calls to this plumber instance - // This is filled out by plumber, and then stored in memory while it is connected - // All requests back to plumber need to provide this token - PlumberToken string `protobuf:"bytes,3,opt,name=plumber_token,json=plumberToken,proto3" json:"plumber_token,omitempty"` - // Individual plumber instance ID - NodeId string `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` -} - -func (x *ForemanRegisterRequest) Reset() { - *x = ForemanRegisterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_foreman_client_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ForemanRegisterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ForemanRegisterRequest) ProtoMessage() {} - -func (x *ForemanRegisterRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_foreman_client_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ForemanRegisterRequest.ProtoReflect.Descriptor instead. -func (*ForemanRegisterRequest) Descriptor() ([]byte, []int) { - return file_ps_foreman_client_proto_rawDescGZIP(), []int{0} -} - -func (x *ForemanRegisterRequest) GetApiToken() string { - if x != nil { - return x.ApiToken - } - return "" -} - -func (x *ForemanRegisterRequest) GetClusterId() string { - if x != nil { - return x.ClusterId - } - return "" -} - -func (x *ForemanRegisterRequest) GetPlumberToken() string { - if x != nil { - return x.PlumberToken - } - return "" -} - -func (x *ForemanRegisterRequest) GetNodeId() string { - if x != nil { - return x.NodeId - } - return "" -} - -type ForemanRegisterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Authorized or not - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - // Error message if any - // Will be empty on success - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *ForemanRegisterResponse) Reset() { - *x = ForemanRegisterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_foreman_client_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ForemanRegisterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ForemanRegisterResponse) ProtoMessage() {} - -func (x *ForemanRegisterResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_foreman_client_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ForemanRegisterResponse.ProtoReflect.Descriptor instead. -func (*ForemanRegisterResponse) Descriptor() ([]byte, []int) { - return file_ps_foreman_client_proto_rawDescGZIP(), []int{1} -} - -func (x *ForemanRegisterResponse) GetSuccess() bool { - if x != nil { - return x.Success - } - return false -} - -func (x *ForemanRegisterResponse) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -var File_ps_foreman_client_proto protoreflect.FileDescriptor - -var file_ps_foreman_client_proto_rawDesc = []byte{ - 0x0a, 0x17, 0x70, 0x73, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x6d, 0x61, 0x6e, 0x5f, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x22, 0x92, 0x01, 0x0a, 0x16, 0x46, 0x6f, 0x72, 0x65, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, - 0x61, 0x70, 0x69, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x61, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6c, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x70, 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x17, 0x0a, - 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x4d, 0x0a, 0x17, 0x46, 0x6f, 0x72, 0x65, 0x6d, 0x61, - 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x5c, 0x0a, 0x0d, 0x46, 0x6f, 0x72, 0x65, 0x6d, 0x61, 0x6e, - 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x4b, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x12, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x46, 0x6f, 0x72, 0x65, - 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x46, 0x6f, 0x72, 0x65, - 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x70, 0x6c, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, - 0x64, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_ps_foreman_client_proto_rawDescOnce sync.Once - file_ps_foreman_client_proto_rawDescData = file_ps_foreman_client_proto_rawDesc -) - -func file_ps_foreman_client_proto_rawDescGZIP() []byte { - file_ps_foreman_client_proto_rawDescOnce.Do(func() { - file_ps_foreman_client_proto_rawDescData = protoimpl.X.CompressGZIP(file_ps_foreman_client_proto_rawDescData) - }) - return file_ps_foreman_client_proto_rawDescData -} - -var file_ps_foreman_client_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_ps_foreman_client_proto_goTypes = []interface{}{ - (*ForemanRegisterRequest)(nil), // 0: protos.ForemanRegisterRequest - (*ForemanRegisterResponse)(nil), // 1: protos.ForemanRegisterResponse -} -var file_ps_foreman_client_proto_depIdxs = []int32{ - 0, // 0: protos.ForemanClient.Register:input_type -> protos.ForemanRegisterRequest - 1, // 1: protos.ForemanClient.Register:output_type -> protos.ForemanRegisterResponse - 1, // [1:2] is the sub-list for method output_type - 0, // [0:1] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_ps_foreman_client_proto_init() } -func file_ps_foreman_client_proto_init() { - if File_ps_foreman_client_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_ps_foreman_client_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ForemanRegisterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_foreman_client_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ForemanRegisterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_ps_foreman_client_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_ps_foreman_client_proto_goTypes, - DependencyIndexes: file_ps_foreman_client_proto_depIdxs, - MessageInfos: file_ps_foreman_client_proto_msgTypes, - }.Build() - File_ps_foreman_client_proto = out.File - file_ps_foreman_client_proto_rawDesc = nil - file_ps_foreman_client_proto_goTypes = nil - file_ps_foreman_client_proto_depIdxs = nil -} diff --git a/build/go/protos/ps_foreman_client_grpc.pb.go b/build/go/protos/ps_foreman_client_grpc.pb.go deleted file mode 100644 index 525300d..0000000 --- a/build/go/protos/ps_foreman_client_grpc.pb.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.6 -// source: ps_foreman_client.proto - -package protos - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// ForemanClientClient is the client API for ForemanClient service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type ForemanClientClient interface { - // Used by plumber to connect to Foreman and announce its presence. - Register(ctx context.Context, in *ForemanRegisterRequest, opts ...grpc.CallOption) (*ForemanRegisterResponse, error) -} - -type foremanClientClient struct { - cc grpc.ClientConnInterface -} - -func NewForemanClientClient(cc grpc.ClientConnInterface) ForemanClientClient { - return &foremanClientClient{cc} -} - -func (c *foremanClientClient) Register(ctx context.Context, in *ForemanRegisterRequest, opts ...grpc.CallOption) (*ForemanRegisterResponse, error) { - out := new(ForemanRegisterResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanClient/Register", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ForemanClientServer is the server API for ForemanClient service. -// All implementations should embed UnimplementedForemanClientServer -// for forward compatibility -type ForemanClientServer interface { - // Used by plumber to connect to Foreman and announce its presence. - Register(context.Context, *ForemanRegisterRequest) (*ForemanRegisterResponse, error) -} - -// UnimplementedForemanClientServer should be embedded to have forward compatible implementations. -type UnimplementedForemanClientServer struct { -} - -func (UnimplementedForemanClientServer) Register(context.Context, *ForemanRegisterRequest) (*ForemanRegisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Register not implemented") -} - -// UnsafeForemanClientServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ForemanClientServer will -// result in compilation errors. -type UnsafeForemanClientServer interface { - mustEmbedUnimplementedForemanClientServer() -} - -func RegisterForemanClientServer(s grpc.ServiceRegistrar, srv ForemanClientServer) { - s.RegisterService(&ForemanClient_ServiceDesc, srv) -} - -func _ForemanClient_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ForemanRegisterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanClientServer).Register(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanClient/Register", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanClientServer).Register(ctx, req.(*ForemanRegisterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// ForemanClient_ServiceDesc is the grpc.ServiceDesc for ForemanClient service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var ForemanClient_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "protos.ForemanClient", - HandlerType: (*ForemanClientServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Register", - Handler: _ForemanClient_Register_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "ps_foreman_client.proto", -} diff --git a/build/go/protos/ps_foreman_server.pb.go b/build/go/protos/ps_foreman_server.pb.go deleted file mode 100644 index e8a485a..0000000 --- a/build/go/protos/ps_foreman_server.pb.go +++ /dev/null @@ -1,497 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: ps_foreman_server.proto - -package protos - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 PlumberInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TeamId string `protobuf:"bytes,1,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` - ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` -} - -func (x *PlumberInfo) Reset() { - *x = PlumberInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_foreman_server_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlumberInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlumberInfo) ProtoMessage() {} - -func (x *PlumberInfo) ProtoReflect() protoreflect.Message { - mi := &file_ps_foreman_server_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlumberInfo.ProtoReflect.Descriptor instead. -func (*PlumberInfo) Descriptor() ([]byte, []int) { - return file_ps_foreman_server_proto_rawDescGZIP(), []int{0} -} - -func (x *PlumberInfo) GetTeamId() string { - if x != nil { - return x.TeamId - } - return "" -} - -func (x *PlumberInfo) GetClusterId() string { - if x != nil { - return x.ClusterId - } - return "" -} - -type ListPlumbersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Authenticate between ui-bff and Foreman - AuthToken string `protobuf:"bytes,1,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"` - // Team ID to list connected plumbers for - TeamId string `protobuf:"bytes,2,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"` -} - -func (x *ListPlumbersRequest) Reset() { - *x = ListPlumbersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_foreman_server_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListPlumbersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListPlumbersRequest) ProtoMessage() {} - -func (x *ListPlumbersRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_foreman_server_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListPlumbersRequest.ProtoReflect.Descriptor instead. -func (*ListPlumbersRequest) Descriptor() ([]byte, []int) { - return file_ps_foreman_server_proto_rawDescGZIP(), []int{1} -} - -func (x *ListPlumbersRequest) GetAuthToken() string { - if x != nil { - return x.AuthToken - } - return "" -} - -func (x *ListPlumbersRequest) GetTeamId() string { - if x != nil { - return x.TeamId - } - return "" -} - -type ListPlumbersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // List of plumbers - Plumbers []*PlumberInfo `protobuf:"bytes,1,rep,name=plumbers,proto3" json:"plumbers,omitempty"` -} - -func (x *ListPlumbersResponse) Reset() { - *x = ListPlumbersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_foreman_server_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListPlumbersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListPlumbersResponse) ProtoMessage() {} - -func (x *ListPlumbersResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_foreman_server_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListPlumbersResponse.ProtoReflect.Descriptor instead. -func (*ListPlumbersResponse) Descriptor() ([]byte, []int) { - return file_ps_foreman_server_proto_rawDescGZIP(), []int{2} -} - -func (x *ListPlumbersResponse) GetPlumbers() []*PlumberInfo { - if x != nil { - return x.Plumbers - } - return nil -} - -var File_ps_foreman_server_proto protoreflect.FileDescriptor - -var file_ps_foreman_server_proto_rawDesc = []byte{ - 0x0a, 0x17, 0x70, 0x73, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x6d, 0x61, 0x6e, 0x5f, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x1a, 0x10, 0x70, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x0e, 0x70, 0x73, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x70, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x70, 0x73, 0x5f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x45, 0x0a, 0x0b, 0x50, 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x61, 0x6d, 0x49, 0x64, 0x12, 0x1d, 0x0a, - 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x4d, 0x0a, 0x13, - 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x61, 0x6d, 0x49, 0x64, 0x22, 0x47, 0x0a, 0x14, 0x4c, - 0x69, 0x73, 0x74, 0x50, 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x70, 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x50, - 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x70, 0x6c, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x73, 0x32, 0x9c, 0x0d, 0x0a, 0x0d, 0x46, 0x6f, 0x72, 0x65, 0x6d, 0x61, 0x6e, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x50, 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x58, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x47, - 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x4f, 0x0a, 0x0e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x1d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x55, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x49, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x73, 0x12, - 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, - 0x65, 0x6c, 0x61, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x6c, 0x61, - 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x47, 0x65, - 0x74, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x61, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, - 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x52, 0x65, 0x73, - 0x75, 0x6d, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x52, 0x65, - 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x40, 0x0a, 0x09, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x18, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x6c, 0x61, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, - 0x61, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, - 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x09, 0x47, - 0x65, 0x74, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x54, - 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, - 0x0d, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x12, 0x1c, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x75, 0x6e, 0x6e, - 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x1b, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, - 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x53, 0x74, 0x6f, 0x70, 0x54, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x53, 0x74, - 0x6f, 0x70, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x54, 0x75, 0x6e, - 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x52, - 0x65, 0x73, 0x75, 0x6d, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x1b, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, - 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, - 0x6c, 0x12, 0x1b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, - 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x70, 0x6c, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x62, 0x75, 0x69, 0x6c, - 0x64, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_ps_foreman_server_proto_rawDescOnce sync.Once - file_ps_foreman_server_proto_rawDescData = file_ps_foreman_server_proto_rawDesc -) - -func file_ps_foreman_server_proto_rawDescGZIP() []byte { - file_ps_foreman_server_proto_rawDescOnce.Do(func() { - file_ps_foreman_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_ps_foreman_server_proto_rawDescData) - }) - return file_ps_foreman_server_proto_rawDescData -} - -var file_ps_foreman_server_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_ps_foreman_server_proto_goTypes = []interface{}{ - (*PlumberInfo)(nil), // 0: protos.PlumberInfo - (*ListPlumbersRequest)(nil), // 1: protos.ListPlumbersRequest - (*ListPlumbersResponse)(nil), // 2: protos.ListPlumbersResponse - (*GetAllConnectionsRequest)(nil), // 3: protos.GetAllConnectionsRequest - (*GetConnectionRequest)(nil), // 4: protos.GetConnectionRequest - (*CreateConnectionRequest)(nil), // 5: protos.CreateConnectionRequest - (*TestConnectionRequest)(nil), // 6: protos.TestConnectionRequest - (*UpdateConnectionRequest)(nil), // 7: protos.UpdateConnectionRequest - (*DeleteConnectionRequest)(nil), // 8: protos.DeleteConnectionRequest - (*GetAllRelaysRequest)(nil), // 9: protos.GetAllRelaysRequest - (*GetRelayRequest)(nil), // 10: protos.GetRelayRequest - (*CreateRelayRequest)(nil), // 11: protos.CreateRelayRequest - (*UpdateRelayRequest)(nil), // 12: protos.UpdateRelayRequest - (*ResumeRelayRequest)(nil), // 13: protos.ResumeRelayRequest - (*StopRelayRequest)(nil), // 14: protos.StopRelayRequest - (*DeleteRelayRequest)(nil), // 15: protos.DeleteRelayRequest - (*GetTunnelRequest)(nil), // 16: protos.GetTunnelRequest - (*GetAllTunnelsRequest)(nil), // 17: protos.GetAllTunnelsRequest - (*CreateTunnelRequest)(nil), // 18: protos.CreateTunnelRequest - (*StopTunnelRequest)(nil), // 19: protos.StopTunnelRequest - (*ResumeTunnelRequest)(nil), // 20: protos.ResumeTunnelRequest - (*UpdateTunnelRequest)(nil), // 21: protos.UpdateTunnelRequest - (*DeleteTunnelRequest)(nil), // 22: protos.DeleteTunnelRequest - (*GetServerOptionsRequest)(nil), // 23: protos.GetServerOptionsRequest - (*GetAllConnectionsResponse)(nil), // 24: protos.GetAllConnectionsResponse - (*GetConnectionResponse)(nil), // 25: protos.GetConnectionResponse - (*CreateConnectionResponse)(nil), // 26: protos.CreateConnectionResponse - (*TestConnectionResponse)(nil), // 27: protos.TestConnectionResponse - (*UpdateConnectionResponse)(nil), // 28: protos.UpdateConnectionResponse - (*DeleteConnectionResponse)(nil), // 29: protos.DeleteConnectionResponse - (*GetAllRelaysResponse)(nil), // 30: protos.GetAllRelaysResponse - (*GetRelayResponse)(nil), // 31: protos.GetRelayResponse - (*CreateRelayResponse)(nil), // 32: protos.CreateRelayResponse - (*UpdateRelayResponse)(nil), // 33: protos.UpdateRelayResponse - (*ResumeRelayResponse)(nil), // 34: protos.ResumeRelayResponse - (*StopRelayResponse)(nil), // 35: protos.StopRelayResponse - (*DeleteRelayResponse)(nil), // 36: protos.DeleteRelayResponse - (*GetTunnelResponse)(nil), // 37: protos.GetTunnelResponse - (*GetAllTunnelsResponse)(nil), // 38: protos.GetAllTunnelsResponse - (*CreateTunnelResponse)(nil), // 39: protos.CreateTunnelResponse - (*StopTunnelResponse)(nil), // 40: protos.StopTunnelResponse - (*ResumeTunnelResponse)(nil), // 41: protos.ResumeTunnelResponse - (*UpdateTunnelResponse)(nil), // 42: protos.UpdateTunnelResponse - (*DeleteTunnelResponse)(nil), // 43: protos.DeleteTunnelResponse - (*GetServerOptionsResponse)(nil), // 44: protos.GetServerOptionsResponse -} -var file_ps_foreman_server_proto_depIdxs = []int32{ - 0, // 0: protos.ListPlumbersResponse.plumbers:type_name -> protos.PlumberInfo - 1, // 1: protos.ForemanServer.ListPlumbers:input_type -> protos.ListPlumbersRequest - 3, // 2: protos.ForemanServer.GetAllConnections:input_type -> protos.GetAllConnectionsRequest - 4, // 3: protos.ForemanServer.GetConnection:input_type -> protos.GetConnectionRequest - 5, // 4: protos.ForemanServer.CreateConnection:input_type -> protos.CreateConnectionRequest - 6, // 5: protos.ForemanServer.TestConnection:input_type -> protos.TestConnectionRequest - 7, // 6: protos.ForemanServer.UpdateConnection:input_type -> protos.UpdateConnectionRequest - 8, // 7: protos.ForemanServer.DeleteConnection:input_type -> protos.DeleteConnectionRequest - 9, // 8: protos.ForemanServer.GetAllRelays:input_type -> protos.GetAllRelaysRequest - 10, // 9: protos.ForemanServer.GetRelay:input_type -> protos.GetRelayRequest - 11, // 10: protos.ForemanServer.CreateRelay:input_type -> protos.CreateRelayRequest - 12, // 11: protos.ForemanServer.UpdateRelay:input_type -> protos.UpdateRelayRequest - 13, // 12: protos.ForemanServer.ResumeRelay:input_type -> protos.ResumeRelayRequest - 14, // 13: protos.ForemanServer.StopRelay:input_type -> protos.StopRelayRequest - 15, // 14: protos.ForemanServer.DeleteRelay:input_type -> protos.DeleteRelayRequest - 16, // 15: protos.ForemanServer.GetTunnel:input_type -> protos.GetTunnelRequest - 17, // 16: protos.ForemanServer.GetAllTunnels:input_type -> protos.GetAllTunnelsRequest - 18, // 17: protos.ForemanServer.CreateTunnel:input_type -> protos.CreateTunnelRequest - 19, // 18: protos.ForemanServer.StopTunnel:input_type -> protos.StopTunnelRequest - 20, // 19: protos.ForemanServer.ResumeTunnel:input_type -> protos.ResumeTunnelRequest - 21, // 20: protos.ForemanServer.UpdateTunnel:input_type -> protos.UpdateTunnelRequest - 22, // 21: protos.ForemanServer.DeleteTunnel:input_type -> protos.DeleteTunnelRequest - 23, // 22: protos.ForemanServer.GetServerOptions:input_type -> protos.GetServerOptionsRequest - 2, // 23: protos.ForemanServer.ListPlumbers:output_type -> protos.ListPlumbersResponse - 24, // 24: protos.ForemanServer.GetAllConnections:output_type -> protos.GetAllConnectionsResponse - 25, // 25: protos.ForemanServer.GetConnection:output_type -> protos.GetConnectionResponse - 26, // 26: protos.ForemanServer.CreateConnection:output_type -> protos.CreateConnectionResponse - 27, // 27: protos.ForemanServer.TestConnection:output_type -> protos.TestConnectionResponse - 28, // 28: protos.ForemanServer.UpdateConnection:output_type -> protos.UpdateConnectionResponse - 29, // 29: protos.ForemanServer.DeleteConnection:output_type -> protos.DeleteConnectionResponse - 30, // 30: protos.ForemanServer.GetAllRelays:output_type -> protos.GetAllRelaysResponse - 31, // 31: protos.ForemanServer.GetRelay:output_type -> protos.GetRelayResponse - 32, // 32: protos.ForemanServer.CreateRelay:output_type -> protos.CreateRelayResponse - 33, // 33: protos.ForemanServer.UpdateRelay:output_type -> protos.UpdateRelayResponse - 34, // 34: protos.ForemanServer.ResumeRelay:output_type -> protos.ResumeRelayResponse - 35, // 35: protos.ForemanServer.StopRelay:output_type -> protos.StopRelayResponse - 36, // 36: protos.ForemanServer.DeleteRelay:output_type -> protos.DeleteRelayResponse - 37, // 37: protos.ForemanServer.GetTunnel:output_type -> protos.GetTunnelResponse - 38, // 38: protos.ForemanServer.GetAllTunnels:output_type -> protos.GetAllTunnelsResponse - 39, // 39: protos.ForemanServer.CreateTunnel:output_type -> protos.CreateTunnelResponse - 40, // 40: protos.ForemanServer.StopTunnel:output_type -> protos.StopTunnelResponse - 41, // 41: protos.ForemanServer.ResumeTunnel:output_type -> protos.ResumeTunnelResponse - 42, // 42: protos.ForemanServer.UpdateTunnel:output_type -> protos.UpdateTunnelResponse - 43, // 43: protos.ForemanServer.DeleteTunnel:output_type -> protos.DeleteTunnelResponse - 44, // 44: protos.ForemanServer.GetServerOptions:output_type -> protos.GetServerOptionsResponse - 23, // [23:45] is the sub-list for method output_type - 1, // [1:23] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_ps_foreman_server_proto_init() } -func file_ps_foreman_server_proto_init() { - if File_ps_foreman_server_proto != nil { - return - } - file_ps_connect_proto_init() - file_ps_relay_proto_init() - file_ps_server_proto_init() - file_ps_tunnel_proto_init() - if !protoimpl.UnsafeEnabled { - file_ps_foreman_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlumberInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_foreman_server_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListPlumbersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_foreman_server_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListPlumbersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_ps_foreman_server_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_ps_foreman_server_proto_goTypes, - DependencyIndexes: file_ps_foreman_server_proto_depIdxs, - MessageInfos: file_ps_foreman_server_proto_msgTypes, - }.Build() - File_ps_foreman_server_proto = out.File - file_ps_foreman_server_proto_rawDesc = nil - file_ps_foreman_server_proto_goTypes = nil - file_ps_foreman_server_proto_depIdxs = nil -} diff --git a/build/go/protos/ps_foreman_server_grpc.pb.go b/build/go/protos/ps_foreman_server_grpc.pb.go deleted file mode 100644 index 2715fd7..0000000 --- a/build/go/protos/ps_foreman_server_grpc.pb.go +++ /dev/null @@ -1,875 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.6 -// source: ps_foreman_server.proto - -package protos - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// ForemanServerClient is the client API for ForemanServer service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type ForemanServerClient interface { - // ListPlumbers is called by ui-bff, received by Foreman - // It returns all connected plumber instances for a given team - ListPlumbers(ctx context.Context, in *ListPlumbersRequest, opts ...grpc.CallOption) (*ListPlumbersResponse, error) - // List configured/known connections - GetAllConnections(ctx context.Context, in *GetAllConnectionsRequest, opts ...grpc.CallOption) (*GetAllConnectionsResponse, error) - // Fetch a specific connection by ID - GetConnection(ctx context.Context, in *GetConnectionRequest, opts ...grpc.CallOption) (*GetConnectionResponse, error) - // Create a connection in plumber - CreateConnection(ctx context.Context, in *CreateConnectionRequest, opts ...grpc.CallOption) (*CreateConnectionResponse, error) - // Test a connection before saving its configuration - TestConnection(ctx context.Context, in *TestConnectionRequest, opts ...grpc.CallOption) (*TestConnectionResponse, error) - // Any active connections will be restarted - UpdateConnection(ctx context.Context, in *UpdateConnectionRequest, opts ...grpc.CallOption) (*UpdateConnectionResponse, error) - // If there are any active connections, delete will cause them to get closed - DeleteConnection(ctx context.Context, in *DeleteConnectionRequest, opts ...grpc.CallOption) (*DeleteConnectionResponse, error) - GetAllRelays(ctx context.Context, in *GetAllRelaysRequest, opts ...grpc.CallOption) (*GetAllRelaysResponse, error) - GetRelay(ctx context.Context, in *GetRelayRequest, opts ...grpc.CallOption) (*GetRelayResponse, error) - CreateRelay(ctx context.Context, in *CreateRelayRequest, opts ...grpc.CallOption) (*CreateRelayResponse, error) - UpdateRelay(ctx context.Context, in *UpdateRelayRequest, opts ...grpc.CallOption) (*UpdateRelayResponse, error) - ResumeRelay(ctx context.Context, in *ResumeRelayRequest, opts ...grpc.CallOption) (*ResumeRelayResponse, error) - StopRelay(ctx context.Context, in *StopRelayRequest, opts ...grpc.CallOption) (*StopRelayResponse, error) - DeleteRelay(ctx context.Context, in *DeleteRelayRequest, opts ...grpc.CallOption) (*DeleteRelayResponse, error) - GetTunnel(ctx context.Context, in *GetTunnelRequest, opts ...grpc.CallOption) (*GetTunnelResponse, error) - GetAllTunnels(ctx context.Context, in *GetAllTunnelsRequest, opts ...grpc.CallOption) (*GetAllTunnelsResponse, error) - CreateTunnel(ctx context.Context, in *CreateTunnelRequest, opts ...grpc.CallOption) (*CreateTunnelResponse, error) - StopTunnel(ctx context.Context, in *StopTunnelRequest, opts ...grpc.CallOption) (*StopTunnelResponse, error) - ResumeTunnel(ctx context.Context, in *ResumeTunnelRequest, opts ...grpc.CallOption) (*ResumeTunnelResponse, error) - UpdateTunnel(ctx context.Context, in *UpdateTunnelRequest, opts ...grpc.CallOption) (*UpdateTunnelResponse, error) - DeleteTunnel(ctx context.Context, in *DeleteTunnelRequest, opts ...grpc.CallOption) (*DeleteTunnelResponse, error) - GetServerOptions(ctx context.Context, in *GetServerOptionsRequest, opts ...grpc.CallOption) (*GetServerOptionsResponse, error) -} - -type foremanServerClient struct { - cc grpc.ClientConnInterface -} - -func NewForemanServerClient(cc grpc.ClientConnInterface) ForemanServerClient { - return &foremanServerClient{cc} -} - -func (c *foremanServerClient) ListPlumbers(ctx context.Context, in *ListPlumbersRequest, opts ...grpc.CallOption) (*ListPlumbersResponse, error) { - out := new(ListPlumbersResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/ListPlumbers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) GetAllConnections(ctx context.Context, in *GetAllConnectionsRequest, opts ...grpc.CallOption) (*GetAllConnectionsResponse, error) { - out := new(GetAllConnectionsResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/GetAllConnections", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) GetConnection(ctx context.Context, in *GetConnectionRequest, opts ...grpc.CallOption) (*GetConnectionResponse, error) { - out := new(GetConnectionResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/GetConnection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) CreateConnection(ctx context.Context, in *CreateConnectionRequest, opts ...grpc.CallOption) (*CreateConnectionResponse, error) { - out := new(CreateConnectionResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/CreateConnection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) TestConnection(ctx context.Context, in *TestConnectionRequest, opts ...grpc.CallOption) (*TestConnectionResponse, error) { - out := new(TestConnectionResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/TestConnection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) UpdateConnection(ctx context.Context, in *UpdateConnectionRequest, opts ...grpc.CallOption) (*UpdateConnectionResponse, error) { - out := new(UpdateConnectionResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/UpdateConnection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) DeleteConnection(ctx context.Context, in *DeleteConnectionRequest, opts ...grpc.CallOption) (*DeleteConnectionResponse, error) { - out := new(DeleteConnectionResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/DeleteConnection", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) GetAllRelays(ctx context.Context, in *GetAllRelaysRequest, opts ...grpc.CallOption) (*GetAllRelaysResponse, error) { - out := new(GetAllRelaysResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/GetAllRelays", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) GetRelay(ctx context.Context, in *GetRelayRequest, opts ...grpc.CallOption) (*GetRelayResponse, error) { - out := new(GetRelayResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/GetRelay", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) CreateRelay(ctx context.Context, in *CreateRelayRequest, opts ...grpc.CallOption) (*CreateRelayResponse, error) { - out := new(CreateRelayResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/CreateRelay", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) UpdateRelay(ctx context.Context, in *UpdateRelayRequest, opts ...grpc.CallOption) (*UpdateRelayResponse, error) { - out := new(UpdateRelayResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/UpdateRelay", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) ResumeRelay(ctx context.Context, in *ResumeRelayRequest, opts ...grpc.CallOption) (*ResumeRelayResponse, error) { - out := new(ResumeRelayResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/ResumeRelay", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) StopRelay(ctx context.Context, in *StopRelayRequest, opts ...grpc.CallOption) (*StopRelayResponse, error) { - out := new(StopRelayResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/StopRelay", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) DeleteRelay(ctx context.Context, in *DeleteRelayRequest, opts ...grpc.CallOption) (*DeleteRelayResponse, error) { - out := new(DeleteRelayResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/DeleteRelay", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) GetTunnel(ctx context.Context, in *GetTunnelRequest, opts ...grpc.CallOption) (*GetTunnelResponse, error) { - out := new(GetTunnelResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/GetTunnel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) GetAllTunnels(ctx context.Context, in *GetAllTunnelsRequest, opts ...grpc.CallOption) (*GetAllTunnelsResponse, error) { - out := new(GetAllTunnelsResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/GetAllTunnels", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) CreateTunnel(ctx context.Context, in *CreateTunnelRequest, opts ...grpc.CallOption) (*CreateTunnelResponse, error) { - out := new(CreateTunnelResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/CreateTunnel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) StopTunnel(ctx context.Context, in *StopTunnelRequest, opts ...grpc.CallOption) (*StopTunnelResponse, error) { - out := new(StopTunnelResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/StopTunnel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) ResumeTunnel(ctx context.Context, in *ResumeTunnelRequest, opts ...grpc.CallOption) (*ResumeTunnelResponse, error) { - out := new(ResumeTunnelResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/ResumeTunnel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) UpdateTunnel(ctx context.Context, in *UpdateTunnelRequest, opts ...grpc.CallOption) (*UpdateTunnelResponse, error) { - out := new(UpdateTunnelResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/UpdateTunnel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) DeleteTunnel(ctx context.Context, in *DeleteTunnelRequest, opts ...grpc.CallOption) (*DeleteTunnelResponse, error) { - out := new(DeleteTunnelResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/DeleteTunnel", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *foremanServerClient) GetServerOptions(ctx context.Context, in *GetServerOptionsRequest, opts ...grpc.CallOption) (*GetServerOptionsResponse, error) { - out := new(GetServerOptionsResponse) - err := c.cc.Invoke(ctx, "/protos.ForemanServer/GetServerOptions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ForemanServerServer is the server API for ForemanServer service. -// All implementations should embed UnimplementedForemanServerServer -// for forward compatibility -type ForemanServerServer interface { - // ListPlumbers is called by ui-bff, received by Foreman - // It returns all connected plumber instances for a given team - ListPlumbers(context.Context, *ListPlumbersRequest) (*ListPlumbersResponse, error) - // List configured/known connections - GetAllConnections(context.Context, *GetAllConnectionsRequest) (*GetAllConnectionsResponse, error) - // Fetch a specific connection by ID - GetConnection(context.Context, *GetConnectionRequest) (*GetConnectionResponse, error) - // Create a connection in plumber - CreateConnection(context.Context, *CreateConnectionRequest) (*CreateConnectionResponse, error) - // Test a connection before saving its configuration - TestConnection(context.Context, *TestConnectionRequest) (*TestConnectionResponse, error) - // Any active connections will be restarted - UpdateConnection(context.Context, *UpdateConnectionRequest) (*UpdateConnectionResponse, error) - // If there are any active connections, delete will cause them to get closed - DeleteConnection(context.Context, *DeleteConnectionRequest) (*DeleteConnectionResponse, error) - GetAllRelays(context.Context, *GetAllRelaysRequest) (*GetAllRelaysResponse, error) - GetRelay(context.Context, *GetRelayRequest) (*GetRelayResponse, error) - CreateRelay(context.Context, *CreateRelayRequest) (*CreateRelayResponse, error) - UpdateRelay(context.Context, *UpdateRelayRequest) (*UpdateRelayResponse, error) - ResumeRelay(context.Context, *ResumeRelayRequest) (*ResumeRelayResponse, error) - StopRelay(context.Context, *StopRelayRequest) (*StopRelayResponse, error) - DeleteRelay(context.Context, *DeleteRelayRequest) (*DeleteRelayResponse, error) - GetTunnel(context.Context, *GetTunnelRequest) (*GetTunnelResponse, error) - GetAllTunnels(context.Context, *GetAllTunnelsRequest) (*GetAllTunnelsResponse, error) - CreateTunnel(context.Context, *CreateTunnelRequest) (*CreateTunnelResponse, error) - StopTunnel(context.Context, *StopTunnelRequest) (*StopTunnelResponse, error) - ResumeTunnel(context.Context, *ResumeTunnelRequest) (*ResumeTunnelResponse, error) - UpdateTunnel(context.Context, *UpdateTunnelRequest) (*UpdateTunnelResponse, error) - DeleteTunnel(context.Context, *DeleteTunnelRequest) (*DeleteTunnelResponse, error) - GetServerOptions(context.Context, *GetServerOptionsRequest) (*GetServerOptionsResponse, error) -} - -// UnimplementedForemanServerServer should be embedded to have forward compatible implementations. -type UnimplementedForemanServerServer struct { -} - -func (UnimplementedForemanServerServer) ListPlumbers(context.Context, *ListPlumbersRequest) (*ListPlumbersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListPlumbers not implemented") -} -func (UnimplementedForemanServerServer) GetAllConnections(context.Context, *GetAllConnectionsRequest) (*GetAllConnectionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllConnections not implemented") -} -func (UnimplementedForemanServerServer) GetConnection(context.Context, *GetConnectionRequest) (*GetConnectionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetConnection not implemented") -} -func (UnimplementedForemanServerServer) CreateConnection(context.Context, *CreateConnectionRequest) (*CreateConnectionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateConnection not implemented") -} -func (UnimplementedForemanServerServer) TestConnection(context.Context, *TestConnectionRequest) (*TestConnectionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TestConnection not implemented") -} -func (UnimplementedForemanServerServer) UpdateConnection(context.Context, *UpdateConnectionRequest) (*UpdateConnectionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateConnection not implemented") -} -func (UnimplementedForemanServerServer) DeleteConnection(context.Context, *DeleteConnectionRequest) (*DeleteConnectionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteConnection not implemented") -} -func (UnimplementedForemanServerServer) GetAllRelays(context.Context, *GetAllRelaysRequest) (*GetAllRelaysResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllRelays not implemented") -} -func (UnimplementedForemanServerServer) GetRelay(context.Context, *GetRelayRequest) (*GetRelayResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRelay not implemented") -} -func (UnimplementedForemanServerServer) CreateRelay(context.Context, *CreateRelayRequest) (*CreateRelayResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateRelay not implemented") -} -func (UnimplementedForemanServerServer) UpdateRelay(context.Context, *UpdateRelayRequest) (*UpdateRelayResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateRelay not implemented") -} -func (UnimplementedForemanServerServer) ResumeRelay(context.Context, *ResumeRelayRequest) (*ResumeRelayResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResumeRelay not implemented") -} -func (UnimplementedForemanServerServer) StopRelay(context.Context, *StopRelayRequest) (*StopRelayResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StopRelay not implemented") -} -func (UnimplementedForemanServerServer) DeleteRelay(context.Context, *DeleteRelayRequest) (*DeleteRelayResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteRelay not implemented") -} -func (UnimplementedForemanServerServer) GetTunnel(context.Context, *GetTunnelRequest) (*GetTunnelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTunnel not implemented") -} -func (UnimplementedForemanServerServer) GetAllTunnels(context.Context, *GetAllTunnelsRequest) (*GetAllTunnelsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllTunnels not implemented") -} -func (UnimplementedForemanServerServer) CreateTunnel(context.Context, *CreateTunnelRequest) (*CreateTunnelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTunnel not implemented") -} -func (UnimplementedForemanServerServer) StopTunnel(context.Context, *StopTunnelRequest) (*StopTunnelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StopTunnel not implemented") -} -func (UnimplementedForemanServerServer) ResumeTunnel(context.Context, *ResumeTunnelRequest) (*ResumeTunnelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResumeTunnel not implemented") -} -func (UnimplementedForemanServerServer) UpdateTunnel(context.Context, *UpdateTunnelRequest) (*UpdateTunnelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateTunnel not implemented") -} -func (UnimplementedForemanServerServer) DeleteTunnel(context.Context, *DeleteTunnelRequest) (*DeleteTunnelResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteTunnel not implemented") -} -func (UnimplementedForemanServerServer) GetServerOptions(context.Context, *GetServerOptionsRequest) (*GetServerOptionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetServerOptions not implemented") -} - -// UnsafeForemanServerServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ForemanServerServer will -// result in compilation errors. -type UnsafeForemanServerServer interface { - mustEmbedUnimplementedForemanServerServer() -} - -func RegisterForemanServerServer(s grpc.ServiceRegistrar, srv ForemanServerServer) { - s.RegisterService(&ForemanServer_ServiceDesc, srv) -} - -func _ForemanServer_ListPlumbers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListPlumbersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).ListPlumbers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/ListPlumbers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).ListPlumbers(ctx, req.(*ListPlumbersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_GetAllConnections_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAllConnectionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).GetAllConnections(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/GetAllConnections", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).GetAllConnections(ctx, req.(*GetAllConnectionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_GetConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetConnectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).GetConnection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/GetConnection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).GetConnection(ctx, req.(*GetConnectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_CreateConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateConnectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).CreateConnection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/CreateConnection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).CreateConnection(ctx, req.(*CreateConnectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_TestConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TestConnectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).TestConnection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/TestConnection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).TestConnection(ctx, req.(*TestConnectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_UpdateConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateConnectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).UpdateConnection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/UpdateConnection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).UpdateConnection(ctx, req.(*UpdateConnectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_DeleteConnection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteConnectionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).DeleteConnection(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/DeleteConnection", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).DeleteConnection(ctx, req.(*DeleteConnectionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_GetAllRelays_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAllRelaysRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).GetAllRelays(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/GetAllRelays", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).GetAllRelays(ctx, req.(*GetAllRelaysRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_GetRelay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRelayRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).GetRelay(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/GetRelay", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).GetRelay(ctx, req.(*GetRelayRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_CreateRelay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRelayRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).CreateRelay(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/CreateRelay", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).CreateRelay(ctx, req.(*CreateRelayRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_UpdateRelay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateRelayRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).UpdateRelay(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/UpdateRelay", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).UpdateRelay(ctx, req.(*UpdateRelayRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_ResumeRelay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResumeRelayRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).ResumeRelay(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/ResumeRelay", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).ResumeRelay(ctx, req.(*ResumeRelayRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_StopRelay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StopRelayRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).StopRelay(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/StopRelay", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).StopRelay(ctx, req.(*StopRelayRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_DeleteRelay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRelayRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).DeleteRelay(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/DeleteRelay", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).DeleteRelay(ctx, req.(*DeleteRelayRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_GetTunnel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetTunnelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).GetTunnel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/GetTunnel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).GetTunnel(ctx, req.(*GetTunnelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_GetAllTunnels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAllTunnelsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).GetAllTunnels(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/GetAllTunnels", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).GetAllTunnels(ctx, req.(*GetAllTunnelsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_CreateTunnel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateTunnelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).CreateTunnel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/CreateTunnel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).CreateTunnel(ctx, req.(*CreateTunnelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_StopTunnel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StopTunnelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).StopTunnel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/StopTunnel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).StopTunnel(ctx, req.(*StopTunnelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_ResumeTunnel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResumeTunnelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).ResumeTunnel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/ResumeTunnel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).ResumeTunnel(ctx, req.(*ResumeTunnelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_UpdateTunnel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateTunnelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).UpdateTunnel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/UpdateTunnel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).UpdateTunnel(ctx, req.(*UpdateTunnelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_DeleteTunnel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteTunnelRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).DeleteTunnel(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/DeleteTunnel", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).DeleteTunnel(ctx, req.(*DeleteTunnelRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ForemanServer_GetServerOptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetServerOptionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ForemanServerServer).GetServerOptions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/protos.ForemanServer/GetServerOptions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ForemanServerServer).GetServerOptions(ctx, req.(*GetServerOptionsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// ForemanServer_ServiceDesc is the grpc.ServiceDesc for ForemanServer service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var ForemanServer_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "protos.ForemanServer", - HandlerType: (*ForemanServerServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListPlumbers", - Handler: _ForemanServer_ListPlumbers_Handler, - }, - { - MethodName: "GetAllConnections", - Handler: _ForemanServer_GetAllConnections_Handler, - }, - { - MethodName: "GetConnection", - Handler: _ForemanServer_GetConnection_Handler, - }, - { - MethodName: "CreateConnection", - Handler: _ForemanServer_CreateConnection_Handler, - }, - { - MethodName: "TestConnection", - Handler: _ForemanServer_TestConnection_Handler, - }, - { - MethodName: "UpdateConnection", - Handler: _ForemanServer_UpdateConnection_Handler, - }, - { - MethodName: "DeleteConnection", - Handler: _ForemanServer_DeleteConnection_Handler, - }, - { - MethodName: "GetAllRelays", - Handler: _ForemanServer_GetAllRelays_Handler, - }, - { - MethodName: "GetRelay", - Handler: _ForemanServer_GetRelay_Handler, - }, - { - MethodName: "CreateRelay", - Handler: _ForemanServer_CreateRelay_Handler, - }, - { - MethodName: "UpdateRelay", - Handler: _ForemanServer_UpdateRelay_Handler, - }, - { - MethodName: "ResumeRelay", - Handler: _ForemanServer_ResumeRelay_Handler, - }, - { - MethodName: "StopRelay", - Handler: _ForemanServer_StopRelay_Handler, - }, - { - MethodName: "DeleteRelay", - Handler: _ForemanServer_DeleteRelay_Handler, - }, - { - MethodName: "GetTunnel", - Handler: _ForemanServer_GetTunnel_Handler, - }, - { - MethodName: "GetAllTunnels", - Handler: _ForemanServer_GetAllTunnels_Handler, - }, - { - MethodName: "CreateTunnel", - Handler: _ForemanServer_CreateTunnel_Handler, - }, - { - MethodName: "StopTunnel", - Handler: _ForemanServer_StopTunnel_Handler, - }, - { - MethodName: "ResumeTunnel", - Handler: _ForemanServer_ResumeTunnel_Handler, - }, - { - MethodName: "UpdateTunnel", - Handler: _ForemanServer_UpdateTunnel_Handler, - }, - { - MethodName: "DeleteTunnel", - Handler: _ForemanServer_DeleteTunnel_Handler, - }, - { - MethodName: "GetServerOptions", - Handler: _ForemanServer_GetServerOptions_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "ps_foreman_server.proto", -} diff --git a/build/go/protos/ps_relay.pb.go b/build/go/protos/ps_relay.pb.go deleted file mode 100644 index dd17b5f..0000000 --- a/build/go/protos/ps_relay.pb.go +++ /dev/null @@ -1,1124 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: ps_relay.proto - -package protos - -import ( - common "github.com/batchcorp/plumber-schemas/build/go/protos/common" - opts "github.com/batchcorp/plumber-schemas/build/go/protos/opts" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 GetAllRelaysRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` -} - -func (x *GetAllRelaysRequest) Reset() { - *x = GetAllRelaysRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllRelaysRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllRelaysRequest) ProtoMessage() {} - -func (x *GetAllRelaysRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllRelaysRequest.ProtoReflect.Descriptor instead. -func (*GetAllRelaysRequest) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{0} -} - -func (x *GetAllRelaysRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -type GetAllRelaysResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` - // Will be set as empty []Relay if no relays are configured - Opts []*opts.RelayOptions `protobuf:"bytes,1,rep,name=opts,proto3" json:"opts,omitempty"` -} - -func (x *GetAllRelaysResponse) Reset() { - *x = GetAllRelaysResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllRelaysResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllRelaysResponse) ProtoMessage() {} - -func (x *GetAllRelaysResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllRelaysResponse.ProtoReflect.Descriptor instead. -func (*GetAllRelaysResponse) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{1} -} - -func (x *GetAllRelaysResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetAllRelaysResponse) GetOpts() []*opts.RelayOptions { - if x != nil { - return x.Opts - } - return nil -} - -type GetRelayRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - RelayId string `protobuf:"bytes,1,opt,name=relay_id,json=relayId,proto3" json:"relay_id,omitempty"` -} - -func (x *GetRelayRequest) Reset() { - *x = GetRelayRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetRelayRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRelayRequest) ProtoMessage() {} - -func (x *GetRelayRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetRelayRequest.ProtoReflect.Descriptor instead. -func (*GetRelayRequest) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{2} -} - -func (x *GetRelayRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *GetRelayRequest) GetRelayId() string { - if x != nil { - return x.RelayId - } - return "" -} - -type GetRelayResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` - // Set only if status is OK - Opts *opts.RelayOptions `protobuf:"bytes,1,opt,name=opts,proto3" json:"opts,omitempty"` -} - -func (x *GetRelayResponse) Reset() { - *x = GetRelayResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetRelayResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRelayResponse) ProtoMessage() {} - -func (x *GetRelayResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetRelayResponse.ProtoReflect.Descriptor instead. -func (*GetRelayResponse) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{3} -} - -func (x *GetRelayResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetRelayResponse) GetOpts() *opts.RelayOptions { - if x != nil { - return x.Opts - } - return nil -} - -type CreateRelayRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - Opts *opts.RelayOptions `protobuf:"bytes,1,opt,name=opts,proto3" json:"opts,omitempty"` -} - -func (x *CreateRelayRequest) Reset() { - *x = CreateRelayRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateRelayRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateRelayRequest) ProtoMessage() {} - -func (x *CreateRelayRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateRelayRequest.ProtoReflect.Descriptor instead. -func (*CreateRelayRequest) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{4} -} - -func (x *CreateRelayRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *CreateRelayRequest) GetOpts() *opts.RelayOptions { - if x != nil { - return x.Opts - } - return nil -} - -type CreateRelayResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` - // ID of the created relay entry - RelayId string `protobuf:"bytes,1,opt,name=relay_id,json=relayId,proto3" json:"relay_id,omitempty"` -} - -func (x *CreateRelayResponse) Reset() { - *x = CreateRelayResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateRelayResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateRelayResponse) ProtoMessage() {} - -func (x *CreateRelayResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateRelayResponse.ProtoReflect.Descriptor instead. -func (*CreateRelayResponse) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{5} -} - -func (x *CreateRelayResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CreateRelayResponse) GetRelayId() string { - if x != nil { - return x.RelayId - } - return "" -} - -// WARNING: Any in-progress relay will be interrupted/restarted -type UpdateRelayRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - RelayId string `protobuf:"bytes,1,opt,name=relay_id,json=relayId,proto3" json:"relay_id,omitempty"` - Opts *opts.RelayOptions `protobuf:"bytes,2,opt,name=opts,proto3" json:"opts,omitempty"` -} - -func (x *UpdateRelayRequest) Reset() { - *x = UpdateRelayRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateRelayRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateRelayRequest) ProtoMessage() {} - -func (x *UpdateRelayRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateRelayRequest.ProtoReflect.Descriptor instead. -func (*UpdateRelayRequest) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{6} -} - -func (x *UpdateRelayRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *UpdateRelayRequest) GetRelayId() string { - if x != nil { - return x.RelayId - } - return "" -} - -func (x *UpdateRelayRequest) GetOpts() *opts.RelayOptions { - if x != nil { - return x.Opts - } - return nil -} - -type UpdateRelayResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *UpdateRelayResponse) Reset() { - *x = UpdateRelayResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateRelayResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateRelayResponse) ProtoMessage() {} - -func (x *UpdateRelayResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateRelayResponse.ProtoReflect.Descriptor instead. -func (*UpdateRelayResponse) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{7} -} - -func (x *UpdateRelayResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -// Resume a paused relay -type ResumeRelayRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - RelayId string `protobuf:"bytes,1,opt,name=relay_id,json=relayId,proto3" json:"relay_id,omitempty"` -} - -func (x *ResumeRelayRequest) Reset() { - *x = ResumeRelayRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResumeRelayRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResumeRelayRequest) ProtoMessage() {} - -func (x *ResumeRelayRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResumeRelayRequest.ProtoReflect.Descriptor instead. -func (*ResumeRelayRequest) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{8} -} - -func (x *ResumeRelayRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *ResumeRelayRequest) GetRelayId() string { - if x != nil { - return x.RelayId - } - return "" -} - -type ResumeRelayResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *ResumeRelayResponse) Reset() { - *x = ResumeRelayResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResumeRelayResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResumeRelayResponse) ProtoMessage() {} - -func (x *ResumeRelayResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResumeRelayResponse.ProtoReflect.Descriptor instead. -func (*ResumeRelayResponse) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{9} -} - -func (x *ResumeRelayResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -// Temporarily stop/pause a relay -type StopRelayRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - RelayId string `protobuf:"bytes,1,opt,name=relay_id,json=relayId,proto3" json:"relay_id,omitempty"` -} - -func (x *StopRelayRequest) Reset() { - *x = StopRelayRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StopRelayRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StopRelayRequest) ProtoMessage() {} - -func (x *StopRelayRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StopRelayRequest.ProtoReflect.Descriptor instead. -func (*StopRelayRequest) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{10} -} - -func (x *StopRelayRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *StopRelayRequest) GetRelayId() string { - if x != nil { - return x.RelayId - } - return "" -} - -type StopRelayResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *StopRelayResponse) Reset() { - *x = StopRelayResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StopRelayResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StopRelayResponse) ProtoMessage() {} - -func (x *StopRelayResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StopRelayResponse.ProtoReflect.Descriptor instead. -func (*StopRelayResponse) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{11} -} - -func (x *StopRelayResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -type DeleteRelayRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - RelayId string `protobuf:"bytes,1,opt,name=relay_id,json=relayId,proto3" json:"relay_id,omitempty"` -} - -func (x *DeleteRelayRequest) Reset() { - *x = DeleteRelayRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteRelayRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteRelayRequest) ProtoMessage() {} - -func (x *DeleteRelayRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteRelayRequest.ProtoReflect.Descriptor instead. -func (*DeleteRelayRequest) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{12} -} - -func (x *DeleteRelayRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *DeleteRelayRequest) GetRelayId() string { - if x != nil { - return x.RelayId - } - return "" -} - -type DeleteRelayResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *DeleteRelayResponse) Reset() { - *x = DeleteRelayResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_relay_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteRelayResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteRelayResponse) ProtoMessage() {} - -func (x *DeleteRelayResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_relay_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteRelayResponse.ProtoReflect.Descriptor instead. -func (*DeleteRelayResponse) Descriptor() ([]byte, []int) { - return file_ps_relay_proto_rawDescGZIP(), []int{13} -} - -func (x *DeleteRelayResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -var File_ps_relay_proto protoreflect.FileDescriptor - -var file_ps_relay_proto_rawDesc = []byte{ - 0x0a, 0x0e, 0x70, 0x73, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x1a, 0x1b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2f, 0x70, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x73, - 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, 0x70, - 0x74, 0x73, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3f, - 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x8f, 0x4e, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x22, - 0x75, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, - 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x22, 0x56, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, - 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, - 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, - 0x75, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x49, 0x64, 0x22, 0x71, - 0x0a, 0x10, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xe8, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, - 0x65, 0x6c, 0x61, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, 0x6f, 0x70, 0x74, - 0x73, 0x22, 0x6d, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, - 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, - 0x68, 0x12, 0x2d, 0x0a, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, - 0x6c, 0x61, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, - 0x22, 0x60, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x65, 0x6c, 0x61, 0x79, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x61, 0x79, - 0x49, 0x64, 0x22, 0x88, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, - 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, - 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, - 0x75, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x49, 0x64, 0x12, 0x2d, - 0x0a, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x22, 0x45, 0x0a, - 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xe8, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x22, 0x59, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, - 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, - 0x74, 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, - 0x61, 0x75, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x49, 0x64, 0x22, - 0x45, 0x0a, 0x13, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x57, 0x0a, 0x10, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, - 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, - 0x74, 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, - 0x61, 0x75, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x49, 0x64, 0x22, - 0x43, 0x0a, 0x11, 0x53, 0x74, 0x6f, 0x70, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xe8, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x22, 0x59, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, - 0x6c, 0x61, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, - 0x74, 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, - 0x61, 0x75, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x49, 0x64, 0x22, - 0x45, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x70, - 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x62, - 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_ps_relay_proto_rawDescOnce sync.Once - file_ps_relay_proto_rawDescData = file_ps_relay_proto_rawDesc -) - -func file_ps_relay_proto_rawDescGZIP() []byte { - file_ps_relay_proto_rawDescOnce.Do(func() { - file_ps_relay_proto_rawDescData = protoimpl.X.CompressGZIP(file_ps_relay_proto_rawDescData) - }) - return file_ps_relay_proto_rawDescData -} - -var file_ps_relay_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_ps_relay_proto_goTypes = []interface{}{ - (*GetAllRelaysRequest)(nil), // 0: protos.GetAllRelaysRequest - (*GetAllRelaysResponse)(nil), // 1: protos.GetAllRelaysResponse - (*GetRelayRequest)(nil), // 2: protos.GetRelayRequest - (*GetRelayResponse)(nil), // 3: protos.GetRelayResponse - (*CreateRelayRequest)(nil), // 4: protos.CreateRelayRequest - (*CreateRelayResponse)(nil), // 5: protos.CreateRelayResponse - (*UpdateRelayRequest)(nil), // 6: protos.UpdateRelayRequest - (*UpdateRelayResponse)(nil), // 7: protos.UpdateRelayResponse - (*ResumeRelayRequest)(nil), // 8: protos.ResumeRelayRequest - (*ResumeRelayResponse)(nil), // 9: protos.ResumeRelayResponse - (*StopRelayRequest)(nil), // 10: protos.StopRelayRequest - (*StopRelayResponse)(nil), // 11: protos.StopRelayResponse - (*DeleteRelayRequest)(nil), // 12: protos.DeleteRelayRequest - (*DeleteRelayResponse)(nil), // 13: protos.DeleteRelayResponse - (*common.Auth)(nil), // 14: protos.common.Auth - (*common.Status)(nil), // 15: protos.common.Status - (*opts.RelayOptions)(nil), // 16: protos.opts.RelayOptions -} -var file_ps_relay_proto_depIdxs = []int32{ - 14, // 0: protos.GetAllRelaysRequest.auth:type_name -> protos.common.Auth - 15, // 1: protos.GetAllRelaysResponse.status:type_name -> protos.common.Status - 16, // 2: protos.GetAllRelaysResponse.opts:type_name -> protos.opts.RelayOptions - 14, // 3: protos.GetRelayRequest.auth:type_name -> protos.common.Auth - 15, // 4: protos.GetRelayResponse.status:type_name -> protos.common.Status - 16, // 5: protos.GetRelayResponse.opts:type_name -> protos.opts.RelayOptions - 14, // 6: protos.CreateRelayRequest.auth:type_name -> protos.common.Auth - 16, // 7: protos.CreateRelayRequest.opts:type_name -> protos.opts.RelayOptions - 15, // 8: protos.CreateRelayResponse.status:type_name -> protos.common.Status - 14, // 9: protos.UpdateRelayRequest.auth:type_name -> protos.common.Auth - 16, // 10: protos.UpdateRelayRequest.opts:type_name -> protos.opts.RelayOptions - 15, // 11: protos.UpdateRelayResponse.status:type_name -> protos.common.Status - 14, // 12: protos.ResumeRelayRequest.auth:type_name -> protos.common.Auth - 15, // 13: protos.ResumeRelayResponse.status:type_name -> protos.common.Status - 14, // 14: protos.StopRelayRequest.auth:type_name -> protos.common.Auth - 15, // 15: protos.StopRelayResponse.status:type_name -> protos.common.Status - 14, // 16: protos.DeleteRelayRequest.auth:type_name -> protos.common.Auth - 15, // 17: protos.DeleteRelayResponse.status:type_name -> protos.common.Status - 18, // [18:18] is the sub-list for method output_type - 18, // [18:18] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name -} - -func init() { file_ps_relay_proto_init() } -func file_ps_relay_proto_init() { - if File_ps_relay_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_ps_relay_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllRelaysRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_relay_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllRelaysResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_relay_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRelayRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_relay_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRelayResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_relay_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRelayRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_relay_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRelayResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_relay_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateRelayRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_relay_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateRelayResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_relay_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeRelayRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_relay_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeRelayResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_relay_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopRelayRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_relay_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopRelayResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_relay_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteRelayRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_relay_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteRelayResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_ps_relay_proto_rawDesc, - NumEnums: 0, - NumMessages: 14, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_ps_relay_proto_goTypes, - DependencyIndexes: file_ps_relay_proto_depIdxs, - MessageInfos: file_ps_relay_proto_msgTypes, - }.Build() - File_ps_relay_proto = out.File - file_ps_relay_proto_rawDesc = nil - file_ps_relay_proto_goTypes = nil - file_ps_relay_proto_depIdxs = nil -} diff --git a/build/go/protos/ps_server.pb.go b/build/go/protos/ps_server.pb.go deleted file mode 100644 index 5293c83..0000000 --- a/build/go/protos/ps_server.pb.go +++ /dev/null @@ -1,223 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: ps_server.proto - -package protos - -import ( - common "github.com/batchcorp/plumber-schemas/build/go/protos/common" - opts "github.com/batchcorp/plumber-schemas/build/go/protos/opts" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 GetServerOptionsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` -} - -func (x *GetServerOptionsRequest) Reset() { - *x = GetServerOptionsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_server_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetServerOptionsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetServerOptionsRequest) ProtoMessage() {} - -func (x *GetServerOptionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_server_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetServerOptionsRequest.ProtoReflect.Descriptor instead. -func (*GetServerOptionsRequest) Descriptor() ([]byte, []int) { - return file_ps_server_proto_rawDescGZIP(), []int{0} -} - -func (x *GetServerOptionsRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -type GetServerOptionsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ServerOptions *opts.ServerOptions `protobuf:"bytes,1,opt,name=server_options,json=serverOptions,proto3" json:"server_options,omitempty"` -} - -func (x *GetServerOptionsResponse) Reset() { - *x = GetServerOptionsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_server_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetServerOptionsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetServerOptionsResponse) ProtoMessage() {} - -func (x *GetServerOptionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_server_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetServerOptionsResponse.ProtoReflect.Descriptor instead. -func (*GetServerOptionsResponse) Descriptor() ([]byte, []int) { - return file_ps_server_proto_rawDescGZIP(), []int{1} -} - -func (x *GetServerOptionsResponse) GetServerOptions() *opts.ServerOptions { - if x != nil { - return x.ServerOptions - } - return nil -} - -var File_ps_server_proto protoreflect.FileDescriptor - -var file_ps_server_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x70, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x1a, 0x1b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2f, 0x70, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x61, 0x75, 0x74, 0x68, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, - 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x43, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, - 0x61, 0x75, 0x74, 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, - 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x22, 0x5d, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x70, 0x6c, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x62, 0x75, - 0x69, 0x6c, 0x64, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_ps_server_proto_rawDescOnce sync.Once - file_ps_server_proto_rawDescData = file_ps_server_proto_rawDesc -) - -func file_ps_server_proto_rawDescGZIP() []byte { - file_ps_server_proto_rawDescOnce.Do(func() { - file_ps_server_proto_rawDescData = protoimpl.X.CompressGZIP(file_ps_server_proto_rawDescData) - }) - return file_ps_server_proto_rawDescData -} - -var file_ps_server_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_ps_server_proto_goTypes = []interface{}{ - (*GetServerOptionsRequest)(nil), // 0: protos.GetServerOptionsRequest - (*GetServerOptionsResponse)(nil), // 1: protos.GetServerOptionsResponse - (*common.Auth)(nil), // 2: protos.common.Auth - (*opts.ServerOptions)(nil), // 3: protos.opts.ServerOptions -} -var file_ps_server_proto_depIdxs = []int32{ - 2, // 0: protos.GetServerOptionsRequest.auth:type_name -> protos.common.Auth - 3, // 1: protos.GetServerOptionsResponse.server_options:type_name -> protos.opts.ServerOptions - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_ps_server_proto_init() } -func file_ps_server_proto_init() { - if File_ps_server_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_ps_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetServerOptionsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_server_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetServerOptionsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_ps_server_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_ps_server_proto_goTypes, - DependencyIndexes: file_ps_server_proto_depIdxs, - MessageInfos: file_ps_server_proto_msgTypes, - }.Build() - File_ps_server_proto = out.File - file_ps_server_proto_rawDesc = nil - file_ps_server_proto_goTypes = nil - file_ps_server_proto_depIdxs = nil -} diff --git a/build/go/protos/ps_tunnel.pb.go b/build/go/protos/ps_tunnel.pb.go deleted file mode 100644 index 422b3f1..0000000 --- a/build/go/protos/ps_tunnel.pb.go +++ /dev/null @@ -1,1126 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.6 -// source: ps_tunnel.proto - -package protos - -import ( - common "github.com/batchcorp/plumber-schemas/build/go/protos/common" - opts "github.com/batchcorp/plumber-schemas/build/go/protos/opts" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 GetAllTunnelsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` -} - -func (x *GetAllTunnelsRequest) Reset() { - *x = GetAllTunnelsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllTunnelsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllTunnelsRequest) ProtoMessage() {} - -func (x *GetAllTunnelsRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllTunnelsRequest.ProtoReflect.Descriptor instead. -func (*GetAllTunnelsRequest) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{0} -} - -func (x *GetAllTunnelsRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -type GetAllTunnelsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` - // Will be set as empty []Tunnel if no tunnels are configured - Opts []*opts.TunnelOptions `protobuf:"bytes,1,rep,name=opts,proto3" json:"opts,omitempty"` -} - -func (x *GetAllTunnelsResponse) Reset() { - *x = GetAllTunnelsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllTunnelsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllTunnelsResponse) ProtoMessage() {} - -func (x *GetAllTunnelsResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllTunnelsResponse.ProtoReflect.Descriptor instead. -func (*GetAllTunnelsResponse) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{1} -} - -func (x *GetAllTunnelsResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetAllTunnelsResponse) GetOpts() []*opts.TunnelOptions { - if x != nil { - return x.Opts - } - return nil -} - -type GetTunnelRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - TunnelId string `protobuf:"bytes,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` -} - -func (x *GetTunnelRequest) Reset() { - *x = GetTunnelRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTunnelRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTunnelRequest) ProtoMessage() {} - -func (x *GetTunnelRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTunnelRequest.ProtoReflect.Descriptor instead. -func (*GetTunnelRequest) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{2} -} - -func (x *GetTunnelRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *GetTunnelRequest) GetTunnelId() string { - if x != nil { - return x.TunnelId - } - return "" -} - -type GetTunnelResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` - // Set only if status is OK - Opts *opts.TunnelOptions `protobuf:"bytes,1,opt,name=opts,proto3" json:"opts,omitempty"` -} - -func (x *GetTunnelResponse) Reset() { - *x = GetTunnelResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTunnelResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTunnelResponse) ProtoMessage() {} - -func (x *GetTunnelResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTunnelResponse.ProtoReflect.Descriptor instead. -func (*GetTunnelResponse) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{3} -} - -func (x *GetTunnelResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *GetTunnelResponse) GetOpts() *opts.TunnelOptions { - if x != nil { - return x.Opts - } - return nil -} - -type CreateTunnelRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - Opts *opts.TunnelOptions `protobuf:"bytes,1,opt,name=opts,proto3" json:"opts,omitempty"` -} - -func (x *CreateTunnelRequest) Reset() { - *x = CreateTunnelRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateTunnelRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateTunnelRequest) ProtoMessage() {} - -func (x *CreateTunnelRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateTunnelRequest.ProtoReflect.Descriptor instead. -func (*CreateTunnelRequest) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{4} -} - -func (x *CreateTunnelRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *CreateTunnelRequest) GetOpts() *opts.TunnelOptions { - if x != nil { - return x.Opts - } - return nil -} - -type CreateTunnelResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` - // ID of the created tunnel entry - TunnelId string `protobuf:"bytes,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` -} - -func (x *CreateTunnelResponse) Reset() { - *x = CreateTunnelResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateTunnelResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateTunnelResponse) ProtoMessage() {} - -func (x *CreateTunnelResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateTunnelResponse.ProtoReflect.Descriptor instead. -func (*CreateTunnelResponse) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{5} -} - -func (x *CreateTunnelResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -func (x *CreateTunnelResponse) GetTunnelId() string { - if x != nil { - return x.TunnelId - } - return "" -} - -// WARNING: Updating a destination that is in-use can result in missing data during replay -type UpdateTunnelRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - TunnelId string `protobuf:"bytes,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` - Opts *opts.TunnelOptions `protobuf:"bytes,2,opt,name=opts,proto3" json:"opts,omitempty"` -} - -func (x *UpdateTunnelRequest) Reset() { - *x = UpdateTunnelRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateTunnelRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateTunnelRequest) ProtoMessage() {} - -func (x *UpdateTunnelRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateTunnelRequest.ProtoReflect.Descriptor instead. -func (*UpdateTunnelRequest) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{6} -} - -func (x *UpdateTunnelRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *UpdateTunnelRequest) GetTunnelId() string { - if x != nil { - return x.TunnelId - } - return "" -} - -func (x *UpdateTunnelRequest) GetOpts() *opts.TunnelOptions { - if x != nil { - return x.Opts - } - return nil -} - -type UpdateTunnelResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *UpdateTunnelResponse) Reset() { - *x = UpdateTunnelResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateTunnelResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateTunnelResponse) ProtoMessage() {} - -func (x *UpdateTunnelResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateTunnelResponse.ProtoReflect.Descriptor instead. -func (*UpdateTunnelResponse) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{7} -} - -func (x *UpdateTunnelResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -// Resume a paused relay -type ResumeTunnelRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - TunnelId string `protobuf:"bytes,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` -} - -func (x *ResumeTunnelRequest) Reset() { - *x = ResumeTunnelRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResumeTunnelRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResumeTunnelRequest) ProtoMessage() {} - -func (x *ResumeTunnelRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResumeTunnelRequest.ProtoReflect.Descriptor instead. -func (*ResumeTunnelRequest) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{8} -} - -func (x *ResumeTunnelRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *ResumeTunnelRequest) GetTunnelId() string { - if x != nil { - return x.TunnelId - } - return "" -} - -type ResumeTunnelResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *ResumeTunnelResponse) Reset() { - *x = ResumeTunnelResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResumeTunnelResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResumeTunnelResponse) ProtoMessage() {} - -func (x *ResumeTunnelResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResumeTunnelResponse.ProtoReflect.Descriptor instead. -func (*ResumeTunnelResponse) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{9} -} - -func (x *ResumeTunnelResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -// Temporarily stop/pause a relay -type StopTunnelRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - TunnelId string `protobuf:"bytes,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` -} - -func (x *StopTunnelRequest) Reset() { - *x = StopTunnelRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StopTunnelRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StopTunnelRequest) ProtoMessage() {} - -func (x *StopTunnelRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StopTunnelRequest.ProtoReflect.Descriptor instead. -func (*StopTunnelRequest) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{10} -} - -func (x *StopTunnelRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *StopTunnelRequest) GetTunnelId() string { - if x != nil { - return x.TunnelId - } - return "" -} - -type StopTunnelResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *StopTunnelResponse) Reset() { - *x = StopTunnelResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StopTunnelResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StopTunnelResponse) ProtoMessage() {} - -func (x *StopTunnelResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StopTunnelResponse.ProtoReflect.Descriptor instead. -func (*StopTunnelResponse) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{11} -} - -func (x *StopTunnelResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -type DeleteTunnelRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Every gRPC request must have a valid auth config - Auth *common.Auth `protobuf:"bytes,9999,opt,name=auth,proto3" json:"auth,omitempty"` - TunnelId string `protobuf:"bytes,1,opt,name=tunnel_id,json=tunnelId,proto3" json:"tunnel_id,omitempty"` -} - -func (x *DeleteTunnelRequest) Reset() { - *x = DeleteTunnelRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteTunnelRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteTunnelRequest) ProtoMessage() {} - -func (x *DeleteTunnelRequest) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteTunnelRequest.ProtoReflect.Descriptor instead. -func (*DeleteTunnelRequest) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{12} -} - -func (x *DeleteTunnelRequest) GetAuth() *common.Auth { - if x != nil { - return x.Auth - } - return nil -} - -func (x *DeleteTunnelRequest) GetTunnelId() string { - if x != nil { - return x.TunnelId - } - return "" -} - -type DeleteTunnelResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *common.Status `protobuf:"bytes,1000,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *DeleteTunnelResponse) Reset() { - *x = DeleteTunnelResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_ps_tunnel_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteTunnelResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteTunnelResponse) ProtoMessage() {} - -func (x *DeleteTunnelResponse) ProtoReflect() protoreflect.Message { - mi := &file_ps_tunnel_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteTunnelResponse.ProtoReflect.Descriptor instead. -func (*DeleteTunnelResponse) Descriptor() ([]byte, []int) { - return file_ps_tunnel_proto_rawDescGZIP(), []int{13} -} - -func (x *DeleteTunnelResponse) GetStatus() *common.Status { - if x != nil { - return x.Status - } - return nil -} - -var File_ps_tunnel_proto protoreflect.FileDescriptor - -var file_ps_tunnel_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x70, 0x73, 0x5f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x1a, 0x1b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2f, 0x70, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x61, 0x75, 0x74, 0x68, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, - 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6f, 0x70, 0x74, 0x73, 0x2f, 0x70, 0x73, 0x5f, 0x6f, - 0x70, 0x74, 0x73, 0x5f, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x40, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, - 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, - 0x74, 0x68, 0x22, 0x77, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x75, 0x6e, 0x6e, - 0x65, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x04, 0x6f, - 0x70, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x22, 0x59, 0x0a, 0x10, 0x47, - 0x65, 0x74, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, - 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x75, 0x6e, - 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x22, 0x73, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x54, 0x75, 0x6e, - 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x04, 0x6f, - 0x70, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x22, 0x6f, 0x0a, 0x13, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, 0x2e, 0x0a, 0x04, - 0x6f, 0x70, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x22, 0x63, 0x0a, 0x14, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xe8, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, - 0x64, 0x22, 0x8c, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, - 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, - 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, - 0x75, 0x74, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, - 0x12, 0x2e, 0x0a, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x54, 0x75, 0x6e, - 0x6e, 0x65, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, - 0x22, 0x46, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x5c, 0x0a, 0x13, 0x52, 0x65, 0x73, 0x75, - 0x6d, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, - 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x75, 0x6e, - 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x22, 0x46, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x65, - 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x5a, - 0x0a, 0x11, 0x53, 0x74, 0x6f, 0x70, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, 0x8f, 0x4e, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, 0x1b, 0x0a, - 0x09, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x22, 0x44, 0x0a, 0x12, 0x53, 0x74, - 0x6f, 0x70, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x22, 0x5c, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x68, 0x18, - 0x8f, 0x4e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x61, 0x75, 0x74, - 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x22, 0x46, - 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x70, - 0x6c, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x2f, 0x62, - 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_ps_tunnel_proto_rawDescOnce sync.Once - file_ps_tunnel_proto_rawDescData = file_ps_tunnel_proto_rawDesc -) - -func file_ps_tunnel_proto_rawDescGZIP() []byte { - file_ps_tunnel_proto_rawDescOnce.Do(func() { - file_ps_tunnel_proto_rawDescData = protoimpl.X.CompressGZIP(file_ps_tunnel_proto_rawDescData) - }) - return file_ps_tunnel_proto_rawDescData -} - -var file_ps_tunnel_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_ps_tunnel_proto_goTypes = []interface{}{ - (*GetAllTunnelsRequest)(nil), // 0: protos.GetAllTunnelsRequest - (*GetAllTunnelsResponse)(nil), // 1: protos.GetAllTunnelsResponse - (*GetTunnelRequest)(nil), // 2: protos.GetTunnelRequest - (*GetTunnelResponse)(nil), // 3: protos.GetTunnelResponse - (*CreateTunnelRequest)(nil), // 4: protos.CreateTunnelRequest - (*CreateTunnelResponse)(nil), // 5: protos.CreateTunnelResponse - (*UpdateTunnelRequest)(nil), // 6: protos.UpdateTunnelRequest - (*UpdateTunnelResponse)(nil), // 7: protos.UpdateTunnelResponse - (*ResumeTunnelRequest)(nil), // 8: protos.ResumeTunnelRequest - (*ResumeTunnelResponse)(nil), // 9: protos.ResumeTunnelResponse - (*StopTunnelRequest)(nil), // 10: protos.StopTunnelRequest - (*StopTunnelResponse)(nil), // 11: protos.StopTunnelResponse - (*DeleteTunnelRequest)(nil), // 12: protos.DeleteTunnelRequest - (*DeleteTunnelResponse)(nil), // 13: protos.DeleteTunnelResponse - (*common.Auth)(nil), // 14: protos.common.Auth - (*common.Status)(nil), // 15: protos.common.Status - (*opts.TunnelOptions)(nil), // 16: protos.opts.TunnelOptions -} -var file_ps_tunnel_proto_depIdxs = []int32{ - 14, // 0: protos.GetAllTunnelsRequest.auth:type_name -> protos.common.Auth - 15, // 1: protos.GetAllTunnelsResponse.status:type_name -> protos.common.Status - 16, // 2: protos.GetAllTunnelsResponse.opts:type_name -> protos.opts.TunnelOptions - 14, // 3: protos.GetTunnelRequest.auth:type_name -> protos.common.Auth - 15, // 4: protos.GetTunnelResponse.status:type_name -> protos.common.Status - 16, // 5: protos.GetTunnelResponse.opts:type_name -> protos.opts.TunnelOptions - 14, // 6: protos.CreateTunnelRequest.auth:type_name -> protos.common.Auth - 16, // 7: protos.CreateTunnelRequest.opts:type_name -> protos.opts.TunnelOptions - 15, // 8: protos.CreateTunnelResponse.status:type_name -> protos.common.Status - 14, // 9: protos.UpdateTunnelRequest.auth:type_name -> protos.common.Auth - 16, // 10: protos.UpdateTunnelRequest.opts:type_name -> protos.opts.TunnelOptions - 15, // 11: protos.UpdateTunnelResponse.status:type_name -> protos.common.Status - 14, // 12: protos.ResumeTunnelRequest.auth:type_name -> protos.common.Auth - 15, // 13: protos.ResumeTunnelResponse.status:type_name -> protos.common.Status - 14, // 14: protos.StopTunnelRequest.auth:type_name -> protos.common.Auth - 15, // 15: protos.StopTunnelResponse.status:type_name -> protos.common.Status - 14, // 16: protos.DeleteTunnelRequest.auth:type_name -> protos.common.Auth - 15, // 17: protos.DeleteTunnelResponse.status:type_name -> protos.common.Status - 18, // [18:18] is the sub-list for method output_type - 18, // [18:18] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name -} - -func init() { file_ps_tunnel_proto_init() } -func file_ps_tunnel_proto_init() { - if File_ps_tunnel_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_ps_tunnel_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllTunnelsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_tunnel_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllTunnelsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_tunnel_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTunnelRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_tunnel_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTunnelResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_tunnel_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTunnelRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_tunnel_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTunnelResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_tunnel_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTunnelRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_tunnel_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTunnelResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_tunnel_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeTunnelRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_tunnel_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResumeTunnelResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_tunnel_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopTunnelRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_tunnel_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopTunnelResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_tunnel_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTunnelRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_ps_tunnel_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTunnelResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_ps_tunnel_proto_rawDesc, - NumEnums: 0, - NumMessages: 14, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_ps_tunnel_proto_goTypes, - DependencyIndexes: file_ps_tunnel_proto_depIdxs, - MessageInfos: file_ps_tunnel_proto_msgTypes, - }.Build() - File_ps_tunnel_proto = out.File - file_ps_tunnel_proto_rawDesc = nil - file_ps_tunnel_proto_goTypes = nil - file_ps_tunnel_proto_depIdxs = nil -} diff --git a/build/ts/plumber-schemas.d.ts b/build/ts/plumber-schemas.d.ts index 833a1b5..d2687bb 100644 --- a/build/ts/plumber-schemas.d.ts +++ b/build/ts/plumber-schemas.d.ts @@ -2,26434 +2,14488 @@ import * as $protobuf from "protobufjs"; /** Namespace protos. */ export namespace protos { - /** Represents a PlumberServer */ - class PlumberServer extends $protobuf.rpc.Service { - - /** - * Constructs a new PlumberServer service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new PlumberServer service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PlumberServer; - - /** - * Calls GetAllConnections. - * @param request GetAllConnectionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetAllConnectionsResponse - */ - public getAllConnections(request: protos.IGetAllConnectionsRequest, callback: protos.PlumberServer.GetAllConnectionsCallback): void; - - /** - * Calls GetAllConnections. - * @param request GetAllConnectionsRequest message or plain object - * @returns Promise - */ - public getAllConnections(request: protos.IGetAllConnectionsRequest): Promise; - - /** - * Calls GetConnection. - * @param request GetConnectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetConnectionResponse - */ - public getConnection(request: protos.IGetConnectionRequest, callback: protos.PlumberServer.GetConnectionCallback): void; - - /** - * Calls GetConnection. - * @param request GetConnectionRequest message or plain object - * @returns Promise - */ - public getConnection(request: protos.IGetConnectionRequest): Promise; - - /** - * Calls CreateConnection. - * @param request CreateConnectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateConnectionResponse - */ - public createConnection(request: protos.ICreateConnectionRequest, callback: protos.PlumberServer.CreateConnectionCallback): void; - - /** - * Calls CreateConnection. - * @param request CreateConnectionRequest message or plain object - * @returns Promise - */ - public createConnection(request: protos.ICreateConnectionRequest): Promise; - - /** - * Calls TestConnection. - * @param request TestConnectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestConnectionResponse - */ - public testConnection(request: protos.ITestConnectionRequest, callback: protos.PlumberServer.TestConnectionCallback): void; - - /** - * Calls TestConnection. - * @param request TestConnectionRequest message or plain object - * @returns Promise - */ - public testConnection(request: protos.ITestConnectionRequest): Promise; - - /** - * Calls UpdateConnection. - * @param request UpdateConnectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and UpdateConnectionResponse - */ - public updateConnection(request: protos.IUpdateConnectionRequest, callback: protos.PlumberServer.UpdateConnectionCallback): void; - - /** - * Calls UpdateConnection. - * @param request UpdateConnectionRequest message or plain object - * @returns Promise - */ - public updateConnection(request: protos.IUpdateConnectionRequest): Promise; - - /** - * Calls DeleteConnection. - * @param request DeleteConnectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DeleteConnectionResponse - */ - public deleteConnection(request: protos.IDeleteConnectionRequest, callback: protos.PlumberServer.DeleteConnectionCallback): void; - - /** - * Calls DeleteConnection. - * @param request DeleteConnectionRequest message or plain object - * @returns Promise - */ - public deleteConnection(request: protos.IDeleteConnectionRequest): Promise; - - /** - * Calls GetAllRelays. - * @param request GetAllRelaysRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetAllRelaysResponse - */ - public getAllRelays(request: protos.IGetAllRelaysRequest, callback: protos.PlumberServer.GetAllRelaysCallback): void; - - /** - * Calls GetAllRelays. - * @param request GetAllRelaysRequest message or plain object - * @returns Promise - */ - public getAllRelays(request: protos.IGetAllRelaysRequest): Promise; - - /** - * Calls GetRelay. - * @param request GetRelayRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetRelayResponse - */ - public getRelay(request: protos.IGetRelayRequest, callback: protos.PlumberServer.GetRelayCallback): void; - - /** - * Calls GetRelay. - * @param request GetRelayRequest message or plain object - * @returns Promise - */ - public getRelay(request: protos.IGetRelayRequest): Promise; - - /** - * Calls CreateRelay. - * @param request CreateRelayRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateRelayResponse - */ - public createRelay(request: protos.ICreateRelayRequest, callback: protos.PlumberServer.CreateRelayCallback): void; - - /** - * Calls CreateRelay. - * @param request CreateRelayRequest message or plain object - * @returns Promise - */ - public createRelay(request: protos.ICreateRelayRequest): Promise; - - /** - * Calls UpdateRelay. - * @param request UpdateRelayRequest message or plain object - * @param callback Node-style callback called with the error, if any, and UpdateRelayResponse - */ - public updateRelay(request: protos.IUpdateRelayRequest, callback: protos.PlumberServer.UpdateRelayCallback): void; - - /** - * Calls UpdateRelay. - * @param request UpdateRelayRequest message or plain object - * @returns Promise - */ - public updateRelay(request: protos.IUpdateRelayRequest): Promise; - - /** - * Calls ResumeRelay. - * @param request ResumeRelayRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ResumeRelayResponse - */ - public resumeRelay(request: protos.IResumeRelayRequest, callback: protos.PlumberServer.ResumeRelayCallback): void; - - /** - * Calls ResumeRelay. - * @param request ResumeRelayRequest message or plain object - * @returns Promise - */ - public resumeRelay(request: protos.IResumeRelayRequest): Promise; - - /** - * Calls StopRelay. - * @param request StopRelayRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StopRelayResponse - */ - public stopRelay(request: protos.IStopRelayRequest, callback: protos.PlumberServer.StopRelayCallback): void; - - /** - * Calls StopRelay. - * @param request StopRelayRequest message or plain object - * @returns Promise - */ - public stopRelay(request: protos.IStopRelayRequest): Promise; - - /** - * Calls DeleteRelay. - * @param request DeleteRelayRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DeleteRelayResponse - */ - public deleteRelay(request: protos.IDeleteRelayRequest, callback: protos.PlumberServer.DeleteRelayCallback): void; - - /** - * Calls DeleteRelay. - * @param request DeleteRelayRequest message or plain object - * @returns Promise - */ - public deleteRelay(request: protos.IDeleteRelayRequest): Promise; - - /** - * Calls GetTunnel. - * @param request GetTunnelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetTunnelResponse - */ - public getTunnel(request: protos.IGetTunnelRequest, callback: protos.PlumberServer.GetTunnelCallback): void; - - /** - * Calls GetTunnel. - * @param request GetTunnelRequest message or plain object - * @returns Promise - */ - public getTunnel(request: protos.IGetTunnelRequest): Promise; - - /** - * Calls GetAllTunnels. - * @param request GetAllTunnelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetAllTunnelsResponse - */ - public getAllTunnels(request: protos.IGetAllTunnelsRequest, callback: protos.PlumberServer.GetAllTunnelsCallback): void; - - /** - * Calls GetAllTunnels. - * @param request GetAllTunnelsRequest message or plain object - * @returns Promise - */ - public getAllTunnels(request: protos.IGetAllTunnelsRequest): Promise; - - /** - * Calls CreateTunnel. - * @param request CreateTunnelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateTunnelResponse - */ - public createTunnel(request: protos.ICreateTunnelRequest, callback: protos.PlumberServer.CreateTunnelCallback): void; - - /** - * Calls CreateTunnel. - * @param request CreateTunnelRequest message or plain object - * @returns Promise - */ - public createTunnel(request: protos.ICreateTunnelRequest): Promise; - - /** - * Calls StopTunnel. - * @param request StopTunnelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StopTunnelResponse - */ - public stopTunnel(request: protos.IStopTunnelRequest, callback: protos.PlumberServer.StopTunnelCallback): void; - - /** - * Calls StopTunnel. - * @param request StopTunnelRequest message or plain object - * @returns Promise - */ - public stopTunnel(request: protos.IStopTunnelRequest): Promise; - - /** - * Calls ResumeTunnel. - * @param request ResumeTunnelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ResumeTunnelResponse - */ - public resumeTunnel(request: protos.IResumeTunnelRequest, callback: protos.PlumberServer.ResumeTunnelCallback): void; - - /** - * Calls ResumeTunnel. - * @param request ResumeTunnelRequest message or plain object - * @returns Promise - */ - public resumeTunnel(request: protos.IResumeTunnelRequest): Promise; - - /** - * Calls UpdateTunnel. - * @param request UpdateTunnelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and UpdateTunnelResponse - */ - public updateTunnel(request: protos.IUpdateTunnelRequest, callback: protos.PlumberServer.UpdateTunnelCallback): void; - - /** - * Calls UpdateTunnel. - * @param request UpdateTunnelRequest message or plain object - * @returns Promise - */ - public updateTunnel(request: protos.IUpdateTunnelRequest): Promise; - - /** - * Calls DeleteTunnel. - * @param request DeleteTunnelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DeleteTunnelResponse - */ - public deleteTunnel(request: protos.IDeleteTunnelRequest, callback: protos.PlumberServer.DeleteTunnelCallback): void; - - /** - * Calls DeleteTunnel. - * @param request DeleteTunnelRequest message or plain object - * @returns Promise - */ - public deleteTunnel(request: protos.IDeleteTunnelRequest): Promise; - - /** - * Calls GetServerOptions. - * @param request GetServerOptionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetServerOptionsResponse - */ - public getServerOptions(request: protos.IGetServerOptionsRequest, callback: protos.PlumberServer.GetServerOptionsCallback): void; - - /** - * Calls GetServerOptions. - * @param request GetServerOptionsRequest message or plain object - * @returns Promise - */ - public getServerOptions(request: protos.IGetServerOptionsRequest): Promise; - } - - namespace PlumberServer { - - /** - * Callback as used by {@link protos.PlumberServer#getAllConnections}. - * @param error Error, if any - * @param [response] GetAllConnectionsResponse - */ - type GetAllConnectionsCallback = (error: (Error|null), response?: protos.GetAllConnectionsResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#getConnection}. - * @param error Error, if any - * @param [response] GetConnectionResponse - */ - type GetConnectionCallback = (error: (Error|null), response?: protos.GetConnectionResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#createConnection}. - * @param error Error, if any - * @param [response] CreateConnectionResponse - */ - type CreateConnectionCallback = (error: (Error|null), response?: protos.CreateConnectionResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#testConnection}. - * @param error Error, if any - * @param [response] TestConnectionResponse - */ - type TestConnectionCallback = (error: (Error|null), response?: protos.TestConnectionResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#updateConnection}. - * @param error Error, if any - * @param [response] UpdateConnectionResponse - */ - type UpdateConnectionCallback = (error: (Error|null), response?: protos.UpdateConnectionResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#deleteConnection}. - * @param error Error, if any - * @param [response] DeleteConnectionResponse - */ - type DeleteConnectionCallback = (error: (Error|null), response?: protos.DeleteConnectionResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#getAllRelays}. - * @param error Error, if any - * @param [response] GetAllRelaysResponse - */ - type GetAllRelaysCallback = (error: (Error|null), response?: protos.GetAllRelaysResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#getRelay}. - * @param error Error, if any - * @param [response] GetRelayResponse - */ - type GetRelayCallback = (error: (Error|null), response?: protos.GetRelayResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#createRelay}. - * @param error Error, if any - * @param [response] CreateRelayResponse - */ - type CreateRelayCallback = (error: (Error|null), response?: protos.CreateRelayResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#updateRelay}. - * @param error Error, if any - * @param [response] UpdateRelayResponse - */ - type UpdateRelayCallback = (error: (Error|null), response?: protos.UpdateRelayResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#resumeRelay}. - * @param error Error, if any - * @param [response] ResumeRelayResponse - */ - type ResumeRelayCallback = (error: (Error|null), response?: protos.ResumeRelayResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#stopRelay}. - * @param error Error, if any - * @param [response] StopRelayResponse - */ - type StopRelayCallback = (error: (Error|null), response?: protos.StopRelayResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#deleteRelay}. - * @param error Error, if any - * @param [response] DeleteRelayResponse - */ - type DeleteRelayCallback = (error: (Error|null), response?: protos.DeleteRelayResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#getTunnel}. - * @param error Error, if any - * @param [response] GetTunnelResponse - */ - type GetTunnelCallback = (error: (Error|null), response?: protos.GetTunnelResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#getAllTunnels}. - * @param error Error, if any - * @param [response] GetAllTunnelsResponse - */ - type GetAllTunnelsCallback = (error: (Error|null), response?: protos.GetAllTunnelsResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#createTunnel}. - * @param error Error, if any - * @param [response] CreateTunnelResponse - */ - type CreateTunnelCallback = (error: (Error|null), response?: protos.CreateTunnelResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#stopTunnel}. - * @param error Error, if any - * @param [response] StopTunnelResponse - */ - type StopTunnelCallback = (error: (Error|null), response?: protos.StopTunnelResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#resumeTunnel}. - * @param error Error, if any - * @param [response] ResumeTunnelResponse - */ - type ResumeTunnelCallback = (error: (Error|null), response?: protos.ResumeTunnelResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#updateTunnel}. - * @param error Error, if any - * @param [response] UpdateTunnelResponse - */ - type UpdateTunnelCallback = (error: (Error|null), response?: protos.UpdateTunnelResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#deleteTunnel}. - * @param error Error, if any - * @param [response] DeleteTunnelResponse - */ - type DeleteTunnelCallback = (error: (Error|null), response?: protos.DeleteTunnelResponse) => void; - - /** - * Callback as used by {@link protos.PlumberServer#getServerOptions}. - * @param error Error, if any - * @param [response] GetServerOptionsResponse - */ - type GetServerOptionsCallback = (error: (Error|null), response?: protos.GetServerOptionsResponse) => void; - } - - /** Properties of a GetAllConnectionsRequest. */ - interface IGetAllConnectionsRequest { - - /** GetAllConnectionsRequest auth */ - auth?: (protos.common.IAuth|null); - } - - /** Represents a GetAllConnectionsRequest. */ - class GetAllConnectionsRequest implements IGetAllConnectionsRequest { - - /** - * Constructs a new GetAllConnectionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetAllConnectionsRequest); - - /** GetAllConnectionsRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** - * Creates a new GetAllConnectionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAllConnectionsRequest instance - */ - public static create(properties?: protos.IGetAllConnectionsRequest): protos.GetAllConnectionsRequest; - - /** - * Encodes the specified GetAllConnectionsRequest message. Does not implicitly {@link protos.GetAllConnectionsRequest.verify|verify} messages. - * @param message GetAllConnectionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetAllConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetAllConnectionsRequest message, length delimited. Does not implicitly {@link protos.GetAllConnectionsRequest.verify|verify} messages. - * @param message GetAllConnectionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetAllConnectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAllConnectionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAllConnectionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetAllConnectionsRequest; - - /** - * Decodes a GetAllConnectionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAllConnectionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetAllConnectionsRequest; - - /** - * Verifies a GetAllConnectionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetAllConnectionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetAllConnectionsRequest - */ - public static fromObject(object: { [k: string]: any }): protos.GetAllConnectionsRequest; - - /** - * Creates a plain object from a GetAllConnectionsRequest message. Also converts values to other types if specified. - * @param message GetAllConnectionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetAllConnectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetAllConnectionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetAllConnectionsResponse. */ - interface IGetAllConnectionsResponse { - - /** GetAllConnectionsResponse options */ - options?: (protos.opts.IConnectionOptions[]|null); - } - - /** Represents a GetAllConnectionsResponse. */ - class GetAllConnectionsResponse implements IGetAllConnectionsResponse { - - /** - * Constructs a new GetAllConnectionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetAllConnectionsResponse); - - /** GetAllConnectionsResponse options. */ - public options: protos.opts.IConnectionOptions[]; - - /** - * Creates a new GetAllConnectionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAllConnectionsResponse instance - */ - public static create(properties?: protos.IGetAllConnectionsResponse): protos.GetAllConnectionsResponse; - - /** - * Encodes the specified GetAllConnectionsResponse message. Does not implicitly {@link protos.GetAllConnectionsResponse.verify|verify} messages. - * @param message GetAllConnectionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetAllConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetAllConnectionsResponse message, length delimited. Does not implicitly {@link protos.GetAllConnectionsResponse.verify|verify} messages. - * @param message GetAllConnectionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetAllConnectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAllConnectionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAllConnectionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetAllConnectionsResponse; - - /** - * Decodes a GetAllConnectionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAllConnectionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetAllConnectionsResponse; - - /** - * Verifies a GetAllConnectionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetAllConnectionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetAllConnectionsResponse - */ - public static fromObject(object: { [k: string]: any }): protos.GetAllConnectionsResponse; - - /** - * Creates a plain object from a GetAllConnectionsResponse message. Also converts values to other types if specified. - * @param message GetAllConnectionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetAllConnectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetAllConnectionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetConnectionRequest. */ - interface IGetConnectionRequest { - - /** GetConnectionRequest auth */ - auth?: (protos.common.IAuth|null); - - /** GetConnectionRequest connectionId */ - connectionId?: (string|null); - } - - /** Represents a GetConnectionRequest. */ - class GetConnectionRequest implements IGetConnectionRequest { - - /** - * Constructs a new GetConnectionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetConnectionRequest); - - /** GetConnectionRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** GetConnectionRequest connectionId. */ - public connectionId: string; - - /** - * Creates a new GetConnectionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetConnectionRequest instance - */ - public static create(properties?: protos.IGetConnectionRequest): protos.GetConnectionRequest; - - /** - * Encodes the specified GetConnectionRequest message. Does not implicitly {@link protos.GetConnectionRequest.verify|verify} messages. - * @param message GetConnectionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetConnectionRequest message, length delimited. Does not implicitly {@link protos.GetConnectionRequest.verify|verify} messages. - * @param message GetConnectionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetConnectionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetConnectionRequest; - - /** - * Decodes a GetConnectionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetConnectionRequest; - - /** - * Verifies a GetConnectionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetConnectionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetConnectionRequest - */ - public static fromObject(object: { [k: string]: any }): protos.GetConnectionRequest; - - /** - * Creates a plain object from a GetConnectionRequest message. Also converts values to other types if specified. - * @param message GetConnectionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetConnectionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetConnectionResponse. */ - interface IGetConnectionResponse { - - /** GetConnectionResponse options */ - options?: (protos.opts.IConnectionOptions|null); - } - - /** Represents a GetConnectionResponse. */ - class GetConnectionResponse implements IGetConnectionResponse { - - /** - * Constructs a new GetConnectionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetConnectionResponse); - - /** GetConnectionResponse options. */ - public options?: (protos.opts.IConnectionOptions|null); - - /** - * Creates a new GetConnectionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetConnectionResponse instance - */ - public static create(properties?: protos.IGetConnectionResponse): protos.GetConnectionResponse; - - /** - * Encodes the specified GetConnectionResponse message. Does not implicitly {@link protos.GetConnectionResponse.verify|verify} messages. - * @param message GetConnectionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetConnectionResponse message, length delimited. Does not implicitly {@link protos.GetConnectionResponse.verify|verify} messages. - * @param message GetConnectionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetConnectionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetConnectionResponse; - - /** - * Decodes a GetConnectionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetConnectionResponse; - - /** - * Verifies a GetConnectionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetConnectionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetConnectionResponse - */ - public static fromObject(object: { [k: string]: any }): protos.GetConnectionResponse; - - /** - * Creates a plain object from a GetConnectionResponse message. Also converts values to other types if specified. - * @param message GetConnectionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetConnectionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetConnectionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CreateConnectionRequest. */ - interface ICreateConnectionRequest { - - /** CreateConnectionRequest auth */ - auth?: (protos.common.IAuth|null); - - /** CreateConnectionRequest options */ - options?: (protos.opts.IConnectionOptions|null); - } - - /** Represents a CreateConnectionRequest. */ - class CreateConnectionRequest implements ICreateConnectionRequest { - - /** - * Constructs a new CreateConnectionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.ICreateConnectionRequest); - - /** CreateConnectionRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** CreateConnectionRequest options. */ - public options?: (protos.opts.IConnectionOptions|null); - - /** - * Creates a new CreateConnectionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateConnectionRequest instance - */ - public static create(properties?: protos.ICreateConnectionRequest): protos.CreateConnectionRequest; - - /** - * Encodes the specified CreateConnectionRequest message. Does not implicitly {@link protos.CreateConnectionRequest.verify|verify} messages. - * @param message CreateConnectionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.ICreateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateConnectionRequest message, length delimited. Does not implicitly {@link protos.CreateConnectionRequest.verify|verify} messages. - * @param message CreateConnectionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.ICreateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateConnectionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.CreateConnectionRequest; - - /** - * Decodes a CreateConnectionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.CreateConnectionRequest; - - /** - * Verifies a CreateConnectionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateConnectionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateConnectionRequest - */ - public static fromObject(object: { [k: string]: any }): protos.CreateConnectionRequest; - - /** - * Creates a plain object from a CreateConnectionRequest message. Also converts values to other types if specified. - * @param message CreateConnectionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.CreateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateConnectionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CreateConnectionResponse. */ - interface ICreateConnectionResponse { - - /** CreateConnectionResponse connectionId */ - connectionId?: (string|null); - } - - /** Represents a CreateConnectionResponse. */ - class CreateConnectionResponse implements ICreateConnectionResponse { - - /** - * Constructs a new CreateConnectionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.ICreateConnectionResponse); - - /** CreateConnectionResponse connectionId. */ - public connectionId: string; - - /** - * Creates a new CreateConnectionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateConnectionResponse instance - */ - public static create(properties?: protos.ICreateConnectionResponse): protos.CreateConnectionResponse; - - /** - * Encodes the specified CreateConnectionResponse message. Does not implicitly {@link protos.CreateConnectionResponse.verify|verify} messages. - * @param message CreateConnectionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.ICreateConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateConnectionResponse message, length delimited. Does not implicitly {@link protos.CreateConnectionResponse.verify|verify} messages. - * @param message CreateConnectionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.ICreateConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateConnectionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.CreateConnectionResponse; - - /** - * Decodes a CreateConnectionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.CreateConnectionResponse; - - /** - * Verifies a CreateConnectionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateConnectionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateConnectionResponse - */ - public static fromObject(object: { [k: string]: any }): protos.CreateConnectionResponse; - - /** - * Creates a plain object from a CreateConnectionResponse message. Also converts values to other types if specified. - * @param message CreateConnectionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.CreateConnectionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateConnectionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a TestConnectionRequest. */ - interface ITestConnectionRequest { - - /** TestConnectionRequest auth */ - auth?: (protos.common.IAuth|null); - - /** TestConnectionRequest options */ - options?: (protos.opts.IConnectionOptions|null); - } - - /** Represents a TestConnectionRequest. */ - class TestConnectionRequest implements ITestConnectionRequest { - - /** - * Constructs a new TestConnectionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.ITestConnectionRequest); - - /** TestConnectionRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** TestConnectionRequest options. */ - public options?: (protos.opts.IConnectionOptions|null); - - /** - * Creates a new TestConnectionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TestConnectionRequest instance - */ - public static create(properties?: protos.ITestConnectionRequest): protos.TestConnectionRequest; - - /** - * Encodes the specified TestConnectionRequest message. Does not implicitly {@link protos.TestConnectionRequest.verify|verify} messages. - * @param message TestConnectionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.ITestConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TestConnectionRequest message, length delimited. Does not implicitly {@link protos.TestConnectionRequest.verify|verify} messages. - * @param message TestConnectionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.ITestConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TestConnectionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TestConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.TestConnectionRequest; - - /** - * Decodes a TestConnectionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TestConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.TestConnectionRequest; - - /** - * Verifies a TestConnectionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TestConnectionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TestConnectionRequest - */ - public static fromObject(object: { [k: string]: any }): protos.TestConnectionRequest; - - /** - * Creates a plain object from a TestConnectionRequest message. Also converts values to other types if specified. - * @param message TestConnectionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.TestConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TestConnectionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a TestConnectionResponse. */ - interface ITestConnectionResponse { - - /** TestConnectionResponse status */ - status?: (protos.common.IStatus|null); - } - - /** Represents a TestConnectionResponse. */ - class TestConnectionResponse implements ITestConnectionResponse { - - /** - * Constructs a new TestConnectionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.ITestConnectionResponse); - - /** TestConnectionResponse status. */ - public status?: (protos.common.IStatus|null); - - /** - * Creates a new TestConnectionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TestConnectionResponse instance - */ - public static create(properties?: protos.ITestConnectionResponse): protos.TestConnectionResponse; - - /** - * Encodes the specified TestConnectionResponse message. Does not implicitly {@link protos.TestConnectionResponse.verify|verify} messages. - * @param message TestConnectionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.ITestConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TestConnectionResponse message, length delimited. Does not implicitly {@link protos.TestConnectionResponse.verify|verify} messages. - * @param message TestConnectionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.ITestConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TestConnectionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TestConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.TestConnectionResponse; - - /** - * Decodes a TestConnectionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TestConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.TestConnectionResponse; - - /** - * Verifies a TestConnectionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TestConnectionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TestConnectionResponse - */ - public static fromObject(object: { [k: string]: any }): protos.TestConnectionResponse; - - /** - * Creates a plain object from a TestConnectionResponse message. Also converts values to other types if specified. - * @param message TestConnectionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.TestConnectionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TestConnectionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UpdateConnectionRequest. */ - interface IUpdateConnectionRequest { - - /** UpdateConnectionRequest auth */ - auth?: (protos.common.IAuth|null); - - /** UpdateConnectionRequest connectionId */ - connectionId?: (string|null); - - /** UpdateConnectionRequest options */ - options?: (protos.opts.IConnectionOptions|null); - } - - /** Represents an UpdateConnectionRequest. */ - class UpdateConnectionRequest implements IUpdateConnectionRequest { - - /** - * Constructs a new UpdateConnectionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IUpdateConnectionRequest); - - /** UpdateConnectionRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** UpdateConnectionRequest connectionId. */ - public connectionId: string; - - /** UpdateConnectionRequest options. */ - public options?: (protos.opts.IConnectionOptions|null); - - /** - * Creates a new UpdateConnectionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateConnectionRequest instance - */ - public static create(properties?: protos.IUpdateConnectionRequest): protos.UpdateConnectionRequest; - - /** - * Encodes the specified UpdateConnectionRequest message. Does not implicitly {@link protos.UpdateConnectionRequest.verify|verify} messages. - * @param message UpdateConnectionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IUpdateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateConnectionRequest message, length delimited. Does not implicitly {@link protos.UpdateConnectionRequest.verify|verify} messages. - * @param message UpdateConnectionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IUpdateConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateConnectionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.UpdateConnectionRequest; - - /** - * Decodes an UpdateConnectionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.UpdateConnectionRequest; - - /** - * Verifies an UpdateConnectionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateConnectionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateConnectionRequest - */ - public static fromObject(object: { [k: string]: any }): protos.UpdateConnectionRequest; - - /** - * Creates a plain object from an UpdateConnectionRequest message. Also converts values to other types if specified. - * @param message UpdateConnectionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.UpdateConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateConnectionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UpdateConnectionResponse. */ - interface IUpdateConnectionResponse { - - /** UpdateConnectionResponse status */ - status?: (protos.common.IStatus|null); - } - - /** Represents an UpdateConnectionResponse. */ - class UpdateConnectionResponse implements IUpdateConnectionResponse { - - /** - * Constructs a new UpdateConnectionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IUpdateConnectionResponse); - - /** UpdateConnectionResponse status. */ - public status?: (protos.common.IStatus|null); - - /** - * Creates a new UpdateConnectionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateConnectionResponse instance - */ - public static create(properties?: protos.IUpdateConnectionResponse): protos.UpdateConnectionResponse; - - /** - * Encodes the specified UpdateConnectionResponse message. Does not implicitly {@link protos.UpdateConnectionResponse.verify|verify} messages. - * @param message UpdateConnectionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IUpdateConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateConnectionResponse message, length delimited. Does not implicitly {@link protos.UpdateConnectionResponse.verify|verify} messages. - * @param message UpdateConnectionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IUpdateConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateConnectionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.UpdateConnectionResponse; - - /** - * Decodes an UpdateConnectionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.UpdateConnectionResponse; - - /** - * Verifies an UpdateConnectionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateConnectionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateConnectionResponse - */ - public static fromObject(object: { [k: string]: any }): protos.UpdateConnectionResponse; - - /** - * Creates a plain object from an UpdateConnectionResponse message. Also converts values to other types if specified. - * @param message UpdateConnectionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.UpdateConnectionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateConnectionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DeleteConnectionRequest. */ - interface IDeleteConnectionRequest { - - /** DeleteConnectionRequest auth */ - auth?: (protos.common.IAuth|null); - - /** DeleteConnectionRequest connectionId */ - connectionId?: (string|null); - } - - /** Represents a DeleteConnectionRequest. */ - class DeleteConnectionRequest implements IDeleteConnectionRequest { - - /** - * Constructs a new DeleteConnectionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IDeleteConnectionRequest); - - /** DeleteConnectionRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** DeleteConnectionRequest connectionId. */ - public connectionId: string; - - /** - * Creates a new DeleteConnectionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteConnectionRequest instance - */ - public static create(properties?: protos.IDeleteConnectionRequest): protos.DeleteConnectionRequest; - - /** - * Encodes the specified DeleteConnectionRequest message. Does not implicitly {@link protos.DeleteConnectionRequest.verify|verify} messages. - * @param message DeleteConnectionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IDeleteConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteConnectionRequest message, length delimited. Does not implicitly {@link protos.DeleteConnectionRequest.verify|verify} messages. - * @param message DeleteConnectionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IDeleteConnectionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteConnectionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.DeleteConnectionRequest; - - /** - * Decodes a DeleteConnectionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.DeleteConnectionRequest; - - /** - * Verifies a DeleteConnectionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteConnectionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteConnectionRequest - */ - public static fromObject(object: { [k: string]: any }): protos.DeleteConnectionRequest; - - /** - * Creates a plain object from a DeleteConnectionRequest message. Also converts values to other types if specified. - * @param message DeleteConnectionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.DeleteConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteConnectionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DeleteConnectionResponse. */ - interface IDeleteConnectionResponse { - - /** DeleteConnectionResponse status */ - status?: (protos.common.IStatus|null); - } - - /** Represents a DeleteConnectionResponse. */ - class DeleteConnectionResponse implements IDeleteConnectionResponse { - - /** - * Constructs a new DeleteConnectionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IDeleteConnectionResponse); - - /** DeleteConnectionResponse status. */ - public status?: (protos.common.IStatus|null); - - /** - * Creates a new DeleteConnectionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteConnectionResponse instance - */ - public static create(properties?: protos.IDeleteConnectionResponse): protos.DeleteConnectionResponse; - - /** - * Encodes the specified DeleteConnectionResponse message. Does not implicitly {@link protos.DeleteConnectionResponse.verify|verify} messages. - * @param message DeleteConnectionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IDeleteConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteConnectionResponse message, length delimited. Does not implicitly {@link protos.DeleteConnectionResponse.verify|verify} messages. - * @param message DeleteConnectionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IDeleteConnectionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteConnectionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.DeleteConnectionResponse; - - /** - * Decodes a DeleteConnectionResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.DeleteConnectionResponse; - - /** - * Verifies a DeleteConnectionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteConnectionResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteConnectionResponse - */ - public static fromObject(object: { [k: string]: any }): protos.DeleteConnectionResponse; - - /** - * Creates a plain object from a DeleteConnectionResponse message. Also converts values to other types if specified. - * @param message DeleteConnectionResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.DeleteConnectionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteConnectionResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Namespace common. */ - namespace common { - - /** Properties of a Foreman. */ - interface IForeman { - - /** Foreman authToken */ - authToken?: (string|null); + /** Namespace args. */ + namespace args { - /** Foreman plumberClusterId */ - plumberClusterId?: (string|null); + /** Properties of an ActiveMQConn. */ + interface IActiveMQConn { - /** Foreman teamId */ - teamId?: (string|null); + /** ActiveMQConn address */ + address?: (string|null); } - /** Represents a Foreman. */ - class Foreman implements IForeman { + /** Represents an ActiveMQConn. */ + class ActiveMQConn implements IActiveMQConn { /** - * Constructs a new Foreman. + * Constructs a new ActiveMQConn. * @param [properties] Properties to set */ - constructor(properties?: protos.common.IForeman); - - /** Foreman authToken. */ - public authToken: string; - - /** Foreman plumberClusterId. */ - public plumberClusterId: string; + constructor(properties?: protos.args.IActiveMQConn); - /** Foreman teamId. */ - public teamId: string; + /** ActiveMQConn address. */ + public address: string; /** - * Creates a new Foreman instance using the specified properties. + * Creates a new ActiveMQConn instance using the specified properties. * @param [properties] Properties to set - * @returns Foreman instance + * @returns ActiveMQConn instance */ - public static create(properties?: protos.common.IForeman): protos.common.Foreman; + public static create(properties?: protos.args.IActiveMQConn): protos.args.ActiveMQConn; /** - * Encodes the specified Foreman message. Does not implicitly {@link protos.common.Foreman.verify|verify} messages. - * @param message Foreman message or plain object to encode + * Encodes the specified ActiveMQConn message. Does not implicitly {@link protos.args.ActiveMQConn.verify|verify} messages. + * @param message ActiveMQConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.common.IForeman, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IActiveMQConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Foreman message, length delimited. Does not implicitly {@link protos.common.Foreman.verify|verify} messages. - * @param message Foreman message or plain object to encode + * Encodes the specified ActiveMQConn message, length delimited. Does not implicitly {@link protos.args.ActiveMQConn.verify|verify} messages. + * @param message ActiveMQConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.common.IForeman, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IActiveMQConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Foreman message from the specified reader or buffer. + * Decodes an ActiveMQConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Foreman + * @returns ActiveMQConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.common.Foreman; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.ActiveMQConn; /** - * Decodes a Foreman message from the specified reader or buffer, length delimited. + * Decodes an ActiveMQConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Foreman + * @returns ActiveMQConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.common.Foreman; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.ActiveMQConn; /** - * Verifies a Foreman message. + * Verifies an ActiveMQConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Foreman message from a plain object. Also converts values to their respective internal types. + * Creates an ActiveMQConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Foreman + * @returns ActiveMQConn */ - public static fromObject(object: { [k: string]: any }): protos.common.Foreman; + public static fromObject(object: { [k: string]: any }): protos.args.ActiveMQConn; /** - * Creates a plain object from a Foreman message. Also converts values to other types if specified. - * @param message Foreman + * Creates a plain object from an ActiveMQConn message. Also converts values to other types if specified. + * @param message ActiveMQConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.common.Foreman, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.ActiveMQConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Foreman to JSON. + * Converts this ActiveMQConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SourceManager. */ - interface ISourceManager { + /** Properties of an ActiveMQReadArgs. */ + interface IActiveMQReadArgs { - /** SourceManager serverToken */ - serverToken?: (string|null); + /** ActiveMQReadArgs topic */ + topic?: (string|null); - /** SourceManager sourceId */ - sourceId?: (string|null); + /** ActiveMQReadArgs queue */ + queue?: (string|null); } - /** Represents a SourceManager. */ - class SourceManager implements ISourceManager { + /** Represents an ActiveMQReadArgs. */ + class ActiveMQReadArgs implements IActiveMQReadArgs { /** - * Constructs a new SourceManager. + * Constructs a new ActiveMQReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.common.ISourceManager); + constructor(properties?: protos.args.IActiveMQReadArgs); - /** SourceManager serverToken. */ - public serverToken: string; + /** ActiveMQReadArgs topic. */ + public topic: string; - /** SourceManager sourceId. */ - public sourceId: string; + /** ActiveMQReadArgs queue. */ + public queue: string; /** - * Creates a new SourceManager instance using the specified properties. + * Creates a new ActiveMQReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns SourceManager instance + * @returns ActiveMQReadArgs instance */ - public static create(properties?: protos.common.ISourceManager): protos.common.SourceManager; + public static create(properties?: protos.args.IActiveMQReadArgs): protos.args.ActiveMQReadArgs; /** - * Encodes the specified SourceManager message. Does not implicitly {@link protos.common.SourceManager.verify|verify} messages. - * @param message SourceManager message or plain object to encode + * Encodes the specified ActiveMQReadArgs message. Does not implicitly {@link protos.args.ActiveMQReadArgs.verify|verify} messages. + * @param message ActiveMQReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.common.ISourceManager, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IActiveMQReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SourceManager message, length delimited. Does not implicitly {@link protos.common.SourceManager.verify|verify} messages. - * @param message SourceManager message or plain object to encode + * Encodes the specified ActiveMQReadArgs message, length delimited. Does not implicitly {@link protos.args.ActiveMQReadArgs.verify|verify} messages. + * @param message ActiveMQReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.common.ISourceManager, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IActiveMQReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SourceManager message from the specified reader or buffer. + * Decodes an ActiveMQReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SourceManager + * @returns ActiveMQReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.common.SourceManager; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.ActiveMQReadArgs; /** - * Decodes a SourceManager message from the specified reader or buffer, length delimited. + * Decodes an ActiveMQReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SourceManager + * @returns ActiveMQReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.common.SourceManager; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.ActiveMQReadArgs; /** - * Verifies a SourceManager message. + * Verifies an ActiveMQReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SourceManager message from a plain object. Also converts values to their respective internal types. + * Creates an ActiveMQReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SourceManager + * @returns ActiveMQReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.common.SourceManager; + public static fromObject(object: { [k: string]: any }): protos.args.ActiveMQReadArgs; /** - * Creates a plain object from a SourceManager message. Also converts values to other types if specified. - * @param message SourceManager + * Creates a plain object from an ActiveMQReadArgs message. Also converts values to other types if specified. + * @param message ActiveMQReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.common.SourceManager, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.ActiveMQReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SourceManager to JSON. + * Converts this ActiveMQReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an Auth. */ - interface IAuth { - - /** Auth token */ - token?: (string|null); + /** Properties of an ActiveMQWriteArgs. */ + interface IActiveMQWriteArgs { - /** Auth _foreman */ - _foreman?: (protos.common.IForeman|null); + /** ActiveMQWriteArgs topic */ + topic?: (string|null); - /** Auth _sourceManager */ - _sourceManager?: (protos.common.ISourceManager|null); + /** ActiveMQWriteArgs queue */ + queue?: (string|null); } - /** Represents an Auth. */ - class Auth implements IAuth { + /** Represents an ActiveMQWriteArgs. */ + class ActiveMQWriteArgs implements IActiveMQWriteArgs { /** - * Constructs a new Auth. + * Constructs a new ActiveMQWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.common.IAuth); - - /** Auth token. */ - public token: string; + constructor(properties?: protos.args.IActiveMQWriteArgs); - /** Auth _foreman. */ - public _foreman?: (protos.common.IForeman|null); + /** ActiveMQWriteArgs topic. */ + public topic: string; - /** Auth _sourceManager. */ - public _sourceManager?: (protos.common.ISourceManager|null); + /** ActiveMQWriteArgs queue. */ + public queue: string; /** - * Creates a new Auth instance using the specified properties. + * Creates a new ActiveMQWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns Auth instance + * @returns ActiveMQWriteArgs instance */ - public static create(properties?: protos.common.IAuth): protos.common.Auth; + public static create(properties?: protos.args.IActiveMQWriteArgs): protos.args.ActiveMQWriteArgs; /** - * Encodes the specified Auth message. Does not implicitly {@link protos.common.Auth.verify|verify} messages. - * @param message Auth message or plain object to encode + * Encodes the specified ActiveMQWriteArgs message. Does not implicitly {@link protos.args.ActiveMQWriteArgs.verify|verify} messages. + * @param message ActiveMQWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.common.IAuth, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IActiveMQWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Auth message, length delimited. Does not implicitly {@link protos.common.Auth.verify|verify} messages. - * @param message Auth message or plain object to encode + * Encodes the specified ActiveMQWriteArgs message, length delimited. Does not implicitly {@link protos.args.ActiveMQWriteArgs.verify|verify} messages. + * @param message ActiveMQWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.common.IAuth, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IActiveMQWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Auth message from the specified reader or buffer. + * Decodes an ActiveMQWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Auth + * @returns ActiveMQWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.common.Auth; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.ActiveMQWriteArgs; /** - * Decodes an Auth message from the specified reader or buffer, length delimited. + * Decodes an ActiveMQWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Auth + * @returns ActiveMQWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.common.Auth; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.ActiveMQWriteArgs; /** - * Verifies an Auth message. + * Verifies an ActiveMQWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Auth message from a plain object. Also converts values to their respective internal types. + * Creates an ActiveMQWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Auth + * @returns ActiveMQWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.common.Auth; + public static fromObject(object: { [k: string]: any }): protos.args.ActiveMQWriteArgs; /** - * Creates a plain object from an Auth message. Also converts values to other types if specified. - * @param message Auth + * Creates a plain object from an ActiveMQWriteArgs message. Also converts values to other types if specified. + * @param message ActiveMQWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.common.Auth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.ActiveMQWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Auth to JSON. + * Converts this ActiveMQWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Code enum. */ - enum Code { - OK = 0, - CANCELLED = 1, - UNKNOWN = 2, - INVALID_ARGUMENT = 3, - DEADLINE_EXCEEDED = 4, - NOT_FOUND = 5, - ALREADY_EXISTS = 6, - PERMISSION_DENIED = 7, - UNAUTHENTICATED = 16, - RESOURCE_EXHAUSTED = 8, - FAILED_PRECONDITION = 9, - ABORTED = 10, - OUT_OF_RANGE = 11, - UNIMPLEMENTED = 12, - INTERNAL = 13, - UNAVAILABLE = 14, - DATA_LOSS = 15 - } + /** Properties of a AWSKinesisConn. */ + interface IAWSKinesisConn { - /** Properties of a Status. */ - interface IStatus { + /** AWSKinesisConn awsRegion */ + awsRegion?: (string|null); - /** Status code */ - code?: (protos.common.Code|null); + /** AWSKinesisConn awsAccessKeyId */ + awsAccessKeyId?: (string|null); - /** Status message */ - message?: (string|null); + /** AWSKinesisConn awsSecretAccessKey */ + awsSecretAccessKey?: (string|null); - /** Status requestId */ - requestId?: (string|null); + /** AWSKinesisConn awsProfile */ + awsProfile?: (string|null); } - /** Represents a Status. */ - class Status implements IStatus { + /** Represents a AWSKinesisConn. */ + class AWSKinesisConn implements IAWSKinesisConn { /** - * Constructs a new Status. + * Constructs a new AWSKinesisConn. * @param [properties] Properties to set */ - constructor(properties?: protos.common.IStatus); + constructor(properties?: protos.args.IAWSKinesisConn); - /** Status code. */ - public code: protos.common.Code; + /** AWSKinesisConn awsRegion. */ + public awsRegion: string; - /** Status message. */ - public message: string; + /** AWSKinesisConn awsAccessKeyId. */ + public awsAccessKeyId: string; - /** Status requestId. */ - public requestId: string; + /** AWSKinesisConn awsSecretAccessKey. */ + public awsSecretAccessKey: string; + + /** AWSKinesisConn awsProfile. */ + public awsProfile: string; /** - * Creates a new Status instance using the specified properties. + * Creates a new AWSKinesisConn instance using the specified properties. * @param [properties] Properties to set - * @returns Status instance + * @returns AWSKinesisConn instance */ - public static create(properties?: protos.common.IStatus): protos.common.Status; + public static create(properties?: protos.args.IAWSKinesisConn): protos.args.AWSKinesisConn; /** - * Encodes the specified Status message. Does not implicitly {@link protos.common.Status.verify|verify} messages. - * @param message Status message or plain object to encode + * Encodes the specified AWSKinesisConn message. Does not implicitly {@link protos.args.AWSKinesisConn.verify|verify} messages. + * @param message AWSKinesisConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.common.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IAWSKinesisConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Status message, length delimited. Does not implicitly {@link protos.common.Status.verify|verify} messages. - * @param message Status message or plain object to encode + * Encodes the specified AWSKinesisConn message, length delimited. Does not implicitly {@link protos.args.AWSKinesisConn.verify|verify} messages. + * @param message AWSKinesisConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.common.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IAWSKinesisConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Status message from the specified reader or buffer. + * Decodes a AWSKinesisConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Status + * @returns AWSKinesisConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.common.Status; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSKinesisConn; /** - * Decodes a Status message from the specified reader or buffer, length delimited. + * Decodes a AWSKinesisConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Status + * @returns AWSKinesisConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.common.Status; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSKinesisConn; /** - * Verifies a Status message. + * Verifies a AWSKinesisConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Status message from a plain object. Also converts values to their respective internal types. + * Creates a AWSKinesisConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Status + * @returns AWSKinesisConn */ - public static fromObject(object: { [k: string]: any }): protos.common.Status; + public static fromObject(object: { [k: string]: any }): protos.args.AWSKinesisConn; /** - * Creates a plain object from a Status message. Also converts values to other types if specified. - * @param message Status + * Creates a plain object from a AWSKinesisConn message. Also converts values to other types if specified. + * @param message AWSKinesisConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.common.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.AWSKinesisConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Status to JSON. + * Converts this AWSKinesisConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** BackendType enum. */ - enum BackendType { - BACKEND_TYPE_UNSET = 0, - BACKEND_TYPE_KAFKA = 1, - BACKEND_TYPE_RABBIT = 2, - BACKEND_TYPE_RABBIT_STREAMS = 3, - BACKEND_TYPE_NSQ = 4, - BACKEND_TYPE_NATS = 5, - BACKEND_TYPE_NATS_STREAMING = 6, - BACKEND_TYPE_GCP_PUBSUB = 7, - BACKEND_TYPE_AZURE_SERVICE_BUS = 8, - BACKEND_TYPE_AZURE_EVENT_HUB = 9, - BACKEND_TYPE_AWS_SQS = 10, - BACKEND_TYPE_AWS_SNS = 11, - BACKEND_TYPE_REDIS_PUBSUB = 12, - BACKEND_TYPE_REDIS_STREAMS = 13, - BACKEND_TYPE_ACTIVEMQ = 14, - BACKEND_TYPE_PULSAR = 15, - BACKEND_TYPE_MQTT = 16, - BACKEND_TYPE_POSTGRES_CDC = 17, - BACKEND_TYPE_MONGODB_CDC = 18, - BACKEND_TYPE_KUBE_MQ = 19, - BACKEND_TYPE_AWS_KINESIS = 20 - } + /** Properties of a AWSKinesisReadArgs. */ + interface IAWSKinesisReadArgs { - /** Properties of a Validation. */ - interface IValidation { + /** AWSKinesisReadArgs stream */ + stream?: (string|null); - /** Validation _id */ - _id?: (string|null); + /** AWSKinesisReadArgs shard */ + shard?: (string|null); - /** Validation schemaId */ - schemaId?: (string|null); + /** AWSKinesisReadArgs maxRecords */ + maxRecords?: (number|Long|null); - /** Validation fields */ - fields?: (protos.common.Validation.IField[]|null); + /** AWSKinesisReadArgs readFromTimestamp */ + readFromTimestamp?: (number|Long|null); + + /** AWSKinesisReadArgs readSequenceNumber */ + readSequenceNumber?: (string|null); + + /** AWSKinesisReadArgs readAfterSequenceNumber */ + readAfterSequenceNumber?: (string|null); + + /** AWSKinesisReadArgs readTrimHorizon */ + readTrimHorizon?: (boolean|null); + + /** AWSKinesisReadArgs readLatest */ + readLatest?: (boolean|null); } - /** Represents a Validation. */ - class Validation implements IValidation { + /** Represents a AWSKinesisReadArgs. */ + class AWSKinesisReadArgs implements IAWSKinesisReadArgs { /** - * Constructs a new Validation. + * Constructs a new AWSKinesisReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.common.IValidation); + constructor(properties?: protos.args.IAWSKinesisReadArgs); - /** Validation _id. */ - public _id: string; + /** AWSKinesisReadArgs stream. */ + public stream: string; - /** Validation schemaId. */ - public schemaId: string; + /** AWSKinesisReadArgs shard. */ + public shard: string; - /** Validation fields. */ - public fields: protos.common.Validation.IField[]; + /** AWSKinesisReadArgs maxRecords. */ + public maxRecords: (number|Long); + + /** AWSKinesisReadArgs readFromTimestamp. */ + public readFromTimestamp: (number|Long); + + /** AWSKinesisReadArgs readSequenceNumber. */ + public readSequenceNumber: string; + + /** AWSKinesisReadArgs readAfterSequenceNumber. */ + public readAfterSequenceNumber: string; + + /** AWSKinesisReadArgs readTrimHorizon. */ + public readTrimHorizon: boolean; + + /** AWSKinesisReadArgs readLatest. */ + public readLatest: boolean; /** - * Creates a new Validation instance using the specified properties. + * Creates a new AWSKinesisReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns Validation instance + * @returns AWSKinesisReadArgs instance */ - public static create(properties?: protos.common.IValidation): protos.common.Validation; + public static create(properties?: protos.args.IAWSKinesisReadArgs): protos.args.AWSKinesisReadArgs; /** - * Encodes the specified Validation message. Does not implicitly {@link protos.common.Validation.verify|verify} messages. - * @param message Validation message or plain object to encode + * Encodes the specified AWSKinesisReadArgs message. Does not implicitly {@link protos.args.AWSKinesisReadArgs.verify|verify} messages. + * @param message AWSKinesisReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.common.IValidation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IAWSKinesisReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Validation message, length delimited. Does not implicitly {@link protos.common.Validation.verify|verify} messages. - * @param message Validation message or plain object to encode + * Encodes the specified AWSKinesisReadArgs message, length delimited. Does not implicitly {@link protos.args.AWSKinesisReadArgs.verify|verify} messages. + * @param message AWSKinesisReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.common.IValidation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IAWSKinesisReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Validation message from the specified reader or buffer. + * Decodes a AWSKinesisReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Validation + * @returns AWSKinesisReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.common.Validation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSKinesisReadArgs; /** - * Decodes a Validation message from the specified reader or buffer, length delimited. + * Decodes a AWSKinesisReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Validation + * @returns AWSKinesisReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.common.Validation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSKinesisReadArgs; /** - * Verifies a Validation message. + * Verifies a AWSKinesisReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Validation message from a plain object. Also converts values to their respective internal types. + * Creates a AWSKinesisReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Validation + * @returns AWSKinesisReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.common.Validation; + public static fromObject(object: { [k: string]: any }): protos.args.AWSKinesisReadArgs; /** - * Creates a plain object from a Validation message. Also converts values to other types if specified. - * @param message Validation + * Creates a plain object from a AWSKinesisReadArgs message. Also converts values to other types if specified. + * @param message AWSKinesisReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.common.Validation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.AWSKinesisReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Validation to JSON. + * Converts this AWSKinesisReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Validation { - - /** Properties of a Field. */ - interface IField { + /** Properties of a AWSKinesisWriteArgs. */ + interface IAWSKinesisWriteArgs { - /** Field path */ - path?: (string|null); + /** AWSKinesisWriteArgs stream */ + stream?: (string|null); - /** Field validationType */ - validationType?: (string|null); + /** AWSKinesisWriteArgs partitionKey */ + partitionKey?: (string|null); - /** Field matchValue */ - matchValue?: (string|null); - } + /** AWSKinesisWriteArgs sequenceNumber */ + sequenceNumber?: (string|null); + } - /** Represents a Field. */ - class Field implements IField { + /** Represents a AWSKinesisWriteArgs. */ + class AWSKinesisWriteArgs implements IAWSKinesisWriteArgs { - /** - * Constructs a new Field. - * @param [properties] Properties to set - */ - constructor(properties?: protos.common.Validation.IField); + /** + * Constructs a new AWSKinesisWriteArgs. + * @param [properties] Properties to set + */ + constructor(properties?: protos.args.IAWSKinesisWriteArgs); - /** Field path. */ - public path: string; + /** AWSKinesisWriteArgs stream. */ + public stream: string; - /** Field validationType. */ - public validationType: string; + /** AWSKinesisWriteArgs partitionKey. */ + public partitionKey: string; - /** Field matchValue. */ - public matchValue: string; + /** AWSKinesisWriteArgs sequenceNumber. */ + public sequenceNumber: string; - /** - * Creates a new Field instance using the specified properties. - * @param [properties] Properties to set - * @returns Field instance - */ - public static create(properties?: protos.common.Validation.IField): protos.common.Validation.Field; + /** + * Creates a new AWSKinesisWriteArgs instance using the specified properties. + * @param [properties] Properties to set + * @returns AWSKinesisWriteArgs instance + */ + public static create(properties?: protos.args.IAWSKinesisWriteArgs): protos.args.AWSKinesisWriteArgs; - /** - * Encodes the specified Field message. Does not implicitly {@link protos.common.Validation.Field.verify|verify} messages. - * @param message Field message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.common.Validation.IField, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified AWSKinesisWriteArgs message. Does not implicitly {@link protos.args.AWSKinesisWriteArgs.verify|verify} messages. + * @param message AWSKinesisWriteArgs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: protos.args.IAWSKinesisWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Field message, length delimited. Does not implicitly {@link protos.common.Validation.Field.verify|verify} messages. - * @param message Field message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.common.Validation.IField, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified AWSKinesisWriteArgs message, length delimited. Does not implicitly {@link protos.args.AWSKinesisWriteArgs.verify|verify} messages. + * @param message AWSKinesisWriteArgs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: protos.args.IAWSKinesisWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Field message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.common.Validation.Field; + /** + * Decodes a AWSKinesisWriteArgs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AWSKinesisWriteArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSKinesisWriteArgs; - /** - * Decodes a Field message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.common.Validation.Field; + /** + * Decodes a AWSKinesisWriteArgs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AWSKinesisWriteArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSKinesisWriteArgs; - /** - * Verifies a Field message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a AWSKinesisWriteArgs message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a Field message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Field - */ - public static fromObject(object: { [k: string]: any }): protos.common.Validation.Field; + /** + * Creates a AWSKinesisWriteArgs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AWSKinesisWriteArgs + */ + public static fromObject(object: { [k: string]: any }): protos.args.AWSKinesisWriteArgs; - /** - * Creates a plain object from a Field message. Also converts values to other types if specified. - * @param message Field - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.common.Validation.Field, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a AWSKinesisWriteArgs message. Also converts values to other types if specified. + * @param message AWSKinesisWriteArgs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: protos.args.AWSKinesisWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Field to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this AWSKinesisWriteArgs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - } - /** Namespace opts. */ - namespace opts { + /** Properties of a AWSSNSConn. */ + interface IAWSSNSConn { - /** Properties of a ConnectionOptions. */ - interface IConnectionOptions { + /** AWSSNSConn awsRegion */ + awsRegion?: (string|null); - /** ConnectionOptions name */ - name?: (string|null); + /** AWSSNSConn awsAccessKeyId */ + awsAccessKeyId?: (string|null); - /** ConnectionOptions notes */ - notes?: (string|null); + /** AWSSNSConn awsSecretAccessKey */ + awsSecretAccessKey?: (string|null); - /** ConnectionOptions kafka */ - kafka?: (protos.args.IKafkaConn|null); + /** AWSSNSConn awsProfile */ + awsProfile?: (string|null); + } - /** ConnectionOptions activeMq */ - activeMq?: (protos.args.IActiveMQConn|null); + /** Represents a AWSSNSConn. */ + class AWSSNSConn implements IAWSSNSConn { - /** ConnectionOptions awsSqs */ - awsSqs?: (protos.args.IAWSSQSConn|null); + /** + * Constructs a new AWSSNSConn. + * @param [properties] Properties to set + */ + constructor(properties?: protos.args.IAWSSNSConn); - /** ConnectionOptions awsSns */ - awsSns?: (protos.args.IAWSSNSConn|null); + /** AWSSNSConn awsRegion. */ + public awsRegion: string; - /** ConnectionOptions mongo */ - mongo?: (protos.args.IMongoConn|null); + /** AWSSNSConn awsAccessKeyId. */ + public awsAccessKeyId: string; - /** ConnectionOptions nats */ - nats?: (protos.args.INatsConn|null); + /** AWSSNSConn awsSecretAccessKey. */ + public awsSecretAccessKey: string; - /** ConnectionOptions natsStreaming */ - natsStreaming?: (protos.args.INatsStreamingConn|null); - - /** ConnectionOptions nsq */ - nsq?: (protos.args.INSQConn|null); - - /** ConnectionOptions postgres */ - postgres?: (protos.args.IPostgresConn|null); - - /** ConnectionOptions pulsar */ - pulsar?: (protos.args.IPulsarConn|null); - - /** ConnectionOptions rabbit */ - rabbit?: (protos.args.IRabbitConn|null); - - /** ConnectionOptions rabbitStreams */ - rabbitStreams?: (protos.args.IRabbitStreamsConn|null); - - /** ConnectionOptions redisPubsub */ - redisPubsub?: (protos.args.IRedisPubSubConn|null); - - /** ConnectionOptions redisStreams */ - redisStreams?: (protos.args.IRedisStreamsConn|null); - - /** ConnectionOptions azureEventHub */ - azureEventHub?: (protos.args.IAzureEventHubConn|null); - - /** ConnectionOptions azureServiceBus */ - azureServiceBus?: (protos.args.IAzureServiceBusConn|null); - - /** ConnectionOptions mqtt */ - mqtt?: (protos.args.IMQTTConn|null); - - /** ConnectionOptions kubemqQueue */ - kubemqQueue?: (protos.args.IKubeMQQueueConn|null); - - /** ConnectionOptions gcpPubsub */ - gcpPubsub?: (protos.args.IGCPPubSubConn|null); - - /** ConnectionOptions natsJetstream */ - natsJetstream?: (protos.args.INatsJetstreamConn|null); - - /** ConnectionOptions awsKinesis */ - awsKinesis?: (protos.args.IAWSKinesisConn|null); - - /** ConnectionOptions memphis */ - memphis?: (protos.args.IMemphisConn|null); - - /** ConnectionOptions _id */ - _id?: (string|null); - } - - /** Represents a ConnectionOptions. */ - class ConnectionOptions implements IConnectionOptions { - - /** - * Constructs a new ConnectionOptions. - * @param [properties] Properties to set - */ - constructor(properties?: protos.opts.IConnectionOptions); - - /** ConnectionOptions name. */ - public name: string; - - /** ConnectionOptions notes. */ - public notes: string; - - /** ConnectionOptions kafka. */ - public kafka?: (protos.args.IKafkaConn|null); - - /** ConnectionOptions activeMq. */ - public activeMq?: (protos.args.IActiveMQConn|null); - - /** ConnectionOptions awsSqs. */ - public awsSqs?: (protos.args.IAWSSQSConn|null); - - /** ConnectionOptions awsSns. */ - public awsSns?: (protos.args.IAWSSNSConn|null); - - /** ConnectionOptions mongo. */ - public mongo?: (protos.args.IMongoConn|null); - - /** ConnectionOptions nats. */ - public nats?: (protos.args.INatsConn|null); - - /** ConnectionOptions natsStreaming. */ - public natsStreaming?: (protos.args.INatsStreamingConn|null); - - /** ConnectionOptions nsq. */ - public nsq?: (protos.args.INSQConn|null); - - /** ConnectionOptions postgres. */ - public postgres?: (protos.args.IPostgresConn|null); - - /** ConnectionOptions pulsar. */ - public pulsar?: (protos.args.IPulsarConn|null); - - /** ConnectionOptions rabbit. */ - public rabbit?: (protos.args.IRabbitConn|null); - - /** ConnectionOptions rabbitStreams. */ - public rabbitStreams?: (protos.args.IRabbitStreamsConn|null); - - /** ConnectionOptions redisPubsub. */ - public redisPubsub?: (protos.args.IRedisPubSubConn|null); - - /** ConnectionOptions redisStreams. */ - public redisStreams?: (protos.args.IRedisStreamsConn|null); - - /** ConnectionOptions azureEventHub. */ - public azureEventHub?: (protos.args.IAzureEventHubConn|null); - - /** ConnectionOptions azureServiceBus. */ - public azureServiceBus?: (protos.args.IAzureServiceBusConn|null); - - /** ConnectionOptions mqtt. */ - public mqtt?: (protos.args.IMQTTConn|null); - - /** ConnectionOptions kubemqQueue. */ - public kubemqQueue?: (protos.args.IKubeMQQueueConn|null); - - /** ConnectionOptions gcpPubsub. */ - public gcpPubsub?: (protos.args.IGCPPubSubConn|null); - - /** ConnectionOptions natsJetstream. */ - public natsJetstream?: (protos.args.INatsJetstreamConn|null); - - /** ConnectionOptions awsKinesis. */ - public awsKinesis?: (protos.args.IAWSKinesisConn|null); - - /** ConnectionOptions memphis. */ - public memphis?: (protos.args.IMemphisConn|null); - - /** ConnectionOptions _id. */ - public _id: string; - - /** ConnectionOptions conn. */ - public conn?: ("kafka"|"activeMq"|"awsSqs"|"awsSns"|"mongo"|"nats"|"natsStreaming"|"nsq"|"postgres"|"pulsar"|"rabbit"|"rabbitStreams"|"redisPubsub"|"redisStreams"|"azureEventHub"|"azureServiceBus"|"mqtt"|"kubemqQueue"|"gcpPubsub"|"natsJetstream"|"awsKinesis"|"memphis"); + /** AWSSNSConn awsProfile. */ + public awsProfile: string; /** - * Creates a new ConnectionOptions instance using the specified properties. + * Creates a new AWSSNSConn instance using the specified properties. * @param [properties] Properties to set - * @returns ConnectionOptions instance + * @returns AWSSNSConn instance */ - public static create(properties?: protos.opts.IConnectionOptions): protos.opts.ConnectionOptions; + public static create(properties?: protos.args.IAWSSNSConn): protos.args.AWSSNSConn; /** - * Encodes the specified ConnectionOptions message. Does not implicitly {@link protos.opts.ConnectionOptions.verify|verify} messages. - * @param message ConnectionOptions message or plain object to encode + * Encodes the specified AWSSNSConn message. Does not implicitly {@link protos.args.AWSSNSConn.verify|verify} messages. + * @param message AWSSNSConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IConnectionOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IAWSSNSConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConnectionOptions message, length delimited. Does not implicitly {@link protos.opts.ConnectionOptions.verify|verify} messages. - * @param message ConnectionOptions message or plain object to encode + * Encodes the specified AWSSNSConn message, length delimited. Does not implicitly {@link protos.args.AWSSNSConn.verify|verify} messages. + * @param message AWSSNSConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IConnectionOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IAWSSNSConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConnectionOptions message from the specified reader or buffer. + * Decodes a AWSSNSConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConnectionOptions + * @returns AWSSNSConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ConnectionOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSSNSConn; /** - * Decodes a ConnectionOptions message from the specified reader or buffer, length delimited. + * Decodes a AWSSNSConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConnectionOptions + * @returns AWSSNSConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ConnectionOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSSNSConn; /** - * Verifies a ConnectionOptions message. + * Verifies a AWSSNSConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ConnectionOptions message from a plain object. Also converts values to their respective internal types. + * Creates a AWSSNSConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConnectionOptions + * @returns AWSSNSConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.ConnectionOptions; + public static fromObject(object: { [k: string]: any }): protos.args.AWSSNSConn; /** - * Creates a plain object from a ConnectionOptions message. Also converts values to other types if specified. - * @param message ConnectionOptions + * Creates a plain object from a AWSSNSConn message. Also converts values to other types if specified. + * @param message AWSSNSConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ConnectionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.AWSSNSConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConnectionOptions to JSON. + * Converts this AWSSNSConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayCLIOptions. */ - interface IRelayCLIOptions { + /** Properties of a AWSSNSWriteArgs. */ + interface IAWSSNSWriteArgs { - /** RelayCLIOptions httpListenAddress */ - httpListenAddress?: (string|null); + /** AWSSNSWriteArgs topic */ + topic?: (string|null); } - /** Represents a RelayCLIOptions. */ - class RelayCLIOptions implements IRelayCLIOptions { + /** Represents a AWSSNSWriteArgs. */ + class AWSSNSWriteArgs implements IAWSSNSWriteArgs { /** - * Constructs a new RelayCLIOptions. + * Constructs a new AWSSNSWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayCLIOptions); + constructor(properties?: protos.args.IAWSSNSWriteArgs); - /** RelayCLIOptions httpListenAddress. */ - public httpListenAddress: string; + /** AWSSNSWriteArgs topic. */ + public topic: string; /** - * Creates a new RelayCLIOptions instance using the specified properties. + * Creates a new AWSSNSWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns RelayCLIOptions instance + * @returns AWSSNSWriteArgs instance */ - public static create(properties?: protos.opts.IRelayCLIOptions): protos.opts.RelayCLIOptions; + public static create(properties?: protos.args.IAWSSNSWriteArgs): protos.args.AWSSNSWriteArgs; /** - * Encodes the specified RelayCLIOptions message. Does not implicitly {@link protos.opts.RelayCLIOptions.verify|verify} messages. - * @param message RelayCLIOptions message or plain object to encode + * Encodes the specified AWSSNSWriteArgs message. Does not implicitly {@link protos.args.AWSSNSWriteArgs.verify|verify} messages. + * @param message AWSSNSWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IAWSSNSWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayCLIOptions message, length delimited. Does not implicitly {@link protos.opts.RelayCLIOptions.verify|verify} messages. - * @param message RelayCLIOptions message or plain object to encode + * Encodes the specified AWSSNSWriteArgs message, length delimited. Does not implicitly {@link protos.args.AWSSNSWriteArgs.verify|verify} messages. + * @param message AWSSNSWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IAWSSNSWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayCLIOptions message from the specified reader or buffer. + * Decodes a AWSSNSWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayCLIOptions + * @returns AWSSNSWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayCLIOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSSNSWriteArgs; /** - * Decodes a RelayCLIOptions message from the specified reader or buffer, length delimited. + * Decodes a AWSSNSWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayCLIOptions + * @returns AWSSNSWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayCLIOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSSNSWriteArgs; /** - * Verifies a RelayCLIOptions message. + * Verifies a AWSSNSWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayCLIOptions message from a plain object. Also converts values to their respective internal types. + * Creates a AWSSNSWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayCLIOptions + * @returns AWSSNSWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayCLIOptions; + public static fromObject(object: { [k: string]: any }): protos.args.AWSSNSWriteArgs; /** - * Creates a plain object from a RelayCLIOptions message. Also converts values to other types if specified. - * @param message RelayCLIOptions + * Creates a plain object from a AWSSNSWriteArgs message. Also converts values to other types if specified. + * @param message AWSSNSWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayCLIOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.AWSSNSWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayCLIOptions to JSON. + * Converts this AWSSNSWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayOptions. */ - interface IRelayOptions { - - /** RelayOptions collectionToken */ - collectionToken?: (string|null); - - /** RelayOptions batchSize */ - batchSize?: (number|null); + /** Properties of a AWSSQSConn. */ + interface IAWSSQSConn { - /** RelayOptions batchMaxRetry */ - batchMaxRetry?: (number|null); + /** AWSSQSConn awsRegion */ + awsRegion?: (string|null); - /** RelayOptions connectionId */ - connectionId?: (string|null); + /** AWSSQSConn awsAccessKeyId */ + awsAccessKeyId?: (string|null); - /** RelayOptions numWorkers */ - numWorkers?: (number|null); + /** AWSSQSConn awsSecretAccessKey */ + awsSecretAccessKey?: (string|null); - /** RelayOptions statsEnable */ - statsEnable?: (boolean|null); + /** AWSSQSConn awsProfile */ + awsProfile?: (string|null); + } - /** RelayOptions statsReportIntervalSec */ - statsReportIntervalSec?: (number|null); + /** Represents a AWSSQSConn. */ + class AWSSQSConn implements IAWSSQSConn { - /** RelayOptions deadLetter */ - deadLetter?: (boolean|null); + /** + * Constructs a new AWSSQSConn. + * @param [properties] Properties to set + */ + constructor(properties?: protos.args.IAWSSQSConn); - /** RelayOptions _streamdalGrpcAddress */ - _streamdalGrpcAddress?: (string|null); + /** AWSSQSConn awsRegion. */ + public awsRegion: string; - /** RelayOptions _streamdalGrpcDisableTls */ - _streamdalGrpcDisableTls?: (boolean|null); + /** AWSSQSConn awsAccessKeyId. */ + public awsAccessKeyId: string; - /** RelayOptions _streamdalGrpcTimeoutSeconds */ - _streamdalGrpcTimeoutSeconds?: (number|null); + /** AWSSQSConn awsSecretAccessKey. */ + public awsSecretAccessKey: string; - /** RelayOptions _relayId */ - _relayId?: (string|null); + /** AWSSQSConn awsProfile. */ + public awsProfile: string; - /** RelayOptions _cliOptions */ - _cliOptions?: (protos.opts.IRelayCLIOptions|null); + /** + * Creates a new AWSSQSConn instance using the specified properties. + * @param [properties] Properties to set + * @returns AWSSQSConn instance + */ + public static create(properties?: protos.args.IAWSSQSConn): protos.args.AWSSQSConn; - /** RelayOptions _active */ - _active?: (boolean|null); + /** + * Encodes the specified AWSSQSConn message. Does not implicitly {@link protos.args.AWSSQSConn.verify|verify} messages. + * @param message AWSSQSConn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: protos.args.IAWSSQSConn, writer?: $protobuf.Writer): $protobuf.Writer; - /** RelayOptions kafka */ - kafka?: (protos.opts.IRelayGroupKafkaOptions|null); - - /** RelayOptions awsSqs */ - awsSqs?: (protos.opts.IRelayGroupAWSSQSOptions|null); + /** + * Encodes the specified AWSSQSConn message, length delimited. Does not implicitly {@link protos.args.AWSSQSConn.verify|verify} messages. + * @param message AWSSQSConn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: protos.args.IAWSSQSConn, writer?: $protobuf.Writer): $protobuf.Writer; - /** RelayOptions mongo */ - mongo?: (protos.opts.IRelayGroupMongoOptions|null); + /** + * Decodes a AWSSQSConn message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AWSSQSConn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSSQSConn; - /** RelayOptions nsq */ - nsq?: (protos.opts.IRelayGroupNSQOptions|null); + /** + * Decodes a AWSSQSConn message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AWSSQSConn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSSQSConn; - /** RelayOptions rabbit */ - rabbit?: (protos.opts.IRelayGroupRabbitOptions|null); + /** + * Verifies a AWSSQSConn message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** RelayOptions mqtt */ - mqtt?: (protos.opts.IRelayGroupMQTTOptions|null); + /** + * Creates a AWSSQSConn message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AWSSQSConn + */ + public static fromObject(object: { [k: string]: any }): protos.args.AWSSQSConn; - /** RelayOptions azureServiceBus */ - azureServiceBus?: (protos.opts.IRelayGroupAzureServiceBusOptions|null); + /** + * Creates a plain object from a AWSSQSConn message. Also converts values to other types if specified. + * @param message AWSSQSConn + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: protos.args.AWSSQSConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** RelayOptions gcpPubsub */ - gcpPubsub?: (protos.opts.IRelayGroupGCPPubSubOptions|null); + /** + * Converts this AWSSQSConn to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** RelayOptions kubemqQueue */ - kubemqQueue?: (protos.opts.IRelayGroupKubeMQQueueOptions|null); + /** Properties of a AWSSQSReadArgs. */ + interface IAWSSQSReadArgs { - /** RelayOptions redisPubsub */ - redisPubsub?: (protos.opts.IRelayGroupRedisPubSubOptions|null); + /** AWSSQSReadArgs queueName */ + queueName?: (string|null); - /** RelayOptions redisStreams */ - redisStreams?: (protos.opts.IRelayGroupRedisStreamsOptions|null); + /** AWSSQSReadArgs remoteAccountId */ + remoteAccountId?: (string|null); - /** RelayOptions postgres */ - postgres?: (protos.opts.IRelayGroupPostgresOptions|null); + /** AWSSQSReadArgs maxNumMessages */ + maxNumMessages?: (number|Long|null); - /** RelayOptions nats */ - nats?: (protos.opts.IRelayGroupNatsOptions|null); + /** AWSSQSReadArgs receiveRequestAttemptId */ + receiveRequestAttemptId?: (string|null); - /** RelayOptions natsStreaming */ - natsStreaming?: (protos.opts.IRelayGroupNatsStreamingOptions|null); + /** AWSSQSReadArgs autoDelete */ + autoDelete?: (boolean|null); - /** RelayOptions natsJetstream */ - natsJetstream?: (protos.opts.IRelayGroupNatsJetStreamOptions|null); + /** AWSSQSReadArgs waitTimeSeconds */ + waitTimeSeconds?: (number|Long|null); } - /** Represents a RelayOptions. */ - class RelayOptions implements IRelayOptions { + /** Represents a AWSSQSReadArgs. */ + class AWSSQSReadArgs implements IAWSSQSReadArgs { /** - * Constructs a new RelayOptions. + * Constructs a new AWSSQSReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayOptions); - - /** RelayOptions collectionToken. */ - public collectionToken: string; - - /** RelayOptions batchSize. */ - public batchSize: number; - - /** RelayOptions batchMaxRetry. */ - public batchMaxRetry: number; - - /** RelayOptions connectionId. */ - public connectionId: string; - - /** RelayOptions numWorkers. */ - public numWorkers: number; - - /** RelayOptions statsEnable. */ - public statsEnable: boolean; - - /** RelayOptions statsReportIntervalSec. */ - public statsReportIntervalSec: number; - - /** RelayOptions deadLetter. */ - public deadLetter: boolean; - - /** RelayOptions _streamdalGrpcAddress. */ - public _streamdalGrpcAddress: string; - - /** RelayOptions _streamdalGrpcDisableTls. */ - public _streamdalGrpcDisableTls: boolean; - - /** RelayOptions _streamdalGrpcTimeoutSeconds. */ - public _streamdalGrpcTimeoutSeconds: number; - - /** RelayOptions _relayId. */ - public _relayId: string; - - /** RelayOptions _cliOptions. */ - public _cliOptions?: (protos.opts.IRelayCLIOptions|null); - - /** RelayOptions _active. */ - public _active: boolean; - - /** RelayOptions kafka. */ - public kafka?: (protos.opts.IRelayGroupKafkaOptions|null); - - /** RelayOptions awsSqs. */ - public awsSqs?: (protos.opts.IRelayGroupAWSSQSOptions|null); - - /** RelayOptions mongo. */ - public mongo?: (protos.opts.IRelayGroupMongoOptions|null); - - /** RelayOptions nsq. */ - public nsq?: (protos.opts.IRelayGroupNSQOptions|null); - - /** RelayOptions rabbit. */ - public rabbit?: (protos.opts.IRelayGroupRabbitOptions|null); - - /** RelayOptions mqtt. */ - public mqtt?: (protos.opts.IRelayGroupMQTTOptions|null); - - /** RelayOptions azureServiceBus. */ - public azureServiceBus?: (protos.opts.IRelayGroupAzureServiceBusOptions|null); - - /** RelayOptions gcpPubsub. */ - public gcpPubsub?: (protos.opts.IRelayGroupGCPPubSubOptions|null); - - /** RelayOptions kubemqQueue. */ - public kubemqQueue?: (protos.opts.IRelayGroupKubeMQQueueOptions|null); + constructor(properties?: protos.args.IAWSSQSReadArgs); - /** RelayOptions redisPubsub. */ - public redisPubsub?: (protos.opts.IRelayGroupRedisPubSubOptions|null); + /** AWSSQSReadArgs queueName. */ + public queueName: string; - /** RelayOptions redisStreams. */ - public redisStreams?: (protos.opts.IRelayGroupRedisStreamsOptions|null); + /** AWSSQSReadArgs remoteAccountId. */ + public remoteAccountId: string; - /** RelayOptions postgres. */ - public postgres?: (protos.opts.IRelayGroupPostgresOptions|null); + /** AWSSQSReadArgs maxNumMessages. */ + public maxNumMessages: (number|Long); - /** RelayOptions nats. */ - public nats?: (protos.opts.IRelayGroupNatsOptions|null); + /** AWSSQSReadArgs receiveRequestAttemptId. */ + public receiveRequestAttemptId: string; - /** RelayOptions natsStreaming. */ - public natsStreaming?: (protos.opts.IRelayGroupNatsStreamingOptions|null); + /** AWSSQSReadArgs autoDelete. */ + public autoDelete: boolean; - /** RelayOptions natsJetstream. */ - public natsJetstream?: (protos.opts.IRelayGroupNatsJetStreamOptions|null); + /** AWSSQSReadArgs waitTimeSeconds. */ + public waitTimeSeconds: (number|Long); /** - * Creates a new RelayOptions instance using the specified properties. + * Creates a new AWSSQSReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns RelayOptions instance + * @returns AWSSQSReadArgs instance */ - public static create(properties?: protos.opts.IRelayOptions): protos.opts.RelayOptions; + public static create(properties?: protos.args.IAWSSQSReadArgs): protos.args.AWSSQSReadArgs; /** - * Encodes the specified RelayOptions message. Does not implicitly {@link protos.opts.RelayOptions.verify|verify} messages. - * @param message RelayOptions message or plain object to encode + * Encodes the specified AWSSQSReadArgs message. Does not implicitly {@link protos.args.AWSSQSReadArgs.verify|verify} messages. + * @param message AWSSQSReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IAWSSQSReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayOptions message, length delimited. Does not implicitly {@link protos.opts.RelayOptions.verify|verify} messages. - * @param message RelayOptions message or plain object to encode + * Encodes the specified AWSSQSReadArgs message, length delimited. Does not implicitly {@link protos.args.AWSSQSReadArgs.verify|verify} messages. + * @param message AWSSQSReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IAWSSQSReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayOptions message from the specified reader or buffer. + * Decodes a AWSSQSReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayOptions + * @returns AWSSQSReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSSQSReadArgs; /** - * Decodes a RelayOptions message from the specified reader or buffer, length delimited. + * Decodes a AWSSQSReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayOptions + * @returns AWSSQSReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSSQSReadArgs; /** - * Verifies a RelayOptions message. + * Verifies a AWSSQSReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayOptions message from a plain object. Also converts values to their respective internal types. + * Creates a AWSSQSReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayOptions + * @returns AWSSQSReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayOptions; + public static fromObject(object: { [k: string]: any }): protos.args.AWSSQSReadArgs; /** - * Creates a plain object from a RelayOptions message. Also converts values to other types if specified. - * @param message RelayOptions + * Creates a plain object from a AWSSQSReadArgs message. Also converts values to other types if specified. + * @param message AWSSQSReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.AWSSQSReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayOptions to JSON. + * Converts this AWSSQSReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupKafkaOptions. */ - interface IRelayGroupKafkaOptions { + /** Properties of a AWSSQSWriteArgs. */ + interface IAWSSQSWriteArgs { - /** RelayGroupKafkaOptions _conn */ - _conn?: (protos.args.IKafkaConn|null); + /** AWSSQSWriteArgs queueName */ + queueName?: (string|null); + + /** AWSSQSWriteArgs remoteAccountId */ + remoteAccountId?: (string|null); + + /** AWSSQSWriteArgs delaySeconds */ + delaySeconds?: (number|Long|null); + + /** AWSSQSWriteArgs attributes */ + attributes?: ({ [k: string]: string }|null); + + /** AWSSQSWriteArgs messageGroupId */ + messageGroupId?: (string|null); - /** RelayGroupKafkaOptions args */ - args?: (protos.args.IKafkaRelayArgs|null); + /** AWSSQSWriteArgs messageDeduplicationId */ + messageDeduplicationId?: (string|null); } - /** Represents a RelayGroupKafkaOptions. */ - class RelayGroupKafkaOptions implements IRelayGroupKafkaOptions { + /** Represents a AWSSQSWriteArgs. */ + class AWSSQSWriteArgs implements IAWSSQSWriteArgs { /** - * Constructs a new RelayGroupKafkaOptions. + * Constructs a new AWSSQSWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayGroupKafkaOptions); + constructor(properties?: protos.args.IAWSSQSWriteArgs); - /** RelayGroupKafkaOptions _conn. */ - public _conn?: (protos.args.IKafkaConn|null); + /** AWSSQSWriteArgs queueName. */ + public queueName: string; + + /** AWSSQSWriteArgs remoteAccountId. */ + public remoteAccountId: string; + + /** AWSSQSWriteArgs delaySeconds. */ + public delaySeconds: (number|Long); - /** RelayGroupKafkaOptions args. */ - public args?: (protos.args.IKafkaRelayArgs|null); + /** AWSSQSWriteArgs attributes. */ + public attributes: { [k: string]: string }; + + /** AWSSQSWriteArgs messageGroupId. */ + public messageGroupId: string; + + /** AWSSQSWriteArgs messageDeduplicationId. */ + public messageDeduplicationId: string; /** - * Creates a new RelayGroupKafkaOptions instance using the specified properties. + * Creates a new AWSSQSWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupKafkaOptions instance + * @returns AWSSQSWriteArgs instance */ - public static create(properties?: protos.opts.IRelayGroupKafkaOptions): protos.opts.RelayGroupKafkaOptions; + public static create(properties?: protos.args.IAWSSQSWriteArgs): protos.args.AWSSQSWriteArgs; /** - * Encodes the specified RelayGroupKafkaOptions message. Does not implicitly {@link protos.opts.RelayGroupKafkaOptions.verify|verify} messages. - * @param message RelayGroupKafkaOptions message or plain object to encode + * Encodes the specified AWSSQSWriteArgs message. Does not implicitly {@link protos.args.AWSSQSWriteArgs.verify|verify} messages. + * @param message AWSSQSWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupKafkaOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IAWSSQSWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupKafkaOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupKafkaOptions.verify|verify} messages. - * @param message RelayGroupKafkaOptions message or plain object to encode + * Encodes the specified AWSSQSWriteArgs message, length delimited. Does not implicitly {@link protos.args.AWSSQSWriteArgs.verify|verify} messages. + * @param message AWSSQSWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupKafkaOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IAWSSQSWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupKafkaOptions message from the specified reader or buffer. + * Decodes a AWSSQSWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupKafkaOptions + * @returns AWSSQSWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupKafkaOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSSQSWriteArgs; /** - * Decodes a RelayGroupKafkaOptions message from the specified reader or buffer, length delimited. + * Decodes a AWSSQSWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupKafkaOptions + * @returns AWSSQSWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupKafkaOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSSQSWriteArgs; /** - * Verifies a RelayGroupKafkaOptions message. + * Verifies a AWSSQSWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupKafkaOptions message from a plain object. Also converts values to their respective internal types. + * Creates a AWSSQSWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupKafkaOptions + * @returns AWSSQSWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupKafkaOptions; + public static fromObject(object: { [k: string]: any }): protos.args.AWSSQSWriteArgs; /** - * Creates a plain object from a RelayGroupKafkaOptions message. Also converts values to other types if specified. - * @param message RelayGroupKafkaOptions + * Creates a plain object from a AWSSQSWriteArgs message. Also converts values to other types if specified. + * @param message AWSSQSWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupKafkaOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.AWSSQSWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupKafkaOptions to JSON. + * Converts this AWSSQSWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupAWSSQSOptions. */ - interface IRelayGroupAWSSQSOptions { + /** Properties of a AWSSQSRelayArgs. */ + interface IAWSSQSRelayArgs { + + /** AWSSQSRelayArgs queueName */ + queueName?: (string|null); + + /** AWSSQSRelayArgs remoteAccountId */ + remoteAccountId?: (string|null); - /** RelayGroupAWSSQSOptions _conn */ - _conn?: (protos.args.IAWSSQSConn|null); + /** AWSSQSRelayArgs maxNumMessages */ + maxNumMessages?: (number|Long|null); + + /** AWSSQSRelayArgs receiveRequestAttemptId */ + receiveRequestAttemptId?: (string|null); + + /** AWSSQSRelayArgs autoDelete */ + autoDelete?: (boolean|null); - /** RelayGroupAWSSQSOptions args */ - args?: (protos.args.IAWSSQSRelayArgs|null); + /** AWSSQSRelayArgs waitTimeSeconds */ + waitTimeSeconds?: (number|Long|null); } - /** Represents a RelayGroupAWSSQSOptions. */ - class RelayGroupAWSSQSOptions implements IRelayGroupAWSSQSOptions { + /** Represents a AWSSQSRelayArgs. */ + class AWSSQSRelayArgs implements IAWSSQSRelayArgs { /** - * Constructs a new RelayGroupAWSSQSOptions. + * Constructs a new AWSSQSRelayArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayGroupAWSSQSOptions); + constructor(properties?: protos.args.IAWSSQSRelayArgs); - /** RelayGroupAWSSQSOptions _conn. */ - public _conn?: (protos.args.IAWSSQSConn|null); + /** AWSSQSRelayArgs queueName. */ + public queueName: string; + + /** AWSSQSRelayArgs remoteAccountId. */ + public remoteAccountId: string; + + /** AWSSQSRelayArgs maxNumMessages. */ + public maxNumMessages: (number|Long); + + /** AWSSQSRelayArgs receiveRequestAttemptId. */ + public receiveRequestAttemptId: string; + + /** AWSSQSRelayArgs autoDelete. */ + public autoDelete: boolean; - /** RelayGroupAWSSQSOptions args. */ - public args?: (protos.args.IAWSSQSRelayArgs|null); + /** AWSSQSRelayArgs waitTimeSeconds. */ + public waitTimeSeconds: (number|Long); /** - * Creates a new RelayGroupAWSSQSOptions instance using the specified properties. + * Creates a new AWSSQSRelayArgs instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupAWSSQSOptions instance + * @returns AWSSQSRelayArgs instance */ - public static create(properties?: protos.opts.IRelayGroupAWSSQSOptions): protos.opts.RelayGroupAWSSQSOptions; + public static create(properties?: protos.args.IAWSSQSRelayArgs): protos.args.AWSSQSRelayArgs; /** - * Encodes the specified RelayGroupAWSSQSOptions message. Does not implicitly {@link protos.opts.RelayGroupAWSSQSOptions.verify|verify} messages. - * @param message RelayGroupAWSSQSOptions message or plain object to encode + * Encodes the specified AWSSQSRelayArgs message. Does not implicitly {@link protos.args.AWSSQSRelayArgs.verify|verify} messages. + * @param message AWSSQSRelayArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupAWSSQSOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IAWSSQSRelayArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupAWSSQSOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupAWSSQSOptions.verify|verify} messages. - * @param message RelayGroupAWSSQSOptions message or plain object to encode + * Encodes the specified AWSSQSRelayArgs message, length delimited. Does not implicitly {@link protos.args.AWSSQSRelayArgs.verify|verify} messages. + * @param message AWSSQSRelayArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupAWSSQSOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IAWSSQSRelayArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupAWSSQSOptions message from the specified reader or buffer. + * Decodes a AWSSQSRelayArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupAWSSQSOptions + * @returns AWSSQSRelayArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupAWSSQSOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSSQSRelayArgs; /** - * Decodes a RelayGroupAWSSQSOptions message from the specified reader or buffer, length delimited. + * Decodes a AWSSQSRelayArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupAWSSQSOptions + * @returns AWSSQSRelayArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupAWSSQSOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSSQSRelayArgs; /** - * Verifies a RelayGroupAWSSQSOptions message. + * Verifies a AWSSQSRelayArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupAWSSQSOptions message from a plain object. Also converts values to their respective internal types. + * Creates a AWSSQSRelayArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupAWSSQSOptions + * @returns AWSSQSRelayArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupAWSSQSOptions; + public static fromObject(object: { [k: string]: any }): protos.args.AWSSQSRelayArgs; /** - * Creates a plain object from a RelayGroupAWSSQSOptions message. Also converts values to other types if specified. - * @param message RelayGroupAWSSQSOptions + * Creates a plain object from a AWSSQSRelayArgs message. Also converts values to other types if specified. + * @param message AWSSQSRelayArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupAWSSQSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.AWSSQSRelayArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupAWSSQSOptions to JSON. + * Converts this AWSSQSRelayArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupMongoOptions. */ - interface IRelayGroupMongoOptions { + /** Properties of an AzureEventHubConn. */ + interface IAzureEventHubConn { - /** RelayGroupMongoOptions _conn */ - _conn?: (protos.args.IMongoConn|null); - - /** RelayGroupMongoOptions args */ - args?: (protos.args.IMongoReadArgs|null); + /** AzureEventHubConn connectionString */ + connectionString?: (string|null); } - /** Represents a RelayGroupMongoOptions. */ - class RelayGroupMongoOptions implements IRelayGroupMongoOptions { + /** Represents an AzureEventHubConn. */ + class AzureEventHubConn implements IAzureEventHubConn { /** - * Constructs a new RelayGroupMongoOptions. + * Constructs a new AzureEventHubConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayGroupMongoOptions); - - /** RelayGroupMongoOptions _conn. */ - public _conn?: (protos.args.IMongoConn|null); + constructor(properties?: protos.args.IAzureEventHubConn); - /** RelayGroupMongoOptions args. */ - public args?: (protos.args.IMongoReadArgs|null); + /** AzureEventHubConn connectionString. */ + public connectionString: string; /** - * Creates a new RelayGroupMongoOptions instance using the specified properties. + * Creates a new AzureEventHubConn instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupMongoOptions instance + * @returns AzureEventHubConn instance */ - public static create(properties?: protos.opts.IRelayGroupMongoOptions): protos.opts.RelayGroupMongoOptions; + public static create(properties?: protos.args.IAzureEventHubConn): protos.args.AzureEventHubConn; /** - * Encodes the specified RelayGroupMongoOptions message. Does not implicitly {@link protos.opts.RelayGroupMongoOptions.verify|verify} messages. - * @param message RelayGroupMongoOptions message or plain object to encode + * Encodes the specified AzureEventHubConn message. Does not implicitly {@link protos.args.AzureEventHubConn.verify|verify} messages. + * @param message AzureEventHubConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupMongoOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IAzureEventHubConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupMongoOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupMongoOptions.verify|verify} messages. - * @param message RelayGroupMongoOptions message or plain object to encode + * Encodes the specified AzureEventHubConn message, length delimited. Does not implicitly {@link protos.args.AzureEventHubConn.verify|verify} messages. + * @param message AzureEventHubConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupMongoOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IAzureEventHubConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupMongoOptions message from the specified reader or buffer. + * Decodes an AzureEventHubConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupMongoOptions + * @returns AzureEventHubConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupMongoOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AzureEventHubConn; /** - * Decodes a RelayGroupMongoOptions message from the specified reader or buffer, length delimited. + * Decodes an AzureEventHubConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupMongoOptions + * @returns AzureEventHubConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupMongoOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AzureEventHubConn; /** - * Verifies a RelayGroupMongoOptions message. + * Verifies an AzureEventHubConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupMongoOptions message from a plain object. Also converts values to their respective internal types. + * Creates an AzureEventHubConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupMongoOptions + * @returns AzureEventHubConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupMongoOptions; + public static fromObject(object: { [k: string]: any }): protos.args.AzureEventHubConn; /** - * Creates a plain object from a RelayGroupMongoOptions message. Also converts values to other types if specified. - * @param message RelayGroupMongoOptions + * Creates a plain object from an AzureEventHubConn message. Also converts values to other types if specified. + * @param message AzureEventHubConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupMongoOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.AzureEventHubConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupMongoOptions to JSON. + * Converts this AzureEventHubConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupNSQOptions. */ - interface IRelayGroupNSQOptions { - - /** RelayGroupNSQOptions _conn */ - _conn?: (protos.args.INSQConn|null); - - /** RelayGroupNSQOptions args */ - args?: (protos.args.INSQReadArgs|null); + /** Properties of an AzureEventHubReadArgs. */ + interface IAzureEventHubReadArgs { } - /** Represents a RelayGroupNSQOptions. */ - class RelayGroupNSQOptions implements IRelayGroupNSQOptions { + /** Represents an AzureEventHubReadArgs. */ + class AzureEventHubReadArgs implements IAzureEventHubReadArgs { /** - * Constructs a new RelayGroupNSQOptions. + * Constructs a new AzureEventHubReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayGroupNSQOptions); - - /** RelayGroupNSQOptions _conn. */ - public _conn?: (protos.args.INSQConn|null); - - /** RelayGroupNSQOptions args. */ - public args?: (protos.args.INSQReadArgs|null); + constructor(properties?: protos.args.IAzureEventHubReadArgs); /** - * Creates a new RelayGroupNSQOptions instance using the specified properties. + * Creates a new AzureEventHubReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupNSQOptions instance + * @returns AzureEventHubReadArgs instance */ - public static create(properties?: protos.opts.IRelayGroupNSQOptions): protos.opts.RelayGroupNSQOptions; + public static create(properties?: protos.args.IAzureEventHubReadArgs): protos.args.AzureEventHubReadArgs; /** - * Encodes the specified RelayGroupNSQOptions message. Does not implicitly {@link protos.opts.RelayGroupNSQOptions.verify|verify} messages. - * @param message RelayGroupNSQOptions message or plain object to encode + * Encodes the specified AzureEventHubReadArgs message. Does not implicitly {@link protos.args.AzureEventHubReadArgs.verify|verify} messages. + * @param message AzureEventHubReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupNSQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IAzureEventHubReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupNSQOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupNSQOptions.verify|verify} messages. - * @param message RelayGroupNSQOptions message or plain object to encode + * Encodes the specified AzureEventHubReadArgs message, length delimited. Does not implicitly {@link protos.args.AzureEventHubReadArgs.verify|verify} messages. + * @param message AzureEventHubReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupNSQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IAzureEventHubReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupNSQOptions message from the specified reader or buffer. + * Decodes an AzureEventHubReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupNSQOptions + * @returns AzureEventHubReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupNSQOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AzureEventHubReadArgs; /** - * Decodes a RelayGroupNSQOptions message from the specified reader or buffer, length delimited. + * Decodes an AzureEventHubReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupNSQOptions + * @returns AzureEventHubReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupNSQOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AzureEventHubReadArgs; /** - * Verifies a RelayGroupNSQOptions message. + * Verifies an AzureEventHubReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupNSQOptions message from a plain object. Also converts values to their respective internal types. + * Creates an AzureEventHubReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupNSQOptions + * @returns AzureEventHubReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupNSQOptions; + public static fromObject(object: { [k: string]: any }): protos.args.AzureEventHubReadArgs; /** - * Creates a plain object from a RelayGroupNSQOptions message. Also converts values to other types if specified. - * @param message RelayGroupNSQOptions + * Creates a plain object from an AzureEventHubReadArgs message. Also converts values to other types if specified. + * @param message AzureEventHubReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupNSQOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.AzureEventHubReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupNSQOptions to JSON. + * Converts this AzureEventHubReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupPostgresOptions. */ - interface IRelayGroupPostgresOptions { + /** Properties of an AzureEventHubWriteArgs. */ + interface IAzureEventHubWriteArgs { - /** RelayGroupPostgresOptions _conn */ - _conn?: (protos.args.IPostgresConn|null); + /** AzureEventHubWriteArgs messageId */ + messageId?: (string|null); - /** RelayGroupPostgresOptions args */ - args?: (protos.args.IPostgresReadArgs|null); + /** AzureEventHubWriteArgs partitionKey */ + partitionKey?: (string|null); } - /** Represents a RelayGroupPostgresOptions. */ - class RelayGroupPostgresOptions implements IRelayGroupPostgresOptions { + /** Represents an AzureEventHubWriteArgs. */ + class AzureEventHubWriteArgs implements IAzureEventHubWriteArgs { /** - * Constructs a new RelayGroupPostgresOptions. + * Constructs a new AzureEventHubWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayGroupPostgresOptions); + constructor(properties?: protos.args.IAzureEventHubWriteArgs); - /** RelayGroupPostgresOptions _conn. */ - public _conn?: (protos.args.IPostgresConn|null); + /** AzureEventHubWriteArgs messageId. */ + public messageId: string; - /** RelayGroupPostgresOptions args. */ - public args?: (protos.args.IPostgresReadArgs|null); + /** AzureEventHubWriteArgs partitionKey. */ + public partitionKey: string; /** - * Creates a new RelayGroupPostgresOptions instance using the specified properties. + * Creates a new AzureEventHubWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupPostgresOptions instance + * @returns AzureEventHubWriteArgs instance */ - public static create(properties?: protos.opts.IRelayGroupPostgresOptions): protos.opts.RelayGroupPostgresOptions; + public static create(properties?: protos.args.IAzureEventHubWriteArgs): protos.args.AzureEventHubWriteArgs; /** - * Encodes the specified RelayGroupPostgresOptions message. Does not implicitly {@link protos.opts.RelayGroupPostgresOptions.verify|verify} messages. - * @param message RelayGroupPostgresOptions message or plain object to encode + * Encodes the specified AzureEventHubWriteArgs message. Does not implicitly {@link protos.args.AzureEventHubWriteArgs.verify|verify} messages. + * @param message AzureEventHubWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupPostgresOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IAzureEventHubWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupPostgresOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupPostgresOptions.verify|verify} messages. - * @param message RelayGroupPostgresOptions message or plain object to encode + * Encodes the specified AzureEventHubWriteArgs message, length delimited. Does not implicitly {@link protos.args.AzureEventHubWriteArgs.verify|verify} messages. + * @param message AzureEventHubWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupPostgresOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IAzureEventHubWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupPostgresOptions message from the specified reader or buffer. + * Decodes an AzureEventHubWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupPostgresOptions + * @returns AzureEventHubWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupPostgresOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AzureEventHubWriteArgs; /** - * Decodes a RelayGroupPostgresOptions message from the specified reader or buffer, length delimited. + * Decodes an AzureEventHubWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupPostgresOptions + * @returns AzureEventHubWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupPostgresOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AzureEventHubWriteArgs; /** - * Verifies a RelayGroupPostgresOptions message. + * Verifies an AzureEventHubWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupPostgresOptions message from a plain object. Also converts values to their respective internal types. + * Creates an AzureEventHubWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupPostgresOptions + * @returns AzureEventHubWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupPostgresOptions; + public static fromObject(object: { [k: string]: any }): protos.args.AzureEventHubWriteArgs; /** - * Creates a plain object from a RelayGroupPostgresOptions message. Also converts values to other types if specified. - * @param message RelayGroupPostgresOptions + * Creates a plain object from an AzureEventHubWriteArgs message. Also converts values to other types if specified. + * @param message AzureEventHubWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupPostgresOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.AzureEventHubWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupPostgresOptions to JSON. + * Converts this AzureEventHubWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupRabbitOptions. */ - interface IRelayGroupRabbitOptions { - - /** RelayGroupRabbitOptions _conn */ - _conn?: (protos.args.IRabbitConn|null); + /** Properties of an AzureServiceBusConn. */ + interface IAzureServiceBusConn { - /** RelayGroupRabbitOptions args */ - args?: (protos.args.IRabbitReadArgs|null); + /** AzureServiceBusConn connectionString */ + connectionString?: (string|null); } - /** Represents a RelayGroupRabbitOptions. */ - class RelayGroupRabbitOptions implements IRelayGroupRabbitOptions { + /** Represents an AzureServiceBusConn. */ + class AzureServiceBusConn implements IAzureServiceBusConn { /** - * Constructs a new RelayGroupRabbitOptions. + * Constructs a new AzureServiceBusConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayGroupRabbitOptions); - - /** RelayGroupRabbitOptions _conn. */ - public _conn?: (protos.args.IRabbitConn|null); + constructor(properties?: protos.args.IAzureServiceBusConn); - /** RelayGroupRabbitOptions args. */ - public args?: (protos.args.IRabbitReadArgs|null); + /** AzureServiceBusConn connectionString. */ + public connectionString: string; /** - * Creates a new RelayGroupRabbitOptions instance using the specified properties. + * Creates a new AzureServiceBusConn instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupRabbitOptions instance + * @returns AzureServiceBusConn instance */ - public static create(properties?: protos.opts.IRelayGroupRabbitOptions): protos.opts.RelayGroupRabbitOptions; + public static create(properties?: protos.args.IAzureServiceBusConn): protos.args.AzureServiceBusConn; /** - * Encodes the specified RelayGroupRabbitOptions message. Does not implicitly {@link protos.opts.RelayGroupRabbitOptions.verify|verify} messages. - * @param message RelayGroupRabbitOptions message or plain object to encode + * Encodes the specified AzureServiceBusConn message. Does not implicitly {@link protos.args.AzureServiceBusConn.verify|verify} messages. + * @param message AzureServiceBusConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupRabbitOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IAzureServiceBusConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupRabbitOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupRabbitOptions.verify|verify} messages. - * @param message RelayGroupRabbitOptions message or plain object to encode + * Encodes the specified AzureServiceBusConn message, length delimited. Does not implicitly {@link protos.args.AzureServiceBusConn.verify|verify} messages. + * @param message AzureServiceBusConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupRabbitOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IAzureServiceBusConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupRabbitOptions message from the specified reader or buffer. + * Decodes an AzureServiceBusConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupRabbitOptions + * @returns AzureServiceBusConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupRabbitOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AzureServiceBusConn; /** - * Decodes a RelayGroupRabbitOptions message from the specified reader or buffer, length delimited. + * Decodes an AzureServiceBusConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupRabbitOptions + * @returns AzureServiceBusConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupRabbitOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AzureServiceBusConn; /** - * Verifies a RelayGroupRabbitOptions message. + * Verifies an AzureServiceBusConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupRabbitOptions message from a plain object. Also converts values to their respective internal types. + * Creates an AzureServiceBusConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupRabbitOptions + * @returns AzureServiceBusConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupRabbitOptions; + public static fromObject(object: { [k: string]: any }): protos.args.AzureServiceBusConn; /** - * Creates a plain object from a RelayGroupRabbitOptions message. Also converts values to other types if specified. - * @param message RelayGroupRabbitOptions + * Creates a plain object from an AzureServiceBusConn message. Also converts values to other types if specified. + * @param message AzureServiceBusConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupRabbitOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.AzureServiceBusConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupRabbitOptions to JSON. + * Converts this AzureServiceBusConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupRedisPubSubOptions. */ - interface IRelayGroupRedisPubSubOptions { + /** Properties of an AzureServiceBusReadArgs. */ + interface IAzureServiceBusReadArgs { - /** RelayGroupRedisPubSubOptions _conn */ - _conn?: (protos.args.IRedisPubSubConn|null); + /** AzureServiceBusReadArgs queue */ + queue?: (string|null); - /** RelayGroupRedisPubSubOptions args */ - args?: (protos.args.IRedisPubSubReadArgs|null); + /** AzureServiceBusReadArgs topic */ + topic?: (string|null); + + /** AzureServiceBusReadArgs subscriptionName */ + subscriptionName?: (string|null); } - /** Represents a RelayGroupRedisPubSubOptions. */ - class RelayGroupRedisPubSubOptions implements IRelayGroupRedisPubSubOptions { + /** Represents an AzureServiceBusReadArgs. */ + class AzureServiceBusReadArgs implements IAzureServiceBusReadArgs { /** - * Constructs a new RelayGroupRedisPubSubOptions. + * Constructs a new AzureServiceBusReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayGroupRedisPubSubOptions); + constructor(properties?: protos.args.IAzureServiceBusReadArgs); - /** RelayGroupRedisPubSubOptions _conn. */ - public _conn?: (protos.args.IRedisPubSubConn|null); + /** AzureServiceBusReadArgs queue. */ + public queue: string; - /** RelayGroupRedisPubSubOptions args. */ - public args?: (protos.args.IRedisPubSubReadArgs|null); + /** AzureServiceBusReadArgs topic. */ + public topic: string; + + /** AzureServiceBusReadArgs subscriptionName. */ + public subscriptionName: string; /** - * Creates a new RelayGroupRedisPubSubOptions instance using the specified properties. + * Creates a new AzureServiceBusReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupRedisPubSubOptions instance + * @returns AzureServiceBusReadArgs instance */ - public static create(properties?: protos.opts.IRelayGroupRedisPubSubOptions): protos.opts.RelayGroupRedisPubSubOptions; + public static create(properties?: protos.args.IAzureServiceBusReadArgs): protos.args.AzureServiceBusReadArgs; /** - * Encodes the specified RelayGroupRedisPubSubOptions message. Does not implicitly {@link protos.opts.RelayGroupRedisPubSubOptions.verify|verify} messages. - * @param message RelayGroupRedisPubSubOptions message or plain object to encode + * Encodes the specified AzureServiceBusReadArgs message. Does not implicitly {@link protos.args.AzureServiceBusReadArgs.verify|verify} messages. + * @param message AzureServiceBusReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupRedisPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IAzureServiceBusReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupRedisPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupRedisPubSubOptions.verify|verify} messages. - * @param message RelayGroupRedisPubSubOptions message or plain object to encode + * Encodes the specified AzureServiceBusReadArgs message, length delimited. Does not implicitly {@link protos.args.AzureServiceBusReadArgs.verify|verify} messages. + * @param message AzureServiceBusReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupRedisPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IAzureServiceBusReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupRedisPubSubOptions message from the specified reader or buffer. + * Decodes an AzureServiceBusReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupRedisPubSubOptions + * @returns AzureServiceBusReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupRedisPubSubOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AzureServiceBusReadArgs; /** - * Decodes a RelayGroupRedisPubSubOptions message from the specified reader or buffer, length delimited. + * Decodes an AzureServiceBusReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupRedisPubSubOptions + * @returns AzureServiceBusReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupRedisPubSubOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AzureServiceBusReadArgs; /** - * Verifies a RelayGroupRedisPubSubOptions message. + * Verifies an AzureServiceBusReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupRedisPubSubOptions message from a plain object. Also converts values to their respective internal types. + * Creates an AzureServiceBusReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupRedisPubSubOptions + * @returns AzureServiceBusReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupRedisPubSubOptions; + public static fromObject(object: { [k: string]: any }): protos.args.AzureServiceBusReadArgs; /** - * Creates a plain object from a RelayGroupRedisPubSubOptions message. Also converts values to other types if specified. - * @param message RelayGroupRedisPubSubOptions + * Creates a plain object from an AzureServiceBusReadArgs message. Also converts values to other types if specified. + * @param message AzureServiceBusReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupRedisPubSubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.AzureServiceBusReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupRedisPubSubOptions to JSON. + * Converts this AzureServiceBusReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupRedisStreamsOptions. */ - interface IRelayGroupRedisStreamsOptions { + /** Properties of an AzureServiceBusWriteArgs. */ + interface IAzureServiceBusWriteArgs { - /** RelayGroupRedisStreamsOptions _conn */ - _conn?: (protos.args.IRedisStreamsConn|null); + /** AzureServiceBusWriteArgs queue */ + queue?: (string|null); - /** RelayGroupRedisStreamsOptions args */ - args?: (protos.args.IRedisStreamsReadArgs|null); + /** AzureServiceBusWriteArgs topic */ + topic?: (string|null); } - /** Represents a RelayGroupRedisStreamsOptions. */ - class RelayGroupRedisStreamsOptions implements IRelayGroupRedisStreamsOptions { + /** Represents an AzureServiceBusWriteArgs. */ + class AzureServiceBusWriteArgs implements IAzureServiceBusWriteArgs { /** - * Constructs a new RelayGroupRedisStreamsOptions. + * Constructs a new AzureServiceBusWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayGroupRedisStreamsOptions); + constructor(properties?: protos.args.IAzureServiceBusWriteArgs); - /** RelayGroupRedisStreamsOptions _conn. */ - public _conn?: (protos.args.IRedisStreamsConn|null); + /** AzureServiceBusWriteArgs queue. */ + public queue: string; - /** RelayGroupRedisStreamsOptions args. */ - public args?: (protos.args.IRedisStreamsReadArgs|null); + /** AzureServiceBusWriteArgs topic. */ + public topic: string; /** - * Creates a new RelayGroupRedisStreamsOptions instance using the specified properties. + * Creates a new AzureServiceBusWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupRedisStreamsOptions instance + * @returns AzureServiceBusWriteArgs instance */ - public static create(properties?: protos.opts.IRelayGroupRedisStreamsOptions): protos.opts.RelayGroupRedisStreamsOptions; + public static create(properties?: protos.args.IAzureServiceBusWriteArgs): protos.args.AzureServiceBusWriteArgs; /** - * Encodes the specified RelayGroupRedisStreamsOptions message. Does not implicitly {@link protos.opts.RelayGroupRedisStreamsOptions.verify|verify} messages. - * @param message RelayGroupRedisStreamsOptions message or plain object to encode + * Encodes the specified AzureServiceBusWriteArgs message. Does not implicitly {@link protos.args.AzureServiceBusWriteArgs.verify|verify} messages. + * @param message AzureServiceBusWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupRedisStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IAzureServiceBusWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupRedisStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupRedisStreamsOptions.verify|verify} messages. - * @param message RelayGroupRedisStreamsOptions message or plain object to encode + * Encodes the specified AzureServiceBusWriteArgs message, length delimited. Does not implicitly {@link protos.args.AzureServiceBusWriteArgs.verify|verify} messages. + * @param message AzureServiceBusWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupRedisStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IAzureServiceBusWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupRedisStreamsOptions message from the specified reader or buffer. + * Decodes an AzureServiceBusWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupRedisStreamsOptions + * @returns AzureServiceBusWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupRedisStreamsOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AzureServiceBusWriteArgs; /** - * Decodes a RelayGroupRedisStreamsOptions message from the specified reader or buffer, length delimited. + * Decodes an AzureServiceBusWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupRedisStreamsOptions + * @returns AzureServiceBusWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupRedisStreamsOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AzureServiceBusWriteArgs; /** - * Verifies a RelayGroupRedisStreamsOptions message. + * Verifies an AzureServiceBusWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupRedisStreamsOptions message from a plain object. Also converts values to their respective internal types. + * Creates an AzureServiceBusWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupRedisStreamsOptions + * @returns AzureServiceBusWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupRedisStreamsOptions; + public static fromObject(object: { [k: string]: any }): protos.args.AzureServiceBusWriteArgs; /** - * Creates a plain object from a RelayGroupRedisStreamsOptions message. Also converts values to other types if specified. - * @param message RelayGroupRedisStreamsOptions + * Creates a plain object from an AzureServiceBusWriteArgs message. Also converts values to other types if specified. + * @param message AzureServiceBusWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupRedisStreamsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.AzureServiceBusWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupRedisStreamsOptions to JSON. + * Converts this AzureServiceBusWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupAzureServiceBusOptions. */ - interface IRelayGroupAzureServiceBusOptions { + /** Properties of a GCPPubSubConn. */ + interface IGCPPubSubConn { - /** RelayGroupAzureServiceBusOptions _conn */ - _conn?: (protos.args.IAzureServiceBusConn|null); + /** GCPPubSubConn projectId */ + projectId?: (string|null); - /** RelayGroupAzureServiceBusOptions args */ - args?: (protos.args.IAzureServiceBusReadArgs|null); + /** GCPPubSubConn credentialsJson */ + credentialsJson?: (string|null); + + /** GCPPubSubConn credentialsFile */ + credentialsFile?: (string|null); } - /** Represents a RelayGroupAzureServiceBusOptions. */ - class RelayGroupAzureServiceBusOptions implements IRelayGroupAzureServiceBusOptions { + /** Represents a GCPPubSubConn. */ + class GCPPubSubConn implements IGCPPubSubConn { /** - * Constructs a new RelayGroupAzureServiceBusOptions. + * Constructs a new GCPPubSubConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayGroupAzureServiceBusOptions); + constructor(properties?: protos.args.IGCPPubSubConn); - /** RelayGroupAzureServiceBusOptions _conn. */ - public _conn?: (protos.args.IAzureServiceBusConn|null); + /** GCPPubSubConn projectId. */ + public projectId: string; - /** RelayGroupAzureServiceBusOptions args. */ - public args?: (protos.args.IAzureServiceBusReadArgs|null); + /** GCPPubSubConn credentialsJson. */ + public credentialsJson: string; + + /** GCPPubSubConn credentialsFile. */ + public credentialsFile: string; /** - * Creates a new RelayGroupAzureServiceBusOptions instance using the specified properties. + * Creates a new GCPPubSubConn instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupAzureServiceBusOptions instance + * @returns GCPPubSubConn instance */ - public static create(properties?: protos.opts.IRelayGroupAzureServiceBusOptions): protos.opts.RelayGroupAzureServiceBusOptions; + public static create(properties?: protos.args.IGCPPubSubConn): protos.args.GCPPubSubConn; /** - * Encodes the specified RelayGroupAzureServiceBusOptions message. Does not implicitly {@link protos.opts.RelayGroupAzureServiceBusOptions.verify|verify} messages. - * @param message RelayGroupAzureServiceBusOptions message or plain object to encode + * Encodes the specified GCPPubSubConn message. Does not implicitly {@link protos.args.GCPPubSubConn.verify|verify} messages. + * @param message GCPPubSubConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupAzureServiceBusOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IGCPPubSubConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupAzureServiceBusOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupAzureServiceBusOptions.verify|verify} messages. - * @param message RelayGroupAzureServiceBusOptions message or plain object to encode + * Encodes the specified GCPPubSubConn message, length delimited. Does not implicitly {@link protos.args.GCPPubSubConn.verify|verify} messages. + * @param message GCPPubSubConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupAzureServiceBusOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IGCPPubSubConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupAzureServiceBusOptions message from the specified reader or buffer. + * Decodes a GCPPubSubConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupAzureServiceBusOptions + * @returns GCPPubSubConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupAzureServiceBusOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.GCPPubSubConn; /** - * Decodes a RelayGroupAzureServiceBusOptions message from the specified reader or buffer, length delimited. + * Decodes a GCPPubSubConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupAzureServiceBusOptions + * @returns GCPPubSubConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupAzureServiceBusOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.GCPPubSubConn; /** - * Verifies a RelayGroupAzureServiceBusOptions message. + * Verifies a GCPPubSubConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupAzureServiceBusOptions message from a plain object. Also converts values to their respective internal types. + * Creates a GCPPubSubConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupAzureServiceBusOptions + * @returns GCPPubSubConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupAzureServiceBusOptions; + public static fromObject(object: { [k: string]: any }): protos.args.GCPPubSubConn; /** - * Creates a plain object from a RelayGroupAzureServiceBusOptions message. Also converts values to other types if specified. - * @param message RelayGroupAzureServiceBusOptions + * Creates a plain object from a GCPPubSubConn message. Also converts values to other types if specified. + * @param message GCPPubSubConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupAzureServiceBusOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.GCPPubSubConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupAzureServiceBusOptions to JSON. + * Converts this GCPPubSubConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupMQTTOptions. */ - interface IRelayGroupMQTTOptions { + /** Properties of a GCPPubSubReadArgs. */ + interface IGCPPubSubReadArgs { - /** RelayGroupMQTTOptions _conn */ - _conn?: (protos.args.IMQTTConn|null); + /** GCPPubSubReadArgs subscriptionId */ + subscriptionId?: (string|null); - /** RelayGroupMQTTOptions args */ - args?: (protos.args.IMQTTReadArgs|null); + /** GCPPubSubReadArgs ackMessages */ + ackMessages?: (boolean|null); } - /** Represents a RelayGroupMQTTOptions. */ - class RelayGroupMQTTOptions implements IRelayGroupMQTTOptions { + /** Represents a GCPPubSubReadArgs. */ + class GCPPubSubReadArgs implements IGCPPubSubReadArgs { /** - * Constructs a new RelayGroupMQTTOptions. + * Constructs a new GCPPubSubReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayGroupMQTTOptions); + constructor(properties?: protos.args.IGCPPubSubReadArgs); - /** RelayGroupMQTTOptions _conn. */ - public _conn?: (protos.args.IMQTTConn|null); + /** GCPPubSubReadArgs subscriptionId. */ + public subscriptionId: string; - /** RelayGroupMQTTOptions args. */ - public args?: (protos.args.IMQTTReadArgs|null); + /** GCPPubSubReadArgs ackMessages. */ + public ackMessages: boolean; /** - * Creates a new RelayGroupMQTTOptions instance using the specified properties. + * Creates a new GCPPubSubReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupMQTTOptions instance + * @returns GCPPubSubReadArgs instance */ - public static create(properties?: protos.opts.IRelayGroupMQTTOptions): protos.opts.RelayGroupMQTTOptions; + public static create(properties?: protos.args.IGCPPubSubReadArgs): protos.args.GCPPubSubReadArgs; /** - * Encodes the specified RelayGroupMQTTOptions message. Does not implicitly {@link protos.opts.RelayGroupMQTTOptions.verify|verify} messages. - * @param message RelayGroupMQTTOptions message or plain object to encode + * Encodes the specified GCPPubSubReadArgs message. Does not implicitly {@link protos.args.GCPPubSubReadArgs.verify|verify} messages. + * @param message GCPPubSubReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupMQTTOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IGCPPubSubReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupMQTTOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupMQTTOptions.verify|verify} messages. - * @param message RelayGroupMQTTOptions message or plain object to encode + * Encodes the specified GCPPubSubReadArgs message, length delimited. Does not implicitly {@link protos.args.GCPPubSubReadArgs.verify|verify} messages. + * @param message GCPPubSubReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupMQTTOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IGCPPubSubReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupMQTTOptions message from the specified reader or buffer. + * Decodes a GCPPubSubReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupMQTTOptions + * @returns GCPPubSubReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupMQTTOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.GCPPubSubReadArgs; /** - * Decodes a RelayGroupMQTTOptions message from the specified reader or buffer, length delimited. + * Decodes a GCPPubSubReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupMQTTOptions + * @returns GCPPubSubReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupMQTTOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.GCPPubSubReadArgs; /** - * Verifies a RelayGroupMQTTOptions message. + * Verifies a GCPPubSubReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupMQTTOptions message from a plain object. Also converts values to their respective internal types. + * Creates a GCPPubSubReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupMQTTOptions + * @returns GCPPubSubReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupMQTTOptions; + public static fromObject(object: { [k: string]: any }): protos.args.GCPPubSubReadArgs; /** - * Creates a plain object from a RelayGroupMQTTOptions message. Also converts values to other types if specified. - * @param message RelayGroupMQTTOptions + * Creates a plain object from a GCPPubSubReadArgs message. Also converts values to other types if specified. + * @param message GCPPubSubReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupMQTTOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.GCPPubSubReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupMQTTOptions to JSON. + * Converts this GCPPubSubReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupGCPPubSubOptions. */ - interface IRelayGroupGCPPubSubOptions { - - /** RelayGroupGCPPubSubOptions _conn */ - _conn?: (protos.args.IGCPPubSubConn|null); + /** Properties of a GCPPubSubWriteArgs. */ + interface IGCPPubSubWriteArgs { - /** RelayGroupGCPPubSubOptions args */ - args?: (protos.args.IGCPPubSubReadArgs|null); + /** GCPPubSubWriteArgs topicId */ + topicId?: (string|null); } - /** Represents a RelayGroupGCPPubSubOptions. */ - class RelayGroupGCPPubSubOptions implements IRelayGroupGCPPubSubOptions { + /** Represents a GCPPubSubWriteArgs. */ + class GCPPubSubWriteArgs implements IGCPPubSubWriteArgs { /** - * Constructs a new RelayGroupGCPPubSubOptions. + * Constructs a new GCPPubSubWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayGroupGCPPubSubOptions); - - /** RelayGroupGCPPubSubOptions _conn. */ - public _conn?: (protos.args.IGCPPubSubConn|null); + constructor(properties?: protos.args.IGCPPubSubWriteArgs); - /** RelayGroupGCPPubSubOptions args. */ - public args?: (protos.args.IGCPPubSubReadArgs|null); + /** GCPPubSubWriteArgs topicId. */ + public topicId: string; /** - * Creates a new RelayGroupGCPPubSubOptions instance using the specified properties. + * Creates a new GCPPubSubWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupGCPPubSubOptions instance + * @returns GCPPubSubWriteArgs instance */ - public static create(properties?: protos.opts.IRelayGroupGCPPubSubOptions): protos.opts.RelayGroupGCPPubSubOptions; + public static create(properties?: protos.args.IGCPPubSubWriteArgs): protos.args.GCPPubSubWriteArgs; /** - * Encodes the specified RelayGroupGCPPubSubOptions message. Does not implicitly {@link protos.opts.RelayGroupGCPPubSubOptions.verify|verify} messages. - * @param message RelayGroupGCPPubSubOptions message or plain object to encode + * Encodes the specified GCPPubSubWriteArgs message. Does not implicitly {@link protos.args.GCPPubSubWriteArgs.verify|verify} messages. + * @param message GCPPubSubWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupGCPPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IGCPPubSubWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupGCPPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupGCPPubSubOptions.verify|verify} messages. - * @param message RelayGroupGCPPubSubOptions message or plain object to encode + * Encodes the specified GCPPubSubWriteArgs message, length delimited. Does not implicitly {@link protos.args.GCPPubSubWriteArgs.verify|verify} messages. + * @param message GCPPubSubWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupGCPPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IGCPPubSubWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupGCPPubSubOptions message from the specified reader or buffer. + * Decodes a GCPPubSubWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupGCPPubSubOptions + * @returns GCPPubSubWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupGCPPubSubOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.GCPPubSubWriteArgs; /** - * Decodes a RelayGroupGCPPubSubOptions message from the specified reader or buffer, length delimited. + * Decodes a GCPPubSubWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupGCPPubSubOptions + * @returns GCPPubSubWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupGCPPubSubOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.GCPPubSubWriteArgs; /** - * Verifies a RelayGroupGCPPubSubOptions message. + * Verifies a GCPPubSubWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupGCPPubSubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a GCPPubSubWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupGCPPubSubOptions + * @returns GCPPubSubWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupGCPPubSubOptions; + public static fromObject(object: { [k: string]: any }): protos.args.GCPPubSubWriteArgs; /** - * Creates a plain object from a RelayGroupGCPPubSubOptions message. Also converts values to other types if specified. - * @param message RelayGroupGCPPubSubOptions + * Creates a plain object from a GCPPubSubWriteArgs message. Also converts values to other types if specified. + * @param message GCPPubSubWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupGCPPubSubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.GCPPubSubWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupGCPPubSubOptions to JSON. + * Converts this GCPPubSubWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupKubeMQQueueOptions. */ - interface IRelayGroupKubeMQQueueOptions { - - /** RelayGroupKubeMQQueueOptions _conn */ - _conn?: (protos.args.IKubeMQQueueConn|null); - - /** RelayGroupKubeMQQueueOptions args */ - args?: (protos.args.IKubeMQQueueReadArgs|null); + /** SASLType enum. */ + enum SASLType { + NONE = 0, + PLAIN = 1, + SCRAM = 2 } - /** Represents a RelayGroupKubeMQQueueOptions. */ - class RelayGroupKubeMQQueueOptions implements IRelayGroupKubeMQQueueOptions { - - /** - * Constructs a new RelayGroupKubeMQQueueOptions. - * @param [properties] Properties to set - */ - constructor(properties?: protos.opts.IRelayGroupKubeMQQueueOptions); - - /** RelayGroupKubeMQQueueOptions _conn. */ - public _conn?: (protos.args.IKubeMQQueueConn|null); - - /** RelayGroupKubeMQQueueOptions args. */ - public args?: (protos.args.IKubeMQQueueReadArgs|null); + /** Properties of a KafkaConn. */ + interface IKafkaConn { - /** - * Creates a new RelayGroupKubeMQQueueOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns RelayGroupKubeMQQueueOptions instance - */ - public static create(properties?: protos.opts.IRelayGroupKubeMQQueueOptions): protos.opts.RelayGroupKubeMQQueueOptions; + /** KafkaConn address */ + address?: (string[]|null); - /** - * Encodes the specified RelayGroupKubeMQQueueOptions message. Does not implicitly {@link protos.opts.RelayGroupKubeMQQueueOptions.verify|verify} messages. - * @param message RelayGroupKubeMQQueueOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.opts.IRelayGroupKubeMQQueueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** KafkaConn timeoutSeconds */ + timeoutSeconds?: (number|null); - /** - * Encodes the specified RelayGroupKubeMQQueueOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupKubeMQQueueOptions.verify|verify} messages. - * @param message RelayGroupKubeMQQueueOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.opts.IRelayGroupKubeMQQueueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** KafkaConn useTls */ + useTls?: (boolean|null); - /** - * Decodes a RelayGroupKubeMQQueueOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RelayGroupKubeMQQueueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupKubeMQQueueOptions; + /** KafkaConn tlsSkipVerify */ + tlsSkipVerify?: (boolean|null); - /** - * Decodes a RelayGroupKubeMQQueueOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RelayGroupKubeMQQueueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupKubeMQQueueOptions; + /** KafkaConn saslType */ + saslType?: (protos.args.SASLType|null); - /** - * Verifies a RelayGroupKubeMQQueueOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** KafkaConn saslUsername */ + saslUsername?: (string|null); - /** - * Creates a RelayGroupKubeMQQueueOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RelayGroupKubeMQQueueOptions - */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupKubeMQQueueOptions; + /** KafkaConn saslPassword */ + saslPassword?: (string|null); + } - /** - * Creates a plain object from a RelayGroupKubeMQQueueOptions message. Also converts values to other types if specified. - * @param message RelayGroupKubeMQQueueOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.opts.RelayGroupKubeMQQueueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a KafkaConn. */ + class KafkaConn implements IKafkaConn { /** - * Converts this RelayGroupKubeMQQueueOptions to JSON. - * @returns JSON object + * Constructs a new KafkaConn. + * @param [properties] Properties to set */ - public toJSON(): { [k: string]: any }; - } + constructor(properties?: protos.args.IKafkaConn); - /** Properties of a RelayGroupNatsOptions. */ - interface IRelayGroupNatsOptions { + /** KafkaConn address. */ + public address: string[]; - /** RelayGroupNatsOptions _conn */ - _conn?: (protos.args.INatsConn|null); + /** KafkaConn timeoutSeconds. */ + public timeoutSeconds: number; - /** RelayGroupNatsOptions args */ - args?: (protos.args.INatsReadArgs|null); - } + /** KafkaConn useTls. */ + public useTls: boolean; - /** Represents a RelayGroupNatsOptions. */ - class RelayGroupNatsOptions implements IRelayGroupNatsOptions { + /** KafkaConn tlsSkipVerify. */ + public tlsSkipVerify: boolean; - /** - * Constructs a new RelayGroupNatsOptions. - * @param [properties] Properties to set - */ - constructor(properties?: protos.opts.IRelayGroupNatsOptions); + /** KafkaConn saslType. */ + public saslType: protos.args.SASLType; - /** RelayGroupNatsOptions _conn. */ - public _conn?: (protos.args.INatsConn|null); + /** KafkaConn saslUsername. */ + public saslUsername: string; - /** RelayGroupNatsOptions args. */ - public args?: (protos.args.INatsReadArgs|null); + /** KafkaConn saslPassword. */ + public saslPassword: string; /** - * Creates a new RelayGroupNatsOptions instance using the specified properties. + * Creates a new KafkaConn instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupNatsOptions instance + * @returns KafkaConn instance */ - public static create(properties?: protos.opts.IRelayGroupNatsOptions): protos.opts.RelayGroupNatsOptions; + public static create(properties?: protos.args.IKafkaConn): protos.args.KafkaConn; /** - * Encodes the specified RelayGroupNatsOptions message. Does not implicitly {@link protos.opts.RelayGroupNatsOptions.verify|verify} messages. - * @param message RelayGroupNatsOptions message or plain object to encode + * Encodes the specified KafkaConn message. Does not implicitly {@link protos.args.KafkaConn.verify|verify} messages. + * @param message KafkaConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupNatsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IKafkaConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupNatsOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupNatsOptions.verify|verify} messages. - * @param message RelayGroupNatsOptions message or plain object to encode + * Encodes the specified KafkaConn message, length delimited. Does not implicitly {@link protos.args.KafkaConn.verify|verify} messages. + * @param message KafkaConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupNatsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IKafkaConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupNatsOptions message from the specified reader or buffer. + * Decodes a KafkaConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupNatsOptions + * @returns KafkaConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupNatsOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KafkaConn; /** - * Decodes a RelayGroupNatsOptions message from the specified reader or buffer, length delimited. + * Decodes a KafkaConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupNatsOptions + * @returns KafkaConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupNatsOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KafkaConn; /** - * Verifies a RelayGroupNatsOptions message. + * Verifies a KafkaConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupNatsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KafkaConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupNatsOptions + * @returns KafkaConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupNatsOptions; + public static fromObject(object: { [k: string]: any }): protos.args.KafkaConn; /** - * Creates a plain object from a RelayGroupNatsOptions message. Also converts values to other types if specified. - * @param message RelayGroupNatsOptions + * Creates a plain object from a KafkaConn message. Also converts values to other types if specified. + * @param message KafkaConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupNatsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.KafkaConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupNatsOptions to JSON. + * Converts this KafkaConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupNatsStreamingOptions. */ - interface IRelayGroupNatsStreamingOptions { + /** Properties of a KafkaReadArgs. */ + interface IKafkaReadArgs { - /** RelayGroupNatsStreamingOptions _conn */ - _conn?: (protos.args.INatsStreamingConn|null); + /** KafkaReadArgs topics */ + topics?: (string[]|null); - /** RelayGroupNatsStreamingOptions args */ - args?: (protos.args.INatsStreamingReadArgs|null); - } + /** KafkaReadArgs readOffset */ + readOffset?: (number|Long|null); - /** Represents a RelayGroupNatsStreamingOptions. */ - class RelayGroupNatsStreamingOptions implements IRelayGroupNatsStreamingOptions { + /** KafkaReadArgs useConsumerGroup */ + useConsumerGroup?: (boolean|null); - /** - * Constructs a new RelayGroupNatsStreamingOptions. - * @param [properties] Properties to set - */ - constructor(properties?: protos.opts.IRelayGroupNatsStreamingOptions); + /** KafkaReadArgs consumerGroupName */ + consumerGroupName?: (string|null); - /** RelayGroupNatsStreamingOptions _conn. */ - public _conn?: (protos.args.INatsStreamingConn|null); + /** KafkaReadArgs maxWaitSeconds */ + maxWaitSeconds?: (number|null); - /** RelayGroupNatsStreamingOptions args. */ - public args?: (protos.args.INatsStreamingReadArgs|null); + /** KafkaReadArgs minBytes */ + minBytes?: (number|null); + + /** KafkaReadArgs maxBytes */ + maxBytes?: (number|null); + + /** KafkaReadArgs commitIntervalSeconds */ + commitIntervalSeconds?: (number|null); + + /** KafkaReadArgs rebalanceTimeoutSeconds */ + rebalanceTimeoutSeconds?: (number|null); + + /** KafkaReadArgs queueCapacity */ + queueCapacity?: (number|null); + + /** KafkaReadArgs includeOffsetInfo */ + includeOffsetInfo?: (boolean|null); + + /** KafkaReadArgs lag */ + lag?: (boolean|null); + + /** KafkaReadArgs lagConsumerGroup */ + lagConsumerGroup?: (string|null); + } + + /** Represents a KafkaReadArgs. */ + class KafkaReadArgs implements IKafkaReadArgs { + + /** + * Constructs a new KafkaReadArgs. + * @param [properties] Properties to set + */ + constructor(properties?: protos.args.IKafkaReadArgs); + + /** KafkaReadArgs topics. */ + public topics: string[]; + + /** KafkaReadArgs readOffset. */ + public readOffset: (number|Long); + + /** KafkaReadArgs useConsumerGroup. */ + public useConsumerGroup: boolean; + + /** KafkaReadArgs consumerGroupName. */ + public consumerGroupName: string; + + /** KafkaReadArgs maxWaitSeconds. */ + public maxWaitSeconds: number; + + /** KafkaReadArgs minBytes. */ + public minBytes: number; + + /** KafkaReadArgs maxBytes. */ + public maxBytes: number; + + /** KafkaReadArgs commitIntervalSeconds. */ + public commitIntervalSeconds: number; + + /** KafkaReadArgs rebalanceTimeoutSeconds. */ + public rebalanceTimeoutSeconds: number; + + /** KafkaReadArgs queueCapacity. */ + public queueCapacity: number; + + /** KafkaReadArgs includeOffsetInfo. */ + public includeOffsetInfo: boolean; + + /** KafkaReadArgs lag. */ + public lag: boolean; + + /** KafkaReadArgs lagConsumerGroup. */ + public lagConsumerGroup: string; /** - * Creates a new RelayGroupNatsStreamingOptions instance using the specified properties. + * Creates a new KafkaReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupNatsStreamingOptions instance + * @returns KafkaReadArgs instance */ - public static create(properties?: protos.opts.IRelayGroupNatsStreamingOptions): protos.opts.RelayGroupNatsStreamingOptions; + public static create(properties?: protos.args.IKafkaReadArgs): protos.args.KafkaReadArgs; /** - * Encodes the specified RelayGroupNatsStreamingOptions message. Does not implicitly {@link protos.opts.RelayGroupNatsStreamingOptions.verify|verify} messages. - * @param message RelayGroupNatsStreamingOptions message or plain object to encode + * Encodes the specified KafkaReadArgs message. Does not implicitly {@link protos.args.KafkaReadArgs.verify|verify} messages. + * @param message KafkaReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupNatsStreamingOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IKafkaReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupNatsStreamingOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupNatsStreamingOptions.verify|verify} messages. - * @param message RelayGroupNatsStreamingOptions message or plain object to encode + * Encodes the specified KafkaReadArgs message, length delimited. Does not implicitly {@link protos.args.KafkaReadArgs.verify|verify} messages. + * @param message KafkaReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupNatsStreamingOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IKafkaReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupNatsStreamingOptions message from the specified reader or buffer. + * Decodes a KafkaReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupNatsStreamingOptions + * @returns KafkaReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupNatsStreamingOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KafkaReadArgs; /** - * Decodes a RelayGroupNatsStreamingOptions message from the specified reader or buffer, length delimited. + * Decodes a KafkaReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupNatsStreamingOptions + * @returns KafkaReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupNatsStreamingOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KafkaReadArgs; /** - * Verifies a RelayGroupNatsStreamingOptions message. + * Verifies a KafkaReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupNatsStreamingOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KafkaReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupNatsStreamingOptions + * @returns KafkaReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupNatsStreamingOptions; + public static fromObject(object: { [k: string]: any }): protos.args.KafkaReadArgs; /** - * Creates a plain object from a RelayGroupNatsStreamingOptions message. Also converts values to other types if specified. - * @param message RelayGroupNatsStreamingOptions + * Creates a plain object from a KafkaReadArgs message. Also converts values to other types if specified. + * @param message KafkaReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupNatsStreamingOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.KafkaReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupNatsStreamingOptions to JSON. + * Converts this KafkaReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RelayGroupNatsJetStreamOptions. */ - interface IRelayGroupNatsJetStreamOptions { + /** Properties of a KafkaWriteArgs. */ + interface IKafkaWriteArgs { - /** RelayGroupNatsJetStreamOptions _conn */ - _conn?: (protos.args.INatsJetstreamConn|null); + /** KafkaWriteArgs key */ + key?: (string|null); - /** RelayGroupNatsJetStreamOptions args */ - args?: (protos.args.INatsJetstreamReadArgs|null); + /** KafkaWriteArgs headers */ + headers?: ({ [k: string]: string }|null); + + /** KafkaWriteArgs topics */ + topics?: (string[]|null); } - /** Represents a RelayGroupNatsJetStreamOptions. */ - class RelayGroupNatsJetStreamOptions implements IRelayGroupNatsJetStreamOptions { + /** Represents a KafkaWriteArgs. */ + class KafkaWriteArgs implements IKafkaWriteArgs { /** - * Constructs a new RelayGroupNatsJetStreamOptions. + * Constructs a new KafkaWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IRelayGroupNatsJetStreamOptions); + constructor(properties?: protos.args.IKafkaWriteArgs); - /** RelayGroupNatsJetStreamOptions _conn. */ - public _conn?: (protos.args.INatsJetstreamConn|null); + /** KafkaWriteArgs key. */ + public key: string; - /** RelayGroupNatsJetStreamOptions args. */ - public args?: (protos.args.INatsJetstreamReadArgs|null); + /** KafkaWriteArgs headers. */ + public headers: { [k: string]: string }; + + /** KafkaWriteArgs topics. */ + public topics: string[]; /** - * Creates a new RelayGroupNatsJetStreamOptions instance using the specified properties. + * Creates a new KafkaWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns RelayGroupNatsJetStreamOptions instance + * @returns KafkaWriteArgs instance */ - public static create(properties?: protos.opts.IRelayGroupNatsJetStreamOptions): protos.opts.RelayGroupNatsJetStreamOptions; + public static create(properties?: protos.args.IKafkaWriteArgs): protos.args.KafkaWriteArgs; /** - * Encodes the specified RelayGroupNatsJetStreamOptions message. Does not implicitly {@link protos.opts.RelayGroupNatsJetStreamOptions.verify|verify} messages. - * @param message RelayGroupNatsJetStreamOptions message or plain object to encode + * Encodes the specified KafkaWriteArgs message. Does not implicitly {@link protos.args.KafkaWriteArgs.verify|verify} messages. + * @param message KafkaWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IRelayGroupNatsJetStreamOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IKafkaWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RelayGroupNatsJetStreamOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupNatsJetStreamOptions.verify|verify} messages. - * @param message RelayGroupNatsJetStreamOptions message or plain object to encode + * Encodes the specified KafkaWriteArgs message, length delimited. Does not implicitly {@link protos.args.KafkaWriteArgs.verify|verify} messages. + * @param message KafkaWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IRelayGroupNatsJetStreamOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IKafkaWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RelayGroupNatsJetStreamOptions message from the specified reader or buffer. + * Decodes a KafkaWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RelayGroupNatsJetStreamOptions + * @returns KafkaWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.RelayGroupNatsJetStreamOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KafkaWriteArgs; /** - * Decodes a RelayGroupNatsJetStreamOptions message from the specified reader or buffer, length delimited. + * Decodes a KafkaWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RelayGroupNatsJetStreamOptions + * @returns KafkaWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.RelayGroupNatsJetStreamOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KafkaWriteArgs; /** - * Verifies a RelayGroupNatsJetStreamOptions message. + * Verifies a KafkaWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RelayGroupNatsJetStreamOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KafkaWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RelayGroupNatsJetStreamOptions + * @returns KafkaWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.RelayGroupNatsJetStreamOptions; + public static fromObject(object: { [k: string]: any }): protos.args.KafkaWriteArgs; /** - * Creates a plain object from a RelayGroupNatsJetStreamOptions message. Also converts values to other types if specified. - * @param message RelayGroupNatsJetStreamOptions + * Creates a plain object from a KafkaWriteArgs message. Also converts values to other types if specified. + * @param message KafkaWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.RelayGroupNatsJetStreamOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.KafkaWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RelayGroupNatsJetStreamOptions to JSON. + * Converts this KafkaWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetRelayOptions. */ - interface IGetRelayOptions { + /** Properties of a KafkaRelayArgs. */ + interface IKafkaRelayArgs { - /** GetRelayOptions id */ - id?: (string|null); + /** KafkaRelayArgs topics */ + topics?: (string[]|null); + + /** KafkaRelayArgs readOffset */ + readOffset?: (number|Long|null); + + /** KafkaRelayArgs useConsumerGroup */ + useConsumerGroup?: (boolean|null); + + /** KafkaRelayArgs consumerGroupName */ + consumerGroupName?: (string|null); + + /** KafkaRelayArgs maxWaitSeconds */ + maxWaitSeconds?: (number|null); + + /** KafkaRelayArgs minBytes */ + minBytes?: (number|null); + + /** KafkaRelayArgs maxBytes */ + maxBytes?: (number|null); + + /** KafkaRelayArgs commitIntervalSeconds */ + commitIntervalSeconds?: (number|null); + + /** KafkaRelayArgs rebalanceTimeoutSeconds */ + rebalanceTimeoutSeconds?: (number|null); + + /** KafkaRelayArgs queueCapacity */ + queueCapacity?: (number|null); } - /** Represents a GetRelayOptions. */ - class GetRelayOptions implements IGetRelayOptions { + /** Represents a KafkaRelayArgs. */ + class KafkaRelayArgs implements IKafkaRelayArgs { /** - * Constructs a new GetRelayOptions. + * Constructs a new KafkaRelayArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IGetRelayOptions); + constructor(properties?: protos.args.IKafkaRelayArgs); - /** GetRelayOptions id. */ - public id: string; + /** KafkaRelayArgs topics. */ + public topics: string[]; + + /** KafkaRelayArgs readOffset. */ + public readOffset: (number|Long); + + /** KafkaRelayArgs useConsumerGroup. */ + public useConsumerGroup: boolean; + + /** KafkaRelayArgs consumerGroupName. */ + public consumerGroupName: string; + + /** KafkaRelayArgs maxWaitSeconds. */ + public maxWaitSeconds: number; + + /** KafkaRelayArgs minBytes. */ + public minBytes: number; + + /** KafkaRelayArgs maxBytes. */ + public maxBytes: number; + + /** KafkaRelayArgs commitIntervalSeconds. */ + public commitIntervalSeconds: number; + + /** KafkaRelayArgs rebalanceTimeoutSeconds. */ + public rebalanceTimeoutSeconds: number; + + /** KafkaRelayArgs queueCapacity. */ + public queueCapacity: number; /** - * Creates a new GetRelayOptions instance using the specified properties. + * Creates a new KafkaRelayArgs instance using the specified properties. * @param [properties] Properties to set - * @returns GetRelayOptions instance + * @returns KafkaRelayArgs instance */ - public static create(properties?: protos.opts.IGetRelayOptions): protos.opts.GetRelayOptions; + public static create(properties?: protos.args.IKafkaRelayArgs): protos.args.KafkaRelayArgs; /** - * Encodes the specified GetRelayOptions message. Does not implicitly {@link protos.opts.GetRelayOptions.verify|verify} messages. - * @param message GetRelayOptions message or plain object to encode + * Encodes the specified KafkaRelayArgs message. Does not implicitly {@link protos.args.KafkaRelayArgs.verify|verify} messages. + * @param message KafkaRelayArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IGetRelayOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IKafkaRelayArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetRelayOptions message, length delimited. Does not implicitly {@link protos.opts.GetRelayOptions.verify|verify} messages. - * @param message GetRelayOptions message or plain object to encode + * Encodes the specified KafkaRelayArgs message, length delimited. Does not implicitly {@link protos.args.KafkaRelayArgs.verify|verify} messages. + * @param message KafkaRelayArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IGetRelayOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IKafkaRelayArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetRelayOptions message from the specified reader or buffer. + * Decodes a KafkaRelayArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetRelayOptions + * @returns KafkaRelayArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.GetRelayOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KafkaRelayArgs; /** - * Decodes a GetRelayOptions message from the specified reader or buffer, length delimited. + * Decodes a KafkaRelayArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetRelayOptions + * @returns KafkaRelayArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.GetRelayOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KafkaRelayArgs; /** - * Verifies a GetRelayOptions message. + * Verifies a KafkaRelayArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetRelayOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KafkaRelayArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetRelayOptions + * @returns KafkaRelayArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.GetRelayOptions; + public static fromObject(object: { [k: string]: any }): protos.args.KafkaRelayArgs; /** - * Creates a plain object from a GetRelayOptions message. Also converts values to other types if specified. - * @param message GetRelayOptions + * Creates a plain object from a KafkaRelayArgs message. Also converts values to other types if specified. + * @param message KafkaRelayArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.GetRelayOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.KafkaRelayArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetRelayOptions to JSON. + * Converts this KafkaRelayArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateRelayOptions. */ - interface ICreateRelayOptions { + /** Properties of a KubeMQQueueConn. */ + interface IKubeMQQueueConn { - /** CreateRelayOptions connectionId */ - connectionId?: (string|null); + /** KubeMQQueueConn address */ + address?: (string|null); - /** CreateRelayOptions collectionToken */ - collectionToken?: (string|null); + /** KubeMQQueueConn authToken */ + authToken?: (string|null); - /** CreateRelayOptions batchSize */ - batchSize?: (number|null); + /** KubeMQQueueConn tlsClientCert */ + tlsClientCert?: (string|null); - /** CreateRelayOptions batchMaxRetry */ - batchMaxRetry?: (number|null); + /** KubeMQQueueConn clientId */ + clientId?: (string|null); + } - /** CreateRelayOptions numWorkers */ - numWorkers?: (number|null); + /** Represents a KubeMQQueueConn. */ + class KubeMQQueueConn implements IKubeMQQueueConn { - /** CreateRelayOptions streamdalGrpcAddress */ - streamdalGrpcAddress?: (string|null); + /** + * Constructs a new KubeMQQueueConn. + * @param [properties] Properties to set + */ + constructor(properties?: protos.args.IKubeMQQueueConn); - /** CreateRelayOptions streamdalGrpcDisableTls */ - streamdalGrpcDisableTls?: (boolean|null); + /** KubeMQQueueConn address. */ + public address: string; - /** CreateRelayOptions streamdalGrpcTimeoutSeconds */ - streamdalGrpcTimeoutSeconds?: (number|null); + /** KubeMQQueueConn authToken. */ + public authToken: string; - /** CreateRelayOptions deadLetter */ - deadLetter?: (boolean|null); + /** KubeMQQueueConn tlsClientCert. */ + public tlsClientCert: string; - /** CreateRelayOptions kafka */ - kafka?: (protos.args.IKafkaRelayArgs|null); - - /** CreateRelayOptions awsSqs */ - awsSqs?: (protos.args.IAWSSQSRelayArgs|null); - - /** CreateRelayOptions mongo */ - mongo?: (protos.args.IMongoReadArgs|null); - - /** CreateRelayOptions nsq */ - nsq?: (protos.args.INSQReadArgs|null); - - /** CreateRelayOptions rabbit */ - rabbit?: (protos.args.IRabbitReadArgs|null); - - /** CreateRelayOptions mqtt */ - mqtt?: (protos.args.IMQTTReadArgs|null); - - /** CreateRelayOptions azureServiceBus */ - azureServiceBus?: (protos.args.IAzureServiceBusReadArgs|null); - - /** CreateRelayOptions gcpPubsub */ - gcpPubsub?: (protos.args.IGCPPubSubReadArgs|null); - - /** CreateRelayOptions kubemqQueue */ - kubemqQueue?: (protos.args.IKubeMQQueueReadArgs|null); - - /** CreateRelayOptions redisPubsub */ - redisPubsub?: (protos.args.IRedisPubSubReadArgs|null); - - /** CreateRelayOptions redisStreams */ - redisStreams?: (protos.args.IRedisStreamsReadArgs|null); - - /** CreateRelayOptions postgres */ - postgres?: (protos.args.IPostgresReadArgs|null); - - /** CreateRelayOptions nats */ - nats?: (protos.args.INatsReadArgs|null); - - /** CreateRelayOptions natsStreaming */ - natsStreaming?: (protos.args.INatsStreamingReadArgs|null); - - /** CreateRelayOptions natsJetstream */ - natsJetstream?: (protos.args.INatsJetstreamReadArgs|null); - } - - /** Represents a CreateRelayOptions. */ - class CreateRelayOptions implements ICreateRelayOptions { - - /** - * Constructs a new CreateRelayOptions. - * @param [properties] Properties to set - */ - constructor(properties?: protos.opts.ICreateRelayOptions); - - /** CreateRelayOptions connectionId. */ - public connectionId: string; - - /** CreateRelayOptions collectionToken. */ - public collectionToken: string; - - /** CreateRelayOptions batchSize. */ - public batchSize: number; - - /** CreateRelayOptions batchMaxRetry. */ - public batchMaxRetry: number; - - /** CreateRelayOptions numWorkers. */ - public numWorkers: number; - - /** CreateRelayOptions streamdalGrpcAddress. */ - public streamdalGrpcAddress: string; - - /** CreateRelayOptions streamdalGrpcDisableTls. */ - public streamdalGrpcDisableTls: boolean; - - /** CreateRelayOptions streamdalGrpcTimeoutSeconds. */ - public streamdalGrpcTimeoutSeconds: number; - - /** CreateRelayOptions deadLetter. */ - public deadLetter: boolean; - - /** CreateRelayOptions kafka. */ - public kafka?: (protos.args.IKafkaRelayArgs|null); - - /** CreateRelayOptions awsSqs. */ - public awsSqs?: (protos.args.IAWSSQSRelayArgs|null); - - /** CreateRelayOptions mongo. */ - public mongo?: (protos.args.IMongoReadArgs|null); - - /** CreateRelayOptions nsq. */ - public nsq?: (protos.args.INSQReadArgs|null); - - /** CreateRelayOptions rabbit. */ - public rabbit?: (protos.args.IRabbitReadArgs|null); - - /** CreateRelayOptions mqtt. */ - public mqtt?: (protos.args.IMQTTReadArgs|null); - - /** CreateRelayOptions azureServiceBus. */ - public azureServiceBus?: (protos.args.IAzureServiceBusReadArgs|null); - - /** CreateRelayOptions gcpPubsub. */ - public gcpPubsub?: (protos.args.IGCPPubSubReadArgs|null); - - /** CreateRelayOptions kubemqQueue. */ - public kubemqQueue?: (protos.args.IKubeMQQueueReadArgs|null); - - /** CreateRelayOptions redisPubsub. */ - public redisPubsub?: (protos.args.IRedisPubSubReadArgs|null); - - /** CreateRelayOptions redisStreams. */ - public redisStreams?: (protos.args.IRedisStreamsReadArgs|null); - - /** CreateRelayOptions postgres. */ - public postgres?: (protos.args.IPostgresReadArgs|null); - - /** CreateRelayOptions nats. */ - public nats?: (protos.args.INatsReadArgs|null); - - /** CreateRelayOptions natsStreaming. */ - public natsStreaming?: (protos.args.INatsStreamingReadArgs|null); - - /** CreateRelayOptions natsJetstream. */ - public natsJetstream?: (protos.args.INatsJetstreamReadArgs|null); + /** KubeMQQueueConn clientId. */ + public clientId: string; /** - * Creates a new CreateRelayOptions instance using the specified properties. + * Creates a new KubeMQQueueConn instance using the specified properties. * @param [properties] Properties to set - * @returns CreateRelayOptions instance + * @returns KubeMQQueueConn instance */ - public static create(properties?: protos.opts.ICreateRelayOptions): protos.opts.CreateRelayOptions; + public static create(properties?: protos.args.IKubeMQQueueConn): protos.args.KubeMQQueueConn; /** - * Encodes the specified CreateRelayOptions message. Does not implicitly {@link protos.opts.CreateRelayOptions.verify|verify} messages. - * @param message CreateRelayOptions message or plain object to encode + * Encodes the specified KubeMQQueueConn message. Does not implicitly {@link protos.args.KubeMQQueueConn.verify|verify} messages. + * @param message KubeMQQueueConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ICreateRelayOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IKubeMQQueueConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateRelayOptions message, length delimited. Does not implicitly {@link protos.opts.CreateRelayOptions.verify|verify} messages. - * @param message CreateRelayOptions message or plain object to encode + * Encodes the specified KubeMQQueueConn message, length delimited. Does not implicitly {@link protos.args.KubeMQQueueConn.verify|verify} messages. + * @param message KubeMQQueueConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ICreateRelayOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IKubeMQQueueConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateRelayOptions message from the specified reader or buffer. + * Decodes a KubeMQQueueConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateRelayOptions + * @returns KubeMQQueueConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.CreateRelayOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KubeMQQueueConn; /** - * Decodes a CreateRelayOptions message from the specified reader or buffer, length delimited. + * Decodes a KubeMQQueueConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateRelayOptions + * @returns KubeMQQueueConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.CreateRelayOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KubeMQQueueConn; /** - * Verifies a CreateRelayOptions message. + * Verifies a KubeMQQueueConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateRelayOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KubeMQQueueConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateRelayOptions + * @returns KubeMQQueueConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.CreateRelayOptions; + public static fromObject(object: { [k: string]: any }): protos.args.KubeMQQueueConn; /** - * Creates a plain object from a CreateRelayOptions message. Also converts values to other types if specified. - * @param message CreateRelayOptions + * Creates a plain object from a KubeMQQueueConn message. Also converts values to other types if specified. + * @param message KubeMQQueueConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.CreateRelayOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.KubeMQQueueConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateRelayOptions to JSON. + * Converts this KubeMQQueueConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteRelayOptions. */ - interface IDeleteRelayOptions { + /** Properties of a KubeMQQueueReadArgs. */ + interface IKubeMQQueueReadArgs { - /** DeleteRelayOptions id */ - id?: (string|null); + /** KubeMQQueueReadArgs queueName */ + queueName?: (string|null); } - /** Represents a DeleteRelayOptions. */ - class DeleteRelayOptions implements IDeleteRelayOptions { + /** Represents a KubeMQQueueReadArgs. */ + class KubeMQQueueReadArgs implements IKubeMQQueueReadArgs { /** - * Constructs a new DeleteRelayOptions. + * Constructs a new KubeMQQueueReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IDeleteRelayOptions); + constructor(properties?: protos.args.IKubeMQQueueReadArgs); - /** DeleteRelayOptions id. */ - public id: string; + /** KubeMQQueueReadArgs queueName. */ + public queueName: string; /** - * Creates a new DeleteRelayOptions instance using the specified properties. + * Creates a new KubeMQQueueReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteRelayOptions instance + * @returns KubeMQQueueReadArgs instance */ - public static create(properties?: protos.opts.IDeleteRelayOptions): protos.opts.DeleteRelayOptions; + public static create(properties?: protos.args.IKubeMQQueueReadArgs): protos.args.KubeMQQueueReadArgs; /** - * Encodes the specified DeleteRelayOptions message. Does not implicitly {@link protos.opts.DeleteRelayOptions.verify|verify} messages. - * @param message DeleteRelayOptions message or plain object to encode + * Encodes the specified KubeMQQueueReadArgs message. Does not implicitly {@link protos.args.KubeMQQueueReadArgs.verify|verify} messages. + * @param message KubeMQQueueReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IDeleteRelayOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IKubeMQQueueReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteRelayOptions message, length delimited. Does not implicitly {@link protos.opts.DeleteRelayOptions.verify|verify} messages. - * @param message DeleteRelayOptions message or plain object to encode + * Encodes the specified KubeMQQueueReadArgs message, length delimited. Does not implicitly {@link protos.args.KubeMQQueueReadArgs.verify|verify} messages. + * @param message KubeMQQueueReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IDeleteRelayOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IKubeMQQueueReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteRelayOptions message from the specified reader or buffer. + * Decodes a KubeMQQueueReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteRelayOptions + * @returns KubeMQQueueReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.DeleteRelayOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KubeMQQueueReadArgs; /** - * Decodes a DeleteRelayOptions message from the specified reader or buffer, length delimited. + * Decodes a KubeMQQueueReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteRelayOptions + * @returns KubeMQQueueReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.DeleteRelayOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KubeMQQueueReadArgs; /** - * Verifies a DeleteRelayOptions message. + * Verifies a KubeMQQueueReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteRelayOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KubeMQQueueReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteRelayOptions + * @returns KubeMQQueueReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.DeleteRelayOptions; + public static fromObject(object: { [k: string]: any }): protos.args.KubeMQQueueReadArgs; /** - * Creates a plain object from a DeleteRelayOptions message. Also converts values to other types if specified. - * @param message DeleteRelayOptions + * Creates a plain object from a KubeMQQueueReadArgs message. Also converts values to other types if specified. + * @param message KubeMQQueueReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.DeleteRelayOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.KubeMQQueueReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteRelayOptions to JSON. + * Converts this KubeMQQueueReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StopRelayOptions. */ - interface IStopRelayOptions { + /** Properties of a KubeMQQueueWriteArgs. */ + interface IKubeMQQueueWriteArgs { - /** StopRelayOptions id */ - id?: (string|null); + /** KubeMQQueueWriteArgs queueName */ + queueName?: (string|null); } - /** Represents a StopRelayOptions. */ - class StopRelayOptions implements IStopRelayOptions { + /** Represents a KubeMQQueueWriteArgs. */ + class KubeMQQueueWriteArgs implements IKubeMQQueueWriteArgs { /** - * Constructs a new StopRelayOptions. + * Constructs a new KubeMQQueueWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IStopRelayOptions); + constructor(properties?: protos.args.IKubeMQQueueWriteArgs); - /** StopRelayOptions id. */ - public id: string; + /** KubeMQQueueWriteArgs queueName. */ + public queueName: string; /** - * Creates a new StopRelayOptions instance using the specified properties. + * Creates a new KubeMQQueueWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns StopRelayOptions instance + * @returns KubeMQQueueWriteArgs instance */ - public static create(properties?: protos.opts.IStopRelayOptions): protos.opts.StopRelayOptions; + public static create(properties?: protos.args.IKubeMQQueueWriteArgs): protos.args.KubeMQQueueWriteArgs; /** - * Encodes the specified StopRelayOptions message. Does not implicitly {@link protos.opts.StopRelayOptions.verify|verify} messages. - * @param message StopRelayOptions message or plain object to encode + * Encodes the specified KubeMQQueueWriteArgs message. Does not implicitly {@link protos.args.KubeMQQueueWriteArgs.verify|verify} messages. + * @param message KubeMQQueueWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IStopRelayOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IKubeMQQueueWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopRelayOptions message, length delimited. Does not implicitly {@link protos.opts.StopRelayOptions.verify|verify} messages. - * @param message StopRelayOptions message or plain object to encode + * Encodes the specified KubeMQQueueWriteArgs message, length delimited. Does not implicitly {@link protos.args.KubeMQQueueWriteArgs.verify|verify} messages. + * @param message KubeMQQueueWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IStopRelayOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IKubeMQQueueWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopRelayOptions message from the specified reader or buffer. + * Decodes a KubeMQQueueWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopRelayOptions + * @returns KubeMQQueueWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.StopRelayOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KubeMQQueueWriteArgs; /** - * Decodes a StopRelayOptions message from the specified reader or buffer, length delimited. + * Decodes a KubeMQQueueWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopRelayOptions + * @returns KubeMQQueueWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.StopRelayOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KubeMQQueueWriteArgs; /** - * Verifies a StopRelayOptions message. + * Verifies a KubeMQQueueWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StopRelayOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KubeMQQueueWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopRelayOptions + * @returns KubeMQQueueWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.StopRelayOptions; + public static fromObject(object: { [k: string]: any }): protos.args.KubeMQQueueWriteArgs; /** - * Creates a plain object from a StopRelayOptions message. Also converts values to other types if specified. - * @param message StopRelayOptions + * Creates a plain object from a KubeMQQueueWriteArgs message. Also converts values to other types if specified. + * @param message KubeMQQueueWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.StopRelayOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.KubeMQQueueWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopRelayOptions to JSON. + * Converts this KubeMQQueueWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResumeRelayOptions. */ - interface IResumeRelayOptions { + /** Properties of a MemphisConn. */ + interface IMemphisConn { + + /** MemphisConn address */ + address?: (string|null); - /** ResumeRelayOptions id */ - id?: (string|null); + /** MemphisConn username */ + username?: (string|null); + + /** MemphisConn brokerToken */ + brokerToken?: (string|null); } - /** Represents a ResumeRelayOptions. */ - class ResumeRelayOptions implements IResumeRelayOptions { + /** Represents a MemphisConn. */ + class MemphisConn implements IMemphisConn { /** - * Constructs a new ResumeRelayOptions. + * Constructs a new MemphisConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IResumeRelayOptions); + constructor(properties?: protos.args.IMemphisConn); - /** ResumeRelayOptions id. */ - public id: string; + /** MemphisConn address. */ + public address: string; + + /** MemphisConn username. */ + public username: string; + + /** MemphisConn brokerToken. */ + public brokerToken: string; /** - * Creates a new ResumeRelayOptions instance using the specified properties. + * Creates a new MemphisConn instance using the specified properties. * @param [properties] Properties to set - * @returns ResumeRelayOptions instance + * @returns MemphisConn instance */ - public static create(properties?: protos.opts.IResumeRelayOptions): protos.opts.ResumeRelayOptions; + public static create(properties?: protos.args.IMemphisConn): protos.args.MemphisConn; /** - * Encodes the specified ResumeRelayOptions message. Does not implicitly {@link protos.opts.ResumeRelayOptions.verify|verify} messages. - * @param message ResumeRelayOptions message or plain object to encode + * Encodes the specified MemphisConn message. Does not implicitly {@link protos.args.MemphisConn.verify|verify} messages. + * @param message MemphisConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IResumeRelayOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IMemphisConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResumeRelayOptions message, length delimited. Does not implicitly {@link protos.opts.ResumeRelayOptions.verify|verify} messages. - * @param message ResumeRelayOptions message or plain object to encode + * Encodes the specified MemphisConn message, length delimited. Does not implicitly {@link protos.args.MemphisConn.verify|verify} messages. + * @param message MemphisConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IResumeRelayOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IMemphisConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResumeRelayOptions message from the specified reader or buffer. + * Decodes a MemphisConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResumeRelayOptions + * @returns MemphisConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ResumeRelayOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MemphisConn; /** - * Decodes a ResumeRelayOptions message from the specified reader or buffer, length delimited. + * Decodes a MemphisConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResumeRelayOptions + * @returns MemphisConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ResumeRelayOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MemphisConn; /** - * Verifies a ResumeRelayOptions message. + * Verifies a MemphisConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResumeRelayOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MemphisConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResumeRelayOptions + * @returns MemphisConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.ResumeRelayOptions; + public static fromObject(object: { [k: string]: any }): protos.args.MemphisConn; /** - * Creates a plain object from a ResumeRelayOptions message. Also converts values to other types if specified. - * @param message ResumeRelayOptions + * Creates a plain object from a MemphisConn message. Also converts values to other types if specified. + * @param message MemphisConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ResumeRelayOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.MemphisConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResumeRelayOptions to JSON. + * Converts this MemphisConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ServerOptions. */ - interface IServerOptions { - - /** ServerOptions nodeId */ - nodeId?: (string|null); - - /** ServerOptions clusterId */ - clusterId?: (string|null); - - /** ServerOptions grpcListenAddress */ - grpcListenAddress?: (string|null); - - /** ServerOptions authToken */ - authToken?: (string|null); - - /** ServerOptions natsUrl */ - natsUrl?: (string[]|null); - - /** ServerOptions useTls */ - useTls?: (boolean|null); - - /** ServerOptions tlsCertFile */ - tlsCertFile?: (string|null); - - /** ServerOptions tlsKeyFile */ - tlsKeyFile?: (string|null); - - /** ServerOptions tlsCaFile */ - tlsCaFile?: (string|null); - - /** ServerOptions tlsSkipVerify */ - tlsSkipVerify?: (boolean|null); - - /** ServerOptions enableCluster */ - enableCluster?: (boolean|null); - - /** ServerOptions statsDatabasePath */ - statsDatabasePath?: (string|null); - - /** ServerOptions statsFlushIntervalSeconds */ - statsFlushIntervalSeconds?: (number|null); - - /** ServerOptions httpListenAddress */ - httpListenAddress?: (string|null); - - /** ServerOptions remoteControlEnabled */ - remoteControlEnabled?: (boolean|null); + /** Properties of a MemphisReadArgs. */ + interface IMemphisReadArgs { - /** ServerOptions remoteControlAddress */ - remoteControlAddress?: (string|null); + /** MemphisReadArgs station */ + station?: (string|null); - /** ServerOptions remoteControlApiToken */ - remoteControlApiToken?: (string|null); + /** MemphisReadArgs consumerName */ + consumerName?: (string|null); - /** ServerOptions remoteControlDisableTls */ - remoteControlDisableTls?: (boolean|null); + /** MemphisReadArgs consumerGroup */ + consumerGroup?: (string|null); } - /** Represents a ServerOptions. */ - class ServerOptions implements IServerOptions { + /** Represents a MemphisReadArgs. */ + class MemphisReadArgs implements IMemphisReadArgs { /** - * Constructs a new ServerOptions. + * Constructs a new MemphisReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IServerOptions); - - /** ServerOptions nodeId. */ - public nodeId: string; - - /** ServerOptions clusterId. */ - public clusterId: string; - - /** ServerOptions grpcListenAddress. */ - public grpcListenAddress: string; - - /** ServerOptions authToken. */ - public authToken: string; - - /** ServerOptions natsUrl. */ - public natsUrl: string[]; - - /** ServerOptions useTls. */ - public useTls: boolean; - - /** ServerOptions tlsCertFile. */ - public tlsCertFile: string; - - /** ServerOptions tlsKeyFile. */ - public tlsKeyFile: string; - - /** ServerOptions tlsCaFile. */ - public tlsCaFile: string; - - /** ServerOptions tlsSkipVerify. */ - public tlsSkipVerify: boolean; - - /** ServerOptions enableCluster. */ - public enableCluster: boolean; - - /** ServerOptions statsDatabasePath. */ - public statsDatabasePath: string; - - /** ServerOptions statsFlushIntervalSeconds. */ - public statsFlushIntervalSeconds: number; - - /** ServerOptions httpListenAddress. */ - public httpListenAddress: string; - - /** ServerOptions remoteControlEnabled. */ - public remoteControlEnabled: boolean; + constructor(properties?: protos.args.IMemphisReadArgs); - /** ServerOptions remoteControlAddress. */ - public remoteControlAddress: string; + /** MemphisReadArgs station. */ + public station: string; - /** ServerOptions remoteControlApiToken. */ - public remoteControlApiToken: string; + /** MemphisReadArgs consumerName. */ + public consumerName: string; - /** ServerOptions remoteControlDisableTls. */ - public remoteControlDisableTls: boolean; + /** MemphisReadArgs consumerGroup. */ + public consumerGroup: string; /** - * Creates a new ServerOptions instance using the specified properties. + * Creates a new MemphisReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns ServerOptions instance + * @returns MemphisReadArgs instance */ - public static create(properties?: protos.opts.IServerOptions): protos.opts.ServerOptions; + public static create(properties?: protos.args.IMemphisReadArgs): protos.args.MemphisReadArgs; /** - * Encodes the specified ServerOptions message. Does not implicitly {@link protos.opts.ServerOptions.verify|verify} messages. - * @param message ServerOptions message or plain object to encode + * Encodes the specified MemphisReadArgs message. Does not implicitly {@link protos.args.MemphisReadArgs.verify|verify} messages. + * @param message MemphisReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IServerOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IMemphisReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ServerOptions message, length delimited. Does not implicitly {@link protos.opts.ServerOptions.verify|verify} messages. - * @param message ServerOptions message or plain object to encode + * Encodes the specified MemphisReadArgs message, length delimited. Does not implicitly {@link protos.args.MemphisReadArgs.verify|verify} messages. + * @param message MemphisReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IServerOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IMemphisReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServerOptions message from the specified reader or buffer. + * Decodes a MemphisReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServerOptions + * @returns MemphisReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ServerOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MemphisReadArgs; /** - * Decodes a ServerOptions message from the specified reader or buffer, length delimited. + * Decodes a MemphisReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServerOptions + * @returns MemphisReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ServerOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MemphisReadArgs; /** - * Verifies a ServerOptions message. + * Verifies a MemphisReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ServerOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MemphisReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServerOptions + * @returns MemphisReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.ServerOptions; + public static fromObject(object: { [k: string]: any }): protos.args.MemphisReadArgs; /** - * Creates a plain object from a ServerOptions message. Also converts values to other types if specified. - * @param message ServerOptions + * Creates a plain object from a MemphisReadArgs message. Also converts values to other types if specified. + * @param message MemphisReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ServerOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.MemphisReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServerOptions to JSON. + * Converts this MemphisReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelOptions. */ - interface ITunnelOptions { - - /** TunnelOptions apiToken */ - apiToken?: (string|null); - - /** TunnelOptions connectionId */ - connectionId?: (string|null); - - /** TunnelOptions _grpcAddress */ - _grpcAddress?: (string|null); - - /** TunnelOptions _grpcTimeoutSeconds */ - _grpcTimeoutSeconds?: (number|null); - - /** TunnelOptions _grpcInsecure */ - _grpcInsecure?: (boolean|null); - - /** TunnelOptions name */ - name?: (string|null); - - /** TunnelOptions _tunnelId */ - _tunnelId?: (string|null); - - /** TunnelOptions _active */ - _active?: (boolean|null); - - /** TunnelOptions kafka */ - kafka?: (protos.opts.ITunnelGroupKafkaOptions|null); - - /** TunnelOptions activemq */ - activemq?: (protos.opts.ITunnelGroupActiveMQOptions|null); - - /** TunnelOptions awsSqs */ - awsSqs?: (protos.opts.ITunnelGroupAWSSQSOptions|null); - - /** TunnelOptions awsSns */ - awsSns?: (protos.opts.ITunnelGroupAWSSNSOptions|null); - - /** TunnelOptions nats */ - nats?: (protos.opts.ITunnelGroupNatsOptions|null); - - /** TunnelOptions natsStreaming */ - natsStreaming?: (protos.opts.ITunnelGroupNatsStreamingOptions|null); - - /** TunnelOptions nsq */ - nsq?: (protos.opts.ITunnelGroupNSQOptions|null); - - /** TunnelOptions rabbit */ - rabbit?: (protos.opts.ITunnelGroupRabbitOptions|null); - - /** TunnelOptions mqtt */ - mqtt?: (protos.opts.ITunnelGroupMQTTOptions|null); - - /** TunnelOptions azureServiceBus */ - azureServiceBus?: (protos.opts.ITunnelGroupAzureServiceBusOptions|null); - - /** TunnelOptions azureEventHub */ - azureEventHub?: (protos.opts.ITunnelGroupAzureEventHubOptions|null); - - /** TunnelOptions gcpPubsub */ - gcpPubsub?: (protos.opts.ITunnelGroupGCPPubSubOptions|null); - - /** TunnelOptions kubemqQueue */ - kubemqQueue?: (protos.opts.ITunnelGroupKubeMQQueueOptions|null); - - /** TunnelOptions redisPubsub */ - redisPubsub?: (protos.opts.ITunnelGroupRedisPubSubOptions|null); - - /** TunnelOptions redisStreams */ - redisStreams?: (protos.opts.ITunnelGroupRedisStreamsOptions|null); - - /** TunnelOptions pulsar */ - pulsar?: (protos.opts.ITunnelGroupPulsarOptions|null); + /** Properties of a MemphisWriteArgs. */ + interface IMemphisWriteArgs { - /** TunnelOptions rabbitStreams */ - rabbitStreams?: (protos.opts.ITunnelGroupRabbitStreamsOptions|null); + /** MemphisWriteArgs station */ + station?: (string|null); - /** TunnelOptions natsJetstream */ - natsJetstream?: (protos.opts.ITunnelGroupNatsJetstreamOptions|null); + /** MemphisWriteArgs producerName */ + producerName?: (string|null); - /** TunnelOptions awsKinesis */ - awsKinesis?: (protos.opts.ITunnelGroupAWSKinesisOptions|null); + /** MemphisWriteArgs headers */ + headers?: ({ [k: string]: string }|null); - /** TunnelOptions memphis */ - memphis?: (protos.opts.ITunnelGroupMemphisOptions|null); + /** MemphisWriteArgs messageId */ + messageId?: (string|null); } - /** Represents a TunnelOptions. */ - class TunnelOptions implements ITunnelOptions { + /** Represents a MemphisWriteArgs. */ + class MemphisWriteArgs implements IMemphisWriteArgs { /** - * Constructs a new TunnelOptions. + * Constructs a new MemphisWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelOptions); - - /** TunnelOptions apiToken. */ - public apiToken: string; - - /** TunnelOptions connectionId. */ - public connectionId: string; - - /** TunnelOptions _grpcAddress. */ - public _grpcAddress: string; - - /** TunnelOptions _grpcTimeoutSeconds. */ - public _grpcTimeoutSeconds: number; - - /** TunnelOptions _grpcInsecure. */ - public _grpcInsecure: boolean; - - /** TunnelOptions name. */ - public name: string; - - /** TunnelOptions _tunnelId. */ - public _tunnelId: string; - - /** TunnelOptions _active. */ - public _active: boolean; - - /** TunnelOptions kafka. */ - public kafka?: (protos.opts.ITunnelGroupKafkaOptions|null); - - /** TunnelOptions activemq. */ - public activemq?: (protos.opts.ITunnelGroupActiveMQOptions|null); - - /** TunnelOptions awsSqs. */ - public awsSqs?: (protos.opts.ITunnelGroupAWSSQSOptions|null); - - /** TunnelOptions awsSns. */ - public awsSns?: (protos.opts.ITunnelGroupAWSSNSOptions|null); - - /** TunnelOptions nats. */ - public nats?: (protos.opts.ITunnelGroupNatsOptions|null); - - /** TunnelOptions natsStreaming. */ - public natsStreaming?: (protos.opts.ITunnelGroupNatsStreamingOptions|null); - - /** TunnelOptions nsq. */ - public nsq?: (protos.opts.ITunnelGroupNSQOptions|null); - - /** TunnelOptions rabbit. */ - public rabbit?: (protos.opts.ITunnelGroupRabbitOptions|null); - - /** TunnelOptions mqtt. */ - public mqtt?: (protos.opts.ITunnelGroupMQTTOptions|null); - - /** TunnelOptions azureServiceBus. */ - public azureServiceBus?: (protos.opts.ITunnelGroupAzureServiceBusOptions|null); - - /** TunnelOptions azureEventHub. */ - public azureEventHub?: (protos.opts.ITunnelGroupAzureEventHubOptions|null); - - /** TunnelOptions gcpPubsub. */ - public gcpPubsub?: (protos.opts.ITunnelGroupGCPPubSubOptions|null); - - /** TunnelOptions kubemqQueue. */ - public kubemqQueue?: (protos.opts.ITunnelGroupKubeMQQueueOptions|null); - - /** TunnelOptions redisPubsub. */ - public redisPubsub?: (protos.opts.ITunnelGroupRedisPubSubOptions|null); - - /** TunnelOptions redisStreams. */ - public redisStreams?: (protos.opts.ITunnelGroupRedisStreamsOptions|null); - - /** TunnelOptions pulsar. */ - public pulsar?: (protos.opts.ITunnelGroupPulsarOptions|null); + constructor(properties?: protos.args.IMemphisWriteArgs); - /** TunnelOptions rabbitStreams. */ - public rabbitStreams?: (protos.opts.ITunnelGroupRabbitStreamsOptions|null); + /** MemphisWriteArgs station. */ + public station: string; - /** TunnelOptions natsJetstream. */ - public natsJetstream?: (protos.opts.ITunnelGroupNatsJetstreamOptions|null); + /** MemphisWriteArgs producerName. */ + public producerName: string; - /** TunnelOptions awsKinesis. */ - public awsKinesis?: (protos.opts.ITunnelGroupAWSKinesisOptions|null); + /** MemphisWriteArgs headers. */ + public headers: { [k: string]: string }; - /** TunnelOptions memphis. */ - public memphis?: (protos.opts.ITunnelGroupMemphisOptions|null); + /** MemphisWriteArgs messageId. */ + public messageId: string; /** - * Creates a new TunnelOptions instance using the specified properties. + * Creates a new MemphisWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelOptions instance + * @returns MemphisWriteArgs instance */ - public static create(properties?: protos.opts.ITunnelOptions): protos.opts.TunnelOptions; + public static create(properties?: protos.args.IMemphisWriteArgs): protos.args.MemphisWriteArgs; /** - * Encodes the specified TunnelOptions message. Does not implicitly {@link protos.opts.TunnelOptions.verify|verify} messages. - * @param message TunnelOptions message or plain object to encode + * Encodes the specified MemphisWriteArgs message. Does not implicitly {@link protos.args.MemphisWriteArgs.verify|verify} messages. + * @param message MemphisWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IMemphisWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelOptions.verify|verify} messages. - * @param message TunnelOptions message or plain object to encode + * Encodes the specified MemphisWriteArgs message, length delimited. Does not implicitly {@link protos.args.MemphisWriteArgs.verify|verify} messages. + * @param message MemphisWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IMemphisWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelOptions message from the specified reader or buffer. + * Decodes a MemphisWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelOptions + * @returns MemphisWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MemphisWriteArgs; /** - * Decodes a TunnelOptions message from the specified reader or buffer, length delimited. + * Decodes a MemphisWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelOptions + * @returns MemphisWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MemphisWriteArgs; /** - * Verifies a TunnelOptions message. + * Verifies a MemphisWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MemphisWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelOptions + * @returns MemphisWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelOptions; + public static fromObject(object: { [k: string]: any }): protos.args.MemphisWriteArgs; /** - * Creates a plain object from a TunnelOptions message. Also converts values to other types if specified. - * @param message TunnelOptions + * Creates a plain object from a MemphisWriteArgs message. Also converts values to other types if specified. + * @param message MemphisWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.MemphisWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelOptions to JSON. + * Converts this MemphisWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupKafkaOptions. */ - interface ITunnelGroupKafkaOptions { - - /** TunnelGroupKafkaOptions _conn */ - _conn?: (protos.args.IKafkaConn|null); + /** Properties of a MongoConn. */ + interface IMongoConn { - /** TunnelGroupKafkaOptions args */ - args?: (protos.args.IKafkaWriteArgs|null); + /** MongoConn dsn */ + dsn?: (string|null); } - /** Represents a TunnelGroupKafkaOptions. */ - class TunnelGroupKafkaOptions implements ITunnelGroupKafkaOptions { + /** Represents a MongoConn. */ + class MongoConn implements IMongoConn { /** - * Constructs a new TunnelGroupKafkaOptions. + * Constructs a new MongoConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupKafkaOptions); - - /** TunnelGroupKafkaOptions _conn. */ - public _conn?: (protos.args.IKafkaConn|null); + constructor(properties?: protos.args.IMongoConn); - /** TunnelGroupKafkaOptions args. */ - public args?: (protos.args.IKafkaWriteArgs|null); + /** MongoConn dsn. */ + public dsn: string; /** - * Creates a new TunnelGroupKafkaOptions instance using the specified properties. + * Creates a new MongoConn instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupKafkaOptions instance + * @returns MongoConn instance */ - public static create(properties?: protos.opts.ITunnelGroupKafkaOptions): protos.opts.TunnelGroupKafkaOptions; + public static create(properties?: protos.args.IMongoConn): protos.args.MongoConn; /** - * Encodes the specified TunnelGroupKafkaOptions message. Does not implicitly {@link protos.opts.TunnelGroupKafkaOptions.verify|verify} messages. - * @param message TunnelGroupKafkaOptions message or plain object to encode + * Encodes the specified MongoConn message. Does not implicitly {@link protos.args.MongoConn.verify|verify} messages. + * @param message MongoConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupKafkaOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IMongoConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupKafkaOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupKafkaOptions.verify|verify} messages. - * @param message TunnelGroupKafkaOptions message or plain object to encode + * Encodes the specified MongoConn message, length delimited. Does not implicitly {@link protos.args.MongoConn.verify|verify} messages. + * @param message MongoConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupKafkaOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IMongoConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupKafkaOptions message from the specified reader or buffer. + * Decodes a MongoConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupKafkaOptions + * @returns MongoConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupKafkaOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MongoConn; /** - * Decodes a TunnelGroupKafkaOptions message from the specified reader or buffer, length delimited. + * Decodes a MongoConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupKafkaOptions + * @returns MongoConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupKafkaOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MongoConn; /** - * Verifies a TunnelGroupKafkaOptions message. + * Verifies a MongoConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupKafkaOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MongoConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupKafkaOptions + * @returns MongoConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupKafkaOptions; + public static fromObject(object: { [k: string]: any }): protos.args.MongoConn; /** - * Creates a plain object from a TunnelGroupKafkaOptions message. Also converts values to other types if specified. - * @param message TunnelGroupKafkaOptions + * Creates a plain object from a MongoConn message. Also converts values to other types if specified. + * @param message MongoConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupKafkaOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.MongoConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupKafkaOptions to JSON. + * Converts this MongoConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupActiveMQOptions. */ - interface ITunnelGroupActiveMQOptions { + /** Properties of a MongoReadArgs. */ + interface IMongoReadArgs { - /** TunnelGroupActiveMQOptions _conn */ - _conn?: (protos.args.IActiveMQConn|null); + /** MongoReadArgs database */ + database?: (string|null); - /** TunnelGroupActiveMQOptions args */ - args?: (protos.args.IActiveMQWriteArgs|null); + /** MongoReadArgs collection */ + collection?: (string|null); + + /** MongoReadArgs includeFullDocument */ + includeFullDocument?: (boolean|null); } - /** Represents a TunnelGroupActiveMQOptions. */ - class TunnelGroupActiveMQOptions implements ITunnelGroupActiveMQOptions { + /** Represents a MongoReadArgs. */ + class MongoReadArgs implements IMongoReadArgs { /** - * Constructs a new TunnelGroupActiveMQOptions. + * Constructs a new MongoReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupActiveMQOptions); + constructor(properties?: protos.args.IMongoReadArgs); - /** TunnelGroupActiveMQOptions _conn. */ - public _conn?: (protos.args.IActiveMQConn|null); + /** MongoReadArgs database. */ + public database: string; - /** TunnelGroupActiveMQOptions args. */ - public args?: (protos.args.IActiveMQWriteArgs|null); + /** MongoReadArgs collection. */ + public collection: string; + + /** MongoReadArgs includeFullDocument. */ + public includeFullDocument: boolean; /** - * Creates a new TunnelGroupActiveMQOptions instance using the specified properties. + * Creates a new MongoReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupActiveMQOptions instance + * @returns MongoReadArgs instance */ - public static create(properties?: protos.opts.ITunnelGroupActiveMQOptions): protos.opts.TunnelGroupActiveMQOptions; + public static create(properties?: protos.args.IMongoReadArgs): protos.args.MongoReadArgs; /** - * Encodes the specified TunnelGroupActiveMQOptions message. Does not implicitly {@link protos.opts.TunnelGroupActiveMQOptions.verify|verify} messages. - * @param message TunnelGroupActiveMQOptions message or plain object to encode + * Encodes the specified MongoReadArgs message. Does not implicitly {@link protos.args.MongoReadArgs.verify|verify} messages. + * @param message MongoReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupActiveMQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IMongoReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupActiveMQOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupActiveMQOptions.verify|verify} messages. - * @param message TunnelGroupActiveMQOptions message or plain object to encode + * Encodes the specified MongoReadArgs message, length delimited. Does not implicitly {@link protos.args.MongoReadArgs.verify|verify} messages. + * @param message MongoReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupActiveMQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IMongoReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupActiveMQOptions message from the specified reader or buffer. + * Decodes a MongoReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupActiveMQOptions + * @returns MongoReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupActiveMQOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MongoReadArgs; /** - * Decodes a TunnelGroupActiveMQOptions message from the specified reader or buffer, length delimited. + * Decodes a MongoReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupActiveMQOptions + * @returns MongoReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupActiveMQOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MongoReadArgs; /** - * Verifies a TunnelGroupActiveMQOptions message. + * Verifies a MongoReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupActiveMQOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MongoReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupActiveMQOptions + * @returns MongoReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupActiveMQOptions; + public static fromObject(object: { [k: string]: any }): protos.args.MongoReadArgs; /** - * Creates a plain object from a TunnelGroupActiveMQOptions message. Also converts values to other types if specified. - * @param message TunnelGroupActiveMQOptions + * Creates a plain object from a MongoReadArgs message. Also converts values to other types if specified. + * @param message MongoReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupActiveMQOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.MongoReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupActiveMQOptions to JSON. + * Converts this MongoReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupAWSSQSOptions. */ - interface ITunnelGroupAWSSQSOptions { + /** MQTTQoSLevel enum. */ + enum MQTTQoSLevel { + MQTT_QOS_LEVEL_AT_MOST_ONCE = 0, + MQTT_QOS_LEVEL_AT_LEAST_ONCE = 1, + MQTT_QOS_LEVEL_EXACTLY_ONCE = 2 + } - /** TunnelGroupAWSSQSOptions _conn */ - _conn?: (protos.args.IAWSSQSConn|null); + /** Properties of a MQTTTLSOptions. */ + interface IMQTTTLSOptions { - /** TunnelGroupAWSSQSOptions args */ - args?: (protos.args.IAWSSQSWriteArgs|null); + /** MQTTTLSOptions tlsCaCert */ + tlsCaCert?: (string|null); + + /** MQTTTLSOptions tlsClientCert */ + tlsClientCert?: (string|null); + + /** MQTTTLSOptions tlsClientKey */ + tlsClientKey?: (string|null); + + /** MQTTTLSOptions tlsSkipVerify */ + tlsSkipVerify?: (boolean|null); } - /** Represents a TunnelGroupAWSSQSOptions. */ - class TunnelGroupAWSSQSOptions implements ITunnelGroupAWSSQSOptions { + /** Represents a MQTTTLSOptions. */ + class MQTTTLSOptions implements IMQTTTLSOptions { /** - * Constructs a new TunnelGroupAWSSQSOptions. + * Constructs a new MQTTTLSOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupAWSSQSOptions); + constructor(properties?: protos.args.IMQTTTLSOptions); - /** TunnelGroupAWSSQSOptions _conn. */ - public _conn?: (protos.args.IAWSSQSConn|null); + /** MQTTTLSOptions tlsCaCert. */ + public tlsCaCert: string; - /** TunnelGroupAWSSQSOptions args. */ - public args?: (protos.args.IAWSSQSWriteArgs|null); + /** MQTTTLSOptions tlsClientCert. */ + public tlsClientCert: string; + + /** MQTTTLSOptions tlsClientKey. */ + public tlsClientKey: string; + + /** MQTTTLSOptions tlsSkipVerify. */ + public tlsSkipVerify: boolean; /** - * Creates a new TunnelGroupAWSSQSOptions instance using the specified properties. + * Creates a new MQTTTLSOptions instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupAWSSQSOptions instance + * @returns MQTTTLSOptions instance */ - public static create(properties?: protos.opts.ITunnelGroupAWSSQSOptions): protos.opts.TunnelGroupAWSSQSOptions; + public static create(properties?: protos.args.IMQTTTLSOptions): protos.args.MQTTTLSOptions; /** - * Encodes the specified TunnelGroupAWSSQSOptions message. Does not implicitly {@link protos.opts.TunnelGroupAWSSQSOptions.verify|verify} messages. - * @param message TunnelGroupAWSSQSOptions message or plain object to encode + * Encodes the specified MQTTTLSOptions message. Does not implicitly {@link protos.args.MQTTTLSOptions.verify|verify} messages. + * @param message MQTTTLSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupAWSSQSOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IMQTTTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupAWSSQSOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupAWSSQSOptions.verify|verify} messages. - * @param message TunnelGroupAWSSQSOptions message or plain object to encode + * Encodes the specified MQTTTLSOptions message, length delimited. Does not implicitly {@link protos.args.MQTTTLSOptions.verify|verify} messages. + * @param message MQTTTLSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupAWSSQSOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IMQTTTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupAWSSQSOptions message from the specified reader or buffer. + * Decodes a MQTTTLSOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupAWSSQSOptions + * @returns MQTTTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupAWSSQSOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MQTTTLSOptions; /** - * Decodes a TunnelGroupAWSSQSOptions message from the specified reader or buffer, length delimited. + * Decodes a MQTTTLSOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupAWSSQSOptions + * @returns MQTTTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupAWSSQSOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MQTTTLSOptions; /** - * Verifies a TunnelGroupAWSSQSOptions message. + * Verifies a MQTTTLSOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupAWSSQSOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MQTTTLSOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupAWSSQSOptions + * @returns MQTTTLSOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupAWSSQSOptions; + public static fromObject(object: { [k: string]: any }): protos.args.MQTTTLSOptions; /** - * Creates a plain object from a TunnelGroupAWSSQSOptions message. Also converts values to other types if specified. - * @param message TunnelGroupAWSSQSOptions + * Creates a plain object from a MQTTTLSOptions message. Also converts values to other types if specified. + * @param message MQTTTLSOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupAWSSQSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.MQTTTLSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupAWSSQSOptions to JSON. + * Converts this MQTTTLSOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupAWSSNSOptions. */ - interface ITunnelGroupAWSSNSOptions { + /** Properties of a MQTTConn. */ + interface IMQTTConn { - /** TunnelGroupAWSSNSOptions _conn */ - _conn?: (protos.args.IAWSSNSConn|null); + /** MQTTConn address */ + address?: (string|null); - /** TunnelGroupAWSSNSOptions args */ - args?: (protos.args.IAWSSNSWriteArgs|null); + /** MQTTConn connTimeoutSeconds */ + connTimeoutSeconds?: (number|null); + + /** MQTTConn clientId */ + clientId?: (string|null); + + /** MQTTConn qosLevel */ + qosLevel?: (protos.args.MQTTQoSLevel|null); + + /** MQTTConn tlsOptions */ + tlsOptions?: (protos.args.IMQTTTLSOptions|null); } - /** Represents a TunnelGroupAWSSNSOptions. */ - class TunnelGroupAWSSNSOptions implements ITunnelGroupAWSSNSOptions { + /** Represents a MQTTConn. */ + class MQTTConn implements IMQTTConn { /** - * Constructs a new TunnelGroupAWSSNSOptions. + * Constructs a new MQTTConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupAWSSNSOptions); + constructor(properties?: protos.args.IMQTTConn); - /** TunnelGroupAWSSNSOptions _conn. */ - public _conn?: (protos.args.IAWSSNSConn|null); + /** MQTTConn address. */ + public address: string; - /** TunnelGroupAWSSNSOptions args. */ - public args?: (protos.args.IAWSSNSWriteArgs|null); + /** MQTTConn connTimeoutSeconds. */ + public connTimeoutSeconds: number; + + /** MQTTConn clientId. */ + public clientId: string; + + /** MQTTConn qosLevel. */ + public qosLevel: protos.args.MQTTQoSLevel; + + /** MQTTConn tlsOptions. */ + public tlsOptions?: (protos.args.IMQTTTLSOptions|null); /** - * Creates a new TunnelGroupAWSSNSOptions instance using the specified properties. + * Creates a new MQTTConn instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupAWSSNSOptions instance + * @returns MQTTConn instance */ - public static create(properties?: protos.opts.ITunnelGroupAWSSNSOptions): protos.opts.TunnelGroupAWSSNSOptions; + public static create(properties?: protos.args.IMQTTConn): protos.args.MQTTConn; /** - * Encodes the specified TunnelGroupAWSSNSOptions message. Does not implicitly {@link protos.opts.TunnelGroupAWSSNSOptions.verify|verify} messages. - * @param message TunnelGroupAWSSNSOptions message or plain object to encode + * Encodes the specified MQTTConn message. Does not implicitly {@link protos.args.MQTTConn.verify|verify} messages. + * @param message MQTTConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupAWSSNSOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IMQTTConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupAWSSNSOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupAWSSNSOptions.verify|verify} messages. - * @param message TunnelGroupAWSSNSOptions message or plain object to encode + * Encodes the specified MQTTConn message, length delimited. Does not implicitly {@link protos.args.MQTTConn.verify|verify} messages. + * @param message MQTTConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupAWSSNSOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IMQTTConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupAWSSNSOptions message from the specified reader or buffer. + * Decodes a MQTTConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupAWSSNSOptions + * @returns MQTTConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupAWSSNSOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MQTTConn; /** - * Decodes a TunnelGroupAWSSNSOptions message from the specified reader or buffer, length delimited. + * Decodes a MQTTConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupAWSSNSOptions + * @returns MQTTConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupAWSSNSOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MQTTConn; /** - * Verifies a TunnelGroupAWSSNSOptions message. + * Verifies a MQTTConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupAWSSNSOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MQTTConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupAWSSNSOptions + * @returns MQTTConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupAWSSNSOptions; + public static fromObject(object: { [k: string]: any }): protos.args.MQTTConn; /** - * Creates a plain object from a TunnelGroupAWSSNSOptions message. Also converts values to other types if specified. - * @param message TunnelGroupAWSSNSOptions + * Creates a plain object from a MQTTConn message. Also converts values to other types if specified. + * @param message MQTTConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupAWSSNSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.MQTTConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupAWSSNSOptions to JSON. + * Converts this MQTTConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupNatsOptions. */ - interface ITunnelGroupNatsOptions { + /** Properties of a MQTTReadArgs. */ + interface IMQTTReadArgs { - /** TunnelGroupNatsOptions _conn */ - _conn?: (protos.args.INatsConn|null); + /** MQTTReadArgs topic */ + topic?: (string|null); - /** TunnelGroupNatsOptions args */ - args?: (protos.args.INatsWriteArgs|null); + /** MQTTReadArgs readTimeoutSeconds */ + readTimeoutSeconds?: (number|null); } - /** Represents a TunnelGroupNatsOptions. */ - class TunnelGroupNatsOptions implements ITunnelGroupNatsOptions { + /** Represents a MQTTReadArgs. */ + class MQTTReadArgs implements IMQTTReadArgs { /** - * Constructs a new TunnelGroupNatsOptions. + * Constructs a new MQTTReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupNatsOptions); + constructor(properties?: protos.args.IMQTTReadArgs); - /** TunnelGroupNatsOptions _conn. */ - public _conn?: (protos.args.INatsConn|null); + /** MQTTReadArgs topic. */ + public topic: string; - /** TunnelGroupNatsOptions args. */ - public args?: (protos.args.INatsWriteArgs|null); + /** MQTTReadArgs readTimeoutSeconds. */ + public readTimeoutSeconds: number; /** - * Creates a new TunnelGroupNatsOptions instance using the specified properties. + * Creates a new MQTTReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupNatsOptions instance + * @returns MQTTReadArgs instance */ - public static create(properties?: protos.opts.ITunnelGroupNatsOptions): protos.opts.TunnelGroupNatsOptions; + public static create(properties?: protos.args.IMQTTReadArgs): protos.args.MQTTReadArgs; /** - * Encodes the specified TunnelGroupNatsOptions message. Does not implicitly {@link protos.opts.TunnelGroupNatsOptions.verify|verify} messages. - * @param message TunnelGroupNatsOptions message or plain object to encode + * Encodes the specified MQTTReadArgs message. Does not implicitly {@link protos.args.MQTTReadArgs.verify|verify} messages. + * @param message MQTTReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupNatsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IMQTTReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupNatsOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupNatsOptions.verify|verify} messages. - * @param message TunnelGroupNatsOptions message or plain object to encode + * Encodes the specified MQTTReadArgs message, length delimited. Does not implicitly {@link protos.args.MQTTReadArgs.verify|verify} messages. + * @param message MQTTReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupNatsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IMQTTReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupNatsOptions message from the specified reader or buffer. + * Decodes a MQTTReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupNatsOptions + * @returns MQTTReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupNatsOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MQTTReadArgs; /** - * Decodes a TunnelGroupNatsOptions message from the specified reader or buffer, length delimited. + * Decodes a MQTTReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupNatsOptions + * @returns MQTTReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupNatsOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MQTTReadArgs; /** - * Verifies a TunnelGroupNatsOptions message. + * Verifies a MQTTReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupNatsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MQTTReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupNatsOptions + * @returns MQTTReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupNatsOptions; + public static fromObject(object: { [k: string]: any }): protos.args.MQTTReadArgs; /** - * Creates a plain object from a TunnelGroupNatsOptions message. Also converts values to other types if specified. - * @param message TunnelGroupNatsOptions + * Creates a plain object from a MQTTReadArgs message. Also converts values to other types if specified. + * @param message MQTTReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupNatsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.MQTTReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupNatsOptions to JSON. + * Converts this MQTTReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupNatsJetstreamOptions. */ - interface ITunnelGroupNatsJetstreamOptions { + /** Properties of a MQTTWriteArgs. */ + interface IMQTTWriteArgs { - /** TunnelGroupNatsJetstreamOptions _conn */ - _conn?: (protos.args.INatsJetstreamConn|null); + /** MQTTWriteArgs topic */ + topic?: (string|null); - /** TunnelGroupNatsJetstreamOptions args */ - args?: (protos.args.INatsJetstreamWriteArgs|null); + /** MQTTWriteArgs writeTimeoutSeconds */ + writeTimeoutSeconds?: (number|null); } - /** Represents a TunnelGroupNatsJetstreamOptions. */ - class TunnelGroupNatsJetstreamOptions implements ITunnelGroupNatsJetstreamOptions { + /** Represents a MQTTWriteArgs. */ + class MQTTWriteArgs implements IMQTTWriteArgs { /** - * Constructs a new TunnelGroupNatsJetstreamOptions. + * Constructs a new MQTTWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupNatsJetstreamOptions); + constructor(properties?: protos.args.IMQTTWriteArgs); - /** TunnelGroupNatsJetstreamOptions _conn. */ - public _conn?: (protos.args.INatsJetstreamConn|null); + /** MQTTWriteArgs topic. */ + public topic: string; - /** TunnelGroupNatsJetstreamOptions args. */ - public args?: (protos.args.INatsJetstreamWriteArgs|null); + /** MQTTWriteArgs writeTimeoutSeconds. */ + public writeTimeoutSeconds: number; /** - * Creates a new TunnelGroupNatsJetstreamOptions instance using the specified properties. + * Creates a new MQTTWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupNatsJetstreamOptions instance + * @returns MQTTWriteArgs instance */ - public static create(properties?: protos.opts.ITunnelGroupNatsJetstreamOptions): protos.opts.TunnelGroupNatsJetstreamOptions; + public static create(properties?: protos.args.IMQTTWriteArgs): protos.args.MQTTWriteArgs; /** - * Encodes the specified TunnelGroupNatsJetstreamOptions message. Does not implicitly {@link protos.opts.TunnelGroupNatsJetstreamOptions.verify|verify} messages. - * @param message TunnelGroupNatsJetstreamOptions message or plain object to encode + * Encodes the specified MQTTWriteArgs message. Does not implicitly {@link protos.args.MQTTWriteArgs.verify|verify} messages. + * @param message MQTTWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupNatsJetstreamOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IMQTTWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupNatsJetstreamOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupNatsJetstreamOptions.verify|verify} messages. - * @param message TunnelGroupNatsJetstreamOptions message or plain object to encode + * Encodes the specified MQTTWriteArgs message, length delimited. Does not implicitly {@link protos.args.MQTTWriteArgs.verify|verify} messages. + * @param message MQTTWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupNatsJetstreamOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IMQTTWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupNatsJetstreamOptions message from the specified reader or buffer. + * Decodes a MQTTWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupNatsJetstreamOptions + * @returns MQTTWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupNatsJetstreamOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MQTTWriteArgs; /** - * Decodes a TunnelGroupNatsJetstreamOptions message from the specified reader or buffer, length delimited. + * Decodes a MQTTWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupNatsJetstreamOptions + * @returns MQTTWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupNatsJetstreamOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MQTTWriteArgs; /** - * Verifies a TunnelGroupNatsJetstreamOptions message. + * Verifies a MQTTWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupNatsJetstreamOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MQTTWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupNatsJetstreamOptions + * @returns MQTTWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupNatsJetstreamOptions; + public static fromObject(object: { [k: string]: any }): protos.args.MQTTWriteArgs; /** - * Creates a plain object from a TunnelGroupNatsJetstreamOptions message. Also converts values to other types if specified. - * @param message TunnelGroupNatsJetstreamOptions + * Creates a plain object from a MQTTWriteArgs message. Also converts values to other types if specified. + * @param message MQTTWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupNatsJetstreamOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.MQTTWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupNatsJetstreamOptions to JSON. + * Converts this MQTTWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupNatsStreamingOptions. */ - interface ITunnelGroupNatsStreamingOptions { + /** Properties of a NatsConn. */ + interface INatsConn { - /** TunnelGroupNatsStreamingOptions _conn */ - _conn?: (protos.args.INatsStreamingConn|null); + /** NatsConn dsn */ + dsn?: (string|null); - /** TunnelGroupNatsStreamingOptions args */ - args?: (protos.args.INatsStreamingWriteArgs|null); + /** NatsConn userCredentials */ + userCredentials?: (string|null); + + /** NatsConn tlsOptions */ + tlsOptions?: (protos.args.INatsTLSOptions|null); + + /** NatsConn nkey */ + nkey?: (string|null); } - /** Represents a TunnelGroupNatsStreamingOptions. */ - class TunnelGroupNatsStreamingOptions implements ITunnelGroupNatsStreamingOptions { + /** Represents a NatsConn. */ + class NatsConn implements INatsConn { /** - * Constructs a new TunnelGroupNatsStreamingOptions. + * Constructs a new NatsConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupNatsStreamingOptions); + constructor(properties?: protos.args.INatsConn); - /** TunnelGroupNatsStreamingOptions _conn. */ - public _conn?: (protos.args.INatsStreamingConn|null); + /** NatsConn dsn. */ + public dsn: string; - /** TunnelGroupNatsStreamingOptions args. */ - public args?: (protos.args.INatsStreamingWriteArgs|null); + /** NatsConn userCredentials. */ + public userCredentials: string; + + /** NatsConn tlsOptions. */ + public tlsOptions?: (protos.args.INatsTLSOptions|null); + + /** NatsConn nkey. */ + public nkey: string; /** - * Creates a new TunnelGroupNatsStreamingOptions instance using the specified properties. + * Creates a new NatsConn instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupNatsStreamingOptions instance + * @returns NatsConn instance */ - public static create(properties?: protos.opts.ITunnelGroupNatsStreamingOptions): protos.opts.TunnelGroupNatsStreamingOptions; + public static create(properties?: protos.args.INatsConn): protos.args.NatsConn; /** - * Encodes the specified TunnelGroupNatsStreamingOptions message. Does not implicitly {@link protos.opts.TunnelGroupNatsStreamingOptions.verify|verify} messages. - * @param message TunnelGroupNatsStreamingOptions message or plain object to encode + * Encodes the specified NatsConn message. Does not implicitly {@link protos.args.NatsConn.verify|verify} messages. + * @param message NatsConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupNatsStreamingOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INatsConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupNatsStreamingOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupNatsStreamingOptions.verify|verify} messages. - * @param message TunnelGroupNatsStreamingOptions message or plain object to encode + * Encodes the specified NatsConn message, length delimited. Does not implicitly {@link protos.args.NatsConn.verify|verify} messages. + * @param message NatsConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupNatsStreamingOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INatsConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupNatsStreamingOptions message from the specified reader or buffer. + * Decodes a NatsConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupNatsStreamingOptions + * @returns NatsConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupNatsStreamingOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsConn; /** - * Decodes a TunnelGroupNatsStreamingOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupNatsStreamingOptions + * @returns NatsConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupNatsStreamingOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsConn; /** - * Verifies a TunnelGroupNatsStreamingOptions message. + * Verifies a NatsConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupNatsStreamingOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupNatsStreamingOptions + * @returns NatsConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupNatsStreamingOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NatsConn; /** - * Creates a plain object from a TunnelGroupNatsStreamingOptions message. Also converts values to other types if specified. - * @param message TunnelGroupNatsStreamingOptions + * Creates a plain object from a NatsConn message. Also converts values to other types if specified. + * @param message NatsConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupNatsStreamingOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NatsConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupNatsStreamingOptions to JSON. + * Converts this NatsConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupNSQOptions. */ - interface ITunnelGroupNSQOptions { + /** Properties of a NatsTLSOptions. */ + interface INatsTLSOptions { + + /** NatsTLSOptions tlsSkipVerify */ + tlsSkipVerify?: (boolean|null); - /** TunnelGroupNSQOptions _conn */ - _conn?: (protos.args.INSQConn|null); + /** NatsTLSOptions tlsCaCert */ + tlsCaCert?: (string|null); - /** TunnelGroupNSQOptions args */ - args?: (protos.args.INSQWriteArgs|null); + /** NatsTLSOptions tlsClientCert */ + tlsClientCert?: (string|null); + + /** NatsTLSOptions tlsClientKey */ + tlsClientKey?: (string|null); + + /** NatsTLSOptions useTls */ + useTls?: (boolean|null); } - /** Represents a TunnelGroupNSQOptions. */ - class TunnelGroupNSQOptions implements ITunnelGroupNSQOptions { + /** Represents a NatsTLSOptions. */ + class NatsTLSOptions implements INatsTLSOptions { /** - * Constructs a new TunnelGroupNSQOptions. + * Constructs a new NatsTLSOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupNSQOptions); + constructor(properties?: protos.args.INatsTLSOptions); - /** TunnelGroupNSQOptions _conn. */ - public _conn?: (protos.args.INSQConn|null); + /** NatsTLSOptions tlsSkipVerify. */ + public tlsSkipVerify: boolean; - /** TunnelGroupNSQOptions args. */ - public args?: (protos.args.INSQWriteArgs|null); + /** NatsTLSOptions tlsCaCert. */ + public tlsCaCert: string; + + /** NatsTLSOptions tlsClientCert. */ + public tlsClientCert: string; + + /** NatsTLSOptions tlsClientKey. */ + public tlsClientKey: string; + + /** NatsTLSOptions useTls. */ + public useTls: boolean; /** - * Creates a new TunnelGroupNSQOptions instance using the specified properties. + * Creates a new NatsTLSOptions instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupNSQOptions instance + * @returns NatsTLSOptions instance */ - public static create(properties?: protos.opts.ITunnelGroupNSQOptions): protos.opts.TunnelGroupNSQOptions; + public static create(properties?: protos.args.INatsTLSOptions): protos.args.NatsTLSOptions; /** - * Encodes the specified TunnelGroupNSQOptions message. Does not implicitly {@link protos.opts.TunnelGroupNSQOptions.verify|verify} messages. - * @param message TunnelGroupNSQOptions message or plain object to encode + * Encodes the specified NatsTLSOptions message. Does not implicitly {@link protos.args.NatsTLSOptions.verify|verify} messages. + * @param message NatsTLSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupNSQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INatsTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupNSQOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupNSQOptions.verify|verify} messages. - * @param message TunnelGroupNSQOptions message or plain object to encode + * Encodes the specified NatsTLSOptions message, length delimited. Does not implicitly {@link protos.args.NatsTLSOptions.verify|verify} messages. + * @param message NatsTLSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupNSQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INatsTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupNSQOptions message from the specified reader or buffer. + * Decodes a NatsTLSOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupNSQOptions + * @returns NatsTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupNSQOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsTLSOptions; /** - * Decodes a TunnelGroupNSQOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsTLSOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupNSQOptions + * @returns NatsTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupNSQOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsTLSOptions; /** - * Verifies a TunnelGroupNSQOptions message. + * Verifies a NatsTLSOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupNSQOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsTLSOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupNSQOptions + * @returns NatsTLSOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupNSQOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NatsTLSOptions; /** - * Creates a plain object from a TunnelGroupNSQOptions message. Also converts values to other types if specified. - * @param message TunnelGroupNSQOptions + * Creates a plain object from a NatsTLSOptions message. Also converts values to other types if specified. + * @param message NatsTLSOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupNSQOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NatsTLSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupNSQOptions to JSON. + * Converts this NatsTLSOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupRabbitOptions. */ - interface ITunnelGroupRabbitOptions { + /** Properties of a NatsReadArgs. */ + interface INatsReadArgs { - /** TunnelGroupRabbitOptions _conn */ - _conn?: (protos.args.IRabbitConn|null); + /** NatsReadArgs subject */ + subject?: (string|null); + } - /** TunnelGroupRabbitOptions args */ - args?: (protos.args.IRabbitWriteArgs|null); - } - - /** Represents a TunnelGroupRabbitOptions. */ - class TunnelGroupRabbitOptions implements ITunnelGroupRabbitOptions { + /** Represents a NatsReadArgs. */ + class NatsReadArgs implements INatsReadArgs { /** - * Constructs a new TunnelGroupRabbitOptions. + * Constructs a new NatsReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupRabbitOptions); - - /** TunnelGroupRabbitOptions _conn. */ - public _conn?: (protos.args.IRabbitConn|null); + constructor(properties?: protos.args.INatsReadArgs); - /** TunnelGroupRabbitOptions args. */ - public args?: (protos.args.IRabbitWriteArgs|null); + /** NatsReadArgs subject. */ + public subject: string; /** - * Creates a new TunnelGroupRabbitOptions instance using the specified properties. + * Creates a new NatsReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupRabbitOptions instance + * @returns NatsReadArgs instance */ - public static create(properties?: protos.opts.ITunnelGroupRabbitOptions): protos.opts.TunnelGroupRabbitOptions; + public static create(properties?: protos.args.INatsReadArgs): protos.args.NatsReadArgs; /** - * Encodes the specified TunnelGroupRabbitOptions message. Does not implicitly {@link protos.opts.TunnelGroupRabbitOptions.verify|verify} messages. - * @param message TunnelGroupRabbitOptions message or plain object to encode + * Encodes the specified NatsReadArgs message. Does not implicitly {@link protos.args.NatsReadArgs.verify|verify} messages. + * @param message NatsReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupRabbitOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INatsReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupRabbitOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupRabbitOptions.verify|verify} messages. - * @param message TunnelGroupRabbitOptions message or plain object to encode + * Encodes the specified NatsReadArgs message, length delimited. Does not implicitly {@link protos.args.NatsReadArgs.verify|verify} messages. + * @param message NatsReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupRabbitOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INatsReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupRabbitOptions message from the specified reader or buffer. + * Decodes a NatsReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupRabbitOptions + * @returns NatsReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupRabbitOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsReadArgs; /** - * Decodes a TunnelGroupRabbitOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupRabbitOptions + * @returns NatsReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupRabbitOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsReadArgs; /** - * Verifies a TunnelGroupRabbitOptions message. + * Verifies a NatsReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupRabbitOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupRabbitOptions + * @returns NatsReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupRabbitOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NatsReadArgs; /** - * Creates a plain object from a TunnelGroupRabbitOptions message. Also converts values to other types if specified. - * @param message TunnelGroupRabbitOptions + * Creates a plain object from a NatsReadArgs message. Also converts values to other types if specified. + * @param message NatsReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupRabbitOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NatsReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupRabbitOptions to JSON. + * Converts this NatsReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupRabbitStreamsOptions. */ - interface ITunnelGroupRabbitStreamsOptions { - - /** TunnelGroupRabbitStreamsOptions _conn */ - _conn?: (protos.args.IRabbitStreamsConn|null); + /** Properties of a NatsWriteArgs. */ + interface INatsWriteArgs { - /** TunnelGroupRabbitStreamsOptions args */ - args?: (protos.args.IRabbitStreamsWriteArgs|null); + /** NatsWriteArgs subject */ + subject?: (string|null); } - /** Represents a TunnelGroupRabbitStreamsOptions. */ - class TunnelGroupRabbitStreamsOptions implements ITunnelGroupRabbitStreamsOptions { + /** Represents a NatsWriteArgs. */ + class NatsWriteArgs implements INatsWriteArgs { /** - * Constructs a new TunnelGroupRabbitStreamsOptions. + * Constructs a new NatsWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupRabbitStreamsOptions); - - /** TunnelGroupRabbitStreamsOptions _conn. */ - public _conn?: (protos.args.IRabbitStreamsConn|null); + constructor(properties?: protos.args.INatsWriteArgs); - /** TunnelGroupRabbitStreamsOptions args. */ - public args?: (protos.args.IRabbitStreamsWriteArgs|null); + /** NatsWriteArgs subject. */ + public subject: string; /** - * Creates a new TunnelGroupRabbitStreamsOptions instance using the specified properties. + * Creates a new NatsWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupRabbitStreamsOptions instance + * @returns NatsWriteArgs instance */ - public static create(properties?: protos.opts.ITunnelGroupRabbitStreamsOptions): protos.opts.TunnelGroupRabbitStreamsOptions; + public static create(properties?: protos.args.INatsWriteArgs): protos.args.NatsWriteArgs; /** - * Encodes the specified TunnelGroupRabbitStreamsOptions message. Does not implicitly {@link protos.opts.TunnelGroupRabbitStreamsOptions.verify|verify} messages. - * @param message TunnelGroupRabbitStreamsOptions message or plain object to encode + * Encodes the specified NatsWriteArgs message. Does not implicitly {@link protos.args.NatsWriteArgs.verify|verify} messages. + * @param message NatsWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupRabbitStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INatsWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupRabbitStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupRabbitStreamsOptions.verify|verify} messages. - * @param message TunnelGroupRabbitStreamsOptions message or plain object to encode + * Encodes the specified NatsWriteArgs message, length delimited. Does not implicitly {@link protos.args.NatsWriteArgs.verify|verify} messages. + * @param message NatsWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupRabbitStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INatsWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupRabbitStreamsOptions message from the specified reader or buffer. + * Decodes a NatsWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupRabbitStreamsOptions + * @returns NatsWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupRabbitStreamsOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsWriteArgs; /** - * Decodes a TunnelGroupRabbitStreamsOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupRabbitStreamsOptions + * @returns NatsWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupRabbitStreamsOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsWriteArgs; /** - * Verifies a TunnelGroupRabbitStreamsOptions message. + * Verifies a NatsWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupRabbitStreamsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupRabbitStreamsOptions + * @returns NatsWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupRabbitStreamsOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NatsWriteArgs; /** - * Creates a plain object from a TunnelGroupRabbitStreamsOptions message. Also converts values to other types if specified. - * @param message TunnelGroupRabbitStreamsOptions + * Creates a plain object from a NatsWriteArgs message. Also converts values to other types if specified. + * @param message NatsWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupRabbitStreamsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NatsWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupRabbitStreamsOptions to JSON. + * Converts this NatsWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupRedisPubSubOptions. */ - interface ITunnelGroupRedisPubSubOptions { + /** Properties of a NatsJetstreamTLSOptions. */ + interface INatsJetstreamTLSOptions { - /** TunnelGroupRedisPubSubOptions _conn */ - _conn?: (protos.args.IRedisPubSubConn|null); + /** NatsJetstreamTLSOptions tlsCaCert */ + tlsCaCert?: (string|null); - /** TunnelGroupRedisPubSubOptions args */ - args?: (protos.args.IRedisPubSubWriteArgs|null); + /** NatsJetstreamTLSOptions tlsClientCert */ + tlsClientCert?: (string|null); + + /** NatsJetstreamTLSOptions tlsClientKey */ + tlsClientKey?: (string|null); + + /** NatsJetstreamTLSOptions tlsSkipVerify */ + tlsSkipVerify?: (boolean|null); + + /** NatsJetstreamTLSOptions useTls */ + useTls?: (boolean|null); } - /** Represents a TunnelGroupRedisPubSubOptions. */ - class TunnelGroupRedisPubSubOptions implements ITunnelGroupRedisPubSubOptions { + /** Represents a NatsJetstreamTLSOptions. */ + class NatsJetstreamTLSOptions implements INatsJetstreamTLSOptions { /** - * Constructs a new TunnelGroupRedisPubSubOptions. + * Constructs a new NatsJetstreamTLSOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupRedisPubSubOptions); + constructor(properties?: protos.args.INatsJetstreamTLSOptions); - /** TunnelGroupRedisPubSubOptions _conn. */ - public _conn?: (protos.args.IRedisPubSubConn|null); + /** NatsJetstreamTLSOptions tlsCaCert. */ + public tlsCaCert: string; - /** TunnelGroupRedisPubSubOptions args. */ - public args?: (protos.args.IRedisPubSubWriteArgs|null); + /** NatsJetstreamTLSOptions tlsClientCert. */ + public tlsClientCert: string; + + /** NatsJetstreamTLSOptions tlsClientKey. */ + public tlsClientKey: string; + + /** NatsJetstreamTLSOptions tlsSkipVerify. */ + public tlsSkipVerify: boolean; + + /** NatsJetstreamTLSOptions useTls. */ + public useTls: boolean; /** - * Creates a new TunnelGroupRedisPubSubOptions instance using the specified properties. + * Creates a new NatsJetstreamTLSOptions instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupRedisPubSubOptions instance + * @returns NatsJetstreamTLSOptions instance */ - public static create(properties?: protos.opts.ITunnelGroupRedisPubSubOptions): protos.opts.TunnelGroupRedisPubSubOptions; + public static create(properties?: protos.args.INatsJetstreamTLSOptions): protos.args.NatsJetstreamTLSOptions; /** - * Encodes the specified TunnelGroupRedisPubSubOptions message. Does not implicitly {@link protos.opts.TunnelGroupRedisPubSubOptions.verify|verify} messages. - * @param message TunnelGroupRedisPubSubOptions message or plain object to encode + * Encodes the specified NatsJetstreamTLSOptions message. Does not implicitly {@link protos.args.NatsJetstreamTLSOptions.verify|verify} messages. + * @param message NatsJetstreamTLSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupRedisPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INatsJetstreamTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupRedisPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupRedisPubSubOptions.verify|verify} messages. - * @param message TunnelGroupRedisPubSubOptions message or plain object to encode + * Encodes the specified NatsJetstreamTLSOptions message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamTLSOptions.verify|verify} messages. + * @param message NatsJetstreamTLSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupRedisPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INatsJetstreamTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupRedisPubSubOptions message from the specified reader or buffer. + * Decodes a NatsJetstreamTLSOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupRedisPubSubOptions + * @returns NatsJetstreamTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupRedisPubSubOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsJetstreamTLSOptions; /** - * Decodes a TunnelGroupRedisPubSubOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsJetstreamTLSOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupRedisPubSubOptions + * @returns NatsJetstreamTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupRedisPubSubOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsJetstreamTLSOptions; /** - * Verifies a TunnelGroupRedisPubSubOptions message. + * Verifies a NatsJetstreamTLSOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupRedisPubSubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsJetstreamTLSOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupRedisPubSubOptions + * @returns NatsJetstreamTLSOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupRedisPubSubOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NatsJetstreamTLSOptions; /** - * Creates a plain object from a TunnelGroupRedisPubSubOptions message. Also converts values to other types if specified. - * @param message TunnelGroupRedisPubSubOptions + * Creates a plain object from a NatsJetstreamTLSOptions message. Also converts values to other types if specified. + * @param message NatsJetstreamTLSOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupRedisPubSubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NatsJetstreamTLSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupRedisPubSubOptions to JSON. + * Converts this NatsJetstreamTLSOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupRedisStreamsOptions. */ - interface ITunnelGroupRedisStreamsOptions { + /** Properties of a NatsJetstreamConn. */ + interface INatsJetstreamConn { - /** TunnelGroupRedisStreamsOptions _conn */ - _conn?: (protos.args.IRedisStreamsConn|null); + /** NatsJetstreamConn dsn */ + dsn?: (string|null); - /** TunnelGroupRedisStreamsOptions args */ - args?: (protos.args.IRedisStreamsWriteArgs|null); + /** NatsJetstreamConn userCredentials */ + userCredentials?: (string|null); + + /** NatsJetstreamConn clientId */ + clientId?: (string|null); + + /** NatsJetstreamConn tlsOptions */ + tlsOptions?: (protos.args.INatsJetstreamTLSOptions|null); + + /** NatsJetstreamConn nkey */ + nkey?: (string|null); } - /** Represents a TunnelGroupRedisStreamsOptions. */ - class TunnelGroupRedisStreamsOptions implements ITunnelGroupRedisStreamsOptions { + /** Represents a NatsJetstreamConn. */ + class NatsJetstreamConn implements INatsJetstreamConn { /** - * Constructs a new TunnelGroupRedisStreamsOptions. + * Constructs a new NatsJetstreamConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupRedisStreamsOptions); + constructor(properties?: protos.args.INatsJetstreamConn); - /** TunnelGroupRedisStreamsOptions _conn. */ - public _conn?: (protos.args.IRedisStreamsConn|null); + /** NatsJetstreamConn dsn. */ + public dsn: string; - /** TunnelGroupRedisStreamsOptions args. */ - public args?: (protos.args.IRedisStreamsWriteArgs|null); + /** NatsJetstreamConn userCredentials. */ + public userCredentials: string; + + /** NatsJetstreamConn clientId. */ + public clientId: string; + + /** NatsJetstreamConn tlsOptions. */ + public tlsOptions?: (protos.args.INatsJetstreamTLSOptions|null); + + /** NatsJetstreamConn nkey. */ + public nkey: string; /** - * Creates a new TunnelGroupRedisStreamsOptions instance using the specified properties. + * Creates a new NatsJetstreamConn instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupRedisStreamsOptions instance + * @returns NatsJetstreamConn instance */ - public static create(properties?: protos.opts.ITunnelGroupRedisStreamsOptions): protos.opts.TunnelGroupRedisStreamsOptions; + public static create(properties?: protos.args.INatsJetstreamConn): protos.args.NatsJetstreamConn; /** - * Encodes the specified TunnelGroupRedisStreamsOptions message. Does not implicitly {@link protos.opts.TunnelGroupRedisStreamsOptions.verify|verify} messages. - * @param message TunnelGroupRedisStreamsOptions message or plain object to encode + * Encodes the specified NatsJetstreamConn message. Does not implicitly {@link protos.args.NatsJetstreamConn.verify|verify} messages. + * @param message NatsJetstreamConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupRedisStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INatsJetstreamConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupRedisStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupRedisStreamsOptions.verify|verify} messages. - * @param message TunnelGroupRedisStreamsOptions message or plain object to encode + * Encodes the specified NatsJetstreamConn message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamConn.verify|verify} messages. + * @param message NatsJetstreamConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupRedisStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INatsJetstreamConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupRedisStreamsOptions message from the specified reader or buffer. + * Decodes a NatsJetstreamConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupRedisStreamsOptions + * @returns NatsJetstreamConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupRedisStreamsOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsJetstreamConn; /** - * Decodes a TunnelGroupRedisStreamsOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsJetstreamConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupRedisStreamsOptions + * @returns NatsJetstreamConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupRedisStreamsOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsJetstreamConn; /** - * Verifies a TunnelGroupRedisStreamsOptions message. + * Verifies a NatsJetstreamConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupRedisStreamsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsJetstreamConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupRedisStreamsOptions + * @returns NatsJetstreamConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupRedisStreamsOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NatsJetstreamConn; /** - * Creates a plain object from a TunnelGroupRedisStreamsOptions message. Also converts values to other types if specified. - * @param message TunnelGroupRedisStreamsOptions + * Creates a plain object from a NatsJetstreamConn message. Also converts values to other types if specified. + * @param message NatsJetstreamConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupRedisStreamsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NatsJetstreamConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupRedisStreamsOptions to JSON. + * Converts this NatsJetstreamConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupAzureEventHubOptions. */ - interface ITunnelGroupAzureEventHubOptions { + /** Properties of a NatsJetstreamReadArgs. */ + interface INatsJetstreamReadArgs { - /** TunnelGroupAzureEventHubOptions _conn */ - _conn?: (protos.args.IAzureEventHubConn|null); + /** NatsJetstreamReadArgs stream */ + stream?: (string|null); - /** TunnelGroupAzureEventHubOptions args */ - args?: (protos.args.IAzureEventHubWriteArgs|null); + /** NatsJetstreamReadArgs consumerName */ + consumerName?: (string|null); + + /** NatsJetstreamReadArgs createDurableConsumer */ + createDurableConsumer?: (boolean|null); + + /** NatsJetstreamReadArgs existingDurableConsumer */ + existingDurableConsumer?: (boolean|null); + + /** NatsJetstreamReadArgs keepConsumer */ + keepConsumer?: (boolean|null); + + /** NatsJetstreamReadArgs consumerStartSequence */ + consumerStartSequence?: (number|Long|null); + + /** NatsJetstreamReadArgs consumerStartTime */ + consumerStartTime?: (string|null); + + /** NatsJetstreamReadArgs consumerFilterSubject */ + consumerFilterSubject?: (string|null); } - /** Represents a TunnelGroupAzureEventHubOptions. */ - class TunnelGroupAzureEventHubOptions implements ITunnelGroupAzureEventHubOptions { + /** Represents a NatsJetstreamReadArgs. */ + class NatsJetstreamReadArgs implements INatsJetstreamReadArgs { /** - * Constructs a new TunnelGroupAzureEventHubOptions. + * Constructs a new NatsJetstreamReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupAzureEventHubOptions); + constructor(properties?: protos.args.INatsJetstreamReadArgs); - /** TunnelGroupAzureEventHubOptions _conn. */ - public _conn?: (protos.args.IAzureEventHubConn|null); + /** NatsJetstreamReadArgs stream. */ + public stream: string; - /** TunnelGroupAzureEventHubOptions args. */ - public args?: (protos.args.IAzureEventHubWriteArgs|null); + /** NatsJetstreamReadArgs consumerName. */ + public consumerName: string; + + /** NatsJetstreamReadArgs createDurableConsumer. */ + public createDurableConsumer: boolean; + + /** NatsJetstreamReadArgs existingDurableConsumer. */ + public existingDurableConsumer: boolean; + + /** NatsJetstreamReadArgs keepConsumer. */ + public keepConsumer: boolean; + + /** NatsJetstreamReadArgs consumerStartSequence. */ + public consumerStartSequence: (number|Long); + + /** NatsJetstreamReadArgs consumerStartTime. */ + public consumerStartTime: string; + + /** NatsJetstreamReadArgs consumerFilterSubject. */ + public consumerFilterSubject: string; /** - * Creates a new TunnelGroupAzureEventHubOptions instance using the specified properties. + * Creates a new NatsJetstreamReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupAzureEventHubOptions instance + * @returns NatsJetstreamReadArgs instance */ - public static create(properties?: protos.opts.ITunnelGroupAzureEventHubOptions): protos.opts.TunnelGroupAzureEventHubOptions; + public static create(properties?: protos.args.INatsJetstreamReadArgs): protos.args.NatsJetstreamReadArgs; /** - * Encodes the specified TunnelGroupAzureEventHubOptions message. Does not implicitly {@link protos.opts.TunnelGroupAzureEventHubOptions.verify|verify} messages. - * @param message TunnelGroupAzureEventHubOptions message or plain object to encode + * Encodes the specified NatsJetstreamReadArgs message. Does not implicitly {@link protos.args.NatsJetstreamReadArgs.verify|verify} messages. + * @param message NatsJetstreamReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupAzureEventHubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INatsJetstreamReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupAzureEventHubOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupAzureEventHubOptions.verify|verify} messages. - * @param message TunnelGroupAzureEventHubOptions message or plain object to encode + * Encodes the specified NatsJetstreamReadArgs message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamReadArgs.verify|verify} messages. + * @param message NatsJetstreamReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupAzureEventHubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INatsJetstreamReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupAzureEventHubOptions message from the specified reader or buffer. + * Decodes a NatsJetstreamReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupAzureEventHubOptions + * @returns NatsJetstreamReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupAzureEventHubOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsJetstreamReadArgs; /** - * Decodes a TunnelGroupAzureEventHubOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsJetstreamReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupAzureEventHubOptions + * @returns NatsJetstreamReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupAzureEventHubOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsJetstreamReadArgs; /** - * Verifies a TunnelGroupAzureEventHubOptions message. + * Verifies a NatsJetstreamReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupAzureEventHubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsJetstreamReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupAzureEventHubOptions + * @returns NatsJetstreamReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupAzureEventHubOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NatsJetstreamReadArgs; /** - * Creates a plain object from a TunnelGroupAzureEventHubOptions message. Also converts values to other types if specified. - * @param message TunnelGroupAzureEventHubOptions + * Creates a plain object from a NatsJetstreamReadArgs message. Also converts values to other types if specified. + * @param message NatsJetstreamReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupAzureEventHubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NatsJetstreamReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupAzureEventHubOptions to JSON. + * Converts this NatsJetstreamReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupAzureServiceBusOptions. */ - interface ITunnelGroupAzureServiceBusOptions { - - /** TunnelGroupAzureServiceBusOptions _conn */ - _conn?: (protos.args.IAzureServiceBusConn|null); + /** Properties of a NatsJetstreamWriteArgs. */ + interface INatsJetstreamWriteArgs { - /** TunnelGroupAzureServiceBusOptions args */ - args?: (protos.args.IAzureServiceBusWriteArgs|null); + /** NatsJetstreamWriteArgs subject */ + subject?: (string|null); } - /** Represents a TunnelGroupAzureServiceBusOptions. */ - class TunnelGroupAzureServiceBusOptions implements ITunnelGroupAzureServiceBusOptions { + /** Represents a NatsJetstreamWriteArgs. */ + class NatsJetstreamWriteArgs implements INatsJetstreamWriteArgs { /** - * Constructs a new TunnelGroupAzureServiceBusOptions. + * Constructs a new NatsJetstreamWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupAzureServiceBusOptions); - - /** TunnelGroupAzureServiceBusOptions _conn. */ - public _conn?: (protos.args.IAzureServiceBusConn|null); + constructor(properties?: protos.args.INatsJetstreamWriteArgs); - /** TunnelGroupAzureServiceBusOptions args. */ - public args?: (protos.args.IAzureServiceBusWriteArgs|null); + /** NatsJetstreamWriteArgs subject. */ + public subject: string; /** - * Creates a new TunnelGroupAzureServiceBusOptions instance using the specified properties. + * Creates a new NatsJetstreamWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupAzureServiceBusOptions instance + * @returns NatsJetstreamWriteArgs instance */ - public static create(properties?: protos.opts.ITunnelGroupAzureServiceBusOptions): protos.opts.TunnelGroupAzureServiceBusOptions; + public static create(properties?: protos.args.INatsJetstreamWriteArgs): protos.args.NatsJetstreamWriteArgs; /** - * Encodes the specified TunnelGroupAzureServiceBusOptions message. Does not implicitly {@link protos.opts.TunnelGroupAzureServiceBusOptions.verify|verify} messages. - * @param message TunnelGroupAzureServiceBusOptions message or plain object to encode + * Encodes the specified NatsJetstreamWriteArgs message. Does not implicitly {@link protos.args.NatsJetstreamWriteArgs.verify|verify} messages. + * @param message NatsJetstreamWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupAzureServiceBusOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INatsJetstreamWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupAzureServiceBusOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupAzureServiceBusOptions.verify|verify} messages. - * @param message TunnelGroupAzureServiceBusOptions message or plain object to encode + * Encodes the specified NatsJetstreamWriteArgs message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamWriteArgs.verify|verify} messages. + * @param message NatsJetstreamWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupAzureServiceBusOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INatsJetstreamWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupAzureServiceBusOptions message from the specified reader or buffer. + * Decodes a NatsJetstreamWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupAzureServiceBusOptions + * @returns NatsJetstreamWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupAzureServiceBusOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsJetstreamWriteArgs; /** - * Decodes a TunnelGroupAzureServiceBusOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsJetstreamWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupAzureServiceBusOptions + * @returns NatsJetstreamWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupAzureServiceBusOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsJetstreamWriteArgs; /** - * Verifies a TunnelGroupAzureServiceBusOptions message. + * Verifies a NatsJetstreamWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupAzureServiceBusOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsJetstreamWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupAzureServiceBusOptions + * @returns NatsJetstreamWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupAzureServiceBusOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NatsJetstreamWriteArgs; /** - * Creates a plain object from a TunnelGroupAzureServiceBusOptions message. Also converts values to other types if specified. - * @param message TunnelGroupAzureServiceBusOptions + * Creates a plain object from a NatsJetstreamWriteArgs message. Also converts values to other types if specified. + * @param message NatsJetstreamWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupAzureServiceBusOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NatsJetstreamWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupAzureServiceBusOptions to JSON. + * Converts this NatsJetstreamWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupMQTTOptions. */ - interface ITunnelGroupMQTTOptions { + /** Properties of a NatsStreamingTLSOptions. */ + interface INatsStreamingTLSOptions { - /** TunnelGroupMQTTOptions _conn */ - _conn?: (protos.args.IMQTTConn|null); + /** NatsStreamingTLSOptions tlsCaCert */ + tlsCaCert?: (string|null); - /** TunnelGroupMQTTOptions args */ - args?: (protos.args.IMQTTWriteArgs|null); + /** NatsStreamingTLSOptions tlsClientCert */ + tlsClientCert?: (string|null); + + /** NatsStreamingTLSOptions tlsClientKey */ + tlsClientKey?: (string|null); + + /** NatsStreamingTLSOptions tlsSkipVerify */ + tlsSkipVerify?: (boolean|null); + + /** NatsStreamingTLSOptions useTls */ + useTls?: (boolean|null); } - /** Represents a TunnelGroupMQTTOptions. */ - class TunnelGroupMQTTOptions implements ITunnelGroupMQTTOptions { + /** Represents a NatsStreamingTLSOptions. */ + class NatsStreamingTLSOptions implements INatsStreamingTLSOptions { /** - * Constructs a new TunnelGroupMQTTOptions. + * Constructs a new NatsStreamingTLSOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupMQTTOptions); + constructor(properties?: protos.args.INatsStreamingTLSOptions); - /** TunnelGroupMQTTOptions _conn. */ - public _conn?: (protos.args.IMQTTConn|null); + /** NatsStreamingTLSOptions tlsCaCert. */ + public tlsCaCert: string; - /** TunnelGroupMQTTOptions args. */ - public args?: (protos.args.IMQTTWriteArgs|null); + /** NatsStreamingTLSOptions tlsClientCert. */ + public tlsClientCert: string; + + /** NatsStreamingTLSOptions tlsClientKey. */ + public tlsClientKey: string; + + /** NatsStreamingTLSOptions tlsSkipVerify. */ + public tlsSkipVerify: boolean; + + /** NatsStreamingTLSOptions useTls. */ + public useTls: boolean; /** - * Creates a new TunnelGroupMQTTOptions instance using the specified properties. + * Creates a new NatsStreamingTLSOptions instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupMQTTOptions instance + * @returns NatsStreamingTLSOptions instance */ - public static create(properties?: protos.opts.ITunnelGroupMQTTOptions): protos.opts.TunnelGroupMQTTOptions; + public static create(properties?: protos.args.INatsStreamingTLSOptions): protos.args.NatsStreamingTLSOptions; /** - * Encodes the specified TunnelGroupMQTTOptions message. Does not implicitly {@link protos.opts.TunnelGroupMQTTOptions.verify|verify} messages. - * @param message TunnelGroupMQTTOptions message or plain object to encode + * Encodes the specified NatsStreamingTLSOptions message. Does not implicitly {@link protos.args.NatsStreamingTLSOptions.verify|verify} messages. + * @param message NatsStreamingTLSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupMQTTOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INatsStreamingTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupMQTTOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupMQTTOptions.verify|verify} messages. - * @param message TunnelGroupMQTTOptions message or plain object to encode + * Encodes the specified NatsStreamingTLSOptions message, length delimited. Does not implicitly {@link protos.args.NatsStreamingTLSOptions.verify|verify} messages. + * @param message NatsStreamingTLSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupMQTTOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INatsStreamingTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupMQTTOptions message from the specified reader or buffer. + * Decodes a NatsStreamingTLSOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupMQTTOptions + * @returns NatsStreamingTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupMQTTOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsStreamingTLSOptions; /** - * Decodes a TunnelGroupMQTTOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsStreamingTLSOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupMQTTOptions + * @returns NatsStreamingTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupMQTTOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsStreamingTLSOptions; /** - * Verifies a TunnelGroupMQTTOptions message. + * Verifies a NatsStreamingTLSOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupMQTTOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsStreamingTLSOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupMQTTOptions + * @returns NatsStreamingTLSOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupMQTTOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NatsStreamingTLSOptions; /** - * Creates a plain object from a TunnelGroupMQTTOptions message. Also converts values to other types if specified. - * @param message TunnelGroupMQTTOptions + * Creates a plain object from a NatsStreamingTLSOptions message. Also converts values to other types if specified. + * @param message NatsStreamingTLSOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupMQTTOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NatsStreamingTLSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupMQTTOptions to JSON. + * Converts this NatsStreamingTLSOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupGCPPubSubOptions. */ - interface ITunnelGroupGCPPubSubOptions { + /** Properties of a NatsStreamingConn. */ + interface INatsStreamingConn { + + /** NatsStreamingConn dsn */ + dsn?: (string|null); - /** TunnelGroupGCPPubSubOptions _conn */ - _conn?: (protos.args.IGCPPubSubConn|null); + /** NatsStreamingConn userCredentials */ + userCredentials?: (string|null); - /** TunnelGroupGCPPubSubOptions args */ - args?: (protos.args.IGCPPubSubWriteArgs|null); + /** NatsStreamingConn clusterId */ + clusterId?: (string|null); + + /** NatsStreamingConn clientId */ + clientId?: (string|null); + + /** NatsStreamingConn tlsOptions */ + tlsOptions?: (protos.args.INatsStreamingTLSOptions|null); } - /** Represents a TunnelGroupGCPPubSubOptions. */ - class TunnelGroupGCPPubSubOptions implements ITunnelGroupGCPPubSubOptions { + /** Represents a NatsStreamingConn. */ + class NatsStreamingConn implements INatsStreamingConn { /** - * Constructs a new TunnelGroupGCPPubSubOptions. + * Constructs a new NatsStreamingConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupGCPPubSubOptions); + constructor(properties?: protos.args.INatsStreamingConn); - /** TunnelGroupGCPPubSubOptions _conn. */ - public _conn?: (protos.args.IGCPPubSubConn|null); + /** NatsStreamingConn dsn. */ + public dsn: string; - /** TunnelGroupGCPPubSubOptions args. */ - public args?: (protos.args.IGCPPubSubWriteArgs|null); + /** NatsStreamingConn userCredentials. */ + public userCredentials: string; + + /** NatsStreamingConn clusterId. */ + public clusterId: string; + + /** NatsStreamingConn clientId. */ + public clientId: string; + + /** NatsStreamingConn tlsOptions. */ + public tlsOptions?: (protos.args.INatsStreamingTLSOptions|null); /** - * Creates a new TunnelGroupGCPPubSubOptions instance using the specified properties. + * Creates a new NatsStreamingConn instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupGCPPubSubOptions instance + * @returns NatsStreamingConn instance */ - public static create(properties?: protos.opts.ITunnelGroupGCPPubSubOptions): protos.opts.TunnelGroupGCPPubSubOptions; + public static create(properties?: protos.args.INatsStreamingConn): protos.args.NatsStreamingConn; /** - * Encodes the specified TunnelGroupGCPPubSubOptions message. Does not implicitly {@link protos.opts.TunnelGroupGCPPubSubOptions.verify|verify} messages. - * @param message TunnelGroupGCPPubSubOptions message or plain object to encode + * Encodes the specified NatsStreamingConn message. Does not implicitly {@link protos.args.NatsStreamingConn.verify|verify} messages. + * @param message NatsStreamingConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupGCPPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INatsStreamingConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupGCPPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupGCPPubSubOptions.verify|verify} messages. - * @param message TunnelGroupGCPPubSubOptions message or plain object to encode + * Encodes the specified NatsStreamingConn message, length delimited. Does not implicitly {@link protos.args.NatsStreamingConn.verify|verify} messages. + * @param message NatsStreamingConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupGCPPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INatsStreamingConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupGCPPubSubOptions message from the specified reader or buffer. + * Decodes a NatsStreamingConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupGCPPubSubOptions + * @returns NatsStreamingConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupGCPPubSubOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsStreamingConn; /** - * Decodes a TunnelGroupGCPPubSubOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsStreamingConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupGCPPubSubOptions + * @returns NatsStreamingConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupGCPPubSubOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsStreamingConn; /** - * Verifies a TunnelGroupGCPPubSubOptions message. + * Verifies a NatsStreamingConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupGCPPubSubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsStreamingConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupGCPPubSubOptions + * @returns NatsStreamingConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupGCPPubSubOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NatsStreamingConn; /** - * Creates a plain object from a TunnelGroupGCPPubSubOptions message. Also converts values to other types if specified. - * @param message TunnelGroupGCPPubSubOptions + * Creates a plain object from a NatsStreamingConn message. Also converts values to other types if specified. + * @param message NatsStreamingConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupGCPPubSubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NatsStreamingConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupGCPPubSubOptions to JSON. + * Converts this NatsStreamingConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupKubeMQQueueOptions. */ - interface ITunnelGroupKubeMQQueueOptions { + /** Properties of a NatsStreamingReadArgs. */ + interface INatsStreamingReadArgs { - /** TunnelGroupKubeMQQueueOptions _conn */ - _conn?: (protos.args.IKubeMQQueueConn|null); + /** NatsStreamingReadArgs channel */ + channel?: (string|null); - /** TunnelGroupKubeMQQueueOptions args */ - args?: (protos.args.IKubeMQQueueWriteArgs|null); + /** NatsStreamingReadArgs durableName */ + durableName?: (string|null); + + /** NatsStreamingReadArgs readLastAvailable */ + readLastAvailable?: (boolean|null); + + /** NatsStreamingReadArgs readSequenceNumber */ + readSequenceNumber?: (number|null); + + /** NatsStreamingReadArgs readSince */ + readSince?: (string|null); + + /** NatsStreamingReadArgs readAll */ + readAll?: (boolean|null); } - /** Represents a TunnelGroupKubeMQQueueOptions. */ - class TunnelGroupKubeMQQueueOptions implements ITunnelGroupKubeMQQueueOptions { + /** Represents a NatsStreamingReadArgs. */ + class NatsStreamingReadArgs implements INatsStreamingReadArgs { /** - * Constructs a new TunnelGroupKubeMQQueueOptions. + * Constructs a new NatsStreamingReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupKubeMQQueueOptions); + constructor(properties?: protos.args.INatsStreamingReadArgs); - /** TunnelGroupKubeMQQueueOptions _conn. */ - public _conn?: (protos.args.IKubeMQQueueConn|null); + /** NatsStreamingReadArgs channel. */ + public channel: string; - /** TunnelGroupKubeMQQueueOptions args. */ - public args?: (protos.args.IKubeMQQueueWriteArgs|null); + /** NatsStreamingReadArgs durableName. */ + public durableName: string; + + /** NatsStreamingReadArgs readLastAvailable. */ + public readLastAvailable: boolean; + + /** NatsStreamingReadArgs readSequenceNumber. */ + public readSequenceNumber: number; + + /** NatsStreamingReadArgs readSince. */ + public readSince: string; + + /** NatsStreamingReadArgs readAll. */ + public readAll: boolean; /** - * Creates a new TunnelGroupKubeMQQueueOptions instance using the specified properties. + * Creates a new NatsStreamingReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupKubeMQQueueOptions instance + * @returns NatsStreamingReadArgs instance */ - public static create(properties?: protos.opts.ITunnelGroupKubeMQQueueOptions): protos.opts.TunnelGroupKubeMQQueueOptions; + public static create(properties?: protos.args.INatsStreamingReadArgs): protos.args.NatsStreamingReadArgs; /** - * Encodes the specified TunnelGroupKubeMQQueueOptions message. Does not implicitly {@link protos.opts.TunnelGroupKubeMQQueueOptions.verify|verify} messages. - * @param message TunnelGroupKubeMQQueueOptions message or plain object to encode + * Encodes the specified NatsStreamingReadArgs message. Does not implicitly {@link protos.args.NatsStreamingReadArgs.verify|verify} messages. + * @param message NatsStreamingReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupKubeMQQueueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INatsStreamingReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupKubeMQQueueOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupKubeMQQueueOptions.verify|verify} messages. - * @param message TunnelGroupKubeMQQueueOptions message or plain object to encode + * Encodes the specified NatsStreamingReadArgs message, length delimited. Does not implicitly {@link protos.args.NatsStreamingReadArgs.verify|verify} messages. + * @param message NatsStreamingReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupKubeMQQueueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INatsStreamingReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupKubeMQQueueOptions message from the specified reader or buffer. + * Decodes a NatsStreamingReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupKubeMQQueueOptions + * @returns NatsStreamingReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupKubeMQQueueOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsStreamingReadArgs; /** - * Decodes a TunnelGroupKubeMQQueueOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsStreamingReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupKubeMQQueueOptions + * @returns NatsStreamingReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupKubeMQQueueOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsStreamingReadArgs; /** - * Verifies a TunnelGroupKubeMQQueueOptions message. + * Verifies a NatsStreamingReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupKubeMQQueueOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsStreamingReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupKubeMQQueueOptions + * @returns NatsStreamingReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupKubeMQQueueOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NatsStreamingReadArgs; /** - * Creates a plain object from a TunnelGroupKubeMQQueueOptions message. Also converts values to other types if specified. - * @param message TunnelGroupKubeMQQueueOptions + * Creates a plain object from a NatsStreamingReadArgs message. Also converts values to other types if specified. + * @param message NatsStreamingReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupKubeMQQueueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NatsStreamingReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupKubeMQQueueOptions to JSON. + * Converts this NatsStreamingReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupPulsarOptions. */ - interface ITunnelGroupPulsarOptions { - - /** TunnelGroupPulsarOptions _conn */ - _conn?: (protos.args.IPulsarConn|null); + /** Properties of a NatsStreamingWriteArgs. */ + interface INatsStreamingWriteArgs { - /** TunnelGroupPulsarOptions args */ - args?: (protos.args.IPulsarWriteArgs|null); + /** NatsStreamingWriteArgs channel */ + channel?: (string|null); } - /** Represents a TunnelGroupPulsarOptions. */ - class TunnelGroupPulsarOptions implements ITunnelGroupPulsarOptions { + /** Represents a NatsStreamingWriteArgs. */ + class NatsStreamingWriteArgs implements INatsStreamingWriteArgs { /** - * Constructs a new TunnelGroupPulsarOptions. + * Constructs a new NatsStreamingWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupPulsarOptions); - - /** TunnelGroupPulsarOptions _conn. */ - public _conn?: (protos.args.IPulsarConn|null); + constructor(properties?: protos.args.INatsStreamingWriteArgs); - /** TunnelGroupPulsarOptions args. */ - public args?: (protos.args.IPulsarWriteArgs|null); + /** NatsStreamingWriteArgs channel. */ + public channel: string; /** - * Creates a new TunnelGroupPulsarOptions instance using the specified properties. + * Creates a new NatsStreamingWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupPulsarOptions instance + * @returns NatsStreamingWriteArgs instance */ - public static create(properties?: protos.opts.ITunnelGroupPulsarOptions): protos.opts.TunnelGroupPulsarOptions; + public static create(properties?: protos.args.INatsStreamingWriteArgs): protos.args.NatsStreamingWriteArgs; /** - * Encodes the specified TunnelGroupPulsarOptions message. Does not implicitly {@link protos.opts.TunnelGroupPulsarOptions.verify|verify} messages. - * @param message TunnelGroupPulsarOptions message or plain object to encode + * Encodes the specified NatsStreamingWriteArgs message. Does not implicitly {@link protos.args.NatsStreamingWriteArgs.verify|verify} messages. + * @param message NatsStreamingWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupPulsarOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INatsStreamingWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupPulsarOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupPulsarOptions.verify|verify} messages. - * @param message TunnelGroupPulsarOptions message or plain object to encode + * Encodes the specified NatsStreamingWriteArgs message, length delimited. Does not implicitly {@link protos.args.NatsStreamingWriteArgs.verify|verify} messages. + * @param message NatsStreamingWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupPulsarOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INatsStreamingWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupPulsarOptions message from the specified reader or buffer. + * Decodes a NatsStreamingWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupPulsarOptions + * @returns NatsStreamingWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupPulsarOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsStreamingWriteArgs; /** - * Decodes a TunnelGroupPulsarOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsStreamingWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupPulsarOptions + * @returns NatsStreamingWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupPulsarOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsStreamingWriteArgs; /** - * Verifies a TunnelGroupPulsarOptions message. + * Verifies a NatsStreamingWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupPulsarOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsStreamingWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupPulsarOptions + * @returns NatsStreamingWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupPulsarOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NatsStreamingWriteArgs; /** - * Creates a plain object from a TunnelGroupPulsarOptions message. Also converts values to other types if specified. - * @param message TunnelGroupPulsarOptions + * Creates a plain object from a NatsStreamingWriteArgs message. Also converts values to other types if specified. + * @param message NatsStreamingWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupPulsarOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NatsStreamingWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupPulsarOptions to JSON. + * Converts this NatsStreamingWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupAWSKinesisOptions. */ - interface ITunnelGroupAWSKinesisOptions { + /** Properties of a NSQConn. */ + interface INSQConn { - /** TunnelGroupAWSKinesisOptions _conn */ - _conn?: (protos.args.IAWSKinesisConn|null); + /** NSQConn nsqdAddress */ + nsqdAddress?: (string|null); - /** TunnelGroupAWSKinesisOptions args */ - args?: (protos.args.IAWSKinesisWriteArgs|null); + /** NSQConn lookupdAddress */ + lookupdAddress?: (string|null); + + /** NSQConn useTls */ + useTls?: (boolean|null); + + /** NSQConn tlsSkipVerify */ + tlsSkipVerify?: (boolean|null); + + /** NSQConn tlsCaCert */ + tlsCaCert?: (string|null); + + /** NSQConn tlsClientCert */ + tlsClientCert?: (string|null); + + /** NSQConn tlsClientKey */ + tlsClientKey?: (string|null); + + /** NSQConn authSecret */ + authSecret?: (string|null); + + /** NSQConn clientId */ + clientId?: (string|null); } - /** Represents a TunnelGroupAWSKinesisOptions. */ - class TunnelGroupAWSKinesisOptions implements ITunnelGroupAWSKinesisOptions { + /** Represents a NSQConn. */ + class NSQConn implements INSQConn { /** - * Constructs a new TunnelGroupAWSKinesisOptions. + * Constructs a new NSQConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupAWSKinesisOptions); + constructor(properties?: protos.args.INSQConn); - /** TunnelGroupAWSKinesisOptions _conn. */ - public _conn?: (protos.args.IAWSKinesisConn|null); + /** NSQConn nsqdAddress. */ + public nsqdAddress: string; - /** TunnelGroupAWSKinesisOptions args. */ - public args?: (protos.args.IAWSKinesisWriteArgs|null); + /** NSQConn lookupdAddress. */ + public lookupdAddress: string; + + /** NSQConn useTls. */ + public useTls: boolean; + + /** NSQConn tlsSkipVerify. */ + public tlsSkipVerify: boolean; + + /** NSQConn tlsCaCert. */ + public tlsCaCert: string; + + /** NSQConn tlsClientCert. */ + public tlsClientCert: string; + + /** NSQConn tlsClientKey. */ + public tlsClientKey: string; + + /** NSQConn authSecret. */ + public authSecret: string; + + /** NSQConn clientId. */ + public clientId: string; /** - * Creates a new TunnelGroupAWSKinesisOptions instance using the specified properties. + * Creates a new NSQConn instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupAWSKinesisOptions instance + * @returns NSQConn instance */ - public static create(properties?: protos.opts.ITunnelGroupAWSKinesisOptions): protos.opts.TunnelGroupAWSKinesisOptions; + public static create(properties?: protos.args.INSQConn): protos.args.NSQConn; /** - * Encodes the specified TunnelGroupAWSKinesisOptions message. Does not implicitly {@link protos.opts.TunnelGroupAWSKinesisOptions.verify|verify} messages. - * @param message TunnelGroupAWSKinesisOptions message or plain object to encode + * Encodes the specified NSQConn message. Does not implicitly {@link protos.args.NSQConn.verify|verify} messages. + * @param message NSQConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupAWSKinesisOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INSQConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupAWSKinesisOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupAWSKinesisOptions.verify|verify} messages. - * @param message TunnelGroupAWSKinesisOptions message or plain object to encode + * Encodes the specified NSQConn message, length delimited. Does not implicitly {@link protos.args.NSQConn.verify|verify} messages. + * @param message NSQConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupAWSKinesisOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INSQConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupAWSKinesisOptions message from the specified reader or buffer. + * Decodes a NSQConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupAWSKinesisOptions + * @returns NSQConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupAWSKinesisOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NSQConn; /** - * Decodes a TunnelGroupAWSKinesisOptions message from the specified reader or buffer, length delimited. + * Decodes a NSQConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupAWSKinesisOptions + * @returns NSQConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupAWSKinesisOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NSQConn; /** - * Verifies a TunnelGroupAWSKinesisOptions message. + * Verifies a NSQConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupAWSKinesisOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NSQConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupAWSKinesisOptions + * @returns NSQConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupAWSKinesisOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NSQConn; /** - * Creates a plain object from a TunnelGroupAWSKinesisOptions message. Also converts values to other types if specified. - * @param message TunnelGroupAWSKinesisOptions + * Creates a plain object from a NSQConn message. Also converts values to other types if specified. + * @param message NSQConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupAWSKinesisOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NSQConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupAWSKinesisOptions to JSON. + * Converts this NSQConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a TunnelGroupMemphisOptions. */ - interface ITunnelGroupMemphisOptions { + /** Properties of a NSQReadArgs. */ + interface INSQReadArgs { - /** TunnelGroupMemphisOptions _conn */ - _conn?: (protos.args.IMemphisConn|null); + /** NSQReadArgs topic */ + topic?: (string|null); - /** TunnelGroupMemphisOptions args */ - args?: (protos.args.IMemphisWriteArgs|null); + /** NSQReadArgs channel */ + channel?: (string|null); } - /** Represents a TunnelGroupMemphisOptions. */ - class TunnelGroupMemphisOptions implements ITunnelGroupMemphisOptions { + /** Represents a NSQReadArgs. */ + class NSQReadArgs implements INSQReadArgs { /** - * Constructs a new TunnelGroupMemphisOptions. + * Constructs a new NSQReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ITunnelGroupMemphisOptions); + constructor(properties?: protos.args.INSQReadArgs); - /** TunnelGroupMemphisOptions _conn. */ - public _conn?: (protos.args.IMemphisConn|null); + /** NSQReadArgs topic. */ + public topic: string; - /** TunnelGroupMemphisOptions args. */ - public args?: (protos.args.IMemphisWriteArgs|null); + /** NSQReadArgs channel. */ + public channel: string; /** - * Creates a new TunnelGroupMemphisOptions instance using the specified properties. + * Creates a new NSQReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns TunnelGroupMemphisOptions instance + * @returns NSQReadArgs instance */ - public static create(properties?: protos.opts.ITunnelGroupMemphisOptions): protos.opts.TunnelGroupMemphisOptions; + public static create(properties?: protos.args.INSQReadArgs): protos.args.NSQReadArgs; /** - * Encodes the specified TunnelGroupMemphisOptions message. Does not implicitly {@link protos.opts.TunnelGroupMemphisOptions.verify|verify} messages. - * @param message TunnelGroupMemphisOptions message or plain object to encode + * Encodes the specified NSQReadArgs message. Does not implicitly {@link protos.args.NSQReadArgs.verify|verify} messages. + * @param message NSQReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ITunnelGroupMemphisOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INSQReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TunnelGroupMemphisOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupMemphisOptions.verify|verify} messages. - * @param message TunnelGroupMemphisOptions message or plain object to encode + * Encodes the specified NSQReadArgs message, length delimited. Does not implicitly {@link protos.args.NSQReadArgs.verify|verify} messages. + * @param message NSQReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ITunnelGroupMemphisOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INSQReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TunnelGroupMemphisOptions message from the specified reader or buffer. + * Decodes a NSQReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TunnelGroupMemphisOptions + * @returns NSQReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.TunnelGroupMemphisOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NSQReadArgs; /** - * Decodes a TunnelGroupMemphisOptions message from the specified reader or buffer, length delimited. + * Decodes a NSQReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TunnelGroupMemphisOptions + * @returns NSQReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.TunnelGroupMemphisOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NSQReadArgs; /** - * Verifies a TunnelGroupMemphisOptions message. + * Verifies a NSQReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TunnelGroupMemphisOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NSQReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TunnelGroupMemphisOptions + * @returns NSQReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.TunnelGroupMemphisOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NSQReadArgs; /** - * Creates a plain object from a TunnelGroupMemphisOptions message. Also converts values to other types if specified. - * @param message TunnelGroupMemphisOptions + * Creates a plain object from a NSQReadArgs message. Also converts values to other types if specified. + * @param message NSQReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.TunnelGroupMemphisOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NSQReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TunnelGroupMemphisOptions to JSON. + * Converts this NSQReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GlobalCLIOptions. */ - interface IGlobalCLIOptions { - - /** GlobalCLIOptions debug */ - debug?: (boolean|null); - - /** GlobalCLIOptions quiet */ - quiet?: (boolean|null); - - /** GlobalCLIOptions version */ - version?: (boolean|null); - - /** GlobalCLIOptions _fullCommand */ - _fullCommand?: (string|null); - - /** GlobalCLIOptions _action */ - _action?: (string|null); - - /** GlobalCLIOptions _backend */ - _backend?: (string|null); + /** Properties of a NSQWriteArgs. */ + interface INSQWriteArgs { - /** GlobalCLIOptions _commands */ - _commands?: (string[]|null); + /** NSQWriteArgs topic */ + topic?: (string|null); } - /** Represents a GlobalCLIOptions. */ - class GlobalCLIOptions implements IGlobalCLIOptions { + /** Represents a NSQWriteArgs. */ + class NSQWriteArgs implements INSQWriteArgs { /** - * Constructs a new GlobalCLIOptions. + * Constructs a new NSQWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IGlobalCLIOptions); - - /** GlobalCLIOptions debug. */ - public debug: boolean; - - /** GlobalCLIOptions quiet. */ - public quiet: boolean; - - /** GlobalCLIOptions version. */ - public version: boolean; - - /** GlobalCLIOptions _fullCommand. */ - public _fullCommand: string; - - /** GlobalCLIOptions _action. */ - public _action: string; - - /** GlobalCLIOptions _backend. */ - public _backend: string; + constructor(properties?: protos.args.INSQWriteArgs); - /** GlobalCLIOptions _commands. */ - public _commands: string[]; + /** NSQWriteArgs topic. */ + public topic: string; /** - * Creates a new GlobalCLIOptions instance using the specified properties. + * Creates a new NSQWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns GlobalCLIOptions instance + * @returns NSQWriteArgs instance */ - public static create(properties?: protos.opts.IGlobalCLIOptions): protos.opts.GlobalCLIOptions; + public static create(properties?: protos.args.INSQWriteArgs): protos.args.NSQWriteArgs; /** - * Encodes the specified GlobalCLIOptions message. Does not implicitly {@link protos.opts.GlobalCLIOptions.verify|verify} messages. - * @param message GlobalCLIOptions message or plain object to encode + * Encodes the specified NSQWriteArgs message. Does not implicitly {@link protos.args.NSQWriteArgs.verify|verify} messages. + * @param message NSQWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IGlobalCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.INSQWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GlobalCLIOptions message, length delimited. Does not implicitly {@link protos.opts.GlobalCLIOptions.verify|verify} messages. - * @param message GlobalCLIOptions message or plain object to encode + * Encodes the specified NSQWriteArgs message, length delimited. Does not implicitly {@link protos.args.NSQWriteArgs.verify|verify} messages. + * @param message NSQWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IGlobalCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.INSQWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GlobalCLIOptions message from the specified reader or buffer. + * Decodes a NSQWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GlobalCLIOptions + * @returns NSQWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.GlobalCLIOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NSQWriteArgs; /** - * Decodes a GlobalCLIOptions message from the specified reader or buffer, length delimited. + * Decodes a NSQWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GlobalCLIOptions + * @returns NSQWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.GlobalCLIOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NSQWriteArgs; /** - * Verifies a GlobalCLIOptions message. + * Verifies a NSQWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GlobalCLIOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NSQWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GlobalCLIOptions + * @returns NSQWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.GlobalCLIOptions; + public static fromObject(object: { [k: string]: any }): protos.args.NSQWriteArgs; /** - * Creates a plain object from a GlobalCLIOptions message. Also converts values to other types if specified. - * @param message GlobalCLIOptions + * Creates a plain object from a NSQWriteArgs message. Also converts values to other types if specified. + * @param message NSQWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.GlobalCLIOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.NSQWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GlobalCLIOptions to JSON. + * Converts this NSQWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CLIOptions. */ - interface ICLIOptions { + /** Properties of a PostgresConn. */ + interface IPostgresConn { - /** CLIOptions global */ - global?: (protos.opts.IGlobalCLIOptions|null); + /** PostgresConn address */ + address?: (string|null); - /** CLIOptions read */ - read?: (protos.opts.IReadOptions|null); + /** PostgresConn port */ + port?: (number|null); - /** CLIOptions write */ - write?: (protos.opts.IWriteOptions|null); + /** PostgresConn username */ + username?: (string|null); - /** CLIOptions relay */ - relay?: (protos.opts.IRelayOptions|null); + /** PostgresConn password */ + password?: (string|null); - /** CLIOptions tunnel */ - tunnel?: (protos.opts.ITunnelOptions|null); + /** PostgresConn database */ + database?: (string|null); - /** CLIOptions server */ - server?: (protos.opts.IServerOptions|null); + /** PostgresConn useTls */ + useTls?: (boolean|null); - /** CLIOptions manage */ - manage?: (protos.opts.IManageOptions|null); + /** PostgresConn tlsSkipVerify */ + tlsSkipVerify?: (boolean|null); } - /** Represents a CLIOptions. */ - class CLIOptions implements ICLIOptions { + /** Represents a PostgresConn. */ + class PostgresConn implements IPostgresConn { /** - * Constructs a new CLIOptions. + * Constructs a new PostgresConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ICLIOptions); + constructor(properties?: protos.args.IPostgresConn); - /** CLIOptions global. */ - public global?: (protos.opts.IGlobalCLIOptions|null); + /** PostgresConn address. */ + public address: string; - /** CLIOptions read. */ - public read?: (protos.opts.IReadOptions|null); + /** PostgresConn port. */ + public port: number; - /** CLIOptions write. */ - public write?: (protos.opts.IWriteOptions|null); + /** PostgresConn username. */ + public username: string; - /** CLIOptions relay. */ - public relay?: (protos.opts.IRelayOptions|null); + /** PostgresConn password. */ + public password: string; - /** CLIOptions tunnel. */ - public tunnel?: (protos.opts.ITunnelOptions|null); + /** PostgresConn database. */ + public database: string; - /** CLIOptions server. */ - public server?: (protos.opts.IServerOptions|null); + /** PostgresConn useTls. */ + public useTls: boolean; - /** CLIOptions manage. */ - public manage?: (protos.opts.IManageOptions|null); + /** PostgresConn tlsSkipVerify. */ + public tlsSkipVerify: boolean; /** - * Creates a new CLIOptions instance using the specified properties. + * Creates a new PostgresConn instance using the specified properties. * @param [properties] Properties to set - * @returns CLIOptions instance + * @returns PostgresConn instance */ - public static create(properties?: protos.opts.ICLIOptions): protos.opts.CLIOptions; + public static create(properties?: protos.args.IPostgresConn): protos.args.PostgresConn; /** - * Encodes the specified CLIOptions message. Does not implicitly {@link protos.opts.CLIOptions.verify|verify} messages. - * @param message CLIOptions message or plain object to encode + * Encodes the specified PostgresConn message. Does not implicitly {@link protos.args.PostgresConn.verify|verify} messages. + * @param message PostgresConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ICLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IPostgresConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CLIOptions message, length delimited. Does not implicitly {@link protos.opts.CLIOptions.verify|verify} messages. - * @param message CLIOptions message or plain object to encode + * Encodes the specified PostgresConn message, length delimited. Does not implicitly {@link protos.args.PostgresConn.verify|verify} messages. + * @param message PostgresConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ICLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IPostgresConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CLIOptions message from the specified reader or buffer. + * Decodes a PostgresConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CLIOptions + * @returns PostgresConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.CLIOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.PostgresConn; /** - * Decodes a CLIOptions message from the specified reader or buffer, length delimited. + * Decodes a PostgresConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CLIOptions + * @returns PostgresConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.CLIOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.PostgresConn; /** - * Verifies a CLIOptions message. + * Verifies a PostgresConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CLIOptions message from a plain object. Also converts values to their respective internal types. + * Creates a PostgresConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CLIOptions + * @returns PostgresConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.CLIOptions; + public static fromObject(object: { [k: string]: any }): protos.args.PostgresConn; /** - * Creates a plain object from a CLIOptions message. Also converts values to other types if specified. - * @param message CLIOptions + * Creates a plain object from a PostgresConn message. Also converts values to other types if specified. + * @param message PostgresConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.CLIOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.PostgresConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CLIOptions to JSON. + * Converts this PostgresConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ManageOptions. */ - interface IManageOptions { - - /** ManageOptions globalOptions */ - globalOptions?: (protos.opts.IGlobalManageOptions|null); - - /** ManageOptions get */ - get?: (protos.opts.IGetOptions|null); - - /** ManageOptions create */ - create?: (protos.opts.ICreateOptions|null); - - /** ManageOptions delete */ - "delete"?: (protos.opts.IDeleteOptions|null); + /** Properties of a PostgresReadArgs. */ + interface IPostgresReadArgs { - /** ManageOptions stop */ - stop?: (protos.opts.IStopOptions|null); + /** PostgresReadArgs replicationSlotName */ + replicationSlotName?: (string|null); - /** ManageOptions resume */ - resume?: (protos.opts.IResumeOptions|null); + /** PostgresReadArgs publisherName */ + publisherName?: (string|null); } - /** Represents a ManageOptions. */ - class ManageOptions implements IManageOptions { + /** Represents a PostgresReadArgs. */ + class PostgresReadArgs implements IPostgresReadArgs { /** - * Constructs a new ManageOptions. + * Constructs a new PostgresReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IManageOptions); - - /** ManageOptions globalOptions. */ - public globalOptions?: (protos.opts.IGlobalManageOptions|null); - - /** ManageOptions get. */ - public get?: (protos.opts.IGetOptions|null); - - /** ManageOptions create. */ - public create?: (protos.opts.ICreateOptions|null); - - /** ManageOptions delete. */ - public delete?: (protos.opts.IDeleteOptions|null); + constructor(properties?: protos.args.IPostgresReadArgs); - /** ManageOptions stop. */ - public stop?: (protos.opts.IStopOptions|null); + /** PostgresReadArgs replicationSlotName. */ + public replicationSlotName: string; - /** ManageOptions resume. */ - public resume?: (protos.opts.IResumeOptions|null); + /** PostgresReadArgs publisherName. */ + public publisherName: string; /** - * Creates a new ManageOptions instance using the specified properties. + * Creates a new PostgresReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns ManageOptions instance + * @returns PostgresReadArgs instance */ - public static create(properties?: protos.opts.IManageOptions): protos.opts.ManageOptions; + public static create(properties?: protos.args.IPostgresReadArgs): protos.args.PostgresReadArgs; /** - * Encodes the specified ManageOptions message. Does not implicitly {@link protos.opts.ManageOptions.verify|verify} messages. - * @param message ManageOptions message or plain object to encode + * Encodes the specified PostgresReadArgs message. Does not implicitly {@link protos.args.PostgresReadArgs.verify|verify} messages. + * @param message PostgresReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IManageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IPostgresReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ManageOptions message, length delimited. Does not implicitly {@link protos.opts.ManageOptions.verify|verify} messages. - * @param message ManageOptions message or plain object to encode + * Encodes the specified PostgresReadArgs message, length delimited. Does not implicitly {@link protos.args.PostgresReadArgs.verify|verify} messages. + * @param message PostgresReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IManageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IPostgresReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ManageOptions message from the specified reader or buffer. + * Decodes a PostgresReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ManageOptions + * @returns PostgresReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ManageOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.PostgresReadArgs; /** - * Decodes a ManageOptions message from the specified reader or buffer, length delimited. + * Decodes a PostgresReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ManageOptions + * @returns PostgresReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ManageOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.PostgresReadArgs; /** - * Verifies a ManageOptions message. + * Verifies a PostgresReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ManageOptions message from a plain object. Also converts values to their respective internal types. + * Creates a PostgresReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ManageOptions + * @returns PostgresReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.ManageOptions; + public static fromObject(object: { [k: string]: any }): protos.args.PostgresReadArgs; /** - * Creates a plain object from a ManageOptions message. Also converts values to other types if specified. - * @param message ManageOptions + * Creates a plain object from a PostgresReadArgs message. Also converts values to other types if specified. + * @param message PostgresReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ManageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.PostgresReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ManageOptions to JSON. + * Converts this PostgresReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GlobalManageOptions. */ - interface IGlobalManageOptions { + /** SubscriptionType enum. */ + enum SubscriptionType { + SHARED = 0, + EXCLUSIVE = 1, + FAILOVER = 2, + KEYSHARED = 3 + } - /** GlobalManageOptions manageAddress */ - manageAddress?: (string|null); + /** SubscriptionInitialPosition enum. */ + enum SubscriptionInitialPosition { + PULSAR_LATEST = 0, + PULSAR_EARLIEST = 1 + } - /** GlobalManageOptions manageToken */ - manageToken?: (string|null); + /** Properties of a PulsarConn. */ + interface IPulsarConn { - /** GlobalManageOptions manageTimeoutSeconds */ - manageTimeoutSeconds?: (number|Long|null); + /** PulsarConn dsn */ + dsn?: (string|null); - /** GlobalManageOptions manageUseTls */ - manageUseTls?: (boolean|null); + /** PulsarConn connectTimeoutSeconds */ + connectTimeoutSeconds?: (number|null); - /** GlobalManageOptions manageInsecureTls */ - manageInsecureTls?: (boolean|null); + /** PulsarConn tlsSkipVerify */ + tlsSkipVerify?: (boolean|null); - /** GlobalManageOptions manageTlsCaFile */ - manageTlsCaFile?: (string|null); + /** PulsarConn tlsClientCert */ + tlsClientCert?: (string|null); - /** GlobalManageOptions manageTlsCertFile */ - manageTlsCertFile?: (string|null); + /** PulsarConn tlsClientKey */ + tlsClientKey?: (string|null); - /** GlobalManageOptions manageTlsKeyFile */ - manageTlsKeyFile?: (string|null); + /** PulsarConn token */ + token?: (string|null); - /** GlobalManageOptions disablePretty */ - disablePretty?: (boolean|null); + /** PulsarConn listenerName */ + listenerName?: (string|null); } - /** Represents a GlobalManageOptions. */ - class GlobalManageOptions implements IGlobalManageOptions { + /** Represents a PulsarConn. */ + class PulsarConn implements IPulsarConn { /** - * Constructs a new GlobalManageOptions. + * Constructs a new PulsarConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IGlobalManageOptions); - - /** GlobalManageOptions manageAddress. */ - public manageAddress: string; - - /** GlobalManageOptions manageToken. */ - public manageToken: string; + constructor(properties?: protos.args.IPulsarConn); - /** GlobalManageOptions manageTimeoutSeconds. */ - public manageTimeoutSeconds: (number|Long); + /** PulsarConn dsn. */ + public dsn: string; - /** GlobalManageOptions manageUseTls. */ - public manageUseTls: boolean; + /** PulsarConn connectTimeoutSeconds. */ + public connectTimeoutSeconds: number; - /** GlobalManageOptions manageInsecureTls. */ - public manageInsecureTls: boolean; + /** PulsarConn tlsSkipVerify. */ + public tlsSkipVerify: boolean; - /** GlobalManageOptions manageTlsCaFile. */ - public manageTlsCaFile: string; + /** PulsarConn tlsClientCert. */ + public tlsClientCert: string; - /** GlobalManageOptions manageTlsCertFile. */ - public manageTlsCertFile: string; + /** PulsarConn tlsClientKey. */ + public tlsClientKey: string; - /** GlobalManageOptions manageTlsKeyFile. */ - public manageTlsKeyFile: string; + /** PulsarConn token. */ + public token: string; - /** GlobalManageOptions disablePretty. */ - public disablePretty: boolean; + /** PulsarConn listenerName. */ + public listenerName: string; /** - * Creates a new GlobalManageOptions instance using the specified properties. + * Creates a new PulsarConn instance using the specified properties. * @param [properties] Properties to set - * @returns GlobalManageOptions instance + * @returns PulsarConn instance */ - public static create(properties?: protos.opts.IGlobalManageOptions): protos.opts.GlobalManageOptions; + public static create(properties?: protos.args.IPulsarConn): protos.args.PulsarConn; /** - * Encodes the specified GlobalManageOptions message. Does not implicitly {@link protos.opts.GlobalManageOptions.verify|verify} messages. - * @param message GlobalManageOptions message or plain object to encode + * Encodes the specified PulsarConn message. Does not implicitly {@link protos.args.PulsarConn.verify|verify} messages. + * @param message PulsarConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IGlobalManageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IPulsarConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GlobalManageOptions message, length delimited. Does not implicitly {@link protos.opts.GlobalManageOptions.verify|verify} messages. - * @param message GlobalManageOptions message or plain object to encode + * Encodes the specified PulsarConn message, length delimited. Does not implicitly {@link protos.args.PulsarConn.verify|verify} messages. + * @param message PulsarConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IGlobalManageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IPulsarConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GlobalManageOptions message from the specified reader or buffer. + * Decodes a PulsarConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GlobalManageOptions + * @returns PulsarConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.GlobalManageOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.PulsarConn; /** - * Decodes a GlobalManageOptions message from the specified reader or buffer, length delimited. + * Decodes a PulsarConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GlobalManageOptions + * @returns PulsarConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.GlobalManageOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.PulsarConn; /** - * Verifies a GlobalManageOptions message. + * Verifies a PulsarConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GlobalManageOptions message from a plain object. Also converts values to their respective internal types. + * Creates a PulsarConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GlobalManageOptions + * @returns PulsarConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.GlobalManageOptions; + public static fromObject(object: { [k: string]: any }): protos.args.PulsarConn; /** - * Creates a plain object from a GlobalManageOptions message. Also converts values to other types if specified. - * @param message GlobalManageOptions + * Creates a plain object from a PulsarConn message. Also converts values to other types if specified. + * @param message PulsarConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.GlobalManageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.PulsarConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GlobalManageOptions to JSON. + * Converts this PulsarConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetOptions. */ - interface IGetOptions { + /** Properties of a PulsarReadArgs. */ + interface IPulsarReadArgs { + + /** PulsarReadArgs topic */ + topic?: (string|null); - /** GetOptions connection */ - connection?: (protos.opts.IGetConnectionOptions|null); + /** PulsarReadArgs subscriptionName */ + subscriptionName?: (string|null); - /** GetOptions relay */ - relay?: (protos.opts.IGetRelayOptions|null); + /** PulsarReadArgs subscriptionType */ + subscriptionType?: (protos.args.SubscriptionType|null); - /** GetOptions tunnel */ - tunnel?: (protos.opts.IGetTunnelOptions|null); + /** PulsarReadArgs initialPosition */ + initialPosition?: (protos.args.SubscriptionInitialPosition|null); } - /** Represents a GetOptions. */ - class GetOptions implements IGetOptions { + /** Represents a PulsarReadArgs. */ + class PulsarReadArgs implements IPulsarReadArgs { /** - * Constructs a new GetOptions. + * Constructs a new PulsarReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IGetOptions); + constructor(properties?: protos.args.IPulsarReadArgs); + + /** PulsarReadArgs topic. */ + public topic: string; - /** GetOptions connection. */ - public connection?: (protos.opts.IGetConnectionOptions|null); + /** PulsarReadArgs subscriptionName. */ + public subscriptionName: string; - /** GetOptions relay. */ - public relay?: (protos.opts.IGetRelayOptions|null); + /** PulsarReadArgs subscriptionType. */ + public subscriptionType: protos.args.SubscriptionType; - /** GetOptions tunnel. */ - public tunnel?: (protos.opts.IGetTunnelOptions|null); + /** PulsarReadArgs initialPosition. */ + public initialPosition: protos.args.SubscriptionInitialPosition; /** - * Creates a new GetOptions instance using the specified properties. + * Creates a new PulsarReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns GetOptions instance + * @returns PulsarReadArgs instance */ - public static create(properties?: protos.opts.IGetOptions): protos.opts.GetOptions; + public static create(properties?: protos.args.IPulsarReadArgs): protos.args.PulsarReadArgs; /** - * Encodes the specified GetOptions message. Does not implicitly {@link protos.opts.GetOptions.verify|verify} messages. - * @param message GetOptions message or plain object to encode + * Encodes the specified PulsarReadArgs message. Does not implicitly {@link protos.args.PulsarReadArgs.verify|verify} messages. + * @param message PulsarReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IGetOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IPulsarReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetOptions message, length delimited. Does not implicitly {@link protos.opts.GetOptions.verify|verify} messages. - * @param message GetOptions message or plain object to encode + * Encodes the specified PulsarReadArgs message, length delimited. Does not implicitly {@link protos.args.PulsarReadArgs.verify|verify} messages. + * @param message PulsarReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IGetOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IPulsarReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetOptions message from the specified reader or buffer. + * Decodes a PulsarReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetOptions + * @returns PulsarReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.GetOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.PulsarReadArgs; /** - * Decodes a GetOptions message from the specified reader or buffer, length delimited. + * Decodes a PulsarReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetOptions + * @returns PulsarReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.GetOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.PulsarReadArgs; /** - * Verifies a GetOptions message. + * Verifies a PulsarReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetOptions message from a plain object. Also converts values to their respective internal types. + * Creates a PulsarReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetOptions + * @returns PulsarReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.GetOptions; + public static fromObject(object: { [k: string]: any }): protos.args.PulsarReadArgs; /** - * Creates a plain object from a GetOptions message. Also converts values to other types if specified. - * @param message GetOptions + * Creates a plain object from a PulsarReadArgs message. Also converts values to other types if specified. + * @param message PulsarReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.GetOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.PulsarReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetOptions to JSON. + * Converts this PulsarReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateOptions. */ - interface ICreateOptions { - - /** CreateOptions connection */ - connection?: (protos.opts.ICreateConnectionOptions|null); - - /** CreateOptions relay */ - relay?: (protos.opts.ICreateRelayOptions|null); + /** Properties of a PulsarWriteArgs. */ + interface IPulsarWriteArgs { - /** CreateOptions tunnel */ - tunnel?: (protos.opts.ICreateTunnelOptions|null); + /** PulsarWriteArgs topic */ + topic?: (string|null); } - /** Represents a CreateOptions. */ - class CreateOptions implements ICreateOptions { - + /** Represents a PulsarWriteArgs. */ + class PulsarWriteArgs implements IPulsarWriteArgs { + /** - * Constructs a new CreateOptions. + * Constructs a new PulsarWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ICreateOptions); - - /** CreateOptions connection. */ - public connection?: (protos.opts.ICreateConnectionOptions|null); - - /** CreateOptions relay. */ - public relay?: (protos.opts.ICreateRelayOptions|null); + constructor(properties?: protos.args.IPulsarWriteArgs); - /** CreateOptions tunnel. */ - public tunnel?: (protos.opts.ICreateTunnelOptions|null); + /** PulsarWriteArgs topic. */ + public topic: string; /** - * Creates a new CreateOptions instance using the specified properties. + * Creates a new PulsarWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns CreateOptions instance + * @returns PulsarWriteArgs instance */ - public static create(properties?: protos.opts.ICreateOptions): protos.opts.CreateOptions; + public static create(properties?: protos.args.IPulsarWriteArgs): protos.args.PulsarWriteArgs; /** - * Encodes the specified CreateOptions message. Does not implicitly {@link protos.opts.CreateOptions.verify|verify} messages. - * @param message CreateOptions message or plain object to encode + * Encodes the specified PulsarWriteArgs message. Does not implicitly {@link protos.args.PulsarWriteArgs.verify|verify} messages. + * @param message PulsarWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ICreateOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IPulsarWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateOptions message, length delimited. Does not implicitly {@link protos.opts.CreateOptions.verify|verify} messages. - * @param message CreateOptions message or plain object to encode + * Encodes the specified PulsarWriteArgs message, length delimited. Does not implicitly {@link protos.args.PulsarWriteArgs.verify|verify} messages. + * @param message PulsarWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ICreateOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IPulsarWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateOptions message from the specified reader or buffer. + * Decodes a PulsarWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateOptions + * @returns PulsarWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.CreateOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.PulsarWriteArgs; /** - * Decodes a CreateOptions message from the specified reader or buffer, length delimited. + * Decodes a PulsarWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateOptions + * @returns PulsarWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.CreateOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.PulsarWriteArgs; /** - * Verifies a CreateOptions message. + * Verifies a PulsarWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateOptions message from a plain object. Also converts values to their respective internal types. + * Creates a PulsarWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateOptions + * @returns PulsarWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.CreateOptions; + public static fromObject(object: { [k: string]: any }): protos.args.PulsarWriteArgs; /** - * Creates a plain object from a CreateOptions message. Also converts values to other types if specified. - * @param message CreateOptions + * Creates a plain object from a PulsarWriteArgs message. Also converts values to other types if specified. + * @param message PulsarWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.CreateOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.PulsarWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateOptions to JSON. + * Converts this PulsarWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteOptions. */ - interface IDeleteOptions { + /** Properties of a RabbitConn. */ + interface IRabbitConn { - /** DeleteOptions connection */ - connection?: (protos.opts.IDeleteConnectionOptions|null); + /** RabbitConn address */ + address?: (string|null); - /** DeleteOptions relay */ - relay?: (protos.opts.IDeleteRelayOptions|null); + /** RabbitConn useTls */ + useTls?: (boolean|null); - /** DeleteOptions tunnel */ - tunnel?: (protos.opts.IDeleteTunnelOptions|null); + /** RabbitConn tlsSkipVerify */ + tlsSkipVerify?: (boolean|null); } - /** Represents a DeleteOptions. */ - class DeleteOptions implements IDeleteOptions { + /** Represents a RabbitConn. */ + class RabbitConn implements IRabbitConn { /** - * Constructs a new DeleteOptions. + * Constructs a new RabbitConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IDeleteOptions); + constructor(properties?: protos.args.IRabbitConn); - /** DeleteOptions connection. */ - public connection?: (protos.opts.IDeleteConnectionOptions|null); + /** RabbitConn address. */ + public address: string; - /** DeleteOptions relay. */ - public relay?: (protos.opts.IDeleteRelayOptions|null); + /** RabbitConn useTls. */ + public useTls: boolean; - /** DeleteOptions tunnel. */ - public tunnel?: (protos.opts.IDeleteTunnelOptions|null); + /** RabbitConn tlsSkipVerify. */ + public tlsSkipVerify: boolean; /** - * Creates a new DeleteOptions instance using the specified properties. + * Creates a new RabbitConn instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteOptions instance + * @returns RabbitConn instance */ - public static create(properties?: protos.opts.IDeleteOptions): protos.opts.DeleteOptions; + public static create(properties?: protos.args.IRabbitConn): protos.args.RabbitConn; /** - * Encodes the specified DeleteOptions message. Does not implicitly {@link protos.opts.DeleteOptions.verify|verify} messages. - * @param message DeleteOptions message or plain object to encode + * Encodes the specified RabbitConn message. Does not implicitly {@link protos.args.RabbitConn.verify|verify} messages. + * @param message RabbitConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IDeleteOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IRabbitConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteOptions message, length delimited. Does not implicitly {@link protos.opts.DeleteOptions.verify|verify} messages. - * @param message DeleteOptions message or plain object to encode + * Encodes the specified RabbitConn message, length delimited. Does not implicitly {@link protos.args.RabbitConn.verify|verify} messages. + * @param message RabbitConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IDeleteOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IRabbitConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteOptions message from the specified reader or buffer. + * Decodes a RabbitConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteOptions + * @returns RabbitConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.DeleteOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitConn; /** - * Decodes a DeleteOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteOptions + * @returns RabbitConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.DeleteOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitConn; /** - * Verifies a DeleteOptions message. + * Verifies a RabbitConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteOptions + * @returns RabbitConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.DeleteOptions; + public static fromObject(object: { [k: string]: any }): protos.args.RabbitConn; /** - * Creates a plain object from a DeleteOptions message. Also converts values to other types if specified. - * @param message DeleteOptions + * Creates a plain object from a RabbitConn message. Also converts values to other types if specified. + * @param message RabbitConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.DeleteOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.RabbitConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteOptions to JSON. + * Converts this RabbitConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StopOptions. */ - interface IStopOptions { + /** Properties of a RabbitReadArgs. */ + interface IRabbitReadArgs { + + /** RabbitReadArgs exchangeName */ + exchangeName?: (string|null); + + /** RabbitReadArgs queueName */ + queueName?: (string|null); + + /** RabbitReadArgs bindingKey */ + bindingKey?: (string|null); + + /** RabbitReadArgs queueExclusive */ + queueExclusive?: (boolean|null); + + /** RabbitReadArgs queueDeclare */ + queueDeclare?: (boolean|null); + + /** RabbitReadArgs queueDurable */ + queueDurable?: (boolean|null); + + /** RabbitReadArgs autoAck */ + autoAck?: (boolean|null); + + /** RabbitReadArgs consumerTag */ + consumerTag?: (string|null); + + /** RabbitReadArgs queueDelete */ + queueDelete?: (boolean|null); - /** StopOptions relay */ - relay?: (protos.opts.IStopRelayOptions|null); + /** RabbitReadArgs queueArg */ + queueArg?: ({ [k: string]: string }|null); - /** StopOptions tunnel */ - tunnel?: (protos.opts.IStopTunnelOptions|null); + /** RabbitReadArgs excludeBindingKeyRegex */ + excludeBindingKeyRegex?: (string|null); } - /** Represents a StopOptions. */ - class StopOptions implements IStopOptions { + /** Represents a RabbitReadArgs. */ + class RabbitReadArgs implements IRabbitReadArgs { /** - * Constructs a new StopOptions. + * Constructs a new RabbitReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IStopOptions); + constructor(properties?: protos.args.IRabbitReadArgs); + + /** RabbitReadArgs exchangeName. */ + public exchangeName: string; + + /** RabbitReadArgs queueName. */ + public queueName: string; + + /** RabbitReadArgs bindingKey. */ + public bindingKey: string; + + /** RabbitReadArgs queueExclusive. */ + public queueExclusive: boolean; + + /** RabbitReadArgs queueDeclare. */ + public queueDeclare: boolean; + + /** RabbitReadArgs queueDurable. */ + public queueDurable: boolean; - /** StopOptions relay. */ - public relay?: (protos.opts.IStopRelayOptions|null); + /** RabbitReadArgs autoAck. */ + public autoAck: boolean; + + /** RabbitReadArgs consumerTag. */ + public consumerTag: string; + + /** RabbitReadArgs queueDelete. */ + public queueDelete: boolean; - /** StopOptions tunnel. */ - public tunnel?: (protos.opts.IStopTunnelOptions|null); + /** RabbitReadArgs queueArg. */ + public queueArg: { [k: string]: string }; + + /** RabbitReadArgs excludeBindingKeyRegex. */ + public excludeBindingKeyRegex: string; /** - * Creates a new StopOptions instance using the specified properties. + * Creates a new RabbitReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns StopOptions instance + * @returns RabbitReadArgs instance */ - public static create(properties?: protos.opts.IStopOptions): protos.opts.StopOptions; + public static create(properties?: protos.args.IRabbitReadArgs): protos.args.RabbitReadArgs; /** - * Encodes the specified StopOptions message. Does not implicitly {@link protos.opts.StopOptions.verify|verify} messages. - * @param message StopOptions message or plain object to encode + * Encodes the specified RabbitReadArgs message. Does not implicitly {@link protos.args.RabbitReadArgs.verify|verify} messages. + * @param message RabbitReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IStopOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IRabbitReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopOptions message, length delimited. Does not implicitly {@link protos.opts.StopOptions.verify|verify} messages. - * @param message StopOptions message or plain object to encode + * Encodes the specified RabbitReadArgs message, length delimited. Does not implicitly {@link protos.args.RabbitReadArgs.verify|verify} messages. + * @param message RabbitReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IStopOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IRabbitReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopOptions message from the specified reader or buffer. + * Decodes a RabbitReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopOptions + * @returns RabbitReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.StopOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitReadArgs; /** - * Decodes a StopOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopOptions + * @returns RabbitReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.StopOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitReadArgs; /** - * Verifies a StopOptions message. + * Verifies a RabbitReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StopOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopOptions + * @returns RabbitReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.StopOptions; + public static fromObject(object: { [k: string]: any }): protos.args.RabbitReadArgs; /** - * Creates a plain object from a StopOptions message. Also converts values to other types if specified. - * @param message StopOptions + * Creates a plain object from a RabbitReadArgs message. Also converts values to other types if specified. + * @param message RabbitReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.StopOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.RabbitReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopOptions to JSON. + * Converts this RabbitReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResumeOptions. */ - interface IResumeOptions { + /** Properties of a RabbitWriteArgs. */ + interface IRabbitWriteArgs { + + /** RabbitWriteArgs exchangeName */ + exchangeName?: (string|null); + + /** RabbitWriteArgs routingKey */ + routingKey?: (string|null); + + /** RabbitWriteArgs appId */ + appId?: (string|null); + + /** RabbitWriteArgs exchangeType */ + exchangeType?: (string|null); + + /** RabbitWriteArgs exchangeDeclare */ + exchangeDeclare?: (boolean|null); - /** ResumeOptions relay */ - relay?: (protos.opts.IResumeRelayOptions|null); + /** RabbitWriteArgs exchangeDurable */ + exchangeDurable?: (boolean|null); - /** ResumeOptions tunnel */ - tunnel?: (protos.opts.IResumeTunnelOptions|null); + /** RabbitWriteArgs exchangeAutoDelete */ + exchangeAutoDelete?: (boolean|null); } - /** Represents a ResumeOptions. */ - class ResumeOptions implements IResumeOptions { + /** Represents a RabbitWriteArgs. */ + class RabbitWriteArgs implements IRabbitWriteArgs { /** - * Constructs a new ResumeOptions. + * Constructs a new RabbitWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IResumeOptions); + constructor(properties?: protos.args.IRabbitWriteArgs); + + /** RabbitWriteArgs exchangeName. */ + public exchangeName: string; - /** ResumeOptions relay. */ - public relay?: (protos.opts.IResumeRelayOptions|null); + /** RabbitWriteArgs routingKey. */ + public routingKey: string; + + /** RabbitWriteArgs appId. */ + public appId: string; + + /** RabbitWriteArgs exchangeType. */ + public exchangeType: string; - /** ResumeOptions tunnel. */ - public tunnel?: (protos.opts.IResumeTunnelOptions|null); + /** RabbitWriteArgs exchangeDeclare. */ + public exchangeDeclare: boolean; + + /** RabbitWriteArgs exchangeDurable. */ + public exchangeDurable: boolean; + + /** RabbitWriteArgs exchangeAutoDelete. */ + public exchangeAutoDelete: boolean; /** - * Creates a new ResumeOptions instance using the specified properties. + * Creates a new RabbitWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns ResumeOptions instance + * @returns RabbitWriteArgs instance */ - public static create(properties?: protos.opts.IResumeOptions): protos.opts.ResumeOptions; + public static create(properties?: protos.args.IRabbitWriteArgs): protos.args.RabbitWriteArgs; /** - * Encodes the specified ResumeOptions message. Does not implicitly {@link protos.opts.ResumeOptions.verify|verify} messages. - * @param message ResumeOptions message or plain object to encode + * Encodes the specified RabbitWriteArgs message. Does not implicitly {@link protos.args.RabbitWriteArgs.verify|verify} messages. + * @param message RabbitWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IResumeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IRabbitWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResumeOptions message, length delimited. Does not implicitly {@link protos.opts.ResumeOptions.verify|verify} messages. - * @param message ResumeOptions message or plain object to encode + * Encodes the specified RabbitWriteArgs message, length delimited. Does not implicitly {@link protos.args.RabbitWriteArgs.verify|verify} messages. + * @param message RabbitWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IResumeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IRabbitWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResumeOptions message from the specified reader or buffer. + * Decodes a RabbitWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResumeOptions + * @returns RabbitWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ResumeOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitWriteArgs; /** - * Decodes a ResumeOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResumeOptions + * @returns RabbitWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ResumeOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitWriteArgs; /** - * Verifies a ResumeOptions message. + * Verifies a RabbitWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResumeOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResumeOptions + * @returns RabbitWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.ResumeOptions; + public static fromObject(object: { [k: string]: any }): protos.args.RabbitWriteArgs; /** - * Creates a plain object from a ResumeOptions message. Also converts values to other types if specified. - * @param message ResumeOptions + * Creates a plain object from a RabbitWriteArgs message. Also converts values to other types if specified. + * @param message RabbitWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ResumeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.RabbitWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResumeOptions to JSON. + * Converts this RabbitWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetConnectionOptions. */ - interface IGetConnectionOptions { + /** Properties of a RabbitStreamsConn. */ + interface IRabbitStreamsConn { + + /** RabbitStreamsConn dsn */ + dsn?: (string|null); + + /** RabbitStreamsConn useTls */ + useTls?: (boolean|null); - /** GetConnectionOptions id */ - id?: (string|null); + /** RabbitStreamsConn tlsSkipVerify */ + tlsSkipVerify?: (boolean|null); + + /** RabbitStreamsConn username */ + username?: (string|null); + + /** RabbitStreamsConn password */ + password?: (string|null); + + /** RabbitStreamsConn clientName */ + clientName?: (string|null); } - /** Represents a GetConnectionOptions. */ - class GetConnectionOptions implements IGetConnectionOptions { + /** Represents a RabbitStreamsConn. */ + class RabbitStreamsConn implements IRabbitStreamsConn { /** - * Constructs a new GetConnectionOptions. + * Constructs a new RabbitStreamsConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IGetConnectionOptions); + constructor(properties?: protos.args.IRabbitStreamsConn); - /** GetConnectionOptions id. */ - public id: string; + /** RabbitStreamsConn dsn. */ + public dsn: string; + + /** RabbitStreamsConn useTls. */ + public useTls: boolean; + + /** RabbitStreamsConn tlsSkipVerify. */ + public tlsSkipVerify: boolean; + + /** RabbitStreamsConn username. */ + public username: string; + + /** RabbitStreamsConn password. */ + public password: string; + + /** RabbitStreamsConn clientName. */ + public clientName: string; /** - * Creates a new GetConnectionOptions instance using the specified properties. + * Creates a new RabbitStreamsConn instance using the specified properties. * @param [properties] Properties to set - * @returns GetConnectionOptions instance + * @returns RabbitStreamsConn instance */ - public static create(properties?: protos.opts.IGetConnectionOptions): protos.opts.GetConnectionOptions; + public static create(properties?: protos.args.IRabbitStreamsConn): protos.args.RabbitStreamsConn; /** - * Encodes the specified GetConnectionOptions message. Does not implicitly {@link protos.opts.GetConnectionOptions.verify|verify} messages. - * @param message GetConnectionOptions message or plain object to encode + * Encodes the specified RabbitStreamsConn message. Does not implicitly {@link protos.args.RabbitStreamsConn.verify|verify} messages. + * @param message RabbitStreamsConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IGetConnectionOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IRabbitStreamsConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetConnectionOptions message, length delimited. Does not implicitly {@link protos.opts.GetConnectionOptions.verify|verify} messages. - * @param message GetConnectionOptions message or plain object to encode + * Encodes the specified RabbitStreamsConn message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsConn.verify|verify} messages. + * @param message RabbitStreamsConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IGetConnectionOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IRabbitStreamsConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetConnectionOptions message from the specified reader or buffer. + * Decodes a RabbitStreamsConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetConnectionOptions + * @returns RabbitStreamsConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.GetConnectionOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitStreamsConn; /** - * Decodes a GetConnectionOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitStreamsConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetConnectionOptions + * @returns RabbitStreamsConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.GetConnectionOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitStreamsConn; /** - * Verifies a GetConnectionOptions message. + * Verifies a RabbitStreamsConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetConnectionOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitStreamsConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetConnectionOptions + * @returns RabbitStreamsConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.GetConnectionOptions; + public static fromObject(object: { [k: string]: any }): protos.args.RabbitStreamsConn; /** - * Creates a plain object from a GetConnectionOptions message. Also converts values to other types if specified. - * @param message GetConnectionOptions + * Creates a plain object from a RabbitStreamsConn message. Also converts values to other types if specified. + * @param message RabbitStreamsConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.GetConnectionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.RabbitStreamsConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetConnectionOptions to JSON. + * Converts this RabbitStreamsConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateConnectionOptions. */ - interface ICreateConnectionOptions { - - /** CreateConnectionOptions name */ - name?: (string|null); - - /** CreateConnectionOptions notes */ - notes?: (string|null); - - /** CreateConnectionOptions kafka */ - kafka?: (protos.args.IKafkaConn|null); - - /** CreateConnectionOptions activeMq */ - activeMq?: (protos.args.IActiveMQConn|null); - - /** CreateConnectionOptions awsSqs */ - awsSqs?: (protos.args.IAWSSQSConn|null); - - /** CreateConnectionOptions awsSns */ - awsSns?: (protos.args.IAWSSNSConn|null); - - /** CreateConnectionOptions mongo */ - mongo?: (protos.args.IMongoConn|null); - - /** CreateConnectionOptions nats */ - nats?: (protos.args.INatsConn|null); - - /** CreateConnectionOptions natsStreaming */ - natsStreaming?: (protos.args.INatsStreamingConn|null); - - /** CreateConnectionOptions nsq */ - nsq?: (protos.args.INSQConn|null); - - /** CreateConnectionOptions postgres */ - postgres?: (protos.args.IPostgresConn|null); - - /** CreateConnectionOptions pulsar */ - pulsar?: (protos.args.IPulsarConn|null); - - /** CreateConnectionOptions rabbit */ - rabbit?: (protos.args.IRabbitConn|null); - - /** CreateConnectionOptions rabbitStreams */ - rabbitStreams?: (protos.args.IRabbitStreamsConn|null); - - /** CreateConnectionOptions redisPubsub */ - redisPubsub?: (protos.args.IRedisPubSubConn|null); - - /** CreateConnectionOptions redisStreams */ - redisStreams?: (protos.args.IRedisStreamsConn|null); - - /** CreateConnectionOptions azureEventHub */ - azureEventHub?: (protos.args.IAzureEventHubConn|null); - - /** CreateConnectionOptions azureServiceBus */ - azureServiceBus?: (protos.args.IAzureServiceBusConn|null); + /** Properties of a RabbitStreamsOffsetOptions. */ + interface IRabbitStreamsOffsetOptions { - /** CreateConnectionOptions mqtt */ - mqtt?: (protos.args.IMQTTConn|null); + /** RabbitStreamsOffsetOptions specificOffset */ + specificOffset?: (number|Long|null); - /** CreateConnectionOptions kubemqQueue */ - kubemqQueue?: (protos.args.IKubeMQQueueConn|null); + /** RabbitStreamsOffsetOptions lastOffset */ + lastOffset?: (boolean|null); - /** CreateConnectionOptions gcpPubsub */ - gcpPubsub?: (protos.args.IGCPPubSubConn|null); + /** RabbitStreamsOffsetOptions lastConsumed */ + lastConsumed?: (boolean|null); - /** CreateConnectionOptions natsJetstream */ - natsJetstream?: (protos.args.INatsJetstreamConn|null); + /** RabbitStreamsOffsetOptions firstOffset */ + firstOffset?: (boolean|null); - /** CreateConnectionOptions awsKinesis */ - awsKinesis?: (protos.args.IAWSKinesisConn|null); + /** RabbitStreamsOffsetOptions nextOffset */ + nextOffset?: (boolean|null); } - /** Represents a CreateConnectionOptions. */ - class CreateConnectionOptions implements ICreateConnectionOptions { + /** Represents a RabbitStreamsOffsetOptions. */ + class RabbitStreamsOffsetOptions implements IRabbitStreamsOffsetOptions { /** - * Constructs a new CreateConnectionOptions. + * Constructs a new RabbitStreamsOffsetOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ICreateConnectionOptions); - - /** CreateConnectionOptions name. */ - public name: string; - - /** CreateConnectionOptions notes. */ - public notes: string; - - /** CreateConnectionOptions kafka. */ - public kafka?: (protos.args.IKafkaConn|null); - - /** CreateConnectionOptions activeMq. */ - public activeMq?: (protos.args.IActiveMQConn|null); - - /** CreateConnectionOptions awsSqs. */ - public awsSqs?: (protos.args.IAWSSQSConn|null); - - /** CreateConnectionOptions awsSns. */ - public awsSns?: (protos.args.IAWSSNSConn|null); - - /** CreateConnectionOptions mongo. */ - public mongo?: (protos.args.IMongoConn|null); - - /** CreateConnectionOptions nats. */ - public nats?: (protos.args.INatsConn|null); - - /** CreateConnectionOptions natsStreaming. */ - public natsStreaming?: (protos.args.INatsStreamingConn|null); - - /** CreateConnectionOptions nsq. */ - public nsq?: (protos.args.INSQConn|null); - - /** CreateConnectionOptions postgres. */ - public postgres?: (protos.args.IPostgresConn|null); - - /** CreateConnectionOptions pulsar. */ - public pulsar?: (protos.args.IPulsarConn|null); - - /** CreateConnectionOptions rabbit. */ - public rabbit?: (protos.args.IRabbitConn|null); - - /** CreateConnectionOptions rabbitStreams. */ - public rabbitStreams?: (protos.args.IRabbitStreamsConn|null); - - /** CreateConnectionOptions redisPubsub. */ - public redisPubsub?: (protos.args.IRedisPubSubConn|null); - - /** CreateConnectionOptions redisStreams. */ - public redisStreams?: (protos.args.IRedisStreamsConn|null); - - /** CreateConnectionOptions azureEventHub. */ - public azureEventHub?: (protos.args.IAzureEventHubConn|null); - - /** CreateConnectionOptions azureServiceBus. */ - public azureServiceBus?: (protos.args.IAzureServiceBusConn|null); + constructor(properties?: protos.args.IRabbitStreamsOffsetOptions); - /** CreateConnectionOptions mqtt. */ - public mqtt?: (protos.args.IMQTTConn|null); + /** RabbitStreamsOffsetOptions specificOffset. */ + public specificOffset: (number|Long); - /** CreateConnectionOptions kubemqQueue. */ - public kubemqQueue?: (protos.args.IKubeMQQueueConn|null); + /** RabbitStreamsOffsetOptions lastOffset. */ + public lastOffset: boolean; - /** CreateConnectionOptions gcpPubsub. */ - public gcpPubsub?: (protos.args.IGCPPubSubConn|null); + /** RabbitStreamsOffsetOptions lastConsumed. */ + public lastConsumed: boolean; - /** CreateConnectionOptions natsJetstream. */ - public natsJetstream?: (protos.args.INatsJetstreamConn|null); + /** RabbitStreamsOffsetOptions firstOffset. */ + public firstOffset: boolean; - /** CreateConnectionOptions awsKinesis. */ - public awsKinesis?: (protos.args.IAWSKinesisConn|null); + /** RabbitStreamsOffsetOptions nextOffset. */ + public nextOffset: boolean; /** - * Creates a new CreateConnectionOptions instance using the specified properties. + * Creates a new RabbitStreamsOffsetOptions instance using the specified properties. * @param [properties] Properties to set - * @returns CreateConnectionOptions instance + * @returns RabbitStreamsOffsetOptions instance */ - public static create(properties?: protos.opts.ICreateConnectionOptions): protos.opts.CreateConnectionOptions; + public static create(properties?: protos.args.IRabbitStreamsOffsetOptions): protos.args.RabbitStreamsOffsetOptions; /** - * Encodes the specified CreateConnectionOptions message. Does not implicitly {@link protos.opts.CreateConnectionOptions.verify|verify} messages. - * @param message CreateConnectionOptions message or plain object to encode + * Encodes the specified RabbitStreamsOffsetOptions message. Does not implicitly {@link protos.args.RabbitStreamsOffsetOptions.verify|verify} messages. + * @param message RabbitStreamsOffsetOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ICreateConnectionOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IRabbitStreamsOffsetOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateConnectionOptions message, length delimited. Does not implicitly {@link protos.opts.CreateConnectionOptions.verify|verify} messages. - * @param message CreateConnectionOptions message or plain object to encode + * Encodes the specified RabbitStreamsOffsetOptions message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsOffsetOptions.verify|verify} messages. + * @param message RabbitStreamsOffsetOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ICreateConnectionOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IRabbitStreamsOffsetOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateConnectionOptions message from the specified reader or buffer. + * Decodes a RabbitStreamsOffsetOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateConnectionOptions + * @returns RabbitStreamsOffsetOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.CreateConnectionOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitStreamsOffsetOptions; /** - * Decodes a CreateConnectionOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitStreamsOffsetOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateConnectionOptions + * @returns RabbitStreamsOffsetOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.CreateConnectionOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitStreamsOffsetOptions; /** - * Verifies a CreateConnectionOptions message. + * Verifies a RabbitStreamsOffsetOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateConnectionOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitStreamsOffsetOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateConnectionOptions + * @returns RabbitStreamsOffsetOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.CreateConnectionOptions; + public static fromObject(object: { [k: string]: any }): protos.args.RabbitStreamsOffsetOptions; /** - * Creates a plain object from a CreateConnectionOptions message. Also converts values to other types if specified. - * @param message CreateConnectionOptions + * Creates a plain object from a RabbitStreamsOffsetOptions message. Also converts values to other types if specified. + * @param message RabbitStreamsOffsetOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.CreateConnectionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.RabbitStreamsOffsetOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateConnectionOptions to JSON. + * Converts this RabbitStreamsOffsetOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteConnectionOptions. */ - interface IDeleteConnectionOptions { + /** Properties of a RabbitStreamsReadArgs. */ + interface IRabbitStreamsReadArgs { - /** DeleteConnectionOptions id */ - id?: (string|null); + /** RabbitStreamsReadArgs stream */ + stream?: (string|null); + + /** RabbitStreamsReadArgs declareStream */ + declareStream?: (boolean|null); + + /** RabbitStreamsReadArgs declareStreamSize */ + declareStreamSize?: (string|null); + + /** RabbitStreamsReadArgs offsetOptions */ + offsetOptions?: (protos.args.IRabbitStreamsOffsetOptions|null); } - /** Represents a DeleteConnectionOptions. */ - class DeleteConnectionOptions implements IDeleteConnectionOptions { + /** Represents a RabbitStreamsReadArgs. */ + class RabbitStreamsReadArgs implements IRabbitStreamsReadArgs { /** - * Constructs a new DeleteConnectionOptions. + * Constructs a new RabbitStreamsReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IDeleteConnectionOptions); + constructor(properties?: protos.args.IRabbitStreamsReadArgs); - /** DeleteConnectionOptions id. */ - public id: string; + /** RabbitStreamsReadArgs stream. */ + public stream: string; + + /** RabbitStreamsReadArgs declareStream. */ + public declareStream: boolean; + + /** RabbitStreamsReadArgs declareStreamSize. */ + public declareStreamSize: string; + + /** RabbitStreamsReadArgs offsetOptions. */ + public offsetOptions?: (protos.args.IRabbitStreamsOffsetOptions|null); /** - * Creates a new DeleteConnectionOptions instance using the specified properties. + * Creates a new RabbitStreamsReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteConnectionOptions instance + * @returns RabbitStreamsReadArgs instance */ - public static create(properties?: protos.opts.IDeleteConnectionOptions): protos.opts.DeleteConnectionOptions; + public static create(properties?: protos.args.IRabbitStreamsReadArgs): protos.args.RabbitStreamsReadArgs; /** - * Encodes the specified DeleteConnectionOptions message. Does not implicitly {@link protos.opts.DeleteConnectionOptions.verify|verify} messages. - * @param message DeleteConnectionOptions message or plain object to encode + * Encodes the specified RabbitStreamsReadArgs message. Does not implicitly {@link protos.args.RabbitStreamsReadArgs.verify|verify} messages. + * @param message RabbitStreamsReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IDeleteConnectionOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IRabbitStreamsReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteConnectionOptions message, length delimited. Does not implicitly {@link protos.opts.DeleteConnectionOptions.verify|verify} messages. - * @param message DeleteConnectionOptions message or plain object to encode + * Encodes the specified RabbitStreamsReadArgs message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsReadArgs.verify|verify} messages. + * @param message RabbitStreamsReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IDeleteConnectionOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IRabbitStreamsReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteConnectionOptions message from the specified reader or buffer. + * Decodes a RabbitStreamsReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteConnectionOptions + * @returns RabbitStreamsReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.DeleteConnectionOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitStreamsReadArgs; /** - * Decodes a DeleteConnectionOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitStreamsReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteConnectionOptions + * @returns RabbitStreamsReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.DeleteConnectionOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitStreamsReadArgs; /** - * Verifies a DeleteConnectionOptions message. + * Verifies a RabbitStreamsReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteConnectionOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitStreamsReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteConnectionOptions + * @returns RabbitStreamsReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.DeleteConnectionOptions; + public static fromObject(object: { [k: string]: any }): protos.args.RabbitStreamsReadArgs; /** - * Creates a plain object from a DeleteConnectionOptions message. Also converts values to other types if specified. - * @param message DeleteConnectionOptions + * Creates a plain object from a RabbitStreamsReadArgs message. Also converts values to other types if specified. + * @param message RabbitStreamsReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.DeleteConnectionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.RabbitStreamsReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteConnectionOptions to JSON. + * Converts this RabbitStreamsReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetTunnelOptions. */ - interface IGetTunnelOptions { + /** Properties of a RabbitStreamsWriteArgs. */ + interface IRabbitStreamsWriteArgs { - /** GetTunnelOptions id */ - id?: (string|null); + /** RabbitStreamsWriteArgs stream */ + stream?: (string|null); + + /** RabbitStreamsWriteArgs declareStream */ + declareStream?: (boolean|null); + + /** RabbitStreamsWriteArgs declareStreamSize */ + declareStreamSize?: (string|null); } - /** Represents a GetTunnelOptions. */ - class GetTunnelOptions implements IGetTunnelOptions { + /** Represents a RabbitStreamsWriteArgs. */ + class RabbitStreamsWriteArgs implements IRabbitStreamsWriteArgs { /** - * Constructs a new GetTunnelOptions. + * Constructs a new RabbitStreamsWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IGetTunnelOptions); + constructor(properties?: protos.args.IRabbitStreamsWriteArgs); - /** GetTunnelOptions id. */ - public id: string; + /** RabbitStreamsWriteArgs stream. */ + public stream: string; + + /** RabbitStreamsWriteArgs declareStream. */ + public declareStream: boolean; + + /** RabbitStreamsWriteArgs declareStreamSize. */ + public declareStreamSize: string; /** - * Creates a new GetTunnelOptions instance using the specified properties. + * Creates a new RabbitStreamsWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns GetTunnelOptions instance + * @returns RabbitStreamsWriteArgs instance */ - public static create(properties?: protos.opts.IGetTunnelOptions): protos.opts.GetTunnelOptions; + public static create(properties?: protos.args.IRabbitStreamsWriteArgs): protos.args.RabbitStreamsWriteArgs; /** - * Encodes the specified GetTunnelOptions message. Does not implicitly {@link protos.opts.GetTunnelOptions.verify|verify} messages. - * @param message GetTunnelOptions message or plain object to encode + * Encodes the specified RabbitStreamsWriteArgs message. Does not implicitly {@link protos.args.RabbitStreamsWriteArgs.verify|verify} messages. + * @param message RabbitStreamsWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IGetTunnelOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IRabbitStreamsWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTunnelOptions message, length delimited. Does not implicitly {@link protos.opts.GetTunnelOptions.verify|verify} messages. - * @param message GetTunnelOptions message or plain object to encode + * Encodes the specified RabbitStreamsWriteArgs message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsWriteArgs.verify|verify} messages. + * @param message RabbitStreamsWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IGetTunnelOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IRabbitStreamsWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTunnelOptions message from the specified reader or buffer. + * Decodes a RabbitStreamsWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTunnelOptions + * @returns RabbitStreamsWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.GetTunnelOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitStreamsWriteArgs; /** - * Decodes a GetTunnelOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitStreamsWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTunnelOptions + * @returns RabbitStreamsWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.GetTunnelOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitStreamsWriteArgs; /** - * Verifies a GetTunnelOptions message. + * Verifies a RabbitStreamsWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetTunnelOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitStreamsWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTunnelOptions + * @returns RabbitStreamsWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.GetTunnelOptions; + public static fromObject(object: { [k: string]: any }): protos.args.RabbitStreamsWriteArgs; /** - * Creates a plain object from a GetTunnelOptions message. Also converts values to other types if specified. - * @param message GetTunnelOptions + * Creates a plain object from a RabbitStreamsWriteArgs message. Also converts values to other types if specified. + * @param message RabbitStreamsWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.GetTunnelOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.RabbitStreamsWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTunnelOptions to JSON. + * Converts this RabbitStreamsWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateTunnelOptions. */ - interface ICreateTunnelOptions { - - /** CreateTunnelOptions connectionId */ - connectionId?: (string|null); - - /** CreateTunnelOptions tunnelToken */ - tunnelToken?: (string|null); - - /** CreateTunnelOptions name */ - name?: (string|null); - - /** CreateTunnelOptions notes */ - notes?: (string|null); - - /** CreateTunnelOptions _tunnelAddress */ - _tunnelAddress?: (string|null); - - /** CreateTunnelOptions _tunnelTimeoutSeconds */ - _tunnelTimeoutSeconds?: (number|null); - - /** CreateTunnelOptions _tunnelInsecure */ - _tunnelInsecure?: (boolean|null); - - /** CreateTunnelOptions kafka */ - kafka?: (protos.args.IKafkaWriteArgs|null); - - /** CreateTunnelOptions activemq */ - activemq?: (protos.args.IActiveMQWriteArgs|null); - - /** CreateTunnelOptions awsSqs */ - awsSqs?: (protos.args.IAWSSQSWriteArgs|null); - - /** CreateTunnelOptions awsSns */ - awsSns?: (protos.args.IAWSSNSWriteArgs|null); - - /** CreateTunnelOptions nats */ - nats?: (protos.args.INatsWriteArgs|null); - - /** CreateTunnelOptions natsStreaming */ - natsStreaming?: (protos.args.INatsStreamingWriteArgs|null); - - /** CreateTunnelOptions nsq */ - nsq?: (protos.args.INSQWriteArgs|null); - - /** CreateTunnelOptions rabbit */ - rabbit?: (protos.args.IRabbitWriteArgs|null); - - /** CreateTunnelOptions mqtt */ - mqtt?: (protos.args.IMQTTWriteArgs|null); - - /** CreateTunnelOptions azureServiceBus */ - azureServiceBus?: (protos.args.IAzureServiceBusWriteArgs|null); - - /** CreateTunnelOptions azureEventHub */ - azureEventHub?: (protos.args.IAzureEventHubWriteArgs|null); - - /** CreateTunnelOptions gcpPubsub */ - gcpPubsub?: (protos.args.IGCPPubSubWriteArgs|null); - - /** CreateTunnelOptions kubemqQueue */ - kubemqQueue?: (protos.args.IKubeMQQueueWriteArgs|null); - - /** CreateTunnelOptions redisPubsub */ - redisPubsub?: (protos.args.IRedisPubSubWriteArgs|null); - - /** CreateTunnelOptions redisStreams */ - redisStreams?: (protos.args.IRedisStreamsWriteArgs|null); - - /** CreateTunnelOptions pulsar */ - pulsar?: (protos.args.IPulsarWriteArgs|null); + /** Properties of a RedisPubSubConn. */ + interface IRedisPubSubConn { - /** CreateTunnelOptions rabbitStreams */ - rabbitStreams?: (protos.args.IRabbitStreamsWriteArgs|null); + /** RedisPubSubConn address */ + address?: (string|null); - /** CreateTunnelOptions natsJetstream */ - natsJetstream?: (protos.args.INatsJetstreamWriteArgs|null); + /** RedisPubSubConn username */ + username?: (string|null); - /** CreateTunnelOptions awsKinesis */ - awsKinesis?: (protos.args.IAWSKinesisWriteArgs|null); + /** RedisPubSubConn password */ + password?: (string|null); - /** CreateTunnelOptions memphis */ - memphis?: (protos.args.IMemphisWriteArgs|null); + /** RedisPubSubConn database */ + database?: (number|null); } - /** Represents a CreateTunnelOptions. */ - class CreateTunnelOptions implements ICreateTunnelOptions { + /** Represents a RedisPubSubConn. */ + class RedisPubSubConn implements IRedisPubSubConn { /** - * Constructs a new CreateTunnelOptions. + * Constructs a new RedisPubSubConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.ICreateTunnelOptions); - - /** CreateTunnelOptions connectionId. */ - public connectionId: string; - - /** CreateTunnelOptions tunnelToken. */ - public tunnelToken: string; - - /** CreateTunnelOptions name. */ - public name: string; - - /** CreateTunnelOptions notes. */ - public notes: string; - - /** CreateTunnelOptions _tunnelAddress. */ - public _tunnelAddress: string; - - /** CreateTunnelOptions _tunnelTimeoutSeconds. */ - public _tunnelTimeoutSeconds: number; - - /** CreateTunnelOptions _tunnelInsecure. */ - public _tunnelInsecure: boolean; - - /** CreateTunnelOptions kafka. */ - public kafka?: (protos.args.IKafkaWriteArgs|null); - - /** CreateTunnelOptions activemq. */ - public activemq?: (protos.args.IActiveMQWriteArgs|null); - - /** CreateTunnelOptions awsSqs. */ - public awsSqs?: (protos.args.IAWSSQSWriteArgs|null); - - /** CreateTunnelOptions awsSns. */ - public awsSns?: (protos.args.IAWSSNSWriteArgs|null); - - /** CreateTunnelOptions nats. */ - public nats?: (protos.args.INatsWriteArgs|null); - - /** CreateTunnelOptions natsStreaming. */ - public natsStreaming?: (protos.args.INatsStreamingWriteArgs|null); - - /** CreateTunnelOptions nsq. */ - public nsq?: (protos.args.INSQWriteArgs|null); - - /** CreateTunnelOptions rabbit. */ - public rabbit?: (protos.args.IRabbitWriteArgs|null); - - /** CreateTunnelOptions mqtt. */ - public mqtt?: (protos.args.IMQTTWriteArgs|null); - - /** CreateTunnelOptions azureServiceBus. */ - public azureServiceBus?: (protos.args.IAzureServiceBusWriteArgs|null); - - /** CreateTunnelOptions azureEventHub. */ - public azureEventHub?: (protos.args.IAzureEventHubWriteArgs|null); - - /** CreateTunnelOptions gcpPubsub. */ - public gcpPubsub?: (protos.args.IGCPPubSubWriteArgs|null); - - /** CreateTunnelOptions kubemqQueue. */ - public kubemqQueue?: (protos.args.IKubeMQQueueWriteArgs|null); - - /** CreateTunnelOptions redisPubsub. */ - public redisPubsub?: (protos.args.IRedisPubSubWriteArgs|null); - - /** CreateTunnelOptions redisStreams. */ - public redisStreams?: (protos.args.IRedisStreamsWriteArgs|null); - - /** CreateTunnelOptions pulsar. */ - public pulsar?: (protos.args.IPulsarWriteArgs|null); + constructor(properties?: protos.args.IRedisPubSubConn); - /** CreateTunnelOptions rabbitStreams. */ - public rabbitStreams?: (protos.args.IRabbitStreamsWriteArgs|null); + /** RedisPubSubConn address. */ + public address: string; - /** CreateTunnelOptions natsJetstream. */ - public natsJetstream?: (protos.args.INatsJetstreamWriteArgs|null); + /** RedisPubSubConn username. */ + public username: string; - /** CreateTunnelOptions awsKinesis. */ - public awsKinesis?: (protos.args.IAWSKinesisWriteArgs|null); + /** RedisPubSubConn password. */ + public password: string; - /** CreateTunnelOptions memphis. */ - public memphis?: (protos.args.IMemphisWriteArgs|null); + /** RedisPubSubConn database. */ + public database: number; /** - * Creates a new CreateTunnelOptions instance using the specified properties. + * Creates a new RedisPubSubConn instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTunnelOptions instance + * @returns RedisPubSubConn instance */ - public static create(properties?: protos.opts.ICreateTunnelOptions): protos.opts.CreateTunnelOptions; + public static create(properties?: protos.args.IRedisPubSubConn): protos.args.RedisPubSubConn; /** - * Encodes the specified CreateTunnelOptions message. Does not implicitly {@link protos.opts.CreateTunnelOptions.verify|verify} messages. - * @param message CreateTunnelOptions message or plain object to encode + * Encodes the specified RedisPubSubConn message. Does not implicitly {@link protos.args.RedisPubSubConn.verify|verify} messages. + * @param message RedisPubSubConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.ICreateTunnelOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IRedisPubSubConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTunnelOptions message, length delimited. Does not implicitly {@link protos.opts.CreateTunnelOptions.verify|verify} messages. - * @param message CreateTunnelOptions message or plain object to encode + * Encodes the specified RedisPubSubConn message, length delimited. Does not implicitly {@link protos.args.RedisPubSubConn.verify|verify} messages. + * @param message RedisPubSubConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.ICreateTunnelOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IRedisPubSubConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTunnelOptions message from the specified reader or buffer. + * Decodes a RedisPubSubConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTunnelOptions + * @returns RedisPubSubConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.CreateTunnelOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RedisPubSubConn; /** - * Decodes a CreateTunnelOptions message from the specified reader or buffer, length delimited. + * Decodes a RedisPubSubConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTunnelOptions + * @returns RedisPubSubConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.CreateTunnelOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RedisPubSubConn; /** - * Verifies a CreateTunnelOptions message. + * Verifies a RedisPubSubConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateTunnelOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RedisPubSubConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTunnelOptions + * @returns RedisPubSubConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.CreateTunnelOptions; + public static fromObject(object: { [k: string]: any }): protos.args.RedisPubSubConn; /** - * Creates a plain object from a CreateTunnelOptions message. Also converts values to other types if specified. - * @param message CreateTunnelOptions + * Creates a plain object from a RedisPubSubConn message. Also converts values to other types if specified. + * @param message RedisPubSubConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.CreateTunnelOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.RedisPubSubConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTunnelOptions to JSON. + * Converts this RedisPubSubConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteTunnelOptions. */ - interface IDeleteTunnelOptions { + /** Properties of a RedisPubSubReadArgs. */ + interface IRedisPubSubReadArgs { - /** DeleteTunnelOptions id */ - id?: (string|null); + /** RedisPubSubReadArgs channels */ + channels?: (string[]|null); } - /** Represents a DeleteTunnelOptions. */ - class DeleteTunnelOptions implements IDeleteTunnelOptions { + /** Represents a RedisPubSubReadArgs. */ + class RedisPubSubReadArgs implements IRedisPubSubReadArgs { /** - * Constructs a new DeleteTunnelOptions. + * Constructs a new RedisPubSubReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IDeleteTunnelOptions); + constructor(properties?: protos.args.IRedisPubSubReadArgs); - /** DeleteTunnelOptions id. */ - public id: string; + /** RedisPubSubReadArgs channels. */ + public channels: string[]; /** - * Creates a new DeleteTunnelOptions instance using the specified properties. + * Creates a new RedisPubSubReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTunnelOptions instance + * @returns RedisPubSubReadArgs instance */ - public static create(properties?: protos.opts.IDeleteTunnelOptions): protos.opts.DeleteTunnelOptions; + public static create(properties?: protos.args.IRedisPubSubReadArgs): protos.args.RedisPubSubReadArgs; /** - * Encodes the specified DeleteTunnelOptions message. Does not implicitly {@link protos.opts.DeleteTunnelOptions.verify|verify} messages. - * @param message DeleteTunnelOptions message or plain object to encode + * Encodes the specified RedisPubSubReadArgs message. Does not implicitly {@link protos.args.RedisPubSubReadArgs.verify|verify} messages. + * @param message RedisPubSubReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IDeleteTunnelOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IRedisPubSubReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTunnelOptions message, length delimited. Does not implicitly {@link protos.opts.DeleteTunnelOptions.verify|verify} messages. - * @param message DeleteTunnelOptions message or plain object to encode + * Encodes the specified RedisPubSubReadArgs message, length delimited. Does not implicitly {@link protos.args.RedisPubSubReadArgs.verify|verify} messages. + * @param message RedisPubSubReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IDeleteTunnelOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IRedisPubSubReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTunnelOptions message from the specified reader or buffer. + * Decodes a RedisPubSubReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTunnelOptions + * @returns RedisPubSubReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.DeleteTunnelOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RedisPubSubReadArgs; /** - * Decodes a DeleteTunnelOptions message from the specified reader or buffer, length delimited. + * Decodes a RedisPubSubReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTunnelOptions + * @returns RedisPubSubReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.DeleteTunnelOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RedisPubSubReadArgs; /** - * Verifies a DeleteTunnelOptions message. + * Verifies a RedisPubSubReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteTunnelOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RedisPubSubReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTunnelOptions + * @returns RedisPubSubReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.DeleteTunnelOptions; + public static fromObject(object: { [k: string]: any }): protos.args.RedisPubSubReadArgs; /** - * Creates a plain object from a DeleteTunnelOptions message. Also converts values to other types if specified. - * @param message DeleteTunnelOptions + * Creates a plain object from a RedisPubSubReadArgs message. Also converts values to other types if specified. + * @param message RedisPubSubReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.DeleteTunnelOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.RedisPubSubReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTunnelOptions to JSON. + * Converts this RedisPubSubReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StopTunnelOptions. */ - interface IStopTunnelOptions { + /** Properties of a RedisPubSubWriteArgs. */ + interface IRedisPubSubWriteArgs { - /** StopTunnelOptions id */ - id?: (string|null); + /** RedisPubSubWriteArgs channels */ + channels?: (string[]|null); } - /** Represents a StopTunnelOptions. */ - class StopTunnelOptions implements IStopTunnelOptions { + /** Represents a RedisPubSubWriteArgs. */ + class RedisPubSubWriteArgs implements IRedisPubSubWriteArgs { /** - * Constructs a new StopTunnelOptions. + * Constructs a new RedisPubSubWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IStopTunnelOptions); + constructor(properties?: protos.args.IRedisPubSubWriteArgs); - /** StopTunnelOptions id. */ - public id: string; + /** RedisPubSubWriteArgs channels. */ + public channels: string[]; /** - * Creates a new StopTunnelOptions instance using the specified properties. + * Creates a new RedisPubSubWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns StopTunnelOptions instance + * @returns RedisPubSubWriteArgs instance */ - public static create(properties?: protos.opts.IStopTunnelOptions): protos.opts.StopTunnelOptions; + public static create(properties?: protos.args.IRedisPubSubWriteArgs): protos.args.RedisPubSubWriteArgs; /** - * Encodes the specified StopTunnelOptions message. Does not implicitly {@link protos.opts.StopTunnelOptions.verify|verify} messages. - * @param message StopTunnelOptions message or plain object to encode + * Encodes the specified RedisPubSubWriteArgs message. Does not implicitly {@link protos.args.RedisPubSubWriteArgs.verify|verify} messages. + * @param message RedisPubSubWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IStopTunnelOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IRedisPubSubWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopTunnelOptions message, length delimited. Does not implicitly {@link protos.opts.StopTunnelOptions.verify|verify} messages. - * @param message StopTunnelOptions message or plain object to encode + * Encodes the specified RedisPubSubWriteArgs message, length delimited. Does not implicitly {@link protos.args.RedisPubSubWriteArgs.verify|verify} messages. + * @param message RedisPubSubWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IStopTunnelOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IRedisPubSubWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopTunnelOptions message from the specified reader or buffer. + * Decodes a RedisPubSubWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopTunnelOptions + * @returns RedisPubSubWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.StopTunnelOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RedisPubSubWriteArgs; /** - * Decodes a StopTunnelOptions message from the specified reader or buffer, length delimited. + * Decodes a RedisPubSubWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopTunnelOptions + * @returns RedisPubSubWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.StopTunnelOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RedisPubSubWriteArgs; /** - * Verifies a StopTunnelOptions message. + * Verifies a RedisPubSubWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StopTunnelOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RedisPubSubWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopTunnelOptions + * @returns RedisPubSubWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.StopTunnelOptions; + public static fromObject(object: { [k: string]: any }): protos.args.RedisPubSubWriteArgs; /** - * Creates a plain object from a StopTunnelOptions message. Also converts values to other types if specified. - * @param message StopTunnelOptions + * Creates a plain object from a RedisPubSubWriteArgs message. Also converts values to other types if specified. + * @param message RedisPubSubWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.StopTunnelOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.RedisPubSubWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopTunnelOptions to JSON. + * Converts this RedisPubSubWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResumeTunnelOptions. */ - interface IResumeTunnelOptions { + /** OffsetStart enum. */ + enum OffsetStart { + LATEST = 0, + OLDEST = 1 + } + + /** Properties of a RedisStreamsConn. */ + interface IRedisStreamsConn { - /** ResumeTunnelOptions id */ - id?: (string|null); + /** RedisStreamsConn address */ + address?: (string|null); + + /** RedisStreamsConn username */ + username?: (string|null); + + /** RedisStreamsConn password */ + password?: (string|null); + + /** RedisStreamsConn database */ + database?: (number|null); } - /** Represents a ResumeTunnelOptions. */ - class ResumeTunnelOptions implements IResumeTunnelOptions { + /** Represents a RedisStreamsConn. */ + class RedisStreamsConn implements IRedisStreamsConn { /** - * Constructs a new ResumeTunnelOptions. + * Constructs a new RedisStreamsConn. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IResumeTunnelOptions); + constructor(properties?: protos.args.IRedisStreamsConn); - /** ResumeTunnelOptions id. */ - public id: string; + /** RedisStreamsConn address. */ + public address: string; + + /** RedisStreamsConn username. */ + public username: string; + + /** RedisStreamsConn password. */ + public password: string; + + /** RedisStreamsConn database. */ + public database: number; /** - * Creates a new ResumeTunnelOptions instance using the specified properties. + * Creates a new RedisStreamsConn instance using the specified properties. * @param [properties] Properties to set - * @returns ResumeTunnelOptions instance + * @returns RedisStreamsConn instance */ - public static create(properties?: protos.opts.IResumeTunnelOptions): protos.opts.ResumeTunnelOptions; + public static create(properties?: protos.args.IRedisStreamsConn): protos.args.RedisStreamsConn; /** - * Encodes the specified ResumeTunnelOptions message. Does not implicitly {@link protos.opts.ResumeTunnelOptions.verify|verify} messages. - * @param message ResumeTunnelOptions message or plain object to encode + * Encodes the specified RedisStreamsConn message. Does not implicitly {@link protos.args.RedisStreamsConn.verify|verify} messages. + * @param message RedisStreamsConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IResumeTunnelOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IRedisStreamsConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResumeTunnelOptions message, length delimited. Does not implicitly {@link protos.opts.ResumeTunnelOptions.verify|verify} messages. - * @param message ResumeTunnelOptions message or plain object to encode + * Encodes the specified RedisStreamsConn message, length delimited. Does not implicitly {@link protos.args.RedisStreamsConn.verify|verify} messages. + * @param message RedisStreamsConn message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IResumeTunnelOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IRedisStreamsConn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResumeTunnelOptions message from the specified reader or buffer. + * Decodes a RedisStreamsConn message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResumeTunnelOptions + * @returns RedisStreamsConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ResumeTunnelOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RedisStreamsConn; /** - * Decodes a ResumeTunnelOptions message from the specified reader or buffer, length delimited. + * Decodes a RedisStreamsConn message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResumeTunnelOptions + * @returns RedisStreamsConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ResumeTunnelOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RedisStreamsConn; /** - * Verifies a ResumeTunnelOptions message. + * Verifies a RedisStreamsConn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResumeTunnelOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RedisStreamsConn message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResumeTunnelOptions + * @returns RedisStreamsConn */ - public static fromObject(object: { [k: string]: any }): protos.opts.ResumeTunnelOptions; + public static fromObject(object: { [k: string]: any }): protos.args.RedisStreamsConn; /** - * Creates a plain object from a ResumeTunnelOptions message. Also converts values to other types if specified. - * @param message ResumeTunnelOptions + * Creates a plain object from a RedisStreamsConn message. Also converts values to other types if specified. + * @param message RedisStreamsConn * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ResumeTunnelOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.RedisStreamsConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResumeTunnelOptions to JSON. + * Converts this RedisStreamsConn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** ConvertOption enum. */ - enum ConvertOption { - CONVERT_OPTION_UNSET = 0, - CONVERT_OPTION_BASE64 = 1, - CONVERT_OPTION_GZIP = 2 - } - - /** Properties of a ReadCLIOptions. */ - interface IReadCLIOptions { + /** Properties of a CreateConsumerConfig. */ + interface ICreateConsumerConfig { - /** ReadCLIOptions verboseOutput */ - verboseOutput?: (boolean|null); + /** CreateConsumerConfig createStreams */ + createStreams?: (boolean|null); - /** ReadCLIOptions pretty */ - pretty?: (boolean|null); + /** CreateConsumerConfig recreateConsumerGroup */ + recreateConsumerGroup?: (boolean|null); - /** ReadCLIOptions json */ - json?: (boolean|null); + /** CreateConsumerConfig offsetStart */ + offsetStart?: (protos.args.OffsetStart|null); } - /** Represents a ReadCLIOptions. */ - class ReadCLIOptions implements IReadCLIOptions { + /** Represents a CreateConsumerConfig. */ + class CreateConsumerConfig implements ICreateConsumerConfig { /** - * Constructs a new ReadCLIOptions. + * Constructs a new CreateConsumerConfig. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadCLIOptions); + constructor(properties?: protos.args.ICreateConsumerConfig); - /** ReadCLIOptions verboseOutput. */ - public verboseOutput: boolean; + /** CreateConsumerConfig createStreams. */ + public createStreams: boolean; - /** ReadCLIOptions pretty. */ - public pretty: boolean; + /** CreateConsumerConfig recreateConsumerGroup. */ + public recreateConsumerGroup: boolean; - /** ReadCLIOptions json. */ - public json: boolean; + /** CreateConsumerConfig offsetStart. */ + public offsetStart: protos.args.OffsetStart; /** - * Creates a new ReadCLIOptions instance using the specified properties. + * Creates a new CreateConsumerConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ReadCLIOptions instance + * @returns CreateConsumerConfig instance */ - public static create(properties?: protos.opts.IReadCLIOptions): protos.opts.ReadCLIOptions; + public static create(properties?: protos.args.ICreateConsumerConfig): protos.args.CreateConsumerConfig; /** - * Encodes the specified ReadCLIOptions message. Does not implicitly {@link protos.opts.ReadCLIOptions.verify|verify} messages. - * @param message ReadCLIOptions message or plain object to encode + * Encodes the specified CreateConsumerConfig message. Does not implicitly {@link protos.args.CreateConsumerConfig.verify|verify} messages. + * @param message CreateConsumerConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.ICreateConsumerConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadCLIOptions message, length delimited. Does not implicitly {@link protos.opts.ReadCLIOptions.verify|verify} messages. - * @param message ReadCLIOptions message or plain object to encode + * Encodes the specified CreateConsumerConfig message, length delimited. Does not implicitly {@link protos.args.CreateConsumerConfig.verify|verify} messages. + * @param message CreateConsumerConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.ICreateConsumerConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadCLIOptions message from the specified reader or buffer. + * Decodes a CreateConsumerConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadCLIOptions + * @returns CreateConsumerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadCLIOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.CreateConsumerConfig; /** - * Decodes a ReadCLIOptions message from the specified reader or buffer, length delimited. + * Decodes a CreateConsumerConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadCLIOptions + * @returns CreateConsumerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadCLIOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.CreateConsumerConfig; /** - * Verifies a ReadCLIOptions message. + * Verifies a CreateConsumerConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadCLIOptions message from a plain object. Also converts values to their respective internal types. + * Creates a CreateConsumerConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadCLIOptions + * @returns CreateConsumerConfig */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadCLIOptions; + public static fromObject(object: { [k: string]: any }): protos.args.CreateConsumerConfig; /** - * Creates a plain object from a ReadCLIOptions message. Also converts values to other types if specified. - * @param message ReadCLIOptions + * Creates a plain object from a CreateConsumerConfig message. Also converts values to other types if specified. + * @param message CreateConsumerConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadCLIOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.CreateConsumerConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadCLIOptions to JSON. + * Converts this CreateConsumerConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadSampleOptions. */ - interface IReadSampleOptions { + /** Properties of a RedisStreamsReadArgs. */ + interface IRedisStreamsReadArgs { - /** ReadSampleOptions sampleRate */ - sampleRate?: (number|null); + /** RedisStreamsReadArgs streams */ + streams?: (string[]|null); - /** ReadSampleOptions sampleIntervalSeconds */ - sampleIntervalSeconds?: (number|null); + /** RedisStreamsReadArgs consumerGroup */ + consumerGroup?: (string|null); + + /** RedisStreamsReadArgs consumerName */ + consumerName?: (string|null); + + /** RedisStreamsReadArgs count */ + count?: (number|null); + + /** RedisStreamsReadArgs createConsumerConfig */ + createConsumerConfig?: (protos.args.ICreateConsumerConfig|null); } - /** Represents a ReadSampleOptions. */ - class ReadSampleOptions implements IReadSampleOptions { + /** Represents a RedisStreamsReadArgs. */ + class RedisStreamsReadArgs implements IRedisStreamsReadArgs { /** - * Constructs a new ReadSampleOptions. + * Constructs a new RedisStreamsReadArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadSampleOptions); + constructor(properties?: protos.args.IRedisStreamsReadArgs); - /** ReadSampleOptions sampleRate. */ - public sampleRate: number; + /** RedisStreamsReadArgs streams. */ + public streams: string[]; - /** ReadSampleOptions sampleIntervalSeconds. */ - public sampleIntervalSeconds: number; + /** RedisStreamsReadArgs consumerGroup. */ + public consumerGroup: string; + + /** RedisStreamsReadArgs consumerName. */ + public consumerName: string; + + /** RedisStreamsReadArgs count. */ + public count: number; + + /** RedisStreamsReadArgs createConsumerConfig. */ + public createConsumerConfig?: (protos.args.ICreateConsumerConfig|null); /** - * Creates a new ReadSampleOptions instance using the specified properties. + * Creates a new RedisStreamsReadArgs instance using the specified properties. * @param [properties] Properties to set - * @returns ReadSampleOptions instance + * @returns RedisStreamsReadArgs instance */ - public static create(properties?: protos.opts.IReadSampleOptions): protos.opts.ReadSampleOptions; + public static create(properties?: protos.args.IRedisStreamsReadArgs): protos.args.RedisStreamsReadArgs; /** - * Encodes the specified ReadSampleOptions message. Does not implicitly {@link protos.opts.ReadSampleOptions.verify|verify} messages. - * @param message ReadSampleOptions message or plain object to encode + * Encodes the specified RedisStreamsReadArgs message. Does not implicitly {@link protos.args.RedisStreamsReadArgs.verify|verify} messages. + * @param message RedisStreamsReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadSampleOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IRedisStreamsReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadSampleOptions message, length delimited. Does not implicitly {@link protos.opts.ReadSampleOptions.verify|verify} messages. - * @param message ReadSampleOptions message or plain object to encode + * Encodes the specified RedisStreamsReadArgs message, length delimited. Does not implicitly {@link protos.args.RedisStreamsReadArgs.verify|verify} messages. + * @param message RedisStreamsReadArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadSampleOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IRedisStreamsReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadSampleOptions message from the specified reader or buffer. + * Decodes a RedisStreamsReadArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadSampleOptions + * @returns RedisStreamsReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadSampleOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RedisStreamsReadArgs; /** - * Decodes a ReadSampleOptions message from the specified reader or buffer, length delimited. + * Decodes a RedisStreamsReadArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadSampleOptions + * @returns RedisStreamsReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadSampleOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RedisStreamsReadArgs; /** - * Verifies a ReadSampleOptions message. + * Verifies a RedisStreamsReadArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadSampleOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RedisStreamsReadArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadSampleOptions + * @returns RedisStreamsReadArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadSampleOptions; + public static fromObject(object: { [k: string]: any }): protos.args.RedisStreamsReadArgs; /** - * Creates a plain object from a ReadSampleOptions message. Also converts values to other types if specified. - * @param message ReadSampleOptions + * Creates a plain object from a RedisStreamsReadArgs message. Also converts values to other types if specified. + * @param message RedisStreamsReadArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadSampleOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.RedisStreamsReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadSampleOptions to JSON. + * Converts this RedisStreamsReadArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadFilterOptions. */ - interface IReadFilterOptions { + /** Properties of a RedisStreamsWriteArgs. */ + interface IRedisStreamsWriteArgs { - /** ReadFilterOptions query */ - query?: (string|null); + /** RedisStreamsWriteArgs writeId */ + writeId?: (string|null); + + /** RedisStreamsWriteArgs streams */ + streams?: (string[]|null); + + /** RedisStreamsWriteArgs key */ + key?: (string|null); } - /** Represents a ReadFilterOptions. */ - class ReadFilterOptions implements IReadFilterOptions { + /** Represents a RedisStreamsWriteArgs. */ + class RedisStreamsWriteArgs implements IRedisStreamsWriteArgs { /** - * Constructs a new ReadFilterOptions. + * Constructs a new RedisStreamsWriteArgs. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadFilterOptions); + constructor(properties?: protos.args.IRedisStreamsWriteArgs); - /** ReadFilterOptions query. */ - public query: string; + /** RedisStreamsWriteArgs writeId. */ + public writeId: string; + + /** RedisStreamsWriteArgs streams. */ + public streams: string[]; + + /** RedisStreamsWriteArgs key. */ + public key: string; /** - * Creates a new ReadFilterOptions instance using the specified properties. + * Creates a new RedisStreamsWriteArgs instance using the specified properties. * @param [properties] Properties to set - * @returns ReadFilterOptions instance + * @returns RedisStreamsWriteArgs instance */ - public static create(properties?: protos.opts.IReadFilterOptions): protos.opts.ReadFilterOptions; + public static create(properties?: protos.args.IRedisStreamsWriteArgs): protos.args.RedisStreamsWriteArgs; /** - * Encodes the specified ReadFilterOptions message. Does not implicitly {@link protos.opts.ReadFilterOptions.verify|verify} messages. - * @param message ReadFilterOptions message or plain object to encode + * Encodes the specified RedisStreamsWriteArgs message. Does not implicitly {@link protos.args.RedisStreamsWriteArgs.verify|verify} messages. + * @param message RedisStreamsWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadFilterOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.args.IRedisStreamsWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadFilterOptions message, length delimited. Does not implicitly {@link protos.opts.ReadFilterOptions.verify|verify} messages. - * @param message ReadFilterOptions message or plain object to encode + * Encodes the specified RedisStreamsWriteArgs message, length delimited. Does not implicitly {@link protos.args.RedisStreamsWriteArgs.verify|verify} messages. + * @param message RedisStreamsWriteArgs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadFilterOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.args.IRedisStreamsWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadFilterOptions message from the specified reader or buffer. + * Decodes a RedisStreamsWriteArgs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadFilterOptions + * @returns RedisStreamsWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadFilterOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RedisStreamsWriteArgs; /** - * Decodes a ReadFilterOptions message from the specified reader or buffer, length delimited. + * Decodes a RedisStreamsWriteArgs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadFilterOptions + * @returns RedisStreamsWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadFilterOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RedisStreamsWriteArgs; /** - * Verifies a ReadFilterOptions message. + * Verifies a RedisStreamsWriteArgs message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadFilterOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RedisStreamsWriteArgs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadFilterOptions + * @returns RedisStreamsWriteArgs */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadFilterOptions; + public static fromObject(object: { [k: string]: any }): protos.args.RedisStreamsWriteArgs; /** - * Creates a plain object from a ReadFilterOptions message. Also converts values to other types if specified. - * @param message ReadFilterOptions + * Creates a plain object from a RedisStreamsWriteArgs message. Also converts values to other types if specified. + * @param message RedisStreamsWriteArgs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadFilterOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.args.RedisStreamsWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadFilterOptions to JSON. + * Converts this RedisStreamsWriteArgs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of a ReadOptions. */ - interface IReadOptions { - - /** ReadOptions name */ - name?: (string|null); + /** Namespace common. */ + namespace common { - /** ReadOptions connectionId */ - connectionId?: (string|null); + /** Properties of a Foreman. */ + interface IForeman { - /** ReadOptions continuous */ - continuous?: (boolean|null); - - /** ReadOptions sampleOptions */ - sampleOptions?: (protos.opts.IReadSampleOptions|null); - - /** ReadOptions decodeOptions */ - decodeOptions?: (protos.encoding.IDecodeOptions|null); - - /** ReadOptions convertOutput */ - convertOutput?: (protos.opts.ConvertOption|null); - - /** ReadOptions filter */ - filter?: (protos.opts.IReadFilterOptions|null); - - /** ReadOptions inferSchemaOptions */ - inferSchemaOptions?: (protos.opts.IInferSchemaOptions|null); - - /** ReadOptions _id */ - _id?: (string|null); - - /** ReadOptions _active */ - _active?: (boolean|null); - - /** ReadOptions _cliOptions */ - _cliOptions?: (protos.opts.IReadCLIOptions|null); - - /** ReadOptions kafka */ - kafka?: (protos.opts.IReadGroupKafkaOptions|null); - - /** ReadOptions activemq */ - activemq?: (protos.opts.IReadGroupActiveMQOptions|null); - - /** ReadOptions awsSqs */ - awsSqs?: (protos.opts.IReadGroupAWSSQSOptions|null); - - /** ReadOptions mongo */ - mongo?: (protos.opts.IReadGroupMongoOptions|null); - - /** ReadOptions nats */ - nats?: (protos.opts.IReadGroupNatsOptions|null); - - /** ReadOptions natsStreaming */ - natsStreaming?: (protos.opts.IReadGroupNatsStreamingOptions|null); - - /** ReadOptions nsq */ - nsq?: (protos.opts.IReadGroupNSQOptions|null); - - /** ReadOptions pulsar */ - pulsar?: (protos.opts.IReadGroupPulsarOptions|null); - - /** ReadOptions rabbit */ - rabbit?: (protos.opts.IReadGroupRabbitOptions|null); - - /** ReadOptions rabbitStreams */ - rabbitStreams?: (protos.opts.IReadGroupRabbitStreamsOptions|null); - - /** ReadOptions mqtt */ - mqtt?: (protos.opts.IReadGroupMQTTOptions|null); - - /** ReadOptions azureServiceBus */ - azureServiceBus?: (protos.opts.IReadGroupAzureServiceBusOptions|null); - - /** ReadOptions azureEventHub */ - azureEventHub?: (protos.opts.IReadGroupAzureEventHubOptions|null); - - /** ReadOptions gcpPubsub */ - gcpPubsub?: (protos.opts.IReadGroupGCPPubSubOptions|null); - - /** ReadOptions kubemqQueue */ - kubemqQueue?: (protos.opts.IReadGroupKubeMQQueueOptions|null); - - /** ReadOptions redisPubsub */ - redisPubsub?: (protos.opts.IReadGroupRedisPubSubOptions|null); - - /** ReadOptions redisStreams */ - redisStreams?: (protos.opts.IReadGroupRedisStreamsOptions|null); - - /** ReadOptions postgres */ - postgres?: (protos.opts.IReadGroupPostgresOptions|null); - - /** ReadOptions natsJetstream */ - natsJetstream?: (protos.opts.IReadGroupNatsJetstreamOptions|null); + /** Foreman authToken */ + authToken?: (string|null); - /** ReadOptions awsKinesis */ - awsKinesis?: (protos.opts.IReadGroupAWSKinesisOptions|null); + /** Foreman plumberClusterId */ + plumberClusterId?: (string|null); - /** ReadOptions memphis */ - memphis?: (protos.opts.IReadGroupMemphisOptions|null); + /** Foreman teamId */ + teamId?: (string|null); } - /** Represents a ReadOptions. */ - class ReadOptions implements IReadOptions { + /** Represents a Foreman. */ + class Foreman implements IForeman { /** - * Constructs a new ReadOptions. + * Constructs a new Foreman. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadOptions); - - /** ReadOptions name. */ - public name: string; - - /** ReadOptions connectionId. */ - public connectionId: string; - - /** ReadOptions continuous. */ - public continuous: boolean; - - /** ReadOptions sampleOptions. */ - public sampleOptions?: (protos.opts.IReadSampleOptions|null); - - /** ReadOptions decodeOptions. */ - public decodeOptions?: (protos.encoding.IDecodeOptions|null); - - /** ReadOptions convertOutput. */ - public convertOutput: protos.opts.ConvertOption; - - /** ReadOptions filter. */ - public filter?: (protos.opts.IReadFilterOptions|null); - - /** ReadOptions inferSchemaOptions. */ - public inferSchemaOptions?: (protos.opts.IInferSchemaOptions|null); - - /** ReadOptions _id. */ - public _id: string; - - /** ReadOptions _active. */ - public _active: boolean; - - /** ReadOptions _cliOptions. */ - public _cliOptions?: (protos.opts.IReadCLIOptions|null); - - /** ReadOptions kafka. */ - public kafka?: (protos.opts.IReadGroupKafkaOptions|null); - - /** ReadOptions activemq. */ - public activemq?: (protos.opts.IReadGroupActiveMQOptions|null); - - /** ReadOptions awsSqs. */ - public awsSqs?: (protos.opts.IReadGroupAWSSQSOptions|null); - - /** ReadOptions mongo. */ - public mongo?: (protos.opts.IReadGroupMongoOptions|null); - - /** ReadOptions nats. */ - public nats?: (protos.opts.IReadGroupNatsOptions|null); - - /** ReadOptions natsStreaming. */ - public natsStreaming?: (protos.opts.IReadGroupNatsStreamingOptions|null); - - /** ReadOptions nsq. */ - public nsq?: (protos.opts.IReadGroupNSQOptions|null); - - /** ReadOptions pulsar. */ - public pulsar?: (protos.opts.IReadGroupPulsarOptions|null); - - /** ReadOptions rabbit. */ - public rabbit?: (protos.opts.IReadGroupRabbitOptions|null); - - /** ReadOptions rabbitStreams. */ - public rabbitStreams?: (protos.opts.IReadGroupRabbitStreamsOptions|null); - - /** ReadOptions mqtt. */ - public mqtt?: (protos.opts.IReadGroupMQTTOptions|null); - - /** ReadOptions azureServiceBus. */ - public azureServiceBus?: (protos.opts.IReadGroupAzureServiceBusOptions|null); - - /** ReadOptions azureEventHub. */ - public azureEventHub?: (protos.opts.IReadGroupAzureEventHubOptions|null); - - /** ReadOptions gcpPubsub. */ - public gcpPubsub?: (protos.opts.IReadGroupGCPPubSubOptions|null); - - /** ReadOptions kubemqQueue. */ - public kubemqQueue?: (protos.opts.IReadGroupKubeMQQueueOptions|null); - - /** ReadOptions redisPubsub. */ - public redisPubsub?: (protos.opts.IReadGroupRedisPubSubOptions|null); - - /** ReadOptions redisStreams. */ - public redisStreams?: (protos.opts.IReadGroupRedisStreamsOptions|null); - - /** ReadOptions postgres. */ - public postgres?: (protos.opts.IReadGroupPostgresOptions|null); + constructor(properties?: protos.common.IForeman); - /** ReadOptions natsJetstream. */ - public natsJetstream?: (protos.opts.IReadGroupNatsJetstreamOptions|null); + /** Foreman authToken. */ + public authToken: string; - /** ReadOptions awsKinesis. */ - public awsKinesis?: (protos.opts.IReadGroupAWSKinesisOptions|null); + /** Foreman plumberClusterId. */ + public plumberClusterId: string; - /** ReadOptions memphis. */ - public memphis?: (protos.opts.IReadGroupMemphisOptions|null); + /** Foreman teamId. */ + public teamId: string; /** - * Creates a new ReadOptions instance using the specified properties. + * Creates a new Foreman instance using the specified properties. * @param [properties] Properties to set - * @returns ReadOptions instance + * @returns Foreman instance */ - public static create(properties?: protos.opts.IReadOptions): protos.opts.ReadOptions; + public static create(properties?: protos.common.IForeman): protos.common.Foreman; /** - * Encodes the specified ReadOptions message. Does not implicitly {@link protos.opts.ReadOptions.verify|verify} messages. - * @param message ReadOptions message or plain object to encode + * Encodes the specified Foreman message. Does not implicitly {@link protos.common.Foreman.verify|verify} messages. + * @param message Foreman message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.common.IForeman, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadOptions message, length delimited. Does not implicitly {@link protos.opts.ReadOptions.verify|verify} messages. - * @param message ReadOptions message or plain object to encode + * Encodes the specified Foreman message, length delimited. Does not implicitly {@link protos.common.Foreman.verify|verify} messages. + * @param message Foreman message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.common.IForeman, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadOptions message from the specified reader or buffer. + * Decodes a Foreman message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadOptions + * @returns Foreman * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.common.Foreman; /** - * Decodes a ReadOptions message from the specified reader or buffer, length delimited. + * Decodes a Foreman message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadOptions + * @returns Foreman * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.common.Foreman; /** - * Verifies a ReadOptions message. + * Verifies a Foreman message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Foreman message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadOptions + * @returns Foreman */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadOptions; + public static fromObject(object: { [k: string]: any }): protos.common.Foreman; /** - * Creates a plain object from a ReadOptions message. Also converts values to other types if specified. - * @param message ReadOptions + * Creates a plain object from a Foreman message. Also converts values to other types if specified. + * @param message Foreman * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.common.Foreman, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadOptions to JSON. + * Converts this Foreman to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupKafkaOptions. */ - interface IReadGroupKafkaOptions { + /** Properties of a SourceManager. */ + interface ISourceManager { - /** ReadGroupKafkaOptions _conn */ - _conn?: (protos.args.IKafkaConn|null); + /** SourceManager serverToken */ + serverToken?: (string|null); - /** ReadGroupKafkaOptions args */ - args?: (protos.args.IKafkaReadArgs|null); + /** SourceManager sourceId */ + sourceId?: (string|null); } - /** Represents a ReadGroupKafkaOptions. */ - class ReadGroupKafkaOptions implements IReadGroupKafkaOptions { + /** Represents a SourceManager. */ + class SourceManager implements ISourceManager { /** - * Constructs a new ReadGroupKafkaOptions. + * Constructs a new SourceManager. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupKafkaOptions); + constructor(properties?: protos.common.ISourceManager); - /** ReadGroupKafkaOptions _conn. */ - public _conn?: (protos.args.IKafkaConn|null); + /** SourceManager serverToken. */ + public serverToken: string; - /** ReadGroupKafkaOptions args. */ - public args?: (protos.args.IKafkaReadArgs|null); + /** SourceManager sourceId. */ + public sourceId: string; /** - * Creates a new ReadGroupKafkaOptions instance using the specified properties. + * Creates a new SourceManager instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupKafkaOptions instance + * @returns SourceManager instance */ - public static create(properties?: protos.opts.IReadGroupKafkaOptions): protos.opts.ReadGroupKafkaOptions; + public static create(properties?: protos.common.ISourceManager): protos.common.SourceManager; /** - * Encodes the specified ReadGroupKafkaOptions message. Does not implicitly {@link protos.opts.ReadGroupKafkaOptions.verify|verify} messages. - * @param message ReadGroupKafkaOptions message or plain object to encode + * Encodes the specified SourceManager message. Does not implicitly {@link protos.common.SourceManager.verify|verify} messages. + * @param message SourceManager message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupKafkaOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.common.ISourceManager, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupKafkaOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupKafkaOptions.verify|verify} messages. - * @param message ReadGroupKafkaOptions message or plain object to encode + * Encodes the specified SourceManager message, length delimited. Does not implicitly {@link protos.common.SourceManager.verify|verify} messages. + * @param message SourceManager message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupKafkaOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.common.ISourceManager, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupKafkaOptions message from the specified reader or buffer. + * Decodes a SourceManager message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupKafkaOptions + * @returns SourceManager * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupKafkaOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.common.SourceManager; /** - * Decodes a ReadGroupKafkaOptions message from the specified reader or buffer, length delimited. + * Decodes a SourceManager message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupKafkaOptions + * @returns SourceManager * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupKafkaOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.common.SourceManager; /** - * Verifies a ReadGroupKafkaOptions message. + * Verifies a SourceManager message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupKafkaOptions message from a plain object. Also converts values to their respective internal types. + * Creates a SourceManager message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupKafkaOptions + * @returns SourceManager */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupKafkaOptions; + public static fromObject(object: { [k: string]: any }): protos.common.SourceManager; /** - * Creates a plain object from a ReadGroupKafkaOptions message. Also converts values to other types if specified. - * @param message ReadGroupKafkaOptions + * Creates a plain object from a SourceManager message. Also converts values to other types if specified. + * @param message SourceManager * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupKafkaOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.common.SourceManager, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupKafkaOptions to JSON. + * Converts this SourceManager to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupActiveMQOptions. */ - interface IReadGroupActiveMQOptions { + /** Properties of an Auth. */ + interface IAuth { - /** ReadGroupActiveMQOptions _conn */ - _conn?: (protos.args.IActiveMQConn|null); + /** Auth token */ + token?: (string|null); - /** ReadGroupActiveMQOptions args */ - args?: (protos.args.IActiveMQReadArgs|null); + /** Auth _foreman */ + _foreman?: (protos.common.IForeman|null); + + /** Auth _sourceManager */ + _sourceManager?: (protos.common.ISourceManager|null); } - /** Represents a ReadGroupActiveMQOptions. */ - class ReadGroupActiveMQOptions implements IReadGroupActiveMQOptions { + /** Represents an Auth. */ + class Auth implements IAuth { /** - * Constructs a new ReadGroupActiveMQOptions. + * Constructs a new Auth. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupActiveMQOptions); + constructor(properties?: protos.common.IAuth); - /** ReadGroupActiveMQOptions _conn. */ - public _conn?: (protos.args.IActiveMQConn|null); + /** Auth token. */ + public token: string; - /** ReadGroupActiveMQOptions args. */ - public args?: (protos.args.IActiveMQReadArgs|null); + /** Auth _foreman. */ + public _foreman?: (protos.common.IForeman|null); + + /** Auth _sourceManager. */ + public _sourceManager?: (protos.common.ISourceManager|null); /** - * Creates a new ReadGroupActiveMQOptions instance using the specified properties. + * Creates a new Auth instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupActiveMQOptions instance + * @returns Auth instance */ - public static create(properties?: protos.opts.IReadGroupActiveMQOptions): protos.opts.ReadGroupActiveMQOptions; + public static create(properties?: protos.common.IAuth): protos.common.Auth; /** - * Encodes the specified ReadGroupActiveMQOptions message. Does not implicitly {@link protos.opts.ReadGroupActiveMQOptions.verify|verify} messages. - * @param message ReadGroupActiveMQOptions message or plain object to encode + * Encodes the specified Auth message. Does not implicitly {@link protos.common.Auth.verify|verify} messages. + * @param message Auth message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupActiveMQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.common.IAuth, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupActiveMQOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupActiveMQOptions.verify|verify} messages. - * @param message ReadGroupActiveMQOptions message or plain object to encode + * Encodes the specified Auth message, length delimited. Does not implicitly {@link protos.common.Auth.verify|verify} messages. + * @param message Auth message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupActiveMQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.common.IAuth, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupActiveMQOptions message from the specified reader or buffer. + * Decodes an Auth message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupActiveMQOptions + * @returns Auth * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupActiveMQOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.common.Auth; /** - * Decodes a ReadGroupActiveMQOptions message from the specified reader or buffer, length delimited. + * Decodes an Auth message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupActiveMQOptions + * @returns Auth * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupActiveMQOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.common.Auth; /** - * Verifies a ReadGroupActiveMQOptions message. + * Verifies an Auth message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupActiveMQOptions message from a plain object. Also converts values to their respective internal types. + * Creates an Auth message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupActiveMQOptions + * @returns Auth */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupActiveMQOptions; + public static fromObject(object: { [k: string]: any }): protos.common.Auth; /** - * Creates a plain object from a ReadGroupActiveMQOptions message. Also converts values to other types if specified. - * @param message ReadGroupActiveMQOptions + * Creates a plain object from an Auth message. Also converts values to other types if specified. + * @param message Auth * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupActiveMQOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.common.Auth, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupActiveMQOptions to JSON. + * Converts this Auth to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupAWSSQSOptions. */ - interface IReadGroupAWSSQSOptions { + /** BackendType enum. */ + enum BackendType { + BACKEND_TYPE_UNSET = 0, + BACKEND_TYPE_KAFKA = 1, + BACKEND_TYPE_RABBIT = 2, + BACKEND_TYPE_RABBIT_STREAMS = 3, + BACKEND_TYPE_NSQ = 4, + BACKEND_TYPE_NATS = 5, + BACKEND_TYPE_NATS_STREAMING = 6, + BACKEND_TYPE_GCP_PUBSUB = 7, + BACKEND_TYPE_AZURE_SERVICE_BUS = 8, + BACKEND_TYPE_AZURE_EVENT_HUB = 9, + BACKEND_TYPE_AWS_SQS = 10, + BACKEND_TYPE_AWS_SNS = 11, + BACKEND_TYPE_REDIS_PUBSUB = 12, + BACKEND_TYPE_REDIS_STREAMS = 13, + BACKEND_TYPE_ACTIVEMQ = 14, + BACKEND_TYPE_PULSAR = 15, + BACKEND_TYPE_MQTT = 16, + BACKEND_TYPE_POSTGRES_CDC = 17, + BACKEND_TYPE_MONGODB_CDC = 18, + BACKEND_TYPE_KUBE_MQ = 19, + BACKEND_TYPE_AWS_KINESIS = 20 + } - /** ReadGroupAWSSQSOptions _conn */ - _conn?: (protos.args.IAWSSQSConn|null); + /** Code enum. */ + enum Code { + OK = 0, + CANCELLED = 1, + UNKNOWN = 2, + INVALID_ARGUMENT = 3, + DEADLINE_EXCEEDED = 4, + NOT_FOUND = 5, + ALREADY_EXISTS = 6, + PERMISSION_DENIED = 7, + UNAUTHENTICATED = 16, + RESOURCE_EXHAUSTED = 8, + FAILED_PRECONDITION = 9, + ABORTED = 10, + OUT_OF_RANGE = 11, + UNIMPLEMENTED = 12, + INTERNAL = 13, + UNAVAILABLE = 14, + DATA_LOSS = 15 + } - /** ReadGroupAWSSQSOptions args */ - args?: (protos.args.IAWSSQSReadArgs|null); + /** Properties of a Status. */ + interface IStatus { + + /** Status code */ + code?: (protos.common.Code|null); + + /** Status message */ + message?: (string|null); + + /** Status requestId */ + requestId?: (string|null); } - /** Represents a ReadGroupAWSSQSOptions. */ - class ReadGroupAWSSQSOptions implements IReadGroupAWSSQSOptions { + /** Represents a Status. */ + class Status implements IStatus { /** - * Constructs a new ReadGroupAWSSQSOptions. + * Constructs a new Status. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupAWSSQSOptions); + constructor(properties?: protos.common.IStatus); - /** ReadGroupAWSSQSOptions _conn. */ - public _conn?: (protos.args.IAWSSQSConn|null); + /** Status code. */ + public code: protos.common.Code; - /** ReadGroupAWSSQSOptions args. */ - public args?: (protos.args.IAWSSQSReadArgs|null); + /** Status message. */ + public message: string; + + /** Status requestId. */ + public requestId: string; /** - * Creates a new ReadGroupAWSSQSOptions instance using the specified properties. + * Creates a new Status instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupAWSSQSOptions instance + * @returns Status instance */ - public static create(properties?: protos.opts.IReadGroupAWSSQSOptions): protos.opts.ReadGroupAWSSQSOptions; + public static create(properties?: protos.common.IStatus): protos.common.Status; /** - * Encodes the specified ReadGroupAWSSQSOptions message. Does not implicitly {@link protos.opts.ReadGroupAWSSQSOptions.verify|verify} messages. - * @param message ReadGroupAWSSQSOptions message or plain object to encode + * Encodes the specified Status message. Does not implicitly {@link protos.common.Status.verify|verify} messages. + * @param message Status message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupAWSSQSOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.common.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupAWSSQSOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAWSSQSOptions.verify|verify} messages. - * @param message ReadGroupAWSSQSOptions message or plain object to encode + * Encodes the specified Status message, length delimited. Does not implicitly {@link protos.common.Status.verify|verify} messages. + * @param message Status message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupAWSSQSOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.common.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupAWSSQSOptions message from the specified reader or buffer. + * Decodes a Status message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupAWSSQSOptions + * @returns Status * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupAWSSQSOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.common.Status; /** - * Decodes a ReadGroupAWSSQSOptions message from the specified reader or buffer, length delimited. + * Decodes a Status message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupAWSSQSOptions + * @returns Status * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupAWSSQSOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.common.Status; /** - * Verifies a ReadGroupAWSSQSOptions message. + * Verifies a Status message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupAWSSQSOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Status message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupAWSSQSOptions + * @returns Status */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupAWSSQSOptions; + public static fromObject(object: { [k: string]: any }): protos.common.Status; /** - * Creates a plain object from a ReadGroupAWSSQSOptions message. Also converts values to other types if specified. - * @param message ReadGroupAWSSQSOptions + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @param message Status * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupAWSSQSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.common.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupAWSSQSOptions to JSON. + * Converts this Status to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupMongoOptions. */ - interface IReadGroupMongoOptions { + /** Properties of a Validation. */ + interface IValidation { - /** ReadGroupMongoOptions _conn */ - _conn?: (protos.args.IMongoConn|null); + /** Validation _id */ + _id?: (string|null); - /** ReadGroupMongoOptions args */ - args?: (protos.args.IMongoReadArgs|null); + /** Validation schemaId */ + schemaId?: (string|null); + + /** Validation fields */ + fields?: (protos.common.Validation.IField[]|null); } - /** Represents a ReadGroupMongoOptions. */ - class ReadGroupMongoOptions implements IReadGroupMongoOptions { + /** Represents a Validation. */ + class Validation implements IValidation { /** - * Constructs a new ReadGroupMongoOptions. + * Constructs a new Validation. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupMongoOptions); + constructor(properties?: protos.common.IValidation); - /** ReadGroupMongoOptions _conn. */ - public _conn?: (protos.args.IMongoConn|null); + /** Validation _id. */ + public _id: string; - /** ReadGroupMongoOptions args. */ - public args?: (protos.args.IMongoReadArgs|null); + /** Validation schemaId. */ + public schemaId: string; + + /** Validation fields. */ + public fields: protos.common.Validation.IField[]; /** - * Creates a new ReadGroupMongoOptions instance using the specified properties. + * Creates a new Validation instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupMongoOptions instance + * @returns Validation instance */ - public static create(properties?: protos.opts.IReadGroupMongoOptions): protos.opts.ReadGroupMongoOptions; + public static create(properties?: protos.common.IValidation): protos.common.Validation; /** - * Encodes the specified ReadGroupMongoOptions message. Does not implicitly {@link protos.opts.ReadGroupMongoOptions.verify|verify} messages. - * @param message ReadGroupMongoOptions message or plain object to encode + * Encodes the specified Validation message. Does not implicitly {@link protos.common.Validation.verify|verify} messages. + * @param message Validation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupMongoOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.common.IValidation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupMongoOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupMongoOptions.verify|verify} messages. - * @param message ReadGroupMongoOptions message or plain object to encode + * Encodes the specified Validation message, length delimited. Does not implicitly {@link protos.common.Validation.verify|verify} messages. + * @param message Validation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupMongoOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.common.IValidation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupMongoOptions message from the specified reader or buffer. + * Decodes a Validation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupMongoOptions + * @returns Validation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupMongoOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.common.Validation; /** - * Decodes a ReadGroupMongoOptions message from the specified reader or buffer, length delimited. + * Decodes a Validation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupMongoOptions + * @returns Validation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupMongoOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.common.Validation; /** - * Verifies a ReadGroupMongoOptions message. + * Verifies a Validation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupMongoOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Validation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupMongoOptions + * @returns Validation */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupMongoOptions; + public static fromObject(object: { [k: string]: any }): protos.common.Validation; /** - * Creates a plain object from a ReadGroupMongoOptions message. Also converts values to other types if specified. - * @param message ReadGroupMongoOptions + * Creates a plain object from a Validation message. Also converts values to other types if specified. + * @param message Validation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupMongoOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.common.Validation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupMongoOptions to JSON. + * Converts this Validation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupNatsOptions. */ - interface IReadGroupNatsOptions { - - /** ReadGroupNatsOptions _conn */ - _conn?: (protos.args.INatsConn|null); - - /** ReadGroupNatsOptions args */ - args?: (protos.args.INatsReadArgs|null); - } + namespace Validation { - /** Represents a ReadGroupNatsOptions. */ - class ReadGroupNatsOptions implements IReadGroupNatsOptions { + /** Properties of a Field. */ + interface IField { - /** - * Constructs a new ReadGroupNatsOptions. - * @param [properties] Properties to set - */ - constructor(properties?: protos.opts.IReadGroupNatsOptions); + /** Field path */ + path?: (string|null); - /** ReadGroupNatsOptions _conn. */ - public _conn?: (protos.args.INatsConn|null); + /** Field validationType */ + validationType?: (string|null); - /** ReadGroupNatsOptions args. */ - public args?: (protos.args.INatsReadArgs|null); + /** Field matchValue */ + matchValue?: (string|null); + } - /** - * Creates a new ReadGroupNatsOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns ReadGroupNatsOptions instance - */ - public static create(properties?: protos.opts.IReadGroupNatsOptions): protos.opts.ReadGroupNatsOptions; + /** Represents a Field. */ + class Field implements IField { - /** - * Encodes the specified ReadGroupNatsOptions message. Does not implicitly {@link protos.opts.ReadGroupNatsOptions.verify|verify} messages. - * @param message ReadGroupNatsOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.opts.IReadGroupNatsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Field. + * @param [properties] Properties to set + */ + constructor(properties?: protos.common.Validation.IField); - /** - * Encodes the specified ReadGroupNatsOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNatsOptions.verify|verify} messages. - * @param message ReadGroupNatsOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.opts.IReadGroupNatsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** Field path. */ + public path: string; - /** - * Decodes a ReadGroupNatsOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReadGroupNatsOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupNatsOptions; + /** Field validationType. */ + public validationType: string; - /** - * Decodes a ReadGroupNatsOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReadGroupNatsOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupNatsOptions; + /** Field matchValue. */ + public matchValue: string; - /** - * Verifies a ReadGroupNatsOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a new Field instance using the specified properties. + * @param [properties] Properties to set + * @returns Field instance + */ + public static create(properties?: protos.common.Validation.IField): protos.common.Validation.Field; - /** - * Creates a ReadGroupNatsOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReadGroupNatsOptions - */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupNatsOptions; + /** + * Encodes the specified Field message. Does not implicitly {@link protos.common.Validation.Field.verify|verify} messages. + * @param message Field message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: protos.common.Validation.IField, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a ReadGroupNatsOptions message. Also converts values to other types if specified. - * @param message ReadGroupNatsOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.opts.ReadGroupNatsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Field message, length delimited. Does not implicitly {@link protos.common.Validation.Field.verify|verify} messages. + * @param message Field message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: protos.common.Validation.IField, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ReadGroupNatsOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a Field message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.common.Validation.Field; - /** Properties of a ReadGroupNatsStreamingOptions. */ - interface IReadGroupNatsStreamingOptions { + /** + * Decodes a Field message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.common.Validation.Field; - /** ReadGroupNatsStreamingOptions _conn */ - _conn?: (protos.args.INatsStreamingConn|null); + /** + * Verifies a Field message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ReadGroupNatsStreamingOptions args */ - args?: (protos.args.INatsStreamingReadArgs|null); - } + /** + * Creates a Field message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Field + */ + public static fromObject(object: { [k: string]: any }): protos.common.Validation.Field; - /** Represents a ReadGroupNatsStreamingOptions. */ - class ReadGroupNatsStreamingOptions implements IReadGroupNatsStreamingOptions { + /** + * Creates a plain object from a Field message. Also converts values to other types if specified. + * @param message Field + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: protos.common.Validation.Field, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Field to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace encoding. */ + namespace encoding { + + /** EncodeType enum. */ + enum EncodeType { + ENCODE_TYPE_UNSET = 0, + ENCODE_TYPE_JSONPB = 1, + ENCODE_TYPE_AVRO = 2, + ENCODE_TYPE_CLOUDEVENT = 3 + } + + /** DecodeType enum. */ + enum DecodeType { + DECODE_TYPE_UNSET = 0, + DECODE_TYPE_PROTOBUF = 1, + DECODE_TYPE_AVRO = 2, + DECODE_TYPE_THRIFT = 3, + DECODE_TYPE_FLATBUFFER = 4 + } + + /** EnvelopeType enum. */ + enum EnvelopeType { + ENVELOPE_TYPE_UNSET = 0, + ENVELOPE_TYPE_DEEP = 1, + ENVELOPE_TYPE_SHALLOW = 2 + } + + /** Properties of a ProtobufSettings. */ + interface IProtobufSettings { + + /** ProtobufSettings protobufRootMessage */ + protobufRootMessage?: (string|null); + + /** ProtobufSettings protobufDirs */ + protobufDirs?: (string[]|null); + + /** ProtobufSettings _protobufRootDir */ + _protobufRootDir?: (string|null); + + /** ProtobufSettings archive */ + archive?: (Uint8Array|null); + + /** ProtobufSettings _messageDescriptor */ + _messageDescriptor?: (Uint8Array|null); + + /** ProtobufSettings protobufEnvelopeType */ + protobufEnvelopeType?: (protos.encoding.EnvelopeType|null); + + /** ProtobufSettings shallowEnvelopeMessage */ + shallowEnvelopeMessage?: (string|null); + + /** ProtobufSettings shallowEnvelopeFieldNumber */ + shallowEnvelopeFieldNumber?: (number|null); + + /** ProtobufSettings _shallowEnvelopeMessageDescriptor */ + _shallowEnvelopeMessageDescriptor?: (Uint8Array|null); + + /** ProtobufSettings protobufDescriptorSet */ + protobufDescriptorSet?: (string|null); + } + + /** Represents a ProtobufSettings. */ + class ProtobufSettings implements IProtobufSettings { /** - * Constructs a new ReadGroupNatsStreamingOptions. + * Constructs a new ProtobufSettings. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupNatsStreamingOptions); + constructor(properties?: protos.encoding.IProtobufSettings); - /** ReadGroupNatsStreamingOptions _conn. */ - public _conn?: (protos.args.INatsStreamingConn|null); + /** ProtobufSettings protobufRootMessage. */ + public protobufRootMessage: string; - /** ReadGroupNatsStreamingOptions args. */ - public args?: (protos.args.INatsStreamingReadArgs|null); + /** ProtobufSettings protobufDirs. */ + public protobufDirs: string[]; + + /** ProtobufSettings _protobufRootDir. */ + public _protobufRootDir: string; + + /** ProtobufSettings archive. */ + public archive: Uint8Array; + + /** ProtobufSettings _messageDescriptor. */ + public _messageDescriptor: Uint8Array; + + /** ProtobufSettings protobufEnvelopeType. */ + public protobufEnvelopeType: protos.encoding.EnvelopeType; + + /** ProtobufSettings shallowEnvelopeMessage. */ + public shallowEnvelopeMessage: string; + + /** ProtobufSettings shallowEnvelopeFieldNumber. */ + public shallowEnvelopeFieldNumber: number; + + /** ProtobufSettings _shallowEnvelopeMessageDescriptor. */ + public _shallowEnvelopeMessageDescriptor: Uint8Array; + + /** ProtobufSettings protobufDescriptorSet. */ + public protobufDescriptorSet: string; /** - * Creates a new ReadGroupNatsStreamingOptions instance using the specified properties. + * Creates a new ProtobufSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupNatsStreamingOptions instance + * @returns ProtobufSettings instance */ - public static create(properties?: protos.opts.IReadGroupNatsStreamingOptions): protos.opts.ReadGroupNatsStreamingOptions; + public static create(properties?: protos.encoding.IProtobufSettings): protos.encoding.ProtobufSettings; /** - * Encodes the specified ReadGroupNatsStreamingOptions message. Does not implicitly {@link protos.opts.ReadGroupNatsStreamingOptions.verify|verify} messages. - * @param message ReadGroupNatsStreamingOptions message or plain object to encode + * Encodes the specified ProtobufSettings message. Does not implicitly {@link protos.encoding.ProtobufSettings.verify|verify} messages. + * @param message ProtobufSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupNatsStreamingOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.encoding.IProtobufSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupNatsStreamingOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNatsStreamingOptions.verify|verify} messages. - * @param message ReadGroupNatsStreamingOptions message or plain object to encode + * Encodes the specified ProtobufSettings message, length delimited. Does not implicitly {@link protos.encoding.ProtobufSettings.verify|verify} messages. + * @param message ProtobufSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupNatsStreamingOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.encoding.IProtobufSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupNatsStreamingOptions message from the specified reader or buffer. + * Decodes a ProtobufSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupNatsStreamingOptions + * @returns ProtobufSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupNatsStreamingOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.ProtobufSettings; /** - * Decodes a ReadGroupNatsStreamingOptions message from the specified reader or buffer, length delimited. + * Decodes a ProtobufSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupNatsStreamingOptions + * @returns ProtobufSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupNatsStreamingOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.ProtobufSettings; /** - * Verifies a ReadGroupNatsStreamingOptions message. + * Verifies a ProtobufSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupNatsStreamingOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ProtobufSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupNatsStreamingOptions + * @returns ProtobufSettings */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupNatsStreamingOptions; + public static fromObject(object: { [k: string]: any }): protos.encoding.ProtobufSettings; /** - * Creates a plain object from a ReadGroupNatsStreamingOptions message. Also converts values to other types if specified. - * @param message ReadGroupNatsStreamingOptions + * Creates a plain object from a ProtobufSettings message. Also converts values to other types if specified. + * @param message ProtobufSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupNatsStreamingOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.encoding.ProtobufSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupNatsStreamingOptions to JSON. + * Converts this ProtobufSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupNatsJetstreamOptions. */ - interface IReadGroupNatsJetstreamOptions { + /** Properties of an AvroSettings. */ + interface IAvroSettings { - /** ReadGroupNatsJetstreamOptions _conn */ - _conn?: (protos.args.INatsJetstreamConn|null); + /** AvroSettings avroSchemaFile */ + avroSchemaFile?: (string|null); - /** ReadGroupNatsJetstreamOptions args */ - args?: (protos.args.INatsJetstreamReadArgs|null); + /** AvroSettings schema */ + schema?: (Uint8Array|null); } - /** Represents a ReadGroupNatsJetstreamOptions. */ - class ReadGroupNatsJetstreamOptions implements IReadGroupNatsJetstreamOptions { + /** Represents an AvroSettings. */ + class AvroSettings implements IAvroSettings { /** - * Constructs a new ReadGroupNatsJetstreamOptions. + * Constructs a new AvroSettings. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupNatsJetstreamOptions); + constructor(properties?: protos.encoding.IAvroSettings); - /** ReadGroupNatsJetstreamOptions _conn. */ - public _conn?: (protos.args.INatsJetstreamConn|null); + /** AvroSettings avroSchemaFile. */ + public avroSchemaFile: string; - /** ReadGroupNatsJetstreamOptions args. */ - public args?: (protos.args.INatsJetstreamReadArgs|null); + /** AvroSettings schema. */ + public schema: Uint8Array; /** - * Creates a new ReadGroupNatsJetstreamOptions instance using the specified properties. + * Creates a new AvroSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupNatsJetstreamOptions instance + * @returns AvroSettings instance */ - public static create(properties?: protos.opts.IReadGroupNatsJetstreamOptions): protos.opts.ReadGroupNatsJetstreamOptions; + public static create(properties?: protos.encoding.IAvroSettings): protos.encoding.AvroSettings; /** - * Encodes the specified ReadGroupNatsJetstreamOptions message. Does not implicitly {@link protos.opts.ReadGroupNatsJetstreamOptions.verify|verify} messages. - * @param message ReadGroupNatsJetstreamOptions message or plain object to encode + * Encodes the specified AvroSettings message. Does not implicitly {@link protos.encoding.AvroSettings.verify|verify} messages. + * @param message AvroSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupNatsJetstreamOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.encoding.IAvroSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupNatsJetstreamOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNatsJetstreamOptions.verify|verify} messages. - * @param message ReadGroupNatsJetstreamOptions message or plain object to encode + * Encodes the specified AvroSettings message, length delimited. Does not implicitly {@link protos.encoding.AvroSettings.verify|verify} messages. + * @param message AvroSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupNatsJetstreamOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.encoding.IAvroSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupNatsJetstreamOptions message from the specified reader or buffer. + * Decodes an AvroSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupNatsJetstreamOptions + * @returns AvroSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupNatsJetstreamOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.AvroSettings; /** - * Decodes a ReadGroupNatsJetstreamOptions message from the specified reader or buffer, length delimited. + * Decodes an AvroSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupNatsJetstreamOptions + * @returns AvroSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupNatsJetstreamOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.AvroSettings; /** - * Verifies a ReadGroupNatsJetstreamOptions message. + * Verifies an AvroSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupNatsJetstreamOptions message from a plain object. Also converts values to their respective internal types. + * Creates an AvroSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupNatsJetstreamOptions + * @returns AvroSettings */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupNatsJetstreamOptions; + public static fromObject(object: { [k: string]: any }): protos.encoding.AvroSettings; /** - * Creates a plain object from a ReadGroupNatsJetstreamOptions message. Also converts values to other types if specified. - * @param message ReadGroupNatsJetstreamOptions + * Creates a plain object from an AvroSettings message. Also converts values to other types if specified. + * @param message AvroSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupNatsJetstreamOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.encoding.AvroSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupNatsJetstreamOptions to JSON. + * Converts this AvroSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupNSQOptions. */ - interface IReadGroupNSQOptions { + /** Properties of a ThriftSettings. */ + interface IThriftSettings { - /** ReadGroupNSQOptions _conn */ - _conn?: (protos.args.INSQConn|null); + /** ThriftSettings thriftDirs */ + thriftDirs?: (string[]|null); - /** ReadGroupNSQOptions args */ - args?: (protos.args.INSQReadArgs|null); + /** ThriftSettings thriftStruct */ + thriftStruct?: (string|null); } - /** Represents a ReadGroupNSQOptions. */ - class ReadGroupNSQOptions implements IReadGroupNSQOptions { + /** Represents a ThriftSettings. */ + class ThriftSettings implements IThriftSettings { /** - * Constructs a new ReadGroupNSQOptions. + * Constructs a new ThriftSettings. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupNSQOptions); + constructor(properties?: protos.encoding.IThriftSettings); - /** ReadGroupNSQOptions _conn. */ - public _conn?: (protos.args.INSQConn|null); + /** ThriftSettings thriftDirs. */ + public thriftDirs: string[]; - /** ReadGroupNSQOptions args. */ - public args?: (protos.args.INSQReadArgs|null); + /** ThriftSettings thriftStruct. */ + public thriftStruct: string; /** - * Creates a new ReadGroupNSQOptions instance using the specified properties. + * Creates a new ThriftSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupNSQOptions instance + * @returns ThriftSettings instance */ - public static create(properties?: protos.opts.IReadGroupNSQOptions): protos.opts.ReadGroupNSQOptions; + public static create(properties?: protos.encoding.IThriftSettings): protos.encoding.ThriftSettings; /** - * Encodes the specified ReadGroupNSQOptions message. Does not implicitly {@link protos.opts.ReadGroupNSQOptions.verify|verify} messages. - * @param message ReadGroupNSQOptions message or plain object to encode + * Encodes the specified ThriftSettings message. Does not implicitly {@link protos.encoding.ThriftSettings.verify|verify} messages. + * @param message ThriftSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupNSQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.encoding.IThriftSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupNSQOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNSQOptions.verify|verify} messages. - * @param message ReadGroupNSQOptions message or plain object to encode + * Encodes the specified ThriftSettings message, length delimited. Does not implicitly {@link protos.encoding.ThriftSettings.verify|verify} messages. + * @param message ThriftSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupNSQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.encoding.IThriftSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupNSQOptions message from the specified reader or buffer. + * Decodes a ThriftSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupNSQOptions + * @returns ThriftSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupNSQOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.ThriftSettings; /** - * Decodes a ReadGroupNSQOptions message from the specified reader or buffer, length delimited. + * Decodes a ThriftSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupNSQOptions + * @returns ThriftSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupNSQOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.ThriftSettings; /** - * Verifies a ReadGroupNSQOptions message. + * Verifies a ThriftSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupNSQOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ThriftSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupNSQOptions + * @returns ThriftSettings */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupNSQOptions; + public static fromObject(object: { [k: string]: any }): protos.encoding.ThriftSettings; /** - * Creates a plain object from a ReadGroupNSQOptions message. Also converts values to other types if specified. - * @param message ReadGroupNSQOptions + * Creates a plain object from a ThriftSettings message. Also converts values to other types if specified. + * @param message ThriftSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupNSQOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.encoding.ThriftSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupNSQOptions to JSON. + * Converts this ThriftSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupPostgresOptions. */ - interface IReadGroupPostgresOptions { - - /** ReadGroupPostgresOptions _conn */ - _conn?: (protos.args.IPostgresConn|null); + /** Properties of a JSONSchemaSettings. */ + interface IJSONSchemaSettings { - /** ReadGroupPostgresOptions args */ - args?: (protos.args.IPostgresReadArgs|null); + /** JSONSchemaSettings schema */ + schema?: (Uint8Array|null); } - /** Represents a ReadGroupPostgresOptions. */ - class ReadGroupPostgresOptions implements IReadGroupPostgresOptions { + /** Represents a JSONSchemaSettings. */ + class JSONSchemaSettings implements IJSONSchemaSettings { /** - * Constructs a new ReadGroupPostgresOptions. + * Constructs a new JSONSchemaSettings. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupPostgresOptions); - - /** ReadGroupPostgresOptions _conn. */ - public _conn?: (protos.args.IPostgresConn|null); + constructor(properties?: protos.encoding.IJSONSchemaSettings); - /** ReadGroupPostgresOptions args. */ - public args?: (protos.args.IPostgresReadArgs|null); + /** JSONSchemaSettings schema. */ + public schema: Uint8Array; /** - * Creates a new ReadGroupPostgresOptions instance using the specified properties. + * Creates a new JSONSchemaSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupPostgresOptions instance + * @returns JSONSchemaSettings instance */ - public static create(properties?: protos.opts.IReadGroupPostgresOptions): protos.opts.ReadGroupPostgresOptions; + public static create(properties?: protos.encoding.IJSONSchemaSettings): protos.encoding.JSONSchemaSettings; /** - * Encodes the specified ReadGroupPostgresOptions message. Does not implicitly {@link protos.opts.ReadGroupPostgresOptions.verify|verify} messages. - * @param message ReadGroupPostgresOptions message or plain object to encode + * Encodes the specified JSONSchemaSettings message. Does not implicitly {@link protos.encoding.JSONSchemaSettings.verify|verify} messages. + * @param message JSONSchemaSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupPostgresOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.encoding.IJSONSchemaSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupPostgresOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupPostgresOptions.verify|verify} messages. - * @param message ReadGroupPostgresOptions message or plain object to encode + * Encodes the specified JSONSchemaSettings message, length delimited. Does not implicitly {@link protos.encoding.JSONSchemaSettings.verify|verify} messages. + * @param message JSONSchemaSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupPostgresOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.encoding.IJSONSchemaSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupPostgresOptions message from the specified reader or buffer. + * Decodes a JSONSchemaSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupPostgresOptions + * @returns JSONSchemaSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupPostgresOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.JSONSchemaSettings; /** - * Decodes a ReadGroupPostgresOptions message from the specified reader or buffer, length delimited. + * Decodes a JSONSchemaSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupPostgresOptions + * @returns JSONSchemaSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupPostgresOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.JSONSchemaSettings; /** - * Verifies a ReadGroupPostgresOptions message. + * Verifies a JSONSchemaSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupPostgresOptions message from a plain object. Also converts values to their respective internal types. + * Creates a JSONSchemaSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupPostgresOptions + * @returns JSONSchemaSettings */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupPostgresOptions; + public static fromObject(object: { [k: string]: any }): protos.encoding.JSONSchemaSettings; /** - * Creates a plain object from a ReadGroupPostgresOptions message. Also converts values to other types if specified. - * @param message ReadGroupPostgresOptions + * Creates a plain object from a JSONSchemaSettings message. Also converts values to other types if specified. + * @param message JSONSchemaSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupPostgresOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.encoding.JSONSchemaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupPostgresOptions to JSON. + * Converts this JSONSchemaSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupPulsarOptions. */ - interface IReadGroupPulsarOptions { + /** Properties of a CloudEventSettings. */ + interface ICloudEventSettings { - /** ReadGroupPulsarOptions _conn */ - _conn?: (protos.args.IPulsarConn|null); + /** CloudEventSettings ceId */ + ceId?: (string|null); - /** ReadGroupPulsarOptions args */ - args?: (protos.args.IPulsarReadArgs|null); + /** CloudEventSettings ceSource */ + ceSource?: (string|null); + + /** CloudEventSettings ceType */ + ceType?: (string|null); + + /** CloudEventSettings ceSubject */ + ceSubject?: (string|null); + + /** CloudEventSettings ceSpecVersion */ + ceSpecVersion?: (string|null); + + /** CloudEventSettings ceDataContentType */ + ceDataContentType?: (string|null); + + /** CloudEventSettings ceDataSchema */ + ceDataSchema?: (string|null); } - /** Represents a ReadGroupPulsarOptions. */ - class ReadGroupPulsarOptions implements IReadGroupPulsarOptions { + /** Represents a CloudEventSettings. */ + class CloudEventSettings implements ICloudEventSettings { /** - * Constructs a new ReadGroupPulsarOptions. + * Constructs a new CloudEventSettings. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupPulsarOptions); + constructor(properties?: protos.encoding.ICloudEventSettings); - /** ReadGroupPulsarOptions _conn. */ - public _conn?: (protos.args.IPulsarConn|null); + /** CloudEventSettings ceId. */ + public ceId: string; - /** ReadGroupPulsarOptions args. */ - public args?: (protos.args.IPulsarReadArgs|null); + /** CloudEventSettings ceSource. */ + public ceSource: string; + + /** CloudEventSettings ceType. */ + public ceType: string; + + /** CloudEventSettings ceSubject. */ + public ceSubject: string; + + /** CloudEventSettings ceSpecVersion. */ + public ceSpecVersion: string; + + /** CloudEventSettings ceDataContentType. */ + public ceDataContentType: string; + + /** CloudEventSettings ceDataSchema. */ + public ceDataSchema: string; /** - * Creates a new ReadGroupPulsarOptions instance using the specified properties. + * Creates a new CloudEventSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupPulsarOptions instance + * @returns CloudEventSettings instance */ - public static create(properties?: protos.opts.IReadGroupPulsarOptions): protos.opts.ReadGroupPulsarOptions; + public static create(properties?: protos.encoding.ICloudEventSettings): protos.encoding.CloudEventSettings; /** - * Encodes the specified ReadGroupPulsarOptions message. Does not implicitly {@link protos.opts.ReadGroupPulsarOptions.verify|verify} messages. - * @param message ReadGroupPulsarOptions message or plain object to encode + * Encodes the specified CloudEventSettings message. Does not implicitly {@link protos.encoding.CloudEventSettings.verify|verify} messages. + * @param message CloudEventSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupPulsarOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.encoding.ICloudEventSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupPulsarOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupPulsarOptions.verify|verify} messages. - * @param message ReadGroupPulsarOptions message or plain object to encode + * Encodes the specified CloudEventSettings message, length delimited. Does not implicitly {@link protos.encoding.CloudEventSettings.verify|verify} messages. + * @param message CloudEventSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupPulsarOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.encoding.ICloudEventSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupPulsarOptions message from the specified reader or buffer. + * Decodes a CloudEventSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupPulsarOptions + * @returns CloudEventSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupPulsarOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.CloudEventSettings; /** - * Decodes a ReadGroupPulsarOptions message from the specified reader or buffer, length delimited. + * Decodes a CloudEventSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupPulsarOptions + * @returns CloudEventSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupPulsarOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.CloudEventSettings; /** - * Verifies a ReadGroupPulsarOptions message. + * Verifies a CloudEventSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupPulsarOptions message from a plain object. Also converts values to their respective internal types. + * Creates a CloudEventSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupPulsarOptions + * @returns CloudEventSettings */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupPulsarOptions; + public static fromObject(object: { [k: string]: any }): protos.encoding.CloudEventSettings; /** - * Creates a plain object from a ReadGroupPulsarOptions message. Also converts values to other types if specified. - * @param message ReadGroupPulsarOptions + * Creates a plain object from a CloudEventSettings message. Also converts values to other types if specified. + * @param message CloudEventSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupPulsarOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.encoding.CloudEventSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupPulsarOptions to JSON. + * Converts this CloudEventSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupRabbitOptions. */ - interface IReadGroupRabbitOptions { + /** Properties of an EncodeOptions. */ + interface IEncodeOptions { - /** ReadGroupRabbitOptions _conn */ - _conn?: (protos.args.IRabbitConn|null); + /** EncodeOptions schemaId */ + schemaId?: (string|null); - /** ReadGroupRabbitOptions args */ - args?: (protos.args.IRabbitReadArgs|null); + /** EncodeOptions encodeType */ + encodeType?: (protos.encoding.EncodeType|null); + + /** EncodeOptions protobufSettings */ + protobufSettings?: (protos.encoding.IProtobufSettings|null); + + /** EncodeOptions avroSettings */ + avroSettings?: (protos.encoding.IAvroSettings|null); + + /** EncodeOptions cloudeventSettings */ + cloudeventSettings?: (protos.encoding.ICloudEventSettings|null); } - /** Represents a ReadGroupRabbitOptions. */ - class ReadGroupRabbitOptions implements IReadGroupRabbitOptions { + /** Represents an EncodeOptions. */ + class EncodeOptions implements IEncodeOptions { /** - * Constructs a new ReadGroupRabbitOptions. + * Constructs a new EncodeOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupRabbitOptions); + constructor(properties?: protos.encoding.IEncodeOptions); - /** ReadGroupRabbitOptions _conn. */ - public _conn?: (protos.args.IRabbitConn|null); + /** EncodeOptions schemaId. */ + public schemaId: string; - /** ReadGroupRabbitOptions args. */ - public args?: (protos.args.IRabbitReadArgs|null); + /** EncodeOptions encodeType. */ + public encodeType: protos.encoding.EncodeType; + + /** EncodeOptions protobufSettings. */ + public protobufSettings?: (protos.encoding.IProtobufSettings|null); + + /** EncodeOptions avroSettings. */ + public avroSettings?: (protos.encoding.IAvroSettings|null); + + /** EncodeOptions cloudeventSettings. */ + public cloudeventSettings?: (protos.encoding.ICloudEventSettings|null); /** - * Creates a new ReadGroupRabbitOptions instance using the specified properties. + * Creates a new EncodeOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupRabbitOptions instance + * @returns EncodeOptions instance */ - public static create(properties?: protos.opts.IReadGroupRabbitOptions): protos.opts.ReadGroupRabbitOptions; + public static create(properties?: protos.encoding.IEncodeOptions): protos.encoding.EncodeOptions; /** - * Encodes the specified ReadGroupRabbitOptions message. Does not implicitly {@link protos.opts.ReadGroupRabbitOptions.verify|verify} messages. - * @param message ReadGroupRabbitOptions message or plain object to encode + * Encodes the specified EncodeOptions message. Does not implicitly {@link protos.encoding.EncodeOptions.verify|verify} messages. + * @param message EncodeOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupRabbitOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.encoding.IEncodeOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupRabbitOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRabbitOptions.verify|verify} messages. - * @param message ReadGroupRabbitOptions message or plain object to encode + * Encodes the specified EncodeOptions message, length delimited. Does not implicitly {@link protos.encoding.EncodeOptions.verify|verify} messages. + * @param message EncodeOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupRabbitOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.encoding.IEncodeOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupRabbitOptions message from the specified reader or buffer. + * Decodes an EncodeOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupRabbitOptions + * @returns EncodeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupRabbitOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.EncodeOptions; /** - * Decodes a ReadGroupRabbitOptions message from the specified reader or buffer, length delimited. + * Decodes an EncodeOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupRabbitOptions + * @returns EncodeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupRabbitOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.EncodeOptions; /** - * Verifies a ReadGroupRabbitOptions message. + * Verifies an EncodeOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupRabbitOptions message from a plain object. Also converts values to their respective internal types. + * Creates an EncodeOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupRabbitOptions + * @returns EncodeOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupRabbitOptions; + public static fromObject(object: { [k: string]: any }): protos.encoding.EncodeOptions; /** - * Creates a plain object from a ReadGroupRabbitOptions message. Also converts values to other types if specified. - * @param message ReadGroupRabbitOptions + * Creates a plain object from an EncodeOptions message. Also converts values to other types if specified. + * @param message EncodeOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupRabbitOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.encoding.EncodeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupRabbitOptions to JSON. + * Converts this EncodeOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupRabbitStreamsOptions. */ - interface IReadGroupRabbitStreamsOptions { + /** Properties of a DecodeOptions. */ + interface IDecodeOptions { - /** ReadGroupRabbitStreamsOptions _conn */ - _conn?: (protos.args.IRabbitStreamsConn|null); + /** DecodeOptions schemaId */ + schemaId?: (string|null); - /** ReadGroupRabbitStreamsOptions args */ - args?: (protos.args.IRabbitStreamsReadArgs|null); + /** DecodeOptions decodeType */ + decodeType?: (protos.encoding.DecodeType|null); + + /** DecodeOptions protobufSettings */ + protobufSettings?: (protos.encoding.IProtobufSettings|null); + + /** DecodeOptions avroSettings */ + avroSettings?: (protos.encoding.IAvroSettings|null); + + /** DecodeOptions thriftSettings */ + thriftSettings?: (protos.encoding.IThriftSettings|null); } - /** Represents a ReadGroupRabbitStreamsOptions. */ - class ReadGroupRabbitStreamsOptions implements IReadGroupRabbitStreamsOptions { + /** Represents a DecodeOptions. */ + class DecodeOptions implements IDecodeOptions { /** - * Constructs a new ReadGroupRabbitStreamsOptions. + * Constructs a new DecodeOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupRabbitStreamsOptions); + constructor(properties?: protos.encoding.IDecodeOptions); - /** ReadGroupRabbitStreamsOptions _conn. */ - public _conn?: (protos.args.IRabbitStreamsConn|null); + /** DecodeOptions schemaId. */ + public schemaId: string; - /** ReadGroupRabbitStreamsOptions args. */ - public args?: (protos.args.IRabbitStreamsReadArgs|null); + /** DecodeOptions decodeType. */ + public decodeType: protos.encoding.DecodeType; + + /** DecodeOptions protobufSettings. */ + public protobufSettings?: (protos.encoding.IProtobufSettings|null); + + /** DecodeOptions avroSettings. */ + public avroSettings?: (protos.encoding.IAvroSettings|null); + + /** DecodeOptions thriftSettings. */ + public thriftSettings?: (protos.encoding.IThriftSettings|null); /** - * Creates a new ReadGroupRabbitStreamsOptions instance using the specified properties. + * Creates a new DecodeOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupRabbitStreamsOptions instance + * @returns DecodeOptions instance */ - public static create(properties?: protos.opts.IReadGroupRabbitStreamsOptions): protos.opts.ReadGroupRabbitStreamsOptions; + public static create(properties?: protos.encoding.IDecodeOptions): protos.encoding.DecodeOptions; /** - * Encodes the specified ReadGroupRabbitStreamsOptions message. Does not implicitly {@link protos.opts.ReadGroupRabbitStreamsOptions.verify|verify} messages. - * @param message ReadGroupRabbitStreamsOptions message or plain object to encode + * Encodes the specified DecodeOptions message. Does not implicitly {@link protos.encoding.DecodeOptions.verify|verify} messages. + * @param message DecodeOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupRabbitStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.encoding.IDecodeOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupRabbitStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRabbitStreamsOptions.verify|verify} messages. - * @param message ReadGroupRabbitStreamsOptions message or plain object to encode + * Encodes the specified DecodeOptions message, length delimited. Does not implicitly {@link protos.encoding.DecodeOptions.verify|verify} messages. + * @param message DecodeOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupRabbitStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.encoding.IDecodeOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupRabbitStreamsOptions message from the specified reader or buffer. + * Decodes a DecodeOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupRabbitStreamsOptions + * @returns DecodeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupRabbitStreamsOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.DecodeOptions; /** - * Decodes a ReadGroupRabbitStreamsOptions message from the specified reader or buffer, length delimited. + * Decodes a DecodeOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupRabbitStreamsOptions + * @returns DecodeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupRabbitStreamsOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.DecodeOptions; /** - * Verifies a ReadGroupRabbitStreamsOptions message. + * Verifies a DecodeOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupRabbitStreamsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a DecodeOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupRabbitStreamsOptions + * @returns DecodeOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupRabbitStreamsOptions; + public static fromObject(object: { [k: string]: any }): protos.encoding.DecodeOptions; /** - * Creates a plain object from a ReadGroupRabbitStreamsOptions message. Also converts values to other types if specified. - * @param message ReadGroupRabbitStreamsOptions + * Creates a plain object from a DecodeOptions message. Also converts values to other types if specified. + * @param message DecodeOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupRabbitStreamsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.encoding.DecodeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupRabbitStreamsOptions to JSON. + * Converts this DecodeOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of a ReadGroupRedisPubSubOptions. */ - interface IReadGroupRedisPubSubOptions { + /** Namespace opts. */ + namespace opts { - /** ReadGroupRedisPubSubOptions _conn */ - _conn?: (protos.args.IRedisPubSubConn|null); + /** Properties of a GlobalCLIOptions. */ + interface IGlobalCLIOptions { - /** ReadGroupRedisPubSubOptions args */ - args?: (protos.args.IRedisPubSubReadArgs|null); + /** GlobalCLIOptions debug */ + debug?: (boolean|null); + + /** GlobalCLIOptions quiet */ + quiet?: (boolean|null); + + /** GlobalCLIOptions version */ + version?: (boolean|null); + + /** GlobalCLIOptions _fullCommand */ + _fullCommand?: (string|null); + + /** GlobalCLIOptions _action */ + _action?: (string|null); + + /** GlobalCLIOptions _backend */ + _backend?: (string|null); + + /** GlobalCLIOptions _commands */ + _commands?: (string[]|null); } - /** Represents a ReadGroupRedisPubSubOptions. */ - class ReadGroupRedisPubSubOptions implements IReadGroupRedisPubSubOptions { + /** Represents a GlobalCLIOptions. */ + class GlobalCLIOptions implements IGlobalCLIOptions { /** - * Constructs a new ReadGroupRedisPubSubOptions. + * Constructs a new GlobalCLIOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupRedisPubSubOptions); + constructor(properties?: protos.opts.IGlobalCLIOptions); - /** ReadGroupRedisPubSubOptions _conn. */ - public _conn?: (protos.args.IRedisPubSubConn|null); + /** GlobalCLIOptions debug. */ + public debug: boolean; - /** ReadGroupRedisPubSubOptions args. */ - public args?: (protos.args.IRedisPubSubReadArgs|null); + /** GlobalCLIOptions quiet. */ + public quiet: boolean; + + /** GlobalCLIOptions version. */ + public version: boolean; + + /** GlobalCLIOptions _fullCommand. */ + public _fullCommand: string; + + /** GlobalCLIOptions _action. */ + public _action: string; + + /** GlobalCLIOptions _backend. */ + public _backend: string; + + /** GlobalCLIOptions _commands. */ + public _commands: string[]; /** - * Creates a new ReadGroupRedisPubSubOptions instance using the specified properties. + * Creates a new GlobalCLIOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupRedisPubSubOptions instance + * @returns GlobalCLIOptions instance */ - public static create(properties?: protos.opts.IReadGroupRedisPubSubOptions): protos.opts.ReadGroupRedisPubSubOptions; + public static create(properties?: protos.opts.IGlobalCLIOptions): protos.opts.GlobalCLIOptions; /** - * Encodes the specified ReadGroupRedisPubSubOptions message. Does not implicitly {@link protos.opts.ReadGroupRedisPubSubOptions.verify|verify} messages. - * @param message ReadGroupRedisPubSubOptions message or plain object to encode + * Encodes the specified GlobalCLIOptions message. Does not implicitly {@link protos.opts.GlobalCLIOptions.verify|verify} messages. + * @param message GlobalCLIOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupRedisPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IGlobalCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupRedisPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRedisPubSubOptions.verify|verify} messages. - * @param message ReadGroupRedisPubSubOptions message or plain object to encode + * Encodes the specified GlobalCLIOptions message, length delimited. Does not implicitly {@link protos.opts.GlobalCLIOptions.verify|verify} messages. + * @param message GlobalCLIOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupRedisPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IGlobalCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupRedisPubSubOptions message from the specified reader or buffer. + * Decodes a GlobalCLIOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupRedisPubSubOptions + * @returns GlobalCLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupRedisPubSubOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.GlobalCLIOptions; /** - * Decodes a ReadGroupRedisPubSubOptions message from the specified reader or buffer, length delimited. + * Decodes a GlobalCLIOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupRedisPubSubOptions + * @returns GlobalCLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupRedisPubSubOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.GlobalCLIOptions; /** - * Verifies a ReadGroupRedisPubSubOptions message. + * Verifies a GlobalCLIOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupRedisPubSubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a GlobalCLIOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupRedisPubSubOptions + * @returns GlobalCLIOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupRedisPubSubOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.GlobalCLIOptions; /** - * Creates a plain object from a ReadGroupRedisPubSubOptions message. Also converts values to other types if specified. - * @param message ReadGroupRedisPubSubOptions + * Creates a plain object from a GlobalCLIOptions message. Also converts values to other types if specified. + * @param message GlobalCLIOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupRedisPubSubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.GlobalCLIOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupRedisPubSubOptions to JSON. + * Converts this GlobalCLIOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupRedisStreamsOptions. */ - interface IReadGroupRedisStreamsOptions { + /** Properties of a CLIOptions. */ + interface ICLIOptions { - /** ReadGroupRedisStreamsOptions _conn */ - _conn?: (protos.args.IRedisStreamsConn|null); + /** CLIOptions global */ + global?: (protos.opts.IGlobalCLIOptions|null); - /** ReadGroupRedisStreamsOptions args */ - args?: (protos.args.IRedisStreamsReadArgs|null); + /** CLIOptions read */ + read?: (protos.opts.IReadOptions|null); + + /** CLIOptions write */ + write?: (protos.opts.IWriteOptions|null); } - /** Represents a ReadGroupRedisStreamsOptions. */ - class ReadGroupRedisStreamsOptions implements IReadGroupRedisStreamsOptions { + /** Represents a CLIOptions. */ + class CLIOptions implements ICLIOptions { /** - * Constructs a new ReadGroupRedisStreamsOptions. + * Constructs a new CLIOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupRedisStreamsOptions); + constructor(properties?: protos.opts.ICLIOptions); - /** ReadGroupRedisStreamsOptions _conn. */ - public _conn?: (protos.args.IRedisStreamsConn|null); + /** CLIOptions global. */ + public global?: (protos.opts.IGlobalCLIOptions|null); - /** ReadGroupRedisStreamsOptions args. */ - public args?: (protos.args.IRedisStreamsReadArgs|null); + /** CLIOptions read. */ + public read?: (protos.opts.IReadOptions|null); + + /** CLIOptions write. */ + public write?: (protos.opts.IWriteOptions|null); /** - * Creates a new ReadGroupRedisStreamsOptions instance using the specified properties. + * Creates a new CLIOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupRedisStreamsOptions instance + * @returns CLIOptions instance */ - public static create(properties?: protos.opts.IReadGroupRedisStreamsOptions): protos.opts.ReadGroupRedisStreamsOptions; + public static create(properties?: protos.opts.ICLIOptions): protos.opts.CLIOptions; /** - * Encodes the specified ReadGroupRedisStreamsOptions message. Does not implicitly {@link protos.opts.ReadGroupRedisStreamsOptions.verify|verify} messages. - * @param message ReadGroupRedisStreamsOptions message or plain object to encode + * Encodes the specified CLIOptions message. Does not implicitly {@link protos.opts.CLIOptions.verify|verify} messages. + * @param message CLIOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupRedisStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.ICLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupRedisStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRedisStreamsOptions.verify|verify} messages. - * @param message ReadGroupRedisStreamsOptions message or plain object to encode + * Encodes the specified CLIOptions message, length delimited. Does not implicitly {@link protos.opts.CLIOptions.verify|verify} messages. + * @param message CLIOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupRedisStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.ICLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupRedisStreamsOptions message from the specified reader or buffer. + * Decodes a CLIOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupRedisStreamsOptions + * @returns CLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupRedisStreamsOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.CLIOptions; /** - * Decodes a ReadGroupRedisStreamsOptions message from the specified reader or buffer, length delimited. + * Decodes a CLIOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupRedisStreamsOptions + * @returns CLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupRedisStreamsOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.CLIOptions; /** - * Verifies a ReadGroupRedisStreamsOptions message. + * Verifies a CLIOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupRedisStreamsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a CLIOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupRedisStreamsOptions + * @returns CLIOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupRedisStreamsOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.CLIOptions; /** - * Creates a plain object from a ReadGroupRedisStreamsOptions message. Also converts values to other types if specified. - * @param message ReadGroupRedisStreamsOptions + * Creates a plain object from a CLIOptions message. Also converts values to other types if specified. + * @param message CLIOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupRedisStreamsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.CLIOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupRedisStreamsOptions to JSON. + * Converts this CLIOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupAzureEventHubOptions. */ - interface IReadGroupAzureEventHubOptions { + /** ConvertOption enum. */ + enum ConvertOption { + CONVERT_OPTION_UNSET = 0, + CONVERT_OPTION_BASE64 = 1, + CONVERT_OPTION_GZIP = 2 + } - /** ReadGroupAzureEventHubOptions _conn */ - _conn?: (protos.args.IAzureEventHubConn|null); + /** Properties of a ReadCLIOptions. */ + interface IReadCLIOptions { - /** ReadGroupAzureEventHubOptions args */ - args?: (protos.args.IAzureEventHubReadArgs|null); + /** ReadCLIOptions verboseOutput */ + verboseOutput?: (boolean|null); + + /** ReadCLIOptions pretty */ + pretty?: (boolean|null); + + /** ReadCLIOptions json */ + json?: (boolean|null); } - /** Represents a ReadGroupAzureEventHubOptions. */ - class ReadGroupAzureEventHubOptions implements IReadGroupAzureEventHubOptions { + /** Represents a ReadCLIOptions. */ + class ReadCLIOptions implements IReadCLIOptions { /** - * Constructs a new ReadGroupAzureEventHubOptions. + * Constructs a new ReadCLIOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupAzureEventHubOptions); + constructor(properties?: protos.opts.IReadCLIOptions); - /** ReadGroupAzureEventHubOptions _conn. */ - public _conn?: (protos.args.IAzureEventHubConn|null); + /** ReadCLIOptions verboseOutput. */ + public verboseOutput: boolean; - /** ReadGroupAzureEventHubOptions args. */ - public args?: (protos.args.IAzureEventHubReadArgs|null); + /** ReadCLIOptions pretty. */ + public pretty: boolean; + + /** ReadCLIOptions json. */ + public json: boolean; /** - * Creates a new ReadGroupAzureEventHubOptions instance using the specified properties. + * Creates a new ReadCLIOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupAzureEventHubOptions instance + * @returns ReadCLIOptions instance */ - public static create(properties?: protos.opts.IReadGroupAzureEventHubOptions): protos.opts.ReadGroupAzureEventHubOptions; + public static create(properties?: protos.opts.IReadCLIOptions): protos.opts.ReadCLIOptions; /** - * Encodes the specified ReadGroupAzureEventHubOptions message. Does not implicitly {@link protos.opts.ReadGroupAzureEventHubOptions.verify|verify} messages. - * @param message ReadGroupAzureEventHubOptions message or plain object to encode + * Encodes the specified ReadCLIOptions message. Does not implicitly {@link protos.opts.ReadCLIOptions.verify|verify} messages. + * @param message ReadCLIOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupAzureEventHubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupAzureEventHubOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAzureEventHubOptions.verify|verify} messages. - * @param message ReadGroupAzureEventHubOptions message or plain object to encode + * Encodes the specified ReadCLIOptions message, length delimited. Does not implicitly {@link protos.opts.ReadCLIOptions.verify|verify} messages. + * @param message ReadCLIOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupAzureEventHubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupAzureEventHubOptions message from the specified reader or buffer. + * Decodes a ReadCLIOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupAzureEventHubOptions + * @returns ReadCLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupAzureEventHubOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadCLIOptions; /** - * Decodes a ReadGroupAzureEventHubOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadCLIOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupAzureEventHubOptions + * @returns ReadCLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupAzureEventHubOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadCLIOptions; /** - * Verifies a ReadGroupAzureEventHubOptions message. + * Verifies a ReadCLIOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupAzureEventHubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadCLIOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupAzureEventHubOptions + * @returns ReadCLIOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupAzureEventHubOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadCLIOptions; /** - * Creates a plain object from a ReadGroupAzureEventHubOptions message. Also converts values to other types if specified. - * @param message ReadGroupAzureEventHubOptions + * Creates a plain object from a ReadCLIOptions message. Also converts values to other types if specified. + * @param message ReadCLIOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupAzureEventHubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadCLIOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupAzureEventHubOptions to JSON. + * Converts this ReadCLIOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupAzureServiceBusOptions. */ - interface IReadGroupAzureServiceBusOptions { + /** Properties of a ReadSampleOptions. */ + interface IReadSampleOptions { - /** ReadGroupAzureServiceBusOptions _conn */ - _conn?: (protos.args.IAzureServiceBusConn|null); + /** ReadSampleOptions sampleRate */ + sampleRate?: (number|null); - /** ReadGroupAzureServiceBusOptions args */ - args?: (protos.args.IAzureServiceBusReadArgs|null); + /** ReadSampleOptions sampleIntervalSeconds */ + sampleIntervalSeconds?: (number|null); } - /** Represents a ReadGroupAzureServiceBusOptions. */ - class ReadGroupAzureServiceBusOptions implements IReadGroupAzureServiceBusOptions { + /** Represents a ReadSampleOptions. */ + class ReadSampleOptions implements IReadSampleOptions { /** - * Constructs a new ReadGroupAzureServiceBusOptions. + * Constructs a new ReadSampleOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupAzureServiceBusOptions); + constructor(properties?: protos.opts.IReadSampleOptions); - /** ReadGroupAzureServiceBusOptions _conn. */ - public _conn?: (protos.args.IAzureServiceBusConn|null); + /** ReadSampleOptions sampleRate. */ + public sampleRate: number; - /** ReadGroupAzureServiceBusOptions args. */ - public args?: (protos.args.IAzureServiceBusReadArgs|null); + /** ReadSampleOptions sampleIntervalSeconds. */ + public sampleIntervalSeconds: number; /** - * Creates a new ReadGroupAzureServiceBusOptions instance using the specified properties. + * Creates a new ReadSampleOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupAzureServiceBusOptions instance + * @returns ReadSampleOptions instance */ - public static create(properties?: protos.opts.IReadGroupAzureServiceBusOptions): protos.opts.ReadGroupAzureServiceBusOptions; + public static create(properties?: protos.opts.IReadSampleOptions): protos.opts.ReadSampleOptions; /** - * Encodes the specified ReadGroupAzureServiceBusOptions message. Does not implicitly {@link protos.opts.ReadGroupAzureServiceBusOptions.verify|verify} messages. - * @param message ReadGroupAzureServiceBusOptions message or plain object to encode + * Encodes the specified ReadSampleOptions message. Does not implicitly {@link protos.opts.ReadSampleOptions.verify|verify} messages. + * @param message ReadSampleOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupAzureServiceBusOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadSampleOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupAzureServiceBusOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAzureServiceBusOptions.verify|verify} messages. - * @param message ReadGroupAzureServiceBusOptions message or plain object to encode + * Encodes the specified ReadSampleOptions message, length delimited. Does not implicitly {@link protos.opts.ReadSampleOptions.verify|verify} messages. + * @param message ReadSampleOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupAzureServiceBusOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadSampleOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupAzureServiceBusOptions message from the specified reader or buffer. + * Decodes a ReadSampleOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupAzureServiceBusOptions + * @returns ReadSampleOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupAzureServiceBusOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadSampleOptions; /** - * Decodes a ReadGroupAzureServiceBusOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadSampleOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupAzureServiceBusOptions + * @returns ReadSampleOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupAzureServiceBusOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadSampleOptions; /** - * Verifies a ReadGroupAzureServiceBusOptions message. + * Verifies a ReadSampleOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupAzureServiceBusOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadSampleOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupAzureServiceBusOptions + * @returns ReadSampleOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupAzureServiceBusOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadSampleOptions; /** - * Creates a plain object from a ReadGroupAzureServiceBusOptions message. Also converts values to other types if specified. - * @param message ReadGroupAzureServiceBusOptions + * Creates a plain object from a ReadSampleOptions message. Also converts values to other types if specified. + * @param message ReadSampleOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupAzureServiceBusOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadSampleOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupAzureServiceBusOptions to JSON. + * Converts this ReadSampleOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupMQTTOptions. */ - interface IReadGroupMQTTOptions { + /** Properties of a ReadFilterOptions. */ + interface IReadFilterOptions { - /** ReadGroupMQTTOptions _conn */ - _conn?: (protos.args.IMQTTConn|null); - - /** ReadGroupMQTTOptions args */ - args?: (protos.args.IMQTTReadArgs|null); + /** ReadFilterOptions query */ + query?: (string|null); } - /** Represents a ReadGroupMQTTOptions. */ - class ReadGroupMQTTOptions implements IReadGroupMQTTOptions { + /** Represents a ReadFilterOptions. */ + class ReadFilterOptions implements IReadFilterOptions { /** - * Constructs a new ReadGroupMQTTOptions. + * Constructs a new ReadFilterOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupMQTTOptions); - - /** ReadGroupMQTTOptions _conn. */ - public _conn?: (protos.args.IMQTTConn|null); + constructor(properties?: protos.opts.IReadFilterOptions); - /** ReadGroupMQTTOptions args. */ - public args?: (protos.args.IMQTTReadArgs|null); + /** ReadFilterOptions query. */ + public query: string; /** - * Creates a new ReadGroupMQTTOptions instance using the specified properties. + * Creates a new ReadFilterOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupMQTTOptions instance + * @returns ReadFilterOptions instance */ - public static create(properties?: protos.opts.IReadGroupMQTTOptions): protos.opts.ReadGroupMQTTOptions; + public static create(properties?: protos.opts.IReadFilterOptions): protos.opts.ReadFilterOptions; /** - * Encodes the specified ReadGroupMQTTOptions message. Does not implicitly {@link protos.opts.ReadGroupMQTTOptions.verify|verify} messages. - * @param message ReadGroupMQTTOptions message or plain object to encode + * Encodes the specified ReadFilterOptions message. Does not implicitly {@link protos.opts.ReadFilterOptions.verify|verify} messages. + * @param message ReadFilterOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupMQTTOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadFilterOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupMQTTOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupMQTTOptions.verify|verify} messages. - * @param message ReadGroupMQTTOptions message or plain object to encode + * Encodes the specified ReadFilterOptions message, length delimited. Does not implicitly {@link protos.opts.ReadFilterOptions.verify|verify} messages. + * @param message ReadFilterOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupMQTTOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadFilterOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupMQTTOptions message from the specified reader or buffer. + * Decodes a ReadFilterOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupMQTTOptions + * @returns ReadFilterOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupMQTTOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadFilterOptions; /** - * Decodes a ReadGroupMQTTOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadFilterOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupMQTTOptions + * @returns ReadFilterOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupMQTTOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadFilterOptions; /** - * Verifies a ReadGroupMQTTOptions message. + * Verifies a ReadFilterOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupMQTTOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFilterOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupMQTTOptions + * @returns ReadFilterOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupMQTTOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadFilterOptions; /** - * Creates a plain object from a ReadGroupMQTTOptions message. Also converts values to other types if specified. - * @param message ReadGroupMQTTOptions + * Creates a plain object from a ReadFilterOptions message. Also converts values to other types if specified. + * @param message ReadFilterOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupMQTTOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadFilterOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupMQTTOptions to JSON. + * Converts this ReadFilterOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupGCPPubSubOptions. */ - interface IReadGroupGCPPubSubOptions { + /** Properties of a ReadOptions. */ + interface IReadOptions { - /** ReadGroupGCPPubSubOptions _conn */ - _conn?: (protos.args.IGCPPubSubConn|null); + /** ReadOptions name */ + name?: (string|null); - /** ReadGroupGCPPubSubOptions args */ - args?: (protos.args.IGCPPubSubReadArgs|null); - } + /** ReadOptions connectionId */ + connectionId?: (string|null); - /** Represents a ReadGroupGCPPubSubOptions. */ - class ReadGroupGCPPubSubOptions implements IReadGroupGCPPubSubOptions { + /** ReadOptions continuous */ + continuous?: (boolean|null); - /** - * Constructs a new ReadGroupGCPPubSubOptions. - * @param [properties] Properties to set - */ - constructor(properties?: protos.opts.IReadGroupGCPPubSubOptions); + /** ReadOptions sampleOptions */ + sampleOptions?: (protos.opts.IReadSampleOptions|null); - /** ReadGroupGCPPubSubOptions _conn. */ - public _conn?: (protos.args.IGCPPubSubConn|null); + /** ReadOptions decodeOptions */ + decodeOptions?: (protos.encoding.IDecodeOptions|null); - /** ReadGroupGCPPubSubOptions args. */ - public args?: (protos.args.IGCPPubSubReadArgs|null); + /** ReadOptions convertOutput */ + convertOutput?: (protos.opts.ConvertOption|null); - /** - * Creates a new ReadGroupGCPPubSubOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns ReadGroupGCPPubSubOptions instance - */ - public static create(properties?: protos.opts.IReadGroupGCPPubSubOptions): protos.opts.ReadGroupGCPPubSubOptions; + /** ReadOptions filter */ + filter?: (protos.opts.IReadFilterOptions|null); - /** - * Encodes the specified ReadGroupGCPPubSubOptions message. Does not implicitly {@link protos.opts.ReadGroupGCPPubSubOptions.verify|verify} messages. - * @param message ReadGroupGCPPubSubOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.opts.IReadGroupGCPPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** ReadOptions inferSchemaOptions */ + inferSchemaOptions?: (protos.opts.IInferSchemaOptions|null); - /** - * Encodes the specified ReadGroupGCPPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupGCPPubSubOptions.verify|verify} messages. - * @param message ReadGroupGCPPubSubOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.opts.IReadGroupGCPPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** ReadOptions _id */ + _id?: (string|null); - /** - * Decodes a ReadGroupGCPPubSubOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReadGroupGCPPubSubOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupGCPPubSubOptions; + /** ReadOptions _active */ + _active?: (boolean|null); - /** - * Decodes a ReadGroupGCPPubSubOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReadGroupGCPPubSubOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupGCPPubSubOptions; + /** ReadOptions _cliOptions */ + _cliOptions?: (protos.opts.IReadCLIOptions|null); - /** - * Verifies a ReadGroupGCPPubSubOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ReadOptions kafka */ + kafka?: (protos.opts.IReadGroupKafkaOptions|null); - /** - * Creates a ReadGroupGCPPubSubOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReadGroupGCPPubSubOptions - */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupGCPPubSubOptions; + /** ReadOptions activemq */ + activemq?: (protos.opts.IReadGroupActiveMQOptions|null); - /** - * Creates a plain object from a ReadGroupGCPPubSubOptions message. Also converts values to other types if specified. - * @param message ReadGroupGCPPubSubOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.opts.ReadGroupGCPPubSubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ReadOptions awsSqs */ + awsSqs?: (protos.opts.IReadGroupAWSSQSOptions|null); - /** - * Converts this ReadGroupGCPPubSubOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ReadOptions mongo */ + mongo?: (protos.opts.IReadGroupMongoOptions|null); - /** Properties of a ReadGroupKubeMQQueueOptions. */ - interface IReadGroupKubeMQQueueOptions { + /** ReadOptions nats */ + nats?: (protos.opts.IReadGroupNatsOptions|null); - /** ReadGroupKubeMQQueueOptions _conn */ - _conn?: (protos.args.IKubeMQQueueConn|null); + /** ReadOptions natsStreaming */ + natsStreaming?: (protos.opts.IReadGroupNatsStreamingOptions|null); - /** ReadGroupKubeMQQueueOptions args */ - args?: (protos.args.IKubeMQQueueReadArgs|null); - } + /** ReadOptions nsq */ + nsq?: (protos.opts.IReadGroupNSQOptions|null); - /** Represents a ReadGroupKubeMQQueueOptions. */ - class ReadGroupKubeMQQueueOptions implements IReadGroupKubeMQQueueOptions { + /** ReadOptions pulsar */ + pulsar?: (protos.opts.IReadGroupPulsarOptions|null); - /** - * Constructs a new ReadGroupKubeMQQueueOptions. - * @param [properties] Properties to set - */ - constructor(properties?: protos.opts.IReadGroupKubeMQQueueOptions); + /** ReadOptions rabbit */ + rabbit?: (protos.opts.IReadGroupRabbitOptions|null); - /** ReadGroupKubeMQQueueOptions _conn. */ - public _conn?: (protos.args.IKubeMQQueueConn|null); + /** ReadOptions rabbitStreams */ + rabbitStreams?: (protos.opts.IReadGroupRabbitStreamsOptions|null); - /** ReadGroupKubeMQQueueOptions args. */ - public args?: (protos.args.IKubeMQQueueReadArgs|null); + /** ReadOptions mqtt */ + mqtt?: (protos.opts.IReadGroupMQTTOptions|null); - /** - * Creates a new ReadGroupKubeMQQueueOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns ReadGroupKubeMQQueueOptions instance - */ - public static create(properties?: protos.opts.IReadGroupKubeMQQueueOptions): protos.opts.ReadGroupKubeMQQueueOptions; + /** ReadOptions azureServiceBus */ + azureServiceBus?: (protos.opts.IReadGroupAzureServiceBusOptions|null); - /** - * Encodes the specified ReadGroupKubeMQQueueOptions message. Does not implicitly {@link protos.opts.ReadGroupKubeMQQueueOptions.verify|verify} messages. - * @param message ReadGroupKubeMQQueueOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.opts.IReadGroupKubeMQQueueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** ReadOptions azureEventHub */ + azureEventHub?: (protos.opts.IReadGroupAzureEventHubOptions|null); - /** - * Encodes the specified ReadGroupKubeMQQueueOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupKubeMQQueueOptions.verify|verify} messages. - * @param message ReadGroupKubeMQQueueOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.opts.IReadGroupKubeMQQueueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + /** ReadOptions gcpPubsub */ + gcpPubsub?: (protos.opts.IReadGroupGCPPubSubOptions|null); - /** - * Decodes a ReadGroupKubeMQQueueOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReadGroupKubeMQQueueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupKubeMQQueueOptions; + /** ReadOptions kubemqQueue */ + kubemqQueue?: (protos.opts.IReadGroupKubeMQQueueOptions|null); - /** - * Decodes a ReadGroupKubeMQQueueOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReadGroupKubeMQQueueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupKubeMQQueueOptions; - - /** - * Verifies a ReadGroupKubeMQQueueOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ReadGroupKubeMQQueueOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReadGroupKubeMQQueueOptions - */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupKubeMQQueueOptions; + /** ReadOptions redisPubsub */ + redisPubsub?: (protos.opts.IReadGroupRedisPubSubOptions|null); - /** - * Creates a plain object from a ReadGroupKubeMQQueueOptions message. Also converts values to other types if specified. - * @param message ReadGroupKubeMQQueueOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.opts.ReadGroupKubeMQQueueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ReadOptions redisStreams */ + redisStreams?: (protos.opts.IReadGroupRedisStreamsOptions|null); - /** - * Converts this ReadGroupKubeMQQueueOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ReadOptions postgres */ + postgres?: (protos.opts.IReadGroupPostgresOptions|null); - /** Properties of a ReadGroupAWSKinesisOptions. */ - interface IReadGroupAWSKinesisOptions { + /** ReadOptions natsJetstream */ + natsJetstream?: (protos.opts.IReadGroupNatsJetstreamOptions|null); - /** ReadGroupAWSKinesisOptions _conn */ - _conn?: (protos.args.IAWSKinesisConn|null); + /** ReadOptions awsKinesis */ + awsKinesis?: (protos.opts.IReadGroupAWSKinesisOptions|null); - /** ReadGroupAWSKinesisOptions args */ - args?: (protos.args.IAWSKinesisReadArgs|null); + /** ReadOptions memphis */ + memphis?: (protos.opts.IReadGroupMemphisOptions|null); } - /** Represents a ReadGroupAWSKinesisOptions. */ - class ReadGroupAWSKinesisOptions implements IReadGroupAWSKinesisOptions { + /** Represents a ReadOptions. */ + class ReadOptions implements IReadOptions { /** - * Constructs a new ReadGroupAWSKinesisOptions. + * Constructs a new ReadOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupAWSKinesisOptions); + constructor(properties?: protos.opts.IReadOptions); - /** ReadGroupAWSKinesisOptions _conn. */ - public _conn?: (protos.args.IAWSKinesisConn|null); + /** ReadOptions name. */ + public name: string; - /** ReadGroupAWSKinesisOptions args. */ - public args?: (protos.args.IAWSKinesisReadArgs|null); + /** ReadOptions connectionId. */ + public connectionId: string; + + /** ReadOptions continuous. */ + public continuous: boolean; + + /** ReadOptions sampleOptions. */ + public sampleOptions?: (protos.opts.IReadSampleOptions|null); + + /** ReadOptions decodeOptions. */ + public decodeOptions?: (protos.encoding.IDecodeOptions|null); + + /** ReadOptions convertOutput. */ + public convertOutput: protos.opts.ConvertOption; + + /** ReadOptions filter. */ + public filter?: (protos.opts.IReadFilterOptions|null); + + /** ReadOptions inferSchemaOptions. */ + public inferSchemaOptions?: (protos.opts.IInferSchemaOptions|null); + + /** ReadOptions _id. */ + public _id: string; + + /** ReadOptions _active. */ + public _active: boolean; + + /** ReadOptions _cliOptions. */ + public _cliOptions?: (protos.opts.IReadCLIOptions|null); + + /** ReadOptions kafka. */ + public kafka?: (protos.opts.IReadGroupKafkaOptions|null); + + /** ReadOptions activemq. */ + public activemq?: (protos.opts.IReadGroupActiveMQOptions|null); + + /** ReadOptions awsSqs. */ + public awsSqs?: (protos.opts.IReadGroupAWSSQSOptions|null); + + /** ReadOptions mongo. */ + public mongo?: (protos.opts.IReadGroupMongoOptions|null); + + /** ReadOptions nats. */ + public nats?: (protos.opts.IReadGroupNatsOptions|null); + + /** ReadOptions natsStreaming. */ + public natsStreaming?: (protos.opts.IReadGroupNatsStreamingOptions|null); + + /** ReadOptions nsq. */ + public nsq?: (protos.opts.IReadGroupNSQOptions|null); + + /** ReadOptions pulsar. */ + public pulsar?: (protos.opts.IReadGroupPulsarOptions|null); + + /** ReadOptions rabbit. */ + public rabbit?: (protos.opts.IReadGroupRabbitOptions|null); + + /** ReadOptions rabbitStreams. */ + public rabbitStreams?: (protos.opts.IReadGroupRabbitStreamsOptions|null); + + /** ReadOptions mqtt. */ + public mqtt?: (protos.opts.IReadGroupMQTTOptions|null); + + /** ReadOptions azureServiceBus. */ + public azureServiceBus?: (protos.opts.IReadGroupAzureServiceBusOptions|null); + + /** ReadOptions azureEventHub. */ + public azureEventHub?: (protos.opts.IReadGroupAzureEventHubOptions|null); + + /** ReadOptions gcpPubsub. */ + public gcpPubsub?: (protos.opts.IReadGroupGCPPubSubOptions|null); + + /** ReadOptions kubemqQueue. */ + public kubemqQueue?: (protos.opts.IReadGroupKubeMQQueueOptions|null); + + /** ReadOptions redisPubsub. */ + public redisPubsub?: (protos.opts.IReadGroupRedisPubSubOptions|null); + + /** ReadOptions redisStreams. */ + public redisStreams?: (protos.opts.IReadGroupRedisStreamsOptions|null); + + /** ReadOptions postgres. */ + public postgres?: (protos.opts.IReadGroupPostgresOptions|null); + + /** ReadOptions natsJetstream. */ + public natsJetstream?: (protos.opts.IReadGroupNatsJetstreamOptions|null); + + /** ReadOptions awsKinesis. */ + public awsKinesis?: (protos.opts.IReadGroupAWSKinesisOptions|null); + + /** ReadOptions memphis. */ + public memphis?: (protos.opts.IReadGroupMemphisOptions|null); /** - * Creates a new ReadGroupAWSKinesisOptions instance using the specified properties. + * Creates a new ReadOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupAWSKinesisOptions instance + * @returns ReadOptions instance */ - public static create(properties?: protos.opts.IReadGroupAWSKinesisOptions): protos.opts.ReadGroupAWSKinesisOptions; + public static create(properties?: protos.opts.IReadOptions): protos.opts.ReadOptions; /** - * Encodes the specified ReadGroupAWSKinesisOptions message. Does not implicitly {@link protos.opts.ReadGroupAWSKinesisOptions.verify|verify} messages. - * @param message ReadGroupAWSKinesisOptions message or plain object to encode + * Encodes the specified ReadOptions message. Does not implicitly {@link protos.opts.ReadOptions.verify|verify} messages. + * @param message ReadOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupAWSKinesisOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupAWSKinesisOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAWSKinesisOptions.verify|verify} messages. - * @param message ReadGroupAWSKinesisOptions message or plain object to encode + * Encodes the specified ReadOptions message, length delimited. Does not implicitly {@link protos.opts.ReadOptions.verify|verify} messages. + * @param message ReadOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupAWSKinesisOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupAWSKinesisOptions message from the specified reader or buffer. + * Decodes a ReadOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupAWSKinesisOptions + * @returns ReadOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupAWSKinesisOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadOptions; /** - * Decodes a ReadGroupAWSKinesisOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupAWSKinesisOptions + * @returns ReadOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupAWSKinesisOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadOptions; /** - * Verifies a ReadGroupAWSKinesisOptions message. + * Verifies a ReadOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupAWSKinesisOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupAWSKinesisOptions + * @returns ReadOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupAWSKinesisOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadOptions; /** - * Creates a plain object from a ReadGroupAWSKinesisOptions message. Also converts values to other types if specified. - * @param message ReadGroupAWSKinesisOptions + * Creates a plain object from a ReadOptions message. Also converts values to other types if specified. + * @param message ReadOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupAWSKinesisOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupAWSKinesisOptions to JSON. + * Converts this ReadOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadGroupMemphisOptions. */ - interface IReadGroupMemphisOptions { + /** Properties of a ReadGroupKafkaOptions. */ + interface IReadGroupKafkaOptions { - /** ReadGroupMemphisOptions _conn */ - _conn?: (protos.args.IMemphisConn|null); + /** ReadGroupKafkaOptions _conn */ + _conn?: (protos.args.IKafkaConn|null); - /** ReadGroupMemphisOptions args */ - args?: (protos.args.IMemphisReadArgs|null); + /** ReadGroupKafkaOptions args */ + args?: (protos.args.IKafkaReadArgs|null); } - /** Represents a ReadGroupMemphisOptions. */ - class ReadGroupMemphisOptions implements IReadGroupMemphisOptions { + /** Represents a ReadGroupKafkaOptions. */ + class ReadGroupKafkaOptions implements IReadGroupKafkaOptions { /** - * Constructs a new ReadGroupMemphisOptions. + * Constructs a new ReadGroupKafkaOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IReadGroupMemphisOptions); + constructor(properties?: protos.opts.IReadGroupKafkaOptions); - /** ReadGroupMemphisOptions _conn. */ - public _conn?: (protos.args.IMemphisConn|null); + /** ReadGroupKafkaOptions _conn. */ + public _conn?: (protos.args.IKafkaConn|null); - /** ReadGroupMemphisOptions args. */ - public args?: (protos.args.IMemphisReadArgs|null); + /** ReadGroupKafkaOptions args. */ + public args?: (protos.args.IKafkaReadArgs|null); /** - * Creates a new ReadGroupMemphisOptions instance using the specified properties. + * Creates a new ReadGroupKafkaOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ReadGroupMemphisOptions instance + * @returns ReadGroupKafkaOptions instance */ - public static create(properties?: protos.opts.IReadGroupMemphisOptions): protos.opts.ReadGroupMemphisOptions; + public static create(properties?: protos.opts.IReadGroupKafkaOptions): protos.opts.ReadGroupKafkaOptions; /** - * Encodes the specified ReadGroupMemphisOptions message. Does not implicitly {@link protos.opts.ReadGroupMemphisOptions.verify|verify} messages. - * @param message ReadGroupMemphisOptions message or plain object to encode + * Encodes the specified ReadGroupKafkaOptions message. Does not implicitly {@link protos.opts.ReadGroupKafkaOptions.verify|verify} messages. + * @param message ReadGroupKafkaOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IReadGroupMemphisOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupKafkaOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadGroupMemphisOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupMemphisOptions.verify|verify} messages. - * @param message ReadGroupMemphisOptions message or plain object to encode + * Encodes the specified ReadGroupKafkaOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupKafkaOptions.verify|verify} messages. + * @param message ReadGroupKafkaOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IReadGroupMemphisOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupKafkaOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadGroupMemphisOptions message from the specified reader or buffer. + * Decodes a ReadGroupKafkaOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadGroupMemphisOptions + * @returns ReadGroupKafkaOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupMemphisOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupKafkaOptions; /** - * Decodes a ReadGroupMemphisOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupKafkaOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadGroupMemphisOptions + * @returns ReadGroupKafkaOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupMemphisOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupKafkaOptions; /** - * Verifies a ReadGroupMemphisOptions message. + * Verifies a ReadGroupKafkaOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadGroupMemphisOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupKafkaOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadGroupMemphisOptions + * @returns ReadGroupKafkaOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupMemphisOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupKafkaOptions; /** - * Creates a plain object from a ReadGroupMemphisOptions message. Also converts values to other types if specified. - * @param message ReadGroupMemphisOptions + * Creates a plain object from a ReadGroupKafkaOptions message. Also converts values to other types if specified. + * @param message ReadGroupKafkaOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.ReadGroupMemphisOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupKafkaOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadGroupMemphisOptions to JSON. + * Converts this ReadGroupKafkaOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an InferSchemaOptions. */ - interface IInferSchemaOptions { + /** Properties of a ReadGroupActiveMQOptions. */ + interface IReadGroupActiveMQOptions { - /** InferSchemaOptions type */ - type?: (protos.opts.InferSchemaOptions.Type|null); + /** ReadGroupActiveMQOptions _conn */ + _conn?: (protos.args.IActiveMQConn|null); - /** InferSchemaOptions schemaId */ - schemaId?: (string|null); + /** ReadGroupActiveMQOptions args */ + args?: (protos.args.IActiveMQReadArgs|null); } - /** Represents an InferSchemaOptions. */ - class InferSchemaOptions implements IInferSchemaOptions { + /** Represents a ReadGroupActiveMQOptions. */ + class ReadGroupActiveMQOptions implements IReadGroupActiveMQOptions { /** - * Constructs a new InferSchemaOptions. + * Constructs a new ReadGroupActiveMQOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IInferSchemaOptions); + constructor(properties?: protos.opts.IReadGroupActiveMQOptions); - /** InferSchemaOptions type. */ - public type: protos.opts.InferSchemaOptions.Type; + /** ReadGroupActiveMQOptions _conn. */ + public _conn?: (protos.args.IActiveMQConn|null); - /** InferSchemaOptions schemaId. */ - public schemaId: string; + /** ReadGroupActiveMQOptions args. */ + public args?: (protos.args.IActiveMQReadArgs|null); /** - * Creates a new InferSchemaOptions instance using the specified properties. + * Creates a new ReadGroupActiveMQOptions instance using the specified properties. * @param [properties] Properties to set - * @returns InferSchemaOptions instance + * @returns ReadGroupActiveMQOptions instance */ - public static create(properties?: protos.opts.IInferSchemaOptions): protos.opts.InferSchemaOptions; + public static create(properties?: protos.opts.IReadGroupActiveMQOptions): protos.opts.ReadGroupActiveMQOptions; /** - * Encodes the specified InferSchemaOptions message. Does not implicitly {@link protos.opts.InferSchemaOptions.verify|verify} messages. - * @param message InferSchemaOptions message or plain object to encode + * Encodes the specified ReadGroupActiveMQOptions message. Does not implicitly {@link protos.opts.ReadGroupActiveMQOptions.verify|verify} messages. + * @param message ReadGroupActiveMQOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IInferSchemaOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupActiveMQOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InferSchemaOptions message, length delimited. Does not implicitly {@link protos.opts.InferSchemaOptions.verify|verify} messages. - * @param message InferSchemaOptions message or plain object to encode + * Encodes the specified ReadGroupActiveMQOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupActiveMQOptions.verify|verify} messages. + * @param message ReadGroupActiveMQOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IInferSchemaOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupActiveMQOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InferSchemaOptions message from the specified reader or buffer. + * Decodes a ReadGroupActiveMQOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InferSchemaOptions + * @returns ReadGroupActiveMQOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.InferSchemaOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupActiveMQOptions; /** - * Decodes an InferSchemaOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupActiveMQOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InferSchemaOptions + * @returns ReadGroupActiveMQOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.InferSchemaOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupActiveMQOptions; /** - * Verifies an InferSchemaOptions message. + * Verifies a ReadGroupActiveMQOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an InferSchemaOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupActiveMQOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InferSchemaOptions + * @returns ReadGroupActiveMQOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.InferSchemaOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupActiveMQOptions; /** - * Creates a plain object from an InferSchemaOptions message. Also converts values to other types if specified. - * @param message InferSchemaOptions + * Creates a plain object from a ReadGroupActiveMQOptions message. Also converts values to other types if specified. + * @param message ReadGroupActiveMQOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.InferSchemaOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupActiveMQOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InferSchemaOptions to JSON. + * Converts this ReadGroupActiveMQOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace InferSchemaOptions { - - /** Type enum. */ - enum Type { - UNSET = 0, - JSONSCHEMA = 1 - } - } - - /** Properties of a WriteCLIOptions. */ - interface IWriteCLIOptions { - - /** WriteCLIOptions inputFile */ - inputFile?: (string|null); + /** Properties of a ReadGroupAWSSQSOptions. */ + interface IReadGroupAWSSQSOptions { - /** WriteCLIOptions inputAsJsonArray */ - inputAsJsonArray?: (boolean|null); + /** ReadGroupAWSSQSOptions _conn */ + _conn?: (protos.args.IAWSSQSConn|null); - /** WriteCLIOptions inputStdin */ - inputStdin?: (string[]|null); + /** ReadGroupAWSSQSOptions args */ + args?: (protos.args.IAWSSQSReadArgs|null); } - /** Represents a WriteCLIOptions. */ - class WriteCLIOptions implements IWriteCLIOptions { + /** Represents a ReadGroupAWSSQSOptions. */ + class ReadGroupAWSSQSOptions implements IReadGroupAWSSQSOptions { /** - * Constructs a new WriteCLIOptions. + * Constructs a new ReadGroupAWSSQSOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteCLIOptions); - - /** WriteCLIOptions inputFile. */ - public inputFile: string; + constructor(properties?: protos.opts.IReadGroupAWSSQSOptions); - /** WriteCLIOptions inputAsJsonArray. */ - public inputAsJsonArray: boolean; + /** ReadGroupAWSSQSOptions _conn. */ + public _conn?: (protos.args.IAWSSQSConn|null); - /** WriteCLIOptions inputStdin. */ - public inputStdin: string[]; + /** ReadGroupAWSSQSOptions args. */ + public args?: (protos.args.IAWSSQSReadArgs|null); /** - * Creates a new WriteCLIOptions instance using the specified properties. + * Creates a new ReadGroupAWSSQSOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteCLIOptions instance + * @returns ReadGroupAWSSQSOptions instance */ - public static create(properties?: protos.opts.IWriteCLIOptions): protos.opts.WriteCLIOptions; + public static create(properties?: protos.opts.IReadGroupAWSSQSOptions): protos.opts.ReadGroupAWSSQSOptions; /** - * Encodes the specified WriteCLIOptions message. Does not implicitly {@link protos.opts.WriteCLIOptions.verify|verify} messages. - * @param message WriteCLIOptions message or plain object to encode + * Encodes the specified ReadGroupAWSSQSOptions message. Does not implicitly {@link protos.opts.ReadGroupAWSSQSOptions.verify|verify} messages. + * @param message ReadGroupAWSSQSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupAWSSQSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteCLIOptions message, length delimited. Does not implicitly {@link protos.opts.WriteCLIOptions.verify|verify} messages. - * @param message WriteCLIOptions message or plain object to encode + * Encodes the specified ReadGroupAWSSQSOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAWSSQSOptions.verify|verify} messages. + * @param message ReadGroupAWSSQSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupAWSSQSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteCLIOptions message from the specified reader or buffer. + * Decodes a ReadGroupAWSSQSOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteCLIOptions + * @returns ReadGroupAWSSQSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteCLIOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupAWSSQSOptions; /** - * Decodes a WriteCLIOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupAWSSQSOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteCLIOptions + * @returns ReadGroupAWSSQSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteCLIOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupAWSSQSOptions; /** - * Verifies a WriteCLIOptions message. + * Verifies a ReadGroupAWSSQSOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteCLIOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupAWSSQSOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteCLIOptions + * @returns ReadGroupAWSSQSOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteCLIOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupAWSSQSOptions; /** - * Creates a plain object from a WriteCLIOptions message. Also converts values to other types if specified. - * @param message WriteCLIOptions + * Creates a plain object from a ReadGroupAWSSQSOptions message. Also converts values to other types if specified. + * @param message ReadGroupAWSSQSOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteCLIOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupAWSSQSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteCLIOptions to JSON. + * Converts this ReadGroupAWSSQSOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteOptions. */ - interface IWriteOptions { - - /** WriteOptions connectionId */ - connectionId?: (string|null); - - /** WriteOptions record */ - record?: (protos.records.IWriteRecord|null); + /** Properties of a ReadGroupMongoOptions. */ + interface IReadGroupMongoOptions { - /** WriteOptions encodeOptions */ - encodeOptions?: (protos.encoding.IEncodeOptions|null); + /** ReadGroupMongoOptions _conn */ + _conn?: (protos.args.IMongoConn|null); - /** WriteOptions _cliOptions */ - _cliOptions?: (protos.opts.IWriteCLIOptions|null); + /** ReadGroupMongoOptions args */ + args?: (protos.args.IMongoReadArgs|null); + } - /** WriteOptions kafka */ - kafka?: (protos.opts.IWriteGroupKafkaOptions|null); + /** Represents a ReadGroupMongoOptions. */ + class ReadGroupMongoOptions implements IReadGroupMongoOptions { - /** WriteOptions activemq */ - activemq?: (protos.opts.IWriteGroupActiveMQOptions|null); + /** + * Constructs a new ReadGroupMongoOptions. + * @param [properties] Properties to set + */ + constructor(properties?: protos.opts.IReadGroupMongoOptions); - /** WriteOptions awsSqs */ - awsSqs?: (protos.opts.IWriteGroupAWSSQSOptions|null); + /** ReadGroupMongoOptions _conn. */ + public _conn?: (protos.args.IMongoConn|null); - /** WriteOptions awsSns */ - awsSns?: (protos.opts.IWriteGroupAWSSNSOptions|null); + /** ReadGroupMongoOptions args. */ + public args?: (protos.args.IMongoReadArgs|null); - /** WriteOptions nats */ - nats?: (protos.opts.IWriteGroupNatsOptions|null); + /** + * Creates a new ReadGroupMongoOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadGroupMongoOptions instance + */ + public static create(properties?: protos.opts.IReadGroupMongoOptions): protos.opts.ReadGroupMongoOptions; - /** WriteOptions natsStreaming */ - natsStreaming?: (protos.opts.IWriteGroupNatsStreamingOptions|null); + /** + * Encodes the specified ReadGroupMongoOptions message. Does not implicitly {@link protos.opts.ReadGroupMongoOptions.verify|verify} messages. + * @param message ReadGroupMongoOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: protos.opts.IReadGroupMongoOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** WriteOptions nsq */ - nsq?: (protos.opts.IWriteGroupNSQOptions|null); + /** + * Encodes the specified ReadGroupMongoOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupMongoOptions.verify|verify} messages. + * @param message ReadGroupMongoOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: protos.opts.IReadGroupMongoOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** WriteOptions pulsar */ - pulsar?: (protos.opts.IWriteGroupPulsarOptions|null); + /** + * Decodes a ReadGroupMongoOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadGroupMongoOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupMongoOptions; - /** WriteOptions rabbit */ - rabbit?: (protos.opts.IWriteGroupRabbitOptions|null); - - /** WriteOptions rabbitStreams */ - rabbitStreams?: (protos.opts.IWriteGroupRabbitStreamsOptions|null); - - /** WriteOptions mqtt */ - mqtt?: (protos.opts.IWriteGroupMQTTOptions|null); - - /** WriteOptions azureServiceBus */ - azureServiceBus?: (protos.opts.IWriteGroupAzureServiceBusOptions|null); - - /** WriteOptions azureEventHub */ - azureEventHub?: (protos.opts.IWriteGroupAzureEventHubOptions|null); + /** + * Decodes a ReadGroupMongoOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadGroupMongoOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupMongoOptions; - /** WriteOptions gcpPubsub */ - gcpPubsub?: (protos.opts.IWriteGroupGCPPubSubOptions|null); + /** + * Verifies a ReadGroupMongoOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** WriteOptions kubemqQueue */ - kubemqQueue?: (protos.opts.IWriteGroupKubeMQQueueOptions|null); + /** + * Creates a ReadGroupMongoOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadGroupMongoOptions + */ + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupMongoOptions; - /** WriteOptions redisPubsub */ - redisPubsub?: (protos.opts.IWriteGroupRedisPubSubOptions|null); + /** + * Creates a plain object from a ReadGroupMongoOptions message. Also converts values to other types if specified. + * @param message ReadGroupMongoOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: protos.opts.ReadGroupMongoOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** WriteOptions redisStreams */ - redisStreams?: (protos.opts.IWriteGroupRedisStreamsOptions|null); + /** + * Converts this ReadGroupMongoOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** WriteOptions natsJetstream */ - natsJetstream?: (protos.opts.IWriteGroupNatsJetstreamOptions|null); + /** Properties of a ReadGroupNatsOptions. */ + interface IReadGroupNatsOptions { - /** WriteOptions awsKinesis */ - awsKinesis?: (protos.opts.IWriteGroupAWSKinesisOptions|null); + /** ReadGroupNatsOptions _conn */ + _conn?: (protos.args.INatsConn|null); - /** WriteOptions memphis */ - memphis?: (protos.opts.IWriteGroupMemphisOptions|null); + /** ReadGroupNatsOptions args */ + args?: (protos.args.INatsReadArgs|null); } - /** Represents a WriteOptions. */ - class WriteOptions implements IWriteOptions { + /** Represents a ReadGroupNatsOptions. */ + class ReadGroupNatsOptions implements IReadGroupNatsOptions { /** - * Constructs a new WriteOptions. + * Constructs a new ReadGroupNatsOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteOptions); - - /** WriteOptions connectionId. */ - public connectionId: string; - - /** WriteOptions record. */ - public record?: (protos.records.IWriteRecord|null); - - /** WriteOptions encodeOptions. */ - public encodeOptions?: (protos.encoding.IEncodeOptions|null); - - /** WriteOptions _cliOptions. */ - public _cliOptions?: (protos.opts.IWriteCLIOptions|null); - - /** WriteOptions kafka. */ - public kafka?: (protos.opts.IWriteGroupKafkaOptions|null); - - /** WriteOptions activemq. */ - public activemq?: (protos.opts.IWriteGroupActiveMQOptions|null); - - /** WriteOptions awsSqs. */ - public awsSqs?: (protos.opts.IWriteGroupAWSSQSOptions|null); - - /** WriteOptions awsSns. */ - public awsSns?: (protos.opts.IWriteGroupAWSSNSOptions|null); - - /** WriteOptions nats. */ - public nats?: (protos.opts.IWriteGroupNatsOptions|null); - - /** WriteOptions natsStreaming. */ - public natsStreaming?: (protos.opts.IWriteGroupNatsStreamingOptions|null); - - /** WriteOptions nsq. */ - public nsq?: (protos.opts.IWriteGroupNSQOptions|null); - - /** WriteOptions pulsar. */ - public pulsar?: (protos.opts.IWriteGroupPulsarOptions|null); - - /** WriteOptions rabbit. */ - public rabbit?: (protos.opts.IWriteGroupRabbitOptions|null); - - /** WriteOptions rabbitStreams. */ - public rabbitStreams?: (protos.opts.IWriteGroupRabbitStreamsOptions|null); - - /** WriteOptions mqtt. */ - public mqtt?: (protos.opts.IWriteGroupMQTTOptions|null); - - /** WriteOptions azureServiceBus. */ - public azureServiceBus?: (protos.opts.IWriteGroupAzureServiceBusOptions|null); - - /** WriteOptions azureEventHub. */ - public azureEventHub?: (protos.opts.IWriteGroupAzureEventHubOptions|null); - - /** WriteOptions gcpPubsub. */ - public gcpPubsub?: (protos.opts.IWriteGroupGCPPubSubOptions|null); - - /** WriteOptions kubemqQueue. */ - public kubemqQueue?: (protos.opts.IWriteGroupKubeMQQueueOptions|null); - - /** WriteOptions redisPubsub. */ - public redisPubsub?: (protos.opts.IWriteGroupRedisPubSubOptions|null); - - /** WriteOptions redisStreams. */ - public redisStreams?: (protos.opts.IWriteGroupRedisStreamsOptions|null); - - /** WriteOptions natsJetstream. */ - public natsJetstream?: (protos.opts.IWriteGroupNatsJetstreamOptions|null); + constructor(properties?: protos.opts.IReadGroupNatsOptions); - /** WriteOptions awsKinesis. */ - public awsKinesis?: (protos.opts.IWriteGroupAWSKinesisOptions|null); + /** ReadGroupNatsOptions _conn. */ + public _conn?: (protos.args.INatsConn|null); - /** WriteOptions memphis. */ - public memphis?: (protos.opts.IWriteGroupMemphisOptions|null); + /** ReadGroupNatsOptions args. */ + public args?: (protos.args.INatsReadArgs|null); /** - * Creates a new WriteOptions instance using the specified properties. + * Creates a new ReadGroupNatsOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteOptions instance + * @returns ReadGroupNatsOptions instance */ - public static create(properties?: protos.opts.IWriteOptions): protos.opts.WriteOptions; + public static create(properties?: protos.opts.IReadGroupNatsOptions): protos.opts.ReadGroupNatsOptions; /** - * Encodes the specified WriteOptions message. Does not implicitly {@link protos.opts.WriteOptions.verify|verify} messages. - * @param message WriteOptions message or plain object to encode + * Encodes the specified ReadGroupNatsOptions message. Does not implicitly {@link protos.opts.ReadGroupNatsOptions.verify|verify} messages. + * @param message ReadGroupNatsOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupNatsOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteOptions message, length delimited. Does not implicitly {@link protos.opts.WriteOptions.verify|verify} messages. - * @param message WriteOptions message or plain object to encode + * Encodes the specified ReadGroupNatsOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNatsOptions.verify|verify} messages. + * @param message ReadGroupNatsOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupNatsOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteOptions message from the specified reader or buffer. + * Decodes a ReadGroupNatsOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteOptions + * @returns ReadGroupNatsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupNatsOptions; /** - * Decodes a WriteOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupNatsOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteOptions + * @returns ReadGroupNatsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupNatsOptions; /** - * Verifies a WriteOptions message. + * Verifies a ReadGroupNatsOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupNatsOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteOptions + * @returns ReadGroupNatsOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupNatsOptions; /** - * Creates a plain object from a WriteOptions message. Also converts values to other types if specified. - * @param message WriteOptions + * Creates a plain object from a ReadGroupNatsOptions message. Also converts values to other types if specified. + * @param message ReadGroupNatsOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupNatsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteOptions to JSON. + * Converts this ReadGroupNatsOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupKafkaOptions. */ - interface IWriteGroupKafkaOptions { + /** Properties of a ReadGroupNatsStreamingOptions. */ + interface IReadGroupNatsStreamingOptions { - /** WriteGroupKafkaOptions _conn */ - _conn?: (protos.args.IKafkaConn|null); + /** ReadGroupNatsStreamingOptions _conn */ + _conn?: (protos.args.INatsStreamingConn|null); - /** WriteGroupKafkaOptions args */ - args?: (protos.args.IKafkaWriteArgs|null); + /** ReadGroupNatsStreamingOptions args */ + args?: (protos.args.INatsStreamingReadArgs|null); } - /** Represents a WriteGroupKafkaOptions. */ - class WriteGroupKafkaOptions implements IWriteGroupKafkaOptions { + /** Represents a ReadGroupNatsStreamingOptions. */ + class ReadGroupNatsStreamingOptions implements IReadGroupNatsStreamingOptions { /** - * Constructs a new WriteGroupKafkaOptions. + * Constructs a new ReadGroupNatsStreamingOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupKafkaOptions); + constructor(properties?: protos.opts.IReadGroupNatsStreamingOptions); - /** WriteGroupKafkaOptions _conn. */ - public _conn?: (protos.args.IKafkaConn|null); + /** ReadGroupNatsStreamingOptions _conn. */ + public _conn?: (protos.args.INatsStreamingConn|null); - /** WriteGroupKafkaOptions args. */ - public args?: (protos.args.IKafkaWriteArgs|null); + /** ReadGroupNatsStreamingOptions args. */ + public args?: (protos.args.INatsStreamingReadArgs|null); /** - * Creates a new WriteGroupKafkaOptions instance using the specified properties. + * Creates a new ReadGroupNatsStreamingOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupKafkaOptions instance + * @returns ReadGroupNatsStreamingOptions instance */ - public static create(properties?: protos.opts.IWriteGroupKafkaOptions): protos.opts.WriteGroupKafkaOptions; + public static create(properties?: protos.opts.IReadGroupNatsStreamingOptions): protos.opts.ReadGroupNatsStreamingOptions; /** - * Encodes the specified WriteGroupKafkaOptions message. Does not implicitly {@link protos.opts.WriteGroupKafkaOptions.verify|verify} messages. - * @param message WriteGroupKafkaOptions message or plain object to encode + * Encodes the specified ReadGroupNatsStreamingOptions message. Does not implicitly {@link protos.opts.ReadGroupNatsStreamingOptions.verify|verify} messages. + * @param message ReadGroupNatsStreamingOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupKafkaOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupNatsStreamingOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupKafkaOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupKafkaOptions.verify|verify} messages. - * @param message WriteGroupKafkaOptions message or plain object to encode + * Encodes the specified ReadGroupNatsStreamingOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNatsStreamingOptions.verify|verify} messages. + * @param message ReadGroupNatsStreamingOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupKafkaOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupNatsStreamingOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupKafkaOptions message from the specified reader or buffer. + * Decodes a ReadGroupNatsStreamingOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupKafkaOptions + * @returns ReadGroupNatsStreamingOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupKafkaOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupNatsStreamingOptions; /** - * Decodes a WriteGroupKafkaOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupNatsStreamingOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupKafkaOptions + * @returns ReadGroupNatsStreamingOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupKafkaOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupNatsStreamingOptions; /** - * Verifies a WriteGroupKafkaOptions message. + * Verifies a ReadGroupNatsStreamingOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupKafkaOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupNatsStreamingOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupKafkaOptions + * @returns ReadGroupNatsStreamingOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupKafkaOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupNatsStreamingOptions; /** - * Creates a plain object from a WriteGroupKafkaOptions message. Also converts values to other types if specified. - * @param message WriteGroupKafkaOptions + * Creates a plain object from a ReadGroupNatsStreamingOptions message. Also converts values to other types if specified. + * @param message ReadGroupNatsStreamingOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupKafkaOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupNatsStreamingOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupKafkaOptions to JSON. + * Converts this ReadGroupNatsStreamingOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupActiveMQOptions. */ - interface IWriteGroupActiveMQOptions { + /** Properties of a ReadGroupNatsJetstreamOptions. */ + interface IReadGroupNatsJetstreamOptions { - /** WriteGroupActiveMQOptions _conn */ - _conn?: (protos.args.IActiveMQConn|null); + /** ReadGroupNatsJetstreamOptions _conn */ + _conn?: (protos.args.INatsJetstreamConn|null); - /** WriteGroupActiveMQOptions args */ - args?: (protos.args.IActiveMQWriteArgs|null); + /** ReadGroupNatsJetstreamOptions args */ + args?: (protos.args.INatsJetstreamReadArgs|null); } - /** Represents a WriteGroupActiveMQOptions. */ - class WriteGroupActiveMQOptions implements IWriteGroupActiveMQOptions { + /** Represents a ReadGroupNatsJetstreamOptions. */ + class ReadGroupNatsJetstreamOptions implements IReadGroupNatsJetstreamOptions { /** - * Constructs a new WriteGroupActiveMQOptions. + * Constructs a new ReadGroupNatsJetstreamOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupActiveMQOptions); + constructor(properties?: protos.opts.IReadGroupNatsJetstreamOptions); - /** WriteGroupActiveMQOptions _conn. */ - public _conn?: (protos.args.IActiveMQConn|null); + /** ReadGroupNatsJetstreamOptions _conn. */ + public _conn?: (protos.args.INatsJetstreamConn|null); - /** WriteGroupActiveMQOptions args. */ - public args?: (protos.args.IActiveMQWriteArgs|null); + /** ReadGroupNatsJetstreamOptions args. */ + public args?: (protos.args.INatsJetstreamReadArgs|null); /** - * Creates a new WriteGroupActiveMQOptions instance using the specified properties. + * Creates a new ReadGroupNatsJetstreamOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupActiveMQOptions instance + * @returns ReadGroupNatsJetstreamOptions instance */ - public static create(properties?: protos.opts.IWriteGroupActiveMQOptions): protos.opts.WriteGroupActiveMQOptions; + public static create(properties?: protos.opts.IReadGroupNatsJetstreamOptions): protos.opts.ReadGroupNatsJetstreamOptions; /** - * Encodes the specified WriteGroupActiveMQOptions message. Does not implicitly {@link protos.opts.WriteGroupActiveMQOptions.verify|verify} messages. - * @param message WriteGroupActiveMQOptions message or plain object to encode + * Encodes the specified ReadGroupNatsJetstreamOptions message. Does not implicitly {@link protos.opts.ReadGroupNatsJetstreamOptions.verify|verify} messages. + * @param message ReadGroupNatsJetstreamOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupActiveMQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupNatsJetstreamOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupActiveMQOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupActiveMQOptions.verify|verify} messages. - * @param message WriteGroupActiveMQOptions message or plain object to encode + * Encodes the specified ReadGroupNatsJetstreamOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNatsJetstreamOptions.verify|verify} messages. + * @param message ReadGroupNatsJetstreamOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupActiveMQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupNatsJetstreamOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupActiveMQOptions message from the specified reader or buffer. + * Decodes a ReadGroupNatsJetstreamOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupActiveMQOptions + * @returns ReadGroupNatsJetstreamOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupActiveMQOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupNatsJetstreamOptions; /** - * Decodes a WriteGroupActiveMQOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupNatsJetstreamOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupActiveMQOptions + * @returns ReadGroupNatsJetstreamOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupActiveMQOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupNatsJetstreamOptions; /** - * Verifies a WriteGroupActiveMQOptions message. + * Verifies a ReadGroupNatsJetstreamOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupActiveMQOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupNatsJetstreamOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupActiveMQOptions + * @returns ReadGroupNatsJetstreamOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupActiveMQOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupNatsJetstreamOptions; /** - * Creates a plain object from a WriteGroupActiveMQOptions message. Also converts values to other types if specified. - * @param message WriteGroupActiveMQOptions + * Creates a plain object from a ReadGroupNatsJetstreamOptions message. Also converts values to other types if specified. + * @param message ReadGroupNatsJetstreamOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupActiveMQOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupNatsJetstreamOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupActiveMQOptions to JSON. + * Converts this ReadGroupNatsJetstreamOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupAWSSQSOptions. */ - interface IWriteGroupAWSSQSOptions { + /** Properties of a ReadGroupNSQOptions. */ + interface IReadGroupNSQOptions { - /** WriteGroupAWSSQSOptions _conn */ - _conn?: (protos.args.IAWSSQSConn|null); + /** ReadGroupNSQOptions _conn */ + _conn?: (protos.args.INSQConn|null); - /** WriteGroupAWSSQSOptions args */ - args?: (protos.args.IAWSSQSWriteArgs|null); + /** ReadGroupNSQOptions args */ + args?: (protos.args.INSQReadArgs|null); } - /** Represents a WriteGroupAWSSQSOptions. */ - class WriteGroupAWSSQSOptions implements IWriteGroupAWSSQSOptions { + /** Represents a ReadGroupNSQOptions. */ + class ReadGroupNSQOptions implements IReadGroupNSQOptions { /** - * Constructs a new WriteGroupAWSSQSOptions. + * Constructs a new ReadGroupNSQOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupAWSSQSOptions); + constructor(properties?: protos.opts.IReadGroupNSQOptions); - /** WriteGroupAWSSQSOptions _conn. */ - public _conn?: (protos.args.IAWSSQSConn|null); + /** ReadGroupNSQOptions _conn. */ + public _conn?: (protos.args.INSQConn|null); - /** WriteGroupAWSSQSOptions args. */ - public args?: (protos.args.IAWSSQSWriteArgs|null); + /** ReadGroupNSQOptions args. */ + public args?: (protos.args.INSQReadArgs|null); /** - * Creates a new WriteGroupAWSSQSOptions instance using the specified properties. + * Creates a new ReadGroupNSQOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupAWSSQSOptions instance + * @returns ReadGroupNSQOptions instance */ - public static create(properties?: protos.opts.IWriteGroupAWSSQSOptions): protos.opts.WriteGroupAWSSQSOptions; + public static create(properties?: protos.opts.IReadGroupNSQOptions): protos.opts.ReadGroupNSQOptions; /** - * Encodes the specified WriteGroupAWSSQSOptions message. Does not implicitly {@link protos.opts.WriteGroupAWSSQSOptions.verify|verify} messages. - * @param message WriteGroupAWSSQSOptions message or plain object to encode + * Encodes the specified ReadGroupNSQOptions message. Does not implicitly {@link protos.opts.ReadGroupNSQOptions.verify|verify} messages. + * @param message ReadGroupNSQOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupAWSSQSOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupNSQOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupAWSSQSOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAWSSQSOptions.verify|verify} messages. - * @param message WriteGroupAWSSQSOptions message or plain object to encode + * Encodes the specified ReadGroupNSQOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNSQOptions.verify|verify} messages. + * @param message ReadGroupNSQOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupAWSSQSOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupNSQOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupAWSSQSOptions message from the specified reader or buffer. + * Decodes a ReadGroupNSQOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupAWSSQSOptions + * @returns ReadGroupNSQOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupAWSSQSOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupNSQOptions; /** - * Decodes a WriteGroupAWSSQSOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupNSQOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupAWSSQSOptions + * @returns ReadGroupNSQOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupAWSSQSOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupNSQOptions; /** - * Verifies a WriteGroupAWSSQSOptions message. + * Verifies a ReadGroupNSQOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupAWSSQSOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupNSQOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupAWSSQSOptions + * @returns ReadGroupNSQOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupAWSSQSOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupNSQOptions; /** - * Creates a plain object from a WriteGroupAWSSQSOptions message. Also converts values to other types if specified. - * @param message WriteGroupAWSSQSOptions + * Creates a plain object from a ReadGroupNSQOptions message. Also converts values to other types if specified. + * @param message ReadGroupNSQOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupAWSSQSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupNSQOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupAWSSQSOptions to JSON. + * Converts this ReadGroupNSQOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupAWSSNSOptions. */ - interface IWriteGroupAWSSNSOptions { + /** Properties of a ReadGroupPostgresOptions. */ + interface IReadGroupPostgresOptions { - /** WriteGroupAWSSNSOptions _conn */ - _conn?: (protos.args.IAWSSNSConn|null); + /** ReadGroupPostgresOptions _conn */ + _conn?: (protos.args.IPostgresConn|null); - /** WriteGroupAWSSNSOptions args */ - args?: (protos.args.IAWSSNSWriteArgs|null); + /** ReadGroupPostgresOptions args */ + args?: (protos.args.IPostgresReadArgs|null); } - /** Represents a WriteGroupAWSSNSOptions. */ - class WriteGroupAWSSNSOptions implements IWriteGroupAWSSNSOptions { + /** Represents a ReadGroupPostgresOptions. */ + class ReadGroupPostgresOptions implements IReadGroupPostgresOptions { /** - * Constructs a new WriteGroupAWSSNSOptions. + * Constructs a new ReadGroupPostgresOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupAWSSNSOptions); + constructor(properties?: protos.opts.IReadGroupPostgresOptions); - /** WriteGroupAWSSNSOptions _conn. */ - public _conn?: (protos.args.IAWSSNSConn|null); + /** ReadGroupPostgresOptions _conn. */ + public _conn?: (protos.args.IPostgresConn|null); - /** WriteGroupAWSSNSOptions args. */ - public args?: (protos.args.IAWSSNSWriteArgs|null); + /** ReadGroupPostgresOptions args. */ + public args?: (protos.args.IPostgresReadArgs|null); /** - * Creates a new WriteGroupAWSSNSOptions instance using the specified properties. + * Creates a new ReadGroupPostgresOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupAWSSNSOptions instance + * @returns ReadGroupPostgresOptions instance */ - public static create(properties?: protos.opts.IWriteGroupAWSSNSOptions): protos.opts.WriteGroupAWSSNSOptions; + public static create(properties?: protos.opts.IReadGroupPostgresOptions): protos.opts.ReadGroupPostgresOptions; /** - * Encodes the specified WriteGroupAWSSNSOptions message. Does not implicitly {@link protos.opts.WriteGroupAWSSNSOptions.verify|verify} messages. - * @param message WriteGroupAWSSNSOptions message or plain object to encode + * Encodes the specified ReadGroupPostgresOptions message. Does not implicitly {@link protos.opts.ReadGroupPostgresOptions.verify|verify} messages. + * @param message ReadGroupPostgresOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupAWSSNSOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupPostgresOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupAWSSNSOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAWSSNSOptions.verify|verify} messages. - * @param message WriteGroupAWSSNSOptions message or plain object to encode + * Encodes the specified ReadGroupPostgresOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupPostgresOptions.verify|verify} messages. + * @param message ReadGroupPostgresOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupAWSSNSOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupPostgresOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupAWSSNSOptions message from the specified reader or buffer. + * Decodes a ReadGroupPostgresOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupAWSSNSOptions + * @returns ReadGroupPostgresOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupAWSSNSOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupPostgresOptions; /** - * Decodes a WriteGroupAWSSNSOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupPostgresOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupAWSSNSOptions + * @returns ReadGroupPostgresOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupAWSSNSOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupPostgresOptions; /** - * Verifies a WriteGroupAWSSNSOptions message. + * Verifies a ReadGroupPostgresOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupAWSSNSOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupPostgresOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupAWSSNSOptions + * @returns ReadGroupPostgresOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupAWSSNSOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupPostgresOptions; /** - * Creates a plain object from a WriteGroupAWSSNSOptions message. Also converts values to other types if specified. - * @param message WriteGroupAWSSNSOptions + * Creates a plain object from a ReadGroupPostgresOptions message. Also converts values to other types if specified. + * @param message ReadGroupPostgresOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupAWSSNSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupPostgresOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupAWSSNSOptions to JSON. + * Converts this ReadGroupPostgresOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupNatsOptions. */ - interface IWriteGroupNatsOptions { + /** Properties of a ReadGroupPulsarOptions. */ + interface IReadGroupPulsarOptions { - /** WriteGroupNatsOptions _conn */ - _conn?: (protos.args.INatsConn|null); + /** ReadGroupPulsarOptions _conn */ + _conn?: (protos.args.IPulsarConn|null); - /** WriteGroupNatsOptions args */ - args?: (protos.args.INatsWriteArgs|null); + /** ReadGroupPulsarOptions args */ + args?: (protos.args.IPulsarReadArgs|null); } - /** Represents a WriteGroupNatsOptions. */ - class WriteGroupNatsOptions implements IWriteGroupNatsOptions { + /** Represents a ReadGroupPulsarOptions. */ + class ReadGroupPulsarOptions implements IReadGroupPulsarOptions { /** - * Constructs a new WriteGroupNatsOptions. + * Constructs a new ReadGroupPulsarOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupNatsOptions); - - /** WriteGroupNatsOptions _conn. */ - public _conn?: (protos.args.INatsConn|null); + constructor(properties?: protos.opts.IReadGroupPulsarOptions); - /** WriteGroupNatsOptions args. */ - public args?: (protos.args.INatsWriteArgs|null); + /** ReadGroupPulsarOptions _conn. */ + public _conn?: (protos.args.IPulsarConn|null); + + /** ReadGroupPulsarOptions args. */ + public args?: (protos.args.IPulsarReadArgs|null); /** - * Creates a new WriteGroupNatsOptions instance using the specified properties. + * Creates a new ReadGroupPulsarOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupNatsOptions instance + * @returns ReadGroupPulsarOptions instance */ - public static create(properties?: protos.opts.IWriteGroupNatsOptions): protos.opts.WriteGroupNatsOptions; + public static create(properties?: protos.opts.IReadGroupPulsarOptions): protos.opts.ReadGroupPulsarOptions; /** - * Encodes the specified WriteGroupNatsOptions message. Does not implicitly {@link protos.opts.WriteGroupNatsOptions.verify|verify} messages. - * @param message WriteGroupNatsOptions message or plain object to encode + * Encodes the specified ReadGroupPulsarOptions message. Does not implicitly {@link protos.opts.ReadGroupPulsarOptions.verify|verify} messages. + * @param message ReadGroupPulsarOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupNatsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupPulsarOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupNatsOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNatsOptions.verify|verify} messages. - * @param message WriteGroupNatsOptions message or plain object to encode + * Encodes the specified ReadGroupPulsarOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupPulsarOptions.verify|verify} messages. + * @param message ReadGroupPulsarOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupNatsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupPulsarOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupNatsOptions message from the specified reader or buffer. + * Decodes a ReadGroupPulsarOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupNatsOptions + * @returns ReadGroupPulsarOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupNatsOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupPulsarOptions; /** - * Decodes a WriteGroupNatsOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupPulsarOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupNatsOptions + * @returns ReadGroupPulsarOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupNatsOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupPulsarOptions; /** - * Verifies a WriteGroupNatsOptions message. + * Verifies a ReadGroupPulsarOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupNatsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupPulsarOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupNatsOptions + * @returns ReadGroupPulsarOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupNatsOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupPulsarOptions; /** - * Creates a plain object from a WriteGroupNatsOptions message. Also converts values to other types if specified. - * @param message WriteGroupNatsOptions + * Creates a plain object from a ReadGroupPulsarOptions message. Also converts values to other types if specified. + * @param message ReadGroupPulsarOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupNatsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupPulsarOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupNatsOptions to JSON. + * Converts this ReadGroupPulsarOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupNatsJetstreamOptions. */ - interface IWriteGroupNatsJetstreamOptions { + /** Properties of a ReadGroupRabbitOptions. */ + interface IReadGroupRabbitOptions { - /** WriteGroupNatsJetstreamOptions _conn */ - _conn?: (protos.args.INatsJetstreamConn|null); + /** ReadGroupRabbitOptions _conn */ + _conn?: (protos.args.IRabbitConn|null); - /** WriteGroupNatsJetstreamOptions args */ - args?: (protos.args.INatsJetstreamWriteArgs|null); + /** ReadGroupRabbitOptions args */ + args?: (protos.args.IRabbitReadArgs|null); } - /** Represents a WriteGroupNatsJetstreamOptions. */ - class WriteGroupNatsJetstreamOptions implements IWriteGroupNatsJetstreamOptions { + /** Represents a ReadGroupRabbitOptions. */ + class ReadGroupRabbitOptions implements IReadGroupRabbitOptions { /** - * Constructs a new WriteGroupNatsJetstreamOptions. + * Constructs a new ReadGroupRabbitOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupNatsJetstreamOptions); + constructor(properties?: protos.opts.IReadGroupRabbitOptions); - /** WriteGroupNatsJetstreamOptions _conn. */ - public _conn?: (protos.args.INatsJetstreamConn|null); + /** ReadGroupRabbitOptions _conn. */ + public _conn?: (protos.args.IRabbitConn|null); - /** WriteGroupNatsJetstreamOptions args. */ - public args?: (protos.args.INatsJetstreamWriteArgs|null); + /** ReadGroupRabbitOptions args. */ + public args?: (protos.args.IRabbitReadArgs|null); /** - * Creates a new WriteGroupNatsJetstreamOptions instance using the specified properties. + * Creates a new ReadGroupRabbitOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupNatsJetstreamOptions instance + * @returns ReadGroupRabbitOptions instance */ - public static create(properties?: protos.opts.IWriteGroupNatsJetstreamOptions): protos.opts.WriteGroupNatsJetstreamOptions; + public static create(properties?: protos.opts.IReadGroupRabbitOptions): protos.opts.ReadGroupRabbitOptions; /** - * Encodes the specified WriteGroupNatsJetstreamOptions message. Does not implicitly {@link protos.opts.WriteGroupNatsJetstreamOptions.verify|verify} messages. - * @param message WriteGroupNatsJetstreamOptions message or plain object to encode + * Encodes the specified ReadGroupRabbitOptions message. Does not implicitly {@link protos.opts.ReadGroupRabbitOptions.verify|verify} messages. + * @param message ReadGroupRabbitOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupNatsJetstreamOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupRabbitOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupNatsJetstreamOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNatsJetstreamOptions.verify|verify} messages. - * @param message WriteGroupNatsJetstreamOptions message or plain object to encode + * Encodes the specified ReadGroupRabbitOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRabbitOptions.verify|verify} messages. + * @param message ReadGroupRabbitOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupNatsJetstreamOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupRabbitOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupNatsJetstreamOptions message from the specified reader or buffer. + * Decodes a ReadGroupRabbitOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupNatsJetstreamOptions + * @returns ReadGroupRabbitOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupNatsJetstreamOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupRabbitOptions; /** - * Decodes a WriteGroupNatsJetstreamOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupRabbitOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupNatsJetstreamOptions + * @returns ReadGroupRabbitOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupNatsJetstreamOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupRabbitOptions; /** - * Verifies a WriteGroupNatsJetstreamOptions message. + * Verifies a ReadGroupRabbitOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupNatsJetstreamOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupRabbitOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupNatsJetstreamOptions + * @returns ReadGroupRabbitOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupNatsJetstreamOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupRabbitOptions; /** - * Creates a plain object from a WriteGroupNatsJetstreamOptions message. Also converts values to other types if specified. - * @param message WriteGroupNatsJetstreamOptions + * Creates a plain object from a ReadGroupRabbitOptions message. Also converts values to other types if specified. + * @param message ReadGroupRabbitOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupNatsJetstreamOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupRabbitOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupNatsJetstreamOptions to JSON. + * Converts this ReadGroupRabbitOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupNatsStreamingOptions. */ - interface IWriteGroupNatsStreamingOptions { + /** Properties of a ReadGroupRabbitStreamsOptions. */ + interface IReadGroupRabbitStreamsOptions { - /** WriteGroupNatsStreamingOptions _conn */ - _conn?: (protos.args.INatsStreamingConn|null); + /** ReadGroupRabbitStreamsOptions _conn */ + _conn?: (protos.args.IRabbitStreamsConn|null); - /** WriteGroupNatsStreamingOptions args */ - args?: (protos.args.INatsStreamingWriteArgs|null); + /** ReadGroupRabbitStreamsOptions args */ + args?: (protos.args.IRabbitStreamsReadArgs|null); } - /** Represents a WriteGroupNatsStreamingOptions. */ - class WriteGroupNatsStreamingOptions implements IWriteGroupNatsStreamingOptions { + /** Represents a ReadGroupRabbitStreamsOptions. */ + class ReadGroupRabbitStreamsOptions implements IReadGroupRabbitStreamsOptions { /** - * Constructs a new WriteGroupNatsStreamingOptions. + * Constructs a new ReadGroupRabbitStreamsOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupNatsStreamingOptions); + constructor(properties?: protos.opts.IReadGroupRabbitStreamsOptions); - /** WriteGroupNatsStreamingOptions _conn. */ - public _conn?: (protos.args.INatsStreamingConn|null); + /** ReadGroupRabbitStreamsOptions _conn. */ + public _conn?: (protos.args.IRabbitStreamsConn|null); - /** WriteGroupNatsStreamingOptions args. */ - public args?: (protos.args.INatsStreamingWriteArgs|null); + /** ReadGroupRabbitStreamsOptions args. */ + public args?: (protos.args.IRabbitStreamsReadArgs|null); /** - * Creates a new WriteGroupNatsStreamingOptions instance using the specified properties. + * Creates a new ReadGroupRabbitStreamsOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupNatsStreamingOptions instance + * @returns ReadGroupRabbitStreamsOptions instance */ - public static create(properties?: protos.opts.IWriteGroupNatsStreamingOptions): protos.opts.WriteGroupNatsStreamingOptions; + public static create(properties?: protos.opts.IReadGroupRabbitStreamsOptions): protos.opts.ReadGroupRabbitStreamsOptions; /** - * Encodes the specified WriteGroupNatsStreamingOptions message. Does not implicitly {@link protos.opts.WriteGroupNatsStreamingOptions.verify|verify} messages. - * @param message WriteGroupNatsStreamingOptions message or plain object to encode + * Encodes the specified ReadGroupRabbitStreamsOptions message. Does not implicitly {@link protos.opts.ReadGroupRabbitStreamsOptions.verify|verify} messages. + * @param message ReadGroupRabbitStreamsOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupNatsStreamingOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupRabbitStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupNatsStreamingOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNatsStreamingOptions.verify|verify} messages. - * @param message WriteGroupNatsStreamingOptions message or plain object to encode + * Encodes the specified ReadGroupRabbitStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRabbitStreamsOptions.verify|verify} messages. + * @param message ReadGroupRabbitStreamsOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupNatsStreamingOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupRabbitStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupNatsStreamingOptions message from the specified reader or buffer. + * Decodes a ReadGroupRabbitStreamsOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupNatsStreamingOptions + * @returns ReadGroupRabbitStreamsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupNatsStreamingOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupRabbitStreamsOptions; /** - * Decodes a WriteGroupNatsStreamingOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupRabbitStreamsOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupNatsStreamingOptions + * @returns ReadGroupRabbitStreamsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupNatsStreamingOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupRabbitStreamsOptions; /** - * Verifies a WriteGroupNatsStreamingOptions message. + * Verifies a ReadGroupRabbitStreamsOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupNatsStreamingOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupRabbitStreamsOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupNatsStreamingOptions + * @returns ReadGroupRabbitStreamsOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupNatsStreamingOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupRabbitStreamsOptions; /** - * Creates a plain object from a WriteGroupNatsStreamingOptions message. Also converts values to other types if specified. - * @param message WriteGroupNatsStreamingOptions + * Creates a plain object from a ReadGroupRabbitStreamsOptions message. Also converts values to other types if specified. + * @param message ReadGroupRabbitStreamsOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupNatsStreamingOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupRabbitStreamsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupNatsStreamingOptions to JSON. + * Converts this ReadGroupRabbitStreamsOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupNSQOptions. */ - interface IWriteGroupNSQOptions { + /** Properties of a ReadGroupRedisPubSubOptions. */ + interface IReadGroupRedisPubSubOptions { - /** WriteGroupNSQOptions _conn */ - _conn?: (protos.args.INSQConn|null); + /** ReadGroupRedisPubSubOptions _conn */ + _conn?: (protos.args.IRedisPubSubConn|null); - /** WriteGroupNSQOptions args */ - args?: (protos.args.INSQWriteArgs|null); + /** ReadGroupRedisPubSubOptions args */ + args?: (protos.args.IRedisPubSubReadArgs|null); } - /** Represents a WriteGroupNSQOptions. */ - class WriteGroupNSQOptions implements IWriteGroupNSQOptions { + /** Represents a ReadGroupRedisPubSubOptions. */ + class ReadGroupRedisPubSubOptions implements IReadGroupRedisPubSubOptions { /** - * Constructs a new WriteGroupNSQOptions. + * Constructs a new ReadGroupRedisPubSubOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupNSQOptions); + constructor(properties?: protos.opts.IReadGroupRedisPubSubOptions); - /** WriteGroupNSQOptions _conn. */ - public _conn?: (protos.args.INSQConn|null); + /** ReadGroupRedisPubSubOptions _conn. */ + public _conn?: (protos.args.IRedisPubSubConn|null); - /** WriteGroupNSQOptions args. */ - public args?: (protos.args.INSQWriteArgs|null); + /** ReadGroupRedisPubSubOptions args. */ + public args?: (protos.args.IRedisPubSubReadArgs|null); /** - * Creates a new WriteGroupNSQOptions instance using the specified properties. + * Creates a new ReadGroupRedisPubSubOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupNSQOptions instance + * @returns ReadGroupRedisPubSubOptions instance */ - public static create(properties?: protos.opts.IWriteGroupNSQOptions): protos.opts.WriteGroupNSQOptions; + public static create(properties?: protos.opts.IReadGroupRedisPubSubOptions): protos.opts.ReadGroupRedisPubSubOptions; /** - * Encodes the specified WriteGroupNSQOptions message. Does not implicitly {@link protos.opts.WriteGroupNSQOptions.verify|verify} messages. - * @param message WriteGroupNSQOptions message or plain object to encode + * Encodes the specified ReadGroupRedisPubSubOptions message. Does not implicitly {@link protos.opts.ReadGroupRedisPubSubOptions.verify|verify} messages. + * @param message ReadGroupRedisPubSubOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupNSQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupRedisPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupNSQOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNSQOptions.verify|verify} messages. - * @param message WriteGroupNSQOptions message or plain object to encode + * Encodes the specified ReadGroupRedisPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRedisPubSubOptions.verify|verify} messages. + * @param message ReadGroupRedisPubSubOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupNSQOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupRedisPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupNSQOptions message from the specified reader or buffer. + * Decodes a ReadGroupRedisPubSubOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupNSQOptions + * @returns ReadGroupRedisPubSubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupNSQOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupRedisPubSubOptions; /** - * Decodes a WriteGroupNSQOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupRedisPubSubOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupNSQOptions + * @returns ReadGroupRedisPubSubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupNSQOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupRedisPubSubOptions; /** - * Verifies a WriteGroupNSQOptions message. + * Verifies a ReadGroupRedisPubSubOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupNSQOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupRedisPubSubOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupNSQOptions + * @returns ReadGroupRedisPubSubOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupNSQOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupRedisPubSubOptions; /** - * Creates a plain object from a WriteGroupNSQOptions message. Also converts values to other types if specified. - * @param message WriteGroupNSQOptions + * Creates a plain object from a ReadGroupRedisPubSubOptions message. Also converts values to other types if specified. + * @param message ReadGroupRedisPubSubOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupNSQOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupRedisPubSubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupNSQOptions to JSON. + * Converts this ReadGroupRedisPubSubOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupPulsarOptions. */ - interface IWriteGroupPulsarOptions { + /** Properties of a ReadGroupRedisStreamsOptions. */ + interface IReadGroupRedisStreamsOptions { - /** WriteGroupPulsarOptions _conn */ - _conn?: (protos.args.IPulsarConn|null); + /** ReadGroupRedisStreamsOptions _conn */ + _conn?: (protos.args.IRedisStreamsConn|null); - /** WriteGroupPulsarOptions args */ - args?: (protos.args.IPulsarWriteArgs|null); + /** ReadGroupRedisStreamsOptions args */ + args?: (protos.args.IRedisStreamsReadArgs|null); } - /** Represents a WriteGroupPulsarOptions. */ - class WriteGroupPulsarOptions implements IWriteGroupPulsarOptions { + /** Represents a ReadGroupRedisStreamsOptions. */ + class ReadGroupRedisStreamsOptions implements IReadGroupRedisStreamsOptions { /** - * Constructs a new WriteGroupPulsarOptions. + * Constructs a new ReadGroupRedisStreamsOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupPulsarOptions); + constructor(properties?: protos.opts.IReadGroupRedisStreamsOptions); - /** WriteGroupPulsarOptions _conn. */ - public _conn?: (protos.args.IPulsarConn|null); + /** ReadGroupRedisStreamsOptions _conn. */ + public _conn?: (protos.args.IRedisStreamsConn|null); - /** WriteGroupPulsarOptions args. */ - public args?: (protos.args.IPulsarWriteArgs|null); + /** ReadGroupRedisStreamsOptions args. */ + public args?: (protos.args.IRedisStreamsReadArgs|null); /** - * Creates a new WriteGroupPulsarOptions instance using the specified properties. + * Creates a new ReadGroupRedisStreamsOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupPulsarOptions instance + * @returns ReadGroupRedisStreamsOptions instance */ - public static create(properties?: protos.opts.IWriteGroupPulsarOptions): protos.opts.WriteGroupPulsarOptions; + public static create(properties?: protos.opts.IReadGroupRedisStreamsOptions): protos.opts.ReadGroupRedisStreamsOptions; /** - * Encodes the specified WriteGroupPulsarOptions message. Does not implicitly {@link protos.opts.WriteGroupPulsarOptions.verify|verify} messages. - * @param message WriteGroupPulsarOptions message or plain object to encode + * Encodes the specified ReadGroupRedisStreamsOptions message. Does not implicitly {@link protos.opts.ReadGroupRedisStreamsOptions.verify|verify} messages. + * @param message ReadGroupRedisStreamsOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupPulsarOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupRedisStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupPulsarOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupPulsarOptions.verify|verify} messages. - * @param message WriteGroupPulsarOptions message or plain object to encode + * Encodes the specified ReadGroupRedisStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRedisStreamsOptions.verify|verify} messages. + * @param message ReadGroupRedisStreamsOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupPulsarOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupRedisStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupPulsarOptions message from the specified reader or buffer. + * Decodes a ReadGroupRedisStreamsOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupPulsarOptions + * @returns ReadGroupRedisStreamsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupPulsarOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupRedisStreamsOptions; /** - * Decodes a WriteGroupPulsarOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupRedisStreamsOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupPulsarOptions + * @returns ReadGroupRedisStreamsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupPulsarOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupRedisStreamsOptions; /** - * Verifies a WriteGroupPulsarOptions message. + * Verifies a ReadGroupRedisStreamsOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupPulsarOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupRedisStreamsOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupPulsarOptions + * @returns ReadGroupRedisStreamsOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupPulsarOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupRedisStreamsOptions; /** - * Creates a plain object from a WriteGroupPulsarOptions message. Also converts values to other types if specified. - * @param message WriteGroupPulsarOptions + * Creates a plain object from a ReadGroupRedisStreamsOptions message. Also converts values to other types if specified. + * @param message ReadGroupRedisStreamsOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupPulsarOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupRedisStreamsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupPulsarOptions to JSON. + * Converts this ReadGroupRedisStreamsOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupRabbitOptions. */ - interface IWriteGroupRabbitOptions { + /** Properties of a ReadGroupAzureEventHubOptions. */ + interface IReadGroupAzureEventHubOptions { - /** WriteGroupRabbitOptions _conn */ - _conn?: (protos.args.IRabbitConn|null); + /** ReadGroupAzureEventHubOptions _conn */ + _conn?: (protos.args.IAzureEventHubConn|null); - /** WriteGroupRabbitOptions args */ - args?: (protos.args.IRabbitWriteArgs|null); + /** ReadGroupAzureEventHubOptions args */ + args?: (protos.args.IAzureEventHubReadArgs|null); } - /** Represents a WriteGroupRabbitOptions. */ - class WriteGroupRabbitOptions implements IWriteGroupRabbitOptions { + /** Represents a ReadGroupAzureEventHubOptions. */ + class ReadGroupAzureEventHubOptions implements IReadGroupAzureEventHubOptions { /** - * Constructs a new WriteGroupRabbitOptions. + * Constructs a new ReadGroupAzureEventHubOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupRabbitOptions); + constructor(properties?: protos.opts.IReadGroupAzureEventHubOptions); - /** WriteGroupRabbitOptions _conn. */ - public _conn?: (protos.args.IRabbitConn|null); + /** ReadGroupAzureEventHubOptions _conn. */ + public _conn?: (protos.args.IAzureEventHubConn|null); - /** WriteGroupRabbitOptions args. */ - public args?: (protos.args.IRabbitWriteArgs|null); + /** ReadGroupAzureEventHubOptions args. */ + public args?: (protos.args.IAzureEventHubReadArgs|null); /** - * Creates a new WriteGroupRabbitOptions instance using the specified properties. + * Creates a new ReadGroupAzureEventHubOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupRabbitOptions instance + * @returns ReadGroupAzureEventHubOptions instance */ - public static create(properties?: protos.opts.IWriteGroupRabbitOptions): protos.opts.WriteGroupRabbitOptions; + public static create(properties?: protos.opts.IReadGroupAzureEventHubOptions): protos.opts.ReadGroupAzureEventHubOptions; /** - * Encodes the specified WriteGroupRabbitOptions message. Does not implicitly {@link protos.opts.WriteGroupRabbitOptions.verify|verify} messages. - * @param message WriteGroupRabbitOptions message or plain object to encode + * Encodes the specified ReadGroupAzureEventHubOptions message. Does not implicitly {@link protos.opts.ReadGroupAzureEventHubOptions.verify|verify} messages. + * @param message ReadGroupAzureEventHubOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupRabbitOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupAzureEventHubOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupRabbitOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRabbitOptions.verify|verify} messages. - * @param message WriteGroupRabbitOptions message or plain object to encode + * Encodes the specified ReadGroupAzureEventHubOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAzureEventHubOptions.verify|verify} messages. + * @param message ReadGroupAzureEventHubOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupRabbitOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupAzureEventHubOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupRabbitOptions message from the specified reader or buffer. + * Decodes a ReadGroupAzureEventHubOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupRabbitOptions + * @returns ReadGroupAzureEventHubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupRabbitOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupAzureEventHubOptions; /** - * Decodes a WriteGroupRabbitOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupAzureEventHubOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupRabbitOptions + * @returns ReadGroupAzureEventHubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupRabbitOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupAzureEventHubOptions; /** - * Verifies a WriteGroupRabbitOptions message. + * Verifies a ReadGroupAzureEventHubOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupRabbitOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupAzureEventHubOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupRabbitOptions + * @returns ReadGroupAzureEventHubOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupRabbitOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupAzureEventHubOptions; /** - * Creates a plain object from a WriteGroupRabbitOptions message. Also converts values to other types if specified. - * @param message WriteGroupRabbitOptions + * Creates a plain object from a ReadGroupAzureEventHubOptions message. Also converts values to other types if specified. + * @param message ReadGroupAzureEventHubOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupRabbitOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupAzureEventHubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupRabbitOptions to JSON. + * Converts this ReadGroupAzureEventHubOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupRabbitStreamsOptions. */ - interface IWriteGroupRabbitStreamsOptions { + /** Properties of a ReadGroupAzureServiceBusOptions. */ + interface IReadGroupAzureServiceBusOptions { - /** WriteGroupRabbitStreamsOptions _conn */ - _conn?: (protos.args.IRabbitStreamsConn|null); + /** ReadGroupAzureServiceBusOptions _conn */ + _conn?: (protos.args.IAzureServiceBusConn|null); - /** WriteGroupRabbitStreamsOptions args */ - args?: (protos.args.IRabbitStreamsWriteArgs|null); + /** ReadGroupAzureServiceBusOptions args */ + args?: (protos.args.IAzureServiceBusReadArgs|null); } - /** Represents a WriteGroupRabbitStreamsOptions. */ - class WriteGroupRabbitStreamsOptions implements IWriteGroupRabbitStreamsOptions { + /** Represents a ReadGroupAzureServiceBusOptions. */ + class ReadGroupAzureServiceBusOptions implements IReadGroupAzureServiceBusOptions { /** - * Constructs a new WriteGroupRabbitStreamsOptions. + * Constructs a new ReadGroupAzureServiceBusOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupRabbitStreamsOptions); + constructor(properties?: protos.opts.IReadGroupAzureServiceBusOptions); - /** WriteGroupRabbitStreamsOptions _conn. */ - public _conn?: (protos.args.IRabbitStreamsConn|null); + /** ReadGroupAzureServiceBusOptions _conn. */ + public _conn?: (protos.args.IAzureServiceBusConn|null); - /** WriteGroupRabbitStreamsOptions args. */ - public args?: (protos.args.IRabbitStreamsWriteArgs|null); + /** ReadGroupAzureServiceBusOptions args. */ + public args?: (protos.args.IAzureServiceBusReadArgs|null); /** - * Creates a new WriteGroupRabbitStreamsOptions instance using the specified properties. + * Creates a new ReadGroupAzureServiceBusOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupRabbitStreamsOptions instance + * @returns ReadGroupAzureServiceBusOptions instance */ - public static create(properties?: protos.opts.IWriteGroupRabbitStreamsOptions): protos.opts.WriteGroupRabbitStreamsOptions; + public static create(properties?: protos.opts.IReadGroupAzureServiceBusOptions): protos.opts.ReadGroupAzureServiceBusOptions; /** - * Encodes the specified WriteGroupRabbitStreamsOptions message. Does not implicitly {@link protos.opts.WriteGroupRabbitStreamsOptions.verify|verify} messages. - * @param message WriteGroupRabbitStreamsOptions message or plain object to encode + * Encodes the specified ReadGroupAzureServiceBusOptions message. Does not implicitly {@link protos.opts.ReadGroupAzureServiceBusOptions.verify|verify} messages. + * @param message ReadGroupAzureServiceBusOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupRabbitStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupAzureServiceBusOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupRabbitStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRabbitStreamsOptions.verify|verify} messages. - * @param message WriteGroupRabbitStreamsOptions message or plain object to encode + * Encodes the specified ReadGroupAzureServiceBusOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAzureServiceBusOptions.verify|verify} messages. + * @param message ReadGroupAzureServiceBusOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupRabbitStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupAzureServiceBusOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupRabbitStreamsOptions message from the specified reader or buffer. + * Decodes a ReadGroupAzureServiceBusOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupRabbitStreamsOptions + * @returns ReadGroupAzureServiceBusOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupRabbitStreamsOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupAzureServiceBusOptions; /** - * Decodes a WriteGroupRabbitStreamsOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupAzureServiceBusOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupRabbitStreamsOptions + * @returns ReadGroupAzureServiceBusOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupRabbitStreamsOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupAzureServiceBusOptions; /** - * Verifies a WriteGroupRabbitStreamsOptions message. + * Verifies a ReadGroupAzureServiceBusOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupRabbitStreamsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupAzureServiceBusOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupRabbitStreamsOptions + * @returns ReadGroupAzureServiceBusOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupRabbitStreamsOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupAzureServiceBusOptions; /** - * Creates a plain object from a WriteGroupRabbitStreamsOptions message. Also converts values to other types if specified. - * @param message WriteGroupRabbitStreamsOptions + * Creates a plain object from a ReadGroupAzureServiceBusOptions message. Also converts values to other types if specified. + * @param message ReadGroupAzureServiceBusOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupRabbitStreamsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupAzureServiceBusOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupRabbitStreamsOptions to JSON. + * Converts this ReadGroupAzureServiceBusOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupRedisPubSubOptions. */ - interface IWriteGroupRedisPubSubOptions { + /** Properties of a ReadGroupMQTTOptions. */ + interface IReadGroupMQTTOptions { - /** WriteGroupRedisPubSubOptions _conn */ - _conn?: (protos.args.IRedisPubSubConn|null); + /** ReadGroupMQTTOptions _conn */ + _conn?: (protos.args.IMQTTConn|null); - /** WriteGroupRedisPubSubOptions args */ - args?: (protos.args.IRedisPubSubWriteArgs|null); + /** ReadGroupMQTTOptions args */ + args?: (protos.args.IMQTTReadArgs|null); } - /** Represents a WriteGroupRedisPubSubOptions. */ - class WriteGroupRedisPubSubOptions implements IWriteGroupRedisPubSubOptions { - + /** Represents a ReadGroupMQTTOptions. */ + class ReadGroupMQTTOptions implements IReadGroupMQTTOptions { + /** - * Constructs a new WriteGroupRedisPubSubOptions. + * Constructs a new ReadGroupMQTTOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupRedisPubSubOptions); + constructor(properties?: protos.opts.IReadGroupMQTTOptions); - /** WriteGroupRedisPubSubOptions _conn. */ - public _conn?: (protos.args.IRedisPubSubConn|null); + /** ReadGroupMQTTOptions _conn. */ + public _conn?: (protos.args.IMQTTConn|null); - /** WriteGroupRedisPubSubOptions args. */ - public args?: (protos.args.IRedisPubSubWriteArgs|null); + /** ReadGroupMQTTOptions args. */ + public args?: (protos.args.IMQTTReadArgs|null); /** - * Creates a new WriteGroupRedisPubSubOptions instance using the specified properties. + * Creates a new ReadGroupMQTTOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupRedisPubSubOptions instance + * @returns ReadGroupMQTTOptions instance */ - public static create(properties?: protos.opts.IWriteGroupRedisPubSubOptions): protos.opts.WriteGroupRedisPubSubOptions; + public static create(properties?: protos.opts.IReadGroupMQTTOptions): protos.opts.ReadGroupMQTTOptions; /** - * Encodes the specified WriteGroupRedisPubSubOptions message. Does not implicitly {@link protos.opts.WriteGroupRedisPubSubOptions.verify|verify} messages. - * @param message WriteGroupRedisPubSubOptions message or plain object to encode + * Encodes the specified ReadGroupMQTTOptions message. Does not implicitly {@link protos.opts.ReadGroupMQTTOptions.verify|verify} messages. + * @param message ReadGroupMQTTOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupRedisPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupMQTTOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupRedisPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRedisPubSubOptions.verify|verify} messages. - * @param message WriteGroupRedisPubSubOptions message or plain object to encode + * Encodes the specified ReadGroupMQTTOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupMQTTOptions.verify|verify} messages. + * @param message ReadGroupMQTTOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupRedisPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupMQTTOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupRedisPubSubOptions message from the specified reader or buffer. + * Decodes a ReadGroupMQTTOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupRedisPubSubOptions + * @returns ReadGroupMQTTOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupRedisPubSubOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupMQTTOptions; /** - * Decodes a WriteGroupRedisPubSubOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupMQTTOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupRedisPubSubOptions + * @returns ReadGroupMQTTOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupRedisPubSubOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupMQTTOptions; /** - * Verifies a WriteGroupRedisPubSubOptions message. + * Verifies a ReadGroupMQTTOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupRedisPubSubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupMQTTOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupRedisPubSubOptions + * @returns ReadGroupMQTTOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupRedisPubSubOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupMQTTOptions; /** - * Creates a plain object from a WriteGroupRedisPubSubOptions message. Also converts values to other types if specified. - * @param message WriteGroupRedisPubSubOptions + * Creates a plain object from a ReadGroupMQTTOptions message. Also converts values to other types if specified. + * @param message ReadGroupMQTTOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupRedisPubSubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupMQTTOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupRedisPubSubOptions to JSON. + * Converts this ReadGroupMQTTOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupRedisStreamsOptions. */ - interface IWriteGroupRedisStreamsOptions { + /** Properties of a ReadGroupGCPPubSubOptions. */ + interface IReadGroupGCPPubSubOptions { - /** WriteGroupRedisStreamsOptions _conn */ - _conn?: (protos.args.IRedisStreamsConn|null); + /** ReadGroupGCPPubSubOptions _conn */ + _conn?: (protos.args.IGCPPubSubConn|null); - /** WriteGroupRedisStreamsOptions args */ - args?: (protos.args.IRedisStreamsWriteArgs|null); + /** ReadGroupGCPPubSubOptions args */ + args?: (protos.args.IGCPPubSubReadArgs|null); } - /** Represents a WriteGroupRedisStreamsOptions. */ - class WriteGroupRedisStreamsOptions implements IWriteGroupRedisStreamsOptions { + /** Represents a ReadGroupGCPPubSubOptions. */ + class ReadGroupGCPPubSubOptions implements IReadGroupGCPPubSubOptions { /** - * Constructs a new WriteGroupRedisStreamsOptions. + * Constructs a new ReadGroupGCPPubSubOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupRedisStreamsOptions); + constructor(properties?: protos.opts.IReadGroupGCPPubSubOptions); - /** WriteGroupRedisStreamsOptions _conn. */ - public _conn?: (protos.args.IRedisStreamsConn|null); + /** ReadGroupGCPPubSubOptions _conn. */ + public _conn?: (protos.args.IGCPPubSubConn|null); - /** WriteGroupRedisStreamsOptions args. */ - public args?: (protos.args.IRedisStreamsWriteArgs|null); + /** ReadGroupGCPPubSubOptions args. */ + public args?: (protos.args.IGCPPubSubReadArgs|null); /** - * Creates a new WriteGroupRedisStreamsOptions instance using the specified properties. + * Creates a new ReadGroupGCPPubSubOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupRedisStreamsOptions instance + * @returns ReadGroupGCPPubSubOptions instance */ - public static create(properties?: protos.opts.IWriteGroupRedisStreamsOptions): protos.opts.WriteGroupRedisStreamsOptions; + public static create(properties?: protos.opts.IReadGroupGCPPubSubOptions): protos.opts.ReadGroupGCPPubSubOptions; /** - * Encodes the specified WriteGroupRedisStreamsOptions message. Does not implicitly {@link protos.opts.WriteGroupRedisStreamsOptions.verify|verify} messages. - * @param message WriteGroupRedisStreamsOptions message or plain object to encode + * Encodes the specified ReadGroupGCPPubSubOptions message. Does not implicitly {@link protos.opts.ReadGroupGCPPubSubOptions.verify|verify} messages. + * @param message ReadGroupGCPPubSubOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupRedisStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupGCPPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupRedisStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRedisStreamsOptions.verify|verify} messages. - * @param message WriteGroupRedisStreamsOptions message or plain object to encode + * Encodes the specified ReadGroupGCPPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupGCPPubSubOptions.verify|verify} messages. + * @param message ReadGroupGCPPubSubOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupRedisStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupGCPPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupRedisStreamsOptions message from the specified reader or buffer. + * Decodes a ReadGroupGCPPubSubOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupRedisStreamsOptions + * @returns ReadGroupGCPPubSubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupRedisStreamsOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupGCPPubSubOptions; /** - * Decodes a WriteGroupRedisStreamsOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupGCPPubSubOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupRedisStreamsOptions + * @returns ReadGroupGCPPubSubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupRedisStreamsOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupGCPPubSubOptions; /** - * Verifies a WriteGroupRedisStreamsOptions message. + * Verifies a ReadGroupGCPPubSubOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupRedisStreamsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupGCPPubSubOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupRedisStreamsOptions + * @returns ReadGroupGCPPubSubOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupRedisStreamsOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupGCPPubSubOptions; /** - * Creates a plain object from a WriteGroupRedisStreamsOptions message. Also converts values to other types if specified. - * @param message WriteGroupRedisStreamsOptions + * Creates a plain object from a ReadGroupGCPPubSubOptions message. Also converts values to other types if specified. + * @param message ReadGroupGCPPubSubOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupRedisStreamsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupGCPPubSubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupRedisStreamsOptions to JSON. + * Converts this ReadGroupGCPPubSubOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupAzureEventHubOptions. */ - interface IWriteGroupAzureEventHubOptions { + /** Properties of a ReadGroupKubeMQQueueOptions. */ + interface IReadGroupKubeMQQueueOptions { - /** WriteGroupAzureEventHubOptions _conn */ - _conn?: (protos.args.IAzureEventHubConn|null); + /** ReadGroupKubeMQQueueOptions _conn */ + _conn?: (protos.args.IKubeMQQueueConn|null); - /** WriteGroupAzureEventHubOptions args */ - args?: (protos.args.IAzureEventHubWriteArgs|null); + /** ReadGroupKubeMQQueueOptions args */ + args?: (protos.args.IKubeMQQueueReadArgs|null); } - /** Represents a WriteGroupAzureEventHubOptions. */ - class WriteGroupAzureEventHubOptions implements IWriteGroupAzureEventHubOptions { + /** Represents a ReadGroupKubeMQQueueOptions. */ + class ReadGroupKubeMQQueueOptions implements IReadGroupKubeMQQueueOptions { /** - * Constructs a new WriteGroupAzureEventHubOptions. + * Constructs a new ReadGroupKubeMQQueueOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupAzureEventHubOptions); + constructor(properties?: protos.opts.IReadGroupKubeMQQueueOptions); - /** WriteGroupAzureEventHubOptions _conn. */ - public _conn?: (protos.args.IAzureEventHubConn|null); + /** ReadGroupKubeMQQueueOptions _conn. */ + public _conn?: (protos.args.IKubeMQQueueConn|null); - /** WriteGroupAzureEventHubOptions args. */ - public args?: (protos.args.IAzureEventHubWriteArgs|null); + /** ReadGroupKubeMQQueueOptions args. */ + public args?: (protos.args.IKubeMQQueueReadArgs|null); /** - * Creates a new WriteGroupAzureEventHubOptions instance using the specified properties. + * Creates a new ReadGroupKubeMQQueueOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupAzureEventHubOptions instance + * @returns ReadGroupKubeMQQueueOptions instance */ - public static create(properties?: protos.opts.IWriteGroupAzureEventHubOptions): protos.opts.WriteGroupAzureEventHubOptions; + public static create(properties?: protos.opts.IReadGroupKubeMQQueueOptions): protos.opts.ReadGroupKubeMQQueueOptions; /** - * Encodes the specified WriteGroupAzureEventHubOptions message. Does not implicitly {@link protos.opts.WriteGroupAzureEventHubOptions.verify|verify} messages. - * @param message WriteGroupAzureEventHubOptions message or plain object to encode + * Encodes the specified ReadGroupKubeMQQueueOptions message. Does not implicitly {@link protos.opts.ReadGroupKubeMQQueueOptions.verify|verify} messages. + * @param message ReadGroupKubeMQQueueOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupAzureEventHubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupKubeMQQueueOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupAzureEventHubOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAzureEventHubOptions.verify|verify} messages. - * @param message WriteGroupAzureEventHubOptions message or plain object to encode + * Encodes the specified ReadGroupKubeMQQueueOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupKubeMQQueueOptions.verify|verify} messages. + * @param message ReadGroupKubeMQQueueOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupAzureEventHubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupKubeMQQueueOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupAzureEventHubOptions message from the specified reader or buffer. + * Decodes a ReadGroupKubeMQQueueOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupAzureEventHubOptions + * @returns ReadGroupKubeMQQueueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupAzureEventHubOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupKubeMQQueueOptions; /** - * Decodes a WriteGroupAzureEventHubOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupKubeMQQueueOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupAzureEventHubOptions + * @returns ReadGroupKubeMQQueueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupAzureEventHubOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupKubeMQQueueOptions; /** - * Verifies a WriteGroupAzureEventHubOptions message. + * Verifies a ReadGroupKubeMQQueueOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupAzureEventHubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupKubeMQQueueOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupAzureEventHubOptions + * @returns ReadGroupKubeMQQueueOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupAzureEventHubOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupKubeMQQueueOptions; /** - * Creates a plain object from a WriteGroupAzureEventHubOptions message. Also converts values to other types if specified. - * @param message WriteGroupAzureEventHubOptions + * Creates a plain object from a ReadGroupKubeMQQueueOptions message. Also converts values to other types if specified. + * @param message ReadGroupKubeMQQueueOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupAzureEventHubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupKubeMQQueueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupAzureEventHubOptions to JSON. + * Converts this ReadGroupKubeMQQueueOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupAzureServiceBusOptions. */ - interface IWriteGroupAzureServiceBusOptions { + /** Properties of a ReadGroupAWSKinesisOptions. */ + interface IReadGroupAWSKinesisOptions { - /** WriteGroupAzureServiceBusOptions _conn */ - _conn?: (protos.args.IAzureServiceBusConn|null); + /** ReadGroupAWSKinesisOptions _conn */ + _conn?: (protos.args.IAWSKinesisConn|null); - /** WriteGroupAzureServiceBusOptions args */ - args?: (protos.args.IAzureServiceBusWriteArgs|null); + /** ReadGroupAWSKinesisOptions args */ + args?: (protos.args.IAWSKinesisReadArgs|null); } - /** Represents a WriteGroupAzureServiceBusOptions. */ - class WriteGroupAzureServiceBusOptions implements IWriteGroupAzureServiceBusOptions { + /** Represents a ReadGroupAWSKinesisOptions. */ + class ReadGroupAWSKinesisOptions implements IReadGroupAWSKinesisOptions { /** - * Constructs a new WriteGroupAzureServiceBusOptions. + * Constructs a new ReadGroupAWSKinesisOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupAzureServiceBusOptions); + constructor(properties?: protos.opts.IReadGroupAWSKinesisOptions); - /** WriteGroupAzureServiceBusOptions _conn. */ - public _conn?: (protos.args.IAzureServiceBusConn|null); + /** ReadGroupAWSKinesisOptions _conn. */ + public _conn?: (protos.args.IAWSKinesisConn|null); - /** WriteGroupAzureServiceBusOptions args. */ - public args?: (protos.args.IAzureServiceBusWriteArgs|null); + /** ReadGroupAWSKinesisOptions args. */ + public args?: (protos.args.IAWSKinesisReadArgs|null); /** - * Creates a new WriteGroupAzureServiceBusOptions instance using the specified properties. + * Creates a new ReadGroupAWSKinesisOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupAzureServiceBusOptions instance + * @returns ReadGroupAWSKinesisOptions instance */ - public static create(properties?: protos.opts.IWriteGroupAzureServiceBusOptions): protos.opts.WriteGroupAzureServiceBusOptions; + public static create(properties?: protos.opts.IReadGroupAWSKinesisOptions): protos.opts.ReadGroupAWSKinesisOptions; /** - * Encodes the specified WriteGroupAzureServiceBusOptions message. Does not implicitly {@link protos.opts.WriteGroupAzureServiceBusOptions.verify|verify} messages. - * @param message WriteGroupAzureServiceBusOptions message or plain object to encode + * Encodes the specified ReadGroupAWSKinesisOptions message. Does not implicitly {@link protos.opts.ReadGroupAWSKinesisOptions.verify|verify} messages. + * @param message ReadGroupAWSKinesisOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupAzureServiceBusOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupAWSKinesisOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupAzureServiceBusOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAzureServiceBusOptions.verify|verify} messages. - * @param message WriteGroupAzureServiceBusOptions message or plain object to encode + * Encodes the specified ReadGroupAWSKinesisOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAWSKinesisOptions.verify|verify} messages. + * @param message ReadGroupAWSKinesisOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupAzureServiceBusOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupAWSKinesisOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupAzureServiceBusOptions message from the specified reader or buffer. + * Decodes a ReadGroupAWSKinesisOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupAzureServiceBusOptions + * @returns ReadGroupAWSKinesisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupAzureServiceBusOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupAWSKinesisOptions; /** - * Decodes a WriteGroupAzureServiceBusOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupAWSKinesisOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupAzureServiceBusOptions + * @returns ReadGroupAWSKinesisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupAzureServiceBusOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupAWSKinesisOptions; /** - * Verifies a WriteGroupAzureServiceBusOptions message. + * Verifies a ReadGroupAWSKinesisOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupAzureServiceBusOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupAWSKinesisOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupAzureServiceBusOptions + * @returns ReadGroupAWSKinesisOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupAzureServiceBusOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupAWSKinesisOptions; /** - * Creates a plain object from a WriteGroupAzureServiceBusOptions message. Also converts values to other types if specified. - * @param message WriteGroupAzureServiceBusOptions + * Creates a plain object from a ReadGroupAWSKinesisOptions message. Also converts values to other types if specified. + * @param message ReadGroupAWSKinesisOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupAzureServiceBusOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupAWSKinesisOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupAzureServiceBusOptions to JSON. + * Converts this ReadGroupAWSKinesisOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupMQTTOptions. */ - interface IWriteGroupMQTTOptions { + /** Properties of a ReadGroupMemphisOptions. */ + interface IReadGroupMemphisOptions { - /** WriteGroupMQTTOptions _conn */ - _conn?: (protos.args.IMQTTConn|null); + /** ReadGroupMemphisOptions _conn */ + _conn?: (protos.args.IMemphisConn|null); - /** WriteGroupMQTTOptions args */ - args?: (protos.args.IMQTTWriteArgs|null); + /** ReadGroupMemphisOptions args */ + args?: (protos.args.IMemphisReadArgs|null); } - /** Represents a WriteGroupMQTTOptions. */ - class WriteGroupMQTTOptions implements IWriteGroupMQTTOptions { + /** Represents a ReadGroupMemphisOptions. */ + class ReadGroupMemphisOptions implements IReadGroupMemphisOptions { /** - * Constructs a new WriteGroupMQTTOptions. + * Constructs a new ReadGroupMemphisOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupMQTTOptions); + constructor(properties?: protos.opts.IReadGroupMemphisOptions); - /** WriteGroupMQTTOptions _conn. */ - public _conn?: (protos.args.IMQTTConn|null); + /** ReadGroupMemphisOptions _conn. */ + public _conn?: (protos.args.IMemphisConn|null); - /** WriteGroupMQTTOptions args. */ - public args?: (protos.args.IMQTTWriteArgs|null); + /** ReadGroupMemphisOptions args. */ + public args?: (protos.args.IMemphisReadArgs|null); /** - * Creates a new WriteGroupMQTTOptions instance using the specified properties. + * Creates a new ReadGroupMemphisOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupMQTTOptions instance + * @returns ReadGroupMemphisOptions instance */ - public static create(properties?: protos.opts.IWriteGroupMQTTOptions): protos.opts.WriteGroupMQTTOptions; + public static create(properties?: protos.opts.IReadGroupMemphisOptions): protos.opts.ReadGroupMemphisOptions; /** - * Encodes the specified WriteGroupMQTTOptions message. Does not implicitly {@link protos.opts.WriteGroupMQTTOptions.verify|verify} messages. - * @param message WriteGroupMQTTOptions message or plain object to encode + * Encodes the specified ReadGroupMemphisOptions message. Does not implicitly {@link protos.opts.ReadGroupMemphisOptions.verify|verify} messages. + * @param message ReadGroupMemphisOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupMQTTOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IReadGroupMemphisOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupMQTTOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupMQTTOptions.verify|verify} messages. - * @param message WriteGroupMQTTOptions message or plain object to encode + * Encodes the specified ReadGroupMemphisOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupMemphisOptions.verify|verify} messages. + * @param message ReadGroupMemphisOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupMQTTOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IReadGroupMemphisOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupMQTTOptions message from the specified reader or buffer. + * Decodes a ReadGroupMemphisOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupMQTTOptions + * @returns ReadGroupMemphisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupMQTTOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ReadGroupMemphisOptions; /** - * Decodes a WriteGroupMQTTOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupMemphisOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupMQTTOptions + * @returns ReadGroupMemphisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupMQTTOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ReadGroupMemphisOptions; /** - * Verifies a WriteGroupMQTTOptions message. + * Verifies a ReadGroupMemphisOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupMQTTOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupMemphisOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupMQTTOptions + * @returns ReadGroupMemphisOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupMQTTOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ReadGroupMemphisOptions; /** - * Creates a plain object from a WriteGroupMQTTOptions message. Also converts values to other types if specified. - * @param message WriteGroupMQTTOptions + * Creates a plain object from a ReadGroupMemphisOptions message. Also converts values to other types if specified. + * @param message ReadGroupMemphisOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupMQTTOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ReadGroupMemphisOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupMQTTOptions to JSON. + * Converts this ReadGroupMemphisOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupGCPPubSubOptions. */ - interface IWriteGroupGCPPubSubOptions { + /** Properties of an InferSchemaOptions. */ + interface IInferSchemaOptions { - /** WriteGroupGCPPubSubOptions _conn */ - _conn?: (protos.args.IGCPPubSubConn|null); + /** InferSchemaOptions type */ + type?: (protos.opts.InferSchemaOptions.Type|null); - /** WriteGroupGCPPubSubOptions args */ - args?: (protos.args.IGCPPubSubWriteArgs|null); + /** InferSchemaOptions schemaId */ + schemaId?: (string|null); } - /** Represents a WriteGroupGCPPubSubOptions. */ - class WriteGroupGCPPubSubOptions implements IWriteGroupGCPPubSubOptions { + /** Represents an InferSchemaOptions. */ + class InferSchemaOptions implements IInferSchemaOptions { /** - * Constructs a new WriteGroupGCPPubSubOptions. + * Constructs a new InferSchemaOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupGCPPubSubOptions); + constructor(properties?: protos.opts.IInferSchemaOptions); - /** WriteGroupGCPPubSubOptions _conn. */ - public _conn?: (protos.args.IGCPPubSubConn|null); + /** InferSchemaOptions type. */ + public type: protos.opts.InferSchemaOptions.Type; - /** WriteGroupGCPPubSubOptions args. */ - public args?: (protos.args.IGCPPubSubWriteArgs|null); + /** InferSchemaOptions schemaId. */ + public schemaId: string; /** - * Creates a new WriteGroupGCPPubSubOptions instance using the specified properties. + * Creates a new InferSchemaOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupGCPPubSubOptions instance + * @returns InferSchemaOptions instance */ - public static create(properties?: protos.opts.IWriteGroupGCPPubSubOptions): protos.opts.WriteGroupGCPPubSubOptions; + public static create(properties?: protos.opts.IInferSchemaOptions): protos.opts.InferSchemaOptions; /** - * Encodes the specified WriteGroupGCPPubSubOptions message. Does not implicitly {@link protos.opts.WriteGroupGCPPubSubOptions.verify|verify} messages. - * @param message WriteGroupGCPPubSubOptions message or plain object to encode + * Encodes the specified InferSchemaOptions message. Does not implicitly {@link protos.opts.InferSchemaOptions.verify|verify} messages. + * @param message InferSchemaOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupGCPPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IInferSchemaOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupGCPPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupGCPPubSubOptions.verify|verify} messages. - * @param message WriteGroupGCPPubSubOptions message or plain object to encode + * Encodes the specified InferSchemaOptions message, length delimited. Does not implicitly {@link protos.opts.InferSchemaOptions.verify|verify} messages. + * @param message InferSchemaOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupGCPPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IInferSchemaOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupGCPPubSubOptions message from the specified reader or buffer. + * Decodes an InferSchemaOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupGCPPubSubOptions + * @returns InferSchemaOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupGCPPubSubOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.InferSchemaOptions; /** - * Decodes a WriteGroupGCPPubSubOptions message from the specified reader or buffer, length delimited. + * Decodes an InferSchemaOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupGCPPubSubOptions + * @returns InferSchemaOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupGCPPubSubOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.InferSchemaOptions; /** - * Verifies a WriteGroupGCPPubSubOptions message. + * Verifies an InferSchemaOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupGCPPubSubOptions message from a plain object. Also converts values to their respective internal types. + * Creates an InferSchemaOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupGCPPubSubOptions + * @returns InferSchemaOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupGCPPubSubOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.InferSchemaOptions; /** - * Creates a plain object from a WriteGroupGCPPubSubOptions message. Also converts values to other types if specified. - * @param message WriteGroupGCPPubSubOptions + * Creates a plain object from an InferSchemaOptions message. Also converts values to other types if specified. + * @param message InferSchemaOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupGCPPubSubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.InferSchemaOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupGCPPubSubOptions to JSON. + * Converts this InferSchemaOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupKubeMQQueueOptions. */ - interface IWriteGroupKubeMQQueueOptions { + namespace InferSchemaOptions { - /** WriteGroupKubeMQQueueOptions _conn */ - _conn?: (protos.args.IKubeMQQueueConn|null); + /** Type enum. */ + enum Type { + UNSET = 0, + JSONSCHEMA = 1 + } + } - /** WriteGroupKubeMQQueueOptions args */ - args?: (protos.args.IKubeMQQueueWriteArgs|null); + /** Properties of a WriteCLIOptions. */ + interface IWriteCLIOptions { + + /** WriteCLIOptions inputFile */ + inputFile?: (string|null); + + /** WriteCLIOptions inputAsJsonArray */ + inputAsJsonArray?: (boolean|null); + + /** WriteCLIOptions inputStdin */ + inputStdin?: (string[]|null); } - /** Represents a WriteGroupKubeMQQueueOptions. */ - class WriteGroupKubeMQQueueOptions implements IWriteGroupKubeMQQueueOptions { + /** Represents a WriteCLIOptions. */ + class WriteCLIOptions implements IWriteCLIOptions { /** - * Constructs a new WriteGroupKubeMQQueueOptions. + * Constructs a new WriteCLIOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupKubeMQQueueOptions); + constructor(properties?: protos.opts.IWriteCLIOptions); - /** WriteGroupKubeMQQueueOptions _conn. */ - public _conn?: (protos.args.IKubeMQQueueConn|null); + /** WriteCLIOptions inputFile. */ + public inputFile: string; - /** WriteGroupKubeMQQueueOptions args. */ - public args?: (protos.args.IKubeMQQueueWriteArgs|null); + /** WriteCLIOptions inputAsJsonArray. */ + public inputAsJsonArray: boolean; + + /** WriteCLIOptions inputStdin. */ + public inputStdin: string[]; /** - * Creates a new WriteGroupKubeMQQueueOptions instance using the specified properties. + * Creates a new WriteCLIOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupKubeMQQueueOptions instance + * @returns WriteCLIOptions instance */ - public static create(properties?: protos.opts.IWriteGroupKubeMQQueueOptions): protos.opts.WriteGroupKubeMQQueueOptions; + public static create(properties?: protos.opts.IWriteCLIOptions): protos.opts.WriteCLIOptions; /** - * Encodes the specified WriteGroupKubeMQQueueOptions message. Does not implicitly {@link protos.opts.WriteGroupKubeMQQueueOptions.verify|verify} messages. - * @param message WriteGroupKubeMQQueueOptions message or plain object to encode + * Encodes the specified WriteCLIOptions message. Does not implicitly {@link protos.opts.WriteCLIOptions.verify|verify} messages. + * @param message WriteCLIOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupKubeMQQueueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupKubeMQQueueOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupKubeMQQueueOptions.verify|verify} messages. - * @param message WriteGroupKubeMQQueueOptions message or plain object to encode + * Encodes the specified WriteCLIOptions message, length delimited. Does not implicitly {@link protos.opts.WriteCLIOptions.verify|verify} messages. + * @param message WriteCLIOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupKubeMQQueueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteCLIOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupKubeMQQueueOptions message from the specified reader or buffer. + * Decodes a WriteCLIOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupKubeMQQueueOptions + * @returns WriteCLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupKubeMQQueueOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteCLIOptions; /** - * Decodes a WriteGroupKubeMQQueueOptions message from the specified reader or buffer, length delimited. + * Decodes a WriteCLIOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupKubeMQQueueOptions + * @returns WriteCLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupKubeMQQueueOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteCLIOptions; /** - * Verifies a WriteGroupKubeMQQueueOptions message. + * Verifies a WriteCLIOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupKubeMQQueueOptions message from a plain object. Also converts values to their respective internal types. + * Creates a WriteCLIOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupKubeMQQueueOptions + * @returns WriteCLIOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupKubeMQQueueOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteCLIOptions; /** - * Creates a plain object from a WriteGroupKubeMQQueueOptions message. Also converts values to other types if specified. - * @param message WriteGroupKubeMQQueueOptions + * Creates a plain object from a WriteCLIOptions message. Also converts values to other types if specified. + * @param message WriteCLIOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupKubeMQQueueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteCLIOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupKubeMQQueueOptions to JSON. + * Converts this WriteCLIOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupAWSKinesisOptions. */ - interface IWriteGroupAWSKinesisOptions { + /** Properties of a WriteOptions. */ + interface IWriteOptions { - /** WriteGroupAWSKinesisOptions _conn */ - _conn?: (protos.args.IAWSKinesisConn|null); + /** WriteOptions connectionId */ + connectionId?: (string|null); - /** WriteGroupAWSKinesisOptions args */ - args?: (protos.args.IAWSKinesisWriteArgs|null); + /** WriteOptions record */ + record?: (protos.records.IWriteRecord|null); + + /** WriteOptions encodeOptions */ + encodeOptions?: (protos.encoding.IEncodeOptions|null); + + /** WriteOptions _cliOptions */ + _cliOptions?: (protos.opts.IWriteCLIOptions|null); + + /** WriteOptions kafka */ + kafka?: (protos.opts.IWriteGroupKafkaOptions|null); + + /** WriteOptions activemq */ + activemq?: (protos.opts.IWriteGroupActiveMQOptions|null); + + /** WriteOptions awsSqs */ + awsSqs?: (protos.opts.IWriteGroupAWSSQSOptions|null); + + /** WriteOptions awsSns */ + awsSns?: (protos.opts.IWriteGroupAWSSNSOptions|null); + + /** WriteOptions nats */ + nats?: (protos.opts.IWriteGroupNatsOptions|null); + + /** WriteOptions natsStreaming */ + natsStreaming?: (protos.opts.IWriteGroupNatsStreamingOptions|null); + + /** WriteOptions nsq */ + nsq?: (protos.opts.IWriteGroupNSQOptions|null); + + /** WriteOptions pulsar */ + pulsar?: (protos.opts.IWriteGroupPulsarOptions|null); + + /** WriteOptions rabbit */ + rabbit?: (protos.opts.IWriteGroupRabbitOptions|null); + + /** WriteOptions rabbitStreams */ + rabbitStreams?: (protos.opts.IWriteGroupRabbitStreamsOptions|null); + + /** WriteOptions mqtt */ + mqtt?: (protos.opts.IWriteGroupMQTTOptions|null); + + /** WriteOptions azureServiceBus */ + azureServiceBus?: (protos.opts.IWriteGroupAzureServiceBusOptions|null); + + /** WriteOptions azureEventHub */ + azureEventHub?: (protos.opts.IWriteGroupAzureEventHubOptions|null); + + /** WriteOptions gcpPubsub */ + gcpPubsub?: (protos.opts.IWriteGroupGCPPubSubOptions|null); + + /** WriteOptions kubemqQueue */ + kubemqQueue?: (protos.opts.IWriteGroupKubeMQQueueOptions|null); + + /** WriteOptions redisPubsub */ + redisPubsub?: (protos.opts.IWriteGroupRedisPubSubOptions|null); + + /** WriteOptions redisStreams */ + redisStreams?: (protos.opts.IWriteGroupRedisStreamsOptions|null); + + /** WriteOptions natsJetstream */ + natsJetstream?: (protos.opts.IWriteGroupNatsJetstreamOptions|null); + + /** WriteOptions awsKinesis */ + awsKinesis?: (protos.opts.IWriteGroupAWSKinesisOptions|null); + + /** WriteOptions memphis */ + memphis?: (protos.opts.IWriteGroupMemphisOptions|null); } - /** Represents a WriteGroupAWSKinesisOptions. */ - class WriteGroupAWSKinesisOptions implements IWriteGroupAWSKinesisOptions { + /** Represents a WriteOptions. */ + class WriteOptions implements IWriteOptions { /** - * Constructs a new WriteGroupAWSKinesisOptions. + * Constructs a new WriteOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupAWSKinesisOptions); + constructor(properties?: protos.opts.IWriteOptions); - /** WriteGroupAWSKinesisOptions _conn. */ - public _conn?: (protos.args.IAWSKinesisConn|null); + /** WriteOptions connectionId. */ + public connectionId: string; - /** WriteGroupAWSKinesisOptions args. */ - public args?: (protos.args.IAWSKinesisWriteArgs|null); + /** WriteOptions record. */ + public record?: (protos.records.IWriteRecord|null); + + /** WriteOptions encodeOptions. */ + public encodeOptions?: (protos.encoding.IEncodeOptions|null); + + /** WriteOptions _cliOptions. */ + public _cliOptions?: (protos.opts.IWriteCLIOptions|null); + + /** WriteOptions kafka. */ + public kafka?: (protos.opts.IWriteGroupKafkaOptions|null); + + /** WriteOptions activemq. */ + public activemq?: (protos.opts.IWriteGroupActiveMQOptions|null); + + /** WriteOptions awsSqs. */ + public awsSqs?: (protos.opts.IWriteGroupAWSSQSOptions|null); + + /** WriteOptions awsSns. */ + public awsSns?: (protos.opts.IWriteGroupAWSSNSOptions|null); + + /** WriteOptions nats. */ + public nats?: (protos.opts.IWriteGroupNatsOptions|null); + + /** WriteOptions natsStreaming. */ + public natsStreaming?: (protos.opts.IWriteGroupNatsStreamingOptions|null); + + /** WriteOptions nsq. */ + public nsq?: (protos.opts.IWriteGroupNSQOptions|null); + + /** WriteOptions pulsar. */ + public pulsar?: (protos.opts.IWriteGroupPulsarOptions|null); + + /** WriteOptions rabbit. */ + public rabbit?: (protos.opts.IWriteGroupRabbitOptions|null); + + /** WriteOptions rabbitStreams. */ + public rabbitStreams?: (protos.opts.IWriteGroupRabbitStreamsOptions|null); + + /** WriteOptions mqtt. */ + public mqtt?: (protos.opts.IWriteGroupMQTTOptions|null); + + /** WriteOptions azureServiceBus. */ + public azureServiceBus?: (protos.opts.IWriteGroupAzureServiceBusOptions|null); + + /** WriteOptions azureEventHub. */ + public azureEventHub?: (protos.opts.IWriteGroupAzureEventHubOptions|null); + + /** WriteOptions gcpPubsub. */ + public gcpPubsub?: (protos.opts.IWriteGroupGCPPubSubOptions|null); + + /** WriteOptions kubemqQueue. */ + public kubemqQueue?: (protos.opts.IWriteGroupKubeMQQueueOptions|null); + + /** WriteOptions redisPubsub. */ + public redisPubsub?: (protos.opts.IWriteGroupRedisPubSubOptions|null); + + /** WriteOptions redisStreams. */ + public redisStreams?: (protos.opts.IWriteGroupRedisStreamsOptions|null); + + /** WriteOptions natsJetstream. */ + public natsJetstream?: (protos.opts.IWriteGroupNatsJetstreamOptions|null); + + /** WriteOptions awsKinesis. */ + public awsKinesis?: (protos.opts.IWriteGroupAWSKinesisOptions|null); + + /** WriteOptions memphis. */ + public memphis?: (protos.opts.IWriteGroupMemphisOptions|null); /** - * Creates a new WriteGroupAWSKinesisOptions instance using the specified properties. + * Creates a new WriteOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupAWSKinesisOptions instance + * @returns WriteOptions instance */ - public static create(properties?: protos.opts.IWriteGroupAWSKinesisOptions): protos.opts.WriteGroupAWSKinesisOptions; + public static create(properties?: protos.opts.IWriteOptions): protos.opts.WriteOptions; /** - * Encodes the specified WriteGroupAWSKinesisOptions message. Does not implicitly {@link protos.opts.WriteGroupAWSKinesisOptions.verify|verify} messages. - * @param message WriteGroupAWSKinesisOptions message or plain object to encode + * Encodes the specified WriteOptions message. Does not implicitly {@link protos.opts.WriteOptions.verify|verify} messages. + * @param message WriteOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupAWSKinesisOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupAWSKinesisOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAWSKinesisOptions.verify|verify} messages. - * @param message WriteGroupAWSKinesisOptions message or plain object to encode + * Encodes the specified WriteOptions message, length delimited. Does not implicitly {@link protos.opts.WriteOptions.verify|verify} messages. + * @param message WriteOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupAWSKinesisOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupAWSKinesisOptions message from the specified reader or buffer. + * Decodes a WriteOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupAWSKinesisOptions + * @returns WriteOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupAWSKinesisOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteOptions; /** - * Decodes a WriteGroupAWSKinesisOptions message from the specified reader or buffer, length delimited. + * Decodes a WriteOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupAWSKinesisOptions + * @returns WriteOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupAWSKinesisOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteOptions; /** - * Verifies a WriteGroupAWSKinesisOptions message. + * Verifies a WriteOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupAWSKinesisOptions message from a plain object. Also converts values to their respective internal types. + * Creates a WriteOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupAWSKinesisOptions + * @returns WriteOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupAWSKinesisOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteOptions; /** - * Creates a plain object from a WriteGroupAWSKinesisOptions message. Also converts values to other types if specified. - * @param message WriteGroupAWSKinesisOptions + * Creates a plain object from a WriteOptions message. Also converts values to other types if specified. + * @param message WriteOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupAWSKinesisOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupAWSKinesisOptions to JSON. + * Converts this WriteOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WriteGroupMemphisOptions. */ - interface IWriteGroupMemphisOptions { + /** Properties of a WriteGroupKafkaOptions. */ + interface IWriteGroupKafkaOptions { - /** WriteGroupMemphisOptions _conn */ - _conn?: (protos.args.IMemphisConn|null); + /** WriteGroupKafkaOptions _conn */ + _conn?: (protos.args.IKafkaConn|null); - /** WriteGroupMemphisOptions args */ - args?: (protos.args.IMemphisWriteArgs|null); + /** WriteGroupKafkaOptions args */ + args?: (protos.args.IKafkaWriteArgs|null); } - /** Represents a WriteGroupMemphisOptions. */ - class WriteGroupMemphisOptions implements IWriteGroupMemphisOptions { + /** Represents a WriteGroupKafkaOptions. */ + class WriteGroupKafkaOptions implements IWriteGroupKafkaOptions { /** - * Constructs a new WriteGroupMemphisOptions. + * Constructs a new WriteGroupKafkaOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.opts.IWriteGroupMemphisOptions); + constructor(properties?: protos.opts.IWriteGroupKafkaOptions); - /** WriteGroupMemphisOptions _conn. */ - public _conn?: (protos.args.IMemphisConn|null); + /** WriteGroupKafkaOptions _conn. */ + public _conn?: (protos.args.IKafkaConn|null); - /** WriteGroupMemphisOptions args. */ - public args?: (protos.args.IMemphisWriteArgs|null); + /** WriteGroupKafkaOptions args. */ + public args?: (protos.args.IKafkaWriteArgs|null); /** - * Creates a new WriteGroupMemphisOptions instance using the specified properties. + * Creates a new WriteGroupKafkaOptions instance using the specified properties. * @param [properties] Properties to set - * @returns WriteGroupMemphisOptions instance + * @returns WriteGroupKafkaOptions instance */ - public static create(properties?: protos.opts.IWriteGroupMemphisOptions): protos.opts.WriteGroupMemphisOptions; + public static create(properties?: protos.opts.IWriteGroupKafkaOptions): protos.opts.WriteGroupKafkaOptions; /** - * Encodes the specified WriteGroupMemphisOptions message. Does not implicitly {@link protos.opts.WriteGroupMemphisOptions.verify|verify} messages. - * @param message WriteGroupMemphisOptions message or plain object to encode + * Encodes the specified WriteGroupKafkaOptions message. Does not implicitly {@link protos.opts.WriteGroupKafkaOptions.verify|verify} messages. + * @param message WriteGroupKafkaOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.opts.IWriteGroupMemphisOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupKafkaOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteGroupMemphisOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupMemphisOptions.verify|verify} messages. - * @param message WriteGroupMemphisOptions message or plain object to encode + * Encodes the specified WriteGroupKafkaOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupKafkaOptions.verify|verify} messages. + * @param message WriteGroupKafkaOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.opts.IWriteGroupMemphisOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupKafkaOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteGroupMemphisOptions message from the specified reader or buffer. + * Decodes a WriteGroupKafkaOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteGroupMemphisOptions + * @returns WriteGroupKafkaOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupMemphisOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupKafkaOptions; /** - * Decodes a WriteGroupMemphisOptions message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupKafkaOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteGroupMemphisOptions + * @returns WriteGroupKafkaOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupMemphisOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupKafkaOptions; /** - * Verifies a WriteGroupMemphisOptions message. + * Verifies a WriteGroupKafkaOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WriteGroupMemphisOptions message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupKafkaOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteGroupMemphisOptions + * @returns WriteGroupKafkaOptions */ - public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupMemphisOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupKafkaOptions; /** - * Creates a plain object from a WriteGroupMemphisOptions message. Also converts values to other types if specified. - * @param message WriteGroupMemphisOptions + * Creates a plain object from a WriteGroupKafkaOptions message. Also converts values to other types if specified. + * @param message WriteGroupKafkaOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.opts.WriteGroupMemphisOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupKafkaOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteGroupMemphisOptions to JSON. + * Converts this WriteGroupKafkaOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - /** Namespace args. */ - namespace args { + /** Properties of a WriteGroupActiveMQOptions. */ + interface IWriteGroupActiveMQOptions { - /** Properties of an ActiveMQConn. */ - interface IActiveMQConn { + /** WriteGroupActiveMQOptions _conn */ + _conn?: (protos.args.IActiveMQConn|null); - /** ActiveMQConn address */ - address?: (string|null); + /** WriteGroupActiveMQOptions args */ + args?: (protos.args.IActiveMQWriteArgs|null); } - /** Represents an ActiveMQConn. */ - class ActiveMQConn implements IActiveMQConn { + /** Represents a WriteGroupActiveMQOptions. */ + class WriteGroupActiveMQOptions implements IWriteGroupActiveMQOptions { /** - * Constructs a new ActiveMQConn. + * Constructs a new WriteGroupActiveMQOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.args.IActiveMQConn); + constructor(properties?: protos.opts.IWriteGroupActiveMQOptions); - /** ActiveMQConn address. */ - public address: string; + /** WriteGroupActiveMQOptions _conn. */ + public _conn?: (protos.args.IActiveMQConn|null); + + /** WriteGroupActiveMQOptions args. */ + public args?: (protos.args.IActiveMQWriteArgs|null); /** - * Creates a new ActiveMQConn instance using the specified properties. + * Creates a new WriteGroupActiveMQOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ActiveMQConn instance + * @returns WriteGroupActiveMQOptions instance */ - public static create(properties?: protos.args.IActiveMQConn): protos.args.ActiveMQConn; + public static create(properties?: protos.opts.IWriteGroupActiveMQOptions): protos.opts.WriteGroupActiveMQOptions; /** - * Encodes the specified ActiveMQConn message. Does not implicitly {@link protos.args.ActiveMQConn.verify|verify} messages. - * @param message ActiveMQConn message or plain object to encode + * Encodes the specified WriteGroupActiveMQOptions message. Does not implicitly {@link protos.opts.WriteGroupActiveMQOptions.verify|verify} messages. + * @param message WriteGroupActiveMQOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.args.IActiveMQConn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupActiveMQOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ActiveMQConn message, length delimited. Does not implicitly {@link protos.args.ActiveMQConn.verify|verify} messages. - * @param message ActiveMQConn message or plain object to encode + * Encodes the specified WriteGroupActiveMQOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupActiveMQOptions.verify|verify} messages. + * @param message WriteGroupActiveMQOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.args.IActiveMQConn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupActiveMQOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ActiveMQConn message from the specified reader or buffer. + * Decodes a WriteGroupActiveMQOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ActiveMQConn + * @returns WriteGroupActiveMQOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.ActiveMQConn; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupActiveMQOptions; /** - * Decodes an ActiveMQConn message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupActiveMQOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ActiveMQConn + * @returns WriteGroupActiveMQOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.ActiveMQConn; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupActiveMQOptions; /** - * Verifies an ActiveMQConn message. + * Verifies a WriteGroupActiveMQOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ActiveMQConn message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupActiveMQOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ActiveMQConn + * @returns WriteGroupActiveMQOptions */ - public static fromObject(object: { [k: string]: any }): protos.args.ActiveMQConn; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupActiveMQOptions; /** - * Creates a plain object from an ActiveMQConn message. Also converts values to other types if specified. - * @param message ActiveMQConn + * Creates a plain object from a WriteGroupActiveMQOptions message. Also converts values to other types if specified. + * @param message WriteGroupActiveMQOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.args.ActiveMQConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupActiveMQOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ActiveMQConn to JSON. + * Converts this WriteGroupActiveMQOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ActiveMQReadArgs. */ - interface IActiveMQReadArgs { + /** Properties of a WriteGroupAWSSQSOptions. */ + interface IWriteGroupAWSSQSOptions { - /** ActiveMQReadArgs topic */ - topic?: (string|null); + /** WriteGroupAWSSQSOptions _conn */ + _conn?: (protos.args.IAWSSQSConn|null); - /** ActiveMQReadArgs queue */ - queue?: (string|null); + /** WriteGroupAWSSQSOptions args */ + args?: (protos.args.IAWSSQSWriteArgs|null); } - /** Represents an ActiveMQReadArgs. */ - class ActiveMQReadArgs implements IActiveMQReadArgs { + /** Represents a WriteGroupAWSSQSOptions. */ + class WriteGroupAWSSQSOptions implements IWriteGroupAWSSQSOptions { /** - * Constructs a new ActiveMQReadArgs. + * Constructs a new WriteGroupAWSSQSOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.args.IActiveMQReadArgs); + constructor(properties?: protos.opts.IWriteGroupAWSSQSOptions); - /** ActiveMQReadArgs topic. */ - public topic: string; + /** WriteGroupAWSSQSOptions _conn. */ + public _conn?: (protos.args.IAWSSQSConn|null); - /** ActiveMQReadArgs queue. */ - public queue: string; + /** WriteGroupAWSSQSOptions args. */ + public args?: (protos.args.IAWSSQSWriteArgs|null); /** - * Creates a new ActiveMQReadArgs instance using the specified properties. + * Creates a new WriteGroupAWSSQSOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ActiveMQReadArgs instance + * @returns WriteGroupAWSSQSOptions instance */ - public static create(properties?: protos.args.IActiveMQReadArgs): protos.args.ActiveMQReadArgs; + public static create(properties?: protos.opts.IWriteGroupAWSSQSOptions): protos.opts.WriteGroupAWSSQSOptions; /** - * Encodes the specified ActiveMQReadArgs message. Does not implicitly {@link protos.args.ActiveMQReadArgs.verify|verify} messages. - * @param message ActiveMQReadArgs message or plain object to encode + * Encodes the specified WriteGroupAWSSQSOptions message. Does not implicitly {@link protos.opts.WriteGroupAWSSQSOptions.verify|verify} messages. + * @param message WriteGroupAWSSQSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.args.IActiveMQReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupAWSSQSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ActiveMQReadArgs message, length delimited. Does not implicitly {@link protos.args.ActiveMQReadArgs.verify|verify} messages. - * @param message ActiveMQReadArgs message or plain object to encode + * Encodes the specified WriteGroupAWSSQSOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAWSSQSOptions.verify|verify} messages. + * @param message WriteGroupAWSSQSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.args.IActiveMQReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupAWSSQSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ActiveMQReadArgs message from the specified reader or buffer. + * Decodes a WriteGroupAWSSQSOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ActiveMQReadArgs + * @returns WriteGroupAWSSQSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.ActiveMQReadArgs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupAWSSQSOptions; /** - * Decodes an ActiveMQReadArgs message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupAWSSQSOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ActiveMQReadArgs + * @returns WriteGroupAWSSQSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.ActiveMQReadArgs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupAWSSQSOptions; /** - * Verifies an ActiveMQReadArgs message. + * Verifies a WriteGroupAWSSQSOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ActiveMQReadArgs message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupAWSSQSOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ActiveMQReadArgs + * @returns WriteGroupAWSSQSOptions */ - public static fromObject(object: { [k: string]: any }): protos.args.ActiveMQReadArgs; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupAWSSQSOptions; /** - * Creates a plain object from an ActiveMQReadArgs message. Also converts values to other types if specified. - * @param message ActiveMQReadArgs + * Creates a plain object from a WriteGroupAWSSQSOptions message. Also converts values to other types if specified. + * @param message WriteGroupAWSSQSOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.args.ActiveMQReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupAWSSQSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ActiveMQReadArgs to JSON. + * Converts this WriteGroupAWSSQSOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ActiveMQWriteArgs. */ - interface IActiveMQWriteArgs { + /** Properties of a WriteGroupAWSSNSOptions. */ + interface IWriteGroupAWSSNSOptions { - /** ActiveMQWriteArgs topic */ - topic?: (string|null); + /** WriteGroupAWSSNSOptions _conn */ + _conn?: (protos.args.IAWSSNSConn|null); - /** ActiveMQWriteArgs queue */ - queue?: (string|null); + /** WriteGroupAWSSNSOptions args */ + args?: (protos.args.IAWSSNSWriteArgs|null); } - /** Represents an ActiveMQWriteArgs. */ - class ActiveMQWriteArgs implements IActiveMQWriteArgs { + /** Represents a WriteGroupAWSSNSOptions. */ + class WriteGroupAWSSNSOptions implements IWriteGroupAWSSNSOptions { /** - * Constructs a new ActiveMQWriteArgs. + * Constructs a new WriteGroupAWSSNSOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.args.IActiveMQWriteArgs); + constructor(properties?: protos.opts.IWriteGroupAWSSNSOptions); - /** ActiveMQWriteArgs topic. */ - public topic: string; + /** WriteGroupAWSSNSOptions _conn. */ + public _conn?: (protos.args.IAWSSNSConn|null); - /** ActiveMQWriteArgs queue. */ - public queue: string; + /** WriteGroupAWSSNSOptions args. */ + public args?: (protos.args.IAWSSNSWriteArgs|null); /** - * Creates a new ActiveMQWriteArgs instance using the specified properties. + * Creates a new WriteGroupAWSSNSOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ActiveMQWriteArgs instance + * @returns WriteGroupAWSSNSOptions instance */ - public static create(properties?: protos.args.IActiveMQWriteArgs): protos.args.ActiveMQWriteArgs; + public static create(properties?: protos.opts.IWriteGroupAWSSNSOptions): protos.opts.WriteGroupAWSSNSOptions; /** - * Encodes the specified ActiveMQWriteArgs message. Does not implicitly {@link protos.args.ActiveMQWriteArgs.verify|verify} messages. - * @param message ActiveMQWriteArgs message or plain object to encode + * Encodes the specified WriteGroupAWSSNSOptions message. Does not implicitly {@link protos.opts.WriteGroupAWSSNSOptions.verify|verify} messages. + * @param message WriteGroupAWSSNSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.args.IActiveMQWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupAWSSNSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ActiveMQWriteArgs message, length delimited. Does not implicitly {@link protos.args.ActiveMQWriteArgs.verify|verify} messages. - * @param message ActiveMQWriteArgs message or plain object to encode + * Encodes the specified WriteGroupAWSSNSOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAWSSNSOptions.verify|verify} messages. + * @param message WriteGroupAWSSNSOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.args.IActiveMQWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupAWSSNSOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ActiveMQWriteArgs message from the specified reader or buffer. + * Decodes a WriteGroupAWSSNSOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ActiveMQWriteArgs + * @returns WriteGroupAWSSNSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.ActiveMQWriteArgs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupAWSSNSOptions; /** - * Decodes an ActiveMQWriteArgs message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupAWSSNSOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ActiveMQWriteArgs + * @returns WriteGroupAWSSNSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.ActiveMQWriteArgs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupAWSSNSOptions; /** - * Verifies an ActiveMQWriteArgs message. + * Verifies a WriteGroupAWSSNSOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ActiveMQWriteArgs message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupAWSSNSOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ActiveMQWriteArgs + * @returns WriteGroupAWSSNSOptions */ - public static fromObject(object: { [k: string]: any }): protos.args.ActiveMQWriteArgs; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupAWSSNSOptions; /** - * Creates a plain object from an ActiveMQWriteArgs message. Also converts values to other types if specified. - * @param message ActiveMQWriteArgs + * Creates a plain object from a WriteGroupAWSSNSOptions message. Also converts values to other types if specified. + * @param message WriteGroupAWSSNSOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.args.ActiveMQWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupAWSSNSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ActiveMQWriteArgs to JSON. + * Converts this WriteGroupAWSSNSOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a AWSKinesisConn. */ - interface IAWSKinesisConn { - - /** AWSKinesisConn awsRegion */ - awsRegion?: (string|null); - - /** AWSKinesisConn awsAccessKeyId */ - awsAccessKeyId?: (string|null); + /** Properties of a WriteGroupNatsOptions. */ + interface IWriteGroupNatsOptions { - /** AWSKinesisConn awsSecretAccessKey */ - awsSecretAccessKey?: (string|null); + /** WriteGroupNatsOptions _conn */ + _conn?: (protos.args.INatsConn|null); - /** AWSKinesisConn awsProfile */ - awsProfile?: (string|null); + /** WriteGroupNatsOptions args */ + args?: (protos.args.INatsWriteArgs|null); } - /** Represents a AWSKinesisConn. */ - class AWSKinesisConn implements IAWSKinesisConn { + /** Represents a WriteGroupNatsOptions. */ + class WriteGroupNatsOptions implements IWriteGroupNatsOptions { /** - * Constructs a new AWSKinesisConn. + * Constructs a new WriteGroupNatsOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.args.IAWSKinesisConn); - - /** AWSKinesisConn awsRegion. */ - public awsRegion: string; - - /** AWSKinesisConn awsAccessKeyId. */ - public awsAccessKeyId: string; + constructor(properties?: protos.opts.IWriteGroupNatsOptions); - /** AWSKinesisConn awsSecretAccessKey. */ - public awsSecretAccessKey: string; + /** WriteGroupNatsOptions _conn. */ + public _conn?: (protos.args.INatsConn|null); - /** AWSKinesisConn awsProfile. */ - public awsProfile: string; + /** WriteGroupNatsOptions args. */ + public args?: (protos.args.INatsWriteArgs|null); /** - * Creates a new AWSKinesisConn instance using the specified properties. + * Creates a new WriteGroupNatsOptions instance using the specified properties. * @param [properties] Properties to set - * @returns AWSKinesisConn instance + * @returns WriteGroupNatsOptions instance */ - public static create(properties?: protos.args.IAWSKinesisConn): protos.args.AWSKinesisConn; + public static create(properties?: protos.opts.IWriteGroupNatsOptions): protos.opts.WriteGroupNatsOptions; /** - * Encodes the specified AWSKinesisConn message. Does not implicitly {@link protos.args.AWSKinesisConn.verify|verify} messages. - * @param message AWSKinesisConn message or plain object to encode + * Encodes the specified WriteGroupNatsOptions message. Does not implicitly {@link protos.opts.WriteGroupNatsOptions.verify|verify} messages. + * @param message WriteGroupNatsOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.args.IAWSKinesisConn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupNatsOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AWSKinesisConn message, length delimited. Does not implicitly {@link protos.args.AWSKinesisConn.verify|verify} messages. - * @param message AWSKinesisConn message or plain object to encode + * Encodes the specified WriteGroupNatsOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNatsOptions.verify|verify} messages. + * @param message WriteGroupNatsOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.args.IAWSKinesisConn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupNatsOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a AWSKinesisConn message from the specified reader or buffer. + * Decodes a WriteGroupNatsOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AWSKinesisConn + * @returns WriteGroupNatsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSKinesisConn; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupNatsOptions; /** - * Decodes a AWSKinesisConn message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupNatsOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AWSKinesisConn + * @returns WriteGroupNatsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSKinesisConn; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupNatsOptions; /** - * Verifies a AWSKinesisConn message. + * Verifies a WriteGroupNatsOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a AWSKinesisConn message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupNatsOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AWSKinesisConn + * @returns WriteGroupNatsOptions */ - public static fromObject(object: { [k: string]: any }): protos.args.AWSKinesisConn; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupNatsOptions; /** - * Creates a plain object from a AWSKinesisConn message. Also converts values to other types if specified. - * @param message AWSKinesisConn + * Creates a plain object from a WriteGroupNatsOptions message. Also converts values to other types if specified. + * @param message WriteGroupNatsOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.args.AWSKinesisConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupNatsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AWSKinesisConn to JSON. + * Converts this WriteGroupNatsOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a AWSKinesisReadArgs. */ - interface IAWSKinesisReadArgs { - - /** AWSKinesisReadArgs stream */ - stream?: (string|null); - - /** AWSKinesisReadArgs shard */ - shard?: (string|null); - - /** AWSKinesisReadArgs maxRecords */ - maxRecords?: (number|Long|null); - - /** AWSKinesisReadArgs readFromTimestamp */ - readFromTimestamp?: (number|Long|null); - - /** AWSKinesisReadArgs readSequenceNumber */ - readSequenceNumber?: (string|null); - - /** AWSKinesisReadArgs readAfterSequenceNumber */ - readAfterSequenceNumber?: (string|null); + /** Properties of a WriteGroupNatsJetstreamOptions. */ + interface IWriteGroupNatsJetstreamOptions { - /** AWSKinesisReadArgs readTrimHorizon */ - readTrimHorizon?: (boolean|null); + /** WriteGroupNatsJetstreamOptions _conn */ + _conn?: (protos.args.INatsJetstreamConn|null); - /** AWSKinesisReadArgs readLatest */ - readLatest?: (boolean|null); + /** WriteGroupNatsJetstreamOptions args */ + args?: (protos.args.INatsJetstreamWriteArgs|null); } - /** Represents a AWSKinesisReadArgs. */ - class AWSKinesisReadArgs implements IAWSKinesisReadArgs { + /** Represents a WriteGroupNatsJetstreamOptions. */ + class WriteGroupNatsJetstreamOptions implements IWriteGroupNatsJetstreamOptions { /** - * Constructs a new AWSKinesisReadArgs. + * Constructs a new WriteGroupNatsJetstreamOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.args.IAWSKinesisReadArgs); - - /** AWSKinesisReadArgs stream. */ - public stream: string; - - /** AWSKinesisReadArgs shard. */ - public shard: string; - - /** AWSKinesisReadArgs maxRecords. */ - public maxRecords: (number|Long); - - /** AWSKinesisReadArgs readFromTimestamp. */ - public readFromTimestamp: (number|Long); - - /** AWSKinesisReadArgs readSequenceNumber. */ - public readSequenceNumber: string; - - /** AWSKinesisReadArgs readAfterSequenceNumber. */ - public readAfterSequenceNumber: string; + constructor(properties?: protos.opts.IWriteGroupNatsJetstreamOptions); - /** AWSKinesisReadArgs readTrimHorizon. */ - public readTrimHorizon: boolean; + /** WriteGroupNatsJetstreamOptions _conn. */ + public _conn?: (protos.args.INatsJetstreamConn|null); - /** AWSKinesisReadArgs readLatest. */ - public readLatest: boolean; + /** WriteGroupNatsJetstreamOptions args. */ + public args?: (protos.args.INatsJetstreamWriteArgs|null); /** - * Creates a new AWSKinesisReadArgs instance using the specified properties. + * Creates a new WriteGroupNatsJetstreamOptions instance using the specified properties. * @param [properties] Properties to set - * @returns AWSKinesisReadArgs instance + * @returns WriteGroupNatsJetstreamOptions instance */ - public static create(properties?: protos.args.IAWSKinesisReadArgs): protos.args.AWSKinesisReadArgs; + public static create(properties?: protos.opts.IWriteGroupNatsJetstreamOptions): protos.opts.WriteGroupNatsJetstreamOptions; /** - * Encodes the specified AWSKinesisReadArgs message. Does not implicitly {@link protos.args.AWSKinesisReadArgs.verify|verify} messages. - * @param message AWSKinesisReadArgs message or plain object to encode + * Encodes the specified WriteGroupNatsJetstreamOptions message. Does not implicitly {@link protos.opts.WriteGroupNatsJetstreamOptions.verify|verify} messages. + * @param message WriteGroupNatsJetstreamOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.args.IAWSKinesisReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupNatsJetstreamOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AWSKinesisReadArgs message, length delimited. Does not implicitly {@link protos.args.AWSKinesisReadArgs.verify|verify} messages. - * @param message AWSKinesisReadArgs message or plain object to encode + * Encodes the specified WriteGroupNatsJetstreamOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNatsJetstreamOptions.verify|verify} messages. + * @param message WriteGroupNatsJetstreamOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.args.IAWSKinesisReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupNatsJetstreamOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a AWSKinesisReadArgs message from the specified reader or buffer. + * Decodes a WriteGroupNatsJetstreamOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AWSKinesisReadArgs + * @returns WriteGroupNatsJetstreamOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSKinesisReadArgs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupNatsJetstreamOptions; /** - * Decodes a AWSKinesisReadArgs message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupNatsJetstreamOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AWSKinesisReadArgs + * @returns WriteGroupNatsJetstreamOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSKinesisReadArgs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupNatsJetstreamOptions; /** - * Verifies a AWSKinesisReadArgs message. + * Verifies a WriteGroupNatsJetstreamOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a AWSKinesisReadArgs message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupNatsJetstreamOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AWSKinesisReadArgs + * @returns WriteGroupNatsJetstreamOptions */ - public static fromObject(object: { [k: string]: any }): protos.args.AWSKinesisReadArgs; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupNatsJetstreamOptions; /** - * Creates a plain object from a AWSKinesisReadArgs message. Also converts values to other types if specified. - * @param message AWSKinesisReadArgs + * Creates a plain object from a WriteGroupNatsJetstreamOptions message. Also converts values to other types if specified. + * @param message WriteGroupNatsJetstreamOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.args.AWSKinesisReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupNatsJetstreamOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AWSKinesisReadArgs to JSON. + * Converts this WriteGroupNatsJetstreamOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a AWSKinesisWriteArgs. */ - interface IAWSKinesisWriteArgs { - - /** AWSKinesisWriteArgs stream */ - stream?: (string|null); + /** Properties of a WriteGroupNatsStreamingOptions. */ + interface IWriteGroupNatsStreamingOptions { - /** AWSKinesisWriteArgs partitionKey */ - partitionKey?: (string|null); + /** WriteGroupNatsStreamingOptions _conn */ + _conn?: (protos.args.INatsStreamingConn|null); - /** AWSKinesisWriteArgs sequenceNumber */ - sequenceNumber?: (string|null); + /** WriteGroupNatsStreamingOptions args */ + args?: (protos.args.INatsStreamingWriteArgs|null); } - /** Represents a AWSKinesisWriteArgs. */ - class AWSKinesisWriteArgs implements IAWSKinesisWriteArgs { + /** Represents a WriteGroupNatsStreamingOptions. */ + class WriteGroupNatsStreamingOptions implements IWriteGroupNatsStreamingOptions { /** - * Constructs a new AWSKinesisWriteArgs. + * Constructs a new WriteGroupNatsStreamingOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.args.IAWSKinesisWriteArgs); - - /** AWSKinesisWriteArgs stream. */ - public stream: string; + constructor(properties?: protos.opts.IWriteGroupNatsStreamingOptions); - /** AWSKinesisWriteArgs partitionKey. */ - public partitionKey: string; + /** WriteGroupNatsStreamingOptions _conn. */ + public _conn?: (protos.args.INatsStreamingConn|null); - /** AWSKinesisWriteArgs sequenceNumber. */ - public sequenceNumber: string; + /** WriteGroupNatsStreamingOptions args. */ + public args?: (protos.args.INatsStreamingWriteArgs|null); /** - * Creates a new AWSKinesisWriteArgs instance using the specified properties. + * Creates a new WriteGroupNatsStreamingOptions instance using the specified properties. * @param [properties] Properties to set - * @returns AWSKinesisWriteArgs instance + * @returns WriteGroupNatsStreamingOptions instance */ - public static create(properties?: protos.args.IAWSKinesisWriteArgs): protos.args.AWSKinesisWriteArgs; + public static create(properties?: protos.opts.IWriteGroupNatsStreamingOptions): protos.opts.WriteGroupNatsStreamingOptions; /** - * Encodes the specified AWSKinesisWriteArgs message. Does not implicitly {@link protos.args.AWSKinesisWriteArgs.verify|verify} messages. - * @param message AWSKinesisWriteArgs message or plain object to encode + * Encodes the specified WriteGroupNatsStreamingOptions message. Does not implicitly {@link protos.opts.WriteGroupNatsStreamingOptions.verify|verify} messages. + * @param message WriteGroupNatsStreamingOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.args.IAWSKinesisWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupNatsStreamingOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AWSKinesisWriteArgs message, length delimited. Does not implicitly {@link protos.args.AWSKinesisWriteArgs.verify|verify} messages. - * @param message AWSKinesisWriteArgs message or plain object to encode + * Encodes the specified WriteGroupNatsStreamingOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNatsStreamingOptions.verify|verify} messages. + * @param message WriteGroupNatsStreamingOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.args.IAWSKinesisWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupNatsStreamingOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a AWSKinesisWriteArgs message from the specified reader or buffer. + * Decodes a WriteGroupNatsStreamingOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AWSKinesisWriteArgs + * @returns WriteGroupNatsStreamingOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSKinesisWriteArgs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupNatsStreamingOptions; /** - * Decodes a AWSKinesisWriteArgs message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupNatsStreamingOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AWSKinesisWriteArgs + * @returns WriteGroupNatsStreamingOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSKinesisWriteArgs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupNatsStreamingOptions; /** - * Verifies a AWSKinesisWriteArgs message. + * Verifies a WriteGroupNatsStreamingOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a AWSKinesisWriteArgs message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupNatsStreamingOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AWSKinesisWriteArgs + * @returns WriteGroupNatsStreamingOptions */ - public static fromObject(object: { [k: string]: any }): protos.args.AWSKinesisWriteArgs; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupNatsStreamingOptions; /** - * Creates a plain object from a AWSKinesisWriteArgs message. Also converts values to other types if specified. - * @param message AWSKinesisWriteArgs + * Creates a plain object from a WriteGroupNatsStreamingOptions message. Also converts values to other types if specified. + * @param message WriteGroupNatsStreamingOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.args.AWSKinesisWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupNatsStreamingOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AWSKinesisWriteArgs to JSON. + * Converts this WriteGroupNatsStreamingOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a AWSSNSConn. */ - interface IAWSSNSConn { - - /** AWSSNSConn awsRegion */ - awsRegion?: (string|null); - - /** AWSSNSConn awsAccessKeyId */ - awsAccessKeyId?: (string|null); + /** Properties of a WriteGroupNSQOptions. */ + interface IWriteGroupNSQOptions { - /** AWSSNSConn awsSecretAccessKey */ - awsSecretAccessKey?: (string|null); + /** WriteGroupNSQOptions _conn */ + _conn?: (protos.args.INSQConn|null); - /** AWSSNSConn awsProfile */ - awsProfile?: (string|null); + /** WriteGroupNSQOptions args */ + args?: (protos.args.INSQWriteArgs|null); } - /** Represents a AWSSNSConn. */ - class AWSSNSConn implements IAWSSNSConn { + /** Represents a WriteGroupNSQOptions. */ + class WriteGroupNSQOptions implements IWriteGroupNSQOptions { /** - * Constructs a new AWSSNSConn. + * Constructs a new WriteGroupNSQOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.args.IAWSSNSConn); - - /** AWSSNSConn awsRegion. */ - public awsRegion: string; - - /** AWSSNSConn awsAccessKeyId. */ - public awsAccessKeyId: string; + constructor(properties?: protos.opts.IWriteGroupNSQOptions); - /** AWSSNSConn awsSecretAccessKey. */ - public awsSecretAccessKey: string; + /** WriteGroupNSQOptions _conn. */ + public _conn?: (protos.args.INSQConn|null); - /** AWSSNSConn awsProfile. */ - public awsProfile: string; + /** WriteGroupNSQOptions args. */ + public args?: (protos.args.INSQWriteArgs|null); /** - * Creates a new AWSSNSConn instance using the specified properties. + * Creates a new WriteGroupNSQOptions instance using the specified properties. * @param [properties] Properties to set - * @returns AWSSNSConn instance + * @returns WriteGroupNSQOptions instance */ - public static create(properties?: protos.args.IAWSSNSConn): protos.args.AWSSNSConn; + public static create(properties?: protos.opts.IWriteGroupNSQOptions): protos.opts.WriteGroupNSQOptions; /** - * Encodes the specified AWSSNSConn message. Does not implicitly {@link protos.args.AWSSNSConn.verify|verify} messages. - * @param message AWSSNSConn message or plain object to encode + * Encodes the specified WriteGroupNSQOptions message. Does not implicitly {@link protos.opts.WriteGroupNSQOptions.verify|verify} messages. + * @param message WriteGroupNSQOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.args.IAWSSNSConn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupNSQOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AWSSNSConn message, length delimited. Does not implicitly {@link protos.args.AWSSNSConn.verify|verify} messages. - * @param message AWSSNSConn message or plain object to encode + * Encodes the specified WriteGroupNSQOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNSQOptions.verify|verify} messages. + * @param message WriteGroupNSQOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.args.IAWSSNSConn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupNSQOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a AWSSNSConn message from the specified reader or buffer. + * Decodes a WriteGroupNSQOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AWSSNSConn + * @returns WriteGroupNSQOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSSNSConn; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupNSQOptions; /** - * Decodes a AWSSNSConn message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupNSQOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AWSSNSConn + * @returns WriteGroupNSQOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSSNSConn; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupNSQOptions; /** - * Verifies a AWSSNSConn message. + * Verifies a WriteGroupNSQOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a AWSSNSConn message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupNSQOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AWSSNSConn + * @returns WriteGroupNSQOptions */ - public static fromObject(object: { [k: string]: any }): protos.args.AWSSNSConn; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupNSQOptions; /** - * Creates a plain object from a AWSSNSConn message. Also converts values to other types if specified. - * @param message AWSSNSConn + * Creates a plain object from a WriteGroupNSQOptions message. Also converts values to other types if specified. + * @param message WriteGroupNSQOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.args.AWSSNSConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupNSQOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AWSSNSConn to JSON. + * Converts this WriteGroupNSQOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a AWSSNSWriteArgs. */ - interface IAWSSNSWriteArgs { + /** Properties of a WriteGroupPulsarOptions. */ + interface IWriteGroupPulsarOptions { - /** AWSSNSWriteArgs topic */ - topic?: (string|null); + /** WriteGroupPulsarOptions _conn */ + _conn?: (protos.args.IPulsarConn|null); + + /** WriteGroupPulsarOptions args */ + args?: (protos.args.IPulsarWriteArgs|null); } - /** Represents a AWSSNSWriteArgs. */ - class AWSSNSWriteArgs implements IAWSSNSWriteArgs { + /** Represents a WriteGroupPulsarOptions. */ + class WriteGroupPulsarOptions implements IWriteGroupPulsarOptions { /** - * Constructs a new AWSSNSWriteArgs. + * Constructs a new WriteGroupPulsarOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.args.IAWSSNSWriteArgs); + constructor(properties?: protos.opts.IWriteGroupPulsarOptions); - /** AWSSNSWriteArgs topic. */ - public topic: string; + /** WriteGroupPulsarOptions _conn. */ + public _conn?: (protos.args.IPulsarConn|null); + + /** WriteGroupPulsarOptions args. */ + public args?: (protos.args.IPulsarWriteArgs|null); /** - * Creates a new AWSSNSWriteArgs instance using the specified properties. + * Creates a new WriteGroupPulsarOptions instance using the specified properties. * @param [properties] Properties to set - * @returns AWSSNSWriteArgs instance + * @returns WriteGroupPulsarOptions instance */ - public static create(properties?: protos.args.IAWSSNSWriteArgs): protos.args.AWSSNSWriteArgs; + public static create(properties?: protos.opts.IWriteGroupPulsarOptions): protos.opts.WriteGroupPulsarOptions; /** - * Encodes the specified AWSSNSWriteArgs message. Does not implicitly {@link protos.args.AWSSNSWriteArgs.verify|verify} messages. - * @param message AWSSNSWriteArgs message or plain object to encode + * Encodes the specified WriteGroupPulsarOptions message. Does not implicitly {@link protos.opts.WriteGroupPulsarOptions.verify|verify} messages. + * @param message WriteGroupPulsarOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.args.IAWSSNSWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupPulsarOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AWSSNSWriteArgs message, length delimited. Does not implicitly {@link protos.args.AWSSNSWriteArgs.verify|verify} messages. - * @param message AWSSNSWriteArgs message or plain object to encode + * Encodes the specified WriteGroupPulsarOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupPulsarOptions.verify|verify} messages. + * @param message WriteGroupPulsarOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.args.IAWSSNSWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupPulsarOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a AWSSNSWriteArgs message from the specified reader or buffer. + * Decodes a WriteGroupPulsarOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AWSSNSWriteArgs + * @returns WriteGroupPulsarOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSSNSWriteArgs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupPulsarOptions; /** - * Decodes a AWSSNSWriteArgs message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupPulsarOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AWSSNSWriteArgs + * @returns WriteGroupPulsarOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSSNSWriteArgs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupPulsarOptions; /** - * Verifies a AWSSNSWriteArgs message. + * Verifies a WriteGroupPulsarOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a AWSSNSWriteArgs message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupPulsarOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AWSSNSWriteArgs + * @returns WriteGroupPulsarOptions */ - public static fromObject(object: { [k: string]: any }): protos.args.AWSSNSWriteArgs; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupPulsarOptions; /** - * Creates a plain object from a AWSSNSWriteArgs message. Also converts values to other types if specified. - * @param message AWSSNSWriteArgs + * Creates a plain object from a WriteGroupPulsarOptions message. Also converts values to other types if specified. + * @param message WriteGroupPulsarOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.args.AWSSNSWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupPulsarOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AWSSNSWriteArgs to JSON. + * Converts this WriteGroupPulsarOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a AWSSQSConn. */ - interface IAWSSQSConn { - - /** AWSSQSConn awsRegion */ - awsRegion?: (string|null); - - /** AWSSQSConn awsAccessKeyId */ - awsAccessKeyId?: (string|null); + /** Properties of a WriteGroupRabbitOptions. */ + interface IWriteGroupRabbitOptions { - /** AWSSQSConn awsSecretAccessKey */ - awsSecretAccessKey?: (string|null); + /** WriteGroupRabbitOptions _conn */ + _conn?: (protos.args.IRabbitConn|null); - /** AWSSQSConn awsProfile */ - awsProfile?: (string|null); + /** WriteGroupRabbitOptions args */ + args?: (protos.args.IRabbitWriteArgs|null); } - /** Represents a AWSSQSConn. */ - class AWSSQSConn implements IAWSSQSConn { + /** Represents a WriteGroupRabbitOptions. */ + class WriteGroupRabbitOptions implements IWriteGroupRabbitOptions { /** - * Constructs a new AWSSQSConn. + * Constructs a new WriteGroupRabbitOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.args.IAWSSQSConn); - - /** AWSSQSConn awsRegion. */ - public awsRegion: string; - - /** AWSSQSConn awsAccessKeyId. */ - public awsAccessKeyId: string; + constructor(properties?: protos.opts.IWriteGroupRabbitOptions); - /** AWSSQSConn awsSecretAccessKey. */ - public awsSecretAccessKey: string; + /** WriteGroupRabbitOptions _conn. */ + public _conn?: (protos.args.IRabbitConn|null); - /** AWSSQSConn awsProfile. */ - public awsProfile: string; + /** WriteGroupRabbitOptions args. */ + public args?: (protos.args.IRabbitWriteArgs|null); /** - * Creates a new AWSSQSConn instance using the specified properties. + * Creates a new WriteGroupRabbitOptions instance using the specified properties. * @param [properties] Properties to set - * @returns AWSSQSConn instance + * @returns WriteGroupRabbitOptions instance */ - public static create(properties?: protos.args.IAWSSQSConn): protos.args.AWSSQSConn; + public static create(properties?: protos.opts.IWriteGroupRabbitOptions): protos.opts.WriteGroupRabbitOptions; /** - * Encodes the specified AWSSQSConn message. Does not implicitly {@link protos.args.AWSSQSConn.verify|verify} messages. - * @param message AWSSQSConn message or plain object to encode + * Encodes the specified WriteGroupRabbitOptions message. Does not implicitly {@link protos.opts.WriteGroupRabbitOptions.verify|verify} messages. + * @param message WriteGroupRabbitOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.args.IAWSSQSConn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupRabbitOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AWSSQSConn message, length delimited. Does not implicitly {@link protos.args.AWSSQSConn.verify|verify} messages. - * @param message AWSSQSConn message or plain object to encode + * Encodes the specified WriteGroupRabbitOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRabbitOptions.verify|verify} messages. + * @param message WriteGroupRabbitOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.args.IAWSSQSConn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupRabbitOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a AWSSQSConn message from the specified reader or buffer. + * Decodes a WriteGroupRabbitOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AWSSQSConn + * @returns WriteGroupRabbitOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSSQSConn; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupRabbitOptions; /** - * Decodes a AWSSQSConn message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupRabbitOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AWSSQSConn + * @returns WriteGroupRabbitOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSSQSConn; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupRabbitOptions; /** - * Verifies a AWSSQSConn message. + * Verifies a WriteGroupRabbitOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a AWSSQSConn message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupRabbitOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AWSSQSConn + * @returns WriteGroupRabbitOptions */ - public static fromObject(object: { [k: string]: any }): protos.args.AWSSQSConn; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupRabbitOptions; /** - * Creates a plain object from a AWSSQSConn message. Also converts values to other types if specified. - * @param message AWSSQSConn + * Creates a plain object from a WriteGroupRabbitOptions message. Also converts values to other types if specified. + * @param message WriteGroupRabbitOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.args.AWSSQSConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupRabbitOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AWSSQSConn to JSON. + * Converts this WriteGroupRabbitOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a AWSSQSReadArgs. */ - interface IAWSSQSReadArgs { - - /** AWSSQSReadArgs queueName */ - queueName?: (string|null); - - /** AWSSQSReadArgs remoteAccountId */ - remoteAccountId?: (string|null); - - /** AWSSQSReadArgs maxNumMessages */ - maxNumMessages?: (number|Long|null); - - /** AWSSQSReadArgs receiveRequestAttemptId */ - receiveRequestAttemptId?: (string|null); + /** Properties of a WriteGroupRabbitStreamsOptions. */ + interface IWriteGroupRabbitStreamsOptions { - /** AWSSQSReadArgs autoDelete */ - autoDelete?: (boolean|null); + /** WriteGroupRabbitStreamsOptions _conn */ + _conn?: (protos.args.IRabbitStreamsConn|null); - /** AWSSQSReadArgs waitTimeSeconds */ - waitTimeSeconds?: (number|Long|null); + /** WriteGroupRabbitStreamsOptions args */ + args?: (protos.args.IRabbitStreamsWriteArgs|null); } - /** Represents a AWSSQSReadArgs. */ - class AWSSQSReadArgs implements IAWSSQSReadArgs { + /** Represents a WriteGroupRabbitStreamsOptions. */ + class WriteGroupRabbitStreamsOptions implements IWriteGroupRabbitStreamsOptions { /** - * Constructs a new AWSSQSReadArgs. + * Constructs a new WriteGroupRabbitStreamsOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.args.IAWSSQSReadArgs); - - /** AWSSQSReadArgs queueName. */ - public queueName: string; - - /** AWSSQSReadArgs remoteAccountId. */ - public remoteAccountId: string; - - /** AWSSQSReadArgs maxNumMessages. */ - public maxNumMessages: (number|Long); - - /** AWSSQSReadArgs receiveRequestAttemptId. */ - public receiveRequestAttemptId: string; + constructor(properties?: protos.opts.IWriteGroupRabbitStreamsOptions); - /** AWSSQSReadArgs autoDelete. */ - public autoDelete: boolean; + /** WriteGroupRabbitStreamsOptions _conn. */ + public _conn?: (protos.args.IRabbitStreamsConn|null); - /** AWSSQSReadArgs waitTimeSeconds. */ - public waitTimeSeconds: (number|Long); + /** WriteGroupRabbitStreamsOptions args. */ + public args?: (protos.args.IRabbitStreamsWriteArgs|null); /** - * Creates a new AWSSQSReadArgs instance using the specified properties. + * Creates a new WriteGroupRabbitStreamsOptions instance using the specified properties. * @param [properties] Properties to set - * @returns AWSSQSReadArgs instance + * @returns WriteGroupRabbitStreamsOptions instance */ - public static create(properties?: protos.args.IAWSSQSReadArgs): protos.args.AWSSQSReadArgs; + public static create(properties?: protos.opts.IWriteGroupRabbitStreamsOptions): protos.opts.WriteGroupRabbitStreamsOptions; /** - * Encodes the specified AWSSQSReadArgs message. Does not implicitly {@link protos.args.AWSSQSReadArgs.verify|verify} messages. - * @param message AWSSQSReadArgs message or plain object to encode + * Encodes the specified WriteGroupRabbitStreamsOptions message. Does not implicitly {@link protos.opts.WriteGroupRabbitStreamsOptions.verify|verify} messages. + * @param message WriteGroupRabbitStreamsOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.args.IAWSSQSReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupRabbitStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AWSSQSReadArgs message, length delimited. Does not implicitly {@link protos.args.AWSSQSReadArgs.verify|verify} messages. - * @param message AWSSQSReadArgs message or plain object to encode + * Encodes the specified WriteGroupRabbitStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRabbitStreamsOptions.verify|verify} messages. + * @param message WriteGroupRabbitStreamsOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.args.IAWSSQSReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupRabbitStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a AWSSQSReadArgs message from the specified reader or buffer. + * Decodes a WriteGroupRabbitStreamsOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AWSSQSReadArgs + * @returns WriteGroupRabbitStreamsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSSQSReadArgs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupRabbitStreamsOptions; /** - * Decodes a AWSSQSReadArgs message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupRabbitStreamsOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AWSSQSReadArgs + * @returns WriteGroupRabbitStreamsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSSQSReadArgs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupRabbitStreamsOptions; /** - * Verifies a AWSSQSReadArgs message. + * Verifies a WriteGroupRabbitStreamsOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a AWSSQSReadArgs message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupRabbitStreamsOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AWSSQSReadArgs + * @returns WriteGroupRabbitStreamsOptions */ - public static fromObject(object: { [k: string]: any }): protos.args.AWSSQSReadArgs; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupRabbitStreamsOptions; /** - * Creates a plain object from a AWSSQSReadArgs message. Also converts values to other types if specified. - * @param message AWSSQSReadArgs + * Creates a plain object from a WriteGroupRabbitStreamsOptions message. Also converts values to other types if specified. + * @param message WriteGroupRabbitStreamsOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.args.AWSSQSReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupRabbitStreamsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AWSSQSReadArgs to JSON. + * Converts this WriteGroupRabbitStreamsOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a AWSSQSWriteArgs. */ - interface IAWSSQSWriteArgs { - - /** AWSSQSWriteArgs queueName */ - queueName?: (string|null); - - /** AWSSQSWriteArgs remoteAccountId */ - remoteAccountId?: (string|null); - - /** AWSSQSWriteArgs delaySeconds */ - delaySeconds?: (number|Long|null); - - /** AWSSQSWriteArgs attributes */ - attributes?: ({ [k: string]: string }|null); + /** Properties of a WriteGroupRedisPubSubOptions. */ + interface IWriteGroupRedisPubSubOptions { - /** AWSSQSWriteArgs messageGroupId */ - messageGroupId?: (string|null); + /** WriteGroupRedisPubSubOptions _conn */ + _conn?: (protos.args.IRedisPubSubConn|null); - /** AWSSQSWriteArgs messageDeduplicationId */ - messageDeduplicationId?: (string|null); + /** WriteGroupRedisPubSubOptions args */ + args?: (protos.args.IRedisPubSubWriteArgs|null); } - /** Represents a AWSSQSWriteArgs. */ - class AWSSQSWriteArgs implements IAWSSQSWriteArgs { + /** Represents a WriteGroupRedisPubSubOptions. */ + class WriteGroupRedisPubSubOptions implements IWriteGroupRedisPubSubOptions { /** - * Constructs a new AWSSQSWriteArgs. + * Constructs a new WriteGroupRedisPubSubOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.args.IAWSSQSWriteArgs); - - /** AWSSQSWriteArgs queueName. */ - public queueName: string; - - /** AWSSQSWriteArgs remoteAccountId. */ - public remoteAccountId: string; - - /** AWSSQSWriteArgs delaySeconds. */ - public delaySeconds: (number|Long); - - /** AWSSQSWriteArgs attributes. */ - public attributes: { [k: string]: string }; + constructor(properties?: protos.opts.IWriteGroupRedisPubSubOptions); - /** AWSSQSWriteArgs messageGroupId. */ - public messageGroupId: string; + /** WriteGroupRedisPubSubOptions _conn. */ + public _conn?: (protos.args.IRedisPubSubConn|null); - /** AWSSQSWriteArgs messageDeduplicationId. */ - public messageDeduplicationId: string; + /** WriteGroupRedisPubSubOptions args. */ + public args?: (protos.args.IRedisPubSubWriteArgs|null); /** - * Creates a new AWSSQSWriteArgs instance using the specified properties. + * Creates a new WriteGroupRedisPubSubOptions instance using the specified properties. * @param [properties] Properties to set - * @returns AWSSQSWriteArgs instance + * @returns WriteGroupRedisPubSubOptions instance */ - public static create(properties?: protos.args.IAWSSQSWriteArgs): protos.args.AWSSQSWriteArgs; + public static create(properties?: protos.opts.IWriteGroupRedisPubSubOptions): protos.opts.WriteGroupRedisPubSubOptions; /** - * Encodes the specified AWSSQSWriteArgs message. Does not implicitly {@link protos.args.AWSSQSWriteArgs.verify|verify} messages. - * @param message AWSSQSWriteArgs message or plain object to encode + * Encodes the specified WriteGroupRedisPubSubOptions message. Does not implicitly {@link protos.opts.WriteGroupRedisPubSubOptions.verify|verify} messages. + * @param message WriteGroupRedisPubSubOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.args.IAWSSQSWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupRedisPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AWSSQSWriteArgs message, length delimited. Does not implicitly {@link protos.args.AWSSQSWriteArgs.verify|verify} messages. - * @param message AWSSQSWriteArgs message or plain object to encode + * Encodes the specified WriteGroupRedisPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRedisPubSubOptions.verify|verify} messages. + * @param message WriteGroupRedisPubSubOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.args.IAWSSQSWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupRedisPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a AWSSQSWriteArgs message from the specified reader or buffer. + * Decodes a WriteGroupRedisPubSubOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AWSSQSWriteArgs + * @returns WriteGroupRedisPubSubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSSQSWriteArgs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupRedisPubSubOptions; /** - * Decodes a AWSSQSWriteArgs message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupRedisPubSubOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AWSSQSWriteArgs + * @returns WriteGroupRedisPubSubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSSQSWriteArgs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupRedisPubSubOptions; /** - * Verifies a AWSSQSWriteArgs message. + * Verifies a WriteGroupRedisPubSubOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a AWSSQSWriteArgs message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupRedisPubSubOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AWSSQSWriteArgs + * @returns WriteGroupRedisPubSubOptions */ - public static fromObject(object: { [k: string]: any }): protos.args.AWSSQSWriteArgs; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupRedisPubSubOptions; /** - * Creates a plain object from a AWSSQSWriteArgs message. Also converts values to other types if specified. - * @param message AWSSQSWriteArgs + * Creates a plain object from a WriteGroupRedisPubSubOptions message. Also converts values to other types if specified. + * @param message WriteGroupRedisPubSubOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.args.AWSSQSWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupRedisPubSubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AWSSQSWriteArgs to JSON. + * Converts this WriteGroupRedisPubSubOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a AWSSQSRelayArgs. */ - interface IAWSSQSRelayArgs { - - /** AWSSQSRelayArgs queueName */ - queueName?: (string|null); - - /** AWSSQSRelayArgs remoteAccountId */ - remoteAccountId?: (string|null); - - /** AWSSQSRelayArgs maxNumMessages */ - maxNumMessages?: (number|Long|null); - - /** AWSSQSRelayArgs receiveRequestAttemptId */ - receiveRequestAttemptId?: (string|null); + /** Properties of a WriteGroupRedisStreamsOptions. */ + interface IWriteGroupRedisStreamsOptions { - /** AWSSQSRelayArgs autoDelete */ - autoDelete?: (boolean|null); + /** WriteGroupRedisStreamsOptions _conn */ + _conn?: (protos.args.IRedisStreamsConn|null); - /** AWSSQSRelayArgs waitTimeSeconds */ - waitTimeSeconds?: (number|Long|null); + /** WriteGroupRedisStreamsOptions args */ + args?: (protos.args.IRedisStreamsWriteArgs|null); } - /** Represents a AWSSQSRelayArgs. */ - class AWSSQSRelayArgs implements IAWSSQSRelayArgs { + /** Represents a WriteGroupRedisStreamsOptions. */ + class WriteGroupRedisStreamsOptions implements IWriteGroupRedisStreamsOptions { /** - * Constructs a new AWSSQSRelayArgs. + * Constructs a new WriteGroupRedisStreamsOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.args.IAWSSQSRelayArgs); - - /** AWSSQSRelayArgs queueName. */ - public queueName: string; - - /** AWSSQSRelayArgs remoteAccountId. */ - public remoteAccountId: string; - - /** AWSSQSRelayArgs maxNumMessages. */ - public maxNumMessages: (number|Long); - - /** AWSSQSRelayArgs receiveRequestAttemptId. */ - public receiveRequestAttemptId: string; + constructor(properties?: protos.opts.IWriteGroupRedisStreamsOptions); - /** AWSSQSRelayArgs autoDelete. */ - public autoDelete: boolean; + /** WriteGroupRedisStreamsOptions _conn. */ + public _conn?: (protos.args.IRedisStreamsConn|null); - /** AWSSQSRelayArgs waitTimeSeconds. */ - public waitTimeSeconds: (number|Long); + /** WriteGroupRedisStreamsOptions args. */ + public args?: (protos.args.IRedisStreamsWriteArgs|null); /** - * Creates a new AWSSQSRelayArgs instance using the specified properties. + * Creates a new WriteGroupRedisStreamsOptions instance using the specified properties. * @param [properties] Properties to set - * @returns AWSSQSRelayArgs instance + * @returns WriteGroupRedisStreamsOptions instance */ - public static create(properties?: protos.args.IAWSSQSRelayArgs): protos.args.AWSSQSRelayArgs; + public static create(properties?: protos.opts.IWriteGroupRedisStreamsOptions): protos.opts.WriteGroupRedisStreamsOptions; /** - * Encodes the specified AWSSQSRelayArgs message. Does not implicitly {@link protos.args.AWSSQSRelayArgs.verify|verify} messages. - * @param message AWSSQSRelayArgs message or plain object to encode + * Encodes the specified WriteGroupRedisStreamsOptions message. Does not implicitly {@link protos.opts.WriteGroupRedisStreamsOptions.verify|verify} messages. + * @param message WriteGroupRedisStreamsOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.args.IAWSSQSRelayArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupRedisStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AWSSQSRelayArgs message, length delimited. Does not implicitly {@link protos.args.AWSSQSRelayArgs.verify|verify} messages. - * @param message AWSSQSRelayArgs message or plain object to encode + * Encodes the specified WriteGroupRedisStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRedisStreamsOptions.verify|verify} messages. + * @param message WriteGroupRedisStreamsOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.args.IAWSSQSRelayArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupRedisStreamsOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a AWSSQSRelayArgs message from the specified reader or buffer. + * Decodes a WriteGroupRedisStreamsOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AWSSQSRelayArgs + * @returns WriteGroupRedisStreamsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AWSSQSRelayArgs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupRedisStreamsOptions; /** - * Decodes a AWSSQSRelayArgs message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupRedisStreamsOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AWSSQSRelayArgs + * @returns WriteGroupRedisStreamsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AWSSQSRelayArgs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupRedisStreamsOptions; /** - * Verifies a AWSSQSRelayArgs message. + * Verifies a WriteGroupRedisStreamsOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a AWSSQSRelayArgs message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupRedisStreamsOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AWSSQSRelayArgs + * @returns WriteGroupRedisStreamsOptions */ - public static fromObject(object: { [k: string]: any }): protos.args.AWSSQSRelayArgs; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupRedisStreamsOptions; /** - * Creates a plain object from a AWSSQSRelayArgs message. Also converts values to other types if specified. - * @param message AWSSQSRelayArgs + * Creates a plain object from a WriteGroupRedisStreamsOptions message. Also converts values to other types if specified. + * @param message WriteGroupRedisStreamsOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.args.AWSSQSRelayArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupRedisStreamsOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AWSSQSRelayArgs to JSON. + * Converts this WriteGroupRedisStreamsOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AzureEventHubConn. */ - interface IAzureEventHubConn { - - /** AzureEventHubConn connectionString */ - connectionString?: (string|null); - } + /** Properties of a WriteGroupAzureEventHubOptions. */ + interface IWriteGroupAzureEventHubOptions { - /** Represents an AzureEventHubConn. */ - class AzureEventHubConn implements IAzureEventHubConn { + /** WriteGroupAzureEventHubOptions _conn */ + _conn?: (protos.args.IAzureEventHubConn|null); - /** - * Constructs a new AzureEventHubConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IAzureEventHubConn); + /** WriteGroupAzureEventHubOptions args */ + args?: (protos.args.IAzureEventHubWriteArgs|null); + } - /** AzureEventHubConn connectionString. */ - public connectionString: string; + /** Represents a WriteGroupAzureEventHubOptions. */ + class WriteGroupAzureEventHubOptions implements IWriteGroupAzureEventHubOptions { /** - * Creates a new AzureEventHubConn instance using the specified properties. + * Constructs a new WriteGroupAzureEventHubOptions. * @param [properties] Properties to set - * @returns AzureEventHubConn instance - */ - public static create(properties?: protos.args.IAzureEventHubConn): protos.args.AzureEventHubConn; - - /** - * Encodes the specified AzureEventHubConn message. Does not implicitly {@link protos.args.AzureEventHubConn.verify|verify} messages. - * @param message AzureEventHubConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IAzureEventHubConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AzureEventHubConn message, length delimited. Does not implicitly {@link protos.args.AzureEventHubConn.verify|verify} messages. - * @param message AzureEventHubConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IAzureEventHubConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AzureEventHubConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AzureEventHubConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AzureEventHubConn; - - /** - * Decodes an AzureEventHubConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AzureEventHubConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AzureEventHubConn; - - /** - * Verifies an AzureEventHubConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AzureEventHubConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AzureEventHubConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.AzureEventHubConn; - - /** - * Creates a plain object from an AzureEventHubConn message. Also converts values to other types if specified. - * @param message AzureEventHubConn - * @param [options] Conversion options - * @returns Plain object */ - public static toObject(message: protos.args.AzureEventHubConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AzureEventHubConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an AzureEventHubReadArgs. */ - interface IAzureEventHubReadArgs { - } + constructor(properties?: protos.opts.IWriteGroupAzureEventHubOptions); - /** Represents an AzureEventHubReadArgs. */ - class AzureEventHubReadArgs implements IAzureEventHubReadArgs { + /** WriteGroupAzureEventHubOptions _conn. */ + public _conn?: (protos.args.IAzureEventHubConn|null); - /** - * Constructs a new AzureEventHubReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IAzureEventHubReadArgs); + /** WriteGroupAzureEventHubOptions args. */ + public args?: (protos.args.IAzureEventHubWriteArgs|null); /** - * Creates a new AzureEventHubReadArgs instance using the specified properties. + * Creates a new WriteGroupAzureEventHubOptions instance using the specified properties. * @param [properties] Properties to set - * @returns AzureEventHubReadArgs instance + * @returns WriteGroupAzureEventHubOptions instance */ - public static create(properties?: protos.args.IAzureEventHubReadArgs): protos.args.AzureEventHubReadArgs; + public static create(properties?: protos.opts.IWriteGroupAzureEventHubOptions): protos.opts.WriteGroupAzureEventHubOptions; /** - * Encodes the specified AzureEventHubReadArgs message. Does not implicitly {@link protos.args.AzureEventHubReadArgs.verify|verify} messages. - * @param message AzureEventHubReadArgs message or plain object to encode + * Encodes the specified WriteGroupAzureEventHubOptions message. Does not implicitly {@link protos.opts.WriteGroupAzureEventHubOptions.verify|verify} messages. + * @param message WriteGroupAzureEventHubOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.args.IAzureEventHubReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupAzureEventHubOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AzureEventHubReadArgs message, length delimited. Does not implicitly {@link protos.args.AzureEventHubReadArgs.verify|verify} messages. - * @param message AzureEventHubReadArgs message or plain object to encode + * Encodes the specified WriteGroupAzureEventHubOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAzureEventHubOptions.verify|verify} messages. + * @param message WriteGroupAzureEventHubOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.args.IAzureEventHubReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupAzureEventHubOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AzureEventHubReadArgs message from the specified reader or buffer. + * Decodes a WriteGroupAzureEventHubOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AzureEventHubReadArgs + * @returns WriteGroupAzureEventHubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AzureEventHubReadArgs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupAzureEventHubOptions; /** - * Decodes an AzureEventHubReadArgs message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupAzureEventHubOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AzureEventHubReadArgs + * @returns WriteGroupAzureEventHubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AzureEventHubReadArgs; - - /** - * Verifies an AzureEventHubReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AzureEventHubReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AzureEventHubReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.AzureEventHubReadArgs; - - /** - * Creates a plain object from an AzureEventHubReadArgs message. Also converts values to other types if specified. - * @param message AzureEventHubReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.AzureEventHubReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AzureEventHubReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an AzureEventHubWriteArgs. */ - interface IAzureEventHubWriteArgs { - - /** AzureEventHubWriteArgs messageId */ - messageId?: (string|null); - - /** AzureEventHubWriteArgs partitionKey */ - partitionKey?: (string|null); - } - - /** Represents an AzureEventHubWriteArgs. */ - class AzureEventHubWriteArgs implements IAzureEventHubWriteArgs { - - /** - * Constructs a new AzureEventHubWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IAzureEventHubWriteArgs); - - /** AzureEventHubWriteArgs messageId. */ - public messageId: string; - - /** AzureEventHubWriteArgs partitionKey. */ - public partitionKey: string; - - /** - * Creates a new AzureEventHubWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns AzureEventHubWriteArgs instance - */ - public static create(properties?: protos.args.IAzureEventHubWriteArgs): protos.args.AzureEventHubWriteArgs; - - /** - * Encodes the specified AzureEventHubWriteArgs message. Does not implicitly {@link protos.args.AzureEventHubWriteArgs.verify|verify} messages. - * @param message AzureEventHubWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IAzureEventHubWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AzureEventHubWriteArgs message, length delimited. Does not implicitly {@link protos.args.AzureEventHubWriteArgs.verify|verify} messages. - * @param message AzureEventHubWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IAzureEventHubWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AzureEventHubWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AzureEventHubWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AzureEventHubWriteArgs; - - /** - * Decodes an AzureEventHubWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AzureEventHubWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AzureEventHubWriteArgs; - - /** - * Verifies an AzureEventHubWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AzureEventHubWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AzureEventHubWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.AzureEventHubWriteArgs; - - /** - * Creates a plain object from an AzureEventHubWriteArgs message. Also converts values to other types if specified. - * @param message AzureEventHubWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.AzureEventHubWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AzureEventHubWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an AzureServiceBusConn. */ - interface IAzureServiceBusConn { - - /** AzureServiceBusConn connectionString */ - connectionString?: (string|null); - } - - /** Represents an AzureServiceBusConn. */ - class AzureServiceBusConn implements IAzureServiceBusConn { - - /** - * Constructs a new AzureServiceBusConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IAzureServiceBusConn); - - /** AzureServiceBusConn connectionString. */ - public connectionString: string; - - /** - * Creates a new AzureServiceBusConn instance using the specified properties. - * @param [properties] Properties to set - * @returns AzureServiceBusConn instance - */ - public static create(properties?: protos.args.IAzureServiceBusConn): protos.args.AzureServiceBusConn; - - /** - * Encodes the specified AzureServiceBusConn message. Does not implicitly {@link protos.args.AzureServiceBusConn.verify|verify} messages. - * @param message AzureServiceBusConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IAzureServiceBusConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AzureServiceBusConn message, length delimited. Does not implicitly {@link protos.args.AzureServiceBusConn.verify|verify} messages. - * @param message AzureServiceBusConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IAzureServiceBusConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AzureServiceBusConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AzureServiceBusConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AzureServiceBusConn; - - /** - * Decodes an AzureServiceBusConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AzureServiceBusConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AzureServiceBusConn; - - /** - * Verifies an AzureServiceBusConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AzureServiceBusConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AzureServiceBusConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.AzureServiceBusConn; - - /** - * Creates a plain object from an AzureServiceBusConn message. Also converts values to other types if specified. - * @param message AzureServiceBusConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.AzureServiceBusConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AzureServiceBusConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an AzureServiceBusReadArgs. */ - interface IAzureServiceBusReadArgs { - - /** AzureServiceBusReadArgs queue */ - queue?: (string|null); - - /** AzureServiceBusReadArgs topic */ - topic?: (string|null); - - /** AzureServiceBusReadArgs subscriptionName */ - subscriptionName?: (string|null); - } - - /** Represents an AzureServiceBusReadArgs. */ - class AzureServiceBusReadArgs implements IAzureServiceBusReadArgs { - - /** - * Constructs a new AzureServiceBusReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IAzureServiceBusReadArgs); - - /** AzureServiceBusReadArgs queue. */ - public queue: string; - - /** AzureServiceBusReadArgs topic. */ - public topic: string; - - /** AzureServiceBusReadArgs subscriptionName. */ - public subscriptionName: string; - - /** - * Creates a new AzureServiceBusReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns AzureServiceBusReadArgs instance - */ - public static create(properties?: protos.args.IAzureServiceBusReadArgs): protos.args.AzureServiceBusReadArgs; - - /** - * Encodes the specified AzureServiceBusReadArgs message. Does not implicitly {@link protos.args.AzureServiceBusReadArgs.verify|verify} messages. - * @param message AzureServiceBusReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IAzureServiceBusReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AzureServiceBusReadArgs message, length delimited. Does not implicitly {@link protos.args.AzureServiceBusReadArgs.verify|verify} messages. - * @param message AzureServiceBusReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IAzureServiceBusReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AzureServiceBusReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AzureServiceBusReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AzureServiceBusReadArgs; - - /** - * Decodes an AzureServiceBusReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AzureServiceBusReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AzureServiceBusReadArgs; - - /** - * Verifies an AzureServiceBusReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AzureServiceBusReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AzureServiceBusReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.AzureServiceBusReadArgs; - - /** - * Creates a plain object from an AzureServiceBusReadArgs message. Also converts values to other types if specified. - * @param message AzureServiceBusReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.AzureServiceBusReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AzureServiceBusReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an AzureServiceBusWriteArgs. */ - interface IAzureServiceBusWriteArgs { - - /** AzureServiceBusWriteArgs queue */ - queue?: (string|null); - - /** AzureServiceBusWriteArgs topic */ - topic?: (string|null); - } - - /** Represents an AzureServiceBusWriteArgs. */ - class AzureServiceBusWriteArgs implements IAzureServiceBusWriteArgs { - - /** - * Constructs a new AzureServiceBusWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IAzureServiceBusWriteArgs); - - /** AzureServiceBusWriteArgs queue. */ - public queue: string; - - /** AzureServiceBusWriteArgs topic. */ - public topic: string; - - /** - * Creates a new AzureServiceBusWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns AzureServiceBusWriteArgs instance - */ - public static create(properties?: protos.args.IAzureServiceBusWriteArgs): protos.args.AzureServiceBusWriteArgs; - - /** - * Encodes the specified AzureServiceBusWriteArgs message. Does not implicitly {@link protos.args.AzureServiceBusWriteArgs.verify|verify} messages. - * @param message AzureServiceBusWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IAzureServiceBusWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AzureServiceBusWriteArgs message, length delimited. Does not implicitly {@link protos.args.AzureServiceBusWriteArgs.verify|verify} messages. - * @param message AzureServiceBusWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IAzureServiceBusWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AzureServiceBusWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AzureServiceBusWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.AzureServiceBusWriteArgs; - - /** - * Decodes an AzureServiceBusWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AzureServiceBusWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.AzureServiceBusWriteArgs; - - /** - * Verifies an AzureServiceBusWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AzureServiceBusWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AzureServiceBusWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.AzureServiceBusWriteArgs; - - /** - * Creates a plain object from an AzureServiceBusWriteArgs message. Also converts values to other types if specified. - * @param message AzureServiceBusWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.AzureServiceBusWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AzureServiceBusWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GCPPubSubConn. */ - interface IGCPPubSubConn { - - /** GCPPubSubConn projectId */ - projectId?: (string|null); - - /** GCPPubSubConn credentialsJson */ - credentialsJson?: (string|null); - - /** GCPPubSubConn credentialsFile */ - credentialsFile?: (string|null); - } - - /** Represents a GCPPubSubConn. */ - class GCPPubSubConn implements IGCPPubSubConn { - - /** - * Constructs a new GCPPubSubConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IGCPPubSubConn); - - /** GCPPubSubConn projectId. */ - public projectId: string; - - /** GCPPubSubConn credentialsJson. */ - public credentialsJson: string; - - /** GCPPubSubConn credentialsFile. */ - public credentialsFile: string; - - /** - * Creates a new GCPPubSubConn instance using the specified properties. - * @param [properties] Properties to set - * @returns GCPPubSubConn instance - */ - public static create(properties?: protos.args.IGCPPubSubConn): protos.args.GCPPubSubConn; - - /** - * Encodes the specified GCPPubSubConn message. Does not implicitly {@link protos.args.GCPPubSubConn.verify|verify} messages. - * @param message GCPPubSubConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IGCPPubSubConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GCPPubSubConn message, length delimited. Does not implicitly {@link protos.args.GCPPubSubConn.verify|verify} messages. - * @param message GCPPubSubConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IGCPPubSubConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GCPPubSubConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GCPPubSubConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.GCPPubSubConn; - - /** - * Decodes a GCPPubSubConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GCPPubSubConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.GCPPubSubConn; - - /** - * Verifies a GCPPubSubConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GCPPubSubConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GCPPubSubConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.GCPPubSubConn; - - /** - * Creates a plain object from a GCPPubSubConn message. Also converts values to other types if specified. - * @param message GCPPubSubConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.GCPPubSubConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GCPPubSubConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GCPPubSubReadArgs. */ - interface IGCPPubSubReadArgs { - - /** GCPPubSubReadArgs subscriptionId */ - subscriptionId?: (string|null); - - /** GCPPubSubReadArgs ackMessages */ - ackMessages?: (boolean|null); - } - - /** Represents a GCPPubSubReadArgs. */ - class GCPPubSubReadArgs implements IGCPPubSubReadArgs { - - /** - * Constructs a new GCPPubSubReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IGCPPubSubReadArgs); - - /** GCPPubSubReadArgs subscriptionId. */ - public subscriptionId: string; - - /** GCPPubSubReadArgs ackMessages. */ - public ackMessages: boolean; - - /** - * Creates a new GCPPubSubReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns GCPPubSubReadArgs instance - */ - public static create(properties?: protos.args.IGCPPubSubReadArgs): protos.args.GCPPubSubReadArgs; - - /** - * Encodes the specified GCPPubSubReadArgs message. Does not implicitly {@link protos.args.GCPPubSubReadArgs.verify|verify} messages. - * @param message GCPPubSubReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IGCPPubSubReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GCPPubSubReadArgs message, length delimited. Does not implicitly {@link protos.args.GCPPubSubReadArgs.verify|verify} messages. - * @param message GCPPubSubReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IGCPPubSubReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GCPPubSubReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GCPPubSubReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.GCPPubSubReadArgs; - - /** - * Decodes a GCPPubSubReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GCPPubSubReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.GCPPubSubReadArgs; - - /** - * Verifies a GCPPubSubReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GCPPubSubReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GCPPubSubReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.GCPPubSubReadArgs; - - /** - * Creates a plain object from a GCPPubSubReadArgs message. Also converts values to other types if specified. - * @param message GCPPubSubReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.GCPPubSubReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GCPPubSubReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GCPPubSubWriteArgs. */ - interface IGCPPubSubWriteArgs { - - /** GCPPubSubWriteArgs topicId */ - topicId?: (string|null); - } - - /** Represents a GCPPubSubWriteArgs. */ - class GCPPubSubWriteArgs implements IGCPPubSubWriteArgs { - - /** - * Constructs a new GCPPubSubWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IGCPPubSubWriteArgs); - - /** GCPPubSubWriteArgs topicId. */ - public topicId: string; - - /** - * Creates a new GCPPubSubWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns GCPPubSubWriteArgs instance - */ - public static create(properties?: protos.args.IGCPPubSubWriteArgs): protos.args.GCPPubSubWriteArgs; - - /** - * Encodes the specified GCPPubSubWriteArgs message. Does not implicitly {@link protos.args.GCPPubSubWriteArgs.verify|verify} messages. - * @param message GCPPubSubWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IGCPPubSubWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GCPPubSubWriteArgs message, length delimited. Does not implicitly {@link protos.args.GCPPubSubWriteArgs.verify|verify} messages. - * @param message GCPPubSubWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IGCPPubSubWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GCPPubSubWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GCPPubSubWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.GCPPubSubWriteArgs; - - /** - * Decodes a GCPPubSubWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GCPPubSubWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.GCPPubSubWriteArgs; - - /** - * Verifies a GCPPubSubWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GCPPubSubWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GCPPubSubWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.GCPPubSubWriteArgs; - - /** - * Creates a plain object from a GCPPubSubWriteArgs message. Also converts values to other types if specified. - * @param message GCPPubSubWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.GCPPubSubWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GCPPubSubWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** SASLType enum. */ - enum SASLType { - NONE = 0, - PLAIN = 1, - SCRAM = 2 - } - - /** Properties of a KafkaConn. */ - interface IKafkaConn { - - /** KafkaConn address */ - address?: (string[]|null); - - /** KafkaConn timeoutSeconds */ - timeoutSeconds?: (number|null); - - /** KafkaConn useTls */ - useTls?: (boolean|null); - - /** KafkaConn tlsSkipVerify */ - tlsSkipVerify?: (boolean|null); - - /** KafkaConn saslType */ - saslType?: (protos.args.SASLType|null); - - /** KafkaConn saslUsername */ - saslUsername?: (string|null); - - /** KafkaConn saslPassword */ - saslPassword?: (string|null); - } - - /** Represents a KafkaConn. */ - class KafkaConn implements IKafkaConn { - - /** - * Constructs a new KafkaConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IKafkaConn); - - /** KafkaConn address. */ - public address: string[]; - - /** KafkaConn timeoutSeconds. */ - public timeoutSeconds: number; - - /** KafkaConn useTls. */ - public useTls: boolean; - - /** KafkaConn tlsSkipVerify. */ - public tlsSkipVerify: boolean; - - /** KafkaConn saslType. */ - public saslType: protos.args.SASLType; - - /** KafkaConn saslUsername. */ - public saslUsername: string; - - /** KafkaConn saslPassword. */ - public saslPassword: string; - - /** - * Creates a new KafkaConn instance using the specified properties. - * @param [properties] Properties to set - * @returns KafkaConn instance - */ - public static create(properties?: protos.args.IKafkaConn): protos.args.KafkaConn; - - /** - * Encodes the specified KafkaConn message. Does not implicitly {@link protos.args.KafkaConn.verify|verify} messages. - * @param message KafkaConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IKafkaConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified KafkaConn message, length delimited. Does not implicitly {@link protos.args.KafkaConn.verify|verify} messages. - * @param message KafkaConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IKafkaConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KafkaConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KafkaConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KafkaConn; - - /** - * Decodes a KafkaConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KafkaConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KafkaConn; - - /** - * Verifies a KafkaConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a KafkaConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KafkaConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.KafkaConn; - - /** - * Creates a plain object from a KafkaConn message. Also converts values to other types if specified. - * @param message KafkaConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.KafkaConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this KafkaConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a KafkaReadArgs. */ - interface IKafkaReadArgs { - - /** KafkaReadArgs topics */ - topics?: (string[]|null); - - /** KafkaReadArgs readOffset */ - readOffset?: (number|Long|null); - - /** KafkaReadArgs useConsumerGroup */ - useConsumerGroup?: (boolean|null); - - /** KafkaReadArgs consumerGroupName */ - consumerGroupName?: (string|null); - - /** KafkaReadArgs maxWaitSeconds */ - maxWaitSeconds?: (number|null); - - /** KafkaReadArgs minBytes */ - minBytes?: (number|null); - - /** KafkaReadArgs maxBytes */ - maxBytes?: (number|null); - - /** KafkaReadArgs commitIntervalSeconds */ - commitIntervalSeconds?: (number|null); - - /** KafkaReadArgs rebalanceTimeoutSeconds */ - rebalanceTimeoutSeconds?: (number|null); - - /** KafkaReadArgs queueCapacity */ - queueCapacity?: (number|null); - - /** KafkaReadArgs includeOffsetInfo */ - includeOffsetInfo?: (boolean|null); - - /** KafkaReadArgs lag */ - lag?: (boolean|null); - - /** KafkaReadArgs lagConsumerGroup */ - lagConsumerGroup?: (string|null); - } - - /** Represents a KafkaReadArgs. */ - class KafkaReadArgs implements IKafkaReadArgs { - - /** - * Constructs a new KafkaReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IKafkaReadArgs); - - /** KafkaReadArgs topics. */ - public topics: string[]; - - /** KafkaReadArgs readOffset. */ - public readOffset: (number|Long); - - /** KafkaReadArgs useConsumerGroup. */ - public useConsumerGroup: boolean; - - /** KafkaReadArgs consumerGroupName. */ - public consumerGroupName: string; - - /** KafkaReadArgs maxWaitSeconds. */ - public maxWaitSeconds: number; - - /** KafkaReadArgs minBytes. */ - public minBytes: number; - - /** KafkaReadArgs maxBytes. */ - public maxBytes: number; - - /** KafkaReadArgs commitIntervalSeconds. */ - public commitIntervalSeconds: number; - - /** KafkaReadArgs rebalanceTimeoutSeconds. */ - public rebalanceTimeoutSeconds: number; - - /** KafkaReadArgs queueCapacity. */ - public queueCapacity: number; - - /** KafkaReadArgs includeOffsetInfo. */ - public includeOffsetInfo: boolean; - - /** KafkaReadArgs lag. */ - public lag: boolean; - - /** KafkaReadArgs lagConsumerGroup. */ - public lagConsumerGroup: string; - - /** - * Creates a new KafkaReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns KafkaReadArgs instance - */ - public static create(properties?: protos.args.IKafkaReadArgs): protos.args.KafkaReadArgs; - - /** - * Encodes the specified KafkaReadArgs message. Does not implicitly {@link protos.args.KafkaReadArgs.verify|verify} messages. - * @param message KafkaReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IKafkaReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified KafkaReadArgs message, length delimited. Does not implicitly {@link protos.args.KafkaReadArgs.verify|verify} messages. - * @param message KafkaReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IKafkaReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KafkaReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KafkaReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KafkaReadArgs; - - /** - * Decodes a KafkaReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KafkaReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KafkaReadArgs; - - /** - * Verifies a KafkaReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a KafkaReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KafkaReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.KafkaReadArgs; - - /** - * Creates a plain object from a KafkaReadArgs message. Also converts values to other types if specified. - * @param message KafkaReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.KafkaReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this KafkaReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a KafkaWriteArgs. */ - interface IKafkaWriteArgs { - - /** KafkaWriteArgs key */ - key?: (string|null); - - /** KafkaWriteArgs headers */ - headers?: ({ [k: string]: string }|null); - - /** KafkaWriteArgs topics */ - topics?: (string[]|null); - } - - /** Represents a KafkaWriteArgs. */ - class KafkaWriteArgs implements IKafkaWriteArgs { - - /** - * Constructs a new KafkaWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IKafkaWriteArgs); - - /** KafkaWriteArgs key. */ - public key: string; - - /** KafkaWriteArgs headers. */ - public headers: { [k: string]: string }; - - /** KafkaWriteArgs topics. */ - public topics: string[]; - - /** - * Creates a new KafkaWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns KafkaWriteArgs instance - */ - public static create(properties?: protos.args.IKafkaWriteArgs): protos.args.KafkaWriteArgs; - - /** - * Encodes the specified KafkaWriteArgs message. Does not implicitly {@link protos.args.KafkaWriteArgs.verify|verify} messages. - * @param message KafkaWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IKafkaWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified KafkaWriteArgs message, length delimited. Does not implicitly {@link protos.args.KafkaWriteArgs.verify|verify} messages. - * @param message KafkaWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IKafkaWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KafkaWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KafkaWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KafkaWriteArgs; - - /** - * Decodes a KafkaWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KafkaWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KafkaWriteArgs; - - /** - * Verifies a KafkaWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a KafkaWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KafkaWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.KafkaWriteArgs; - - /** - * Creates a plain object from a KafkaWriteArgs message. Also converts values to other types if specified. - * @param message KafkaWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.KafkaWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this KafkaWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a KafkaRelayArgs. */ - interface IKafkaRelayArgs { - - /** KafkaRelayArgs topics */ - topics?: (string[]|null); - - /** KafkaRelayArgs readOffset */ - readOffset?: (number|Long|null); - - /** KafkaRelayArgs useConsumerGroup */ - useConsumerGroup?: (boolean|null); - - /** KafkaRelayArgs consumerGroupName */ - consumerGroupName?: (string|null); - - /** KafkaRelayArgs maxWaitSeconds */ - maxWaitSeconds?: (number|null); - - /** KafkaRelayArgs minBytes */ - minBytes?: (number|null); - - /** KafkaRelayArgs maxBytes */ - maxBytes?: (number|null); - - /** KafkaRelayArgs commitIntervalSeconds */ - commitIntervalSeconds?: (number|null); - - /** KafkaRelayArgs rebalanceTimeoutSeconds */ - rebalanceTimeoutSeconds?: (number|null); - - /** KafkaRelayArgs queueCapacity */ - queueCapacity?: (number|null); - } - - /** Represents a KafkaRelayArgs. */ - class KafkaRelayArgs implements IKafkaRelayArgs { - - /** - * Constructs a new KafkaRelayArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IKafkaRelayArgs); - - /** KafkaRelayArgs topics. */ - public topics: string[]; - - /** KafkaRelayArgs readOffset. */ - public readOffset: (number|Long); - - /** KafkaRelayArgs useConsumerGroup. */ - public useConsumerGroup: boolean; - - /** KafkaRelayArgs consumerGroupName. */ - public consumerGroupName: string; - - /** KafkaRelayArgs maxWaitSeconds. */ - public maxWaitSeconds: number; - - /** KafkaRelayArgs minBytes. */ - public minBytes: number; - - /** KafkaRelayArgs maxBytes. */ - public maxBytes: number; - - /** KafkaRelayArgs commitIntervalSeconds. */ - public commitIntervalSeconds: number; - - /** KafkaRelayArgs rebalanceTimeoutSeconds. */ - public rebalanceTimeoutSeconds: number; - - /** KafkaRelayArgs queueCapacity. */ - public queueCapacity: number; - - /** - * Creates a new KafkaRelayArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns KafkaRelayArgs instance - */ - public static create(properties?: protos.args.IKafkaRelayArgs): protos.args.KafkaRelayArgs; - - /** - * Encodes the specified KafkaRelayArgs message. Does not implicitly {@link protos.args.KafkaRelayArgs.verify|verify} messages. - * @param message KafkaRelayArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IKafkaRelayArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified KafkaRelayArgs message, length delimited. Does not implicitly {@link protos.args.KafkaRelayArgs.verify|verify} messages. - * @param message KafkaRelayArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IKafkaRelayArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KafkaRelayArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KafkaRelayArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KafkaRelayArgs; - - /** - * Decodes a KafkaRelayArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KafkaRelayArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KafkaRelayArgs; - - /** - * Verifies a KafkaRelayArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a KafkaRelayArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KafkaRelayArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.KafkaRelayArgs; - - /** - * Creates a plain object from a KafkaRelayArgs message. Also converts values to other types if specified. - * @param message KafkaRelayArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.KafkaRelayArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this KafkaRelayArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a KubeMQQueueConn. */ - interface IKubeMQQueueConn { - - /** KubeMQQueueConn address */ - address?: (string|null); - - /** KubeMQQueueConn authToken */ - authToken?: (string|null); - - /** KubeMQQueueConn tlsClientCert */ - tlsClientCert?: (string|null); - - /** KubeMQQueueConn clientId */ - clientId?: (string|null); - } - - /** Represents a KubeMQQueueConn. */ - class KubeMQQueueConn implements IKubeMQQueueConn { - - /** - * Constructs a new KubeMQQueueConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IKubeMQQueueConn); - - /** KubeMQQueueConn address. */ - public address: string; - - /** KubeMQQueueConn authToken. */ - public authToken: string; - - /** KubeMQQueueConn tlsClientCert. */ - public tlsClientCert: string; - - /** KubeMQQueueConn clientId. */ - public clientId: string; - - /** - * Creates a new KubeMQQueueConn instance using the specified properties. - * @param [properties] Properties to set - * @returns KubeMQQueueConn instance - */ - public static create(properties?: protos.args.IKubeMQQueueConn): protos.args.KubeMQQueueConn; - - /** - * Encodes the specified KubeMQQueueConn message. Does not implicitly {@link protos.args.KubeMQQueueConn.verify|verify} messages. - * @param message KubeMQQueueConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IKubeMQQueueConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified KubeMQQueueConn message, length delimited. Does not implicitly {@link protos.args.KubeMQQueueConn.verify|verify} messages. - * @param message KubeMQQueueConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IKubeMQQueueConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KubeMQQueueConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KubeMQQueueConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KubeMQQueueConn; - - /** - * Decodes a KubeMQQueueConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KubeMQQueueConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KubeMQQueueConn; - - /** - * Verifies a KubeMQQueueConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a KubeMQQueueConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KubeMQQueueConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.KubeMQQueueConn; - - /** - * Creates a plain object from a KubeMQQueueConn message. Also converts values to other types if specified. - * @param message KubeMQQueueConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.KubeMQQueueConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this KubeMQQueueConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a KubeMQQueueReadArgs. */ - interface IKubeMQQueueReadArgs { - - /** KubeMQQueueReadArgs queueName */ - queueName?: (string|null); - } - - /** Represents a KubeMQQueueReadArgs. */ - class KubeMQQueueReadArgs implements IKubeMQQueueReadArgs { - - /** - * Constructs a new KubeMQQueueReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IKubeMQQueueReadArgs); - - /** KubeMQQueueReadArgs queueName. */ - public queueName: string; - - /** - * Creates a new KubeMQQueueReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns KubeMQQueueReadArgs instance - */ - public static create(properties?: protos.args.IKubeMQQueueReadArgs): protos.args.KubeMQQueueReadArgs; - - /** - * Encodes the specified KubeMQQueueReadArgs message. Does not implicitly {@link protos.args.KubeMQQueueReadArgs.verify|verify} messages. - * @param message KubeMQQueueReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IKubeMQQueueReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified KubeMQQueueReadArgs message, length delimited. Does not implicitly {@link protos.args.KubeMQQueueReadArgs.verify|verify} messages. - * @param message KubeMQQueueReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IKubeMQQueueReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KubeMQQueueReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KubeMQQueueReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KubeMQQueueReadArgs; - - /** - * Decodes a KubeMQQueueReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KubeMQQueueReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KubeMQQueueReadArgs; - - /** - * Verifies a KubeMQQueueReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a KubeMQQueueReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KubeMQQueueReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.KubeMQQueueReadArgs; - - /** - * Creates a plain object from a KubeMQQueueReadArgs message. Also converts values to other types if specified. - * @param message KubeMQQueueReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.KubeMQQueueReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this KubeMQQueueReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a KubeMQQueueWriteArgs. */ - interface IKubeMQQueueWriteArgs { - - /** KubeMQQueueWriteArgs queueName */ - queueName?: (string|null); - } - - /** Represents a KubeMQQueueWriteArgs. */ - class KubeMQQueueWriteArgs implements IKubeMQQueueWriteArgs { - - /** - * Constructs a new KubeMQQueueWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IKubeMQQueueWriteArgs); - - /** KubeMQQueueWriteArgs queueName. */ - public queueName: string; - - /** - * Creates a new KubeMQQueueWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns KubeMQQueueWriteArgs instance - */ - public static create(properties?: protos.args.IKubeMQQueueWriteArgs): protos.args.KubeMQQueueWriteArgs; - - /** - * Encodes the specified KubeMQQueueWriteArgs message. Does not implicitly {@link protos.args.KubeMQQueueWriteArgs.verify|verify} messages. - * @param message KubeMQQueueWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IKubeMQQueueWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified KubeMQQueueWriteArgs message, length delimited. Does not implicitly {@link protos.args.KubeMQQueueWriteArgs.verify|verify} messages. - * @param message KubeMQQueueWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IKubeMQQueueWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KubeMQQueueWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KubeMQQueueWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.KubeMQQueueWriteArgs; - - /** - * Decodes a KubeMQQueueWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KubeMQQueueWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.KubeMQQueueWriteArgs; - - /** - * Verifies a KubeMQQueueWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a KubeMQQueueWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KubeMQQueueWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.KubeMQQueueWriteArgs; - - /** - * Creates a plain object from a KubeMQQueueWriteArgs message. Also converts values to other types if specified. - * @param message KubeMQQueueWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.KubeMQQueueWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this KubeMQQueueWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MemphisConn. */ - interface IMemphisConn { - - /** MemphisConn address */ - address?: (string|null); - - /** MemphisConn username */ - username?: (string|null); - - /** MemphisConn brokerToken */ - brokerToken?: (string|null); - } - - /** Represents a MemphisConn. */ - class MemphisConn implements IMemphisConn { - - /** - * Constructs a new MemphisConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IMemphisConn); - - /** MemphisConn address. */ - public address: string; - - /** MemphisConn username. */ - public username: string; - - /** MemphisConn brokerToken. */ - public brokerToken: string; - - /** - * Creates a new MemphisConn instance using the specified properties. - * @param [properties] Properties to set - * @returns MemphisConn instance - */ - public static create(properties?: protos.args.IMemphisConn): protos.args.MemphisConn; - - /** - * Encodes the specified MemphisConn message. Does not implicitly {@link protos.args.MemphisConn.verify|verify} messages. - * @param message MemphisConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IMemphisConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MemphisConn message, length delimited. Does not implicitly {@link protos.args.MemphisConn.verify|verify} messages. - * @param message MemphisConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IMemphisConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MemphisConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MemphisConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MemphisConn; - - /** - * Decodes a MemphisConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MemphisConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MemphisConn; - - /** - * Verifies a MemphisConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MemphisConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MemphisConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.MemphisConn; - - /** - * Creates a plain object from a MemphisConn message. Also converts values to other types if specified. - * @param message MemphisConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.MemphisConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MemphisConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MemphisReadArgs. */ - interface IMemphisReadArgs { - - /** MemphisReadArgs station */ - station?: (string|null); - - /** MemphisReadArgs consumerName */ - consumerName?: (string|null); - - /** MemphisReadArgs consumerGroup */ - consumerGroup?: (string|null); - } - - /** Represents a MemphisReadArgs. */ - class MemphisReadArgs implements IMemphisReadArgs { - - /** - * Constructs a new MemphisReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IMemphisReadArgs); - - /** MemphisReadArgs station. */ - public station: string; - - /** MemphisReadArgs consumerName. */ - public consumerName: string; - - /** MemphisReadArgs consumerGroup. */ - public consumerGroup: string; - - /** - * Creates a new MemphisReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns MemphisReadArgs instance - */ - public static create(properties?: protos.args.IMemphisReadArgs): protos.args.MemphisReadArgs; - - /** - * Encodes the specified MemphisReadArgs message. Does not implicitly {@link protos.args.MemphisReadArgs.verify|verify} messages. - * @param message MemphisReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IMemphisReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MemphisReadArgs message, length delimited. Does not implicitly {@link protos.args.MemphisReadArgs.verify|verify} messages. - * @param message MemphisReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IMemphisReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MemphisReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MemphisReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MemphisReadArgs; - - /** - * Decodes a MemphisReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MemphisReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MemphisReadArgs; - - /** - * Verifies a MemphisReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MemphisReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MemphisReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.MemphisReadArgs; - - /** - * Creates a plain object from a MemphisReadArgs message. Also converts values to other types if specified. - * @param message MemphisReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.MemphisReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MemphisReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MemphisWriteArgs. */ - interface IMemphisWriteArgs { - - /** MemphisWriteArgs station */ - station?: (string|null); - - /** MemphisWriteArgs producerName */ - producerName?: (string|null); - - /** MemphisWriteArgs headers */ - headers?: ({ [k: string]: string }|null); - - /** MemphisWriteArgs messageId */ - messageId?: (string|null); - } - - /** Represents a MemphisWriteArgs. */ - class MemphisWriteArgs implements IMemphisWriteArgs { - - /** - * Constructs a new MemphisWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IMemphisWriteArgs); - - /** MemphisWriteArgs station. */ - public station: string; - - /** MemphisWriteArgs producerName. */ - public producerName: string; - - /** MemphisWriteArgs headers. */ - public headers: { [k: string]: string }; - - /** MemphisWriteArgs messageId. */ - public messageId: string; - - /** - * Creates a new MemphisWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns MemphisWriteArgs instance - */ - public static create(properties?: protos.args.IMemphisWriteArgs): protos.args.MemphisWriteArgs; - - /** - * Encodes the specified MemphisWriteArgs message. Does not implicitly {@link protos.args.MemphisWriteArgs.verify|verify} messages. - * @param message MemphisWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IMemphisWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MemphisWriteArgs message, length delimited. Does not implicitly {@link protos.args.MemphisWriteArgs.verify|verify} messages. - * @param message MemphisWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IMemphisWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MemphisWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MemphisWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MemphisWriteArgs; - - /** - * Decodes a MemphisWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MemphisWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MemphisWriteArgs; - - /** - * Verifies a MemphisWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MemphisWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MemphisWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.MemphisWriteArgs; - - /** - * Creates a plain object from a MemphisWriteArgs message. Also converts values to other types if specified. - * @param message MemphisWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.MemphisWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MemphisWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MongoConn. */ - interface IMongoConn { - - /** MongoConn dsn */ - dsn?: (string|null); - } - - /** Represents a MongoConn. */ - class MongoConn implements IMongoConn { - - /** - * Constructs a new MongoConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IMongoConn); - - /** MongoConn dsn. */ - public dsn: string; - - /** - * Creates a new MongoConn instance using the specified properties. - * @param [properties] Properties to set - * @returns MongoConn instance - */ - public static create(properties?: protos.args.IMongoConn): protos.args.MongoConn; - - /** - * Encodes the specified MongoConn message. Does not implicitly {@link protos.args.MongoConn.verify|verify} messages. - * @param message MongoConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IMongoConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MongoConn message, length delimited. Does not implicitly {@link protos.args.MongoConn.verify|verify} messages. - * @param message MongoConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IMongoConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MongoConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MongoConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MongoConn; - - /** - * Decodes a MongoConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MongoConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MongoConn; - - /** - * Verifies a MongoConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MongoConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MongoConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.MongoConn; - - /** - * Creates a plain object from a MongoConn message. Also converts values to other types if specified. - * @param message MongoConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.MongoConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MongoConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MongoReadArgs. */ - interface IMongoReadArgs { - - /** MongoReadArgs database */ - database?: (string|null); - - /** MongoReadArgs collection */ - collection?: (string|null); - - /** MongoReadArgs includeFullDocument */ - includeFullDocument?: (boolean|null); - } - - /** Represents a MongoReadArgs. */ - class MongoReadArgs implements IMongoReadArgs { - - /** - * Constructs a new MongoReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IMongoReadArgs); - - /** MongoReadArgs database. */ - public database: string; - - /** MongoReadArgs collection. */ - public collection: string; - - /** MongoReadArgs includeFullDocument. */ - public includeFullDocument: boolean; - - /** - * Creates a new MongoReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns MongoReadArgs instance - */ - public static create(properties?: protos.args.IMongoReadArgs): protos.args.MongoReadArgs; - - /** - * Encodes the specified MongoReadArgs message. Does not implicitly {@link protos.args.MongoReadArgs.verify|verify} messages. - * @param message MongoReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IMongoReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MongoReadArgs message, length delimited. Does not implicitly {@link protos.args.MongoReadArgs.verify|verify} messages. - * @param message MongoReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IMongoReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MongoReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MongoReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MongoReadArgs; - - /** - * Decodes a MongoReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MongoReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MongoReadArgs; - - /** - * Verifies a MongoReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MongoReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MongoReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.MongoReadArgs; - - /** - * Creates a plain object from a MongoReadArgs message. Also converts values to other types if specified. - * @param message MongoReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.MongoReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MongoReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** MQTTQoSLevel enum. */ - enum MQTTQoSLevel { - MQTT_QOS_LEVEL_AT_MOST_ONCE = 0, - MQTT_QOS_LEVEL_AT_LEAST_ONCE = 1, - MQTT_QOS_LEVEL_EXACTLY_ONCE = 2 - } - - /** Properties of a MQTTTLSOptions. */ - interface IMQTTTLSOptions { - - /** MQTTTLSOptions tlsCaCert */ - tlsCaCert?: (string|null); - - /** MQTTTLSOptions tlsClientCert */ - tlsClientCert?: (string|null); - - /** MQTTTLSOptions tlsClientKey */ - tlsClientKey?: (string|null); - - /** MQTTTLSOptions tlsSkipVerify */ - tlsSkipVerify?: (boolean|null); - } - - /** Represents a MQTTTLSOptions. */ - class MQTTTLSOptions implements IMQTTTLSOptions { - - /** - * Constructs a new MQTTTLSOptions. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IMQTTTLSOptions); - - /** MQTTTLSOptions tlsCaCert. */ - public tlsCaCert: string; - - /** MQTTTLSOptions tlsClientCert. */ - public tlsClientCert: string; - - /** MQTTTLSOptions tlsClientKey. */ - public tlsClientKey: string; - - /** MQTTTLSOptions tlsSkipVerify. */ - public tlsSkipVerify: boolean; - - /** - * Creates a new MQTTTLSOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns MQTTTLSOptions instance - */ - public static create(properties?: protos.args.IMQTTTLSOptions): protos.args.MQTTTLSOptions; - - /** - * Encodes the specified MQTTTLSOptions message. Does not implicitly {@link protos.args.MQTTTLSOptions.verify|verify} messages. - * @param message MQTTTLSOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IMQTTTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MQTTTLSOptions message, length delimited. Does not implicitly {@link protos.args.MQTTTLSOptions.verify|verify} messages. - * @param message MQTTTLSOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IMQTTTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MQTTTLSOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MQTTTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MQTTTLSOptions; - - /** - * Decodes a MQTTTLSOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MQTTTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MQTTTLSOptions; - - /** - * Verifies a MQTTTLSOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MQTTTLSOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MQTTTLSOptions - */ - public static fromObject(object: { [k: string]: any }): protos.args.MQTTTLSOptions; - - /** - * Creates a plain object from a MQTTTLSOptions message. Also converts values to other types if specified. - * @param message MQTTTLSOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.MQTTTLSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MQTTTLSOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MQTTConn. */ - interface IMQTTConn { - - /** MQTTConn address */ - address?: (string|null); - - /** MQTTConn connTimeoutSeconds */ - connTimeoutSeconds?: (number|null); - - /** MQTTConn clientId */ - clientId?: (string|null); - - /** MQTTConn qosLevel */ - qosLevel?: (protos.args.MQTTQoSLevel|null); - - /** MQTTConn tlsOptions */ - tlsOptions?: (protos.args.IMQTTTLSOptions|null); - } - - /** Represents a MQTTConn. */ - class MQTTConn implements IMQTTConn { - - /** - * Constructs a new MQTTConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IMQTTConn); - - /** MQTTConn address. */ - public address: string; - - /** MQTTConn connTimeoutSeconds. */ - public connTimeoutSeconds: number; - - /** MQTTConn clientId. */ - public clientId: string; - - /** MQTTConn qosLevel. */ - public qosLevel: protos.args.MQTTQoSLevel; - - /** MQTTConn tlsOptions. */ - public tlsOptions?: (protos.args.IMQTTTLSOptions|null); - - /** - * Creates a new MQTTConn instance using the specified properties. - * @param [properties] Properties to set - * @returns MQTTConn instance - */ - public static create(properties?: protos.args.IMQTTConn): protos.args.MQTTConn; - - /** - * Encodes the specified MQTTConn message. Does not implicitly {@link protos.args.MQTTConn.verify|verify} messages. - * @param message MQTTConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IMQTTConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MQTTConn message, length delimited. Does not implicitly {@link protos.args.MQTTConn.verify|verify} messages. - * @param message MQTTConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IMQTTConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MQTTConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MQTTConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MQTTConn; - - /** - * Decodes a MQTTConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MQTTConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MQTTConn; - - /** - * Verifies a MQTTConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MQTTConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MQTTConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.MQTTConn; - - /** - * Creates a plain object from a MQTTConn message. Also converts values to other types if specified. - * @param message MQTTConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.MQTTConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MQTTConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MQTTReadArgs. */ - interface IMQTTReadArgs { - - /** MQTTReadArgs topic */ - topic?: (string|null); - - /** MQTTReadArgs readTimeoutSeconds */ - readTimeoutSeconds?: (number|null); - } - - /** Represents a MQTTReadArgs. */ - class MQTTReadArgs implements IMQTTReadArgs { - - /** - * Constructs a new MQTTReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IMQTTReadArgs); - - /** MQTTReadArgs topic. */ - public topic: string; - - /** MQTTReadArgs readTimeoutSeconds. */ - public readTimeoutSeconds: number; - - /** - * Creates a new MQTTReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns MQTTReadArgs instance - */ - public static create(properties?: protos.args.IMQTTReadArgs): protos.args.MQTTReadArgs; - - /** - * Encodes the specified MQTTReadArgs message. Does not implicitly {@link protos.args.MQTTReadArgs.verify|verify} messages. - * @param message MQTTReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IMQTTReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MQTTReadArgs message, length delimited. Does not implicitly {@link protos.args.MQTTReadArgs.verify|verify} messages. - * @param message MQTTReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IMQTTReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MQTTReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MQTTReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MQTTReadArgs; - - /** - * Decodes a MQTTReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MQTTReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MQTTReadArgs; - - /** - * Verifies a MQTTReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MQTTReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MQTTReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.MQTTReadArgs; - - /** - * Creates a plain object from a MQTTReadArgs message. Also converts values to other types if specified. - * @param message MQTTReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.MQTTReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MQTTReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MQTTWriteArgs. */ - interface IMQTTWriteArgs { - - /** MQTTWriteArgs topic */ - topic?: (string|null); - - /** MQTTWriteArgs writeTimeoutSeconds */ - writeTimeoutSeconds?: (number|null); - } - - /** Represents a MQTTWriteArgs. */ - class MQTTWriteArgs implements IMQTTWriteArgs { - - /** - * Constructs a new MQTTWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IMQTTWriteArgs); - - /** MQTTWriteArgs topic. */ - public topic: string; - - /** MQTTWriteArgs writeTimeoutSeconds. */ - public writeTimeoutSeconds: number; - - /** - * Creates a new MQTTWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns MQTTWriteArgs instance - */ - public static create(properties?: protos.args.IMQTTWriteArgs): protos.args.MQTTWriteArgs; - - /** - * Encodes the specified MQTTWriteArgs message. Does not implicitly {@link protos.args.MQTTWriteArgs.verify|verify} messages. - * @param message MQTTWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IMQTTWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MQTTWriteArgs message, length delimited. Does not implicitly {@link protos.args.MQTTWriteArgs.verify|verify} messages. - * @param message MQTTWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IMQTTWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MQTTWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MQTTWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.MQTTWriteArgs; - - /** - * Decodes a MQTTWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MQTTWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.MQTTWriteArgs; - - /** - * Verifies a MQTTWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MQTTWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MQTTWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.MQTTWriteArgs; - - /** - * Creates a plain object from a MQTTWriteArgs message. Also converts values to other types if specified. - * @param message MQTTWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.MQTTWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MQTTWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NatsConn. */ - interface INatsConn { - - /** NatsConn dsn */ - dsn?: (string|null); - - /** NatsConn userCredentials */ - userCredentials?: (string|null); - - /** NatsConn tlsOptions */ - tlsOptions?: (protos.args.INatsTLSOptions|null); - - /** NatsConn nkey */ - nkey?: (string|null); - } - - /** Represents a NatsConn. */ - class NatsConn implements INatsConn { - - /** - * Constructs a new NatsConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INatsConn); - - /** NatsConn dsn. */ - public dsn: string; - - /** NatsConn userCredentials. */ - public userCredentials: string; - - /** NatsConn tlsOptions. */ - public tlsOptions?: (protos.args.INatsTLSOptions|null); - - /** NatsConn nkey. */ - public nkey: string; - - /** - * Creates a new NatsConn instance using the specified properties. - * @param [properties] Properties to set - * @returns NatsConn instance - */ - public static create(properties?: protos.args.INatsConn): protos.args.NatsConn; - - /** - * Encodes the specified NatsConn message. Does not implicitly {@link protos.args.NatsConn.verify|verify} messages. - * @param message NatsConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INatsConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NatsConn message, length delimited. Does not implicitly {@link protos.args.NatsConn.verify|verify} messages. - * @param message NatsConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INatsConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NatsConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NatsConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsConn; - - /** - * Decodes a NatsConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NatsConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsConn; - - /** - * Verifies a NatsConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NatsConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NatsConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.NatsConn; - - /** - * Creates a plain object from a NatsConn message. Also converts values to other types if specified. - * @param message NatsConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NatsConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NatsConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NatsTLSOptions. */ - interface INatsTLSOptions { - - /** NatsTLSOptions tlsSkipVerify */ - tlsSkipVerify?: (boolean|null); - - /** NatsTLSOptions tlsCaCert */ - tlsCaCert?: (string|null); - - /** NatsTLSOptions tlsClientCert */ - tlsClientCert?: (string|null); - - /** NatsTLSOptions tlsClientKey */ - tlsClientKey?: (string|null); - - /** NatsTLSOptions useTls */ - useTls?: (boolean|null); - } - - /** Represents a NatsTLSOptions. */ - class NatsTLSOptions implements INatsTLSOptions { - - /** - * Constructs a new NatsTLSOptions. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INatsTLSOptions); - - /** NatsTLSOptions tlsSkipVerify. */ - public tlsSkipVerify: boolean; - - /** NatsTLSOptions tlsCaCert. */ - public tlsCaCert: string; - - /** NatsTLSOptions tlsClientCert. */ - public tlsClientCert: string; - - /** NatsTLSOptions tlsClientKey. */ - public tlsClientKey: string; - - /** NatsTLSOptions useTls. */ - public useTls: boolean; - - /** - * Creates a new NatsTLSOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns NatsTLSOptions instance - */ - public static create(properties?: protos.args.INatsTLSOptions): protos.args.NatsTLSOptions; - - /** - * Encodes the specified NatsTLSOptions message. Does not implicitly {@link protos.args.NatsTLSOptions.verify|verify} messages. - * @param message NatsTLSOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INatsTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NatsTLSOptions message, length delimited. Does not implicitly {@link protos.args.NatsTLSOptions.verify|verify} messages. - * @param message NatsTLSOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INatsTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NatsTLSOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NatsTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsTLSOptions; - - /** - * Decodes a NatsTLSOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NatsTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsTLSOptions; - - /** - * Verifies a NatsTLSOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NatsTLSOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NatsTLSOptions - */ - public static fromObject(object: { [k: string]: any }): protos.args.NatsTLSOptions; - - /** - * Creates a plain object from a NatsTLSOptions message. Also converts values to other types if specified. - * @param message NatsTLSOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NatsTLSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NatsTLSOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NatsReadArgs. */ - interface INatsReadArgs { - - /** NatsReadArgs subject */ - subject?: (string|null); - } - - /** Represents a NatsReadArgs. */ - class NatsReadArgs implements INatsReadArgs { - - /** - * Constructs a new NatsReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INatsReadArgs); - - /** NatsReadArgs subject. */ - public subject: string; - - /** - * Creates a new NatsReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns NatsReadArgs instance - */ - public static create(properties?: protos.args.INatsReadArgs): protos.args.NatsReadArgs; - - /** - * Encodes the specified NatsReadArgs message. Does not implicitly {@link protos.args.NatsReadArgs.verify|verify} messages. - * @param message NatsReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INatsReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NatsReadArgs message, length delimited. Does not implicitly {@link protos.args.NatsReadArgs.verify|verify} messages. - * @param message NatsReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INatsReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NatsReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NatsReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsReadArgs; - - /** - * Decodes a NatsReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NatsReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsReadArgs; - - /** - * Verifies a NatsReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NatsReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NatsReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.NatsReadArgs; - - /** - * Creates a plain object from a NatsReadArgs message. Also converts values to other types if specified. - * @param message NatsReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NatsReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NatsReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NatsWriteArgs. */ - interface INatsWriteArgs { - - /** NatsWriteArgs subject */ - subject?: (string|null); - } - - /** Represents a NatsWriteArgs. */ - class NatsWriteArgs implements INatsWriteArgs { - - /** - * Constructs a new NatsWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INatsWriteArgs); - - /** NatsWriteArgs subject. */ - public subject: string; - - /** - * Creates a new NatsWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns NatsWriteArgs instance - */ - public static create(properties?: protos.args.INatsWriteArgs): protos.args.NatsWriteArgs; - - /** - * Encodes the specified NatsWriteArgs message. Does not implicitly {@link protos.args.NatsWriteArgs.verify|verify} messages. - * @param message NatsWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INatsWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NatsWriteArgs message, length delimited. Does not implicitly {@link protos.args.NatsWriteArgs.verify|verify} messages. - * @param message NatsWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INatsWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NatsWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NatsWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsWriteArgs; - - /** - * Decodes a NatsWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NatsWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsWriteArgs; - - /** - * Verifies a NatsWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NatsWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NatsWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.NatsWriteArgs; - - /** - * Creates a plain object from a NatsWriteArgs message. Also converts values to other types if specified. - * @param message NatsWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NatsWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NatsWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NatsJetstreamTLSOptions. */ - interface INatsJetstreamTLSOptions { - - /** NatsJetstreamTLSOptions tlsCaCert */ - tlsCaCert?: (string|null); - - /** NatsJetstreamTLSOptions tlsClientCert */ - tlsClientCert?: (string|null); - - /** NatsJetstreamTLSOptions tlsClientKey */ - tlsClientKey?: (string|null); - - /** NatsJetstreamTLSOptions tlsSkipVerify */ - tlsSkipVerify?: (boolean|null); - - /** NatsJetstreamTLSOptions useTls */ - useTls?: (boolean|null); - } - - /** Represents a NatsJetstreamTLSOptions. */ - class NatsJetstreamTLSOptions implements INatsJetstreamTLSOptions { - - /** - * Constructs a new NatsJetstreamTLSOptions. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INatsJetstreamTLSOptions); - - /** NatsJetstreamTLSOptions tlsCaCert. */ - public tlsCaCert: string; - - /** NatsJetstreamTLSOptions tlsClientCert. */ - public tlsClientCert: string; - - /** NatsJetstreamTLSOptions tlsClientKey. */ - public tlsClientKey: string; - - /** NatsJetstreamTLSOptions tlsSkipVerify. */ - public tlsSkipVerify: boolean; - - /** NatsJetstreamTLSOptions useTls. */ - public useTls: boolean; - - /** - * Creates a new NatsJetstreamTLSOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns NatsJetstreamTLSOptions instance - */ - public static create(properties?: protos.args.INatsJetstreamTLSOptions): protos.args.NatsJetstreamTLSOptions; - - /** - * Encodes the specified NatsJetstreamTLSOptions message. Does not implicitly {@link protos.args.NatsJetstreamTLSOptions.verify|verify} messages. - * @param message NatsJetstreamTLSOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INatsJetstreamTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NatsJetstreamTLSOptions message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamTLSOptions.verify|verify} messages. - * @param message NatsJetstreamTLSOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INatsJetstreamTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NatsJetstreamTLSOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NatsJetstreamTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsJetstreamTLSOptions; - - /** - * Decodes a NatsJetstreamTLSOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NatsJetstreamTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsJetstreamTLSOptions; - - /** - * Verifies a NatsJetstreamTLSOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NatsJetstreamTLSOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NatsJetstreamTLSOptions - */ - public static fromObject(object: { [k: string]: any }): protos.args.NatsJetstreamTLSOptions; - - /** - * Creates a plain object from a NatsJetstreamTLSOptions message. Also converts values to other types if specified. - * @param message NatsJetstreamTLSOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NatsJetstreamTLSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NatsJetstreamTLSOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NatsJetstreamConn. */ - interface INatsJetstreamConn { - - /** NatsJetstreamConn dsn */ - dsn?: (string|null); - - /** NatsJetstreamConn userCredentials */ - userCredentials?: (string|null); - - /** NatsJetstreamConn clientId */ - clientId?: (string|null); - - /** NatsJetstreamConn tlsOptions */ - tlsOptions?: (protos.args.INatsJetstreamTLSOptions|null); - - /** NatsJetstreamConn nkey */ - nkey?: (string|null); - } - - /** Represents a NatsJetstreamConn. */ - class NatsJetstreamConn implements INatsJetstreamConn { - - /** - * Constructs a new NatsJetstreamConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INatsJetstreamConn); - - /** NatsJetstreamConn dsn. */ - public dsn: string; - - /** NatsJetstreamConn userCredentials. */ - public userCredentials: string; - - /** NatsJetstreamConn clientId. */ - public clientId: string; - - /** NatsJetstreamConn tlsOptions. */ - public tlsOptions?: (protos.args.INatsJetstreamTLSOptions|null); - - /** NatsJetstreamConn nkey. */ - public nkey: string; - - /** - * Creates a new NatsJetstreamConn instance using the specified properties. - * @param [properties] Properties to set - * @returns NatsJetstreamConn instance - */ - public static create(properties?: protos.args.INatsJetstreamConn): protos.args.NatsJetstreamConn; - - /** - * Encodes the specified NatsJetstreamConn message. Does not implicitly {@link protos.args.NatsJetstreamConn.verify|verify} messages. - * @param message NatsJetstreamConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INatsJetstreamConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NatsJetstreamConn message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamConn.verify|verify} messages. - * @param message NatsJetstreamConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INatsJetstreamConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NatsJetstreamConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NatsJetstreamConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsJetstreamConn; - - /** - * Decodes a NatsJetstreamConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NatsJetstreamConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsJetstreamConn; - - /** - * Verifies a NatsJetstreamConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NatsJetstreamConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NatsJetstreamConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.NatsJetstreamConn; - - /** - * Creates a plain object from a NatsJetstreamConn message. Also converts values to other types if specified. - * @param message NatsJetstreamConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NatsJetstreamConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NatsJetstreamConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NatsJetstreamReadArgs. */ - interface INatsJetstreamReadArgs { - - /** NatsJetstreamReadArgs stream */ - stream?: (string|null); - - /** NatsJetstreamReadArgs consumerName */ - consumerName?: (string|null); - - /** NatsJetstreamReadArgs createDurableConsumer */ - createDurableConsumer?: (boolean|null); - - /** NatsJetstreamReadArgs existingDurableConsumer */ - existingDurableConsumer?: (boolean|null); - - /** NatsJetstreamReadArgs keepConsumer */ - keepConsumer?: (boolean|null); - - /** NatsJetstreamReadArgs consumerStartSequence */ - consumerStartSequence?: (number|Long|null); - - /** NatsJetstreamReadArgs consumerStartTime */ - consumerStartTime?: (string|null); - - /** NatsJetstreamReadArgs consumerFilterSubject */ - consumerFilterSubject?: (string|null); - } - - /** Represents a NatsJetstreamReadArgs. */ - class NatsJetstreamReadArgs implements INatsJetstreamReadArgs { - - /** - * Constructs a new NatsJetstreamReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INatsJetstreamReadArgs); - - /** NatsJetstreamReadArgs stream. */ - public stream: string; - - /** NatsJetstreamReadArgs consumerName. */ - public consumerName: string; - - /** NatsJetstreamReadArgs createDurableConsumer. */ - public createDurableConsumer: boolean; - - /** NatsJetstreamReadArgs existingDurableConsumer. */ - public existingDurableConsumer: boolean; - - /** NatsJetstreamReadArgs keepConsumer. */ - public keepConsumer: boolean; - - /** NatsJetstreamReadArgs consumerStartSequence. */ - public consumerStartSequence: (number|Long); - - /** NatsJetstreamReadArgs consumerStartTime. */ - public consumerStartTime: string; - - /** NatsJetstreamReadArgs consumerFilterSubject. */ - public consumerFilterSubject: string; - - /** - * Creates a new NatsJetstreamReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns NatsJetstreamReadArgs instance - */ - public static create(properties?: protos.args.INatsJetstreamReadArgs): protos.args.NatsJetstreamReadArgs; - - /** - * Encodes the specified NatsJetstreamReadArgs message. Does not implicitly {@link protos.args.NatsJetstreamReadArgs.verify|verify} messages. - * @param message NatsJetstreamReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INatsJetstreamReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NatsJetstreamReadArgs message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamReadArgs.verify|verify} messages. - * @param message NatsJetstreamReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INatsJetstreamReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NatsJetstreamReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NatsJetstreamReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsJetstreamReadArgs; - - /** - * Decodes a NatsJetstreamReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NatsJetstreamReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsJetstreamReadArgs; - - /** - * Verifies a NatsJetstreamReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NatsJetstreamReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NatsJetstreamReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.NatsJetstreamReadArgs; - - /** - * Creates a plain object from a NatsJetstreamReadArgs message. Also converts values to other types if specified. - * @param message NatsJetstreamReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NatsJetstreamReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NatsJetstreamReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NatsJetstreamWriteArgs. */ - interface INatsJetstreamWriteArgs { - - /** NatsJetstreamWriteArgs subject */ - subject?: (string|null); - } - - /** Represents a NatsJetstreamWriteArgs. */ - class NatsJetstreamWriteArgs implements INatsJetstreamWriteArgs { - - /** - * Constructs a new NatsJetstreamWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INatsJetstreamWriteArgs); - - /** NatsJetstreamWriteArgs subject. */ - public subject: string; - - /** - * Creates a new NatsJetstreamWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns NatsJetstreamWriteArgs instance - */ - public static create(properties?: protos.args.INatsJetstreamWriteArgs): protos.args.NatsJetstreamWriteArgs; - - /** - * Encodes the specified NatsJetstreamWriteArgs message. Does not implicitly {@link protos.args.NatsJetstreamWriteArgs.verify|verify} messages. - * @param message NatsJetstreamWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INatsJetstreamWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NatsJetstreamWriteArgs message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamWriteArgs.verify|verify} messages. - * @param message NatsJetstreamWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INatsJetstreamWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NatsJetstreamWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NatsJetstreamWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsJetstreamWriteArgs; - - /** - * Decodes a NatsJetstreamWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NatsJetstreamWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsJetstreamWriteArgs; - - /** - * Verifies a NatsJetstreamWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NatsJetstreamWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NatsJetstreamWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.NatsJetstreamWriteArgs; - - /** - * Creates a plain object from a NatsJetstreamWriteArgs message. Also converts values to other types if specified. - * @param message NatsJetstreamWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NatsJetstreamWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NatsJetstreamWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NatsStreamingTLSOptions. */ - interface INatsStreamingTLSOptions { - - /** NatsStreamingTLSOptions tlsCaCert */ - tlsCaCert?: (string|null); - - /** NatsStreamingTLSOptions tlsClientCert */ - tlsClientCert?: (string|null); - - /** NatsStreamingTLSOptions tlsClientKey */ - tlsClientKey?: (string|null); - - /** NatsStreamingTLSOptions tlsSkipVerify */ - tlsSkipVerify?: (boolean|null); - - /** NatsStreamingTLSOptions useTls */ - useTls?: (boolean|null); - } - - /** Represents a NatsStreamingTLSOptions. */ - class NatsStreamingTLSOptions implements INatsStreamingTLSOptions { - - /** - * Constructs a new NatsStreamingTLSOptions. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INatsStreamingTLSOptions); - - /** NatsStreamingTLSOptions tlsCaCert. */ - public tlsCaCert: string; - - /** NatsStreamingTLSOptions tlsClientCert. */ - public tlsClientCert: string; - - /** NatsStreamingTLSOptions tlsClientKey. */ - public tlsClientKey: string; - - /** NatsStreamingTLSOptions tlsSkipVerify. */ - public tlsSkipVerify: boolean; - - /** NatsStreamingTLSOptions useTls. */ - public useTls: boolean; - - /** - * Creates a new NatsStreamingTLSOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns NatsStreamingTLSOptions instance - */ - public static create(properties?: protos.args.INatsStreamingTLSOptions): protos.args.NatsStreamingTLSOptions; - - /** - * Encodes the specified NatsStreamingTLSOptions message. Does not implicitly {@link protos.args.NatsStreamingTLSOptions.verify|verify} messages. - * @param message NatsStreamingTLSOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INatsStreamingTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NatsStreamingTLSOptions message, length delimited. Does not implicitly {@link protos.args.NatsStreamingTLSOptions.verify|verify} messages. - * @param message NatsStreamingTLSOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INatsStreamingTLSOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NatsStreamingTLSOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NatsStreamingTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsStreamingTLSOptions; - - /** - * Decodes a NatsStreamingTLSOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NatsStreamingTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsStreamingTLSOptions; - - /** - * Verifies a NatsStreamingTLSOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NatsStreamingTLSOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NatsStreamingTLSOptions - */ - public static fromObject(object: { [k: string]: any }): protos.args.NatsStreamingTLSOptions; - - /** - * Creates a plain object from a NatsStreamingTLSOptions message. Also converts values to other types if specified. - * @param message NatsStreamingTLSOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NatsStreamingTLSOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NatsStreamingTLSOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NatsStreamingConn. */ - interface INatsStreamingConn { - - /** NatsStreamingConn dsn */ - dsn?: (string|null); - - /** NatsStreamingConn userCredentials */ - userCredentials?: (string|null); - - /** NatsStreamingConn clusterId */ - clusterId?: (string|null); - - /** NatsStreamingConn clientId */ - clientId?: (string|null); - - /** NatsStreamingConn tlsOptions */ - tlsOptions?: (protos.args.INatsStreamingTLSOptions|null); - } - - /** Represents a NatsStreamingConn. */ - class NatsStreamingConn implements INatsStreamingConn { - - /** - * Constructs a new NatsStreamingConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INatsStreamingConn); - - /** NatsStreamingConn dsn. */ - public dsn: string; - - /** NatsStreamingConn userCredentials. */ - public userCredentials: string; - - /** NatsStreamingConn clusterId. */ - public clusterId: string; - - /** NatsStreamingConn clientId. */ - public clientId: string; - - /** NatsStreamingConn tlsOptions. */ - public tlsOptions?: (protos.args.INatsStreamingTLSOptions|null); - - /** - * Creates a new NatsStreamingConn instance using the specified properties. - * @param [properties] Properties to set - * @returns NatsStreamingConn instance - */ - public static create(properties?: protos.args.INatsStreamingConn): protos.args.NatsStreamingConn; - - /** - * Encodes the specified NatsStreamingConn message. Does not implicitly {@link protos.args.NatsStreamingConn.verify|verify} messages. - * @param message NatsStreamingConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INatsStreamingConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NatsStreamingConn message, length delimited. Does not implicitly {@link protos.args.NatsStreamingConn.verify|verify} messages. - * @param message NatsStreamingConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INatsStreamingConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NatsStreamingConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NatsStreamingConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsStreamingConn; - - /** - * Decodes a NatsStreamingConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NatsStreamingConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsStreamingConn; - - /** - * Verifies a NatsStreamingConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NatsStreamingConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NatsStreamingConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.NatsStreamingConn; - - /** - * Creates a plain object from a NatsStreamingConn message. Also converts values to other types if specified. - * @param message NatsStreamingConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NatsStreamingConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NatsStreamingConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NatsStreamingReadArgs. */ - interface INatsStreamingReadArgs { - - /** NatsStreamingReadArgs channel */ - channel?: (string|null); - - /** NatsStreamingReadArgs durableName */ - durableName?: (string|null); - - /** NatsStreamingReadArgs readLastAvailable */ - readLastAvailable?: (boolean|null); - - /** NatsStreamingReadArgs readSequenceNumber */ - readSequenceNumber?: (number|null); - - /** NatsStreamingReadArgs readSince */ - readSince?: (string|null); - - /** NatsStreamingReadArgs readAll */ - readAll?: (boolean|null); - } - - /** Represents a NatsStreamingReadArgs. */ - class NatsStreamingReadArgs implements INatsStreamingReadArgs { - - /** - * Constructs a new NatsStreamingReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INatsStreamingReadArgs); - - /** NatsStreamingReadArgs channel. */ - public channel: string; - - /** NatsStreamingReadArgs durableName. */ - public durableName: string; - - /** NatsStreamingReadArgs readLastAvailable. */ - public readLastAvailable: boolean; - - /** NatsStreamingReadArgs readSequenceNumber. */ - public readSequenceNumber: number; - - /** NatsStreamingReadArgs readSince. */ - public readSince: string; - - /** NatsStreamingReadArgs readAll. */ - public readAll: boolean; - - /** - * Creates a new NatsStreamingReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns NatsStreamingReadArgs instance - */ - public static create(properties?: protos.args.INatsStreamingReadArgs): protos.args.NatsStreamingReadArgs; - - /** - * Encodes the specified NatsStreamingReadArgs message. Does not implicitly {@link protos.args.NatsStreamingReadArgs.verify|verify} messages. - * @param message NatsStreamingReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INatsStreamingReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NatsStreamingReadArgs message, length delimited. Does not implicitly {@link protos.args.NatsStreamingReadArgs.verify|verify} messages. - * @param message NatsStreamingReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INatsStreamingReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NatsStreamingReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NatsStreamingReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsStreamingReadArgs; - - /** - * Decodes a NatsStreamingReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NatsStreamingReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsStreamingReadArgs; - - /** - * Verifies a NatsStreamingReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NatsStreamingReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NatsStreamingReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.NatsStreamingReadArgs; - - /** - * Creates a plain object from a NatsStreamingReadArgs message. Also converts values to other types if specified. - * @param message NatsStreamingReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NatsStreamingReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NatsStreamingReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NatsStreamingWriteArgs. */ - interface INatsStreamingWriteArgs { - - /** NatsStreamingWriteArgs channel */ - channel?: (string|null); - } - - /** Represents a NatsStreamingWriteArgs. */ - class NatsStreamingWriteArgs implements INatsStreamingWriteArgs { - - /** - * Constructs a new NatsStreamingWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INatsStreamingWriteArgs); - - /** NatsStreamingWriteArgs channel. */ - public channel: string; - - /** - * Creates a new NatsStreamingWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns NatsStreamingWriteArgs instance - */ - public static create(properties?: protos.args.INatsStreamingWriteArgs): protos.args.NatsStreamingWriteArgs; - - /** - * Encodes the specified NatsStreamingWriteArgs message. Does not implicitly {@link protos.args.NatsStreamingWriteArgs.verify|verify} messages. - * @param message NatsStreamingWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INatsStreamingWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NatsStreamingWriteArgs message, length delimited. Does not implicitly {@link protos.args.NatsStreamingWriteArgs.verify|verify} messages. - * @param message NatsStreamingWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INatsStreamingWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NatsStreamingWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NatsStreamingWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NatsStreamingWriteArgs; - - /** - * Decodes a NatsStreamingWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NatsStreamingWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NatsStreamingWriteArgs; - - /** - * Verifies a NatsStreamingWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NatsStreamingWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NatsStreamingWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.NatsStreamingWriteArgs; - - /** - * Creates a plain object from a NatsStreamingWriteArgs message. Also converts values to other types if specified. - * @param message NatsStreamingWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NatsStreamingWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NatsStreamingWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NSQConn. */ - interface INSQConn { - - /** NSQConn nsqdAddress */ - nsqdAddress?: (string|null); - - /** NSQConn lookupdAddress */ - lookupdAddress?: (string|null); - - /** NSQConn useTls */ - useTls?: (boolean|null); - - /** NSQConn tlsSkipVerify */ - tlsSkipVerify?: (boolean|null); - - /** NSQConn tlsCaCert */ - tlsCaCert?: (string|null); - - /** NSQConn tlsClientCert */ - tlsClientCert?: (string|null); - - /** NSQConn tlsClientKey */ - tlsClientKey?: (string|null); - - /** NSQConn authSecret */ - authSecret?: (string|null); - - /** NSQConn clientId */ - clientId?: (string|null); - } - - /** Represents a NSQConn. */ - class NSQConn implements INSQConn { - - /** - * Constructs a new NSQConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INSQConn); - - /** NSQConn nsqdAddress. */ - public nsqdAddress: string; - - /** NSQConn lookupdAddress. */ - public lookupdAddress: string; - - /** NSQConn useTls. */ - public useTls: boolean; - - /** NSQConn tlsSkipVerify. */ - public tlsSkipVerify: boolean; - - /** NSQConn tlsCaCert. */ - public tlsCaCert: string; - - /** NSQConn tlsClientCert. */ - public tlsClientCert: string; - - /** NSQConn tlsClientKey. */ - public tlsClientKey: string; - - /** NSQConn authSecret. */ - public authSecret: string; - - /** NSQConn clientId. */ - public clientId: string; - - /** - * Creates a new NSQConn instance using the specified properties. - * @param [properties] Properties to set - * @returns NSQConn instance - */ - public static create(properties?: protos.args.INSQConn): protos.args.NSQConn; - - /** - * Encodes the specified NSQConn message. Does not implicitly {@link protos.args.NSQConn.verify|verify} messages. - * @param message NSQConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INSQConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NSQConn message, length delimited. Does not implicitly {@link protos.args.NSQConn.verify|verify} messages. - * @param message NSQConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INSQConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NSQConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NSQConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NSQConn; - - /** - * Decodes a NSQConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NSQConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NSQConn; - - /** - * Verifies a NSQConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NSQConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NSQConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.NSQConn; - - /** - * Creates a plain object from a NSQConn message. Also converts values to other types if specified. - * @param message NSQConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NSQConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NSQConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NSQReadArgs. */ - interface INSQReadArgs { - - /** NSQReadArgs topic */ - topic?: (string|null); - - /** NSQReadArgs channel */ - channel?: (string|null); - } - - /** Represents a NSQReadArgs. */ - class NSQReadArgs implements INSQReadArgs { - - /** - * Constructs a new NSQReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INSQReadArgs); - - /** NSQReadArgs topic. */ - public topic: string; - - /** NSQReadArgs channel. */ - public channel: string; - - /** - * Creates a new NSQReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns NSQReadArgs instance - */ - public static create(properties?: protos.args.INSQReadArgs): protos.args.NSQReadArgs; - - /** - * Encodes the specified NSQReadArgs message. Does not implicitly {@link protos.args.NSQReadArgs.verify|verify} messages. - * @param message NSQReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INSQReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NSQReadArgs message, length delimited. Does not implicitly {@link protos.args.NSQReadArgs.verify|verify} messages. - * @param message NSQReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INSQReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NSQReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NSQReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NSQReadArgs; - - /** - * Decodes a NSQReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NSQReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NSQReadArgs; - - /** - * Verifies a NSQReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NSQReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NSQReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.NSQReadArgs; - - /** - * Creates a plain object from a NSQReadArgs message. Also converts values to other types if specified. - * @param message NSQReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NSQReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NSQReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a NSQWriteArgs. */ - interface INSQWriteArgs { - - /** NSQWriteArgs topic */ - topic?: (string|null); - } - - /** Represents a NSQWriteArgs. */ - class NSQWriteArgs implements INSQWriteArgs { - - /** - * Constructs a new NSQWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.INSQWriteArgs); - - /** NSQWriteArgs topic. */ - public topic: string; - - /** - * Creates a new NSQWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns NSQWriteArgs instance - */ - public static create(properties?: protos.args.INSQWriteArgs): protos.args.NSQWriteArgs; - - /** - * Encodes the specified NSQWriteArgs message. Does not implicitly {@link protos.args.NSQWriteArgs.verify|verify} messages. - * @param message NSQWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.INSQWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NSQWriteArgs message, length delimited. Does not implicitly {@link protos.args.NSQWriteArgs.verify|verify} messages. - * @param message NSQWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.INSQWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NSQWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NSQWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.NSQWriteArgs; - - /** - * Decodes a NSQWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NSQWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.NSQWriteArgs; - - /** - * Verifies a NSQWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a NSQWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NSQWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.NSQWriteArgs; - - /** - * Creates a plain object from a NSQWriteArgs message. Also converts values to other types if specified. - * @param message NSQWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.NSQWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NSQWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a PostgresConn. */ - interface IPostgresConn { - - /** PostgresConn address */ - address?: (string|null); - - /** PostgresConn port */ - port?: (number|null); - - /** PostgresConn username */ - username?: (string|null); - - /** PostgresConn password */ - password?: (string|null); - - /** PostgresConn database */ - database?: (string|null); - - /** PostgresConn useTls */ - useTls?: (boolean|null); - - /** PostgresConn tlsSkipVerify */ - tlsSkipVerify?: (boolean|null); - } - - /** Represents a PostgresConn. */ - class PostgresConn implements IPostgresConn { - - /** - * Constructs a new PostgresConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IPostgresConn); - - /** PostgresConn address. */ - public address: string; - - /** PostgresConn port. */ - public port: number; - - /** PostgresConn username. */ - public username: string; - - /** PostgresConn password. */ - public password: string; - - /** PostgresConn database. */ - public database: string; - - /** PostgresConn useTls. */ - public useTls: boolean; - - /** PostgresConn tlsSkipVerify. */ - public tlsSkipVerify: boolean; - - /** - * Creates a new PostgresConn instance using the specified properties. - * @param [properties] Properties to set - * @returns PostgresConn instance - */ - public static create(properties?: protos.args.IPostgresConn): protos.args.PostgresConn; - - /** - * Encodes the specified PostgresConn message. Does not implicitly {@link protos.args.PostgresConn.verify|verify} messages. - * @param message PostgresConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IPostgresConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PostgresConn message, length delimited. Does not implicitly {@link protos.args.PostgresConn.verify|verify} messages. - * @param message PostgresConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IPostgresConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PostgresConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PostgresConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.PostgresConn; - - /** - * Decodes a PostgresConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PostgresConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.PostgresConn; - - /** - * Verifies a PostgresConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PostgresConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PostgresConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.PostgresConn; - - /** - * Creates a plain object from a PostgresConn message. Also converts values to other types if specified. - * @param message PostgresConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.PostgresConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PostgresConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a PostgresReadArgs. */ - interface IPostgresReadArgs { - - /** PostgresReadArgs replicationSlotName */ - replicationSlotName?: (string|null); - - /** PostgresReadArgs publisherName */ - publisherName?: (string|null); - } - - /** Represents a PostgresReadArgs. */ - class PostgresReadArgs implements IPostgresReadArgs { - - /** - * Constructs a new PostgresReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IPostgresReadArgs); - - /** PostgresReadArgs replicationSlotName. */ - public replicationSlotName: string; - - /** PostgresReadArgs publisherName. */ - public publisherName: string; - - /** - * Creates a new PostgresReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns PostgresReadArgs instance - */ - public static create(properties?: protos.args.IPostgresReadArgs): protos.args.PostgresReadArgs; - - /** - * Encodes the specified PostgresReadArgs message. Does not implicitly {@link protos.args.PostgresReadArgs.verify|verify} messages. - * @param message PostgresReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IPostgresReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PostgresReadArgs message, length delimited. Does not implicitly {@link protos.args.PostgresReadArgs.verify|verify} messages. - * @param message PostgresReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IPostgresReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PostgresReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PostgresReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.PostgresReadArgs; - - /** - * Decodes a PostgresReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PostgresReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.PostgresReadArgs; - - /** - * Verifies a PostgresReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PostgresReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PostgresReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.PostgresReadArgs; - - /** - * Creates a plain object from a PostgresReadArgs message. Also converts values to other types if specified. - * @param message PostgresReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.PostgresReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PostgresReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** SubscriptionType enum. */ - enum SubscriptionType { - SHARED = 0, - EXCLUSIVE = 1, - FAILOVER = 2, - KEYSHARED = 3 - } - - /** SubscriptionInitialPosition enum. */ - enum SubscriptionInitialPosition { - PULSAR_LATEST = 0, - PULSAR_EARLIEST = 1 - } - - /** Properties of a PulsarConn. */ - interface IPulsarConn { - - /** PulsarConn dsn */ - dsn?: (string|null); - - /** PulsarConn connectTimeoutSeconds */ - connectTimeoutSeconds?: (number|null); - - /** PulsarConn tlsSkipVerify */ - tlsSkipVerify?: (boolean|null); - - /** PulsarConn tlsClientCert */ - tlsClientCert?: (string|null); - - /** PulsarConn tlsClientKey */ - tlsClientKey?: (string|null); - - /** PulsarConn token */ - token?: (string|null); - - /** PulsarConn listenerName */ - listenerName?: (string|null); - } - - /** Represents a PulsarConn. */ - class PulsarConn implements IPulsarConn { - - /** - * Constructs a new PulsarConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IPulsarConn); - - /** PulsarConn dsn. */ - public dsn: string; - - /** PulsarConn connectTimeoutSeconds. */ - public connectTimeoutSeconds: number; - - /** PulsarConn tlsSkipVerify. */ - public tlsSkipVerify: boolean; - - /** PulsarConn tlsClientCert. */ - public tlsClientCert: string; - - /** PulsarConn tlsClientKey. */ - public tlsClientKey: string; - - /** PulsarConn token. */ - public token: string; - - /** PulsarConn listenerName. */ - public listenerName: string; - - /** - * Creates a new PulsarConn instance using the specified properties. - * @param [properties] Properties to set - * @returns PulsarConn instance - */ - public static create(properties?: protos.args.IPulsarConn): protos.args.PulsarConn; - - /** - * Encodes the specified PulsarConn message. Does not implicitly {@link protos.args.PulsarConn.verify|verify} messages. - * @param message PulsarConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IPulsarConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PulsarConn message, length delimited. Does not implicitly {@link protos.args.PulsarConn.verify|verify} messages. - * @param message PulsarConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IPulsarConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PulsarConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PulsarConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.PulsarConn; - - /** - * Decodes a PulsarConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PulsarConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.PulsarConn; - - /** - * Verifies a PulsarConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PulsarConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PulsarConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.PulsarConn; - - /** - * Creates a plain object from a PulsarConn message. Also converts values to other types if specified. - * @param message PulsarConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.PulsarConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PulsarConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a PulsarReadArgs. */ - interface IPulsarReadArgs { - - /** PulsarReadArgs topic */ - topic?: (string|null); - - /** PulsarReadArgs subscriptionName */ - subscriptionName?: (string|null); - - /** PulsarReadArgs subscriptionType */ - subscriptionType?: (protos.args.SubscriptionType|null); - - /** PulsarReadArgs initialPosition */ - initialPosition?: (protos.args.SubscriptionInitialPosition|null); - } - - /** Represents a PulsarReadArgs. */ - class PulsarReadArgs implements IPulsarReadArgs { - - /** - * Constructs a new PulsarReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IPulsarReadArgs); - - /** PulsarReadArgs topic. */ - public topic: string; - - /** PulsarReadArgs subscriptionName. */ - public subscriptionName: string; - - /** PulsarReadArgs subscriptionType. */ - public subscriptionType: protos.args.SubscriptionType; - - /** PulsarReadArgs initialPosition. */ - public initialPosition: protos.args.SubscriptionInitialPosition; - - /** - * Creates a new PulsarReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns PulsarReadArgs instance - */ - public static create(properties?: protos.args.IPulsarReadArgs): protos.args.PulsarReadArgs; - - /** - * Encodes the specified PulsarReadArgs message. Does not implicitly {@link protos.args.PulsarReadArgs.verify|verify} messages. - * @param message PulsarReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IPulsarReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PulsarReadArgs message, length delimited. Does not implicitly {@link protos.args.PulsarReadArgs.verify|verify} messages. - * @param message PulsarReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IPulsarReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PulsarReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PulsarReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.PulsarReadArgs; - - /** - * Decodes a PulsarReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PulsarReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.PulsarReadArgs; - - /** - * Verifies a PulsarReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PulsarReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PulsarReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.PulsarReadArgs; - - /** - * Creates a plain object from a PulsarReadArgs message. Also converts values to other types if specified. - * @param message PulsarReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.PulsarReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PulsarReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a PulsarWriteArgs. */ - interface IPulsarWriteArgs { - - /** PulsarWriteArgs topic */ - topic?: (string|null); - } - - /** Represents a PulsarWriteArgs. */ - class PulsarWriteArgs implements IPulsarWriteArgs { - - /** - * Constructs a new PulsarWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IPulsarWriteArgs); - - /** PulsarWriteArgs topic. */ - public topic: string; - - /** - * Creates a new PulsarWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns PulsarWriteArgs instance - */ - public static create(properties?: protos.args.IPulsarWriteArgs): protos.args.PulsarWriteArgs; - - /** - * Encodes the specified PulsarWriteArgs message. Does not implicitly {@link protos.args.PulsarWriteArgs.verify|verify} messages. - * @param message PulsarWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IPulsarWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PulsarWriteArgs message, length delimited. Does not implicitly {@link protos.args.PulsarWriteArgs.verify|verify} messages. - * @param message PulsarWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IPulsarWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PulsarWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PulsarWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.PulsarWriteArgs; - - /** - * Decodes a PulsarWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PulsarWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.PulsarWriteArgs; - - /** - * Verifies a PulsarWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PulsarWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PulsarWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.PulsarWriteArgs; - - /** - * Creates a plain object from a PulsarWriteArgs message. Also converts values to other types if specified. - * @param message PulsarWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.PulsarWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PulsarWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RabbitConn. */ - interface IRabbitConn { - - /** RabbitConn address */ - address?: (string|null); - - /** RabbitConn useTls */ - useTls?: (boolean|null); - - /** RabbitConn tlsSkipVerify */ - tlsSkipVerify?: (boolean|null); - } - - /** Represents a RabbitConn. */ - class RabbitConn implements IRabbitConn { - - /** - * Constructs a new RabbitConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IRabbitConn); - - /** RabbitConn address. */ - public address: string; - - /** RabbitConn useTls. */ - public useTls: boolean; - - /** RabbitConn tlsSkipVerify. */ - public tlsSkipVerify: boolean; - - /** - * Creates a new RabbitConn instance using the specified properties. - * @param [properties] Properties to set - * @returns RabbitConn instance - */ - public static create(properties?: protos.args.IRabbitConn): protos.args.RabbitConn; - - /** - * Encodes the specified RabbitConn message. Does not implicitly {@link protos.args.RabbitConn.verify|verify} messages. - * @param message RabbitConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IRabbitConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RabbitConn message, length delimited. Does not implicitly {@link protos.args.RabbitConn.verify|verify} messages. - * @param message RabbitConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IRabbitConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RabbitConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RabbitConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitConn; - - /** - * Decodes a RabbitConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RabbitConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitConn; - - /** - * Verifies a RabbitConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RabbitConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RabbitConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.RabbitConn; - - /** - * Creates a plain object from a RabbitConn message. Also converts values to other types if specified. - * @param message RabbitConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.RabbitConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RabbitConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RabbitReadArgs. */ - interface IRabbitReadArgs { - - /** RabbitReadArgs exchangeName */ - exchangeName?: (string|null); - - /** RabbitReadArgs queueName */ - queueName?: (string|null); - - /** RabbitReadArgs bindingKey */ - bindingKey?: (string|null); - - /** RabbitReadArgs queueExclusive */ - queueExclusive?: (boolean|null); - - /** RabbitReadArgs queueDeclare */ - queueDeclare?: (boolean|null); - - /** RabbitReadArgs queueDurable */ - queueDurable?: (boolean|null); - - /** RabbitReadArgs autoAck */ - autoAck?: (boolean|null); - - /** RabbitReadArgs consumerTag */ - consumerTag?: (string|null); - - /** RabbitReadArgs queueDelete */ - queueDelete?: (boolean|null); - - /** RabbitReadArgs queueArg */ - queueArg?: ({ [k: string]: string }|null); - - /** RabbitReadArgs excludeBindingKeyRegex */ - excludeBindingKeyRegex?: (string|null); - } - - /** Represents a RabbitReadArgs. */ - class RabbitReadArgs implements IRabbitReadArgs { - - /** - * Constructs a new RabbitReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IRabbitReadArgs); - - /** RabbitReadArgs exchangeName. */ - public exchangeName: string; - - /** RabbitReadArgs queueName. */ - public queueName: string; - - /** RabbitReadArgs bindingKey. */ - public bindingKey: string; - - /** RabbitReadArgs queueExclusive. */ - public queueExclusive: boolean; - - /** RabbitReadArgs queueDeclare. */ - public queueDeclare: boolean; - - /** RabbitReadArgs queueDurable. */ - public queueDurable: boolean; - - /** RabbitReadArgs autoAck. */ - public autoAck: boolean; - - /** RabbitReadArgs consumerTag. */ - public consumerTag: string; - - /** RabbitReadArgs queueDelete. */ - public queueDelete: boolean; - - /** RabbitReadArgs queueArg. */ - public queueArg: { [k: string]: string }; - - /** RabbitReadArgs excludeBindingKeyRegex. */ - public excludeBindingKeyRegex: string; - - /** - * Creates a new RabbitReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns RabbitReadArgs instance - */ - public static create(properties?: protos.args.IRabbitReadArgs): protos.args.RabbitReadArgs; - - /** - * Encodes the specified RabbitReadArgs message. Does not implicitly {@link protos.args.RabbitReadArgs.verify|verify} messages. - * @param message RabbitReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IRabbitReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RabbitReadArgs message, length delimited. Does not implicitly {@link protos.args.RabbitReadArgs.verify|verify} messages. - * @param message RabbitReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IRabbitReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RabbitReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RabbitReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitReadArgs; - - /** - * Decodes a RabbitReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RabbitReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitReadArgs; - - /** - * Verifies a RabbitReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RabbitReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RabbitReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.RabbitReadArgs; - - /** - * Creates a plain object from a RabbitReadArgs message. Also converts values to other types if specified. - * @param message RabbitReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.RabbitReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RabbitReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RabbitWriteArgs. */ - interface IRabbitWriteArgs { - - /** RabbitWriteArgs exchangeName */ - exchangeName?: (string|null); - - /** RabbitWriteArgs routingKey */ - routingKey?: (string|null); - - /** RabbitWriteArgs appId */ - appId?: (string|null); - - /** RabbitWriteArgs exchangeType */ - exchangeType?: (string|null); - - /** RabbitWriteArgs exchangeDeclare */ - exchangeDeclare?: (boolean|null); - - /** RabbitWriteArgs exchangeDurable */ - exchangeDurable?: (boolean|null); - - /** RabbitWriteArgs exchangeAutoDelete */ - exchangeAutoDelete?: (boolean|null); - } - - /** Represents a RabbitWriteArgs. */ - class RabbitWriteArgs implements IRabbitWriteArgs { - - /** - * Constructs a new RabbitWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IRabbitWriteArgs); - - /** RabbitWriteArgs exchangeName. */ - public exchangeName: string; - - /** RabbitWriteArgs routingKey. */ - public routingKey: string; - - /** RabbitWriteArgs appId. */ - public appId: string; - - /** RabbitWriteArgs exchangeType. */ - public exchangeType: string; - - /** RabbitWriteArgs exchangeDeclare. */ - public exchangeDeclare: boolean; - - /** RabbitWriteArgs exchangeDurable. */ - public exchangeDurable: boolean; - - /** RabbitWriteArgs exchangeAutoDelete. */ - public exchangeAutoDelete: boolean; - - /** - * Creates a new RabbitWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns RabbitWriteArgs instance - */ - public static create(properties?: protos.args.IRabbitWriteArgs): protos.args.RabbitWriteArgs; - - /** - * Encodes the specified RabbitWriteArgs message. Does not implicitly {@link protos.args.RabbitWriteArgs.verify|verify} messages. - * @param message RabbitWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IRabbitWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RabbitWriteArgs message, length delimited. Does not implicitly {@link protos.args.RabbitWriteArgs.verify|verify} messages. - * @param message RabbitWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IRabbitWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RabbitWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RabbitWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitWriteArgs; - - /** - * Decodes a RabbitWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RabbitWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitWriteArgs; - - /** - * Verifies a RabbitWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RabbitWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RabbitWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.RabbitWriteArgs; - - /** - * Creates a plain object from a RabbitWriteArgs message. Also converts values to other types if specified. - * @param message RabbitWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.RabbitWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RabbitWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RabbitStreamsConn. */ - interface IRabbitStreamsConn { - - /** RabbitStreamsConn dsn */ - dsn?: (string|null); - - /** RabbitStreamsConn useTls */ - useTls?: (boolean|null); - - /** RabbitStreamsConn tlsSkipVerify */ - tlsSkipVerify?: (boolean|null); - - /** RabbitStreamsConn username */ - username?: (string|null); - - /** RabbitStreamsConn password */ - password?: (string|null); - - /** RabbitStreamsConn clientName */ - clientName?: (string|null); - } - - /** Represents a RabbitStreamsConn. */ - class RabbitStreamsConn implements IRabbitStreamsConn { - - /** - * Constructs a new RabbitStreamsConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IRabbitStreamsConn); - - /** RabbitStreamsConn dsn. */ - public dsn: string; - - /** RabbitStreamsConn useTls. */ - public useTls: boolean; - - /** RabbitStreamsConn tlsSkipVerify. */ - public tlsSkipVerify: boolean; - - /** RabbitStreamsConn username. */ - public username: string; - - /** RabbitStreamsConn password. */ - public password: string; - - /** RabbitStreamsConn clientName. */ - public clientName: string; - - /** - * Creates a new RabbitStreamsConn instance using the specified properties. - * @param [properties] Properties to set - * @returns RabbitStreamsConn instance - */ - public static create(properties?: protos.args.IRabbitStreamsConn): protos.args.RabbitStreamsConn; - - /** - * Encodes the specified RabbitStreamsConn message. Does not implicitly {@link protos.args.RabbitStreamsConn.verify|verify} messages. - * @param message RabbitStreamsConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IRabbitStreamsConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RabbitStreamsConn message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsConn.verify|verify} messages. - * @param message RabbitStreamsConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IRabbitStreamsConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RabbitStreamsConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RabbitStreamsConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitStreamsConn; - - /** - * Decodes a RabbitStreamsConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RabbitStreamsConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitStreamsConn; - - /** - * Verifies a RabbitStreamsConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RabbitStreamsConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RabbitStreamsConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.RabbitStreamsConn; - - /** - * Creates a plain object from a RabbitStreamsConn message. Also converts values to other types if specified. - * @param message RabbitStreamsConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.RabbitStreamsConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RabbitStreamsConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RabbitStreamsOffsetOptions. */ - interface IRabbitStreamsOffsetOptions { - - /** RabbitStreamsOffsetOptions specificOffset */ - specificOffset?: (number|Long|null); - - /** RabbitStreamsOffsetOptions lastOffset */ - lastOffset?: (boolean|null); - - /** RabbitStreamsOffsetOptions lastConsumed */ - lastConsumed?: (boolean|null); - - /** RabbitStreamsOffsetOptions firstOffset */ - firstOffset?: (boolean|null); - - /** RabbitStreamsOffsetOptions nextOffset */ - nextOffset?: (boolean|null); - } - - /** Represents a RabbitStreamsOffsetOptions. */ - class RabbitStreamsOffsetOptions implements IRabbitStreamsOffsetOptions { - - /** - * Constructs a new RabbitStreamsOffsetOptions. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IRabbitStreamsOffsetOptions); - - /** RabbitStreamsOffsetOptions specificOffset. */ - public specificOffset: (number|Long); - - /** RabbitStreamsOffsetOptions lastOffset. */ - public lastOffset: boolean; - - /** RabbitStreamsOffsetOptions lastConsumed. */ - public lastConsumed: boolean; - - /** RabbitStreamsOffsetOptions firstOffset. */ - public firstOffset: boolean; - - /** RabbitStreamsOffsetOptions nextOffset. */ - public nextOffset: boolean; - - /** - * Creates a new RabbitStreamsOffsetOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns RabbitStreamsOffsetOptions instance - */ - public static create(properties?: protos.args.IRabbitStreamsOffsetOptions): protos.args.RabbitStreamsOffsetOptions; - - /** - * Encodes the specified RabbitStreamsOffsetOptions message. Does not implicitly {@link protos.args.RabbitStreamsOffsetOptions.verify|verify} messages. - * @param message RabbitStreamsOffsetOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IRabbitStreamsOffsetOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RabbitStreamsOffsetOptions message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsOffsetOptions.verify|verify} messages. - * @param message RabbitStreamsOffsetOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IRabbitStreamsOffsetOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RabbitStreamsOffsetOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RabbitStreamsOffsetOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitStreamsOffsetOptions; - - /** - * Decodes a RabbitStreamsOffsetOptions message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RabbitStreamsOffsetOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitStreamsOffsetOptions; - - /** - * Verifies a RabbitStreamsOffsetOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RabbitStreamsOffsetOptions message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RabbitStreamsOffsetOptions - */ - public static fromObject(object: { [k: string]: any }): protos.args.RabbitStreamsOffsetOptions; - - /** - * Creates a plain object from a RabbitStreamsOffsetOptions message. Also converts values to other types if specified. - * @param message RabbitStreamsOffsetOptions - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.RabbitStreamsOffsetOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RabbitStreamsOffsetOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RabbitStreamsReadArgs. */ - interface IRabbitStreamsReadArgs { - - /** RabbitStreamsReadArgs stream */ - stream?: (string|null); - - /** RabbitStreamsReadArgs declareStream */ - declareStream?: (boolean|null); - - /** RabbitStreamsReadArgs declareStreamSize */ - declareStreamSize?: (string|null); - - /** RabbitStreamsReadArgs offsetOptions */ - offsetOptions?: (protos.args.IRabbitStreamsOffsetOptions|null); - } - - /** Represents a RabbitStreamsReadArgs. */ - class RabbitStreamsReadArgs implements IRabbitStreamsReadArgs { - - /** - * Constructs a new RabbitStreamsReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IRabbitStreamsReadArgs); - - /** RabbitStreamsReadArgs stream. */ - public stream: string; - - /** RabbitStreamsReadArgs declareStream. */ - public declareStream: boolean; - - /** RabbitStreamsReadArgs declareStreamSize. */ - public declareStreamSize: string; - - /** RabbitStreamsReadArgs offsetOptions. */ - public offsetOptions?: (protos.args.IRabbitStreamsOffsetOptions|null); - - /** - * Creates a new RabbitStreamsReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns RabbitStreamsReadArgs instance - */ - public static create(properties?: protos.args.IRabbitStreamsReadArgs): protos.args.RabbitStreamsReadArgs; - - /** - * Encodes the specified RabbitStreamsReadArgs message. Does not implicitly {@link protos.args.RabbitStreamsReadArgs.verify|verify} messages. - * @param message RabbitStreamsReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IRabbitStreamsReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RabbitStreamsReadArgs message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsReadArgs.verify|verify} messages. - * @param message RabbitStreamsReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IRabbitStreamsReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RabbitStreamsReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RabbitStreamsReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitStreamsReadArgs; - - /** - * Decodes a RabbitStreamsReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RabbitStreamsReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitStreamsReadArgs; - - /** - * Verifies a RabbitStreamsReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RabbitStreamsReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RabbitStreamsReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.RabbitStreamsReadArgs; - - /** - * Creates a plain object from a RabbitStreamsReadArgs message. Also converts values to other types if specified. - * @param message RabbitStreamsReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.RabbitStreamsReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RabbitStreamsReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RabbitStreamsWriteArgs. */ - interface IRabbitStreamsWriteArgs { - - /** RabbitStreamsWriteArgs stream */ - stream?: (string|null); - - /** RabbitStreamsWriteArgs declareStream */ - declareStream?: (boolean|null); - - /** RabbitStreamsWriteArgs declareStreamSize */ - declareStreamSize?: (string|null); - } - - /** Represents a RabbitStreamsWriteArgs. */ - class RabbitStreamsWriteArgs implements IRabbitStreamsWriteArgs { - - /** - * Constructs a new RabbitStreamsWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IRabbitStreamsWriteArgs); - - /** RabbitStreamsWriteArgs stream. */ - public stream: string; - - /** RabbitStreamsWriteArgs declareStream. */ - public declareStream: boolean; - - /** RabbitStreamsWriteArgs declareStreamSize. */ - public declareStreamSize: string; - - /** - * Creates a new RabbitStreamsWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns RabbitStreamsWriteArgs instance - */ - public static create(properties?: protos.args.IRabbitStreamsWriteArgs): protos.args.RabbitStreamsWriteArgs; - - /** - * Encodes the specified RabbitStreamsWriteArgs message. Does not implicitly {@link protos.args.RabbitStreamsWriteArgs.verify|verify} messages. - * @param message RabbitStreamsWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IRabbitStreamsWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RabbitStreamsWriteArgs message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsWriteArgs.verify|verify} messages. - * @param message RabbitStreamsWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IRabbitStreamsWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RabbitStreamsWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RabbitStreamsWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RabbitStreamsWriteArgs; - - /** - * Decodes a RabbitStreamsWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RabbitStreamsWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RabbitStreamsWriteArgs; - - /** - * Verifies a RabbitStreamsWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RabbitStreamsWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RabbitStreamsWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.RabbitStreamsWriteArgs; - - /** - * Creates a plain object from a RabbitStreamsWriteArgs message. Also converts values to other types if specified. - * @param message RabbitStreamsWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.RabbitStreamsWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RabbitStreamsWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RedisPubSubConn. */ - interface IRedisPubSubConn { - - /** RedisPubSubConn address */ - address?: (string|null); - - /** RedisPubSubConn username */ - username?: (string|null); - - /** RedisPubSubConn password */ - password?: (string|null); - - /** RedisPubSubConn database */ - database?: (number|null); - } - - /** Represents a RedisPubSubConn. */ - class RedisPubSubConn implements IRedisPubSubConn { - - /** - * Constructs a new RedisPubSubConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IRedisPubSubConn); - - /** RedisPubSubConn address. */ - public address: string; - - /** RedisPubSubConn username. */ - public username: string; - - /** RedisPubSubConn password. */ - public password: string; - - /** RedisPubSubConn database. */ - public database: number; - - /** - * Creates a new RedisPubSubConn instance using the specified properties. - * @param [properties] Properties to set - * @returns RedisPubSubConn instance - */ - public static create(properties?: protos.args.IRedisPubSubConn): protos.args.RedisPubSubConn; - - /** - * Encodes the specified RedisPubSubConn message. Does not implicitly {@link protos.args.RedisPubSubConn.verify|verify} messages. - * @param message RedisPubSubConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IRedisPubSubConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RedisPubSubConn message, length delimited. Does not implicitly {@link protos.args.RedisPubSubConn.verify|verify} messages. - * @param message RedisPubSubConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IRedisPubSubConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RedisPubSubConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RedisPubSubConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RedisPubSubConn; - - /** - * Decodes a RedisPubSubConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RedisPubSubConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RedisPubSubConn; - - /** - * Verifies a RedisPubSubConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RedisPubSubConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RedisPubSubConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.RedisPubSubConn; - - /** - * Creates a plain object from a RedisPubSubConn message. Also converts values to other types if specified. - * @param message RedisPubSubConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.RedisPubSubConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RedisPubSubConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RedisPubSubReadArgs. */ - interface IRedisPubSubReadArgs { - - /** RedisPubSubReadArgs channels */ - channels?: (string[]|null); - } - - /** Represents a RedisPubSubReadArgs. */ - class RedisPubSubReadArgs implements IRedisPubSubReadArgs { - - /** - * Constructs a new RedisPubSubReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IRedisPubSubReadArgs); - - /** RedisPubSubReadArgs channels. */ - public channels: string[]; - - /** - * Creates a new RedisPubSubReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns RedisPubSubReadArgs instance - */ - public static create(properties?: protos.args.IRedisPubSubReadArgs): protos.args.RedisPubSubReadArgs; - - /** - * Encodes the specified RedisPubSubReadArgs message. Does not implicitly {@link protos.args.RedisPubSubReadArgs.verify|verify} messages. - * @param message RedisPubSubReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IRedisPubSubReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RedisPubSubReadArgs message, length delimited. Does not implicitly {@link protos.args.RedisPubSubReadArgs.verify|verify} messages. - * @param message RedisPubSubReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IRedisPubSubReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RedisPubSubReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RedisPubSubReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RedisPubSubReadArgs; - - /** - * Decodes a RedisPubSubReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RedisPubSubReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RedisPubSubReadArgs; - - /** - * Verifies a RedisPubSubReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RedisPubSubReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RedisPubSubReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.RedisPubSubReadArgs; - - /** - * Creates a plain object from a RedisPubSubReadArgs message. Also converts values to other types if specified. - * @param message RedisPubSubReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.RedisPubSubReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RedisPubSubReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RedisPubSubWriteArgs. */ - interface IRedisPubSubWriteArgs { - - /** RedisPubSubWriteArgs channels */ - channels?: (string[]|null); - } - - /** Represents a RedisPubSubWriteArgs. */ - class RedisPubSubWriteArgs implements IRedisPubSubWriteArgs { - - /** - * Constructs a new RedisPubSubWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IRedisPubSubWriteArgs); - - /** RedisPubSubWriteArgs channels. */ - public channels: string[]; - - /** - * Creates a new RedisPubSubWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns RedisPubSubWriteArgs instance - */ - public static create(properties?: protos.args.IRedisPubSubWriteArgs): protos.args.RedisPubSubWriteArgs; - - /** - * Encodes the specified RedisPubSubWriteArgs message. Does not implicitly {@link protos.args.RedisPubSubWriteArgs.verify|verify} messages. - * @param message RedisPubSubWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IRedisPubSubWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RedisPubSubWriteArgs message, length delimited. Does not implicitly {@link protos.args.RedisPubSubWriteArgs.verify|verify} messages. - * @param message RedisPubSubWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IRedisPubSubWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RedisPubSubWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RedisPubSubWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RedisPubSubWriteArgs; - - /** - * Decodes a RedisPubSubWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RedisPubSubWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RedisPubSubWriteArgs; - - /** - * Verifies a RedisPubSubWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RedisPubSubWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RedisPubSubWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.RedisPubSubWriteArgs; - - /** - * Creates a plain object from a RedisPubSubWriteArgs message. Also converts values to other types if specified. - * @param message RedisPubSubWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.RedisPubSubWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RedisPubSubWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** OffsetStart enum. */ - enum OffsetStart { - LATEST = 0, - OLDEST = 1 - } - - /** Properties of a RedisStreamsConn. */ - interface IRedisStreamsConn { - - /** RedisStreamsConn address */ - address?: (string|null); - - /** RedisStreamsConn username */ - username?: (string|null); - - /** RedisStreamsConn password */ - password?: (string|null); - - /** RedisStreamsConn database */ - database?: (number|null); - } - - /** Represents a RedisStreamsConn. */ - class RedisStreamsConn implements IRedisStreamsConn { - - /** - * Constructs a new RedisStreamsConn. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IRedisStreamsConn); - - /** RedisStreamsConn address. */ - public address: string; - - /** RedisStreamsConn username. */ - public username: string; - - /** RedisStreamsConn password. */ - public password: string; - - /** RedisStreamsConn database. */ - public database: number; - - /** - * Creates a new RedisStreamsConn instance using the specified properties. - * @param [properties] Properties to set - * @returns RedisStreamsConn instance - */ - public static create(properties?: protos.args.IRedisStreamsConn): protos.args.RedisStreamsConn; - - /** - * Encodes the specified RedisStreamsConn message. Does not implicitly {@link protos.args.RedisStreamsConn.verify|verify} messages. - * @param message RedisStreamsConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IRedisStreamsConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RedisStreamsConn message, length delimited. Does not implicitly {@link protos.args.RedisStreamsConn.verify|verify} messages. - * @param message RedisStreamsConn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IRedisStreamsConn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RedisStreamsConn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RedisStreamsConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RedisStreamsConn; - - /** - * Decodes a RedisStreamsConn message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RedisStreamsConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RedisStreamsConn; - - /** - * Verifies a RedisStreamsConn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RedisStreamsConn message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RedisStreamsConn - */ - public static fromObject(object: { [k: string]: any }): protos.args.RedisStreamsConn; - - /** - * Creates a plain object from a RedisStreamsConn message. Also converts values to other types if specified. - * @param message RedisStreamsConn - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.RedisStreamsConn, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RedisStreamsConn to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CreateConsumerConfig. */ - interface ICreateConsumerConfig { - - /** CreateConsumerConfig createStreams */ - createStreams?: (boolean|null); - - /** CreateConsumerConfig recreateConsumerGroup */ - recreateConsumerGroup?: (boolean|null); - - /** CreateConsumerConfig offsetStart */ - offsetStart?: (protos.args.OffsetStart|null); - } - - /** Represents a CreateConsumerConfig. */ - class CreateConsumerConfig implements ICreateConsumerConfig { - - /** - * Constructs a new CreateConsumerConfig. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.ICreateConsumerConfig); - - /** CreateConsumerConfig createStreams. */ - public createStreams: boolean; - - /** CreateConsumerConfig recreateConsumerGroup. */ - public recreateConsumerGroup: boolean; - - /** CreateConsumerConfig offsetStart. */ - public offsetStart: protos.args.OffsetStart; - - /** - * Creates a new CreateConsumerConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateConsumerConfig instance - */ - public static create(properties?: protos.args.ICreateConsumerConfig): protos.args.CreateConsumerConfig; - - /** - * Encodes the specified CreateConsumerConfig message. Does not implicitly {@link protos.args.CreateConsumerConfig.verify|verify} messages. - * @param message CreateConsumerConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.ICreateConsumerConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateConsumerConfig message, length delimited. Does not implicitly {@link protos.args.CreateConsumerConfig.verify|verify} messages. - * @param message CreateConsumerConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.ICreateConsumerConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateConsumerConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateConsumerConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.CreateConsumerConfig; - - /** - * Decodes a CreateConsumerConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateConsumerConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.CreateConsumerConfig; - - /** - * Verifies a CreateConsumerConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateConsumerConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateConsumerConfig - */ - public static fromObject(object: { [k: string]: any }): protos.args.CreateConsumerConfig; - - /** - * Creates a plain object from a CreateConsumerConfig message. Also converts values to other types if specified. - * @param message CreateConsumerConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.CreateConsumerConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateConsumerConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RedisStreamsReadArgs. */ - interface IRedisStreamsReadArgs { - - /** RedisStreamsReadArgs streams */ - streams?: (string[]|null); - - /** RedisStreamsReadArgs consumerGroup */ - consumerGroup?: (string|null); - - /** RedisStreamsReadArgs consumerName */ - consumerName?: (string|null); - - /** RedisStreamsReadArgs count */ - count?: (number|null); - - /** RedisStreamsReadArgs createConsumerConfig */ - createConsumerConfig?: (protos.args.ICreateConsumerConfig|null); - } - - /** Represents a RedisStreamsReadArgs. */ - class RedisStreamsReadArgs implements IRedisStreamsReadArgs { - - /** - * Constructs a new RedisStreamsReadArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IRedisStreamsReadArgs); - - /** RedisStreamsReadArgs streams. */ - public streams: string[]; - - /** RedisStreamsReadArgs consumerGroup. */ - public consumerGroup: string; - - /** RedisStreamsReadArgs consumerName. */ - public consumerName: string; - - /** RedisStreamsReadArgs count. */ - public count: number; - - /** RedisStreamsReadArgs createConsumerConfig. */ - public createConsumerConfig?: (protos.args.ICreateConsumerConfig|null); - - /** - * Creates a new RedisStreamsReadArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns RedisStreamsReadArgs instance - */ - public static create(properties?: protos.args.IRedisStreamsReadArgs): protos.args.RedisStreamsReadArgs; - - /** - * Encodes the specified RedisStreamsReadArgs message. Does not implicitly {@link protos.args.RedisStreamsReadArgs.verify|verify} messages. - * @param message RedisStreamsReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IRedisStreamsReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RedisStreamsReadArgs message, length delimited. Does not implicitly {@link protos.args.RedisStreamsReadArgs.verify|verify} messages. - * @param message RedisStreamsReadArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IRedisStreamsReadArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RedisStreamsReadArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RedisStreamsReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RedisStreamsReadArgs; - - /** - * Decodes a RedisStreamsReadArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RedisStreamsReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RedisStreamsReadArgs; - - /** - * Verifies a RedisStreamsReadArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RedisStreamsReadArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RedisStreamsReadArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.RedisStreamsReadArgs; - - /** - * Creates a plain object from a RedisStreamsReadArgs message. Also converts values to other types if specified. - * @param message RedisStreamsReadArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.RedisStreamsReadArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RedisStreamsReadArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a RedisStreamsWriteArgs. */ - interface IRedisStreamsWriteArgs { - - /** RedisStreamsWriteArgs writeId */ - writeId?: (string|null); - - /** RedisStreamsWriteArgs streams */ - streams?: (string[]|null); - - /** RedisStreamsWriteArgs key */ - key?: (string|null); - } - - /** Represents a RedisStreamsWriteArgs. */ - class RedisStreamsWriteArgs implements IRedisStreamsWriteArgs { - - /** - * Constructs a new RedisStreamsWriteArgs. - * @param [properties] Properties to set - */ - constructor(properties?: protos.args.IRedisStreamsWriteArgs); - - /** RedisStreamsWriteArgs writeId. */ - public writeId: string; - - /** RedisStreamsWriteArgs streams. */ - public streams: string[]; - - /** RedisStreamsWriteArgs key. */ - public key: string; - - /** - * Creates a new RedisStreamsWriteArgs instance using the specified properties. - * @param [properties] Properties to set - * @returns RedisStreamsWriteArgs instance - */ - public static create(properties?: protos.args.IRedisStreamsWriteArgs): protos.args.RedisStreamsWriteArgs; - - /** - * Encodes the specified RedisStreamsWriteArgs message. Does not implicitly {@link protos.args.RedisStreamsWriteArgs.verify|verify} messages. - * @param message RedisStreamsWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.args.IRedisStreamsWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RedisStreamsWriteArgs message, length delimited. Does not implicitly {@link protos.args.RedisStreamsWriteArgs.verify|verify} messages. - * @param message RedisStreamsWriteArgs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.args.IRedisStreamsWriteArgs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RedisStreamsWriteArgs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RedisStreamsWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.args.RedisStreamsWriteArgs; - - /** - * Decodes a RedisStreamsWriteArgs message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RedisStreamsWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.args.RedisStreamsWriteArgs; - - /** - * Verifies a RedisStreamsWriteArgs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RedisStreamsWriteArgs message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RedisStreamsWriteArgs - */ - public static fromObject(object: { [k: string]: any }): protos.args.RedisStreamsWriteArgs; - - /** - * Creates a plain object from a RedisStreamsWriteArgs message. Also converts values to other types if specified. - * @param message RedisStreamsWriteArgs - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.args.RedisStreamsWriteArgs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RedisStreamsWriteArgs to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a GetAllRelaysRequest. */ - interface IGetAllRelaysRequest { - - /** GetAllRelaysRequest auth */ - auth?: (protos.common.IAuth|null); - } - - /** Represents a GetAllRelaysRequest. */ - class GetAllRelaysRequest implements IGetAllRelaysRequest { - - /** - * Constructs a new GetAllRelaysRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetAllRelaysRequest); - - /** GetAllRelaysRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** - * Creates a new GetAllRelaysRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAllRelaysRequest instance - */ - public static create(properties?: protos.IGetAllRelaysRequest): protos.GetAllRelaysRequest; - - /** - * Encodes the specified GetAllRelaysRequest message. Does not implicitly {@link protos.GetAllRelaysRequest.verify|verify} messages. - * @param message GetAllRelaysRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetAllRelaysRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetAllRelaysRequest message, length delimited. Does not implicitly {@link protos.GetAllRelaysRequest.verify|verify} messages. - * @param message GetAllRelaysRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetAllRelaysRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAllRelaysRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAllRelaysRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetAllRelaysRequest; - - /** - * Decodes a GetAllRelaysRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAllRelaysRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetAllRelaysRequest; - - /** - * Verifies a GetAllRelaysRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetAllRelaysRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetAllRelaysRequest - */ - public static fromObject(object: { [k: string]: any }): protos.GetAllRelaysRequest; - - /** - * Creates a plain object from a GetAllRelaysRequest message. Also converts values to other types if specified. - * @param message GetAllRelaysRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetAllRelaysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetAllRelaysRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetAllRelaysResponse. */ - interface IGetAllRelaysResponse { - - /** GetAllRelaysResponse status */ - status?: (protos.common.IStatus|null); - - /** GetAllRelaysResponse opts */ - opts?: (protos.opts.IRelayOptions[]|null); - } - - /** Represents a GetAllRelaysResponse. */ - class GetAllRelaysResponse implements IGetAllRelaysResponse { - - /** - * Constructs a new GetAllRelaysResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetAllRelaysResponse); - - /** GetAllRelaysResponse status. */ - public status?: (protos.common.IStatus|null); - - /** GetAllRelaysResponse opts. */ - public opts: protos.opts.IRelayOptions[]; - - /** - * Creates a new GetAllRelaysResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAllRelaysResponse instance - */ - public static create(properties?: protos.IGetAllRelaysResponse): protos.GetAllRelaysResponse; - - /** - * Encodes the specified GetAllRelaysResponse message. Does not implicitly {@link protos.GetAllRelaysResponse.verify|verify} messages. - * @param message GetAllRelaysResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetAllRelaysResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetAllRelaysResponse message, length delimited. Does not implicitly {@link protos.GetAllRelaysResponse.verify|verify} messages. - * @param message GetAllRelaysResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetAllRelaysResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAllRelaysResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAllRelaysResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetAllRelaysResponse; - - /** - * Decodes a GetAllRelaysResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAllRelaysResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetAllRelaysResponse; - - /** - * Verifies a GetAllRelaysResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetAllRelaysResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetAllRelaysResponse - */ - public static fromObject(object: { [k: string]: any }): protos.GetAllRelaysResponse; - - /** - * Creates a plain object from a GetAllRelaysResponse message. Also converts values to other types if specified. - * @param message GetAllRelaysResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetAllRelaysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetAllRelaysResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetRelayRequest. */ - interface IGetRelayRequest { - - /** GetRelayRequest auth */ - auth?: (protos.common.IAuth|null); - - /** GetRelayRequest relayId */ - relayId?: (string|null); - } - - /** Represents a GetRelayRequest. */ - class GetRelayRequest implements IGetRelayRequest { - - /** - * Constructs a new GetRelayRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetRelayRequest); - - /** GetRelayRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** GetRelayRequest relayId. */ - public relayId: string; - - /** - * Creates a new GetRelayRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetRelayRequest instance - */ - public static create(properties?: protos.IGetRelayRequest): protos.GetRelayRequest; - - /** - * Encodes the specified GetRelayRequest message. Does not implicitly {@link protos.GetRelayRequest.verify|verify} messages. - * @param message GetRelayRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetRelayRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetRelayRequest message, length delimited. Does not implicitly {@link protos.GetRelayRequest.verify|verify} messages. - * @param message GetRelayRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetRelayRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetRelayRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetRelayRequest; - - /** - * Decodes a GetRelayRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetRelayRequest; - - /** - * Verifies a GetRelayRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetRelayRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetRelayRequest - */ - public static fromObject(object: { [k: string]: any }): protos.GetRelayRequest; - - /** - * Creates a plain object from a GetRelayRequest message. Also converts values to other types if specified. - * @param message GetRelayRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetRelayRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetRelayRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetRelayResponse. */ - interface IGetRelayResponse { - - /** GetRelayResponse status */ - status?: (protos.common.IStatus|null); - - /** GetRelayResponse opts */ - opts?: (protos.opts.IRelayOptions|null); - } - - /** Represents a GetRelayResponse. */ - class GetRelayResponse implements IGetRelayResponse { - - /** - * Constructs a new GetRelayResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetRelayResponse); - - /** GetRelayResponse status. */ - public status?: (protos.common.IStatus|null); - - /** GetRelayResponse opts. */ - public opts?: (protos.opts.IRelayOptions|null); - - /** - * Creates a new GetRelayResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetRelayResponse instance - */ - public static create(properties?: protos.IGetRelayResponse): protos.GetRelayResponse; - - /** - * Encodes the specified GetRelayResponse message. Does not implicitly {@link protos.GetRelayResponse.verify|verify} messages. - * @param message GetRelayResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetRelayResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetRelayResponse message, length delimited. Does not implicitly {@link protos.GetRelayResponse.verify|verify} messages. - * @param message GetRelayResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetRelayResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetRelayResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetRelayResponse; - - /** - * Decodes a GetRelayResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetRelayResponse; - - /** - * Verifies a GetRelayResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetRelayResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetRelayResponse - */ - public static fromObject(object: { [k: string]: any }): protos.GetRelayResponse; - - /** - * Creates a plain object from a GetRelayResponse message. Also converts values to other types if specified. - * @param message GetRelayResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetRelayResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetRelayResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CreateRelayRequest. */ - interface ICreateRelayRequest { - - /** CreateRelayRequest auth */ - auth?: (protos.common.IAuth|null); - - /** CreateRelayRequest opts */ - opts?: (protos.opts.IRelayOptions|null); - } - - /** Represents a CreateRelayRequest. */ - class CreateRelayRequest implements ICreateRelayRequest { - - /** - * Constructs a new CreateRelayRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.ICreateRelayRequest); - - /** CreateRelayRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** CreateRelayRequest opts. */ - public opts?: (protos.opts.IRelayOptions|null); - - /** - * Creates a new CreateRelayRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateRelayRequest instance - */ - public static create(properties?: protos.ICreateRelayRequest): protos.CreateRelayRequest; - - /** - * Encodes the specified CreateRelayRequest message. Does not implicitly {@link protos.CreateRelayRequest.verify|verify} messages. - * @param message CreateRelayRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.ICreateRelayRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateRelayRequest message, length delimited. Does not implicitly {@link protos.CreateRelayRequest.verify|verify} messages. - * @param message CreateRelayRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.ICreateRelayRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateRelayRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.CreateRelayRequest; - - /** - * Decodes a CreateRelayRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.CreateRelayRequest; - - /** - * Verifies a CreateRelayRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateRelayRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateRelayRequest - */ - public static fromObject(object: { [k: string]: any }): protos.CreateRelayRequest; - - /** - * Creates a plain object from a CreateRelayRequest message. Also converts values to other types if specified. - * @param message CreateRelayRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.CreateRelayRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateRelayRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CreateRelayResponse. */ - interface ICreateRelayResponse { - - /** CreateRelayResponse status */ - status?: (protos.common.IStatus|null); - - /** CreateRelayResponse relayId */ - relayId?: (string|null); - } - - /** Represents a CreateRelayResponse. */ - class CreateRelayResponse implements ICreateRelayResponse { - - /** - * Constructs a new CreateRelayResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.ICreateRelayResponse); - - /** CreateRelayResponse status. */ - public status?: (protos.common.IStatus|null); - - /** CreateRelayResponse relayId. */ - public relayId: string; - - /** - * Creates a new CreateRelayResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateRelayResponse instance - */ - public static create(properties?: protos.ICreateRelayResponse): protos.CreateRelayResponse; - - /** - * Encodes the specified CreateRelayResponse message. Does not implicitly {@link protos.CreateRelayResponse.verify|verify} messages. - * @param message CreateRelayResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.ICreateRelayResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateRelayResponse message, length delimited. Does not implicitly {@link protos.CreateRelayResponse.verify|verify} messages. - * @param message CreateRelayResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.ICreateRelayResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateRelayResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.CreateRelayResponse; - - /** - * Decodes a CreateRelayResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.CreateRelayResponse; - - /** - * Verifies a CreateRelayResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateRelayResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateRelayResponse - */ - public static fromObject(object: { [k: string]: any }): protos.CreateRelayResponse; - - /** - * Creates a plain object from a CreateRelayResponse message. Also converts values to other types if specified. - * @param message CreateRelayResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.CreateRelayResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateRelayResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UpdateRelayRequest. */ - interface IUpdateRelayRequest { - - /** UpdateRelayRequest auth */ - auth?: (protos.common.IAuth|null); - - /** UpdateRelayRequest relayId */ - relayId?: (string|null); - - /** UpdateRelayRequest opts */ - opts?: (protos.opts.IRelayOptions|null); - } - - /** Represents an UpdateRelayRequest. */ - class UpdateRelayRequest implements IUpdateRelayRequest { - - /** - * Constructs a new UpdateRelayRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IUpdateRelayRequest); - - /** UpdateRelayRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** UpdateRelayRequest relayId. */ - public relayId: string; - - /** UpdateRelayRequest opts. */ - public opts?: (protos.opts.IRelayOptions|null); - - /** - * Creates a new UpdateRelayRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateRelayRequest instance - */ - public static create(properties?: protos.IUpdateRelayRequest): protos.UpdateRelayRequest; - - /** - * Encodes the specified UpdateRelayRequest message. Does not implicitly {@link protos.UpdateRelayRequest.verify|verify} messages. - * @param message UpdateRelayRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IUpdateRelayRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateRelayRequest message, length delimited. Does not implicitly {@link protos.UpdateRelayRequest.verify|verify} messages. - * @param message UpdateRelayRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IUpdateRelayRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateRelayRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.UpdateRelayRequest; - - /** - * Decodes an UpdateRelayRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.UpdateRelayRequest; - - /** - * Verifies an UpdateRelayRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateRelayRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateRelayRequest - */ - public static fromObject(object: { [k: string]: any }): protos.UpdateRelayRequest; - - /** - * Creates a plain object from an UpdateRelayRequest message. Also converts values to other types if specified. - * @param message UpdateRelayRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.UpdateRelayRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateRelayRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UpdateRelayResponse. */ - interface IUpdateRelayResponse { - - /** UpdateRelayResponse status */ - status?: (protos.common.IStatus|null); - } - - /** Represents an UpdateRelayResponse. */ - class UpdateRelayResponse implements IUpdateRelayResponse { - - /** - * Constructs a new UpdateRelayResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IUpdateRelayResponse); - - /** UpdateRelayResponse status. */ - public status?: (protos.common.IStatus|null); - - /** - * Creates a new UpdateRelayResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateRelayResponse instance - */ - public static create(properties?: protos.IUpdateRelayResponse): protos.UpdateRelayResponse; - - /** - * Encodes the specified UpdateRelayResponse message. Does not implicitly {@link protos.UpdateRelayResponse.verify|verify} messages. - * @param message UpdateRelayResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IUpdateRelayResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateRelayResponse message, length delimited. Does not implicitly {@link protos.UpdateRelayResponse.verify|verify} messages. - * @param message UpdateRelayResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IUpdateRelayResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateRelayResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.UpdateRelayResponse; - - /** - * Decodes an UpdateRelayResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.UpdateRelayResponse; - - /** - * Verifies an UpdateRelayResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateRelayResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateRelayResponse - */ - public static fromObject(object: { [k: string]: any }): protos.UpdateRelayResponse; - - /** - * Creates a plain object from an UpdateRelayResponse message. Also converts values to other types if specified. - * @param message UpdateRelayResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.UpdateRelayResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateRelayResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ResumeRelayRequest. */ - interface IResumeRelayRequest { - - /** ResumeRelayRequest auth */ - auth?: (protos.common.IAuth|null); - - /** ResumeRelayRequest relayId */ - relayId?: (string|null); - } - - /** Represents a ResumeRelayRequest. */ - class ResumeRelayRequest implements IResumeRelayRequest { - - /** - * Constructs a new ResumeRelayRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IResumeRelayRequest); - - /** ResumeRelayRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** ResumeRelayRequest relayId. */ - public relayId: string; - - /** - * Creates a new ResumeRelayRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ResumeRelayRequest instance - */ - public static create(properties?: protos.IResumeRelayRequest): protos.ResumeRelayRequest; - - /** - * Encodes the specified ResumeRelayRequest message. Does not implicitly {@link protos.ResumeRelayRequest.verify|verify} messages. - * @param message ResumeRelayRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IResumeRelayRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ResumeRelayRequest message, length delimited. Does not implicitly {@link protos.ResumeRelayRequest.verify|verify} messages. - * @param message ResumeRelayRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IResumeRelayRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResumeRelayRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResumeRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.ResumeRelayRequest; - - /** - * Decodes a ResumeRelayRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResumeRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.ResumeRelayRequest; - - /** - * Verifies a ResumeRelayRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ResumeRelayRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResumeRelayRequest - */ - public static fromObject(object: { [k: string]: any }): protos.ResumeRelayRequest; - - /** - * Creates a plain object from a ResumeRelayRequest message. Also converts values to other types if specified. - * @param message ResumeRelayRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.ResumeRelayRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ResumeRelayRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ResumeRelayResponse. */ - interface IResumeRelayResponse { - - /** ResumeRelayResponse status */ - status?: (protos.common.IStatus|null); - } - - /** Represents a ResumeRelayResponse. */ - class ResumeRelayResponse implements IResumeRelayResponse { - - /** - * Constructs a new ResumeRelayResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IResumeRelayResponse); - - /** ResumeRelayResponse status. */ - public status?: (protos.common.IStatus|null); - - /** - * Creates a new ResumeRelayResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ResumeRelayResponse instance - */ - public static create(properties?: protos.IResumeRelayResponse): protos.ResumeRelayResponse; - - /** - * Encodes the specified ResumeRelayResponse message. Does not implicitly {@link protos.ResumeRelayResponse.verify|verify} messages. - * @param message ResumeRelayResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IResumeRelayResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ResumeRelayResponse message, length delimited. Does not implicitly {@link protos.ResumeRelayResponse.verify|verify} messages. - * @param message ResumeRelayResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IResumeRelayResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResumeRelayResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResumeRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.ResumeRelayResponse; - - /** - * Decodes a ResumeRelayResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResumeRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.ResumeRelayResponse; - - /** - * Verifies a ResumeRelayResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ResumeRelayResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResumeRelayResponse - */ - public static fromObject(object: { [k: string]: any }): protos.ResumeRelayResponse; - - /** - * Creates a plain object from a ResumeRelayResponse message. Also converts values to other types if specified. - * @param message ResumeRelayResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.ResumeRelayResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ResumeRelayResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StopRelayRequest. */ - interface IStopRelayRequest { - - /** StopRelayRequest auth */ - auth?: (protos.common.IAuth|null); - - /** StopRelayRequest relayId */ - relayId?: (string|null); - } - - /** Represents a StopRelayRequest. */ - class StopRelayRequest implements IStopRelayRequest { - - /** - * Constructs a new StopRelayRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IStopRelayRequest); - - /** StopRelayRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** StopRelayRequest relayId. */ - public relayId: string; - - /** - * Creates a new StopRelayRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StopRelayRequest instance - */ - public static create(properties?: protos.IStopRelayRequest): protos.StopRelayRequest; - - /** - * Encodes the specified StopRelayRequest message. Does not implicitly {@link protos.StopRelayRequest.verify|verify} messages. - * @param message StopRelayRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IStopRelayRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StopRelayRequest message, length delimited. Does not implicitly {@link protos.StopRelayRequest.verify|verify} messages. - * @param message StopRelayRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IStopRelayRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StopRelayRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StopRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.StopRelayRequest; - - /** - * Decodes a StopRelayRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StopRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.StopRelayRequest; - - /** - * Verifies a StopRelayRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StopRelayRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StopRelayRequest - */ - public static fromObject(object: { [k: string]: any }): protos.StopRelayRequest; - - /** - * Creates a plain object from a StopRelayRequest message. Also converts values to other types if specified. - * @param message StopRelayRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.StopRelayRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StopRelayRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StopRelayResponse. */ - interface IStopRelayResponse { - - /** StopRelayResponse status */ - status?: (protos.common.IStatus|null); - } - - /** Represents a StopRelayResponse. */ - class StopRelayResponse implements IStopRelayResponse { - - /** - * Constructs a new StopRelayResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IStopRelayResponse); - - /** StopRelayResponse status. */ - public status?: (protos.common.IStatus|null); - - /** - * Creates a new StopRelayResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StopRelayResponse instance - */ - public static create(properties?: protos.IStopRelayResponse): protos.StopRelayResponse; - - /** - * Encodes the specified StopRelayResponse message. Does not implicitly {@link protos.StopRelayResponse.verify|verify} messages. - * @param message StopRelayResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IStopRelayResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StopRelayResponse message, length delimited. Does not implicitly {@link protos.StopRelayResponse.verify|verify} messages. - * @param message StopRelayResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IStopRelayResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StopRelayResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StopRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.StopRelayResponse; - - /** - * Decodes a StopRelayResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StopRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.StopRelayResponse; - - /** - * Verifies a StopRelayResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StopRelayResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StopRelayResponse - */ - public static fromObject(object: { [k: string]: any }): protos.StopRelayResponse; - - /** - * Creates a plain object from a StopRelayResponse message. Also converts values to other types if specified. - * @param message StopRelayResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.StopRelayResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StopRelayResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DeleteRelayRequest. */ - interface IDeleteRelayRequest { - - /** DeleteRelayRequest auth */ - auth?: (protos.common.IAuth|null); - - /** DeleteRelayRequest relayId */ - relayId?: (string|null); - } - - /** Represents a DeleteRelayRequest. */ - class DeleteRelayRequest implements IDeleteRelayRequest { - - /** - * Constructs a new DeleteRelayRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IDeleteRelayRequest); - - /** DeleteRelayRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** DeleteRelayRequest relayId. */ - public relayId: string; - - /** - * Creates a new DeleteRelayRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteRelayRequest instance - */ - public static create(properties?: protos.IDeleteRelayRequest): protos.DeleteRelayRequest; - - /** - * Encodes the specified DeleteRelayRequest message. Does not implicitly {@link protos.DeleteRelayRequest.verify|verify} messages. - * @param message DeleteRelayRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IDeleteRelayRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteRelayRequest message, length delimited. Does not implicitly {@link protos.DeleteRelayRequest.verify|verify} messages. - * @param message DeleteRelayRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IDeleteRelayRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteRelayRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.DeleteRelayRequest; - - /** - * Decodes a DeleteRelayRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.DeleteRelayRequest; - - /** - * Verifies a DeleteRelayRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteRelayRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteRelayRequest - */ - public static fromObject(object: { [k: string]: any }): protos.DeleteRelayRequest; - - /** - * Creates a plain object from a DeleteRelayRequest message. Also converts values to other types if specified. - * @param message DeleteRelayRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.DeleteRelayRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteRelayRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DeleteRelayResponse. */ - interface IDeleteRelayResponse { - - /** DeleteRelayResponse status */ - status?: (protos.common.IStatus|null); - } - - /** Represents a DeleteRelayResponse. */ - class DeleteRelayResponse implements IDeleteRelayResponse { - - /** - * Constructs a new DeleteRelayResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IDeleteRelayResponse); - - /** DeleteRelayResponse status. */ - public status?: (protos.common.IStatus|null); - - /** - * Creates a new DeleteRelayResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteRelayResponse instance - */ - public static create(properties?: protos.IDeleteRelayResponse): protos.DeleteRelayResponse; - - /** - * Encodes the specified DeleteRelayResponse message. Does not implicitly {@link protos.DeleteRelayResponse.verify|verify} messages. - * @param message DeleteRelayResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IDeleteRelayResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteRelayResponse message, length delimited. Does not implicitly {@link protos.DeleteRelayResponse.verify|verify} messages. - * @param message DeleteRelayResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IDeleteRelayResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteRelayResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.DeleteRelayResponse; - - /** - * Decodes a DeleteRelayResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.DeleteRelayResponse; - - /** - * Verifies a DeleteRelayResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteRelayResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteRelayResponse - */ - public static fromObject(object: { [k: string]: any }): protos.DeleteRelayResponse; - - /** - * Creates a plain object from a DeleteRelayResponse message. Also converts values to other types if specified. - * @param message DeleteRelayResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.DeleteRelayResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteRelayResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetServerOptionsRequest. */ - interface IGetServerOptionsRequest { - - /** GetServerOptionsRequest auth */ - auth?: (protos.common.IAuth|null); - } - - /** Represents a GetServerOptionsRequest. */ - class GetServerOptionsRequest implements IGetServerOptionsRequest { - - /** - * Constructs a new GetServerOptionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetServerOptionsRequest); - - /** GetServerOptionsRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** - * Creates a new GetServerOptionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetServerOptionsRequest instance - */ - public static create(properties?: protos.IGetServerOptionsRequest): protos.GetServerOptionsRequest; - - /** - * Encodes the specified GetServerOptionsRequest message. Does not implicitly {@link protos.GetServerOptionsRequest.verify|verify} messages. - * @param message GetServerOptionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetServerOptionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetServerOptionsRequest message, length delimited. Does not implicitly {@link protos.GetServerOptionsRequest.verify|verify} messages. - * @param message GetServerOptionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetServerOptionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetServerOptionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetServerOptionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetServerOptionsRequest; - - /** - * Decodes a GetServerOptionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetServerOptionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetServerOptionsRequest; - - /** - * Verifies a GetServerOptionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetServerOptionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetServerOptionsRequest - */ - public static fromObject(object: { [k: string]: any }): protos.GetServerOptionsRequest; - - /** - * Creates a plain object from a GetServerOptionsRequest message. Also converts values to other types if specified. - * @param message GetServerOptionsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetServerOptionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetServerOptionsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetServerOptionsResponse. */ - interface IGetServerOptionsResponse { - - /** GetServerOptionsResponse serverOptions */ - serverOptions?: (protos.opts.IServerOptions|null); - } - - /** Represents a GetServerOptionsResponse. */ - class GetServerOptionsResponse implements IGetServerOptionsResponse { - - /** - * Constructs a new GetServerOptionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetServerOptionsResponse); - - /** GetServerOptionsResponse serverOptions. */ - public serverOptions?: (protos.opts.IServerOptions|null); - - /** - * Creates a new GetServerOptionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetServerOptionsResponse instance - */ - public static create(properties?: protos.IGetServerOptionsResponse): protos.GetServerOptionsResponse; - - /** - * Encodes the specified GetServerOptionsResponse message. Does not implicitly {@link protos.GetServerOptionsResponse.verify|verify} messages. - * @param message GetServerOptionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetServerOptionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetServerOptionsResponse message, length delimited. Does not implicitly {@link protos.GetServerOptionsResponse.verify|verify} messages. - * @param message GetServerOptionsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetServerOptionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetServerOptionsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetServerOptionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetServerOptionsResponse; - - /** - * Decodes a GetServerOptionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetServerOptionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetServerOptionsResponse; - - /** - * Verifies a GetServerOptionsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetServerOptionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetServerOptionsResponse - */ - public static fromObject(object: { [k: string]: any }): protos.GetServerOptionsResponse; - - /** - * Creates a plain object from a GetServerOptionsResponse message. Also converts values to other types if specified. - * @param message GetServerOptionsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetServerOptionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetServerOptionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetAllTunnelsRequest. */ - interface IGetAllTunnelsRequest { - - /** GetAllTunnelsRequest auth */ - auth?: (protos.common.IAuth|null); - } - - /** Represents a GetAllTunnelsRequest. */ - class GetAllTunnelsRequest implements IGetAllTunnelsRequest { - - /** - * Constructs a new GetAllTunnelsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetAllTunnelsRequest); - - /** GetAllTunnelsRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** - * Creates a new GetAllTunnelsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAllTunnelsRequest instance - */ - public static create(properties?: protos.IGetAllTunnelsRequest): protos.GetAllTunnelsRequest; - - /** - * Encodes the specified GetAllTunnelsRequest message. Does not implicitly {@link protos.GetAllTunnelsRequest.verify|verify} messages. - * @param message GetAllTunnelsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetAllTunnelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetAllTunnelsRequest message, length delimited. Does not implicitly {@link protos.GetAllTunnelsRequest.verify|verify} messages. - * @param message GetAllTunnelsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetAllTunnelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAllTunnelsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAllTunnelsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetAllTunnelsRequest; - - /** - * Decodes a GetAllTunnelsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAllTunnelsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetAllTunnelsRequest; - - /** - * Verifies a GetAllTunnelsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetAllTunnelsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetAllTunnelsRequest - */ - public static fromObject(object: { [k: string]: any }): protos.GetAllTunnelsRequest; - - /** - * Creates a plain object from a GetAllTunnelsRequest message. Also converts values to other types if specified. - * @param message GetAllTunnelsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetAllTunnelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetAllTunnelsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetAllTunnelsResponse. */ - interface IGetAllTunnelsResponse { - - /** GetAllTunnelsResponse status */ - status?: (protos.common.IStatus|null); - - /** GetAllTunnelsResponse opts */ - opts?: (protos.opts.ITunnelOptions[]|null); - } - - /** Represents a GetAllTunnelsResponse. */ - class GetAllTunnelsResponse implements IGetAllTunnelsResponse { - - /** - * Constructs a new GetAllTunnelsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetAllTunnelsResponse); - - /** GetAllTunnelsResponse status. */ - public status?: (protos.common.IStatus|null); - - /** GetAllTunnelsResponse opts. */ - public opts: protos.opts.ITunnelOptions[]; - - /** - * Creates a new GetAllTunnelsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAllTunnelsResponse instance - */ - public static create(properties?: protos.IGetAllTunnelsResponse): protos.GetAllTunnelsResponse; - - /** - * Encodes the specified GetAllTunnelsResponse message. Does not implicitly {@link protos.GetAllTunnelsResponse.verify|verify} messages. - * @param message GetAllTunnelsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetAllTunnelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetAllTunnelsResponse message, length delimited. Does not implicitly {@link protos.GetAllTunnelsResponse.verify|verify} messages. - * @param message GetAllTunnelsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetAllTunnelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAllTunnelsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAllTunnelsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetAllTunnelsResponse; - - /** - * Decodes a GetAllTunnelsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAllTunnelsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetAllTunnelsResponse; - - /** - * Verifies a GetAllTunnelsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetAllTunnelsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetAllTunnelsResponse - */ - public static fromObject(object: { [k: string]: any }): protos.GetAllTunnelsResponse; - - /** - * Creates a plain object from a GetAllTunnelsResponse message. Also converts values to other types if specified. - * @param message GetAllTunnelsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetAllTunnelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetAllTunnelsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetTunnelRequest. */ - interface IGetTunnelRequest { - - /** GetTunnelRequest auth */ - auth?: (protos.common.IAuth|null); - - /** GetTunnelRequest tunnelId */ - tunnelId?: (string|null); - } - - /** Represents a GetTunnelRequest. */ - class GetTunnelRequest implements IGetTunnelRequest { - - /** - * Constructs a new GetTunnelRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetTunnelRequest); - - /** GetTunnelRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** GetTunnelRequest tunnelId. */ - public tunnelId: string; - - /** - * Creates a new GetTunnelRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTunnelRequest instance - */ - public static create(properties?: protos.IGetTunnelRequest): protos.GetTunnelRequest; - - /** - * Encodes the specified GetTunnelRequest message. Does not implicitly {@link protos.GetTunnelRequest.verify|verify} messages. - * @param message GetTunnelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetTunnelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTunnelRequest message, length delimited. Does not implicitly {@link protos.GetTunnelRequest.verify|verify} messages. - * @param message GetTunnelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetTunnelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTunnelRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetTunnelRequest; - - /** - * Decodes a GetTunnelRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetTunnelRequest; - - /** - * Verifies a GetTunnelRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTunnelRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTunnelRequest - */ - public static fromObject(object: { [k: string]: any }): protos.GetTunnelRequest; - - /** - * Creates a plain object from a GetTunnelRequest message. Also converts values to other types if specified. - * @param message GetTunnelRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetTunnelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTunnelRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetTunnelResponse. */ - interface IGetTunnelResponse { - - /** GetTunnelResponse status */ - status?: (protos.common.IStatus|null); - - /** GetTunnelResponse opts */ - opts?: (protos.opts.ITunnelOptions|null); - } - - /** Represents a GetTunnelResponse. */ - class GetTunnelResponse implements IGetTunnelResponse { - - /** - * Constructs a new GetTunnelResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IGetTunnelResponse); - - /** GetTunnelResponse status. */ - public status?: (protos.common.IStatus|null); - - /** GetTunnelResponse opts. */ - public opts?: (protos.opts.ITunnelOptions|null); - - /** - * Creates a new GetTunnelResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTunnelResponse instance - */ - public static create(properties?: protos.IGetTunnelResponse): protos.GetTunnelResponse; - - /** - * Encodes the specified GetTunnelResponse message. Does not implicitly {@link protos.GetTunnelResponse.verify|verify} messages. - * @param message GetTunnelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IGetTunnelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GetTunnelResponse message, length delimited. Does not implicitly {@link protos.GetTunnelResponse.verify|verify} messages. - * @param message GetTunnelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IGetTunnelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTunnelResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.GetTunnelResponse; - - /** - * Decodes a GetTunnelResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.GetTunnelResponse; - - /** - * Verifies a GetTunnelResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a GetTunnelResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetTunnelResponse - */ - public static fromObject(object: { [k: string]: any }): protos.GetTunnelResponse; - - /** - * Creates a plain object from a GetTunnelResponse message. Also converts values to other types if specified. - * @param message GetTunnelResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.GetTunnelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetTunnelResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CreateTunnelRequest. */ - interface ICreateTunnelRequest { - - /** CreateTunnelRequest auth */ - auth?: (protos.common.IAuth|null); - - /** CreateTunnelRequest opts */ - opts?: (protos.opts.ITunnelOptions|null); - } - - /** Represents a CreateTunnelRequest. */ - class CreateTunnelRequest implements ICreateTunnelRequest { - - /** - * Constructs a new CreateTunnelRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.ICreateTunnelRequest); - - /** CreateTunnelRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** CreateTunnelRequest opts. */ - public opts?: (protos.opts.ITunnelOptions|null); - - /** - * Creates a new CreateTunnelRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateTunnelRequest instance - */ - public static create(properties?: protos.ICreateTunnelRequest): protos.CreateTunnelRequest; - - /** - * Encodes the specified CreateTunnelRequest message. Does not implicitly {@link protos.CreateTunnelRequest.verify|verify} messages. - * @param message CreateTunnelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.ICreateTunnelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateTunnelRequest message, length delimited. Does not implicitly {@link protos.CreateTunnelRequest.verify|verify} messages. - * @param message CreateTunnelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.ICreateTunnelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateTunnelRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.CreateTunnelRequest; - - /** - * Decodes a CreateTunnelRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.CreateTunnelRequest; - - /** - * Verifies a CreateTunnelRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateTunnelRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateTunnelRequest - */ - public static fromObject(object: { [k: string]: any }): protos.CreateTunnelRequest; - - /** - * Creates a plain object from a CreateTunnelRequest message. Also converts values to other types if specified. - * @param message CreateTunnelRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.CreateTunnelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateTunnelRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CreateTunnelResponse. */ - interface ICreateTunnelResponse { - - /** CreateTunnelResponse status */ - status?: (protos.common.IStatus|null); - - /** CreateTunnelResponse tunnelId */ - tunnelId?: (string|null); - } - - /** Represents a CreateTunnelResponse. */ - class CreateTunnelResponse implements ICreateTunnelResponse { - - /** - * Constructs a new CreateTunnelResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.ICreateTunnelResponse); - - /** CreateTunnelResponse status. */ - public status?: (protos.common.IStatus|null); - - /** CreateTunnelResponse tunnelId. */ - public tunnelId: string; - - /** - * Creates a new CreateTunnelResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateTunnelResponse instance - */ - public static create(properties?: protos.ICreateTunnelResponse): protos.CreateTunnelResponse; - - /** - * Encodes the specified CreateTunnelResponse message. Does not implicitly {@link protos.CreateTunnelResponse.verify|verify} messages. - * @param message CreateTunnelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.ICreateTunnelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CreateTunnelResponse message, length delimited. Does not implicitly {@link protos.CreateTunnelResponse.verify|verify} messages. - * @param message CreateTunnelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.ICreateTunnelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateTunnelResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.CreateTunnelResponse; - - /** - * Decodes a CreateTunnelResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.CreateTunnelResponse; - - /** - * Verifies a CreateTunnelResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a CreateTunnelResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateTunnelResponse - */ - public static fromObject(object: { [k: string]: any }): protos.CreateTunnelResponse; - - /** - * Creates a plain object from a CreateTunnelResponse message. Also converts values to other types if specified. - * @param message CreateTunnelResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.CreateTunnelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateTunnelResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UpdateTunnelRequest. */ - interface IUpdateTunnelRequest { - - /** UpdateTunnelRequest auth */ - auth?: (protos.common.IAuth|null); - - /** UpdateTunnelRequest tunnelId */ - tunnelId?: (string|null); - - /** UpdateTunnelRequest opts */ - opts?: (protos.opts.ITunnelOptions|null); - } - - /** Represents an UpdateTunnelRequest. */ - class UpdateTunnelRequest implements IUpdateTunnelRequest { - - /** - * Constructs a new UpdateTunnelRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IUpdateTunnelRequest); - - /** UpdateTunnelRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** UpdateTunnelRequest tunnelId. */ - public tunnelId: string; - - /** UpdateTunnelRequest opts. */ - public opts?: (protos.opts.ITunnelOptions|null); - - /** - * Creates a new UpdateTunnelRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateTunnelRequest instance - */ - public static create(properties?: protos.IUpdateTunnelRequest): protos.UpdateTunnelRequest; - - /** - * Encodes the specified UpdateTunnelRequest message. Does not implicitly {@link protos.UpdateTunnelRequest.verify|verify} messages. - * @param message UpdateTunnelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IUpdateTunnelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateTunnelRequest message, length delimited. Does not implicitly {@link protos.UpdateTunnelRequest.verify|verify} messages. - * @param message UpdateTunnelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IUpdateTunnelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateTunnelRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.UpdateTunnelRequest; - - /** - * Decodes an UpdateTunnelRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.UpdateTunnelRequest; - - /** - * Verifies an UpdateTunnelRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateTunnelRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateTunnelRequest - */ - public static fromObject(object: { [k: string]: any }): protos.UpdateTunnelRequest; - - /** - * Creates a plain object from an UpdateTunnelRequest message. Also converts values to other types if specified. - * @param message UpdateTunnelRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.UpdateTunnelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateTunnelRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an UpdateTunnelResponse. */ - interface IUpdateTunnelResponse { - - /** UpdateTunnelResponse status */ - status?: (protos.common.IStatus|null); - } - - /** Represents an UpdateTunnelResponse. */ - class UpdateTunnelResponse implements IUpdateTunnelResponse { - - /** - * Constructs a new UpdateTunnelResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IUpdateTunnelResponse); - - /** UpdateTunnelResponse status. */ - public status?: (protos.common.IStatus|null); - - /** - * Creates a new UpdateTunnelResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateTunnelResponse instance - */ - public static create(properties?: protos.IUpdateTunnelResponse): protos.UpdateTunnelResponse; - - /** - * Encodes the specified UpdateTunnelResponse message. Does not implicitly {@link protos.UpdateTunnelResponse.verify|verify} messages. - * @param message UpdateTunnelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IUpdateTunnelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateTunnelResponse message, length delimited. Does not implicitly {@link protos.UpdateTunnelResponse.verify|verify} messages. - * @param message UpdateTunnelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IUpdateTunnelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateTunnelResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.UpdateTunnelResponse; - - /** - * Decodes an UpdateTunnelResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.UpdateTunnelResponse; - - /** - * Verifies an UpdateTunnelResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UpdateTunnelResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateTunnelResponse - */ - public static fromObject(object: { [k: string]: any }): protos.UpdateTunnelResponse; - - /** - * Creates a plain object from an UpdateTunnelResponse message. Also converts values to other types if specified. - * @param message UpdateTunnelResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.UpdateTunnelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateTunnelResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ResumeTunnelRequest. */ - interface IResumeTunnelRequest { - - /** ResumeTunnelRequest auth */ - auth?: (protos.common.IAuth|null); - - /** ResumeTunnelRequest tunnelId */ - tunnelId?: (string|null); - } - - /** Represents a ResumeTunnelRequest. */ - class ResumeTunnelRequest implements IResumeTunnelRequest { - - /** - * Constructs a new ResumeTunnelRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IResumeTunnelRequest); - - /** ResumeTunnelRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** ResumeTunnelRequest tunnelId. */ - public tunnelId: string; - - /** - * Creates a new ResumeTunnelRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ResumeTunnelRequest instance - */ - public static create(properties?: protos.IResumeTunnelRequest): protos.ResumeTunnelRequest; - - /** - * Encodes the specified ResumeTunnelRequest message. Does not implicitly {@link protos.ResumeTunnelRequest.verify|verify} messages. - * @param message ResumeTunnelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IResumeTunnelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ResumeTunnelRequest message, length delimited. Does not implicitly {@link protos.ResumeTunnelRequest.verify|verify} messages. - * @param message ResumeTunnelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IResumeTunnelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResumeTunnelRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResumeTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.ResumeTunnelRequest; - - /** - * Decodes a ResumeTunnelRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResumeTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.ResumeTunnelRequest; - - /** - * Verifies a ResumeTunnelRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ResumeTunnelRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResumeTunnelRequest - */ - public static fromObject(object: { [k: string]: any }): protos.ResumeTunnelRequest; - - /** - * Creates a plain object from a ResumeTunnelRequest message. Also converts values to other types if specified. - * @param message ResumeTunnelRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.ResumeTunnelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ResumeTunnelRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ResumeTunnelResponse. */ - interface IResumeTunnelResponse { - - /** ResumeTunnelResponse status */ - status?: (protos.common.IStatus|null); - } - - /** Represents a ResumeTunnelResponse. */ - class ResumeTunnelResponse implements IResumeTunnelResponse { - - /** - * Constructs a new ResumeTunnelResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IResumeTunnelResponse); - - /** ResumeTunnelResponse status. */ - public status?: (protos.common.IStatus|null); - - /** - * Creates a new ResumeTunnelResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ResumeTunnelResponse instance - */ - public static create(properties?: protos.IResumeTunnelResponse): protos.ResumeTunnelResponse; - - /** - * Encodes the specified ResumeTunnelResponse message. Does not implicitly {@link protos.ResumeTunnelResponse.verify|verify} messages. - * @param message ResumeTunnelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IResumeTunnelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ResumeTunnelResponse message, length delimited. Does not implicitly {@link protos.ResumeTunnelResponse.verify|verify} messages. - * @param message ResumeTunnelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IResumeTunnelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResumeTunnelResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResumeTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.ResumeTunnelResponse; - - /** - * Decodes a ResumeTunnelResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResumeTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.ResumeTunnelResponse; - - /** - * Verifies a ResumeTunnelResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ResumeTunnelResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResumeTunnelResponse - */ - public static fromObject(object: { [k: string]: any }): protos.ResumeTunnelResponse; - - /** - * Creates a plain object from a ResumeTunnelResponse message. Also converts values to other types if specified. - * @param message ResumeTunnelResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.ResumeTunnelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ResumeTunnelResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StopTunnelRequest. */ - interface IStopTunnelRequest { - - /** StopTunnelRequest auth */ - auth?: (protos.common.IAuth|null); - - /** StopTunnelRequest tunnelId */ - tunnelId?: (string|null); - } - - /** Represents a StopTunnelRequest. */ - class StopTunnelRequest implements IStopTunnelRequest { - - /** - * Constructs a new StopTunnelRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IStopTunnelRequest); - - /** StopTunnelRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** StopTunnelRequest tunnelId. */ - public tunnelId: string; - - /** - * Creates a new StopTunnelRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StopTunnelRequest instance - */ - public static create(properties?: protos.IStopTunnelRequest): protos.StopTunnelRequest; - - /** - * Encodes the specified StopTunnelRequest message. Does not implicitly {@link protos.StopTunnelRequest.verify|verify} messages. - * @param message StopTunnelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IStopTunnelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StopTunnelRequest message, length delimited. Does not implicitly {@link protos.StopTunnelRequest.verify|verify} messages. - * @param message StopTunnelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IStopTunnelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StopTunnelRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StopTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.StopTunnelRequest; - - /** - * Decodes a StopTunnelRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StopTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.StopTunnelRequest; - - /** - * Verifies a StopTunnelRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StopTunnelRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StopTunnelRequest - */ - public static fromObject(object: { [k: string]: any }): protos.StopTunnelRequest; - - /** - * Creates a plain object from a StopTunnelRequest message. Also converts values to other types if specified. - * @param message StopTunnelRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.StopTunnelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StopTunnelRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a StopTunnelResponse. */ - interface IStopTunnelResponse { - - /** StopTunnelResponse status */ - status?: (protos.common.IStatus|null); - } - - /** Represents a StopTunnelResponse. */ - class StopTunnelResponse implements IStopTunnelResponse { - - /** - * Constructs a new StopTunnelResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IStopTunnelResponse); - - /** StopTunnelResponse status. */ - public status?: (protos.common.IStatus|null); - - /** - * Creates a new StopTunnelResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns StopTunnelResponse instance - */ - public static create(properties?: protos.IStopTunnelResponse): protos.StopTunnelResponse; - - /** - * Encodes the specified StopTunnelResponse message. Does not implicitly {@link protos.StopTunnelResponse.verify|verify} messages. - * @param message StopTunnelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IStopTunnelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StopTunnelResponse message, length delimited. Does not implicitly {@link protos.StopTunnelResponse.verify|verify} messages. - * @param message StopTunnelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IStopTunnelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StopTunnelResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StopTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.StopTunnelResponse; - - /** - * Decodes a StopTunnelResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StopTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.StopTunnelResponse; - - /** - * Verifies a StopTunnelResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StopTunnelResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StopTunnelResponse - */ - public static fromObject(object: { [k: string]: any }): protos.StopTunnelResponse; - - /** - * Creates a plain object from a StopTunnelResponse message. Also converts values to other types if specified. - * @param message StopTunnelResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.StopTunnelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StopTunnelResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DeleteTunnelRequest. */ - interface IDeleteTunnelRequest { - - /** DeleteTunnelRequest auth */ - auth?: (protos.common.IAuth|null); - - /** DeleteTunnelRequest tunnelId */ - tunnelId?: (string|null); - } - - /** Represents a DeleteTunnelRequest. */ - class DeleteTunnelRequest implements IDeleteTunnelRequest { - - /** - * Constructs a new DeleteTunnelRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IDeleteTunnelRequest); - - /** DeleteTunnelRequest auth. */ - public auth?: (protos.common.IAuth|null); - - /** DeleteTunnelRequest tunnelId. */ - public tunnelId: string; - - /** - * Creates a new DeleteTunnelRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteTunnelRequest instance - */ - public static create(properties?: protos.IDeleteTunnelRequest): protos.DeleteTunnelRequest; - - /** - * Encodes the specified DeleteTunnelRequest message. Does not implicitly {@link protos.DeleteTunnelRequest.verify|verify} messages. - * @param message DeleteTunnelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IDeleteTunnelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteTunnelRequest message, length delimited. Does not implicitly {@link protos.DeleteTunnelRequest.verify|verify} messages. - * @param message DeleteTunnelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IDeleteTunnelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteTunnelRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.DeleteTunnelRequest; - - /** - * Decodes a DeleteTunnelRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.DeleteTunnelRequest; - - /** - * Verifies a DeleteTunnelRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteTunnelRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteTunnelRequest - */ - public static fromObject(object: { [k: string]: any }): protos.DeleteTunnelRequest; - - /** - * Creates a plain object from a DeleteTunnelRequest message. Also converts values to other types if specified. - * @param message DeleteTunnelRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.DeleteTunnelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteTunnelRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DeleteTunnelResponse. */ - interface IDeleteTunnelResponse { - - /** DeleteTunnelResponse status */ - status?: (protos.common.IStatus|null); - } - - /** Represents a DeleteTunnelResponse. */ - class DeleteTunnelResponse implements IDeleteTunnelResponse { - - /** - * Constructs a new DeleteTunnelResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IDeleteTunnelResponse); - - /** DeleteTunnelResponse status. */ - public status?: (protos.common.IStatus|null); - - /** - * Creates a new DeleteTunnelResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteTunnelResponse instance - */ - public static create(properties?: protos.IDeleteTunnelResponse): protos.DeleteTunnelResponse; - - /** - * Encodes the specified DeleteTunnelResponse message. Does not implicitly {@link protos.DeleteTunnelResponse.verify|verify} messages. - * @param message DeleteTunnelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IDeleteTunnelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteTunnelResponse message, length delimited. Does not implicitly {@link protos.DeleteTunnelResponse.verify|verify} messages. - * @param message DeleteTunnelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IDeleteTunnelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteTunnelResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.DeleteTunnelResponse; - - /** - * Decodes a DeleteTunnelResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.DeleteTunnelResponse; - - /** - * Verifies a DeleteTunnelResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DeleteTunnelResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteTunnelResponse - */ - public static fromObject(object: { [k: string]: any }): protos.DeleteTunnelResponse; - - /** - * Creates a plain object from a DeleteTunnelResponse message. Also converts values to other types if specified. - * @param message DeleteTunnelResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.DeleteTunnelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteTunnelResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Represents a ForemanClient */ - class ForemanClient extends $protobuf.rpc.Service { - - /** - * Constructs a new ForemanClient service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new ForemanClient service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ForemanClient; - - /** - * Calls Register. - * @param request ForemanRegisterRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ForemanRegisterResponse - */ - public register(request: protos.IForemanRegisterRequest, callback: protos.ForemanClient.RegisterCallback): void; - - /** - * Calls Register. - * @param request ForemanRegisterRequest message or plain object - * @returns Promise - */ - public register(request: protos.IForemanRegisterRequest): Promise; - } - - namespace ForemanClient { - - /** - * Callback as used by {@link protos.ForemanClient#register}. - * @param error Error, if any - * @param [response] ForemanRegisterResponse - */ - type RegisterCallback = (error: (Error|null), response?: protos.ForemanRegisterResponse) => void; - } - - /** Properties of a ForemanRegisterRequest. */ - interface IForemanRegisterRequest { - - /** ForemanRegisterRequest apiToken */ - apiToken?: (string|null); - - /** ForemanRegisterRequest clusterId */ - clusterId?: (string|null); - - /** ForemanRegisterRequest plumberToken */ - plumberToken?: (string|null); - - /** ForemanRegisterRequest nodeId */ - nodeId?: (string|null); - } - - /** Represents a ForemanRegisterRequest. */ - class ForemanRegisterRequest implements IForemanRegisterRequest { - - /** - * Constructs a new ForemanRegisterRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IForemanRegisterRequest); - - /** ForemanRegisterRequest apiToken. */ - public apiToken: string; - - /** ForemanRegisterRequest clusterId. */ - public clusterId: string; - - /** ForemanRegisterRequest plumberToken. */ - public plumberToken: string; - - /** ForemanRegisterRequest nodeId. */ - public nodeId: string; - - /** - * Creates a new ForemanRegisterRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ForemanRegisterRequest instance - */ - public static create(properties?: protos.IForemanRegisterRequest): protos.ForemanRegisterRequest; - - /** - * Encodes the specified ForemanRegisterRequest message. Does not implicitly {@link protos.ForemanRegisterRequest.verify|verify} messages. - * @param message ForemanRegisterRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IForemanRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ForemanRegisterRequest message, length delimited. Does not implicitly {@link protos.ForemanRegisterRequest.verify|verify} messages. - * @param message ForemanRegisterRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IForemanRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ForemanRegisterRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ForemanRegisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.ForemanRegisterRequest; - - /** - * Decodes a ForemanRegisterRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ForemanRegisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.ForemanRegisterRequest; - - /** - * Verifies a ForemanRegisterRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ForemanRegisterRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ForemanRegisterRequest - */ - public static fromObject(object: { [k: string]: any }): protos.ForemanRegisterRequest; - - /** - * Creates a plain object from a ForemanRegisterRequest message. Also converts values to other types if specified. - * @param message ForemanRegisterRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.ForemanRegisterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ForemanRegisterRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ForemanRegisterResponse. */ - interface IForemanRegisterResponse { - - /** ForemanRegisterResponse success */ - success?: (boolean|null); - - /** ForemanRegisterResponse message */ - message?: (string|null); - } - - /** Represents a ForemanRegisterResponse. */ - class ForemanRegisterResponse implements IForemanRegisterResponse { - - /** - * Constructs a new ForemanRegisterResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IForemanRegisterResponse); - - /** ForemanRegisterResponse success. */ - public success: boolean; - - /** ForemanRegisterResponse message. */ - public message: string; - - /** - * Creates a new ForemanRegisterResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ForemanRegisterResponse instance - */ - public static create(properties?: protos.IForemanRegisterResponse): protos.ForemanRegisterResponse; - - /** - * Encodes the specified ForemanRegisterResponse message. Does not implicitly {@link protos.ForemanRegisterResponse.verify|verify} messages. - * @param message ForemanRegisterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IForemanRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ForemanRegisterResponse message, length delimited. Does not implicitly {@link protos.ForemanRegisterResponse.verify|verify} messages. - * @param message ForemanRegisterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IForemanRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ForemanRegisterResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ForemanRegisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.ForemanRegisterResponse; - - /** - * Decodes a ForemanRegisterResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ForemanRegisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.ForemanRegisterResponse; - - /** - * Verifies a ForemanRegisterResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ForemanRegisterResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ForemanRegisterResponse - */ - public static fromObject(object: { [k: string]: any }): protos.ForemanRegisterResponse; - - /** - * Creates a plain object from a ForemanRegisterResponse message. Also converts values to other types if specified. - * @param message ForemanRegisterResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.ForemanRegisterResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ForemanRegisterResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Represents a ForemanServer */ - class ForemanServer extends $protobuf.rpc.Service { - - /** - * Constructs a new ForemanServer service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new ForemanServer service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ForemanServer; - - /** - * Calls ListPlumbers. - * @param request ListPlumbersRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListPlumbersResponse - */ - public listPlumbers(request: protos.IListPlumbersRequest, callback: protos.ForemanServer.ListPlumbersCallback): void; - - /** - * Calls ListPlumbers. - * @param request ListPlumbersRequest message or plain object - * @returns Promise - */ - public listPlumbers(request: protos.IListPlumbersRequest): Promise; - - /** - * Calls GetAllConnections. - * @param request GetAllConnectionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetAllConnectionsResponse - */ - public getAllConnections(request: protos.IGetAllConnectionsRequest, callback: protos.ForemanServer.GetAllConnectionsCallback): void; - - /** - * Calls GetAllConnections. - * @param request GetAllConnectionsRequest message or plain object - * @returns Promise - */ - public getAllConnections(request: protos.IGetAllConnectionsRequest): Promise; - - /** - * Calls GetConnection. - * @param request GetConnectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetConnectionResponse - */ - public getConnection(request: protos.IGetConnectionRequest, callback: protos.ForemanServer.GetConnectionCallback): void; - - /** - * Calls GetConnection. - * @param request GetConnectionRequest message or plain object - * @returns Promise - */ - public getConnection(request: protos.IGetConnectionRequest): Promise; - - /** - * Calls CreateConnection. - * @param request CreateConnectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateConnectionResponse - */ - public createConnection(request: protos.ICreateConnectionRequest, callback: protos.ForemanServer.CreateConnectionCallback): void; - - /** - * Calls CreateConnection. - * @param request CreateConnectionRequest message or plain object - * @returns Promise - */ - public createConnection(request: protos.ICreateConnectionRequest): Promise; - - /** - * Calls TestConnection. - * @param request TestConnectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestConnectionResponse - */ - public testConnection(request: protos.ITestConnectionRequest, callback: protos.ForemanServer.TestConnectionCallback): void; - - /** - * Calls TestConnection. - * @param request TestConnectionRequest message or plain object - * @returns Promise - */ - public testConnection(request: protos.ITestConnectionRequest): Promise; - - /** - * Calls UpdateConnection. - * @param request UpdateConnectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and UpdateConnectionResponse - */ - public updateConnection(request: protos.IUpdateConnectionRequest, callback: protos.ForemanServer.UpdateConnectionCallback): void; - - /** - * Calls UpdateConnection. - * @param request UpdateConnectionRequest message or plain object - * @returns Promise - */ - public updateConnection(request: protos.IUpdateConnectionRequest): Promise; - - /** - * Calls DeleteConnection. - * @param request DeleteConnectionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DeleteConnectionResponse - */ - public deleteConnection(request: protos.IDeleteConnectionRequest, callback: protos.ForemanServer.DeleteConnectionCallback): void; - - /** - * Calls DeleteConnection. - * @param request DeleteConnectionRequest message or plain object - * @returns Promise - */ - public deleteConnection(request: protos.IDeleteConnectionRequest): Promise; - - /** - * Calls GetAllRelays. - * @param request GetAllRelaysRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetAllRelaysResponse - */ - public getAllRelays(request: protos.IGetAllRelaysRequest, callback: protos.ForemanServer.GetAllRelaysCallback): void; - - /** - * Calls GetAllRelays. - * @param request GetAllRelaysRequest message or plain object - * @returns Promise - */ - public getAllRelays(request: protos.IGetAllRelaysRequest): Promise; - - /** - * Calls GetRelay. - * @param request GetRelayRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetRelayResponse - */ - public getRelay(request: protos.IGetRelayRequest, callback: protos.ForemanServer.GetRelayCallback): void; - - /** - * Calls GetRelay. - * @param request GetRelayRequest message or plain object - * @returns Promise - */ - public getRelay(request: protos.IGetRelayRequest): Promise; - - /** - * Calls CreateRelay. - * @param request CreateRelayRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateRelayResponse - */ - public createRelay(request: protos.ICreateRelayRequest, callback: protos.ForemanServer.CreateRelayCallback): void; - - /** - * Calls CreateRelay. - * @param request CreateRelayRequest message or plain object - * @returns Promise - */ - public createRelay(request: protos.ICreateRelayRequest): Promise; - - /** - * Calls UpdateRelay. - * @param request UpdateRelayRequest message or plain object - * @param callback Node-style callback called with the error, if any, and UpdateRelayResponse - */ - public updateRelay(request: protos.IUpdateRelayRequest, callback: protos.ForemanServer.UpdateRelayCallback): void; - - /** - * Calls UpdateRelay. - * @param request UpdateRelayRequest message or plain object - * @returns Promise - */ - public updateRelay(request: protos.IUpdateRelayRequest): Promise; - - /** - * Calls ResumeRelay. - * @param request ResumeRelayRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ResumeRelayResponse - */ - public resumeRelay(request: protos.IResumeRelayRequest, callback: protos.ForemanServer.ResumeRelayCallback): void; - - /** - * Calls ResumeRelay. - * @param request ResumeRelayRequest message or plain object - * @returns Promise - */ - public resumeRelay(request: protos.IResumeRelayRequest): Promise; - - /** - * Calls StopRelay. - * @param request StopRelayRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StopRelayResponse - */ - public stopRelay(request: protos.IStopRelayRequest, callback: protos.ForemanServer.StopRelayCallback): void; - - /** - * Calls StopRelay. - * @param request StopRelayRequest message or plain object - * @returns Promise - */ - public stopRelay(request: protos.IStopRelayRequest): Promise; - - /** - * Calls DeleteRelay. - * @param request DeleteRelayRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DeleteRelayResponse - */ - public deleteRelay(request: protos.IDeleteRelayRequest, callback: protos.ForemanServer.DeleteRelayCallback): void; - - /** - * Calls DeleteRelay. - * @param request DeleteRelayRequest message or plain object - * @returns Promise - */ - public deleteRelay(request: protos.IDeleteRelayRequest): Promise; - - /** - * Calls GetTunnel. - * @param request GetTunnelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetTunnelResponse - */ - public getTunnel(request: protos.IGetTunnelRequest, callback: protos.ForemanServer.GetTunnelCallback): void; - - /** - * Calls GetTunnel. - * @param request GetTunnelRequest message or plain object - * @returns Promise - */ - public getTunnel(request: protos.IGetTunnelRequest): Promise; - - /** - * Calls GetAllTunnels. - * @param request GetAllTunnelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetAllTunnelsResponse - */ - public getAllTunnels(request: protos.IGetAllTunnelsRequest, callback: protos.ForemanServer.GetAllTunnelsCallback): void; - - /** - * Calls GetAllTunnels. - * @param request GetAllTunnelsRequest message or plain object - * @returns Promise - */ - public getAllTunnels(request: protos.IGetAllTunnelsRequest): Promise; - - /** - * Calls CreateTunnel. - * @param request CreateTunnelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateTunnelResponse - */ - public createTunnel(request: protos.ICreateTunnelRequest, callback: protos.ForemanServer.CreateTunnelCallback): void; - - /** - * Calls CreateTunnel. - * @param request CreateTunnelRequest message or plain object - * @returns Promise - */ - public createTunnel(request: protos.ICreateTunnelRequest): Promise; - - /** - * Calls StopTunnel. - * @param request StopTunnelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StopTunnelResponse - */ - public stopTunnel(request: protos.IStopTunnelRequest, callback: protos.ForemanServer.StopTunnelCallback): void; - - /** - * Calls StopTunnel. - * @param request StopTunnelRequest message or plain object - * @returns Promise - */ - public stopTunnel(request: protos.IStopTunnelRequest): Promise; - - /** - * Calls ResumeTunnel. - * @param request ResumeTunnelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ResumeTunnelResponse - */ - public resumeTunnel(request: protos.IResumeTunnelRequest, callback: protos.ForemanServer.ResumeTunnelCallback): void; - - /** - * Calls ResumeTunnel. - * @param request ResumeTunnelRequest message or plain object - * @returns Promise - */ - public resumeTunnel(request: protos.IResumeTunnelRequest): Promise; - - /** - * Calls UpdateTunnel. - * @param request UpdateTunnelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and UpdateTunnelResponse - */ - public updateTunnel(request: protos.IUpdateTunnelRequest, callback: protos.ForemanServer.UpdateTunnelCallback): void; - - /** - * Calls UpdateTunnel. - * @param request UpdateTunnelRequest message or plain object - * @returns Promise - */ - public updateTunnel(request: protos.IUpdateTunnelRequest): Promise; - - /** - * Calls DeleteTunnel. - * @param request DeleteTunnelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DeleteTunnelResponse - */ - public deleteTunnel(request: protos.IDeleteTunnelRequest, callback: protos.ForemanServer.DeleteTunnelCallback): void; - - /** - * Calls DeleteTunnel. - * @param request DeleteTunnelRequest message or plain object - * @returns Promise - */ - public deleteTunnel(request: protos.IDeleteTunnelRequest): Promise; - - /** - * Calls GetServerOptions. - * @param request GetServerOptionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetServerOptionsResponse - */ - public getServerOptions(request: protos.IGetServerOptionsRequest, callback: protos.ForemanServer.GetServerOptionsCallback): void; - - /** - * Calls GetServerOptions. - * @param request GetServerOptionsRequest message or plain object - * @returns Promise - */ - public getServerOptions(request: protos.IGetServerOptionsRequest): Promise; - } - - namespace ForemanServer { - - /** - * Callback as used by {@link protos.ForemanServer#listPlumbers}. - * @param error Error, if any - * @param [response] ListPlumbersResponse - */ - type ListPlumbersCallback = (error: (Error|null), response?: protos.ListPlumbersResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#getAllConnections}. - * @param error Error, if any - * @param [response] GetAllConnectionsResponse - */ - type GetAllConnectionsCallback = (error: (Error|null), response?: protos.GetAllConnectionsResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#getConnection}. - * @param error Error, if any - * @param [response] GetConnectionResponse - */ - type GetConnectionCallback = (error: (Error|null), response?: protos.GetConnectionResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#createConnection}. - * @param error Error, if any - * @param [response] CreateConnectionResponse - */ - type CreateConnectionCallback = (error: (Error|null), response?: protos.CreateConnectionResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#testConnection}. - * @param error Error, if any - * @param [response] TestConnectionResponse - */ - type TestConnectionCallback = (error: (Error|null), response?: protos.TestConnectionResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#updateConnection}. - * @param error Error, if any - * @param [response] UpdateConnectionResponse - */ - type UpdateConnectionCallback = (error: (Error|null), response?: protos.UpdateConnectionResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#deleteConnection}. - * @param error Error, if any - * @param [response] DeleteConnectionResponse - */ - type DeleteConnectionCallback = (error: (Error|null), response?: protos.DeleteConnectionResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#getAllRelays}. - * @param error Error, if any - * @param [response] GetAllRelaysResponse - */ - type GetAllRelaysCallback = (error: (Error|null), response?: protos.GetAllRelaysResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#getRelay}. - * @param error Error, if any - * @param [response] GetRelayResponse - */ - type GetRelayCallback = (error: (Error|null), response?: protos.GetRelayResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#createRelay}. - * @param error Error, if any - * @param [response] CreateRelayResponse - */ - type CreateRelayCallback = (error: (Error|null), response?: protos.CreateRelayResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#updateRelay}. - * @param error Error, if any - * @param [response] UpdateRelayResponse - */ - type UpdateRelayCallback = (error: (Error|null), response?: protos.UpdateRelayResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#resumeRelay}. - * @param error Error, if any - * @param [response] ResumeRelayResponse - */ - type ResumeRelayCallback = (error: (Error|null), response?: protos.ResumeRelayResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#stopRelay}. - * @param error Error, if any - * @param [response] StopRelayResponse - */ - type StopRelayCallback = (error: (Error|null), response?: protos.StopRelayResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#deleteRelay}. - * @param error Error, if any - * @param [response] DeleteRelayResponse - */ - type DeleteRelayCallback = (error: (Error|null), response?: protos.DeleteRelayResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#getTunnel}. - * @param error Error, if any - * @param [response] GetTunnelResponse - */ - type GetTunnelCallback = (error: (Error|null), response?: protos.GetTunnelResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#getAllTunnels}. - * @param error Error, if any - * @param [response] GetAllTunnelsResponse - */ - type GetAllTunnelsCallback = (error: (Error|null), response?: protos.GetAllTunnelsResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#createTunnel}. - * @param error Error, if any - * @param [response] CreateTunnelResponse - */ - type CreateTunnelCallback = (error: (Error|null), response?: protos.CreateTunnelResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#stopTunnel}. - * @param error Error, if any - * @param [response] StopTunnelResponse - */ - type StopTunnelCallback = (error: (Error|null), response?: protos.StopTunnelResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#resumeTunnel}. - * @param error Error, if any - * @param [response] ResumeTunnelResponse - */ - type ResumeTunnelCallback = (error: (Error|null), response?: protos.ResumeTunnelResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#updateTunnel}. - * @param error Error, if any - * @param [response] UpdateTunnelResponse - */ - type UpdateTunnelCallback = (error: (Error|null), response?: protos.UpdateTunnelResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#deleteTunnel}. - * @param error Error, if any - * @param [response] DeleteTunnelResponse - */ - type DeleteTunnelCallback = (error: (Error|null), response?: protos.DeleteTunnelResponse) => void; - - /** - * Callback as used by {@link protos.ForemanServer#getServerOptions}. - * @param error Error, if any - * @param [response] GetServerOptionsResponse - */ - type GetServerOptionsCallback = (error: (Error|null), response?: protos.GetServerOptionsResponse) => void; - } - - /** Properties of a PlumberInfo. */ - interface IPlumberInfo { - - /** PlumberInfo teamId */ - teamId?: (string|null); - - /** PlumberInfo clusterId */ - clusterId?: (string|null); - } - - /** Represents a PlumberInfo. */ - class PlumberInfo implements IPlumberInfo { - - /** - * Constructs a new PlumberInfo. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IPlumberInfo); - - /** PlumberInfo teamId. */ - public teamId: string; - - /** PlumberInfo clusterId. */ - public clusterId: string; - - /** - * Creates a new PlumberInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns PlumberInfo instance - */ - public static create(properties?: protos.IPlumberInfo): protos.PlumberInfo; - - /** - * Encodes the specified PlumberInfo message. Does not implicitly {@link protos.PlumberInfo.verify|verify} messages. - * @param message PlumberInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IPlumberInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PlumberInfo message, length delimited. Does not implicitly {@link protos.PlumberInfo.verify|verify} messages. - * @param message PlumberInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IPlumberInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PlumberInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PlumberInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.PlumberInfo; - - /** - * Decodes a PlumberInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PlumberInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.PlumberInfo; - - /** - * Verifies a PlumberInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PlumberInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PlumberInfo - */ - public static fromObject(object: { [k: string]: any }): protos.PlumberInfo; - - /** - * Creates a plain object from a PlumberInfo message. Also converts values to other types if specified. - * @param message PlumberInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.PlumberInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PlumberInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ListPlumbersRequest. */ - interface IListPlumbersRequest { - - /** ListPlumbersRequest authToken */ - authToken?: (string|null); - - /** ListPlumbersRequest teamId */ - teamId?: (string|null); - } - - /** Represents a ListPlumbersRequest. */ - class ListPlumbersRequest implements IListPlumbersRequest { - - /** - * Constructs a new ListPlumbersRequest. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IListPlumbersRequest); - - /** ListPlumbersRequest authToken. */ - public authToken: string; - - /** ListPlumbersRequest teamId. */ - public teamId: string; - - /** - * Creates a new ListPlumbersRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListPlumbersRequest instance - */ - public static create(properties?: protos.IListPlumbersRequest): protos.ListPlumbersRequest; - - /** - * Encodes the specified ListPlumbersRequest message. Does not implicitly {@link protos.ListPlumbersRequest.verify|verify} messages. - * @param message ListPlumbersRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IListPlumbersRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListPlumbersRequest message, length delimited. Does not implicitly {@link protos.ListPlumbersRequest.verify|verify} messages. - * @param message ListPlumbersRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IListPlumbersRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListPlumbersRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListPlumbersRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.ListPlumbersRequest; - - /** - * Decodes a ListPlumbersRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListPlumbersRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.ListPlumbersRequest; - - /** - * Verifies a ListPlumbersRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ListPlumbersRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListPlumbersRequest - */ - public static fromObject(object: { [k: string]: any }): protos.ListPlumbersRequest; - - /** - * Creates a plain object from a ListPlumbersRequest message. Also converts values to other types if specified. - * @param message ListPlumbersRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.ListPlumbersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListPlumbersRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ListPlumbersResponse. */ - interface IListPlumbersResponse { - - /** ListPlumbersResponse plumbers */ - plumbers?: (protos.IPlumberInfo[]|null); - } - - /** Represents a ListPlumbersResponse. */ - class ListPlumbersResponse implements IListPlumbersResponse { - - /** - * Constructs a new ListPlumbersResponse. - * @param [properties] Properties to set - */ - constructor(properties?: protos.IListPlumbersResponse); - - /** ListPlumbersResponse plumbers. */ - public plumbers: protos.IPlumberInfo[]; - - /** - * Creates a new ListPlumbersResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListPlumbersResponse instance - */ - public static create(properties?: protos.IListPlumbersResponse): protos.ListPlumbersResponse; - - /** - * Encodes the specified ListPlumbersResponse message. Does not implicitly {@link protos.ListPlumbersResponse.verify|verify} messages. - * @param message ListPlumbersResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: protos.IListPlumbersResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListPlumbersResponse message, length delimited. Does not implicitly {@link protos.ListPlumbersResponse.verify|verify} messages. - * @param message ListPlumbersResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: protos.IListPlumbersResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListPlumbersResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListPlumbersResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.ListPlumbersResponse; - - /** - * Decodes a ListPlumbersResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListPlumbersResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.ListPlumbersResponse; - - /** - * Verifies a ListPlumbersResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ListPlumbersResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListPlumbersResponse - */ - public static fromObject(object: { [k: string]: any }): protos.ListPlumbersResponse; - - /** - * Creates a plain object from a ListPlumbersResponse message. Also converts values to other types if specified. - * @param message ListPlumbersResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: protos.ListPlumbersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListPlumbersResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Namespace encoding. */ - namespace encoding { - - /** EncodeType enum. */ - enum EncodeType { - ENCODE_TYPE_UNSET = 0, - ENCODE_TYPE_JSONPB = 1, - ENCODE_TYPE_AVRO = 2, - ENCODE_TYPE_CLOUDEVENT = 3 - } - - /** DecodeType enum. */ - enum DecodeType { - DECODE_TYPE_UNSET = 0, - DECODE_TYPE_PROTOBUF = 1, - DECODE_TYPE_AVRO = 2, - DECODE_TYPE_THRIFT = 3, - DECODE_TYPE_FLATBUFFER = 4 - } - - /** EnvelopeType enum. */ - enum EnvelopeType { - ENVELOPE_TYPE_UNSET = 0, - ENVELOPE_TYPE_DEEP = 1, - ENVELOPE_TYPE_SHALLOW = 2 - } - - /** Properties of a ProtobufSettings. */ - interface IProtobufSettings { - - /** ProtobufSettings protobufRootMessage */ - protobufRootMessage?: (string|null); - - /** ProtobufSettings protobufDirs */ - protobufDirs?: (string[]|null); - - /** ProtobufSettings _protobufRootDir */ - _protobufRootDir?: (string|null); + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupAzureEventHubOptions; - /** ProtobufSettings archive */ - archive?: (Uint8Array|null); + /** + * Verifies a WriteGroupAzureEventHubOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ProtobufSettings _messageDescriptor */ - _messageDescriptor?: (Uint8Array|null); + /** + * Creates a WriteGroupAzureEventHubOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WriteGroupAzureEventHubOptions + */ + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupAzureEventHubOptions; - /** ProtobufSettings protobufEnvelopeType */ - protobufEnvelopeType?: (protos.encoding.EnvelopeType|null); + /** + * Creates a plain object from a WriteGroupAzureEventHubOptions message. Also converts values to other types if specified. + * @param message WriteGroupAzureEventHubOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: protos.opts.WriteGroupAzureEventHubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ProtobufSettings shallowEnvelopeMessage */ - shallowEnvelopeMessage?: (string|null); + /** + * Converts this WriteGroupAzureEventHubOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ProtobufSettings shallowEnvelopeFieldNumber */ - shallowEnvelopeFieldNumber?: (number|null); + /** Properties of a WriteGroupAzureServiceBusOptions. */ + interface IWriteGroupAzureServiceBusOptions { - /** ProtobufSettings _shallowEnvelopeMessageDescriptor */ - _shallowEnvelopeMessageDescriptor?: (Uint8Array|null); + /** WriteGroupAzureServiceBusOptions _conn */ + _conn?: (protos.args.IAzureServiceBusConn|null); - /** ProtobufSettings protobufDescriptorSet */ - protobufDescriptorSet?: (string|null); + /** WriteGroupAzureServiceBusOptions args */ + args?: (protos.args.IAzureServiceBusWriteArgs|null); } - /** Represents a ProtobufSettings. */ - class ProtobufSettings implements IProtobufSettings { + /** Represents a WriteGroupAzureServiceBusOptions. */ + class WriteGroupAzureServiceBusOptions implements IWriteGroupAzureServiceBusOptions { /** - * Constructs a new ProtobufSettings. + * Constructs a new WriteGroupAzureServiceBusOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.encoding.IProtobufSettings); - - /** ProtobufSettings protobufRootMessage. */ - public protobufRootMessage: string; - - /** ProtobufSettings protobufDirs. */ - public protobufDirs: string[]; - - /** ProtobufSettings _protobufRootDir. */ - public _protobufRootDir: string; - - /** ProtobufSettings archive. */ - public archive: Uint8Array; - - /** ProtobufSettings _messageDescriptor. */ - public _messageDescriptor: Uint8Array; - - /** ProtobufSettings protobufEnvelopeType. */ - public protobufEnvelopeType: protos.encoding.EnvelopeType; - - /** ProtobufSettings shallowEnvelopeMessage. */ - public shallowEnvelopeMessage: string; - - /** ProtobufSettings shallowEnvelopeFieldNumber. */ - public shallowEnvelopeFieldNumber: number; + constructor(properties?: protos.opts.IWriteGroupAzureServiceBusOptions); - /** ProtobufSettings _shallowEnvelopeMessageDescriptor. */ - public _shallowEnvelopeMessageDescriptor: Uint8Array; + /** WriteGroupAzureServiceBusOptions _conn. */ + public _conn?: (protos.args.IAzureServiceBusConn|null); - /** ProtobufSettings protobufDescriptorSet. */ - public protobufDescriptorSet: string; + /** WriteGroupAzureServiceBusOptions args. */ + public args?: (protos.args.IAzureServiceBusWriteArgs|null); /** - * Creates a new ProtobufSettings instance using the specified properties. + * Creates a new WriteGroupAzureServiceBusOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ProtobufSettings instance + * @returns WriteGroupAzureServiceBusOptions instance */ - public static create(properties?: protos.encoding.IProtobufSettings): protos.encoding.ProtobufSettings; + public static create(properties?: protos.opts.IWriteGroupAzureServiceBusOptions): protos.opts.WriteGroupAzureServiceBusOptions; /** - * Encodes the specified ProtobufSettings message. Does not implicitly {@link protos.encoding.ProtobufSettings.verify|verify} messages. - * @param message ProtobufSettings message or plain object to encode + * Encodes the specified WriteGroupAzureServiceBusOptions message. Does not implicitly {@link protos.opts.WriteGroupAzureServiceBusOptions.verify|verify} messages. + * @param message WriteGroupAzureServiceBusOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.encoding.IProtobufSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupAzureServiceBusOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ProtobufSettings message, length delimited. Does not implicitly {@link protos.encoding.ProtobufSettings.verify|verify} messages. - * @param message ProtobufSettings message or plain object to encode + * Encodes the specified WriteGroupAzureServiceBusOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAzureServiceBusOptions.verify|verify} messages. + * @param message WriteGroupAzureServiceBusOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.encoding.IProtobufSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupAzureServiceBusOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ProtobufSettings message from the specified reader or buffer. + * Decodes a WriteGroupAzureServiceBusOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ProtobufSettings + * @returns WriteGroupAzureServiceBusOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.ProtobufSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupAzureServiceBusOptions; /** - * Decodes a ProtobufSettings message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupAzureServiceBusOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ProtobufSettings + * @returns WriteGroupAzureServiceBusOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.ProtobufSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupAzureServiceBusOptions; /** - * Verifies a ProtobufSettings message. + * Verifies a WriteGroupAzureServiceBusOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ProtobufSettings message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupAzureServiceBusOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ProtobufSettings + * @returns WriteGroupAzureServiceBusOptions */ - public static fromObject(object: { [k: string]: any }): protos.encoding.ProtobufSettings; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupAzureServiceBusOptions; /** - * Creates a plain object from a ProtobufSettings message. Also converts values to other types if specified. - * @param message ProtobufSettings + * Creates a plain object from a WriteGroupAzureServiceBusOptions message. Also converts values to other types if specified. + * @param message WriteGroupAzureServiceBusOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.encoding.ProtobufSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupAzureServiceBusOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ProtobufSettings to JSON. + * Converts this WriteGroupAzureServiceBusOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AvroSettings. */ - interface IAvroSettings { + /** Properties of a WriteGroupMQTTOptions. */ + interface IWriteGroupMQTTOptions { - /** AvroSettings avroSchemaFile */ - avroSchemaFile?: (string|null); + /** WriteGroupMQTTOptions _conn */ + _conn?: (protos.args.IMQTTConn|null); - /** AvroSettings schema */ - schema?: (Uint8Array|null); + /** WriteGroupMQTTOptions args */ + args?: (protos.args.IMQTTWriteArgs|null); } - /** Represents an AvroSettings. */ - class AvroSettings implements IAvroSettings { + /** Represents a WriteGroupMQTTOptions. */ + class WriteGroupMQTTOptions implements IWriteGroupMQTTOptions { /** - * Constructs a new AvroSettings. + * Constructs a new WriteGroupMQTTOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.encoding.IAvroSettings); + constructor(properties?: protos.opts.IWriteGroupMQTTOptions); - /** AvroSettings avroSchemaFile. */ - public avroSchemaFile: string; + /** WriteGroupMQTTOptions _conn. */ + public _conn?: (protos.args.IMQTTConn|null); - /** AvroSettings schema. */ - public schema: Uint8Array; + /** WriteGroupMQTTOptions args. */ + public args?: (protos.args.IMQTTWriteArgs|null); /** - * Creates a new AvroSettings instance using the specified properties. + * Creates a new WriteGroupMQTTOptions instance using the specified properties. * @param [properties] Properties to set - * @returns AvroSettings instance + * @returns WriteGroupMQTTOptions instance */ - public static create(properties?: protos.encoding.IAvroSettings): protos.encoding.AvroSettings; + public static create(properties?: protos.opts.IWriteGroupMQTTOptions): protos.opts.WriteGroupMQTTOptions; /** - * Encodes the specified AvroSettings message. Does not implicitly {@link protos.encoding.AvroSettings.verify|verify} messages. - * @param message AvroSettings message or plain object to encode + * Encodes the specified WriteGroupMQTTOptions message. Does not implicitly {@link protos.opts.WriteGroupMQTTOptions.verify|verify} messages. + * @param message WriteGroupMQTTOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.encoding.IAvroSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupMQTTOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AvroSettings message, length delimited. Does not implicitly {@link protos.encoding.AvroSettings.verify|verify} messages. - * @param message AvroSettings message or plain object to encode + * Encodes the specified WriteGroupMQTTOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupMQTTOptions.verify|verify} messages. + * @param message WriteGroupMQTTOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.encoding.IAvroSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupMQTTOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AvroSettings message from the specified reader or buffer. + * Decodes a WriteGroupMQTTOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AvroSettings + * @returns WriteGroupMQTTOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.AvroSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupMQTTOptions; /** - * Decodes an AvroSettings message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupMQTTOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AvroSettings + * @returns WriteGroupMQTTOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.AvroSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupMQTTOptions; /** - * Verifies an AvroSettings message. + * Verifies a WriteGroupMQTTOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AvroSettings message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupMQTTOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AvroSettings + * @returns WriteGroupMQTTOptions */ - public static fromObject(object: { [k: string]: any }): protos.encoding.AvroSettings; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupMQTTOptions; /** - * Creates a plain object from an AvroSettings message. Also converts values to other types if specified. - * @param message AvroSettings + * Creates a plain object from a WriteGroupMQTTOptions message. Also converts values to other types if specified. + * @param message WriteGroupMQTTOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.encoding.AvroSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupMQTTOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AvroSettings to JSON. + * Converts this WriteGroupMQTTOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ThriftSettings. */ - interface IThriftSettings { + /** Properties of a WriteGroupGCPPubSubOptions. */ + interface IWriteGroupGCPPubSubOptions { - /** ThriftSettings thriftDirs */ - thriftDirs?: (string[]|null); + /** WriteGroupGCPPubSubOptions _conn */ + _conn?: (protos.args.IGCPPubSubConn|null); - /** ThriftSettings thriftStruct */ - thriftStruct?: (string|null); + /** WriteGroupGCPPubSubOptions args */ + args?: (protos.args.IGCPPubSubWriteArgs|null); } - /** Represents a ThriftSettings. */ - class ThriftSettings implements IThriftSettings { + /** Represents a WriteGroupGCPPubSubOptions. */ + class WriteGroupGCPPubSubOptions implements IWriteGroupGCPPubSubOptions { /** - * Constructs a new ThriftSettings. + * Constructs a new WriteGroupGCPPubSubOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.encoding.IThriftSettings); + constructor(properties?: protos.opts.IWriteGroupGCPPubSubOptions); - /** ThriftSettings thriftDirs. */ - public thriftDirs: string[]; + /** WriteGroupGCPPubSubOptions _conn. */ + public _conn?: (protos.args.IGCPPubSubConn|null); - /** ThriftSettings thriftStruct. */ - public thriftStruct: string; + /** WriteGroupGCPPubSubOptions args. */ + public args?: (protos.args.IGCPPubSubWriteArgs|null); /** - * Creates a new ThriftSettings instance using the specified properties. + * Creates a new WriteGroupGCPPubSubOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ThriftSettings instance + * @returns WriteGroupGCPPubSubOptions instance */ - public static create(properties?: protos.encoding.IThriftSettings): protos.encoding.ThriftSettings; + public static create(properties?: protos.opts.IWriteGroupGCPPubSubOptions): protos.opts.WriteGroupGCPPubSubOptions; /** - * Encodes the specified ThriftSettings message. Does not implicitly {@link protos.encoding.ThriftSettings.verify|verify} messages. - * @param message ThriftSettings message or plain object to encode + * Encodes the specified WriteGroupGCPPubSubOptions message. Does not implicitly {@link protos.opts.WriteGroupGCPPubSubOptions.verify|verify} messages. + * @param message WriteGroupGCPPubSubOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.encoding.IThriftSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupGCPPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ThriftSettings message, length delimited. Does not implicitly {@link protos.encoding.ThriftSettings.verify|verify} messages. - * @param message ThriftSettings message or plain object to encode + * Encodes the specified WriteGroupGCPPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupGCPPubSubOptions.verify|verify} messages. + * @param message WriteGroupGCPPubSubOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.encoding.IThriftSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupGCPPubSubOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ThriftSettings message from the specified reader or buffer. + * Decodes a WriteGroupGCPPubSubOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ThriftSettings + * @returns WriteGroupGCPPubSubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.ThriftSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupGCPPubSubOptions; /** - * Decodes a ThriftSettings message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupGCPPubSubOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ThriftSettings + * @returns WriteGroupGCPPubSubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.ThriftSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupGCPPubSubOptions; /** - * Verifies a ThriftSettings message. + * Verifies a WriteGroupGCPPubSubOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ThriftSettings message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupGCPPubSubOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ThriftSettings + * @returns WriteGroupGCPPubSubOptions */ - public static fromObject(object: { [k: string]: any }): protos.encoding.ThriftSettings; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupGCPPubSubOptions; /** - * Creates a plain object from a ThriftSettings message. Also converts values to other types if specified. - * @param message ThriftSettings + * Creates a plain object from a WriteGroupGCPPubSubOptions message. Also converts values to other types if specified. + * @param message WriteGroupGCPPubSubOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.encoding.ThriftSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupGCPPubSubOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ThriftSettings to JSON. + * Converts this WriteGroupGCPPubSubOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a JSONSchemaSettings. */ - interface IJSONSchemaSettings { + /** Properties of a WriteGroupKubeMQQueueOptions. */ + interface IWriteGroupKubeMQQueueOptions { - /** JSONSchemaSettings schema */ - schema?: (Uint8Array|null); + /** WriteGroupKubeMQQueueOptions _conn */ + _conn?: (protos.args.IKubeMQQueueConn|null); + + /** WriteGroupKubeMQQueueOptions args */ + args?: (protos.args.IKubeMQQueueWriteArgs|null); } - /** Represents a JSONSchemaSettings. */ - class JSONSchemaSettings implements IJSONSchemaSettings { + /** Represents a WriteGroupKubeMQQueueOptions. */ + class WriteGroupKubeMQQueueOptions implements IWriteGroupKubeMQQueueOptions { /** - * Constructs a new JSONSchemaSettings. + * Constructs a new WriteGroupKubeMQQueueOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.encoding.IJSONSchemaSettings); + constructor(properties?: protos.opts.IWriteGroupKubeMQQueueOptions); - /** JSONSchemaSettings schema. */ - public schema: Uint8Array; + /** WriteGroupKubeMQQueueOptions _conn. */ + public _conn?: (protos.args.IKubeMQQueueConn|null); + + /** WriteGroupKubeMQQueueOptions args. */ + public args?: (protos.args.IKubeMQQueueWriteArgs|null); /** - * Creates a new JSONSchemaSettings instance using the specified properties. + * Creates a new WriteGroupKubeMQQueueOptions instance using the specified properties. * @param [properties] Properties to set - * @returns JSONSchemaSettings instance + * @returns WriteGroupKubeMQQueueOptions instance */ - public static create(properties?: protos.encoding.IJSONSchemaSettings): protos.encoding.JSONSchemaSettings; + public static create(properties?: protos.opts.IWriteGroupKubeMQQueueOptions): protos.opts.WriteGroupKubeMQQueueOptions; /** - * Encodes the specified JSONSchemaSettings message. Does not implicitly {@link protos.encoding.JSONSchemaSettings.verify|verify} messages. - * @param message JSONSchemaSettings message or plain object to encode + * Encodes the specified WriteGroupKubeMQQueueOptions message. Does not implicitly {@link protos.opts.WriteGroupKubeMQQueueOptions.verify|verify} messages. + * @param message WriteGroupKubeMQQueueOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.encoding.IJSONSchemaSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupKubeMQQueueOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified JSONSchemaSettings message, length delimited. Does not implicitly {@link protos.encoding.JSONSchemaSettings.verify|verify} messages. - * @param message JSONSchemaSettings message or plain object to encode + * Encodes the specified WriteGroupKubeMQQueueOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupKubeMQQueueOptions.verify|verify} messages. + * @param message WriteGroupKubeMQQueueOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.encoding.IJSONSchemaSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupKubeMQQueueOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a JSONSchemaSettings message from the specified reader or buffer. + * Decodes a WriteGroupKubeMQQueueOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns JSONSchemaSettings + * @returns WriteGroupKubeMQQueueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.JSONSchemaSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupKubeMQQueueOptions; /** - * Decodes a JSONSchemaSettings message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupKubeMQQueueOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns JSONSchemaSettings + * @returns WriteGroupKubeMQQueueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.JSONSchemaSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupKubeMQQueueOptions; /** - * Verifies a JSONSchemaSettings message. + * Verifies a WriteGroupKubeMQQueueOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a JSONSchemaSettings message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupKubeMQQueueOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns JSONSchemaSettings + * @returns WriteGroupKubeMQQueueOptions */ - public static fromObject(object: { [k: string]: any }): protos.encoding.JSONSchemaSettings; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupKubeMQQueueOptions; /** - * Creates a plain object from a JSONSchemaSettings message. Also converts values to other types if specified. - * @param message JSONSchemaSettings + * Creates a plain object from a WriteGroupKubeMQQueueOptions message. Also converts values to other types if specified. + * @param message WriteGroupKubeMQQueueOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.encoding.JSONSchemaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupKubeMQQueueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this JSONSchemaSettings to JSON. + * Converts this WriteGroupKubeMQQueueOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CloudEventSettings. */ - interface ICloudEventSettings { - - /** CloudEventSettings ceId */ - ceId?: (string|null); - - /** CloudEventSettings ceSource */ - ceSource?: (string|null); - - /** CloudEventSettings ceType */ - ceType?: (string|null); - - /** CloudEventSettings ceSubject */ - ceSubject?: (string|null); - - /** CloudEventSettings ceSpecVersion */ - ceSpecVersion?: (string|null); + /** Properties of a WriteGroupAWSKinesisOptions. */ + interface IWriteGroupAWSKinesisOptions { - /** CloudEventSettings ceDataContentType */ - ceDataContentType?: (string|null); + /** WriteGroupAWSKinesisOptions _conn */ + _conn?: (protos.args.IAWSKinesisConn|null); - /** CloudEventSettings ceDataSchema */ - ceDataSchema?: (string|null); + /** WriteGroupAWSKinesisOptions args */ + args?: (protos.args.IAWSKinesisWriteArgs|null); } - /** Represents a CloudEventSettings. */ - class CloudEventSettings implements ICloudEventSettings { + /** Represents a WriteGroupAWSKinesisOptions. */ + class WriteGroupAWSKinesisOptions implements IWriteGroupAWSKinesisOptions { /** - * Constructs a new CloudEventSettings. + * Constructs a new WriteGroupAWSKinesisOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.encoding.ICloudEventSettings); - - /** CloudEventSettings ceId. */ - public ceId: string; - - /** CloudEventSettings ceSource. */ - public ceSource: string; - - /** CloudEventSettings ceType. */ - public ceType: string; - - /** CloudEventSettings ceSubject. */ - public ceSubject: string; - - /** CloudEventSettings ceSpecVersion. */ - public ceSpecVersion: string; + constructor(properties?: protos.opts.IWriteGroupAWSKinesisOptions); - /** CloudEventSettings ceDataContentType. */ - public ceDataContentType: string; + /** WriteGroupAWSKinesisOptions _conn. */ + public _conn?: (protos.args.IAWSKinesisConn|null); - /** CloudEventSettings ceDataSchema. */ - public ceDataSchema: string; + /** WriteGroupAWSKinesisOptions args. */ + public args?: (protos.args.IAWSKinesisWriteArgs|null); /** - * Creates a new CloudEventSettings instance using the specified properties. + * Creates a new WriteGroupAWSKinesisOptions instance using the specified properties. * @param [properties] Properties to set - * @returns CloudEventSettings instance + * @returns WriteGroupAWSKinesisOptions instance */ - public static create(properties?: protos.encoding.ICloudEventSettings): protos.encoding.CloudEventSettings; + public static create(properties?: protos.opts.IWriteGroupAWSKinesisOptions): protos.opts.WriteGroupAWSKinesisOptions; /** - * Encodes the specified CloudEventSettings message. Does not implicitly {@link protos.encoding.CloudEventSettings.verify|verify} messages. - * @param message CloudEventSettings message or plain object to encode + * Encodes the specified WriteGroupAWSKinesisOptions message. Does not implicitly {@link protos.opts.WriteGroupAWSKinesisOptions.verify|verify} messages. + * @param message WriteGroupAWSKinesisOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.encoding.ICloudEventSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupAWSKinesisOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CloudEventSettings message, length delimited. Does not implicitly {@link protos.encoding.CloudEventSettings.verify|verify} messages. - * @param message CloudEventSettings message or plain object to encode + * Encodes the specified WriteGroupAWSKinesisOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAWSKinesisOptions.verify|verify} messages. + * @param message WriteGroupAWSKinesisOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.encoding.ICloudEventSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupAWSKinesisOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CloudEventSettings message from the specified reader or buffer. + * Decodes a WriteGroupAWSKinesisOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CloudEventSettings + * @returns WriteGroupAWSKinesisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.CloudEventSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupAWSKinesisOptions; /** - * Decodes a CloudEventSettings message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupAWSKinesisOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CloudEventSettings + * @returns WriteGroupAWSKinesisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.CloudEventSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupAWSKinesisOptions; /** - * Verifies a CloudEventSettings message. + * Verifies a WriteGroupAWSKinesisOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CloudEventSettings message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupAWSKinesisOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CloudEventSettings + * @returns WriteGroupAWSKinesisOptions */ - public static fromObject(object: { [k: string]: any }): protos.encoding.CloudEventSettings; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupAWSKinesisOptions; /** - * Creates a plain object from a CloudEventSettings message. Also converts values to other types if specified. - * @param message CloudEventSettings + * Creates a plain object from a WriteGroupAWSKinesisOptions message. Also converts values to other types if specified. + * @param message WriteGroupAWSKinesisOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.encoding.CloudEventSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupAWSKinesisOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CloudEventSettings to JSON. + * Converts this WriteGroupAWSKinesisOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EncodeOptions. */ - interface IEncodeOptions { - - /** EncodeOptions schemaId */ - schemaId?: (string|null); - - /** EncodeOptions encodeType */ - encodeType?: (protos.encoding.EncodeType|null); - - /** EncodeOptions protobufSettings */ - protobufSettings?: (protos.encoding.IProtobufSettings|null); + /** Properties of a WriteGroupMemphisOptions. */ + interface IWriteGroupMemphisOptions { - /** EncodeOptions avroSettings */ - avroSettings?: (protos.encoding.IAvroSettings|null); + /** WriteGroupMemphisOptions _conn */ + _conn?: (protos.args.IMemphisConn|null); - /** EncodeOptions cloudeventSettings */ - cloudeventSettings?: (protos.encoding.ICloudEventSettings|null); + /** WriteGroupMemphisOptions args */ + args?: (protos.args.IMemphisWriteArgs|null); } - /** Represents an EncodeOptions. */ - class EncodeOptions implements IEncodeOptions { + /** Represents a WriteGroupMemphisOptions. */ + class WriteGroupMemphisOptions implements IWriteGroupMemphisOptions { /** - * Constructs a new EncodeOptions. + * Constructs a new WriteGroupMemphisOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.encoding.IEncodeOptions); - - /** EncodeOptions schemaId. */ - public schemaId: string; - - /** EncodeOptions encodeType. */ - public encodeType: protos.encoding.EncodeType; - - /** EncodeOptions protobufSettings. */ - public protobufSettings?: (protos.encoding.IProtobufSettings|null); + constructor(properties?: protos.opts.IWriteGroupMemphisOptions); - /** EncodeOptions avroSettings. */ - public avroSettings?: (protos.encoding.IAvroSettings|null); + /** WriteGroupMemphisOptions _conn. */ + public _conn?: (protos.args.IMemphisConn|null); - /** EncodeOptions cloudeventSettings. */ - public cloudeventSettings?: (protos.encoding.ICloudEventSettings|null); + /** WriteGroupMemphisOptions args. */ + public args?: (protos.args.IMemphisWriteArgs|null); /** - * Creates a new EncodeOptions instance using the specified properties. + * Creates a new WriteGroupMemphisOptions instance using the specified properties. * @param [properties] Properties to set - * @returns EncodeOptions instance + * @returns WriteGroupMemphisOptions instance */ - public static create(properties?: protos.encoding.IEncodeOptions): protos.encoding.EncodeOptions; + public static create(properties?: protos.opts.IWriteGroupMemphisOptions): protos.opts.WriteGroupMemphisOptions; /** - * Encodes the specified EncodeOptions message. Does not implicitly {@link protos.encoding.EncodeOptions.verify|verify} messages. - * @param message EncodeOptions message or plain object to encode + * Encodes the specified WriteGroupMemphisOptions message. Does not implicitly {@link protos.opts.WriteGroupMemphisOptions.verify|verify} messages. + * @param message WriteGroupMemphisOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.encoding.IEncodeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IWriteGroupMemphisOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EncodeOptions message, length delimited. Does not implicitly {@link protos.encoding.EncodeOptions.verify|verify} messages. - * @param message EncodeOptions message or plain object to encode + * Encodes the specified WriteGroupMemphisOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupMemphisOptions.verify|verify} messages. + * @param message WriteGroupMemphisOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.encoding.IEncodeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IWriteGroupMemphisOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EncodeOptions message from the specified reader or buffer. + * Decodes a WriteGroupMemphisOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EncodeOptions + * @returns WriteGroupMemphisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.EncodeOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.WriteGroupMemphisOptions; /** - * Decodes an EncodeOptions message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupMemphisOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EncodeOptions + * @returns WriteGroupMemphisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.EncodeOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.WriteGroupMemphisOptions; /** - * Verifies an EncodeOptions message. + * Verifies a WriteGroupMemphisOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an EncodeOptions message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupMemphisOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EncodeOptions + * @returns WriteGroupMemphisOptions */ - public static fromObject(object: { [k: string]: any }): protos.encoding.EncodeOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.WriteGroupMemphisOptions; /** - * Creates a plain object from an EncodeOptions message. Also converts values to other types if specified. - * @param message EncodeOptions + * Creates a plain object from a WriteGroupMemphisOptions message. Also converts values to other types if specified. + * @param message WriteGroupMemphisOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.encoding.EncodeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.WriteGroupMemphisOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EncodeOptions to JSON. + * Converts this WriteGroupMemphisOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DecodeOptions. */ - interface IDecodeOptions { + /** Properties of a ConnectionOptions. */ + interface IConnectionOptions { - /** DecodeOptions schemaId */ - schemaId?: (string|null); + /** ConnectionOptions name */ + name?: (string|null); - /** DecodeOptions decodeType */ - decodeType?: (protos.encoding.DecodeType|null); + /** ConnectionOptions notes */ + notes?: (string|null); - /** DecodeOptions protobufSettings */ - protobufSettings?: (protos.encoding.IProtobufSettings|null); + /** ConnectionOptions kafka */ + kafka?: (protos.args.IKafkaConn|null); - /** DecodeOptions avroSettings */ - avroSettings?: (protos.encoding.IAvroSettings|null); + /** ConnectionOptions activeMq */ + activeMq?: (protos.args.IActiveMQConn|null); - /** DecodeOptions thriftSettings */ - thriftSettings?: (protos.encoding.IThriftSettings|null); + /** ConnectionOptions awsSqs */ + awsSqs?: (protos.args.IAWSSQSConn|null); + + /** ConnectionOptions awsSns */ + awsSns?: (protos.args.IAWSSNSConn|null); + + /** ConnectionOptions mongo */ + mongo?: (protos.args.IMongoConn|null); + + /** ConnectionOptions nats */ + nats?: (protos.args.INatsConn|null); + + /** ConnectionOptions natsStreaming */ + natsStreaming?: (protos.args.INatsStreamingConn|null); + + /** ConnectionOptions nsq */ + nsq?: (protos.args.INSQConn|null); + + /** ConnectionOptions postgres */ + postgres?: (protos.args.IPostgresConn|null); + + /** ConnectionOptions pulsar */ + pulsar?: (protos.args.IPulsarConn|null); + + /** ConnectionOptions rabbit */ + rabbit?: (protos.args.IRabbitConn|null); + + /** ConnectionOptions rabbitStreams */ + rabbitStreams?: (protos.args.IRabbitStreamsConn|null); + + /** ConnectionOptions redisPubsub */ + redisPubsub?: (protos.args.IRedisPubSubConn|null); + + /** ConnectionOptions redisStreams */ + redisStreams?: (protos.args.IRedisStreamsConn|null); + + /** ConnectionOptions azureEventHub */ + azureEventHub?: (protos.args.IAzureEventHubConn|null); + + /** ConnectionOptions azureServiceBus */ + azureServiceBus?: (protos.args.IAzureServiceBusConn|null); + + /** ConnectionOptions mqtt */ + mqtt?: (protos.args.IMQTTConn|null); + + /** ConnectionOptions kubemqQueue */ + kubemqQueue?: (protos.args.IKubeMQQueueConn|null); + + /** ConnectionOptions gcpPubsub */ + gcpPubsub?: (protos.args.IGCPPubSubConn|null); + + /** ConnectionOptions natsJetstream */ + natsJetstream?: (protos.args.INatsJetstreamConn|null); + + /** ConnectionOptions awsKinesis */ + awsKinesis?: (protos.args.IAWSKinesisConn|null); + + /** ConnectionOptions memphis */ + memphis?: (protos.args.IMemphisConn|null); + + /** ConnectionOptions _id */ + _id?: (string|null); } - /** Represents a DecodeOptions. */ - class DecodeOptions implements IDecodeOptions { + /** Represents a ConnectionOptions. */ + class ConnectionOptions implements IConnectionOptions { /** - * Constructs a new DecodeOptions. + * Constructs a new ConnectionOptions. * @param [properties] Properties to set */ - constructor(properties?: protos.encoding.IDecodeOptions); + constructor(properties?: protos.opts.IConnectionOptions); - /** DecodeOptions schemaId. */ - public schemaId: string; + /** ConnectionOptions name. */ + public name: string; - /** DecodeOptions decodeType. */ - public decodeType: protos.encoding.DecodeType; + /** ConnectionOptions notes. */ + public notes: string; - /** DecodeOptions protobufSettings. */ - public protobufSettings?: (protos.encoding.IProtobufSettings|null); + /** ConnectionOptions kafka. */ + public kafka?: (protos.args.IKafkaConn|null); - /** DecodeOptions avroSettings. */ - public avroSettings?: (protos.encoding.IAvroSettings|null); + /** ConnectionOptions activeMq. */ + public activeMq?: (protos.args.IActiveMQConn|null); - /** DecodeOptions thriftSettings. */ - public thriftSettings?: (protos.encoding.IThriftSettings|null); + /** ConnectionOptions awsSqs. */ + public awsSqs?: (protos.args.IAWSSQSConn|null); + + /** ConnectionOptions awsSns. */ + public awsSns?: (protos.args.IAWSSNSConn|null); + + /** ConnectionOptions mongo. */ + public mongo?: (protos.args.IMongoConn|null); + + /** ConnectionOptions nats. */ + public nats?: (protos.args.INatsConn|null); + + /** ConnectionOptions natsStreaming. */ + public natsStreaming?: (protos.args.INatsStreamingConn|null); + + /** ConnectionOptions nsq. */ + public nsq?: (protos.args.INSQConn|null); + + /** ConnectionOptions postgres. */ + public postgres?: (protos.args.IPostgresConn|null); + + /** ConnectionOptions pulsar. */ + public pulsar?: (protos.args.IPulsarConn|null); + + /** ConnectionOptions rabbit. */ + public rabbit?: (protos.args.IRabbitConn|null); + + /** ConnectionOptions rabbitStreams. */ + public rabbitStreams?: (protos.args.IRabbitStreamsConn|null); + + /** ConnectionOptions redisPubsub. */ + public redisPubsub?: (protos.args.IRedisPubSubConn|null); + + /** ConnectionOptions redisStreams. */ + public redisStreams?: (protos.args.IRedisStreamsConn|null); + + /** ConnectionOptions azureEventHub. */ + public azureEventHub?: (protos.args.IAzureEventHubConn|null); + + /** ConnectionOptions azureServiceBus. */ + public azureServiceBus?: (protos.args.IAzureServiceBusConn|null); + + /** ConnectionOptions mqtt. */ + public mqtt?: (protos.args.IMQTTConn|null); + + /** ConnectionOptions kubemqQueue. */ + public kubemqQueue?: (protos.args.IKubeMQQueueConn|null); + + /** ConnectionOptions gcpPubsub. */ + public gcpPubsub?: (protos.args.IGCPPubSubConn|null); + + /** ConnectionOptions natsJetstream. */ + public natsJetstream?: (protos.args.INatsJetstreamConn|null); + + /** ConnectionOptions awsKinesis. */ + public awsKinesis?: (protos.args.IAWSKinesisConn|null); + + /** ConnectionOptions memphis. */ + public memphis?: (protos.args.IMemphisConn|null); + + /** ConnectionOptions _id. */ + public _id: string; + + /** ConnectionOptions conn. */ + public conn?: ("kafka"|"activeMq"|"awsSqs"|"awsSns"|"mongo"|"nats"|"natsStreaming"|"nsq"|"postgres"|"pulsar"|"rabbit"|"rabbitStreams"|"redisPubsub"|"redisStreams"|"azureEventHub"|"azureServiceBus"|"mqtt"|"kubemqQueue"|"gcpPubsub"|"natsJetstream"|"awsKinesis"|"memphis"); /** - * Creates a new DecodeOptions instance using the specified properties. + * Creates a new ConnectionOptions instance using the specified properties. * @param [properties] Properties to set - * @returns DecodeOptions instance + * @returns ConnectionOptions instance */ - public static create(properties?: protos.encoding.IDecodeOptions): protos.encoding.DecodeOptions; + public static create(properties?: protos.opts.IConnectionOptions): protos.opts.ConnectionOptions; /** - * Encodes the specified DecodeOptions message. Does not implicitly {@link protos.encoding.DecodeOptions.verify|verify} messages. - * @param message DecodeOptions message or plain object to encode + * Encodes the specified ConnectionOptions message. Does not implicitly {@link protos.opts.ConnectionOptions.verify|verify} messages. + * @param message ConnectionOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: protos.encoding.IDecodeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: protos.opts.IConnectionOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DecodeOptions message, length delimited. Does not implicitly {@link protos.encoding.DecodeOptions.verify|verify} messages. - * @param message DecodeOptions message or plain object to encode + * Encodes the specified ConnectionOptions message, length delimited. Does not implicitly {@link protos.opts.ConnectionOptions.verify|verify} messages. + * @param message ConnectionOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: protos.encoding.IDecodeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: protos.opts.IConnectionOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DecodeOptions message from the specified reader or buffer. + * Decodes a ConnectionOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DecodeOptions + * @returns ConnectionOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.encoding.DecodeOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): protos.opts.ConnectionOptions; /** - * Decodes a DecodeOptions message from the specified reader or buffer, length delimited. + * Decodes a ConnectionOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DecodeOptions + * @returns ConnectionOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.encoding.DecodeOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): protos.opts.ConnectionOptions; /** - * Verifies a DecodeOptions message. + * Verifies a ConnectionOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DecodeOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ConnectionOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DecodeOptions + * @returns ConnectionOptions */ - public static fromObject(object: { [k: string]: any }): protos.encoding.DecodeOptions; + public static fromObject(object: { [k: string]: any }): protos.opts.ConnectionOptions; /** - * Creates a plain object from a DecodeOptions message. Also converts values to other types if specified. - * @param message DecodeOptions + * Creates a plain object from a ConnectionOptions message. Also converts values to other types if specified. + * @param message ConnectionOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: protos.encoding.DecodeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: protos.opts.ConnectionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DecodeOptions to JSON. + * Converts this ConnectionOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; diff --git a/build/ts/plumber-schemas.js b/build/ts/plumber-schemas.js index b58f0a5..5bfba77 100644 --- a/build/ts/plumber-schemas.js +++ b/build/ts/plumber-schemas.js @@ -18,3230 +18,1940 @@ $root.protos = (function() { */ var protos = {}; - protos.PlumberServer = (function() { + protos.args = (function() { /** - * Constructs a new PlumberServer service. + * Namespace args. * @memberof protos - * @classdesc Represents a PlumberServer - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @namespace */ - function PlumberServer(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (PlumberServer.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PlumberServer; + var args = {}; - /** - * Creates new PlumberServer service using the specified rpc implementation. - * @function create - * @memberof protos.PlumberServer - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {PlumberServer} RPC service. Useful where requests and/or responses are streamed. - */ - PlumberServer.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + args.ActiveMQConn = (function() { - /** - * Callback as used by {@link protos.PlumberServer#getAllConnections}. - * @memberof protos.PlumberServer - * @typedef GetAllConnectionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetAllConnectionsResponse} [response] GetAllConnectionsResponse - */ + /** + * Properties of an ActiveMQConn. + * @memberof protos.args + * @interface IActiveMQConn + * @property {string|null} [address] ActiveMQConn address + */ - /** - * Calls GetAllConnections. - * @function getAllConnections - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetAllConnectionsRequest} request GetAllConnectionsRequest message or plain object - * @param {protos.PlumberServer.GetAllConnectionsCallback} callback Node-style callback called with the error, if any, and GetAllConnectionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.getAllConnections = function getAllConnections(request, callback) { - return this.rpcCall(getAllConnections, $root.protos.GetAllConnectionsRequest, $root.protos.GetAllConnectionsResponse, request, callback); - }, "name", { value: "GetAllConnections" }); + /** + * Constructs a new ActiveMQConn. + * @memberof protos.args + * @classdesc Represents an ActiveMQConn. + * @implements IActiveMQConn + * @constructor + * @param {protos.args.IActiveMQConn=} [properties] Properties to set + */ + function ActiveMQConn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls GetAllConnections. - * @function getAllConnections - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetAllConnectionsRequest} request GetAllConnectionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * ActiveMQConn address. + * @member {string} address + * @memberof protos.args.ActiveMQConn + * @instance + */ + ActiveMQConn.prototype.address = ""; - /** - * Callback as used by {@link protos.PlumberServer#getConnection}. - * @memberof protos.PlumberServer - * @typedef GetConnectionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetConnectionResponse} [response] GetConnectionResponse - */ + /** + * Creates a new ActiveMQConn instance using the specified properties. + * @function create + * @memberof protos.args.ActiveMQConn + * @static + * @param {protos.args.IActiveMQConn=} [properties] Properties to set + * @returns {protos.args.ActiveMQConn} ActiveMQConn instance + */ + ActiveMQConn.create = function create(properties) { + return new ActiveMQConn(properties); + }; - /** - * Calls GetConnection. - * @function getConnection - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetConnectionRequest} request GetConnectionRequest message or plain object - * @param {protos.PlumberServer.GetConnectionCallback} callback Node-style callback called with the error, if any, and GetConnectionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.getConnection = function getConnection(request, callback) { - return this.rpcCall(getConnection, $root.protos.GetConnectionRequest, $root.protos.GetConnectionResponse, request, callback); - }, "name", { value: "GetConnection" }); + /** + * Encodes the specified ActiveMQConn message. Does not implicitly {@link protos.args.ActiveMQConn.verify|verify} messages. + * @function encode + * @memberof protos.args.ActiveMQConn + * @static + * @param {protos.args.IActiveMQConn} message ActiveMQConn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveMQConn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + return writer; + }; - /** - * Calls GetConnection. - * @function getConnection - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetConnectionRequest} request GetConnectionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified ActiveMQConn message, length delimited. Does not implicitly {@link protos.args.ActiveMQConn.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.ActiveMQConn + * @static + * @param {protos.args.IActiveMQConn} message ActiveMQConn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveMQConn.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Callback as used by {@link protos.PlumberServer#createConnection}. - * @memberof protos.PlumberServer - * @typedef CreateConnectionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.CreateConnectionResponse} [response] CreateConnectionResponse - */ + /** + * Decodes an ActiveMQConn message from the specified reader or buffer. + * @function decode + * @memberof protos.args.ActiveMQConn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.args.ActiveMQConn} ActiveMQConn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveMQConn.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.ActiveMQConn(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.address = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls CreateConnection. - * @function createConnection - * @memberof protos.PlumberServer - * @instance - * @param {protos.ICreateConnectionRequest} request CreateConnectionRequest message or plain object - * @param {protos.PlumberServer.CreateConnectionCallback} callback Node-style callback called with the error, if any, and CreateConnectionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.createConnection = function createConnection(request, callback) { - return this.rpcCall(createConnection, $root.protos.CreateConnectionRequest, $root.protos.CreateConnectionResponse, request, callback); - }, "name", { value: "CreateConnection" }); + /** + * Decodes an ActiveMQConn message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.args.ActiveMQConn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.args.ActiveMQConn} ActiveMQConn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveMQConn.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls CreateConnection. - * @function createConnection - * @memberof protos.PlumberServer - * @instance - * @param {protos.ICreateConnectionRequest} request CreateConnectionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Verifies an ActiveMQConn message. + * @function verify + * @memberof protos.args.ActiveMQConn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ActiveMQConn.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + return null; + }; - /** - * Callback as used by {@link protos.PlumberServer#testConnection}. - * @memberof protos.PlumberServer - * @typedef TestConnectionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.TestConnectionResponse} [response] TestConnectionResponse - */ + /** + * Creates an ActiveMQConn message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.ActiveMQConn + * @static + * @param {Object.} object Plain object + * @returns {protos.args.ActiveMQConn} ActiveMQConn + */ + ActiveMQConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.ActiveMQConn) + return object; + var message = new $root.protos.args.ActiveMQConn(); + if (object.address != null) + message.address = String(object.address); + return message; + }; - /** - * Calls TestConnection. - * @function testConnection - * @memberof protos.PlumberServer - * @instance - * @param {protos.ITestConnectionRequest} request TestConnectionRequest message or plain object - * @param {protos.PlumberServer.TestConnectionCallback} callback Node-style callback called with the error, if any, and TestConnectionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.testConnection = function testConnection(request, callback) { - return this.rpcCall(testConnection, $root.protos.TestConnectionRequest, $root.protos.TestConnectionResponse, request, callback); - }, "name", { value: "TestConnection" }); + /** + * Creates a plain object from an ActiveMQConn message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.ActiveMQConn + * @static + * @param {protos.args.ActiveMQConn} message ActiveMQConn + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ActiveMQConn.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.address = ""; + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + return object; + }; - /** - * Calls TestConnection. - * @function testConnection - * @memberof protos.PlumberServer - * @instance - * @param {protos.ITestConnectionRequest} request TestConnectionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Converts this ActiveMQConn to JSON. + * @function toJSON + * @memberof protos.args.ActiveMQConn + * @instance + * @returns {Object.} JSON object + */ + ActiveMQConn.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link protos.PlumberServer#updateConnection}. - * @memberof protos.PlumberServer - * @typedef UpdateConnectionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.UpdateConnectionResponse} [response] UpdateConnectionResponse - */ + return ActiveMQConn; + })(); - /** - * Calls UpdateConnection. - * @function updateConnection - * @memberof protos.PlumberServer - * @instance - * @param {protos.IUpdateConnectionRequest} request UpdateConnectionRequest message or plain object - * @param {protos.PlumberServer.UpdateConnectionCallback} callback Node-style callback called with the error, if any, and UpdateConnectionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.updateConnection = function updateConnection(request, callback) { - return this.rpcCall(updateConnection, $root.protos.UpdateConnectionRequest, $root.protos.UpdateConnectionResponse, request, callback); - }, "name", { value: "UpdateConnection" }); + args.ActiveMQReadArgs = (function() { - /** - * Calls UpdateConnection. - * @function updateConnection - * @memberof protos.PlumberServer - * @instance - * @param {protos.IUpdateConnectionRequest} request UpdateConnectionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Properties of an ActiveMQReadArgs. + * @memberof protos.args + * @interface IActiveMQReadArgs + * @property {string|null} [topic] ActiveMQReadArgs topic + * @property {string|null} [queue] ActiveMQReadArgs queue + */ - /** - * Callback as used by {@link protos.PlumberServer#deleteConnection}. - * @memberof protos.PlumberServer - * @typedef DeleteConnectionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.DeleteConnectionResponse} [response] DeleteConnectionResponse - */ + /** + * Constructs a new ActiveMQReadArgs. + * @memberof protos.args + * @classdesc Represents an ActiveMQReadArgs. + * @implements IActiveMQReadArgs + * @constructor + * @param {protos.args.IActiveMQReadArgs=} [properties] Properties to set + */ + function ActiveMQReadArgs(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls DeleteConnection. - * @function deleteConnection - * @memberof protos.PlumberServer - * @instance - * @param {protos.IDeleteConnectionRequest} request DeleteConnectionRequest message or plain object - * @param {protos.PlumberServer.DeleteConnectionCallback} callback Node-style callback called with the error, if any, and DeleteConnectionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.deleteConnection = function deleteConnection(request, callback) { - return this.rpcCall(deleteConnection, $root.protos.DeleteConnectionRequest, $root.protos.DeleteConnectionResponse, request, callback); - }, "name", { value: "DeleteConnection" }); + /** + * ActiveMQReadArgs topic. + * @member {string} topic + * @memberof protos.args.ActiveMQReadArgs + * @instance + */ + ActiveMQReadArgs.prototype.topic = ""; - /** - * Calls DeleteConnection. - * @function deleteConnection - * @memberof protos.PlumberServer - * @instance - * @param {protos.IDeleteConnectionRequest} request DeleteConnectionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * ActiveMQReadArgs queue. + * @member {string} queue + * @memberof protos.args.ActiveMQReadArgs + * @instance + */ + ActiveMQReadArgs.prototype.queue = ""; - /** - * Callback as used by {@link protos.PlumberServer#getAllRelays}. - * @memberof protos.PlumberServer - * @typedef GetAllRelaysCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetAllRelaysResponse} [response] GetAllRelaysResponse - */ + /** + * Creates a new ActiveMQReadArgs instance using the specified properties. + * @function create + * @memberof protos.args.ActiveMQReadArgs + * @static + * @param {protos.args.IActiveMQReadArgs=} [properties] Properties to set + * @returns {protos.args.ActiveMQReadArgs} ActiveMQReadArgs instance + */ + ActiveMQReadArgs.create = function create(properties) { + return new ActiveMQReadArgs(properties); + }; - /** - * Calls GetAllRelays. - * @function getAllRelays - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetAllRelaysRequest} request GetAllRelaysRequest message or plain object - * @param {protos.PlumberServer.GetAllRelaysCallback} callback Node-style callback called with the error, if any, and GetAllRelaysResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.getAllRelays = function getAllRelays(request, callback) { - return this.rpcCall(getAllRelays, $root.protos.GetAllRelaysRequest, $root.protos.GetAllRelaysResponse, request, callback); - }, "name", { value: "GetAllRelays" }); + /** + * Encodes the specified ActiveMQReadArgs message. Does not implicitly {@link protos.args.ActiveMQReadArgs.verify|verify} messages. + * @function encode + * @memberof protos.args.ActiveMQReadArgs + * @static + * @param {protos.args.IActiveMQReadArgs} message ActiveMQReadArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveMQReadArgs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); + if (message.queue != null && Object.hasOwnProperty.call(message, "queue")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.queue); + return writer; + }; - /** - * Calls GetAllRelays. - * @function getAllRelays - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetAllRelaysRequest} request GetAllRelaysRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified ActiveMQReadArgs message, length delimited. Does not implicitly {@link protos.args.ActiveMQReadArgs.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.ActiveMQReadArgs + * @static + * @param {protos.args.IActiveMQReadArgs} message ActiveMQReadArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveMQReadArgs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Callback as used by {@link protos.PlumberServer#getRelay}. - * @memberof protos.PlumberServer - * @typedef GetRelayCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetRelayResponse} [response] GetRelayResponse - */ + /** + * Decodes an ActiveMQReadArgs message from the specified reader or buffer. + * @function decode + * @memberof protos.args.ActiveMQReadArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.args.ActiveMQReadArgs} ActiveMQReadArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveMQReadArgs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.ActiveMQReadArgs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.topic = reader.string(); + break; + case 2: + message.queue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls GetRelay. - * @function getRelay - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetRelayRequest} request GetRelayRequest message or plain object - * @param {protos.PlumberServer.GetRelayCallback} callback Node-style callback called with the error, if any, and GetRelayResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.getRelay = function getRelay(request, callback) { - return this.rpcCall(getRelay, $root.protos.GetRelayRequest, $root.protos.GetRelayResponse, request, callback); - }, "name", { value: "GetRelay" }); + /** + * Decodes an ActiveMQReadArgs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.args.ActiveMQReadArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.args.ActiveMQReadArgs} ActiveMQReadArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveMQReadArgs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls GetRelay. - * @function getRelay - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetRelayRequest} request GetRelayRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Verifies an ActiveMQReadArgs message. + * @function verify + * @memberof protos.args.ActiveMQReadArgs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ActiveMQReadArgs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.topic != null && message.hasOwnProperty("topic")) + if (!$util.isString(message.topic)) + return "topic: string expected"; + if (message.queue != null && message.hasOwnProperty("queue")) + if (!$util.isString(message.queue)) + return "queue: string expected"; + return null; + }; - /** - * Callback as used by {@link protos.PlumberServer#createRelay}. - * @memberof protos.PlumberServer - * @typedef CreateRelayCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.CreateRelayResponse} [response] CreateRelayResponse - */ + /** + * Creates an ActiveMQReadArgs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.ActiveMQReadArgs + * @static + * @param {Object.} object Plain object + * @returns {protos.args.ActiveMQReadArgs} ActiveMQReadArgs + */ + ActiveMQReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.ActiveMQReadArgs) + return object; + var message = new $root.protos.args.ActiveMQReadArgs(); + if (object.topic != null) + message.topic = String(object.topic); + if (object.queue != null) + message.queue = String(object.queue); + return message; + }; - /** - * Calls CreateRelay. - * @function createRelay - * @memberof protos.PlumberServer - * @instance - * @param {protos.ICreateRelayRequest} request CreateRelayRequest message or plain object - * @param {protos.PlumberServer.CreateRelayCallback} callback Node-style callback called with the error, if any, and CreateRelayResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.createRelay = function createRelay(request, callback) { - return this.rpcCall(createRelay, $root.protos.CreateRelayRequest, $root.protos.CreateRelayResponse, request, callback); - }, "name", { value: "CreateRelay" }); + /** + * Creates a plain object from an ActiveMQReadArgs message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.ActiveMQReadArgs + * @static + * @param {protos.args.ActiveMQReadArgs} message ActiveMQReadArgs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ActiveMQReadArgs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.topic = ""; + object.queue = ""; + } + if (message.topic != null && message.hasOwnProperty("topic")) + object.topic = message.topic; + if (message.queue != null && message.hasOwnProperty("queue")) + object.queue = message.queue; + return object; + }; - /** - * Calls CreateRelay. - * @function createRelay - * @memberof protos.PlumberServer - * @instance - * @param {protos.ICreateRelayRequest} request CreateRelayRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Converts this ActiveMQReadArgs to JSON. + * @function toJSON + * @memberof protos.args.ActiveMQReadArgs + * @instance + * @returns {Object.} JSON object + */ + ActiveMQReadArgs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link protos.PlumberServer#updateRelay}. - * @memberof protos.PlumberServer - * @typedef UpdateRelayCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.UpdateRelayResponse} [response] UpdateRelayResponse - */ + return ActiveMQReadArgs; + })(); - /** - * Calls UpdateRelay. - * @function updateRelay - * @memberof protos.PlumberServer - * @instance - * @param {protos.IUpdateRelayRequest} request UpdateRelayRequest message or plain object - * @param {protos.PlumberServer.UpdateRelayCallback} callback Node-style callback called with the error, if any, and UpdateRelayResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.updateRelay = function updateRelay(request, callback) { - return this.rpcCall(updateRelay, $root.protos.UpdateRelayRequest, $root.protos.UpdateRelayResponse, request, callback); - }, "name", { value: "UpdateRelay" }); + args.ActiveMQWriteArgs = (function() { - /** - * Calls UpdateRelay. - * @function updateRelay - * @memberof protos.PlumberServer - * @instance - * @param {protos.IUpdateRelayRequest} request UpdateRelayRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Properties of an ActiveMQWriteArgs. + * @memberof protos.args + * @interface IActiveMQWriteArgs + * @property {string|null} [topic] ActiveMQWriteArgs topic + * @property {string|null} [queue] ActiveMQWriteArgs queue + */ - /** - * Callback as used by {@link protos.PlumberServer#resumeRelay}. - * @memberof protos.PlumberServer - * @typedef ResumeRelayCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.ResumeRelayResponse} [response] ResumeRelayResponse - */ + /** + * Constructs a new ActiveMQWriteArgs. + * @memberof protos.args + * @classdesc Represents an ActiveMQWriteArgs. + * @implements IActiveMQWriteArgs + * @constructor + * @param {protos.args.IActiveMQWriteArgs=} [properties] Properties to set + */ + function ActiveMQWriteArgs(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls ResumeRelay. - * @function resumeRelay - * @memberof protos.PlumberServer - * @instance - * @param {protos.IResumeRelayRequest} request ResumeRelayRequest message or plain object - * @param {protos.PlumberServer.ResumeRelayCallback} callback Node-style callback called with the error, if any, and ResumeRelayResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.resumeRelay = function resumeRelay(request, callback) { - return this.rpcCall(resumeRelay, $root.protos.ResumeRelayRequest, $root.protos.ResumeRelayResponse, request, callback); - }, "name", { value: "ResumeRelay" }); + /** + * ActiveMQWriteArgs topic. + * @member {string} topic + * @memberof protos.args.ActiveMQWriteArgs + * @instance + */ + ActiveMQWriteArgs.prototype.topic = ""; - /** - * Calls ResumeRelay. - * @function resumeRelay - * @memberof protos.PlumberServer - * @instance - * @param {protos.IResumeRelayRequest} request ResumeRelayRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * ActiveMQWriteArgs queue. + * @member {string} queue + * @memberof protos.args.ActiveMQWriteArgs + * @instance + */ + ActiveMQWriteArgs.prototype.queue = ""; - /** - * Callback as used by {@link protos.PlumberServer#stopRelay}. - * @memberof protos.PlumberServer - * @typedef StopRelayCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.StopRelayResponse} [response] StopRelayResponse - */ + /** + * Creates a new ActiveMQWriteArgs instance using the specified properties. + * @function create + * @memberof protos.args.ActiveMQWriteArgs + * @static + * @param {protos.args.IActiveMQWriteArgs=} [properties] Properties to set + * @returns {protos.args.ActiveMQWriteArgs} ActiveMQWriteArgs instance + */ + ActiveMQWriteArgs.create = function create(properties) { + return new ActiveMQWriteArgs(properties); + }; - /** - * Calls StopRelay. - * @function stopRelay - * @memberof protos.PlumberServer - * @instance - * @param {protos.IStopRelayRequest} request StopRelayRequest message or plain object - * @param {protos.PlumberServer.StopRelayCallback} callback Node-style callback called with the error, if any, and StopRelayResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.stopRelay = function stopRelay(request, callback) { - return this.rpcCall(stopRelay, $root.protos.StopRelayRequest, $root.protos.StopRelayResponse, request, callback); - }, "name", { value: "StopRelay" }); + /** + * Encodes the specified ActiveMQWriteArgs message. Does not implicitly {@link protos.args.ActiveMQWriteArgs.verify|verify} messages. + * @function encode + * @memberof protos.args.ActiveMQWriteArgs + * @static + * @param {protos.args.IActiveMQWriteArgs} message ActiveMQWriteArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveMQWriteArgs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); + if (message.queue != null && Object.hasOwnProperty.call(message, "queue")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.queue); + return writer; + }; - /** - * Calls StopRelay. - * @function stopRelay - * @memberof protos.PlumberServer - * @instance - * @param {protos.IStopRelayRequest} request StopRelayRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified ActiveMQWriteArgs message, length delimited. Does not implicitly {@link protos.args.ActiveMQWriteArgs.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.ActiveMQWriteArgs + * @static + * @param {protos.args.IActiveMQWriteArgs} message ActiveMQWriteArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveMQWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Callback as used by {@link protos.PlumberServer#deleteRelay}. - * @memberof protos.PlumberServer - * @typedef DeleteRelayCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.DeleteRelayResponse} [response] DeleteRelayResponse - */ + /** + * Decodes an ActiveMQWriteArgs message from the specified reader or buffer. + * @function decode + * @memberof protos.args.ActiveMQWriteArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.args.ActiveMQWriteArgs} ActiveMQWriteArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveMQWriteArgs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.ActiveMQWriteArgs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.topic = reader.string(); + break; + case 2: + message.queue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls DeleteRelay. - * @function deleteRelay - * @memberof protos.PlumberServer - * @instance - * @param {protos.IDeleteRelayRequest} request DeleteRelayRequest message or plain object - * @param {protos.PlumberServer.DeleteRelayCallback} callback Node-style callback called with the error, if any, and DeleteRelayResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.deleteRelay = function deleteRelay(request, callback) { - return this.rpcCall(deleteRelay, $root.protos.DeleteRelayRequest, $root.protos.DeleteRelayResponse, request, callback); - }, "name", { value: "DeleteRelay" }); + /** + * Decodes an ActiveMQWriteArgs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.args.ActiveMQWriteArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.args.ActiveMQWriteArgs} ActiveMQWriteArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveMQWriteArgs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls DeleteRelay. - * @function deleteRelay - * @memberof protos.PlumberServer - * @instance - * @param {protos.IDeleteRelayRequest} request DeleteRelayRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Verifies an ActiveMQWriteArgs message. + * @function verify + * @memberof protos.args.ActiveMQWriteArgs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ActiveMQWriteArgs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.topic != null && message.hasOwnProperty("topic")) + if (!$util.isString(message.topic)) + return "topic: string expected"; + if (message.queue != null && message.hasOwnProperty("queue")) + if (!$util.isString(message.queue)) + return "queue: string expected"; + return null; + }; - /** - * Callback as used by {@link protos.PlumberServer#getTunnel}. - * @memberof protos.PlumberServer - * @typedef GetTunnelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetTunnelResponse} [response] GetTunnelResponse - */ + /** + * Creates an ActiveMQWriteArgs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.ActiveMQWriteArgs + * @static + * @param {Object.} object Plain object + * @returns {protos.args.ActiveMQWriteArgs} ActiveMQWriteArgs + */ + ActiveMQWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.ActiveMQWriteArgs) + return object; + var message = new $root.protos.args.ActiveMQWriteArgs(); + if (object.topic != null) + message.topic = String(object.topic); + if (object.queue != null) + message.queue = String(object.queue); + return message; + }; - /** - * Calls GetTunnel. - * @function getTunnel - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetTunnelRequest} request GetTunnelRequest message or plain object - * @param {protos.PlumberServer.GetTunnelCallback} callback Node-style callback called with the error, if any, and GetTunnelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.getTunnel = function getTunnel(request, callback) { - return this.rpcCall(getTunnel, $root.protos.GetTunnelRequest, $root.protos.GetTunnelResponse, request, callback); - }, "name", { value: "GetTunnel" }); + /** + * Creates a plain object from an ActiveMQWriteArgs message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.ActiveMQWriteArgs + * @static + * @param {protos.args.ActiveMQWriteArgs} message ActiveMQWriteArgs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ActiveMQWriteArgs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.topic = ""; + object.queue = ""; + } + if (message.topic != null && message.hasOwnProperty("topic")) + object.topic = message.topic; + if (message.queue != null && message.hasOwnProperty("queue")) + object.queue = message.queue; + return object; + }; - /** - * Calls GetTunnel. - * @function getTunnel - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetTunnelRequest} request GetTunnelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Converts this ActiveMQWriteArgs to JSON. + * @function toJSON + * @memberof protos.args.ActiveMQWriteArgs + * @instance + * @returns {Object.} JSON object + */ + ActiveMQWriteArgs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link protos.PlumberServer#getAllTunnels}. - * @memberof protos.PlumberServer - * @typedef GetAllTunnelsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetAllTunnelsResponse} [response] GetAllTunnelsResponse - */ + return ActiveMQWriteArgs; + })(); - /** - * Calls GetAllTunnels. - * @function getAllTunnels - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetAllTunnelsRequest} request GetAllTunnelsRequest message or plain object - * @param {protos.PlumberServer.GetAllTunnelsCallback} callback Node-style callback called with the error, if any, and GetAllTunnelsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.getAllTunnels = function getAllTunnels(request, callback) { - return this.rpcCall(getAllTunnels, $root.protos.GetAllTunnelsRequest, $root.protos.GetAllTunnelsResponse, request, callback); - }, "name", { value: "GetAllTunnels" }); + args.AWSKinesisConn = (function() { - /** - * Calls GetAllTunnels. - * @function getAllTunnels - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetAllTunnelsRequest} request GetAllTunnelsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Properties of a AWSKinesisConn. + * @memberof protos.args + * @interface IAWSKinesisConn + * @property {string|null} [awsRegion] AWSKinesisConn awsRegion + * @property {string|null} [awsAccessKeyId] AWSKinesisConn awsAccessKeyId + * @property {string|null} [awsSecretAccessKey] AWSKinesisConn awsSecretAccessKey + * @property {string|null} [awsProfile] AWSKinesisConn awsProfile + */ - /** - * Callback as used by {@link protos.PlumberServer#createTunnel}. - * @memberof protos.PlumberServer - * @typedef CreateTunnelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.CreateTunnelResponse} [response] CreateTunnelResponse - */ + /** + * Constructs a new AWSKinesisConn. + * @memberof protos.args + * @classdesc Represents a AWSKinesisConn. + * @implements IAWSKinesisConn + * @constructor + * @param {protos.args.IAWSKinesisConn=} [properties] Properties to set + */ + function AWSKinesisConn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls CreateTunnel. - * @function createTunnel - * @memberof protos.PlumberServer - * @instance - * @param {protos.ICreateTunnelRequest} request CreateTunnelRequest message or plain object - * @param {protos.PlumberServer.CreateTunnelCallback} callback Node-style callback called with the error, if any, and CreateTunnelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.createTunnel = function createTunnel(request, callback) { - return this.rpcCall(createTunnel, $root.protos.CreateTunnelRequest, $root.protos.CreateTunnelResponse, request, callback); - }, "name", { value: "CreateTunnel" }); + /** + * AWSKinesisConn awsRegion. + * @member {string} awsRegion + * @memberof protos.args.AWSKinesisConn + * @instance + */ + AWSKinesisConn.prototype.awsRegion = ""; - /** - * Calls CreateTunnel. - * @function createTunnel - * @memberof protos.PlumberServer - * @instance - * @param {protos.ICreateTunnelRequest} request CreateTunnelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * AWSKinesisConn awsAccessKeyId. + * @member {string} awsAccessKeyId + * @memberof protos.args.AWSKinesisConn + * @instance + */ + AWSKinesisConn.prototype.awsAccessKeyId = ""; - /** - * Callback as used by {@link protos.PlumberServer#stopTunnel}. - * @memberof protos.PlumberServer - * @typedef StopTunnelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.StopTunnelResponse} [response] StopTunnelResponse - */ + /** + * AWSKinesisConn awsSecretAccessKey. + * @member {string} awsSecretAccessKey + * @memberof protos.args.AWSKinesisConn + * @instance + */ + AWSKinesisConn.prototype.awsSecretAccessKey = ""; - /** - * Calls StopTunnel. - * @function stopTunnel - * @memberof protos.PlumberServer - * @instance - * @param {protos.IStopTunnelRequest} request StopTunnelRequest message or plain object - * @param {protos.PlumberServer.StopTunnelCallback} callback Node-style callback called with the error, if any, and StopTunnelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.stopTunnel = function stopTunnel(request, callback) { - return this.rpcCall(stopTunnel, $root.protos.StopTunnelRequest, $root.protos.StopTunnelResponse, request, callback); - }, "name", { value: "StopTunnel" }); + /** + * AWSKinesisConn awsProfile. + * @member {string} awsProfile + * @memberof protos.args.AWSKinesisConn + * @instance + */ + AWSKinesisConn.prototype.awsProfile = ""; - /** - * Calls StopTunnel. - * @function stopTunnel - * @memberof protos.PlumberServer - * @instance - * @param {protos.IStopTunnelRequest} request StopTunnelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a new AWSKinesisConn instance using the specified properties. + * @function create + * @memberof protos.args.AWSKinesisConn + * @static + * @param {protos.args.IAWSKinesisConn=} [properties] Properties to set + * @returns {protos.args.AWSKinesisConn} AWSKinesisConn instance + */ + AWSKinesisConn.create = function create(properties) { + return new AWSKinesisConn(properties); + }; - /** - * Callback as used by {@link protos.PlumberServer#resumeTunnel}. - * @memberof protos.PlumberServer - * @typedef ResumeTunnelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.ResumeTunnelResponse} [response] ResumeTunnelResponse - */ + /** + * Encodes the specified AWSKinesisConn message. Does not implicitly {@link protos.args.AWSKinesisConn.verify|verify} messages. + * @function encode + * @memberof protos.args.AWSKinesisConn + * @static + * @param {protos.args.IAWSKinesisConn} message AWSKinesisConn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AWSKinesisConn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.awsRegion != null && Object.hasOwnProperty.call(message, "awsRegion")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.awsRegion); + if (message.awsAccessKeyId != null && Object.hasOwnProperty.call(message, "awsAccessKeyId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.awsAccessKeyId); + if (message.awsSecretAccessKey != null && Object.hasOwnProperty.call(message, "awsSecretAccessKey")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.awsSecretAccessKey); + if (message.awsProfile != null && Object.hasOwnProperty.call(message, "awsProfile")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.awsProfile); + return writer; + }; - /** - * Calls ResumeTunnel. - * @function resumeTunnel - * @memberof protos.PlumberServer - * @instance - * @param {protos.IResumeTunnelRequest} request ResumeTunnelRequest message or plain object - * @param {protos.PlumberServer.ResumeTunnelCallback} callback Node-style callback called with the error, if any, and ResumeTunnelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.resumeTunnel = function resumeTunnel(request, callback) { - return this.rpcCall(resumeTunnel, $root.protos.ResumeTunnelRequest, $root.protos.ResumeTunnelResponse, request, callback); - }, "name", { value: "ResumeTunnel" }); + /** + * Encodes the specified AWSKinesisConn message, length delimited. Does not implicitly {@link protos.args.AWSKinesisConn.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.AWSKinesisConn + * @static + * @param {protos.args.IAWSKinesisConn} message AWSKinesisConn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AWSKinesisConn.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls ResumeTunnel. - * @function resumeTunnel - * @memberof protos.PlumberServer - * @instance - * @param {protos.IResumeTunnelRequest} request ResumeTunnelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a AWSKinesisConn message from the specified reader or buffer. + * @function decode + * @memberof protos.args.AWSKinesisConn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.args.AWSKinesisConn} AWSKinesisConn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AWSKinesisConn.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSKinesisConn(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.awsRegion = reader.string(); + break; + case 2: + message.awsAccessKeyId = reader.string(); + break; + case 3: + message.awsSecretAccessKey = reader.string(); + break; + case 4: + message.awsProfile = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Callback as used by {@link protos.PlumberServer#updateTunnel}. - * @memberof protos.PlumberServer - * @typedef UpdateTunnelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.UpdateTunnelResponse} [response] UpdateTunnelResponse - */ + /** + * Decodes a AWSKinesisConn message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.args.AWSKinesisConn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.args.AWSKinesisConn} AWSKinesisConn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AWSKinesisConn.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls UpdateTunnel. - * @function updateTunnel - * @memberof protos.PlumberServer - * @instance - * @param {protos.IUpdateTunnelRequest} request UpdateTunnelRequest message or plain object - * @param {protos.PlumberServer.UpdateTunnelCallback} callback Node-style callback called with the error, if any, and UpdateTunnelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.updateTunnel = function updateTunnel(request, callback) { - return this.rpcCall(updateTunnel, $root.protos.UpdateTunnelRequest, $root.protos.UpdateTunnelResponse, request, callback); - }, "name", { value: "UpdateTunnel" }); + /** + * Verifies a AWSKinesisConn message. + * @function verify + * @memberof protos.args.AWSKinesisConn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AWSKinesisConn.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.awsRegion != null && message.hasOwnProperty("awsRegion")) + if (!$util.isString(message.awsRegion)) + return "awsRegion: string expected"; + if (message.awsAccessKeyId != null && message.hasOwnProperty("awsAccessKeyId")) + if (!$util.isString(message.awsAccessKeyId)) + return "awsAccessKeyId: string expected"; + if (message.awsSecretAccessKey != null && message.hasOwnProperty("awsSecretAccessKey")) + if (!$util.isString(message.awsSecretAccessKey)) + return "awsSecretAccessKey: string expected"; + if (message.awsProfile != null && message.hasOwnProperty("awsProfile")) + if (!$util.isString(message.awsProfile)) + return "awsProfile: string expected"; + return null; + }; - /** - * Calls UpdateTunnel. - * @function updateTunnel - * @memberof protos.PlumberServer - * @instance - * @param {protos.IUpdateTunnelRequest} request UpdateTunnelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a AWSKinesisConn message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.AWSKinesisConn + * @static + * @param {Object.} object Plain object + * @returns {protos.args.AWSKinesisConn} AWSKinesisConn + */ + AWSKinesisConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AWSKinesisConn) + return object; + var message = new $root.protos.args.AWSKinesisConn(); + if (object.awsRegion != null) + message.awsRegion = String(object.awsRegion); + if (object.awsAccessKeyId != null) + message.awsAccessKeyId = String(object.awsAccessKeyId); + if (object.awsSecretAccessKey != null) + message.awsSecretAccessKey = String(object.awsSecretAccessKey); + if (object.awsProfile != null) + message.awsProfile = String(object.awsProfile); + return message; + }; - /** - * Callback as used by {@link protos.PlumberServer#deleteTunnel}. - * @memberof protos.PlumberServer - * @typedef DeleteTunnelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.DeleteTunnelResponse} [response] DeleteTunnelResponse - */ + /** + * Creates a plain object from a AWSKinesisConn message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.AWSKinesisConn + * @static + * @param {protos.args.AWSKinesisConn} message AWSKinesisConn + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AWSKinesisConn.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.awsRegion = ""; + object.awsAccessKeyId = ""; + object.awsSecretAccessKey = ""; + object.awsProfile = ""; + } + if (message.awsRegion != null && message.hasOwnProperty("awsRegion")) + object.awsRegion = message.awsRegion; + if (message.awsAccessKeyId != null && message.hasOwnProperty("awsAccessKeyId")) + object.awsAccessKeyId = message.awsAccessKeyId; + if (message.awsSecretAccessKey != null && message.hasOwnProperty("awsSecretAccessKey")) + object.awsSecretAccessKey = message.awsSecretAccessKey; + if (message.awsProfile != null && message.hasOwnProperty("awsProfile")) + object.awsProfile = message.awsProfile; + return object; + }; - /** - * Calls DeleteTunnel. - * @function deleteTunnel - * @memberof protos.PlumberServer - * @instance - * @param {protos.IDeleteTunnelRequest} request DeleteTunnelRequest message or plain object - * @param {protos.PlumberServer.DeleteTunnelCallback} callback Node-style callback called with the error, if any, and DeleteTunnelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.deleteTunnel = function deleteTunnel(request, callback) { - return this.rpcCall(deleteTunnel, $root.protos.DeleteTunnelRequest, $root.protos.DeleteTunnelResponse, request, callback); - }, "name", { value: "DeleteTunnel" }); + /** + * Converts this AWSKinesisConn to JSON. + * @function toJSON + * @memberof protos.args.AWSKinesisConn + * @instance + * @returns {Object.} JSON object + */ + AWSKinesisConn.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls DeleteTunnel. - * @function deleteTunnel - * @memberof protos.PlumberServer - * @instance - * @param {protos.IDeleteTunnelRequest} request DeleteTunnelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + return AWSKinesisConn; + })(); - /** - * Callback as used by {@link protos.PlumberServer#getServerOptions}. - * @memberof protos.PlumberServer - * @typedef GetServerOptionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetServerOptionsResponse} [response] GetServerOptionsResponse - */ + args.AWSKinesisReadArgs = (function() { - /** - * Calls GetServerOptions. - * @function getServerOptions - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetServerOptionsRequest} request GetServerOptionsRequest message or plain object - * @param {protos.PlumberServer.GetServerOptionsCallback} callback Node-style callback called with the error, if any, and GetServerOptionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PlumberServer.prototype.getServerOptions = function getServerOptions(request, callback) { - return this.rpcCall(getServerOptions, $root.protos.GetServerOptionsRequest, $root.protos.GetServerOptionsResponse, request, callback); - }, "name", { value: "GetServerOptions" }); + /** + * Properties of a AWSKinesisReadArgs. + * @memberof protos.args + * @interface IAWSKinesisReadArgs + * @property {string|null} [stream] AWSKinesisReadArgs stream + * @property {string|null} [shard] AWSKinesisReadArgs shard + * @property {number|Long|null} [maxRecords] AWSKinesisReadArgs maxRecords + * @property {number|Long|null} [readFromTimestamp] AWSKinesisReadArgs readFromTimestamp + * @property {string|null} [readSequenceNumber] AWSKinesisReadArgs readSequenceNumber + * @property {string|null} [readAfterSequenceNumber] AWSKinesisReadArgs readAfterSequenceNumber + * @property {boolean|null} [readTrimHorizon] AWSKinesisReadArgs readTrimHorizon + * @property {boolean|null} [readLatest] AWSKinesisReadArgs readLatest + */ - /** - * Calls GetServerOptions. - * @function getServerOptions - * @memberof protos.PlumberServer - * @instance - * @param {protos.IGetServerOptionsRequest} request GetServerOptionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Constructs a new AWSKinesisReadArgs. + * @memberof protos.args + * @classdesc Represents a AWSKinesisReadArgs. + * @implements IAWSKinesisReadArgs + * @constructor + * @param {protos.args.IAWSKinesisReadArgs=} [properties] Properties to set + */ + function AWSKinesisReadArgs(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return PlumberServer; - })(); + /** + * AWSKinesisReadArgs stream. + * @member {string} stream + * @memberof protos.args.AWSKinesisReadArgs + * @instance + */ + AWSKinesisReadArgs.prototype.stream = ""; - protos.GetAllConnectionsRequest = (function() { + /** + * AWSKinesisReadArgs shard. + * @member {string} shard + * @memberof protos.args.AWSKinesisReadArgs + * @instance + */ + AWSKinesisReadArgs.prototype.shard = ""; - /** - * Properties of a GetAllConnectionsRequest. - * @memberof protos - * @interface IGetAllConnectionsRequest - * @property {protos.common.IAuth|null} [auth] GetAllConnectionsRequest auth - */ + /** + * AWSKinesisReadArgs maxRecords. + * @member {number|Long} maxRecords + * @memberof protos.args.AWSKinesisReadArgs + * @instance + */ + AWSKinesisReadArgs.prototype.maxRecords = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Constructs a new GetAllConnectionsRequest. - * @memberof protos - * @classdesc Represents a GetAllConnectionsRequest. - * @implements IGetAllConnectionsRequest - * @constructor - * @param {protos.IGetAllConnectionsRequest=} [properties] Properties to set - */ - function GetAllConnectionsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * AWSKinesisReadArgs readFromTimestamp. + * @member {number|Long} readFromTimestamp + * @memberof protos.args.AWSKinesisReadArgs + * @instance + */ + AWSKinesisReadArgs.prototype.readFromTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * GetAllConnectionsRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.GetAllConnectionsRequest - * @instance - */ - GetAllConnectionsRequest.prototype.auth = null; + /** + * AWSKinesisReadArgs readSequenceNumber. + * @member {string} readSequenceNumber + * @memberof protos.args.AWSKinesisReadArgs + * @instance + */ + AWSKinesisReadArgs.prototype.readSequenceNumber = ""; - /** - * Creates a new GetAllConnectionsRequest instance using the specified properties. - * @function create - * @memberof protos.GetAllConnectionsRequest - * @static - * @param {protos.IGetAllConnectionsRequest=} [properties] Properties to set - * @returns {protos.GetAllConnectionsRequest} GetAllConnectionsRequest instance - */ - GetAllConnectionsRequest.create = function create(properties) { - return new GetAllConnectionsRequest(properties); - }; + /** + * AWSKinesisReadArgs readAfterSequenceNumber. + * @member {string} readAfterSequenceNumber + * @memberof protos.args.AWSKinesisReadArgs + * @instance + */ + AWSKinesisReadArgs.prototype.readAfterSequenceNumber = ""; - /** - * Encodes the specified GetAllConnectionsRequest message. Does not implicitly {@link protos.GetAllConnectionsRequest.verify|verify} messages. - * @function encode - * @memberof protos.GetAllConnectionsRequest - * @static - * @param {protos.IGetAllConnectionsRequest} message GetAllConnectionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllConnectionsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; + /** + * AWSKinesisReadArgs readTrimHorizon. + * @member {boolean} readTrimHorizon + * @memberof protos.args.AWSKinesisReadArgs + * @instance + */ + AWSKinesisReadArgs.prototype.readTrimHorizon = false; - /** - * Encodes the specified GetAllConnectionsRequest message, length delimited. Does not implicitly {@link protos.GetAllConnectionsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetAllConnectionsRequest - * @static - * @param {protos.IGetAllConnectionsRequest} message GetAllConnectionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllConnectionsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetAllConnectionsRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.GetAllConnectionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetAllConnectionsRequest} GetAllConnectionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllConnectionsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetAllConnectionsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetAllConnectionsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetAllConnectionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetAllConnectionsRequest} GetAllConnectionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllConnectionsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetAllConnectionsRequest message. - * @function verify - * @memberof protos.GetAllConnectionsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAllConnectionsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - return null; - }; - - /** - * Creates a GetAllConnectionsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetAllConnectionsRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.GetAllConnectionsRequest} GetAllConnectionsRequest - */ - GetAllConnectionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetAllConnectionsRequest) - return object; - var message = new $root.protos.GetAllConnectionsRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.GetAllConnectionsRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - return message; - }; - - /** - * Creates a plain object from a GetAllConnectionsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetAllConnectionsRequest - * @static - * @param {protos.GetAllConnectionsRequest} message GetAllConnectionsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetAllConnectionsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.auth = null; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this GetAllConnectionsRequest to JSON. - * @function toJSON - * @memberof protos.GetAllConnectionsRequest - * @instance - * @returns {Object.} JSON object - */ - GetAllConnectionsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetAllConnectionsRequest; - })(); - - protos.GetAllConnectionsResponse = (function() { - - /** - * Properties of a GetAllConnectionsResponse. - * @memberof protos - * @interface IGetAllConnectionsResponse - * @property {Array.|null} [options] GetAllConnectionsResponse options - */ + /** + * AWSKinesisReadArgs readLatest. + * @member {boolean} readLatest + * @memberof protos.args.AWSKinesisReadArgs + * @instance + */ + AWSKinesisReadArgs.prototype.readLatest = false; - /** - * Constructs a new GetAllConnectionsResponse. - * @memberof protos - * @classdesc Represents a GetAllConnectionsResponse. - * @implements IGetAllConnectionsResponse - * @constructor - * @param {protos.IGetAllConnectionsResponse=} [properties] Properties to set - */ - function GetAllConnectionsResponse(properties) { - this.options = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a new AWSKinesisReadArgs instance using the specified properties. + * @function create + * @memberof protos.args.AWSKinesisReadArgs + * @static + * @param {protos.args.IAWSKinesisReadArgs=} [properties] Properties to set + * @returns {protos.args.AWSKinesisReadArgs} AWSKinesisReadArgs instance + */ + AWSKinesisReadArgs.create = function create(properties) { + return new AWSKinesisReadArgs(properties); + }; - /** - * GetAllConnectionsResponse options. - * @member {Array.} options - * @memberof protos.GetAllConnectionsResponse - * @instance - */ - GetAllConnectionsResponse.prototype.options = $util.emptyArray; + /** + * Encodes the specified AWSKinesisReadArgs message. Does not implicitly {@link protos.args.AWSKinesisReadArgs.verify|verify} messages. + * @function encode + * @memberof protos.args.AWSKinesisReadArgs + * @static + * @param {protos.args.IAWSKinesisReadArgs} message AWSKinesisReadArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AWSKinesisReadArgs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.stream != null && Object.hasOwnProperty.call(message, "stream")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.stream); + if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); + if (message.maxRecords != null && Object.hasOwnProperty.call(message, "maxRecords")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maxRecords); + if (message.readFromTimestamp != null && Object.hasOwnProperty.call(message, "readFromTimestamp")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.readFromTimestamp); + if (message.readSequenceNumber != null && Object.hasOwnProperty.call(message, "readSequenceNumber")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.readSequenceNumber); + if (message.readAfterSequenceNumber != null && Object.hasOwnProperty.call(message, "readAfterSequenceNumber")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.readAfterSequenceNumber); + if (message.readTrimHorizon != null && Object.hasOwnProperty.call(message, "readTrimHorizon")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.readTrimHorizon); + if (message.readLatest != null && Object.hasOwnProperty.call(message, "readLatest")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.readLatest); + return writer; + }; - /** - * Creates a new GetAllConnectionsResponse instance using the specified properties. - * @function create - * @memberof protos.GetAllConnectionsResponse - * @static - * @param {protos.IGetAllConnectionsResponse=} [properties] Properties to set - * @returns {protos.GetAllConnectionsResponse} GetAllConnectionsResponse instance - */ - GetAllConnectionsResponse.create = function create(properties) { - return new GetAllConnectionsResponse(properties); - }; + /** + * Encodes the specified AWSKinesisReadArgs message, length delimited. Does not implicitly {@link protos.args.AWSKinesisReadArgs.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.AWSKinesisReadArgs + * @static + * @param {protos.args.IAWSKinesisReadArgs} message AWSKinesisReadArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AWSKinesisReadArgs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified GetAllConnectionsResponse message. Does not implicitly {@link protos.GetAllConnectionsResponse.verify|verify} messages. - * @function encode - * @memberof protos.GetAllConnectionsResponse - * @static - * @param {protos.IGetAllConnectionsResponse} message GetAllConnectionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllConnectionsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.options != null && message.options.length) - for (var i = 0; i < message.options.length; ++i) - $root.protos.opts.ConnectionOptions.encode(message.options[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Decodes a AWSKinesisReadArgs message from the specified reader or buffer. + * @function decode + * @memberof protos.args.AWSKinesisReadArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.args.AWSKinesisReadArgs} AWSKinesisReadArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AWSKinesisReadArgs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSKinesisReadArgs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.stream = reader.string(); + break; + case 2: + message.shard = reader.string(); + break; + case 3: + message.maxRecords = reader.int64(); + break; + case 4: + message.readFromTimestamp = reader.int64(); + break; + case 5: + message.readSequenceNumber = reader.string(); + break; + case 6: + message.readAfterSequenceNumber = reader.string(); + break; + case 7: + message.readTrimHorizon = reader.bool(); + break; + case 8: + message.readLatest = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified GetAllConnectionsResponse message, length delimited. Does not implicitly {@link protos.GetAllConnectionsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetAllConnectionsResponse - * @static - * @param {protos.IGetAllConnectionsResponse} message GetAllConnectionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllConnectionsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a AWSKinesisReadArgs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.args.AWSKinesisReadArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.args.AWSKinesisReadArgs} AWSKinesisReadArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AWSKinesisReadArgs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a GetAllConnectionsResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.GetAllConnectionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetAllConnectionsResponse} GetAllConnectionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllConnectionsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetAllConnectionsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.options && message.options.length)) - message.options = []; - message.options.push($root.protos.opts.ConnectionOptions.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Verifies a AWSKinesisReadArgs message. + * @function verify + * @memberof protos.args.AWSKinesisReadArgs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AWSKinesisReadArgs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.stream != null && message.hasOwnProperty("stream")) + if (!$util.isString(message.stream)) + return "stream: string expected"; + if (message.shard != null && message.hasOwnProperty("shard")) + if (!$util.isString(message.shard)) + return "shard: string expected"; + if (message.maxRecords != null && message.hasOwnProperty("maxRecords")) + if (!$util.isInteger(message.maxRecords) && !(message.maxRecords && $util.isInteger(message.maxRecords.low) && $util.isInteger(message.maxRecords.high))) + return "maxRecords: integer|Long expected"; + if (message.readFromTimestamp != null && message.hasOwnProperty("readFromTimestamp")) + if (!$util.isInteger(message.readFromTimestamp) && !(message.readFromTimestamp && $util.isInteger(message.readFromTimestamp.low) && $util.isInteger(message.readFromTimestamp.high))) + return "readFromTimestamp: integer|Long expected"; + if (message.readSequenceNumber != null && message.hasOwnProperty("readSequenceNumber")) + if (!$util.isString(message.readSequenceNumber)) + return "readSequenceNumber: string expected"; + if (message.readAfterSequenceNumber != null && message.hasOwnProperty("readAfterSequenceNumber")) + if (!$util.isString(message.readAfterSequenceNumber)) + return "readAfterSequenceNumber: string expected"; + if (message.readTrimHorizon != null && message.hasOwnProperty("readTrimHorizon")) + if (typeof message.readTrimHorizon !== "boolean") + return "readTrimHorizon: boolean expected"; + if (message.readLatest != null && message.hasOwnProperty("readLatest")) + if (typeof message.readLatest !== "boolean") + return "readLatest: boolean expected"; + return null; + }; - /** - * Decodes a GetAllConnectionsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetAllConnectionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetAllConnectionsResponse} GetAllConnectionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllConnectionsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a AWSKinesisReadArgs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.AWSKinesisReadArgs + * @static + * @param {Object.} object Plain object + * @returns {protos.args.AWSKinesisReadArgs} AWSKinesisReadArgs + */ + AWSKinesisReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AWSKinesisReadArgs) + return object; + var message = new $root.protos.args.AWSKinesisReadArgs(); + if (object.stream != null) + message.stream = String(object.stream); + if (object.shard != null) + message.shard = String(object.shard); + if (object.maxRecords != null) + if ($util.Long) + (message.maxRecords = $util.Long.fromValue(object.maxRecords)).unsigned = false; + else if (typeof object.maxRecords === "string") + message.maxRecords = parseInt(object.maxRecords, 10); + else if (typeof object.maxRecords === "number") + message.maxRecords = object.maxRecords; + else if (typeof object.maxRecords === "object") + message.maxRecords = new $util.LongBits(object.maxRecords.low >>> 0, object.maxRecords.high >>> 0).toNumber(); + if (object.readFromTimestamp != null) + if ($util.Long) + (message.readFromTimestamp = $util.Long.fromValue(object.readFromTimestamp)).unsigned = false; + else if (typeof object.readFromTimestamp === "string") + message.readFromTimestamp = parseInt(object.readFromTimestamp, 10); + else if (typeof object.readFromTimestamp === "number") + message.readFromTimestamp = object.readFromTimestamp; + else if (typeof object.readFromTimestamp === "object") + message.readFromTimestamp = new $util.LongBits(object.readFromTimestamp.low >>> 0, object.readFromTimestamp.high >>> 0).toNumber(); + if (object.readSequenceNumber != null) + message.readSequenceNumber = String(object.readSequenceNumber); + if (object.readAfterSequenceNumber != null) + message.readAfterSequenceNumber = String(object.readAfterSequenceNumber); + if (object.readTrimHorizon != null) + message.readTrimHorizon = Boolean(object.readTrimHorizon); + if (object.readLatest != null) + message.readLatest = Boolean(object.readLatest); + return message; + }; - /** - * Verifies a GetAllConnectionsResponse message. - * @function verify - * @memberof protos.GetAllConnectionsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAllConnectionsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.options != null && message.hasOwnProperty("options")) { - if (!Array.isArray(message.options)) - return "options: array expected"; - for (var i = 0; i < message.options.length; ++i) { - var error = $root.protos.opts.ConnectionOptions.verify(message.options[i]); - if (error) - return "options." + error; + /** + * Creates a plain object from a AWSKinesisReadArgs message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.AWSKinesisReadArgs + * @static + * @param {protos.args.AWSKinesisReadArgs} message AWSKinesisReadArgs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AWSKinesisReadArgs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.stream = ""; + object.shard = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxRecords = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxRecords = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.readFromTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.readFromTimestamp = options.longs === String ? "0" : 0; + object.readSequenceNumber = ""; + object.readAfterSequenceNumber = ""; + object.readTrimHorizon = false; + object.readLatest = false; } - } - return null; - }; - - /** - * Creates a GetAllConnectionsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetAllConnectionsResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.GetAllConnectionsResponse} GetAllConnectionsResponse - */ - GetAllConnectionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetAllConnectionsResponse) + if (message.stream != null && message.hasOwnProperty("stream")) + object.stream = message.stream; + if (message.shard != null && message.hasOwnProperty("shard")) + object.shard = message.shard; + if (message.maxRecords != null && message.hasOwnProperty("maxRecords")) + if (typeof message.maxRecords === "number") + object.maxRecords = options.longs === String ? String(message.maxRecords) : message.maxRecords; + else + object.maxRecords = options.longs === String ? $util.Long.prototype.toString.call(message.maxRecords) : options.longs === Number ? new $util.LongBits(message.maxRecords.low >>> 0, message.maxRecords.high >>> 0).toNumber() : message.maxRecords; + if (message.readFromTimestamp != null && message.hasOwnProperty("readFromTimestamp")) + if (typeof message.readFromTimestamp === "number") + object.readFromTimestamp = options.longs === String ? String(message.readFromTimestamp) : message.readFromTimestamp; + else + object.readFromTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.readFromTimestamp) : options.longs === Number ? new $util.LongBits(message.readFromTimestamp.low >>> 0, message.readFromTimestamp.high >>> 0).toNumber() : message.readFromTimestamp; + if (message.readSequenceNumber != null && message.hasOwnProperty("readSequenceNumber")) + object.readSequenceNumber = message.readSequenceNumber; + if (message.readAfterSequenceNumber != null && message.hasOwnProperty("readAfterSequenceNumber")) + object.readAfterSequenceNumber = message.readAfterSequenceNumber; + if (message.readTrimHorizon != null && message.hasOwnProperty("readTrimHorizon")) + object.readTrimHorizon = message.readTrimHorizon; + if (message.readLatest != null && message.hasOwnProperty("readLatest")) + object.readLatest = message.readLatest; return object; - var message = new $root.protos.GetAllConnectionsResponse(); - if (object.options) { - if (!Array.isArray(object.options)) - throw TypeError(".protos.GetAllConnectionsResponse.options: array expected"); - message.options = []; - for (var i = 0; i < object.options.length; ++i) { - if (typeof object.options[i] !== "object") - throw TypeError(".protos.GetAllConnectionsResponse.options: object expected"); - message.options[i] = $root.protos.opts.ConnectionOptions.fromObject(object.options[i]); - } - } - return message; - }; + }; - /** - * Creates a plain object from a GetAllConnectionsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetAllConnectionsResponse - * @static - * @param {protos.GetAllConnectionsResponse} message GetAllConnectionsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetAllConnectionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.options = []; - if (message.options && message.options.length) { - object.options = []; - for (var j = 0; j < message.options.length; ++j) - object.options[j] = $root.protos.opts.ConnectionOptions.toObject(message.options[j], options); - } - return object; - }; + /** + * Converts this AWSKinesisReadArgs to JSON. + * @function toJSON + * @memberof protos.args.AWSKinesisReadArgs + * @instance + * @returns {Object.} JSON object + */ + AWSKinesisReadArgs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this GetAllConnectionsResponse to JSON. - * @function toJSON - * @memberof protos.GetAllConnectionsResponse - * @instance - * @returns {Object.} JSON object - */ - GetAllConnectionsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return AWSKinesisReadArgs; + })(); - return GetAllConnectionsResponse; - })(); + args.AWSKinesisWriteArgs = (function() { - protos.GetConnectionRequest = (function() { + /** + * Properties of a AWSKinesisWriteArgs. + * @memberof protos.args + * @interface IAWSKinesisWriteArgs + * @property {string|null} [stream] AWSKinesisWriteArgs stream + * @property {string|null} [partitionKey] AWSKinesisWriteArgs partitionKey + * @property {string|null} [sequenceNumber] AWSKinesisWriteArgs sequenceNumber + */ - /** - * Properties of a GetConnectionRequest. - * @memberof protos - * @interface IGetConnectionRequest - * @property {protos.common.IAuth|null} [auth] GetConnectionRequest auth - * @property {string|null} [connectionId] GetConnectionRequest connectionId - */ + /** + * Constructs a new AWSKinesisWriteArgs. + * @memberof protos.args + * @classdesc Represents a AWSKinesisWriteArgs. + * @implements IAWSKinesisWriteArgs + * @constructor + * @param {protos.args.IAWSKinesisWriteArgs=} [properties] Properties to set + */ + function AWSKinesisWriteArgs(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new GetConnectionRequest. - * @memberof protos - * @classdesc Represents a GetConnectionRequest. - * @implements IGetConnectionRequest - * @constructor - * @param {protos.IGetConnectionRequest=} [properties] Properties to set - */ - function GetConnectionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * AWSKinesisWriteArgs stream. + * @member {string} stream + * @memberof protos.args.AWSKinesisWriteArgs + * @instance + */ + AWSKinesisWriteArgs.prototype.stream = ""; - /** - * GetConnectionRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.GetConnectionRequest - * @instance - */ - GetConnectionRequest.prototype.auth = null; + /** + * AWSKinesisWriteArgs partitionKey. + * @member {string} partitionKey + * @memberof protos.args.AWSKinesisWriteArgs + * @instance + */ + AWSKinesisWriteArgs.prototype.partitionKey = ""; - /** - * GetConnectionRequest connectionId. - * @member {string} connectionId - * @memberof protos.GetConnectionRequest - * @instance - */ - GetConnectionRequest.prototype.connectionId = ""; + /** + * AWSKinesisWriteArgs sequenceNumber. + * @member {string} sequenceNumber + * @memberof protos.args.AWSKinesisWriteArgs + * @instance + */ + AWSKinesisWriteArgs.prototype.sequenceNumber = ""; - /** - * Creates a new GetConnectionRequest instance using the specified properties. - * @function create - * @memberof protos.GetConnectionRequest - * @static - * @param {protos.IGetConnectionRequest=} [properties] Properties to set - * @returns {protos.GetConnectionRequest} GetConnectionRequest instance - */ - GetConnectionRequest.create = function create(properties) { - return new GetConnectionRequest(properties); - }; + /** + * Creates a new AWSKinesisWriteArgs instance using the specified properties. + * @function create + * @memberof protos.args.AWSKinesisWriteArgs + * @static + * @param {protos.args.IAWSKinesisWriteArgs=} [properties] Properties to set + * @returns {protos.args.AWSKinesisWriteArgs} AWSKinesisWriteArgs instance + */ + AWSKinesisWriteArgs.create = function create(properties) { + return new AWSKinesisWriteArgs(properties); + }; - /** - * Encodes the specified GetConnectionRequest message. Does not implicitly {@link protos.GetConnectionRequest.verify|verify} messages. - * @function encode - * @memberof protos.GetConnectionRequest - * @static - * @param {protos.IGetConnectionRequest} message GetConnectionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetConnectionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connectionId); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified AWSKinesisWriteArgs message. Does not implicitly {@link protos.args.AWSKinesisWriteArgs.verify|verify} messages. + * @function encode + * @memberof protos.args.AWSKinesisWriteArgs + * @static + * @param {protos.args.IAWSKinesisWriteArgs} message AWSKinesisWriteArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AWSKinesisWriteArgs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.stream != null && Object.hasOwnProperty.call(message, "stream")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.stream); + if (message.partitionKey != null && Object.hasOwnProperty.call(message, "partitionKey")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.partitionKey); + if (message.sequenceNumber != null && Object.hasOwnProperty.call(message, "sequenceNumber")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sequenceNumber); + return writer; + }; - /** - * Encodes the specified GetConnectionRequest message, length delimited. Does not implicitly {@link protos.GetConnectionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetConnectionRequest - * @static - * @param {protos.IGetConnectionRequest} message GetConnectionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified AWSKinesisWriteArgs message, length delimited. Does not implicitly {@link protos.args.AWSKinesisWriteArgs.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.AWSKinesisWriteArgs + * @static + * @param {protos.args.IAWSKinesisWriteArgs} message AWSKinesisWriteArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AWSKinesisWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a GetConnectionRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.GetConnectionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetConnectionRequest} GetConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetConnectionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetConnectionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.connectionId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a AWSKinesisWriteArgs message from the specified reader or buffer. + * @function decode + * @memberof protos.args.AWSKinesisWriteArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.args.AWSKinesisWriteArgs} AWSKinesisWriteArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AWSKinesisWriteArgs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSKinesisWriteArgs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.stream = reader.string(); + break; + case 2: + message.partitionKey = reader.string(); + break; + case 3: + message.sequenceNumber = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; - - /** - * Decodes a GetConnectionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetConnectionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetConnectionRequest} GetConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetConnectionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetConnectionRequest message. - * @function verify - * @memberof protos.GetConnectionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetConnectionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - if (!$util.isString(message.connectionId)) - return "connectionId: string expected"; - return null; - }; - - /** - * Creates a GetConnectionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetConnectionRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.GetConnectionRequest} GetConnectionRequest - */ - GetConnectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetConnectionRequest) - return object; - var message = new $root.protos.GetConnectionRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.GetConnectionRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.connectionId != null) - message.connectionId = String(object.connectionId); - return message; - }; + return message; + }; - /** - * Creates a plain object from a GetConnectionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetConnectionRequest - * @static - * @param {protos.GetConnectionRequest} message GetConnectionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetConnectionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.connectionId = ""; - object.auth = null; - } - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - object.connectionId = message.connectionId; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; + /** + * Decodes a AWSKinesisWriteArgs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.args.AWSKinesisWriteArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.args.AWSKinesisWriteArgs} AWSKinesisWriteArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AWSKinesisWriteArgs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this GetConnectionRequest to JSON. - * @function toJSON - * @memberof protos.GetConnectionRequest - * @instance - * @returns {Object.} JSON object - */ - GetConnectionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetConnectionRequest; - })(); - - protos.GetConnectionResponse = (function() { - - /** - * Properties of a GetConnectionResponse. - * @memberof protos - * @interface IGetConnectionResponse - * @property {protos.opts.IConnectionOptions|null} [options] GetConnectionResponse options - */ - - /** - * Constructs a new GetConnectionResponse. - * @memberof protos - * @classdesc Represents a GetConnectionResponse. - * @implements IGetConnectionResponse - * @constructor - * @param {protos.IGetConnectionResponse=} [properties] Properties to set - */ - function GetConnectionResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetConnectionResponse options. - * @member {protos.opts.IConnectionOptions|null|undefined} options - * @memberof protos.GetConnectionResponse - * @instance - */ - GetConnectionResponse.prototype.options = null; + /** + * Verifies a AWSKinesisWriteArgs message. + * @function verify + * @memberof protos.args.AWSKinesisWriteArgs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AWSKinesisWriteArgs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.stream != null && message.hasOwnProperty("stream")) + if (!$util.isString(message.stream)) + return "stream: string expected"; + if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) + if (!$util.isString(message.partitionKey)) + return "partitionKey: string expected"; + if (message.sequenceNumber != null && message.hasOwnProperty("sequenceNumber")) + if (!$util.isString(message.sequenceNumber)) + return "sequenceNumber: string expected"; + return null; + }; - /** - * Creates a new GetConnectionResponse instance using the specified properties. - * @function create - * @memberof protos.GetConnectionResponse - * @static - * @param {protos.IGetConnectionResponse=} [properties] Properties to set - * @returns {protos.GetConnectionResponse} GetConnectionResponse instance - */ - GetConnectionResponse.create = function create(properties) { - return new GetConnectionResponse(properties); - }; + /** + * Creates a AWSKinesisWriteArgs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.AWSKinesisWriteArgs + * @static + * @param {Object.} object Plain object + * @returns {protos.args.AWSKinesisWriteArgs} AWSKinesisWriteArgs + */ + AWSKinesisWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AWSKinesisWriteArgs) + return object; + var message = new $root.protos.args.AWSKinesisWriteArgs(); + if (object.stream != null) + message.stream = String(object.stream); + if (object.partitionKey != null) + message.partitionKey = String(object.partitionKey); + if (object.sequenceNumber != null) + message.sequenceNumber = String(object.sequenceNumber); + return message; + }; - /** - * Encodes the specified GetConnectionResponse message. Does not implicitly {@link protos.GetConnectionResponse.verify|verify} messages. - * @function encode - * @memberof protos.GetConnectionResponse - * @static - * @param {protos.IGetConnectionResponse} message GetConnectionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetConnectionResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.protos.opts.ConnectionOptions.encode(message.options, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Creates a plain object from a AWSKinesisWriteArgs message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.AWSKinesisWriteArgs + * @static + * @param {protos.args.AWSKinesisWriteArgs} message AWSKinesisWriteArgs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AWSKinesisWriteArgs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.stream = ""; + object.partitionKey = ""; + object.sequenceNumber = ""; + } + if (message.stream != null && message.hasOwnProperty("stream")) + object.stream = message.stream; + if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) + object.partitionKey = message.partitionKey; + if (message.sequenceNumber != null && message.hasOwnProperty("sequenceNumber")) + object.sequenceNumber = message.sequenceNumber; + return object; + }; - /** - * Encodes the specified GetConnectionResponse message, length delimited. Does not implicitly {@link protos.GetConnectionResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetConnectionResponse - * @static - * @param {protos.IGetConnectionResponse} message GetConnectionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetConnectionResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Converts this AWSKinesisWriteArgs to JSON. + * @function toJSON + * @memberof protos.args.AWSKinesisWriteArgs + * @instance + * @returns {Object.} JSON object + */ + AWSKinesisWriteArgs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a GetConnectionResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.GetConnectionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetConnectionResponse} GetConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetConnectionResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetConnectionResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.options = $root.protos.opts.ConnectionOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return AWSKinesisWriteArgs; + })(); - /** - * Decodes a GetConnectionResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetConnectionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetConnectionResponse} GetConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetConnectionResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + args.AWSSNSConn = (function() { - /** - * Verifies a GetConnectionResponse message. - * @function verify - * @memberof protos.GetConnectionResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetConnectionResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.protos.opts.ConnectionOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; + /** + * Properties of a AWSSNSConn. + * @memberof protos.args + * @interface IAWSSNSConn + * @property {string|null} [awsRegion] AWSSNSConn awsRegion + * @property {string|null} [awsAccessKeyId] AWSSNSConn awsAccessKeyId + * @property {string|null} [awsSecretAccessKey] AWSSNSConn awsSecretAccessKey + * @property {string|null} [awsProfile] AWSSNSConn awsProfile + */ - /** - * Creates a GetConnectionResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetConnectionResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.GetConnectionResponse} GetConnectionResponse - */ - GetConnectionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetConnectionResponse) - return object; - var message = new $root.protos.GetConnectionResponse(); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".protos.GetConnectionResponse.options: object expected"); - message.options = $root.protos.opts.ConnectionOptions.fromObject(object.options); + /** + * Constructs a new AWSSNSConn. + * @memberof protos.args + * @classdesc Represents a AWSSNSConn. + * @implements IAWSSNSConn + * @constructor + * @param {protos.args.IAWSSNSConn=} [properties] Properties to set + */ + function AWSSNSConn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return message; - }; - /** - * Creates a plain object from a GetConnectionResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetConnectionResponse - * @static - * @param {protos.GetConnectionResponse} message GetConnectionResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetConnectionResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.options = null; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.protos.opts.ConnectionOptions.toObject(message.options, options); - return object; - }; + /** + * AWSSNSConn awsRegion. + * @member {string} awsRegion + * @memberof protos.args.AWSSNSConn + * @instance + */ + AWSSNSConn.prototype.awsRegion = ""; - /** - * Converts this GetConnectionResponse to JSON. - * @function toJSON - * @memberof protos.GetConnectionResponse - * @instance - * @returns {Object.} JSON object - */ - GetConnectionResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * AWSSNSConn awsAccessKeyId. + * @member {string} awsAccessKeyId + * @memberof protos.args.AWSSNSConn + * @instance + */ + AWSSNSConn.prototype.awsAccessKeyId = ""; - return GetConnectionResponse; - })(); + /** + * AWSSNSConn awsSecretAccessKey. + * @member {string} awsSecretAccessKey + * @memberof protos.args.AWSSNSConn + * @instance + */ + AWSSNSConn.prototype.awsSecretAccessKey = ""; - protos.CreateConnectionRequest = (function() { + /** + * AWSSNSConn awsProfile. + * @member {string} awsProfile + * @memberof protos.args.AWSSNSConn + * @instance + */ + AWSSNSConn.prototype.awsProfile = ""; - /** - * Properties of a CreateConnectionRequest. - * @memberof protos - * @interface ICreateConnectionRequest - * @property {protos.common.IAuth|null} [auth] CreateConnectionRequest auth - * @property {protos.opts.IConnectionOptions|null} [options] CreateConnectionRequest options - */ + /** + * Creates a new AWSSNSConn instance using the specified properties. + * @function create + * @memberof protos.args.AWSSNSConn + * @static + * @param {protos.args.IAWSSNSConn=} [properties] Properties to set + * @returns {protos.args.AWSSNSConn} AWSSNSConn instance + */ + AWSSNSConn.create = function create(properties) { + return new AWSSNSConn(properties); + }; - /** - * Constructs a new CreateConnectionRequest. - * @memberof protos - * @classdesc Represents a CreateConnectionRequest. - * @implements ICreateConnectionRequest - * @constructor - * @param {protos.ICreateConnectionRequest=} [properties] Properties to set - */ - function CreateConnectionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified AWSSNSConn message. Does not implicitly {@link protos.args.AWSSNSConn.verify|verify} messages. + * @function encode + * @memberof protos.args.AWSSNSConn + * @static + * @param {protos.args.IAWSSNSConn} message AWSSNSConn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AWSSNSConn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.awsRegion != null && Object.hasOwnProperty.call(message, "awsRegion")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.awsRegion); + if (message.awsAccessKeyId != null && Object.hasOwnProperty.call(message, "awsAccessKeyId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.awsAccessKeyId); + if (message.awsSecretAccessKey != null && Object.hasOwnProperty.call(message, "awsSecretAccessKey")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.awsSecretAccessKey); + if (message.awsProfile != null && Object.hasOwnProperty.call(message, "awsProfile")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.awsProfile); + return writer; + }; - /** - * CreateConnectionRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.CreateConnectionRequest - * @instance - */ - CreateConnectionRequest.prototype.auth = null; + /** + * Encodes the specified AWSSNSConn message, length delimited. Does not implicitly {@link protos.args.AWSSNSConn.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.AWSSNSConn + * @static + * @param {protos.args.IAWSSNSConn} message AWSSNSConn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AWSSNSConn.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * CreateConnectionRequest options. - * @member {protos.opts.IConnectionOptions|null|undefined} options - * @memberof protos.CreateConnectionRequest - * @instance - */ - CreateConnectionRequest.prototype.options = null; + /** + * Decodes a AWSSNSConn message from the specified reader or buffer. + * @function decode + * @memberof protos.args.AWSSNSConn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.args.AWSSNSConn} AWSSNSConn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AWSSNSConn.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSSNSConn(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.awsRegion = reader.string(); + break; + case 2: + message.awsAccessKeyId = reader.string(); + break; + case 3: + message.awsSecretAccessKey = reader.string(); + break; + case 4: + message.awsProfile = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new CreateConnectionRequest instance using the specified properties. - * @function create - * @memberof protos.CreateConnectionRequest - * @static - * @param {protos.ICreateConnectionRequest=} [properties] Properties to set - * @returns {protos.CreateConnectionRequest} CreateConnectionRequest instance - */ - CreateConnectionRequest.create = function create(properties) { - return new CreateConnectionRequest(properties); - }; + /** + * Decodes a AWSSNSConn message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.args.AWSSNSConn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.args.AWSSNSConn} AWSSNSConn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AWSSNSConn.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified CreateConnectionRequest message. Does not implicitly {@link protos.CreateConnectionRequest.verify|verify} messages. - * @function encode - * @memberof protos.CreateConnectionRequest - * @static - * @param {protos.ICreateConnectionRequest} message CreateConnectionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateConnectionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.protos.opts.ConnectionOptions.encode(message.options, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; + /** + * Verifies a AWSSNSConn message. + * @function verify + * @memberof protos.args.AWSSNSConn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AWSSNSConn.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.awsRegion != null && message.hasOwnProperty("awsRegion")) + if (!$util.isString(message.awsRegion)) + return "awsRegion: string expected"; + if (message.awsAccessKeyId != null && message.hasOwnProperty("awsAccessKeyId")) + if (!$util.isString(message.awsAccessKeyId)) + return "awsAccessKeyId: string expected"; + if (message.awsSecretAccessKey != null && message.hasOwnProperty("awsSecretAccessKey")) + if (!$util.isString(message.awsSecretAccessKey)) + return "awsSecretAccessKey: string expected"; + if (message.awsProfile != null && message.hasOwnProperty("awsProfile")) + if (!$util.isString(message.awsProfile)) + return "awsProfile: string expected"; + return null; + }; - /** - * Encodes the specified CreateConnectionRequest message, length delimited. Does not implicitly {@link protos.CreateConnectionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.CreateConnectionRequest - * @static - * @param {protos.ICreateConnectionRequest} message CreateConnectionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a AWSSNSConn message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.AWSSNSConn + * @static + * @param {Object.} object Plain object + * @returns {protos.args.AWSSNSConn} AWSSNSConn + */ + AWSSNSConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AWSSNSConn) + return object; + var message = new $root.protos.args.AWSSNSConn(); + if (object.awsRegion != null) + message.awsRegion = String(object.awsRegion); + if (object.awsAccessKeyId != null) + message.awsAccessKeyId = String(object.awsAccessKeyId); + if (object.awsSecretAccessKey != null) + message.awsSecretAccessKey = String(object.awsSecretAccessKey); + if (object.awsProfile != null) + message.awsProfile = String(object.awsProfile); + return message; + }; - /** - * Decodes a CreateConnectionRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.CreateConnectionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.CreateConnectionRequest} CreateConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateConnectionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.CreateConnectionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.options = $root.protos.opts.ConnectionOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a plain object from a AWSSNSConn message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.AWSSNSConn + * @static + * @param {protos.args.AWSSNSConn} message AWSSNSConn + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AWSSNSConn.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.awsRegion = ""; + object.awsAccessKeyId = ""; + object.awsSecretAccessKey = ""; + object.awsProfile = ""; } - } - return message; - }; - - /** - * Decodes a CreateConnectionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.CreateConnectionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.CreateConnectionRequest} CreateConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateConnectionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateConnectionRequest message. - * @function verify - * @memberof protos.CreateConnectionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateConnectionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.protos.opts.ConnectionOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - /** - * Creates a CreateConnectionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.CreateConnectionRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.CreateConnectionRequest} CreateConnectionRequest - */ - CreateConnectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.CreateConnectionRequest) + if (message.awsRegion != null && message.hasOwnProperty("awsRegion")) + object.awsRegion = message.awsRegion; + if (message.awsAccessKeyId != null && message.hasOwnProperty("awsAccessKeyId")) + object.awsAccessKeyId = message.awsAccessKeyId; + if (message.awsSecretAccessKey != null && message.hasOwnProperty("awsSecretAccessKey")) + object.awsSecretAccessKey = message.awsSecretAccessKey; + if (message.awsProfile != null && message.hasOwnProperty("awsProfile")) + object.awsProfile = message.awsProfile; return object; - var message = new $root.protos.CreateConnectionRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.CreateConnectionRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".protos.CreateConnectionRequest.options: object expected"); - message.options = $root.protos.opts.ConnectionOptions.fromObject(object.options); - } - return message; - }; - - /** - * Creates a plain object from a CreateConnectionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.CreateConnectionRequest - * @static - * @param {protos.CreateConnectionRequest} message CreateConnectionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateConnectionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.options = null; - object.auth = null; - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.protos.opts.ConnectionOptions.toObject(message.options, options); - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; + }; - /** - * Converts this CreateConnectionRequest to JSON. - * @function toJSON - * @memberof protos.CreateConnectionRequest - * @instance - * @returns {Object.} JSON object - */ - CreateConnectionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this AWSSNSConn to JSON. + * @function toJSON + * @memberof protos.args.AWSSNSConn + * @instance + * @returns {Object.} JSON object + */ + AWSSNSConn.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return CreateConnectionRequest; - })(); + return AWSSNSConn; + })(); - protos.CreateConnectionResponse = (function() { + args.AWSSNSWriteArgs = (function() { - /** - * Properties of a CreateConnectionResponse. - * @memberof protos - * @interface ICreateConnectionResponse - * @property {string|null} [connectionId] CreateConnectionResponse connectionId - */ + /** + * Properties of a AWSSNSWriteArgs. + * @memberof protos.args + * @interface IAWSSNSWriteArgs + * @property {string|null} [topic] AWSSNSWriteArgs topic + */ - /** - * Constructs a new CreateConnectionResponse. - * @memberof protos - * @classdesc Represents a CreateConnectionResponse. - * @implements ICreateConnectionResponse - * @constructor - * @param {protos.ICreateConnectionResponse=} [properties] Properties to set - */ - function CreateConnectionResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new AWSSNSWriteArgs. + * @memberof protos.args + * @classdesc Represents a AWSSNSWriteArgs. + * @implements IAWSSNSWriteArgs + * @constructor + * @param {protos.args.IAWSSNSWriteArgs=} [properties] Properties to set + */ + function AWSSNSWriteArgs(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CreateConnectionResponse connectionId. - * @member {string} connectionId - * @memberof protos.CreateConnectionResponse - * @instance - */ - CreateConnectionResponse.prototype.connectionId = ""; + /** + * AWSSNSWriteArgs topic. + * @member {string} topic + * @memberof protos.args.AWSSNSWriteArgs + * @instance + */ + AWSSNSWriteArgs.prototype.topic = ""; - /** - * Creates a new CreateConnectionResponse instance using the specified properties. - * @function create - * @memberof protos.CreateConnectionResponse - * @static - * @param {protos.ICreateConnectionResponse=} [properties] Properties to set - * @returns {protos.CreateConnectionResponse} CreateConnectionResponse instance - */ - CreateConnectionResponse.create = function create(properties) { - return new CreateConnectionResponse(properties); - }; + /** + * Creates a new AWSSNSWriteArgs instance using the specified properties. + * @function create + * @memberof protos.args.AWSSNSWriteArgs + * @static + * @param {protos.args.IAWSSNSWriteArgs=} [properties] Properties to set + * @returns {protos.args.AWSSNSWriteArgs} AWSSNSWriteArgs instance + */ + AWSSNSWriteArgs.create = function create(properties) { + return new AWSSNSWriteArgs(properties); + }; - /** - * Encodes the specified CreateConnectionResponse message. Does not implicitly {@link protos.CreateConnectionResponse.verify|verify} messages. - * @function encode - * @memberof protos.CreateConnectionResponse - * @static - * @param {protos.ICreateConnectionResponse} message CreateConnectionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateConnectionResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connectionId); - return writer; - }; + /** + * Encodes the specified AWSSNSWriteArgs message. Does not implicitly {@link protos.args.AWSSNSWriteArgs.verify|verify} messages. + * @function encode + * @memberof protos.args.AWSSNSWriteArgs + * @static + * @param {protos.args.IAWSSNSWriteArgs} message AWSSNSWriteArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AWSSNSWriteArgs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); + return writer; + }; - /** - * Encodes the specified CreateConnectionResponse message, length delimited. Does not implicitly {@link protos.CreateConnectionResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.CreateConnectionResponse - * @static - * @param {protos.ICreateConnectionResponse} message CreateConnectionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateConnectionResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified AWSSNSWriteArgs message, length delimited. Does not implicitly {@link protos.args.AWSSNSWriteArgs.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.AWSSNSWriteArgs + * @static + * @param {protos.args.IAWSSNSWriteArgs} message AWSSNSWriteArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AWSSNSWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a CreateConnectionResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.CreateConnectionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.CreateConnectionResponse} CreateConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateConnectionResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.CreateConnectionResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.connectionId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a AWSSNSWriteArgs message from the specified reader or buffer. + * @function decode + * @memberof protos.args.AWSSNSWriteArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.args.AWSSNSWriteArgs} AWSSNSWriteArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AWSSNSWriteArgs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSSNSWriteArgs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.topic = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a CreateConnectionResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.CreateConnectionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.CreateConnectionResponse} CreateConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateConnectionResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateConnectionResponse message. - * @function verify - * @memberof protos.CreateConnectionResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateConnectionResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - if (!$util.isString(message.connectionId)) - return "connectionId: string expected"; - return null; - }; - - /** - * Creates a CreateConnectionResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.CreateConnectionResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.CreateConnectionResponse} CreateConnectionResponse - */ - CreateConnectionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.CreateConnectionResponse) - return object; - var message = new $root.protos.CreateConnectionResponse(); - if (object.connectionId != null) - message.connectionId = String(object.connectionId); - return message; - }; - - /** - * Creates a plain object from a CreateConnectionResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.CreateConnectionResponse - * @static - * @param {protos.CreateConnectionResponse} message CreateConnectionResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateConnectionResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.connectionId = ""; - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - object.connectionId = message.connectionId; - return object; - }; - - /** - * Converts this CreateConnectionResponse to JSON. - * @function toJSON - * @memberof protos.CreateConnectionResponse - * @instance - * @returns {Object.} JSON object - */ - CreateConnectionResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateConnectionResponse; - })(); - - protos.TestConnectionRequest = (function() { - - /** - * Properties of a TestConnectionRequest. - * @memberof protos - * @interface ITestConnectionRequest - * @property {protos.common.IAuth|null} [auth] TestConnectionRequest auth - * @property {protos.opts.IConnectionOptions|null} [options] TestConnectionRequest options - */ - - /** - * Constructs a new TestConnectionRequest. - * @memberof protos - * @classdesc Represents a TestConnectionRequest. - * @implements ITestConnectionRequest - * @constructor - * @param {protos.ITestConnectionRequest=} [properties] Properties to set - */ - function TestConnectionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TestConnectionRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.TestConnectionRequest - * @instance - */ - TestConnectionRequest.prototype.auth = null; - - /** - * TestConnectionRequest options. - * @member {protos.opts.IConnectionOptions|null|undefined} options - * @memberof protos.TestConnectionRequest - * @instance - */ - TestConnectionRequest.prototype.options = null; - - /** - * Creates a new TestConnectionRequest instance using the specified properties. - * @function create - * @memberof protos.TestConnectionRequest - * @static - * @param {protos.ITestConnectionRequest=} [properties] Properties to set - * @returns {protos.TestConnectionRequest} TestConnectionRequest instance - */ - TestConnectionRequest.create = function create(properties) { - return new TestConnectionRequest(properties); - }; - - /** - * Encodes the specified TestConnectionRequest message. Does not implicitly {@link protos.TestConnectionRequest.verify|verify} messages. - * @function encode - * @memberof protos.TestConnectionRequest - * @static - * @param {protos.ITestConnectionRequest} message TestConnectionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestConnectionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.protos.opts.ConnectionOptions.encode(message.options, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified TestConnectionRequest message, length delimited. Does not implicitly {@link protos.TestConnectionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.TestConnectionRequest - * @static - * @param {protos.ITestConnectionRequest} message TestConnectionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TestConnectionRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.TestConnectionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.TestConnectionRequest} TestConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestConnectionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.TestConnectionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.options = $root.protos.opts.ConnectionOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TestConnectionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.TestConnectionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.TestConnectionRequest} TestConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestConnectionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TestConnectionRequest message. - * @function verify - * @memberof protos.TestConnectionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TestConnectionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.protos.opts.ConnectionOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - /** - * Creates a TestConnectionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.TestConnectionRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.TestConnectionRequest} TestConnectionRequest - */ - TestConnectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.TestConnectionRequest) - return object; - var message = new $root.protos.TestConnectionRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.TestConnectionRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".protos.TestConnectionRequest.options: object expected"); - message.options = $root.protos.opts.ConnectionOptions.fromObject(object.options); - } - return message; - }; - - /** - * Creates a plain object from a TestConnectionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.TestConnectionRequest - * @static - * @param {protos.TestConnectionRequest} message TestConnectionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TestConnectionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.options = null; - object.auth = null; - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.protos.opts.ConnectionOptions.toObject(message.options, options); - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this TestConnectionRequest to JSON. - * @function toJSON - * @memberof protos.TestConnectionRequest - * @instance - * @returns {Object.} JSON object - */ - TestConnectionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return TestConnectionRequest; - })(); - - protos.TestConnectionResponse = (function() { - - /** - * Properties of a TestConnectionResponse. - * @memberof protos - * @interface ITestConnectionResponse - * @property {protos.common.IStatus|null} [status] TestConnectionResponse status - */ - - /** - * Constructs a new TestConnectionResponse. - * @memberof protos - * @classdesc Represents a TestConnectionResponse. - * @implements ITestConnectionResponse - * @constructor - * @param {protos.ITestConnectionResponse=} [properties] Properties to set - */ - function TestConnectionResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TestConnectionResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.TestConnectionResponse - * @instance - */ - TestConnectionResponse.prototype.status = null; - - /** - * Creates a new TestConnectionResponse instance using the specified properties. - * @function create - * @memberof protos.TestConnectionResponse - * @static - * @param {protos.ITestConnectionResponse=} [properties] Properties to set - * @returns {protos.TestConnectionResponse} TestConnectionResponse instance - */ - TestConnectionResponse.create = function create(properties) { - return new TestConnectionResponse(properties); - }; - - /** - * Encodes the specified TestConnectionResponse message. Does not implicitly {@link protos.TestConnectionResponse.verify|verify} messages. - * @function encode - * @memberof protos.TestConnectionResponse - * @static - * @param {protos.ITestConnectionResponse} message TestConnectionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestConnectionResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified TestConnectionResponse message, length delimited. Does not implicitly {@link protos.TestConnectionResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.TestConnectionResponse - * @static - * @param {protos.ITestConnectionResponse} message TestConnectionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestConnectionResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TestConnectionResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.TestConnectionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.TestConnectionResponse} TestConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestConnectionResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.TestConnectionResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TestConnectionResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.TestConnectionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.TestConnectionResponse} TestConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestConnectionResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TestConnectionResponse message. - * @function verify - * @memberof protos.TestConnectionResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TestConnectionResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; - - /** - * Creates a TestConnectionResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.TestConnectionResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.TestConnectionResponse} TestConnectionResponse - */ - TestConnectionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.TestConnectionResponse) - return object; - var message = new $root.protos.TestConnectionResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.TestConnectionResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - return message; - }; - - /** - * Creates a plain object from a TestConnectionResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.TestConnectionResponse - * @static - * @param {protos.TestConnectionResponse} message TestConnectionResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TestConnectionResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this TestConnectionResponse to JSON. - * @function toJSON - * @memberof protos.TestConnectionResponse - * @instance - * @returns {Object.} JSON object - */ - TestConnectionResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return TestConnectionResponse; - })(); - - protos.UpdateConnectionRequest = (function() { - - /** - * Properties of an UpdateConnectionRequest. - * @memberof protos - * @interface IUpdateConnectionRequest - * @property {protos.common.IAuth|null} [auth] UpdateConnectionRequest auth - * @property {string|null} [connectionId] UpdateConnectionRequest connectionId - * @property {protos.opts.IConnectionOptions|null} [options] UpdateConnectionRequest options - */ - - /** - * Constructs a new UpdateConnectionRequest. - * @memberof protos - * @classdesc Represents an UpdateConnectionRequest. - * @implements IUpdateConnectionRequest - * @constructor - * @param {protos.IUpdateConnectionRequest=} [properties] Properties to set - */ - function UpdateConnectionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UpdateConnectionRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.UpdateConnectionRequest - * @instance - */ - UpdateConnectionRequest.prototype.auth = null; - - /** - * UpdateConnectionRequest connectionId. - * @member {string} connectionId - * @memberof protos.UpdateConnectionRequest - * @instance - */ - UpdateConnectionRequest.prototype.connectionId = ""; - - /** - * UpdateConnectionRequest options. - * @member {protos.opts.IConnectionOptions|null|undefined} options - * @memberof protos.UpdateConnectionRequest - * @instance - */ - UpdateConnectionRequest.prototype.options = null; - - /** - * Creates a new UpdateConnectionRequest instance using the specified properties. - * @function create - * @memberof protos.UpdateConnectionRequest - * @static - * @param {protos.IUpdateConnectionRequest=} [properties] Properties to set - * @returns {protos.UpdateConnectionRequest} UpdateConnectionRequest instance - */ - UpdateConnectionRequest.create = function create(properties) { - return new UpdateConnectionRequest(properties); - }; - - /** - * Encodes the specified UpdateConnectionRequest message. Does not implicitly {@link protos.UpdateConnectionRequest.verify|verify} messages. - * @function encode - * @memberof protos.UpdateConnectionRequest - * @static - * @param {protos.IUpdateConnectionRequest} message UpdateConnectionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateConnectionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connectionId); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.protos.opts.ConnectionOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UpdateConnectionRequest message, length delimited. Does not implicitly {@link protos.UpdateConnectionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.UpdateConnectionRequest - * @static - * @param {protos.IUpdateConnectionRequest} message UpdateConnectionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateConnectionRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.UpdateConnectionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.UpdateConnectionRequest} UpdateConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateConnectionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.UpdateConnectionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.connectionId = reader.string(); - break; - case 2: - message.options = $root.protos.opts.ConnectionOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateConnectionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.UpdateConnectionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.UpdateConnectionRequest} UpdateConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateConnectionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateConnectionRequest message. - * @function verify - * @memberof protos.UpdateConnectionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateConnectionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - if (!$util.isString(message.connectionId)) - return "connectionId: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.protos.opts.ConnectionOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - /** - * Creates an UpdateConnectionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.UpdateConnectionRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.UpdateConnectionRequest} UpdateConnectionRequest - */ - UpdateConnectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.UpdateConnectionRequest) - return object; - var message = new $root.protos.UpdateConnectionRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.UpdateConnectionRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.connectionId != null) - message.connectionId = String(object.connectionId); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".protos.UpdateConnectionRequest.options: object expected"); - message.options = $root.protos.opts.ConnectionOptions.fromObject(object.options); - } - return message; - }; - - /** - * Creates a plain object from an UpdateConnectionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.UpdateConnectionRequest - * @static - * @param {protos.UpdateConnectionRequest} message UpdateConnectionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateConnectionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.connectionId = ""; - object.options = null; - object.auth = null; - } - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - object.connectionId = message.connectionId; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.protos.opts.ConnectionOptions.toObject(message.options, options); - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this UpdateConnectionRequest to JSON. - * @function toJSON - * @memberof protos.UpdateConnectionRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateConnectionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UpdateConnectionRequest; - })(); - - protos.UpdateConnectionResponse = (function() { - - /** - * Properties of an UpdateConnectionResponse. - * @memberof protos - * @interface IUpdateConnectionResponse - * @property {protos.common.IStatus|null} [status] UpdateConnectionResponse status - */ - - /** - * Constructs a new UpdateConnectionResponse. - * @memberof protos - * @classdesc Represents an UpdateConnectionResponse. - * @implements IUpdateConnectionResponse - * @constructor - * @param {protos.IUpdateConnectionResponse=} [properties] Properties to set - */ - function UpdateConnectionResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UpdateConnectionResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.UpdateConnectionResponse - * @instance - */ - UpdateConnectionResponse.prototype.status = null; - - /** - * Creates a new UpdateConnectionResponse instance using the specified properties. - * @function create - * @memberof protos.UpdateConnectionResponse - * @static - * @param {protos.IUpdateConnectionResponse=} [properties] Properties to set - * @returns {protos.UpdateConnectionResponse} UpdateConnectionResponse instance - */ - UpdateConnectionResponse.create = function create(properties) { - return new UpdateConnectionResponse(properties); - }; - - /** - * Encodes the specified UpdateConnectionResponse message. Does not implicitly {@link protos.UpdateConnectionResponse.verify|verify} messages. - * @function encode - * @memberof protos.UpdateConnectionResponse - * @static - * @param {protos.IUpdateConnectionResponse} message UpdateConnectionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateConnectionResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UpdateConnectionResponse message, length delimited. Does not implicitly {@link protos.UpdateConnectionResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.UpdateConnectionResponse - * @static - * @param {protos.IUpdateConnectionResponse} message UpdateConnectionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateConnectionResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateConnectionResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.UpdateConnectionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.UpdateConnectionResponse} UpdateConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateConnectionResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.UpdateConnectionResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateConnectionResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.UpdateConnectionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.UpdateConnectionResponse} UpdateConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateConnectionResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateConnectionResponse message. - * @function verify - * @memberof protos.UpdateConnectionResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateConnectionResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; - - /** - * Creates an UpdateConnectionResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.UpdateConnectionResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.UpdateConnectionResponse} UpdateConnectionResponse - */ - UpdateConnectionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.UpdateConnectionResponse) - return object; - var message = new $root.protos.UpdateConnectionResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.UpdateConnectionResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - return message; - }; - - /** - * Creates a plain object from an UpdateConnectionResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.UpdateConnectionResponse - * @static - * @param {protos.UpdateConnectionResponse} message UpdateConnectionResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateConnectionResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this UpdateConnectionResponse to JSON. - * @function toJSON - * @memberof protos.UpdateConnectionResponse - * @instance - * @returns {Object.} JSON object - */ - UpdateConnectionResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UpdateConnectionResponse; - })(); - - protos.DeleteConnectionRequest = (function() { - - /** - * Properties of a DeleteConnectionRequest. - * @memberof protos - * @interface IDeleteConnectionRequest - * @property {protos.common.IAuth|null} [auth] DeleteConnectionRequest auth - * @property {string|null} [connectionId] DeleteConnectionRequest connectionId - */ - - /** - * Constructs a new DeleteConnectionRequest. - * @memberof protos - * @classdesc Represents a DeleteConnectionRequest. - * @implements IDeleteConnectionRequest - * @constructor - * @param {protos.IDeleteConnectionRequest=} [properties] Properties to set - */ - function DeleteConnectionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DeleteConnectionRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.DeleteConnectionRequest - * @instance - */ - DeleteConnectionRequest.prototype.auth = null; - - /** - * DeleteConnectionRequest connectionId. - * @member {string} connectionId - * @memberof protos.DeleteConnectionRequest - * @instance - */ - DeleteConnectionRequest.prototype.connectionId = ""; - - /** - * Creates a new DeleteConnectionRequest instance using the specified properties. - * @function create - * @memberof protos.DeleteConnectionRequest - * @static - * @param {protos.IDeleteConnectionRequest=} [properties] Properties to set - * @returns {protos.DeleteConnectionRequest} DeleteConnectionRequest instance - */ - DeleteConnectionRequest.create = function create(properties) { - return new DeleteConnectionRequest(properties); - }; - - /** - * Encodes the specified DeleteConnectionRequest message. Does not implicitly {@link protos.DeleteConnectionRequest.verify|verify} messages. - * @function encode - * @memberof protos.DeleteConnectionRequest - * @static - * @param {protos.IDeleteConnectionRequest} message DeleteConnectionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteConnectionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connectionId); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified DeleteConnectionRequest message, length delimited. Does not implicitly {@link protos.DeleteConnectionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.DeleteConnectionRequest - * @static - * @param {protos.IDeleteConnectionRequest} message DeleteConnectionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteConnectionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteConnectionRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.DeleteConnectionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.DeleteConnectionRequest} DeleteConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteConnectionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.DeleteConnectionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.connectionId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DeleteConnectionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.DeleteConnectionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.DeleteConnectionRequest} DeleteConnectionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteConnectionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteConnectionRequest message. - * @function verify - * @memberof protos.DeleteConnectionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteConnectionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - if (!$util.isString(message.connectionId)) - return "connectionId: string expected"; - return null; - }; - - /** - * Creates a DeleteConnectionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.DeleteConnectionRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.DeleteConnectionRequest} DeleteConnectionRequest - */ - DeleteConnectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.DeleteConnectionRequest) - return object; - var message = new $root.protos.DeleteConnectionRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.DeleteConnectionRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.connectionId != null) - message.connectionId = String(object.connectionId); - return message; - }; - - /** - * Creates a plain object from a DeleteConnectionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.DeleteConnectionRequest - * @static - * @param {protos.DeleteConnectionRequest} message DeleteConnectionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteConnectionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.connectionId = ""; - object.auth = null; - } - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - object.connectionId = message.connectionId; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this DeleteConnectionRequest to JSON. - * @function toJSON - * @memberof protos.DeleteConnectionRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteConnectionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteConnectionRequest; - })(); - - protos.DeleteConnectionResponse = (function() { - - /** - * Properties of a DeleteConnectionResponse. - * @memberof protos - * @interface IDeleteConnectionResponse - * @property {protos.common.IStatus|null} [status] DeleteConnectionResponse status - */ - - /** - * Constructs a new DeleteConnectionResponse. - * @memberof protos - * @classdesc Represents a DeleteConnectionResponse. - * @implements IDeleteConnectionResponse - * @constructor - * @param {protos.IDeleteConnectionResponse=} [properties] Properties to set - */ - function DeleteConnectionResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DeleteConnectionResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.DeleteConnectionResponse - * @instance - */ - DeleteConnectionResponse.prototype.status = null; - - /** - * Creates a new DeleteConnectionResponse instance using the specified properties. - * @function create - * @memberof protos.DeleteConnectionResponse - * @static - * @param {protos.IDeleteConnectionResponse=} [properties] Properties to set - * @returns {protos.DeleteConnectionResponse} DeleteConnectionResponse instance - */ - DeleteConnectionResponse.create = function create(properties) { - return new DeleteConnectionResponse(properties); - }; - - /** - * Encodes the specified DeleteConnectionResponse message. Does not implicitly {@link protos.DeleteConnectionResponse.verify|verify} messages. - * @function encode - * @memberof protos.DeleteConnectionResponse - * @static - * @param {protos.IDeleteConnectionResponse} message DeleteConnectionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteConnectionResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified DeleteConnectionResponse message, length delimited. Does not implicitly {@link protos.DeleteConnectionResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.DeleteConnectionResponse - * @static - * @param {protos.IDeleteConnectionResponse} message DeleteConnectionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteConnectionResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteConnectionResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.DeleteConnectionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.DeleteConnectionResponse} DeleteConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteConnectionResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.DeleteConnectionResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a AWSSNSWriteArgs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.args.AWSSNSWriteArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.args.AWSSNSWriteArgs} AWSSNSWriteArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AWSSNSWriteArgs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a DeleteConnectionResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.DeleteConnectionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.DeleteConnectionResponse} DeleteConnectionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteConnectionResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Verifies a AWSSNSWriteArgs message. + * @function verify + * @memberof protos.args.AWSSNSWriteArgs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AWSSNSWriteArgs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.topic != null && message.hasOwnProperty("topic")) + if (!$util.isString(message.topic)) + return "topic: string expected"; + return null; + }; - /** - * Verifies a DeleteConnectionResponse message. - * @function verify - * @memberof protos.DeleteConnectionResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteConnectionResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; + /** + * Creates a AWSSNSWriteArgs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.AWSSNSWriteArgs + * @static + * @param {Object.} object Plain object + * @returns {protos.args.AWSSNSWriteArgs} AWSSNSWriteArgs + */ + AWSSNSWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AWSSNSWriteArgs) + return object; + var message = new $root.protos.args.AWSSNSWriteArgs(); + if (object.topic != null) + message.topic = String(object.topic); + return message; + }; - /** - * Creates a DeleteConnectionResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.DeleteConnectionResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.DeleteConnectionResponse} DeleteConnectionResponse - */ - DeleteConnectionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.DeleteConnectionResponse) + /** + * Creates a plain object from a AWSSNSWriteArgs message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.AWSSNSWriteArgs + * @static + * @param {protos.args.AWSSNSWriteArgs} message AWSSNSWriteArgs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AWSSNSWriteArgs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.topic = ""; + if (message.topic != null && message.hasOwnProperty("topic")) + object.topic = message.topic; return object; - var message = new $root.protos.DeleteConnectionResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.DeleteConnectionResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - return message; - }; - - /** - * Creates a plain object from a DeleteConnectionResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.DeleteConnectionResponse - * @static - * @param {protos.DeleteConnectionResponse} message DeleteConnectionResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteConnectionResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this DeleteConnectionResponse to JSON. - * @function toJSON - * @memberof protos.DeleteConnectionResponse - * @instance - * @returns {Object.} JSON object - */ - DeleteConnectionResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteConnectionResponse; - })(); + }; - protos.common = (function() { + /** + * Converts this AWSSNSWriteArgs to JSON. + * @function toJSON + * @memberof protos.args.AWSSNSWriteArgs + * @instance + * @returns {Object.} JSON object + */ + AWSSNSWriteArgs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Namespace common. - * @memberof protos - * @namespace - */ - var common = {}; + return AWSSNSWriteArgs; + })(); - common.Foreman = (function() { + args.AWSSQSConn = (function() { /** - * Properties of a Foreman. - * @memberof protos.common - * @interface IForeman - * @property {string|null} [authToken] Foreman authToken - * @property {string|null} [plumberClusterId] Foreman plumberClusterId - * @property {string|null} [teamId] Foreman teamId + * Properties of a AWSSQSConn. + * @memberof protos.args + * @interface IAWSSQSConn + * @property {string|null} [awsRegion] AWSSQSConn awsRegion + * @property {string|null} [awsAccessKeyId] AWSSQSConn awsAccessKeyId + * @property {string|null} [awsSecretAccessKey] AWSSQSConn awsSecretAccessKey + * @property {string|null} [awsProfile] AWSSQSConn awsProfile */ /** - * Constructs a new Foreman. - * @memberof protos.common - * @classdesc Represents a Foreman. - * @implements IForeman + * Constructs a new AWSSQSConn. + * @memberof protos.args + * @classdesc Represents a AWSSQSConn. + * @implements IAWSSQSConn * @constructor - * @param {protos.common.IForeman=} [properties] Properties to set + * @param {protos.args.IAWSSQSConn=} [properties] Properties to set */ - function Foreman(properties) { + function AWSSQSConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3249,101 +1959,114 @@ $root.protos = (function() { } /** - * Foreman authToken. - * @member {string} authToken - * @memberof protos.common.Foreman + * AWSSQSConn awsRegion. + * @member {string} awsRegion + * @memberof protos.args.AWSSQSConn * @instance */ - Foreman.prototype.authToken = ""; + AWSSQSConn.prototype.awsRegion = ""; /** - * Foreman plumberClusterId. - * @member {string} plumberClusterId - * @memberof protos.common.Foreman + * AWSSQSConn awsAccessKeyId. + * @member {string} awsAccessKeyId + * @memberof protos.args.AWSSQSConn * @instance */ - Foreman.prototype.plumberClusterId = ""; + AWSSQSConn.prototype.awsAccessKeyId = ""; /** - * Foreman teamId. - * @member {string} teamId - * @memberof protos.common.Foreman + * AWSSQSConn awsSecretAccessKey. + * @member {string} awsSecretAccessKey + * @memberof protos.args.AWSSQSConn * @instance */ - Foreman.prototype.teamId = ""; + AWSSQSConn.prototype.awsSecretAccessKey = ""; /** - * Creates a new Foreman instance using the specified properties. + * AWSSQSConn awsProfile. + * @member {string} awsProfile + * @memberof protos.args.AWSSQSConn + * @instance + */ + AWSSQSConn.prototype.awsProfile = ""; + + /** + * Creates a new AWSSQSConn instance using the specified properties. * @function create - * @memberof protos.common.Foreman + * @memberof protos.args.AWSSQSConn * @static - * @param {protos.common.IForeman=} [properties] Properties to set - * @returns {protos.common.Foreman} Foreman instance + * @param {protos.args.IAWSSQSConn=} [properties] Properties to set + * @returns {protos.args.AWSSQSConn} AWSSQSConn instance */ - Foreman.create = function create(properties) { - return new Foreman(properties); + AWSSQSConn.create = function create(properties) { + return new AWSSQSConn(properties); }; /** - * Encodes the specified Foreman message. Does not implicitly {@link protos.common.Foreman.verify|verify} messages. + * Encodes the specified AWSSQSConn message. Does not implicitly {@link protos.args.AWSSQSConn.verify|verify} messages. * @function encode - * @memberof protos.common.Foreman + * @memberof protos.args.AWSSQSConn * @static - * @param {protos.common.IForeman} message Foreman message or plain object to encode + * @param {protos.args.IAWSSQSConn} message AWSSQSConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Foreman.encode = function encode(message, writer) { + AWSSQSConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.authToken != null && Object.hasOwnProperty.call(message, "authToken")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.authToken); - if (message.plumberClusterId != null && Object.hasOwnProperty.call(message, "plumberClusterId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.plumberClusterId); - if (message.teamId != null && Object.hasOwnProperty.call(message, "teamId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.teamId); + if (message.awsRegion != null && Object.hasOwnProperty.call(message, "awsRegion")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.awsRegion); + if (message.awsAccessKeyId != null && Object.hasOwnProperty.call(message, "awsAccessKeyId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.awsAccessKeyId); + if (message.awsSecretAccessKey != null && Object.hasOwnProperty.call(message, "awsSecretAccessKey")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.awsSecretAccessKey); + if (message.awsProfile != null && Object.hasOwnProperty.call(message, "awsProfile")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.awsProfile); return writer; }; /** - * Encodes the specified Foreman message, length delimited. Does not implicitly {@link protos.common.Foreman.verify|verify} messages. + * Encodes the specified AWSSQSConn message, length delimited. Does not implicitly {@link protos.args.AWSSQSConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.common.Foreman + * @memberof protos.args.AWSSQSConn * @static - * @param {protos.common.IForeman} message Foreman message or plain object to encode + * @param {protos.args.IAWSSQSConn} message AWSSQSConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Foreman.encodeDelimited = function encodeDelimited(message, writer) { + AWSSQSConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Foreman message from the specified reader or buffer. + * Decodes a AWSSQSConn message from the specified reader or buffer. * @function decode - * @memberof protos.common.Foreman + * @memberof protos.args.AWSSQSConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.common.Foreman} Foreman + * @returns {protos.args.AWSSQSConn} AWSSQSConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Foreman.decode = function decode(reader, length) { + AWSSQSConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.common.Foreman(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSSQSConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.authToken = reader.string(); + message.awsRegion = reader.string(); break; case 2: - message.plumberClusterId = reader.string(); + message.awsAccessKeyId = reader.string(); break; case 3: - message.teamId = reader.string(); + message.awsSecretAccessKey = reader.string(); + break; + case 4: + message.awsProfile = reader.string(); break; default: reader.skipType(tag & 7); @@ -3354,125 +2077,137 @@ $root.protos = (function() { }; /** - * Decodes a Foreman message from the specified reader or buffer, length delimited. + * Decodes a AWSSQSConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.common.Foreman + * @memberof protos.args.AWSSQSConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.common.Foreman} Foreman + * @returns {protos.args.AWSSQSConn} AWSSQSConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Foreman.decodeDelimited = function decodeDelimited(reader) { + AWSSQSConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Foreman message. + * Verifies a AWSSQSConn message. * @function verify - * @memberof protos.common.Foreman + * @memberof protos.args.AWSSQSConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Foreman.verify = function verify(message) { + AWSSQSConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.authToken != null && message.hasOwnProperty("authToken")) - if (!$util.isString(message.authToken)) - return "authToken: string expected"; - if (message.plumberClusterId != null && message.hasOwnProperty("plumberClusterId")) - if (!$util.isString(message.plumberClusterId)) - return "plumberClusterId: string expected"; - if (message.teamId != null && message.hasOwnProperty("teamId")) - if (!$util.isString(message.teamId)) - return "teamId: string expected"; + if (message.awsRegion != null && message.hasOwnProperty("awsRegion")) + if (!$util.isString(message.awsRegion)) + return "awsRegion: string expected"; + if (message.awsAccessKeyId != null && message.hasOwnProperty("awsAccessKeyId")) + if (!$util.isString(message.awsAccessKeyId)) + return "awsAccessKeyId: string expected"; + if (message.awsSecretAccessKey != null && message.hasOwnProperty("awsSecretAccessKey")) + if (!$util.isString(message.awsSecretAccessKey)) + return "awsSecretAccessKey: string expected"; + if (message.awsProfile != null && message.hasOwnProperty("awsProfile")) + if (!$util.isString(message.awsProfile)) + return "awsProfile: string expected"; return null; }; /** - * Creates a Foreman message from a plain object. Also converts values to their respective internal types. + * Creates a AWSSQSConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.common.Foreman + * @memberof protos.args.AWSSQSConn * @static * @param {Object.} object Plain object - * @returns {protos.common.Foreman} Foreman + * @returns {protos.args.AWSSQSConn} AWSSQSConn */ - Foreman.fromObject = function fromObject(object) { - if (object instanceof $root.protos.common.Foreman) + AWSSQSConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AWSSQSConn) return object; - var message = new $root.protos.common.Foreman(); - if (object.authToken != null) - message.authToken = String(object.authToken); - if (object.plumberClusterId != null) - message.plumberClusterId = String(object.plumberClusterId); - if (object.teamId != null) - message.teamId = String(object.teamId); + var message = new $root.protos.args.AWSSQSConn(); + if (object.awsRegion != null) + message.awsRegion = String(object.awsRegion); + if (object.awsAccessKeyId != null) + message.awsAccessKeyId = String(object.awsAccessKeyId); + if (object.awsSecretAccessKey != null) + message.awsSecretAccessKey = String(object.awsSecretAccessKey); + if (object.awsProfile != null) + message.awsProfile = String(object.awsProfile); return message; }; /** - * Creates a plain object from a Foreman message. Also converts values to other types if specified. + * Creates a plain object from a AWSSQSConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.common.Foreman + * @memberof protos.args.AWSSQSConn * @static - * @param {protos.common.Foreman} message Foreman + * @param {protos.args.AWSSQSConn} message AWSSQSConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Foreman.toObject = function toObject(message, options) { + AWSSQSConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.authToken = ""; - object.plumberClusterId = ""; - object.teamId = ""; + object.awsRegion = ""; + object.awsAccessKeyId = ""; + object.awsSecretAccessKey = ""; + object.awsProfile = ""; } - if (message.authToken != null && message.hasOwnProperty("authToken")) - object.authToken = message.authToken; - if (message.plumberClusterId != null && message.hasOwnProperty("plumberClusterId")) - object.plumberClusterId = message.plumberClusterId; - if (message.teamId != null && message.hasOwnProperty("teamId")) - object.teamId = message.teamId; + if (message.awsRegion != null && message.hasOwnProperty("awsRegion")) + object.awsRegion = message.awsRegion; + if (message.awsAccessKeyId != null && message.hasOwnProperty("awsAccessKeyId")) + object.awsAccessKeyId = message.awsAccessKeyId; + if (message.awsSecretAccessKey != null && message.hasOwnProperty("awsSecretAccessKey")) + object.awsSecretAccessKey = message.awsSecretAccessKey; + if (message.awsProfile != null && message.hasOwnProperty("awsProfile")) + object.awsProfile = message.awsProfile; return object; }; /** - * Converts this Foreman to JSON. + * Converts this AWSSQSConn to JSON. * @function toJSON - * @memberof protos.common.Foreman + * @memberof protos.args.AWSSQSConn * @instance * @returns {Object.} JSON object */ - Foreman.prototype.toJSON = function toJSON() { + AWSSQSConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Foreman; + return AWSSQSConn; })(); - common.SourceManager = (function() { + args.AWSSQSReadArgs = (function() { /** - * Properties of a SourceManager. - * @memberof protos.common - * @interface ISourceManager - * @property {string|null} [serverToken] SourceManager serverToken - * @property {string|null} [sourceId] SourceManager sourceId + * Properties of a AWSSQSReadArgs. + * @memberof protos.args + * @interface IAWSSQSReadArgs + * @property {string|null} [queueName] AWSSQSReadArgs queueName + * @property {string|null} [remoteAccountId] AWSSQSReadArgs remoteAccountId + * @property {number|Long|null} [maxNumMessages] AWSSQSReadArgs maxNumMessages + * @property {string|null} [receiveRequestAttemptId] AWSSQSReadArgs receiveRequestAttemptId + * @property {boolean|null} [autoDelete] AWSSQSReadArgs autoDelete + * @property {number|Long|null} [waitTimeSeconds] AWSSQSReadArgs waitTimeSeconds */ /** - * Constructs a new SourceManager. - * @memberof protos.common - * @classdesc Represents a SourceManager. - * @implements ISourceManager + * Constructs a new AWSSQSReadArgs. + * @memberof protos.args + * @classdesc Represents a AWSSQSReadArgs. + * @implements IAWSSQSReadArgs * @constructor - * @param {protos.common.ISourceManager=} [properties] Properties to set + * @param {protos.args.IAWSSQSReadArgs=} [properties] Properties to set */ - function SourceManager(properties) { + function AWSSQSReadArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3480,88 +2215,140 @@ $root.protos = (function() { } /** - * SourceManager serverToken. - * @member {string} serverToken - * @memberof protos.common.SourceManager + * AWSSQSReadArgs queueName. + * @member {string} queueName + * @memberof protos.args.AWSSQSReadArgs * @instance */ - SourceManager.prototype.serverToken = ""; + AWSSQSReadArgs.prototype.queueName = ""; /** - * SourceManager sourceId. - * @member {string} sourceId - * @memberof protos.common.SourceManager + * AWSSQSReadArgs remoteAccountId. + * @member {string} remoteAccountId + * @memberof protos.args.AWSSQSReadArgs * @instance */ - SourceManager.prototype.sourceId = ""; + AWSSQSReadArgs.prototype.remoteAccountId = ""; /** - * Creates a new SourceManager instance using the specified properties. + * AWSSQSReadArgs maxNumMessages. + * @member {number|Long} maxNumMessages + * @memberof protos.args.AWSSQSReadArgs + * @instance + */ + AWSSQSReadArgs.prototype.maxNumMessages = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AWSSQSReadArgs receiveRequestAttemptId. + * @member {string} receiveRequestAttemptId + * @memberof protos.args.AWSSQSReadArgs + * @instance + */ + AWSSQSReadArgs.prototype.receiveRequestAttemptId = ""; + + /** + * AWSSQSReadArgs autoDelete. + * @member {boolean} autoDelete + * @memberof protos.args.AWSSQSReadArgs + * @instance + */ + AWSSQSReadArgs.prototype.autoDelete = false; + + /** + * AWSSQSReadArgs waitTimeSeconds. + * @member {number|Long} waitTimeSeconds + * @memberof protos.args.AWSSQSReadArgs + * @instance + */ + AWSSQSReadArgs.prototype.waitTimeSeconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new AWSSQSReadArgs instance using the specified properties. * @function create - * @memberof protos.common.SourceManager + * @memberof protos.args.AWSSQSReadArgs * @static - * @param {protos.common.ISourceManager=} [properties] Properties to set - * @returns {protos.common.SourceManager} SourceManager instance + * @param {protos.args.IAWSSQSReadArgs=} [properties] Properties to set + * @returns {protos.args.AWSSQSReadArgs} AWSSQSReadArgs instance */ - SourceManager.create = function create(properties) { - return new SourceManager(properties); + AWSSQSReadArgs.create = function create(properties) { + return new AWSSQSReadArgs(properties); }; /** - * Encodes the specified SourceManager message. Does not implicitly {@link protos.common.SourceManager.verify|verify} messages. + * Encodes the specified AWSSQSReadArgs message. Does not implicitly {@link protos.args.AWSSQSReadArgs.verify|verify} messages. * @function encode - * @memberof protos.common.SourceManager + * @memberof protos.args.AWSSQSReadArgs * @static - * @param {protos.common.ISourceManager} message SourceManager message or plain object to encode + * @param {protos.args.IAWSSQSReadArgs} message AWSSQSReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceManager.encode = function encode(message, writer) { + AWSSQSReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.serverToken != null && Object.hasOwnProperty.call(message, "serverToken")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.serverToken); - if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceId); + if (message.queueName != null && Object.hasOwnProperty.call(message, "queueName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.queueName); + if (message.remoteAccountId != null && Object.hasOwnProperty.call(message, "remoteAccountId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.remoteAccountId); + if (message.maxNumMessages != null && Object.hasOwnProperty.call(message, "maxNumMessages")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maxNumMessages); + if (message.receiveRequestAttemptId != null && Object.hasOwnProperty.call(message, "receiveRequestAttemptId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.receiveRequestAttemptId); + if (message.autoDelete != null && Object.hasOwnProperty.call(message, "autoDelete")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.autoDelete); + if (message.waitTimeSeconds != null && Object.hasOwnProperty.call(message, "waitTimeSeconds")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.waitTimeSeconds); return writer; }; /** - * Encodes the specified SourceManager message, length delimited. Does not implicitly {@link protos.common.SourceManager.verify|verify} messages. + * Encodes the specified AWSSQSReadArgs message, length delimited. Does not implicitly {@link protos.args.AWSSQSReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.common.SourceManager + * @memberof protos.args.AWSSQSReadArgs * @static - * @param {protos.common.ISourceManager} message SourceManager message or plain object to encode + * @param {protos.args.IAWSSQSReadArgs} message AWSSQSReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceManager.encodeDelimited = function encodeDelimited(message, writer) { + AWSSQSReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SourceManager message from the specified reader or buffer. + * Decodes a AWSSQSReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.common.SourceManager + * @memberof protos.args.AWSSQSReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.common.SourceManager} SourceManager + * @returns {protos.args.AWSSQSReadArgs} AWSSQSReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceManager.decode = function decode(reader, length) { + AWSSQSReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.common.SourceManager(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSSQSReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.serverToken = reader.string(); + message.queueName = reader.string(); break; case 2: - message.sourceId = reader.string(); + message.remoteAccountId = reader.string(); + break; + case 3: + message.maxNumMessages = reader.int64(); + break; + case 4: + message.receiveRequestAttemptId = reader.string(); + break; + case 5: + message.autoDelete = reader.bool(); + break; + case 6: + message.waitTimeSeconds = reader.int64(); break; default: reader.skipType(tag & 7); @@ -3572,118 +2359,182 @@ $root.protos = (function() { }; /** - * Decodes a SourceManager message from the specified reader or buffer, length delimited. + * Decodes a AWSSQSReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.common.SourceManager + * @memberof protos.args.AWSSQSReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.common.SourceManager} SourceManager + * @returns {protos.args.AWSSQSReadArgs} AWSSQSReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceManager.decodeDelimited = function decodeDelimited(reader) { + AWSSQSReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SourceManager message. + * Verifies a AWSSQSReadArgs message. * @function verify - * @memberof protos.common.SourceManager + * @memberof protos.args.AWSSQSReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SourceManager.verify = function verify(message) { + AWSSQSReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.serverToken != null && message.hasOwnProperty("serverToken")) - if (!$util.isString(message.serverToken)) - return "serverToken: string expected"; - if (message.sourceId != null && message.hasOwnProperty("sourceId")) - if (!$util.isString(message.sourceId)) - return "sourceId: string expected"; + if (message.queueName != null && message.hasOwnProperty("queueName")) + if (!$util.isString(message.queueName)) + return "queueName: string expected"; + if (message.remoteAccountId != null && message.hasOwnProperty("remoteAccountId")) + if (!$util.isString(message.remoteAccountId)) + return "remoteAccountId: string expected"; + if (message.maxNumMessages != null && message.hasOwnProperty("maxNumMessages")) + if (!$util.isInteger(message.maxNumMessages) && !(message.maxNumMessages && $util.isInteger(message.maxNumMessages.low) && $util.isInteger(message.maxNumMessages.high))) + return "maxNumMessages: integer|Long expected"; + if (message.receiveRequestAttemptId != null && message.hasOwnProperty("receiveRequestAttemptId")) + if (!$util.isString(message.receiveRequestAttemptId)) + return "receiveRequestAttemptId: string expected"; + if (message.autoDelete != null && message.hasOwnProperty("autoDelete")) + if (typeof message.autoDelete !== "boolean") + return "autoDelete: boolean expected"; + if (message.waitTimeSeconds != null && message.hasOwnProperty("waitTimeSeconds")) + if (!$util.isInteger(message.waitTimeSeconds) && !(message.waitTimeSeconds && $util.isInteger(message.waitTimeSeconds.low) && $util.isInteger(message.waitTimeSeconds.high))) + return "waitTimeSeconds: integer|Long expected"; return null; }; /** - * Creates a SourceManager message from a plain object. Also converts values to their respective internal types. + * Creates a AWSSQSReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.common.SourceManager + * @memberof protos.args.AWSSQSReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.common.SourceManager} SourceManager + * @returns {protos.args.AWSSQSReadArgs} AWSSQSReadArgs */ - SourceManager.fromObject = function fromObject(object) { - if (object instanceof $root.protos.common.SourceManager) + AWSSQSReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AWSSQSReadArgs) return object; - var message = new $root.protos.common.SourceManager(); - if (object.serverToken != null) - message.serverToken = String(object.serverToken); - if (object.sourceId != null) - message.sourceId = String(object.sourceId); + var message = new $root.protos.args.AWSSQSReadArgs(); + if (object.queueName != null) + message.queueName = String(object.queueName); + if (object.remoteAccountId != null) + message.remoteAccountId = String(object.remoteAccountId); + if (object.maxNumMessages != null) + if ($util.Long) + (message.maxNumMessages = $util.Long.fromValue(object.maxNumMessages)).unsigned = false; + else if (typeof object.maxNumMessages === "string") + message.maxNumMessages = parseInt(object.maxNumMessages, 10); + else if (typeof object.maxNumMessages === "number") + message.maxNumMessages = object.maxNumMessages; + else if (typeof object.maxNumMessages === "object") + message.maxNumMessages = new $util.LongBits(object.maxNumMessages.low >>> 0, object.maxNumMessages.high >>> 0).toNumber(); + if (object.receiveRequestAttemptId != null) + message.receiveRequestAttemptId = String(object.receiveRequestAttemptId); + if (object.autoDelete != null) + message.autoDelete = Boolean(object.autoDelete); + if (object.waitTimeSeconds != null) + if ($util.Long) + (message.waitTimeSeconds = $util.Long.fromValue(object.waitTimeSeconds)).unsigned = false; + else if (typeof object.waitTimeSeconds === "string") + message.waitTimeSeconds = parseInt(object.waitTimeSeconds, 10); + else if (typeof object.waitTimeSeconds === "number") + message.waitTimeSeconds = object.waitTimeSeconds; + else if (typeof object.waitTimeSeconds === "object") + message.waitTimeSeconds = new $util.LongBits(object.waitTimeSeconds.low >>> 0, object.waitTimeSeconds.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a SourceManager message. Also converts values to other types if specified. + * Creates a plain object from a AWSSQSReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.common.SourceManager + * @memberof protos.args.AWSSQSReadArgs * @static - * @param {protos.common.SourceManager} message SourceManager + * @param {protos.args.AWSSQSReadArgs} message AWSSQSReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SourceManager.toObject = function toObject(message, options) { + AWSSQSReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.serverToken = ""; - object.sourceId = ""; + object.queueName = ""; + object.remoteAccountId = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxNumMessages = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxNumMessages = options.longs === String ? "0" : 0; + object.receiveRequestAttemptId = ""; + object.autoDelete = false; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.waitTimeSeconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.waitTimeSeconds = options.longs === String ? "0" : 0; } - if (message.serverToken != null && message.hasOwnProperty("serverToken")) - object.serverToken = message.serverToken; - if (message.sourceId != null && message.hasOwnProperty("sourceId")) - object.sourceId = message.sourceId; + if (message.queueName != null && message.hasOwnProperty("queueName")) + object.queueName = message.queueName; + if (message.remoteAccountId != null && message.hasOwnProperty("remoteAccountId")) + object.remoteAccountId = message.remoteAccountId; + if (message.maxNumMessages != null && message.hasOwnProperty("maxNumMessages")) + if (typeof message.maxNumMessages === "number") + object.maxNumMessages = options.longs === String ? String(message.maxNumMessages) : message.maxNumMessages; + else + object.maxNumMessages = options.longs === String ? $util.Long.prototype.toString.call(message.maxNumMessages) : options.longs === Number ? new $util.LongBits(message.maxNumMessages.low >>> 0, message.maxNumMessages.high >>> 0).toNumber() : message.maxNumMessages; + if (message.receiveRequestAttemptId != null && message.hasOwnProperty("receiveRequestAttemptId")) + object.receiveRequestAttemptId = message.receiveRequestAttemptId; + if (message.autoDelete != null && message.hasOwnProperty("autoDelete")) + object.autoDelete = message.autoDelete; + if (message.waitTimeSeconds != null && message.hasOwnProperty("waitTimeSeconds")) + if (typeof message.waitTimeSeconds === "number") + object.waitTimeSeconds = options.longs === String ? String(message.waitTimeSeconds) : message.waitTimeSeconds; + else + object.waitTimeSeconds = options.longs === String ? $util.Long.prototype.toString.call(message.waitTimeSeconds) : options.longs === Number ? new $util.LongBits(message.waitTimeSeconds.low >>> 0, message.waitTimeSeconds.high >>> 0).toNumber() : message.waitTimeSeconds; return object; }; /** - * Converts this SourceManager to JSON. + * Converts this AWSSQSReadArgs to JSON. * @function toJSON - * @memberof protos.common.SourceManager + * @memberof protos.args.AWSSQSReadArgs * @instance * @returns {Object.} JSON object */ - SourceManager.prototype.toJSON = function toJSON() { + AWSSQSReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SourceManager; + return AWSSQSReadArgs; })(); - common.Auth = (function() { + args.AWSSQSWriteArgs = (function() { /** - * Properties of an Auth. - * @memberof protos.common - * @interface IAuth - * @property {string|null} [token] Auth token - * @property {protos.common.IForeman|null} [_foreman] Auth _foreman - * @property {protos.common.ISourceManager|null} [_sourceManager] Auth _sourceManager + * Properties of a AWSSQSWriteArgs. + * @memberof protos.args + * @interface IAWSSQSWriteArgs + * @property {string|null} [queueName] AWSSQSWriteArgs queueName + * @property {string|null} [remoteAccountId] AWSSQSWriteArgs remoteAccountId + * @property {number|Long|null} [delaySeconds] AWSSQSWriteArgs delaySeconds + * @property {Object.|null} [attributes] AWSSQSWriteArgs attributes + * @property {string|null} [messageGroupId] AWSSQSWriteArgs messageGroupId + * @property {string|null} [messageDeduplicationId] AWSSQSWriteArgs messageDeduplicationId */ /** - * Constructs a new Auth. - * @memberof protos.common - * @classdesc Represents an Auth. - * @implements IAuth + * Constructs a new AWSSQSWriteArgs. + * @memberof protos.args + * @classdesc Represents a AWSSQSWriteArgs. + * @implements IAWSSQSWriteArgs * @constructor - * @param {protos.common.IAuth=} [properties] Properties to set + * @param {protos.args.IAWSSQSWriteArgs=} [properties] Properties to set */ - function Auth(properties) { + function AWSSQSWriteArgs(properties) { + this.attributes = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3691,101 +2542,160 @@ $root.protos = (function() { } /** - * Auth token. - * @member {string} token - * @memberof protos.common.Auth + * AWSSQSWriteArgs queueName. + * @member {string} queueName + * @memberof protos.args.AWSSQSWriteArgs * @instance */ - Auth.prototype.token = ""; + AWSSQSWriteArgs.prototype.queueName = ""; /** - * Auth _foreman. - * @member {protos.common.IForeman|null|undefined} _foreman - * @memberof protos.common.Auth + * AWSSQSWriteArgs remoteAccountId. + * @member {string} remoteAccountId + * @memberof protos.args.AWSSQSWriteArgs * @instance */ - Auth.prototype._foreman = null; + AWSSQSWriteArgs.prototype.remoteAccountId = ""; /** - * Auth _sourceManager. - * @member {protos.common.ISourceManager|null|undefined} _sourceManager - * @memberof protos.common.Auth + * AWSSQSWriteArgs delaySeconds. + * @member {number|Long} delaySeconds + * @memberof protos.args.AWSSQSWriteArgs * @instance */ - Auth.prototype._sourceManager = null; + AWSSQSWriteArgs.prototype.delaySeconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new Auth instance using the specified properties. + * AWSSQSWriteArgs attributes. + * @member {Object.} attributes + * @memberof protos.args.AWSSQSWriteArgs + * @instance + */ + AWSSQSWriteArgs.prototype.attributes = $util.emptyObject; + + /** + * AWSSQSWriteArgs messageGroupId. + * @member {string} messageGroupId + * @memberof protos.args.AWSSQSWriteArgs + * @instance + */ + AWSSQSWriteArgs.prototype.messageGroupId = ""; + + /** + * AWSSQSWriteArgs messageDeduplicationId. + * @member {string} messageDeduplicationId + * @memberof protos.args.AWSSQSWriteArgs + * @instance + */ + AWSSQSWriteArgs.prototype.messageDeduplicationId = ""; + + /** + * Creates a new AWSSQSWriteArgs instance using the specified properties. * @function create - * @memberof protos.common.Auth + * @memberof protos.args.AWSSQSWriteArgs * @static - * @param {protos.common.IAuth=} [properties] Properties to set - * @returns {protos.common.Auth} Auth instance + * @param {protos.args.IAWSSQSWriteArgs=} [properties] Properties to set + * @returns {protos.args.AWSSQSWriteArgs} AWSSQSWriteArgs instance */ - Auth.create = function create(properties) { - return new Auth(properties); + AWSSQSWriteArgs.create = function create(properties) { + return new AWSSQSWriteArgs(properties); }; /** - * Encodes the specified Auth message. Does not implicitly {@link protos.common.Auth.verify|verify} messages. + * Encodes the specified AWSSQSWriteArgs message. Does not implicitly {@link protos.args.AWSSQSWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.common.Auth + * @memberof protos.args.AWSSQSWriteArgs * @static - * @param {protos.common.IAuth} message Auth message or plain object to encode + * @param {protos.args.IAWSSQSWriteArgs} message AWSSQSWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Auth.encode = function encode(message, writer) { + AWSSQSWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.token != null && Object.hasOwnProperty.call(message, "token")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.token); - if (message._foreman != null && Object.hasOwnProperty.call(message, "_foreman")) - $root.protos.common.Foreman.encode(message._foreman, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message._sourceManager != null && Object.hasOwnProperty.call(message, "_sourceManager")) - $root.protos.common.SourceManager.encode(message._sourceManager, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Auth message, length delimited. Does not implicitly {@link protos.common.Auth.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.common.Auth - * @static - * @param {protos.common.IAuth} message Auth message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to + if (message.queueName != null && Object.hasOwnProperty.call(message, "queueName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.queueName); + if (message.remoteAccountId != null && Object.hasOwnProperty.call(message, "remoteAccountId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.remoteAccountId); + if (message.delaySeconds != null && Object.hasOwnProperty.call(message, "delaySeconds")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.delaySeconds); + if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes")) + for (var keys = Object.keys(message.attributes), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.attributes[keys[i]]).ldelim(); + if (message.messageGroupId != null && Object.hasOwnProperty.call(message, "messageGroupId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.messageGroupId); + if (message.messageDeduplicationId != null && Object.hasOwnProperty.call(message, "messageDeduplicationId")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.messageDeduplicationId); + return writer; + }; + + /** + * Encodes the specified AWSSQSWriteArgs message, length delimited. Does not implicitly {@link protos.args.AWSSQSWriteArgs.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.AWSSQSWriteArgs + * @static + * @param {protos.args.IAWSSQSWriteArgs} message AWSSQSWriteArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Auth.encodeDelimited = function encodeDelimited(message, writer) { + AWSSQSWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Auth message from the specified reader or buffer. + * Decodes a AWSSQSWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.common.Auth + * @memberof protos.args.AWSSQSWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.common.Auth} Auth + * @returns {protos.args.AWSSQSWriteArgs} AWSSQSWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Auth.decode = function decode(reader, length) { + AWSSQSWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.common.Auth(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSSQSWriteArgs(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.token = reader.string(); + message.queueName = reader.string(); break; case 2: - message._foreman = $root.protos.common.Foreman.decode(reader, reader.uint32()); + message.remoteAccountId = reader.string(); break; case 3: - message._sourceManager = $root.protos.common.SourceManager.decode(reader, reader.uint32()); + message.delaySeconds = reader.int64(); + break; + case 4: + if (message.attributes === $util.emptyObject) + message.attributes = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.attributes[key] = value; + break; + case 5: + message.messageGroupId = reader.string(); + break; + case 6: + message.messageDeduplicationId = reader.string(); break; default: reader.skipType(tag & 7); @@ -3796,180 +2706,182 @@ $root.protos = (function() { }; /** - * Decodes an Auth message from the specified reader or buffer, length delimited. + * Decodes a AWSSQSWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.common.Auth + * @memberof protos.args.AWSSQSWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.common.Auth} Auth + * @returns {protos.args.AWSSQSWriteArgs} AWSSQSWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Auth.decodeDelimited = function decodeDelimited(reader) { + AWSSQSWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Auth message. + * Verifies a AWSSQSWriteArgs message. * @function verify - * @memberof protos.common.Auth + * @memberof protos.args.AWSSQSWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Auth.verify = function verify(message) { + AWSSQSWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message._foreman != null && message.hasOwnProperty("_foreman")) { - var error = $root.protos.common.Foreman.verify(message._foreman); - if (error) - return "_foreman." + error; - } - if (message._sourceManager != null && message.hasOwnProperty("_sourceManager")) { - var error = $root.protos.common.SourceManager.verify(message._sourceManager); - if (error) - return "_sourceManager." + error; + if (message.queueName != null && message.hasOwnProperty("queueName")) + if (!$util.isString(message.queueName)) + return "queueName: string expected"; + if (message.remoteAccountId != null && message.hasOwnProperty("remoteAccountId")) + if (!$util.isString(message.remoteAccountId)) + return "remoteAccountId: string expected"; + if (message.delaySeconds != null && message.hasOwnProperty("delaySeconds")) + if (!$util.isInteger(message.delaySeconds) && !(message.delaySeconds && $util.isInteger(message.delaySeconds.low) && $util.isInteger(message.delaySeconds.high))) + return "delaySeconds: integer|Long expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + if (!$util.isObject(message.attributes)) + return "attributes: object expected"; + var key = Object.keys(message.attributes); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.attributes[key[i]])) + return "attributes: string{k:string} expected"; } + if (message.messageGroupId != null && message.hasOwnProperty("messageGroupId")) + if (!$util.isString(message.messageGroupId)) + return "messageGroupId: string expected"; + if (message.messageDeduplicationId != null && message.hasOwnProperty("messageDeduplicationId")) + if (!$util.isString(message.messageDeduplicationId)) + return "messageDeduplicationId: string expected"; return null; }; /** - * Creates an Auth message from a plain object. Also converts values to their respective internal types. + * Creates a AWSSQSWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.common.Auth + * @memberof protos.args.AWSSQSWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.common.Auth} Auth + * @returns {protos.args.AWSSQSWriteArgs} AWSSQSWriteArgs */ - Auth.fromObject = function fromObject(object) { - if (object instanceof $root.protos.common.Auth) + AWSSQSWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AWSSQSWriteArgs) return object; - var message = new $root.protos.common.Auth(); - if (object.token != null) - message.token = String(object.token); - if (object._foreman != null) { - if (typeof object._foreman !== "object") - throw TypeError(".protos.common.Auth._foreman: object expected"); - message._foreman = $root.protos.common.Foreman.fromObject(object._foreman); - } - if (object._sourceManager != null) { - if (typeof object._sourceManager !== "object") - throw TypeError(".protos.common.Auth._sourceManager: object expected"); - message._sourceManager = $root.protos.common.SourceManager.fromObject(object._sourceManager); + var message = new $root.protos.args.AWSSQSWriteArgs(); + if (object.queueName != null) + message.queueName = String(object.queueName); + if (object.remoteAccountId != null) + message.remoteAccountId = String(object.remoteAccountId); + if (object.delaySeconds != null) + if ($util.Long) + (message.delaySeconds = $util.Long.fromValue(object.delaySeconds)).unsigned = false; + else if (typeof object.delaySeconds === "string") + message.delaySeconds = parseInt(object.delaySeconds, 10); + else if (typeof object.delaySeconds === "number") + message.delaySeconds = object.delaySeconds; + else if (typeof object.delaySeconds === "object") + message.delaySeconds = new $util.LongBits(object.delaySeconds.low >>> 0, object.delaySeconds.high >>> 0).toNumber(); + if (object.attributes) { + if (typeof object.attributes !== "object") + throw TypeError(".protos.args.AWSSQSWriteArgs.attributes: object expected"); + message.attributes = {}; + for (var keys = Object.keys(object.attributes), i = 0; i < keys.length; ++i) + message.attributes[keys[i]] = String(object.attributes[keys[i]]); } + if (object.messageGroupId != null) + message.messageGroupId = String(object.messageGroupId); + if (object.messageDeduplicationId != null) + message.messageDeduplicationId = String(object.messageDeduplicationId); return message; }; /** - * Creates a plain object from an Auth message. Also converts values to other types if specified. + * Creates a plain object from a AWSSQSWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.common.Auth + * @memberof protos.args.AWSSQSWriteArgs * @static - * @param {protos.common.Auth} message Auth + * @param {protos.args.AWSSQSWriteArgs} message AWSSQSWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Auth.toObject = function toObject(message, options) { + AWSSQSWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.attributes = {}; if (options.defaults) { - object.token = ""; - object._foreman = null; - object._sourceManager = null; + object.queueName = ""; + object.remoteAccountId = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.delaySeconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.delaySeconds = options.longs === String ? "0" : 0; + object.messageGroupId = ""; + object.messageDeduplicationId = ""; } - if (message.token != null && message.hasOwnProperty("token")) - object.token = message.token; - if (message._foreman != null && message.hasOwnProperty("_foreman")) - object._foreman = $root.protos.common.Foreman.toObject(message._foreman, options); - if (message._sourceManager != null && message.hasOwnProperty("_sourceManager")) - object._sourceManager = $root.protos.common.SourceManager.toObject(message._sourceManager, options); + if (message.queueName != null && message.hasOwnProperty("queueName")) + object.queueName = message.queueName; + if (message.remoteAccountId != null && message.hasOwnProperty("remoteAccountId")) + object.remoteAccountId = message.remoteAccountId; + if (message.delaySeconds != null && message.hasOwnProperty("delaySeconds")) + if (typeof message.delaySeconds === "number") + object.delaySeconds = options.longs === String ? String(message.delaySeconds) : message.delaySeconds; + else + object.delaySeconds = options.longs === String ? $util.Long.prototype.toString.call(message.delaySeconds) : options.longs === Number ? new $util.LongBits(message.delaySeconds.low >>> 0, message.delaySeconds.high >>> 0).toNumber() : message.delaySeconds; + var keys2; + if (message.attributes && (keys2 = Object.keys(message.attributes)).length) { + object.attributes = {}; + for (var j = 0; j < keys2.length; ++j) + object.attributes[keys2[j]] = message.attributes[keys2[j]]; + } + if (message.messageGroupId != null && message.hasOwnProperty("messageGroupId")) + object.messageGroupId = message.messageGroupId; + if (message.messageDeduplicationId != null && message.hasOwnProperty("messageDeduplicationId")) + object.messageDeduplicationId = message.messageDeduplicationId; return object; }; /** - * Converts this Auth to JSON. + * Converts this AWSSQSWriteArgs to JSON. * @function toJSON - * @memberof protos.common.Auth + * @memberof protos.args.AWSSQSWriteArgs * @instance * @returns {Object.} JSON object */ - Auth.prototype.toJSON = function toJSON() { + AWSSQSWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Auth; - })(); - - /** - * Code enum. - * @name protos.common.Code - * @enum {number} - * @property {number} OK=0 OK value - * @property {number} CANCELLED=1 CANCELLED value - * @property {number} UNKNOWN=2 UNKNOWN value - * @property {number} INVALID_ARGUMENT=3 INVALID_ARGUMENT value - * @property {number} DEADLINE_EXCEEDED=4 DEADLINE_EXCEEDED value - * @property {number} NOT_FOUND=5 NOT_FOUND value - * @property {number} ALREADY_EXISTS=6 ALREADY_EXISTS value - * @property {number} PERMISSION_DENIED=7 PERMISSION_DENIED value - * @property {number} UNAUTHENTICATED=16 UNAUTHENTICATED value - * @property {number} RESOURCE_EXHAUSTED=8 RESOURCE_EXHAUSTED value - * @property {number} FAILED_PRECONDITION=9 FAILED_PRECONDITION value - * @property {number} ABORTED=10 ABORTED value - * @property {number} OUT_OF_RANGE=11 OUT_OF_RANGE value - * @property {number} UNIMPLEMENTED=12 UNIMPLEMENTED value - * @property {number} INTERNAL=13 INTERNAL value - * @property {number} UNAVAILABLE=14 UNAVAILABLE value - * @property {number} DATA_LOSS=15 DATA_LOSS value - */ - common.Code = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OK"] = 0; - values[valuesById[1] = "CANCELLED"] = 1; - values[valuesById[2] = "UNKNOWN"] = 2; - values[valuesById[3] = "INVALID_ARGUMENT"] = 3; - values[valuesById[4] = "DEADLINE_EXCEEDED"] = 4; - values[valuesById[5] = "NOT_FOUND"] = 5; - values[valuesById[6] = "ALREADY_EXISTS"] = 6; - values[valuesById[7] = "PERMISSION_DENIED"] = 7; - values[valuesById[16] = "UNAUTHENTICATED"] = 16; - values[valuesById[8] = "RESOURCE_EXHAUSTED"] = 8; - values[valuesById[9] = "FAILED_PRECONDITION"] = 9; - values[valuesById[10] = "ABORTED"] = 10; - values[valuesById[11] = "OUT_OF_RANGE"] = 11; - values[valuesById[12] = "UNIMPLEMENTED"] = 12; - values[valuesById[13] = "INTERNAL"] = 13; - values[valuesById[14] = "UNAVAILABLE"] = 14; - values[valuesById[15] = "DATA_LOSS"] = 15; - return values; + return AWSSQSWriteArgs; })(); - common.Status = (function() { + args.AWSSQSRelayArgs = (function() { /** - * Properties of a Status. - * @memberof protos.common - * @interface IStatus - * @property {protos.common.Code|null} [code] Status code - * @property {string|null} [message] Status message - * @property {string|null} [requestId] Status requestId + * Properties of a AWSSQSRelayArgs. + * @memberof protos.args + * @interface IAWSSQSRelayArgs + * @property {string|null} [queueName] AWSSQSRelayArgs queueName + * @property {string|null} [remoteAccountId] AWSSQSRelayArgs remoteAccountId + * @property {number|Long|null} [maxNumMessages] AWSSQSRelayArgs maxNumMessages + * @property {string|null} [receiveRequestAttemptId] AWSSQSRelayArgs receiveRequestAttemptId + * @property {boolean|null} [autoDelete] AWSSQSRelayArgs autoDelete + * @property {number|Long|null} [waitTimeSeconds] AWSSQSRelayArgs waitTimeSeconds */ /** - * Constructs a new Status. - * @memberof protos.common - * @classdesc Represents a Status. - * @implements IStatus + * Constructs a new AWSSQSRelayArgs. + * @memberof protos.args + * @classdesc Represents a AWSSQSRelayArgs. + * @implements IAWSSQSRelayArgs * @constructor - * @param {protos.common.IStatus=} [properties] Properties to set + * @param {protos.args.IAWSSQSRelayArgs=} [properties] Properties to set */ - function Status(properties) { + function AWSSQSRelayArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3977,101 +2889,140 @@ $root.protos = (function() { } /** - * Status code. - * @member {protos.common.Code} code - * @memberof protos.common.Status + * AWSSQSRelayArgs queueName. + * @member {string} queueName + * @memberof protos.args.AWSSQSRelayArgs * @instance */ - Status.prototype.code = 0; + AWSSQSRelayArgs.prototype.queueName = ""; /** - * Status message. - * @member {string} message - * @memberof protos.common.Status + * AWSSQSRelayArgs remoteAccountId. + * @member {string} remoteAccountId + * @memberof protos.args.AWSSQSRelayArgs * @instance */ - Status.prototype.message = ""; + AWSSQSRelayArgs.prototype.remoteAccountId = ""; /** - * Status requestId. - * @member {string} requestId - * @memberof protos.common.Status + * AWSSQSRelayArgs maxNumMessages. + * @member {number|Long} maxNumMessages + * @memberof protos.args.AWSSQSRelayArgs * @instance */ - Status.prototype.requestId = ""; + AWSSQSRelayArgs.prototype.maxNumMessages = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new Status instance using the specified properties. + * AWSSQSRelayArgs receiveRequestAttemptId. + * @member {string} receiveRequestAttemptId + * @memberof protos.args.AWSSQSRelayArgs + * @instance + */ + AWSSQSRelayArgs.prototype.receiveRequestAttemptId = ""; + + /** + * AWSSQSRelayArgs autoDelete. + * @member {boolean} autoDelete + * @memberof protos.args.AWSSQSRelayArgs + * @instance + */ + AWSSQSRelayArgs.prototype.autoDelete = false; + + /** + * AWSSQSRelayArgs waitTimeSeconds. + * @member {number|Long} waitTimeSeconds + * @memberof protos.args.AWSSQSRelayArgs + * @instance + */ + AWSSQSRelayArgs.prototype.waitTimeSeconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new AWSSQSRelayArgs instance using the specified properties. * @function create - * @memberof protos.common.Status + * @memberof protos.args.AWSSQSRelayArgs * @static - * @param {protos.common.IStatus=} [properties] Properties to set - * @returns {protos.common.Status} Status instance + * @param {protos.args.IAWSSQSRelayArgs=} [properties] Properties to set + * @returns {protos.args.AWSSQSRelayArgs} AWSSQSRelayArgs instance */ - Status.create = function create(properties) { - return new Status(properties); + AWSSQSRelayArgs.create = function create(properties) { + return new AWSSQSRelayArgs(properties); }; /** - * Encodes the specified Status message. Does not implicitly {@link protos.common.Status.verify|verify} messages. + * Encodes the specified AWSSQSRelayArgs message. Does not implicitly {@link protos.args.AWSSQSRelayArgs.verify|verify} messages. * @function encode - * @memberof protos.common.Status + * @memberof protos.args.AWSSQSRelayArgs * @static - * @param {protos.common.IStatus} message Status message or plain object to encode + * @param {protos.args.IAWSSQSRelayArgs} message AWSSQSRelayArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Status.encode = function encode(message, writer) { + AWSSQSRelayArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); + if (message.queueName != null && Object.hasOwnProperty.call(message, "queueName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.queueName); + if (message.remoteAccountId != null && Object.hasOwnProperty.call(message, "remoteAccountId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.remoteAccountId); + if (message.maxNumMessages != null && Object.hasOwnProperty.call(message, "maxNumMessages")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maxNumMessages); + if (message.receiveRequestAttemptId != null && Object.hasOwnProperty.call(message, "receiveRequestAttemptId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.receiveRequestAttemptId); + if (message.autoDelete != null && Object.hasOwnProperty.call(message, "autoDelete")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.autoDelete); + if (message.waitTimeSeconds != null && Object.hasOwnProperty.call(message, "waitTimeSeconds")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.waitTimeSeconds); return writer; }; /** - * Encodes the specified Status message, length delimited. Does not implicitly {@link protos.common.Status.verify|verify} messages. + * Encodes the specified AWSSQSRelayArgs message, length delimited. Does not implicitly {@link protos.args.AWSSQSRelayArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.common.Status + * @memberof protos.args.AWSSQSRelayArgs * @static - * @param {protos.common.IStatus} message Status message or plain object to encode + * @param {protos.args.IAWSSQSRelayArgs} message AWSSQSRelayArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Status.encodeDelimited = function encodeDelimited(message, writer) { + AWSSQSRelayArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Status message from the specified reader or buffer. + * Decodes a AWSSQSRelayArgs message from the specified reader or buffer. * @function decode - * @memberof protos.common.Status + * @memberof protos.args.AWSSQSRelayArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.common.Status} Status + * @returns {protos.args.AWSSQSRelayArgs} AWSSQSRelayArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.decode = function decode(reader, length) { + AWSSQSRelayArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.common.Status(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSSQSRelayArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.code = reader.int32(); + message.queueName = reader.string(); break; case 2: - message.message = reader.string(); + message.remoteAccountId = reader.string(); break; case 3: - message.requestId = reader.string(); + message.maxNumMessages = reader.int64(); + break; + case 4: + message.receiveRequestAttemptId = reader.string(); + break; + case 5: + message.autoDelete = reader.bool(); + break; + case 6: + message.waitTimeSeconds = reader.int64(); break; default: reader.skipType(tag & 7); @@ -4082,267 +3033,176 @@ $root.protos = (function() { }; /** - * Decodes a Status message from the specified reader or buffer, length delimited. + * Decodes a AWSSQSRelayArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.common.Status + * @memberof protos.args.AWSSQSRelayArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.common.Status} Status + * @returns {protos.args.AWSSQSRelayArgs} AWSSQSRelayArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Status.decodeDelimited = function decodeDelimited(reader) { + AWSSQSRelayArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Status message. + * Verifies a AWSSQSRelayArgs message. * @function verify - * @memberof protos.common.Status + * @memberof protos.args.AWSSQSRelayArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Status.verify = function verify(message) { + AWSSQSRelayArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - switch (message.code) { - default: - return "code: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 16: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; + if (message.queueName != null && message.hasOwnProperty("queueName")) + if (!$util.isString(message.queueName)) + return "queueName: string expected"; + if (message.remoteAccountId != null && message.hasOwnProperty("remoteAccountId")) + if (!$util.isString(message.remoteAccountId)) + return "remoteAccountId: string expected"; + if (message.maxNumMessages != null && message.hasOwnProperty("maxNumMessages")) + if (!$util.isInteger(message.maxNumMessages) && !(message.maxNumMessages && $util.isInteger(message.maxNumMessages.low) && $util.isInteger(message.maxNumMessages.high))) + return "maxNumMessages: integer|Long expected"; + if (message.receiveRequestAttemptId != null && message.hasOwnProperty("receiveRequestAttemptId")) + if (!$util.isString(message.receiveRequestAttemptId)) + return "receiveRequestAttemptId: string expected"; + if (message.autoDelete != null && message.hasOwnProperty("autoDelete")) + if (typeof message.autoDelete !== "boolean") + return "autoDelete: boolean expected"; + if (message.waitTimeSeconds != null && message.hasOwnProperty("waitTimeSeconds")) + if (!$util.isInteger(message.waitTimeSeconds) && !(message.waitTimeSeconds && $util.isInteger(message.waitTimeSeconds.low) && $util.isInteger(message.waitTimeSeconds.high))) + return "waitTimeSeconds: integer|Long expected"; return null; }; /** - * Creates a Status message from a plain object. Also converts values to their respective internal types. + * Creates a AWSSQSRelayArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.common.Status + * @memberof protos.args.AWSSQSRelayArgs * @static * @param {Object.} object Plain object - * @returns {protos.common.Status} Status + * @returns {protos.args.AWSSQSRelayArgs} AWSSQSRelayArgs */ - Status.fromObject = function fromObject(object) { - if (object instanceof $root.protos.common.Status) + AWSSQSRelayArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AWSSQSRelayArgs) return object; - var message = new $root.protos.common.Status(); - switch (object.code) { - case "OK": - case 0: - message.code = 0; - break; - case "CANCELLED": - case 1: - message.code = 1; - break; - case "UNKNOWN": - case 2: - message.code = 2; - break; - case "INVALID_ARGUMENT": - case 3: - message.code = 3; - break; - case "DEADLINE_EXCEEDED": - case 4: - message.code = 4; - break; - case "NOT_FOUND": - case 5: - message.code = 5; - break; - case "ALREADY_EXISTS": - case 6: - message.code = 6; - break; - case "PERMISSION_DENIED": - case 7: - message.code = 7; - break; - case "UNAUTHENTICATED": - case 16: - message.code = 16; - break; - case "RESOURCE_EXHAUSTED": - case 8: - message.code = 8; - break; - case "FAILED_PRECONDITION": - case 9: - message.code = 9; - break; - case "ABORTED": - case 10: - message.code = 10; - break; - case "OUT_OF_RANGE": - case 11: - message.code = 11; - break; - case "UNIMPLEMENTED": - case 12: - message.code = 12; - break; - case "INTERNAL": - case 13: - message.code = 13; - break; - case "UNAVAILABLE": - case 14: - message.code = 14; - break; - case "DATA_LOSS": - case 15: - message.code = 15; - break; - } - if (object.message != null) - message.message = String(object.message); - if (object.requestId != null) - message.requestId = String(object.requestId); + var message = new $root.protos.args.AWSSQSRelayArgs(); + if (object.queueName != null) + message.queueName = String(object.queueName); + if (object.remoteAccountId != null) + message.remoteAccountId = String(object.remoteAccountId); + if (object.maxNumMessages != null) + if ($util.Long) + (message.maxNumMessages = $util.Long.fromValue(object.maxNumMessages)).unsigned = false; + else if (typeof object.maxNumMessages === "string") + message.maxNumMessages = parseInt(object.maxNumMessages, 10); + else if (typeof object.maxNumMessages === "number") + message.maxNumMessages = object.maxNumMessages; + else if (typeof object.maxNumMessages === "object") + message.maxNumMessages = new $util.LongBits(object.maxNumMessages.low >>> 0, object.maxNumMessages.high >>> 0).toNumber(); + if (object.receiveRequestAttemptId != null) + message.receiveRequestAttemptId = String(object.receiveRequestAttemptId); + if (object.autoDelete != null) + message.autoDelete = Boolean(object.autoDelete); + if (object.waitTimeSeconds != null) + if ($util.Long) + (message.waitTimeSeconds = $util.Long.fromValue(object.waitTimeSeconds)).unsigned = false; + else if (typeof object.waitTimeSeconds === "string") + message.waitTimeSeconds = parseInt(object.waitTimeSeconds, 10); + else if (typeof object.waitTimeSeconds === "number") + message.waitTimeSeconds = object.waitTimeSeconds; + else if (typeof object.waitTimeSeconds === "object") + message.waitTimeSeconds = new $util.LongBits(object.waitTimeSeconds.low >>> 0, object.waitTimeSeconds.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a Status message. Also converts values to other types if specified. + * Creates a plain object from a AWSSQSRelayArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.common.Status + * @memberof protos.args.AWSSQSRelayArgs * @static - * @param {protos.common.Status} message Status + * @param {protos.args.AWSSQSRelayArgs} message AWSSQSRelayArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Status.toObject = function toObject(message, options) { + AWSSQSRelayArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.code = options.enums === String ? "OK" : 0; - object.message = ""; - object.requestId = ""; + object.queueName = ""; + object.remoteAccountId = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxNumMessages = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxNumMessages = options.longs === String ? "0" : 0; + object.receiveRequestAttemptId = ""; + object.autoDelete = false; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.waitTimeSeconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.waitTimeSeconds = options.longs === String ? "0" : 0; } - if (message.code != null && message.hasOwnProperty("code")) - object.code = options.enums === String ? $root.protos.common.Code[message.code] : message.code; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.requestId != null && message.hasOwnProperty("requestId")) - object.requestId = message.requestId; + if (message.queueName != null && message.hasOwnProperty("queueName")) + object.queueName = message.queueName; + if (message.remoteAccountId != null && message.hasOwnProperty("remoteAccountId")) + object.remoteAccountId = message.remoteAccountId; + if (message.maxNumMessages != null && message.hasOwnProperty("maxNumMessages")) + if (typeof message.maxNumMessages === "number") + object.maxNumMessages = options.longs === String ? String(message.maxNumMessages) : message.maxNumMessages; + else + object.maxNumMessages = options.longs === String ? $util.Long.prototype.toString.call(message.maxNumMessages) : options.longs === Number ? new $util.LongBits(message.maxNumMessages.low >>> 0, message.maxNumMessages.high >>> 0).toNumber() : message.maxNumMessages; + if (message.receiveRequestAttemptId != null && message.hasOwnProperty("receiveRequestAttemptId")) + object.receiveRequestAttemptId = message.receiveRequestAttemptId; + if (message.autoDelete != null && message.hasOwnProperty("autoDelete")) + object.autoDelete = message.autoDelete; + if (message.waitTimeSeconds != null && message.hasOwnProperty("waitTimeSeconds")) + if (typeof message.waitTimeSeconds === "number") + object.waitTimeSeconds = options.longs === String ? String(message.waitTimeSeconds) : message.waitTimeSeconds; + else + object.waitTimeSeconds = options.longs === String ? $util.Long.prototype.toString.call(message.waitTimeSeconds) : options.longs === Number ? new $util.LongBits(message.waitTimeSeconds.low >>> 0, message.waitTimeSeconds.high >>> 0).toNumber() : message.waitTimeSeconds; return object; }; /** - * Converts this Status to JSON. + * Converts this AWSSQSRelayArgs to JSON. * @function toJSON - * @memberof protos.common.Status + * @memberof protos.args.AWSSQSRelayArgs * @instance * @returns {Object.} JSON object */ - Status.prototype.toJSON = function toJSON() { + AWSSQSRelayArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Status; - })(); - - /** - * BackendType enum. - * @name protos.common.BackendType - * @enum {number} - * @property {number} BACKEND_TYPE_UNSET=0 BACKEND_TYPE_UNSET value - * @property {number} BACKEND_TYPE_KAFKA=1 BACKEND_TYPE_KAFKA value - * @property {number} BACKEND_TYPE_RABBIT=2 BACKEND_TYPE_RABBIT value - * @property {number} BACKEND_TYPE_RABBIT_STREAMS=3 BACKEND_TYPE_RABBIT_STREAMS value - * @property {number} BACKEND_TYPE_NSQ=4 BACKEND_TYPE_NSQ value - * @property {number} BACKEND_TYPE_NATS=5 BACKEND_TYPE_NATS value - * @property {number} BACKEND_TYPE_NATS_STREAMING=6 BACKEND_TYPE_NATS_STREAMING value - * @property {number} BACKEND_TYPE_GCP_PUBSUB=7 BACKEND_TYPE_GCP_PUBSUB value - * @property {number} BACKEND_TYPE_AZURE_SERVICE_BUS=8 BACKEND_TYPE_AZURE_SERVICE_BUS value - * @property {number} BACKEND_TYPE_AZURE_EVENT_HUB=9 BACKEND_TYPE_AZURE_EVENT_HUB value - * @property {number} BACKEND_TYPE_AWS_SQS=10 BACKEND_TYPE_AWS_SQS value - * @property {number} BACKEND_TYPE_AWS_SNS=11 BACKEND_TYPE_AWS_SNS value - * @property {number} BACKEND_TYPE_REDIS_PUBSUB=12 BACKEND_TYPE_REDIS_PUBSUB value - * @property {number} BACKEND_TYPE_REDIS_STREAMS=13 BACKEND_TYPE_REDIS_STREAMS value - * @property {number} BACKEND_TYPE_ACTIVEMQ=14 BACKEND_TYPE_ACTIVEMQ value - * @property {number} BACKEND_TYPE_PULSAR=15 BACKEND_TYPE_PULSAR value - * @property {number} BACKEND_TYPE_MQTT=16 BACKEND_TYPE_MQTT value - * @property {number} BACKEND_TYPE_POSTGRES_CDC=17 BACKEND_TYPE_POSTGRES_CDC value - * @property {number} BACKEND_TYPE_MONGODB_CDC=18 BACKEND_TYPE_MONGODB_CDC value - * @property {number} BACKEND_TYPE_KUBE_MQ=19 BACKEND_TYPE_KUBE_MQ value - * @property {number} BACKEND_TYPE_AWS_KINESIS=20 BACKEND_TYPE_AWS_KINESIS value - */ - common.BackendType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "BACKEND_TYPE_UNSET"] = 0; - values[valuesById[1] = "BACKEND_TYPE_KAFKA"] = 1; - values[valuesById[2] = "BACKEND_TYPE_RABBIT"] = 2; - values[valuesById[3] = "BACKEND_TYPE_RABBIT_STREAMS"] = 3; - values[valuesById[4] = "BACKEND_TYPE_NSQ"] = 4; - values[valuesById[5] = "BACKEND_TYPE_NATS"] = 5; - values[valuesById[6] = "BACKEND_TYPE_NATS_STREAMING"] = 6; - values[valuesById[7] = "BACKEND_TYPE_GCP_PUBSUB"] = 7; - values[valuesById[8] = "BACKEND_TYPE_AZURE_SERVICE_BUS"] = 8; - values[valuesById[9] = "BACKEND_TYPE_AZURE_EVENT_HUB"] = 9; - values[valuesById[10] = "BACKEND_TYPE_AWS_SQS"] = 10; - values[valuesById[11] = "BACKEND_TYPE_AWS_SNS"] = 11; - values[valuesById[12] = "BACKEND_TYPE_REDIS_PUBSUB"] = 12; - values[valuesById[13] = "BACKEND_TYPE_REDIS_STREAMS"] = 13; - values[valuesById[14] = "BACKEND_TYPE_ACTIVEMQ"] = 14; - values[valuesById[15] = "BACKEND_TYPE_PULSAR"] = 15; - values[valuesById[16] = "BACKEND_TYPE_MQTT"] = 16; - values[valuesById[17] = "BACKEND_TYPE_POSTGRES_CDC"] = 17; - values[valuesById[18] = "BACKEND_TYPE_MONGODB_CDC"] = 18; - values[valuesById[19] = "BACKEND_TYPE_KUBE_MQ"] = 19; - values[valuesById[20] = "BACKEND_TYPE_AWS_KINESIS"] = 20; - return values; + return AWSSQSRelayArgs; })(); - common.Validation = (function() { + args.AzureEventHubConn = (function() { /** - * Properties of a Validation. - * @memberof protos.common - * @interface IValidation - * @property {string|null} [_id] Validation _id - * @property {string|null} [schemaId] Validation schemaId - * @property {Array.|null} [fields] Validation fields + * Properties of an AzureEventHubConn. + * @memberof protos.args + * @interface IAzureEventHubConn + * @property {string|null} [connectionString] AzureEventHubConn connectionString */ /** - * Constructs a new Validation. - * @memberof protos.common - * @classdesc Represents a Validation. - * @implements IValidation + * Constructs a new AzureEventHubConn. + * @memberof protos.args + * @classdesc Represents an AzureEventHubConn. + * @implements IAzureEventHubConn * @constructor - * @param {protos.common.IValidation=} [properties] Properties to set + * @param {protos.args.IAzureEventHubConn=} [properties] Properties to set */ - function Validation(properties) { - this.fields = []; + function AzureEventHubConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4350,104 +3210,75 @@ $root.protos = (function() { } /** - * Validation _id. - * @member {string} _id - * @memberof protos.common.Validation - * @instance - */ - Validation.prototype._id = ""; - - /** - * Validation schemaId. - * @member {string} schemaId - * @memberof protos.common.Validation - * @instance - */ - Validation.prototype.schemaId = ""; - - /** - * Validation fields. - * @member {Array.} fields - * @memberof protos.common.Validation + * AzureEventHubConn connectionString. + * @member {string} connectionString + * @memberof protos.args.AzureEventHubConn * @instance */ - Validation.prototype.fields = $util.emptyArray; + AzureEventHubConn.prototype.connectionString = ""; /** - * Creates a new Validation instance using the specified properties. + * Creates a new AzureEventHubConn instance using the specified properties. * @function create - * @memberof protos.common.Validation + * @memberof protos.args.AzureEventHubConn * @static - * @param {protos.common.IValidation=} [properties] Properties to set - * @returns {protos.common.Validation} Validation instance + * @param {protos.args.IAzureEventHubConn=} [properties] Properties to set + * @returns {protos.args.AzureEventHubConn} AzureEventHubConn instance */ - Validation.create = function create(properties) { - return new Validation(properties); + AzureEventHubConn.create = function create(properties) { + return new AzureEventHubConn(properties); }; /** - * Encodes the specified Validation message. Does not implicitly {@link protos.common.Validation.verify|verify} messages. + * Encodes the specified AzureEventHubConn message. Does not implicitly {@link protos.args.AzureEventHubConn.verify|verify} messages. * @function encode - * @memberof protos.common.Validation + * @memberof protos.args.AzureEventHubConn * @static - * @param {protos.common.IValidation} message Validation message or plain object to encode + * @param {protos.args.IAzureEventHubConn} message AzureEventHubConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Validation.encode = function encode(message, writer) { + AzureEventHubConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._id != null && Object.hasOwnProperty.call(message, "_id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message._id); - if (message.schemaId != null && Object.hasOwnProperty.call(message, "schemaId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaId); - if (message.fields != null && message.fields.length) - for (var i = 0; i < message.fields.length; ++i) - $root.protos.common.Validation.Field.encode(message.fields[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.connectionString != null && Object.hasOwnProperty.call(message, "connectionString")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connectionString); return writer; }; /** - * Encodes the specified Validation message, length delimited. Does not implicitly {@link protos.common.Validation.verify|verify} messages. + * Encodes the specified AzureEventHubConn message, length delimited. Does not implicitly {@link protos.args.AzureEventHubConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.common.Validation + * @memberof protos.args.AzureEventHubConn * @static - * @param {protos.common.IValidation} message Validation message or plain object to encode + * @param {protos.args.IAzureEventHubConn} message AzureEventHubConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Validation.encodeDelimited = function encodeDelimited(message, writer) { + AzureEventHubConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Validation message from the specified reader or buffer. + * Decodes an AzureEventHubConn message from the specified reader or buffer. * @function decode - * @memberof protos.common.Validation + * @memberof protos.args.AzureEventHubConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.common.Validation} Validation + * @returns {protos.args.AzureEventHubConn} AzureEventHubConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Validation.decode = function decode(reader, length) { + AzureEventHubConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.common.Validation(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AzureEventHubConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._id = reader.string(); - break; - case 2: - message.schemaId = reader.string(); - break; - case 3: - if (!(message.fields && message.fields.length)) - message.fields = []; - message.fields.push($root.protos.common.Validation.Field.decode(reader, reader.uint32())); + message.connectionString = reader.string(); break; default: reader.skipType(tag & 7); @@ -4458,410 +3289,268 @@ $root.protos = (function() { }; /** - * Decodes a Validation message from the specified reader or buffer, length delimited. + * Decodes an AzureEventHubConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.common.Validation + * @memberof protos.args.AzureEventHubConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.common.Validation} Validation + * @returns {protos.args.AzureEventHubConn} AzureEventHubConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Validation.decodeDelimited = function decodeDelimited(reader) { + AzureEventHubConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Validation message. + * Verifies an AzureEventHubConn message. * @function verify - * @memberof protos.common.Validation + * @memberof protos.args.AzureEventHubConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Validation.verify = function verify(message) { + AzureEventHubConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._id != null && message.hasOwnProperty("_id")) - if (!$util.isString(message._id)) - return "_id: string expected"; - if (message.schemaId != null && message.hasOwnProperty("schemaId")) - if (!$util.isString(message.schemaId)) - return "schemaId: string expected"; - if (message.fields != null && message.hasOwnProperty("fields")) { - if (!Array.isArray(message.fields)) - return "fields: array expected"; - for (var i = 0; i < message.fields.length; ++i) { - var error = $root.protos.common.Validation.Field.verify(message.fields[i]); - if (error) - return "fields." + error; - } - } + if (message.connectionString != null && message.hasOwnProperty("connectionString")) + if (!$util.isString(message.connectionString)) + return "connectionString: string expected"; return null; }; /** - * Creates a Validation message from a plain object. Also converts values to their respective internal types. + * Creates an AzureEventHubConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.common.Validation + * @memberof protos.args.AzureEventHubConn * @static * @param {Object.} object Plain object - * @returns {protos.common.Validation} Validation + * @returns {protos.args.AzureEventHubConn} AzureEventHubConn */ - Validation.fromObject = function fromObject(object) { - if (object instanceof $root.protos.common.Validation) + AzureEventHubConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AzureEventHubConn) return object; - var message = new $root.protos.common.Validation(); - if (object._id != null) - message._id = String(object._id); - if (object.schemaId != null) - message.schemaId = String(object.schemaId); - if (object.fields) { - if (!Array.isArray(object.fields)) - throw TypeError(".protos.common.Validation.fields: array expected"); - message.fields = []; - for (var i = 0; i < object.fields.length; ++i) { - if (typeof object.fields[i] !== "object") - throw TypeError(".protos.common.Validation.fields: object expected"); - message.fields[i] = $root.protos.common.Validation.Field.fromObject(object.fields[i]); - } - } + var message = new $root.protos.args.AzureEventHubConn(); + if (object.connectionString != null) + message.connectionString = String(object.connectionString); return message; }; /** - * Creates a plain object from a Validation message. Also converts values to other types if specified. + * Creates a plain object from an AzureEventHubConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.common.Validation + * @memberof protos.args.AzureEventHubConn * @static - * @param {protos.common.Validation} message Validation + * @param {protos.args.AzureEventHubConn} message AzureEventHubConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Validation.toObject = function toObject(message, options) { + AzureEventHubConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.fields = []; - if (options.defaults) { - object._id = ""; - object.schemaId = ""; - } - if (message._id != null && message.hasOwnProperty("_id")) - object._id = message._id; - if (message.schemaId != null && message.hasOwnProperty("schemaId")) - object.schemaId = message.schemaId; - if (message.fields && message.fields.length) { - object.fields = []; - for (var j = 0; j < message.fields.length; ++j) - object.fields[j] = $root.protos.common.Validation.Field.toObject(message.fields[j], options); - } + if (options.defaults) + object.connectionString = ""; + if (message.connectionString != null && message.hasOwnProperty("connectionString")) + object.connectionString = message.connectionString; return object; }; /** - * Converts this Validation to JSON. + * Converts this AzureEventHubConn to JSON. * @function toJSON - * @memberof protos.common.Validation + * @memberof protos.args.AzureEventHubConn * @instance * @returns {Object.} JSON object */ - Validation.prototype.toJSON = function toJSON() { + AzureEventHubConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Validation.Field = (function() { + return AzureEventHubConn; + })(); - /** - * Properties of a Field. - * @memberof protos.common.Validation - * @interface IField - * @property {string|null} [path] Field path - * @property {string|null} [validationType] Field validationType - * @property {string|null} [matchValue] Field matchValue - */ + args.AzureEventHubReadArgs = (function() { - /** - * Constructs a new Field. - * @memberof protos.common.Validation - * @classdesc Represents a Field. - * @implements IField - * @constructor - * @param {protos.common.Validation.IField=} [properties] Properties to set - */ - function Field(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an AzureEventHubReadArgs. + * @memberof protos.args + * @interface IAzureEventHubReadArgs + */ - /** - * Field path. - * @member {string} path - * @memberof protos.common.Validation.Field - * @instance - */ - Field.prototype.path = ""; + /** + * Constructs a new AzureEventHubReadArgs. + * @memberof protos.args + * @classdesc Represents an AzureEventHubReadArgs. + * @implements IAzureEventHubReadArgs + * @constructor + * @param {protos.args.IAzureEventHubReadArgs=} [properties] Properties to set + */ + function AzureEventHubReadArgs(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Field validationType. - * @member {string} validationType - * @memberof protos.common.Validation.Field - * @instance - */ - Field.prototype.validationType = ""; + /** + * Creates a new AzureEventHubReadArgs instance using the specified properties. + * @function create + * @memberof protos.args.AzureEventHubReadArgs + * @static + * @param {protos.args.IAzureEventHubReadArgs=} [properties] Properties to set + * @returns {protos.args.AzureEventHubReadArgs} AzureEventHubReadArgs instance + */ + AzureEventHubReadArgs.create = function create(properties) { + return new AzureEventHubReadArgs(properties); + }; - /** - * Field matchValue. - * @member {string} matchValue - * @memberof protos.common.Validation.Field - * @instance - */ - Field.prototype.matchValue = ""; + /** + * Encodes the specified AzureEventHubReadArgs message. Does not implicitly {@link protos.args.AzureEventHubReadArgs.verify|verify} messages. + * @function encode + * @memberof protos.args.AzureEventHubReadArgs + * @static + * @param {protos.args.IAzureEventHubReadArgs} message AzureEventHubReadArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AzureEventHubReadArgs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Creates a new Field instance using the specified properties. - * @function create - * @memberof protos.common.Validation.Field - * @static - * @param {protos.common.Validation.IField=} [properties] Properties to set - * @returns {protos.common.Validation.Field} Field instance - */ - Field.create = function create(properties) { - return new Field(properties); - }; + /** + * Encodes the specified AzureEventHubReadArgs message, length delimited. Does not implicitly {@link protos.args.AzureEventHubReadArgs.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.AzureEventHubReadArgs + * @static + * @param {protos.args.IAzureEventHubReadArgs} message AzureEventHubReadArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AzureEventHubReadArgs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified Field message. Does not implicitly {@link protos.common.Validation.Field.verify|verify} messages. - * @function encode - * @memberof protos.common.Validation.Field - * @static - * @param {protos.common.Validation.IField} message Field message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Field.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); - if (message.validationType != null && Object.hasOwnProperty.call(message, "validationType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.validationType); - if (message.matchValue != null && Object.hasOwnProperty.call(message, "matchValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.matchValue); - return writer; - }; - - /** - * Encodes the specified Field message, length delimited. Does not implicitly {@link protos.common.Validation.Field.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.common.Validation.Field - * @static - * @param {protos.common.Validation.IField} message Field message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Field.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Field message from the specified reader or buffer. - * @function decode - * @memberof protos.common.Validation.Field - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.common.Validation.Field} Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Field.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.common.Validation.Field(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.path = reader.string(); - break; - case 2: - message.validationType = reader.string(); - break; - case 3: - message.matchValue = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes an AzureEventHubReadArgs message from the specified reader or buffer. + * @function decode + * @memberof protos.args.AzureEventHubReadArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.args.AzureEventHubReadArgs} AzureEventHubReadArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AzureEventHubReadArgs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AzureEventHubReadArgs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a Field message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.common.Validation.Field - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.common.Validation.Field} Field - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Field.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a Field message. - * @function verify - * @memberof protos.common.Validation.Field - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Field.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - if (message.validationType != null && message.hasOwnProperty("validationType")) - if (!$util.isString(message.validationType)) - return "validationType: string expected"; - if (message.matchValue != null && message.hasOwnProperty("matchValue")) - if (!$util.isString(message.matchValue)) - return "matchValue: string expected"; - return null; - }; + /** + * Decodes an AzureEventHubReadArgs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.args.AzureEventHubReadArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.args.AzureEventHubReadArgs} AzureEventHubReadArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AzureEventHubReadArgs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a Field message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.common.Validation.Field - * @static - * @param {Object.} object Plain object - * @returns {protos.common.Validation.Field} Field - */ - Field.fromObject = function fromObject(object) { - if (object instanceof $root.protos.common.Validation.Field) - return object; - var message = new $root.protos.common.Validation.Field(); - if (object.path != null) - message.path = String(object.path); - if (object.validationType != null) - message.validationType = String(object.validationType); - if (object.matchValue != null) - message.matchValue = String(object.matchValue); - return message; - }; + /** + * Verifies an AzureEventHubReadArgs message. + * @function verify + * @memberof protos.args.AzureEventHubReadArgs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AzureEventHubReadArgs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Creates a plain object from a Field message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.common.Validation.Field - * @static - * @param {protos.common.Validation.Field} message Field - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Field.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.path = ""; - object.validationType = ""; - object.matchValue = ""; - } - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - if (message.validationType != null && message.hasOwnProperty("validationType")) - object.validationType = message.validationType; - if (message.matchValue != null && message.hasOwnProperty("matchValue")) - object.matchValue = message.matchValue; + /** + * Creates an AzureEventHubReadArgs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.AzureEventHubReadArgs + * @static + * @param {Object.} object Plain object + * @returns {protos.args.AzureEventHubReadArgs} AzureEventHubReadArgs + */ + AzureEventHubReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AzureEventHubReadArgs) return object; - }; + return new $root.protos.args.AzureEventHubReadArgs(); + }; - /** - * Converts this Field to JSON. - * @function toJSON - * @memberof protos.common.Validation.Field - * @instance - * @returns {Object.} JSON object - */ - Field.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an AzureEventHubReadArgs message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.AzureEventHubReadArgs + * @static + * @param {protos.args.AzureEventHubReadArgs} message AzureEventHubReadArgs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AzureEventHubReadArgs.toObject = function toObject() { + return {}; + }; - return Field; - })(); + /** + * Converts this AzureEventHubReadArgs to JSON. + * @function toJSON + * @memberof protos.args.AzureEventHubReadArgs + * @instance + * @returns {Object.} JSON object + */ + AzureEventHubReadArgs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Validation; + return AzureEventHubReadArgs; })(); - return common; - })(); - - protos.opts = (function() { - - /** - * Namespace opts. - * @memberof protos - * @namespace - */ - var opts = {}; - - opts.ConnectionOptions = (function() { + args.AzureEventHubWriteArgs = (function() { /** - * Properties of a ConnectionOptions. - * @memberof protos.opts - * @interface IConnectionOptions - * @property {string|null} [name] ConnectionOptions name - * @property {string|null} [notes] ConnectionOptions notes - * @property {protos.args.IKafkaConn|null} [kafka] ConnectionOptions kafka - * @property {protos.args.IActiveMQConn|null} [activeMq] ConnectionOptions activeMq - * @property {protos.args.IAWSSQSConn|null} [awsSqs] ConnectionOptions awsSqs - * @property {protos.args.IAWSSNSConn|null} [awsSns] ConnectionOptions awsSns - * @property {protos.args.IMongoConn|null} [mongo] ConnectionOptions mongo - * @property {protos.args.INatsConn|null} [nats] ConnectionOptions nats - * @property {protos.args.INatsStreamingConn|null} [natsStreaming] ConnectionOptions natsStreaming - * @property {protos.args.INSQConn|null} [nsq] ConnectionOptions nsq - * @property {protos.args.IPostgresConn|null} [postgres] ConnectionOptions postgres - * @property {protos.args.IPulsarConn|null} [pulsar] ConnectionOptions pulsar - * @property {protos.args.IRabbitConn|null} [rabbit] ConnectionOptions rabbit - * @property {protos.args.IRabbitStreamsConn|null} [rabbitStreams] ConnectionOptions rabbitStreams - * @property {protos.args.IRedisPubSubConn|null} [redisPubsub] ConnectionOptions redisPubsub - * @property {protos.args.IRedisStreamsConn|null} [redisStreams] ConnectionOptions redisStreams - * @property {protos.args.IAzureEventHubConn|null} [azureEventHub] ConnectionOptions azureEventHub - * @property {protos.args.IAzureServiceBusConn|null} [azureServiceBus] ConnectionOptions azureServiceBus - * @property {protos.args.IMQTTConn|null} [mqtt] ConnectionOptions mqtt - * @property {protos.args.IKubeMQQueueConn|null} [kubemqQueue] ConnectionOptions kubemqQueue - * @property {protos.args.IGCPPubSubConn|null} [gcpPubsub] ConnectionOptions gcpPubsub - * @property {protos.args.INatsJetstreamConn|null} [natsJetstream] ConnectionOptions natsJetstream - * @property {protos.args.IAWSKinesisConn|null} [awsKinesis] ConnectionOptions awsKinesis - * @property {protos.args.IMemphisConn|null} [memphis] ConnectionOptions memphis - * @property {string|null} [_id] ConnectionOptions _id + * Properties of an AzureEventHubWriteArgs. + * @memberof protos.args + * @interface IAzureEventHubWriteArgs + * @property {string|null} [messageId] AzureEventHubWriteArgs messageId + * @property {string|null} [partitionKey] AzureEventHubWriteArgs partitionKey */ /** - * Constructs a new ConnectionOptions. - * @memberof protos.opts - * @classdesc Represents a ConnectionOptions. - * @implements IConnectionOptions + * Constructs a new AzureEventHubWriteArgs. + * @memberof protos.args + * @classdesc Represents an AzureEventHubWriteArgs. + * @implements IAzureEventHubWriteArgs * @constructor - * @param {protos.opts.IConnectionOptions=} [properties] Properties to set + * @param {protos.args.IAzureEventHubWriteArgs=} [properties] Properties to set */ - function ConnectionOptions(properties) { + function AzureEventHubWriteArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4869,401 +3558,499 @@ $root.protos = (function() { } /** - * ConnectionOptions name. - * @member {string} name - * @memberof protos.opts.ConnectionOptions + * AzureEventHubWriteArgs messageId. + * @member {string} messageId + * @memberof protos.args.AzureEventHubWriteArgs * @instance */ - ConnectionOptions.prototype.name = ""; + AzureEventHubWriteArgs.prototype.messageId = ""; /** - * ConnectionOptions notes. - * @member {string} notes - * @memberof protos.opts.ConnectionOptions + * AzureEventHubWriteArgs partitionKey. + * @member {string} partitionKey + * @memberof protos.args.AzureEventHubWriteArgs * @instance */ - ConnectionOptions.prototype.notes = ""; + AzureEventHubWriteArgs.prototype.partitionKey = ""; /** - * ConnectionOptions kafka. - * @member {protos.args.IKafkaConn|null|undefined} kafka - * @memberof protos.opts.ConnectionOptions - * @instance + * Creates a new AzureEventHubWriteArgs instance using the specified properties. + * @function create + * @memberof protos.args.AzureEventHubWriteArgs + * @static + * @param {protos.args.IAzureEventHubWriteArgs=} [properties] Properties to set + * @returns {protos.args.AzureEventHubWriteArgs} AzureEventHubWriteArgs instance */ - ConnectionOptions.prototype.kafka = null; + AzureEventHubWriteArgs.create = function create(properties) { + return new AzureEventHubWriteArgs(properties); + }; /** - * ConnectionOptions activeMq. - * @member {protos.args.IActiveMQConn|null|undefined} activeMq - * @memberof protos.opts.ConnectionOptions - * @instance + * Encodes the specified AzureEventHubWriteArgs message. Does not implicitly {@link protos.args.AzureEventHubWriteArgs.verify|verify} messages. + * @function encode + * @memberof protos.args.AzureEventHubWriteArgs + * @static + * @param {protos.args.IAzureEventHubWriteArgs} message AzureEventHubWriteArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ConnectionOptions.prototype.activeMq = null; + AzureEventHubWriteArgs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageId != null && Object.hasOwnProperty.call(message, "messageId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.messageId); + if (message.partitionKey != null && Object.hasOwnProperty.call(message, "partitionKey")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.partitionKey); + return writer; + }; /** - * ConnectionOptions awsSqs. - * @member {protos.args.IAWSSQSConn|null|undefined} awsSqs - * @memberof protos.opts.ConnectionOptions - * @instance + * Encodes the specified AzureEventHubWriteArgs message, length delimited. Does not implicitly {@link protos.args.AzureEventHubWriteArgs.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.AzureEventHubWriteArgs + * @static + * @param {protos.args.IAzureEventHubWriteArgs} message AzureEventHubWriteArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ConnectionOptions.prototype.awsSqs = null; + AzureEventHubWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * ConnectionOptions awsSns. - * @member {protos.args.IAWSSNSConn|null|undefined} awsSns - * @memberof protos.opts.ConnectionOptions - * @instance + * Decodes an AzureEventHubWriteArgs message from the specified reader or buffer. + * @function decode + * @memberof protos.args.AzureEventHubWriteArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.args.AzureEventHubWriteArgs} AzureEventHubWriteArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionOptions.prototype.awsSns = null; + AzureEventHubWriteArgs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AzureEventHubWriteArgs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messageId = reader.string(); + break; + case 2: + message.partitionKey = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * ConnectionOptions mongo. - * @member {protos.args.IMongoConn|null|undefined} mongo - * @memberof protos.opts.ConnectionOptions - * @instance + * Decodes an AzureEventHubWriteArgs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.args.AzureEventHubWriteArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.args.AzureEventHubWriteArgs} AzureEventHubWriteArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionOptions.prototype.mongo = null; + AzureEventHubWriteArgs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * ConnectionOptions nats. - * @member {protos.args.INatsConn|null|undefined} nats - * @memberof protos.opts.ConnectionOptions - * @instance + * Verifies an AzureEventHubWriteArgs message. + * @function verify + * @memberof protos.args.AzureEventHubWriteArgs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConnectionOptions.prototype.nats = null; + AzureEventHubWriteArgs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messageId != null && message.hasOwnProperty("messageId")) + if (!$util.isString(message.messageId)) + return "messageId: string expected"; + if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) + if (!$util.isString(message.partitionKey)) + return "partitionKey: string expected"; + return null; + }; /** - * ConnectionOptions natsStreaming. - * @member {protos.args.INatsStreamingConn|null|undefined} natsStreaming - * @memberof protos.opts.ConnectionOptions - * @instance + * Creates an AzureEventHubWriteArgs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.AzureEventHubWriteArgs + * @static + * @param {Object.} object Plain object + * @returns {protos.args.AzureEventHubWriteArgs} AzureEventHubWriteArgs */ - ConnectionOptions.prototype.natsStreaming = null; + AzureEventHubWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AzureEventHubWriteArgs) + return object; + var message = new $root.protos.args.AzureEventHubWriteArgs(); + if (object.messageId != null) + message.messageId = String(object.messageId); + if (object.partitionKey != null) + message.partitionKey = String(object.partitionKey); + return message; + }; /** - * ConnectionOptions nsq. - * @member {protos.args.INSQConn|null|undefined} nsq - * @memberof protos.opts.ConnectionOptions - * @instance + * Creates a plain object from an AzureEventHubWriteArgs message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.AzureEventHubWriteArgs + * @static + * @param {protos.args.AzureEventHubWriteArgs} message AzureEventHubWriteArgs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ConnectionOptions.prototype.nsq = null; + AzureEventHubWriteArgs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.messageId = ""; + object.partitionKey = ""; + } + if (message.messageId != null && message.hasOwnProperty("messageId")) + object.messageId = message.messageId; + if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) + object.partitionKey = message.partitionKey; + return object; + }; /** - * ConnectionOptions postgres. - * @member {protos.args.IPostgresConn|null|undefined} postgres - * @memberof protos.opts.ConnectionOptions + * Converts this AzureEventHubWriteArgs to JSON. + * @function toJSON + * @memberof protos.args.AzureEventHubWriteArgs * @instance + * @returns {Object.} JSON object */ - ConnectionOptions.prototype.postgres = null; + AzureEventHubWriteArgs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ConnectionOptions pulsar. - * @member {protos.args.IPulsarConn|null|undefined} pulsar - * @memberof protos.opts.ConnectionOptions - * @instance - */ - ConnectionOptions.prototype.pulsar = null; + return AzureEventHubWriteArgs; + })(); + + args.AzureServiceBusConn = (function() { /** - * ConnectionOptions rabbit. - * @member {protos.args.IRabbitConn|null|undefined} rabbit - * @memberof protos.opts.ConnectionOptions - * @instance + * Properties of an AzureServiceBusConn. + * @memberof protos.args + * @interface IAzureServiceBusConn + * @property {string|null} [connectionString] AzureServiceBusConn connectionString */ - ConnectionOptions.prototype.rabbit = null; /** - * ConnectionOptions rabbitStreams. - * @member {protos.args.IRabbitStreamsConn|null|undefined} rabbitStreams - * @memberof protos.opts.ConnectionOptions - * @instance + * Constructs a new AzureServiceBusConn. + * @memberof protos.args + * @classdesc Represents an AzureServiceBusConn. + * @implements IAzureServiceBusConn + * @constructor + * @param {protos.args.IAzureServiceBusConn=} [properties] Properties to set */ - ConnectionOptions.prototype.rabbitStreams = null; + function AzureServiceBusConn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ConnectionOptions redisPubsub. - * @member {protos.args.IRedisPubSubConn|null|undefined} redisPubsub - * @memberof protos.opts.ConnectionOptions + * AzureServiceBusConn connectionString. + * @member {string} connectionString + * @memberof protos.args.AzureServiceBusConn * @instance */ - ConnectionOptions.prototype.redisPubsub = null; + AzureServiceBusConn.prototype.connectionString = ""; /** - * ConnectionOptions redisStreams. - * @member {protos.args.IRedisStreamsConn|null|undefined} redisStreams - * @memberof protos.opts.ConnectionOptions - * @instance + * Creates a new AzureServiceBusConn instance using the specified properties. + * @function create + * @memberof protos.args.AzureServiceBusConn + * @static + * @param {protos.args.IAzureServiceBusConn=} [properties] Properties to set + * @returns {protos.args.AzureServiceBusConn} AzureServiceBusConn instance */ - ConnectionOptions.prototype.redisStreams = null; + AzureServiceBusConn.create = function create(properties) { + return new AzureServiceBusConn(properties); + }; /** - * ConnectionOptions azureEventHub. - * @member {protos.args.IAzureEventHubConn|null|undefined} azureEventHub - * @memberof protos.opts.ConnectionOptions - * @instance + * Encodes the specified AzureServiceBusConn message. Does not implicitly {@link protos.args.AzureServiceBusConn.verify|verify} messages. + * @function encode + * @memberof protos.args.AzureServiceBusConn + * @static + * @param {protos.args.IAzureServiceBusConn} message AzureServiceBusConn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ConnectionOptions.prototype.azureEventHub = null; + AzureServiceBusConn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.connectionString != null && Object.hasOwnProperty.call(message, "connectionString")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connectionString); + return writer; + }; /** - * ConnectionOptions azureServiceBus. - * @member {protos.args.IAzureServiceBusConn|null|undefined} azureServiceBus - * @memberof protos.opts.ConnectionOptions - * @instance + * Encodes the specified AzureServiceBusConn message, length delimited. Does not implicitly {@link protos.args.AzureServiceBusConn.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.AzureServiceBusConn + * @static + * @param {protos.args.IAzureServiceBusConn} message AzureServiceBusConn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ConnectionOptions.prototype.azureServiceBus = null; + AzureServiceBusConn.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * ConnectionOptions mqtt. - * @member {protos.args.IMQTTConn|null|undefined} mqtt - * @memberof protos.opts.ConnectionOptions - * @instance + * Decodes an AzureServiceBusConn message from the specified reader or buffer. + * @function decode + * @memberof protos.args.AzureServiceBusConn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.args.AzureServiceBusConn} AzureServiceBusConn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionOptions.prototype.mqtt = null; + AzureServiceBusConn.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AzureServiceBusConn(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.connectionString = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * ConnectionOptions kubemqQueue. - * @member {protos.args.IKubeMQQueueConn|null|undefined} kubemqQueue - * @memberof protos.opts.ConnectionOptions - * @instance + * Decodes an AzureServiceBusConn message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.args.AzureServiceBusConn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.args.AzureServiceBusConn} AzureServiceBusConn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionOptions.prototype.kubemqQueue = null; + AzureServiceBusConn.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * ConnectionOptions gcpPubsub. - * @member {protos.args.IGCPPubSubConn|null|undefined} gcpPubsub - * @memberof protos.opts.ConnectionOptions - * @instance + * Verifies an AzureServiceBusConn message. + * @function verify + * @memberof protos.args.AzureServiceBusConn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConnectionOptions.prototype.gcpPubsub = null; + AzureServiceBusConn.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.connectionString != null && message.hasOwnProperty("connectionString")) + if (!$util.isString(message.connectionString)) + return "connectionString: string expected"; + return null; + }; /** - * ConnectionOptions natsJetstream. - * @member {protos.args.INatsJetstreamConn|null|undefined} natsJetstream - * @memberof protos.opts.ConnectionOptions - * @instance + * Creates an AzureServiceBusConn message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.AzureServiceBusConn + * @static + * @param {Object.} object Plain object + * @returns {protos.args.AzureServiceBusConn} AzureServiceBusConn */ - ConnectionOptions.prototype.natsJetstream = null; + AzureServiceBusConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AzureServiceBusConn) + return object; + var message = new $root.protos.args.AzureServiceBusConn(); + if (object.connectionString != null) + message.connectionString = String(object.connectionString); + return message; + }; /** - * ConnectionOptions awsKinesis. - * @member {protos.args.IAWSKinesisConn|null|undefined} awsKinesis - * @memberof protos.opts.ConnectionOptions - * @instance + * Creates a plain object from an AzureServiceBusConn message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.AzureServiceBusConn + * @static + * @param {protos.args.AzureServiceBusConn} message AzureServiceBusConn + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ConnectionOptions.prototype.awsKinesis = null; + AzureServiceBusConn.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.connectionString = ""; + if (message.connectionString != null && message.hasOwnProperty("connectionString")) + object.connectionString = message.connectionString; + return object; + }; /** - * ConnectionOptions memphis. - * @member {protos.args.IMemphisConn|null|undefined} memphis - * @memberof protos.opts.ConnectionOptions + * Converts this AzureServiceBusConn to JSON. + * @function toJSON + * @memberof protos.args.AzureServiceBusConn * @instance + * @returns {Object.} JSON object */ - ConnectionOptions.prototype.memphis = null; + AzureServiceBusConn.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AzureServiceBusConn; + })(); + + args.AzureServiceBusReadArgs = (function() { /** - * ConnectionOptions _id. - * @member {string} _id - * @memberof protos.opts.ConnectionOptions + * Properties of an AzureServiceBusReadArgs. + * @memberof protos.args + * @interface IAzureServiceBusReadArgs + * @property {string|null} [queue] AzureServiceBusReadArgs queue + * @property {string|null} [topic] AzureServiceBusReadArgs topic + * @property {string|null} [subscriptionName] AzureServiceBusReadArgs subscriptionName + */ + + /** + * Constructs a new AzureServiceBusReadArgs. + * @memberof protos.args + * @classdesc Represents an AzureServiceBusReadArgs. + * @implements IAzureServiceBusReadArgs + * @constructor + * @param {protos.args.IAzureServiceBusReadArgs=} [properties] Properties to set + */ + function AzureServiceBusReadArgs(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AzureServiceBusReadArgs queue. + * @member {string} queue + * @memberof protos.args.AzureServiceBusReadArgs * @instance */ - ConnectionOptions.prototype._id = ""; + AzureServiceBusReadArgs.prototype.queue = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * AzureServiceBusReadArgs topic. + * @member {string} topic + * @memberof protos.args.AzureServiceBusReadArgs + * @instance + */ + AzureServiceBusReadArgs.prototype.topic = ""; /** - * ConnectionOptions conn. - * @member {"kafka"|"activeMq"|"awsSqs"|"awsSns"|"mongo"|"nats"|"natsStreaming"|"nsq"|"postgres"|"pulsar"|"rabbit"|"rabbitStreams"|"redisPubsub"|"redisStreams"|"azureEventHub"|"azureServiceBus"|"mqtt"|"kubemqQueue"|"gcpPubsub"|"natsJetstream"|"awsKinesis"|"memphis"|undefined} conn - * @memberof protos.opts.ConnectionOptions + * AzureServiceBusReadArgs subscriptionName. + * @member {string} subscriptionName + * @memberof protos.args.AzureServiceBusReadArgs * @instance */ - Object.defineProperty(ConnectionOptions.prototype, "conn", { - get: $util.oneOfGetter($oneOfFields = ["kafka", "activeMq", "awsSqs", "awsSns", "mongo", "nats", "natsStreaming", "nsq", "postgres", "pulsar", "rabbit", "rabbitStreams", "redisPubsub", "redisStreams", "azureEventHub", "azureServiceBus", "mqtt", "kubemqQueue", "gcpPubsub", "natsJetstream", "awsKinesis", "memphis"]), - set: $util.oneOfSetter($oneOfFields) - }); + AzureServiceBusReadArgs.prototype.subscriptionName = ""; /** - * Creates a new ConnectionOptions instance using the specified properties. + * Creates a new AzureServiceBusReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.ConnectionOptions + * @memberof protos.args.AzureServiceBusReadArgs * @static - * @param {protos.opts.IConnectionOptions=} [properties] Properties to set - * @returns {protos.opts.ConnectionOptions} ConnectionOptions instance + * @param {protos.args.IAzureServiceBusReadArgs=} [properties] Properties to set + * @returns {protos.args.AzureServiceBusReadArgs} AzureServiceBusReadArgs instance */ - ConnectionOptions.create = function create(properties) { - return new ConnectionOptions(properties); + AzureServiceBusReadArgs.create = function create(properties) { + return new AzureServiceBusReadArgs(properties); }; /** - * Encodes the specified ConnectionOptions message. Does not implicitly {@link protos.opts.ConnectionOptions.verify|verify} messages. + * Encodes the specified AzureServiceBusReadArgs message. Does not implicitly {@link protos.args.AzureServiceBusReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.ConnectionOptions + * @memberof protos.args.AzureServiceBusReadArgs * @static - * @param {protos.opts.IConnectionOptions} message ConnectionOptions message or plain object to encode + * @param {protos.args.IAzureServiceBusReadArgs} message AzureServiceBusReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionOptions.encode = function encode(message, writer) { + AzureServiceBusReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.notes); - if (message.kafka != null && Object.hasOwnProperty.call(message, "kafka")) - $root.protos.args.KafkaConn.encode(message.kafka, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); - if (message.activeMq != null && Object.hasOwnProperty.call(message, "activeMq")) - $root.protos.args.ActiveMQConn.encode(message.activeMq, writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); - if (message.awsSqs != null && Object.hasOwnProperty.call(message, "awsSqs")) - $root.protos.args.AWSSQSConn.encode(message.awsSqs, writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim(); - if (message.awsSns != null && Object.hasOwnProperty.call(message, "awsSns")) - $root.protos.args.AWSSNSConn.encode(message.awsSns, writer.uint32(/* id 103, wireType 2 =*/826).fork()).ldelim(); - if (message.mongo != null && Object.hasOwnProperty.call(message, "mongo")) - $root.protos.args.MongoConn.encode(message.mongo, writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim(); - if (message.nats != null && Object.hasOwnProperty.call(message, "nats")) - $root.protos.args.NatsConn.encode(message.nats, writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); - if (message.natsStreaming != null && Object.hasOwnProperty.call(message, "natsStreaming")) - $root.protos.args.NatsStreamingConn.encode(message.natsStreaming, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim(); - if (message.nsq != null && Object.hasOwnProperty.call(message, "nsq")) - $root.protos.args.NSQConn.encode(message.nsq, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); - if (message.postgres != null && Object.hasOwnProperty.call(message, "postgres")) - $root.protos.args.PostgresConn.encode(message.postgres, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim(); - if (message.pulsar != null && Object.hasOwnProperty.call(message, "pulsar")) - $root.protos.args.PulsarConn.encode(message.pulsar, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); - if (message.rabbit != null && Object.hasOwnProperty.call(message, "rabbit")) - $root.protos.args.RabbitConn.encode(message.rabbit, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); - if (message.rabbitStreams != null && Object.hasOwnProperty.call(message, "rabbitStreams")) - $root.protos.args.RabbitStreamsConn.encode(message.rabbitStreams, writer.uint32(/* id 111, wireType 2 =*/890).fork()).ldelim(); - if (message.redisPubsub != null && Object.hasOwnProperty.call(message, "redisPubsub")) - $root.protos.args.RedisPubSubConn.encode(message.redisPubsub, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim(); - if (message.redisStreams != null && Object.hasOwnProperty.call(message, "redisStreams")) - $root.protos.args.RedisStreamsConn.encode(message.redisStreams, writer.uint32(/* id 113, wireType 2 =*/906).fork()).ldelim(); - if (message.azureEventHub != null && Object.hasOwnProperty.call(message, "azureEventHub")) - $root.protos.args.AzureEventHubConn.encode(message.azureEventHub, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); - if (message.azureServiceBus != null && Object.hasOwnProperty.call(message, "azureServiceBus")) - $root.protos.args.AzureServiceBusConn.encode(message.azureServiceBus, writer.uint32(/* id 115, wireType 2 =*/922).fork()).ldelim(); - if (message.mqtt != null && Object.hasOwnProperty.call(message, "mqtt")) - $root.protos.args.MQTTConn.encode(message.mqtt, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); - if (message.kubemqQueue != null && Object.hasOwnProperty.call(message, "kubemqQueue")) - $root.protos.args.KubeMQQueueConn.encode(message.kubemqQueue, writer.uint32(/* id 117, wireType 2 =*/938).fork()).ldelim(); - if (message.gcpPubsub != null && Object.hasOwnProperty.call(message, "gcpPubsub")) - $root.protos.args.GCPPubSubConn.encode(message.gcpPubsub, writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim(); - if (message.natsJetstream != null && Object.hasOwnProperty.call(message, "natsJetstream")) - $root.protos.args.NatsJetstreamConn.encode(message.natsJetstream, writer.uint32(/* id 119, wireType 2 =*/954).fork()).ldelim(); - if (message.awsKinesis != null && Object.hasOwnProperty.call(message, "awsKinesis")) - $root.protos.args.AWSKinesisConn.encode(message.awsKinesis, writer.uint32(/* id 120, wireType 2 =*/962).fork()).ldelim(); - if (message.memphis != null && Object.hasOwnProperty.call(message, "memphis")) - $root.protos.args.MemphisConn.encode(message.memphis, writer.uint32(/* id 121, wireType 2 =*/970).fork()).ldelim(); - if (message._id != null && Object.hasOwnProperty.call(message, "_id")) - writer.uint32(/* id 1000, wireType 2 =*/8002).string(message._id); + if (message.queue != null && Object.hasOwnProperty.call(message, "queue")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.queue); + if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.topic); + if (message.subscriptionName != null && Object.hasOwnProperty.call(message, "subscriptionName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subscriptionName); return writer; }; /** - * Encodes the specified ConnectionOptions message, length delimited. Does not implicitly {@link protos.opts.ConnectionOptions.verify|verify} messages. + * Encodes the specified AzureServiceBusReadArgs message, length delimited. Does not implicitly {@link protos.args.AzureServiceBusReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ConnectionOptions + * @memberof protos.args.AzureServiceBusReadArgs * @static - * @param {protos.opts.IConnectionOptions} message ConnectionOptions message or plain object to encode + * @param {protos.args.IAzureServiceBusReadArgs} message AzureServiceBusReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConnectionOptions.encodeDelimited = function encodeDelimited(message, writer) { + AzureServiceBusReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConnectionOptions message from the specified reader or buffer. + * Decodes an AzureServiceBusReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ConnectionOptions + * @memberof protos.args.AzureServiceBusReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ConnectionOptions} ConnectionOptions + * @returns {protos.args.AzureServiceBusReadArgs} AzureServiceBusReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionOptions.decode = function decode(reader, length) { + AzureServiceBusReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ConnectionOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AzureServiceBusReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.queue = reader.string(); break; case 2: - message.notes = reader.string(); - break; - case 100: - message.kafka = $root.protos.args.KafkaConn.decode(reader, reader.uint32()); - break; - case 101: - message.activeMq = $root.protos.args.ActiveMQConn.decode(reader, reader.uint32()); - break; - case 102: - message.awsSqs = $root.protos.args.AWSSQSConn.decode(reader, reader.uint32()); - break; - case 103: - message.awsSns = $root.protos.args.AWSSNSConn.decode(reader, reader.uint32()); - break; - case 104: - message.mongo = $root.protos.args.MongoConn.decode(reader, reader.uint32()); - break; - case 105: - message.nats = $root.protos.args.NatsConn.decode(reader, reader.uint32()); - break; - case 106: - message.natsStreaming = $root.protos.args.NatsStreamingConn.decode(reader, reader.uint32()); - break; - case 107: - message.nsq = $root.protos.args.NSQConn.decode(reader, reader.uint32()); - break; - case 108: - message.postgres = $root.protos.args.PostgresConn.decode(reader, reader.uint32()); - break; - case 109: - message.pulsar = $root.protos.args.PulsarConn.decode(reader, reader.uint32()); - break; - case 110: - message.rabbit = $root.protos.args.RabbitConn.decode(reader, reader.uint32()); - break; - case 111: - message.rabbitStreams = $root.protos.args.RabbitStreamsConn.decode(reader, reader.uint32()); - break; - case 112: - message.redisPubsub = $root.protos.args.RedisPubSubConn.decode(reader, reader.uint32()); - break; - case 113: - message.redisStreams = $root.protos.args.RedisStreamsConn.decode(reader, reader.uint32()); - break; - case 114: - message.azureEventHub = $root.protos.args.AzureEventHubConn.decode(reader, reader.uint32()); - break; - case 115: - message.azureServiceBus = $root.protos.args.AzureServiceBusConn.decode(reader, reader.uint32()); - break; - case 116: - message.mqtt = $root.protos.args.MQTTConn.decode(reader, reader.uint32()); - break; - case 117: - message.kubemqQueue = $root.protos.args.KubeMQQueueConn.decode(reader, reader.uint32()); - break; - case 118: - message.gcpPubsub = $root.protos.args.GCPPubSubConn.decode(reader, reader.uint32()); - break; - case 119: - message.natsJetstream = $root.protos.args.NatsJetstreamConn.decode(reader, reader.uint32()); - break; - case 120: - message.awsKinesis = $root.protos.args.AWSKinesisConn.decode(reader, reader.uint32()); - break; - case 121: - message.memphis = $root.protos.args.MemphisConn.decode(reader, reader.uint32()); + message.topic = reader.string(); break; - case 1000: - message._id = reader.string(); + case 3: + message.subscriptionName = reader.string(); break; default: reader.skipType(tag & 7); @@ -5274,563 +4061,125 @@ $root.protos = (function() { }; /** - * Decodes a ConnectionOptions message from the specified reader or buffer, length delimited. + * Decodes an AzureServiceBusReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ConnectionOptions + * @memberof protos.args.AzureServiceBusReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ConnectionOptions} ConnectionOptions + * @returns {protos.args.AzureServiceBusReadArgs} AzureServiceBusReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConnectionOptions.decodeDelimited = function decodeDelimited(reader) { + AzureServiceBusReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConnectionOptions message. + * Verifies an AzureServiceBusReadArgs message. * @function verify - * @memberof protos.opts.ConnectionOptions + * @memberof protos.args.AzureServiceBusReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConnectionOptions.verify = function verify(message) { + AzureServiceBusReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.notes != null && message.hasOwnProperty("notes")) - if (!$util.isString(message.notes)) - return "notes: string expected"; - if (message.kafka != null && message.hasOwnProperty("kafka")) { - properties.conn = 1; - { - var error = $root.protos.args.KafkaConn.verify(message.kafka); - if (error) - return "kafka." + error; - } - } - if (message.activeMq != null && message.hasOwnProperty("activeMq")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.ActiveMQConn.verify(message.activeMq); - if (error) - return "activeMq." + error; - } - } - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.AWSSQSConn.verify(message.awsSqs); - if (error) - return "awsSqs." + error; - } + if (message.queue != null && message.hasOwnProperty("queue")) + if (!$util.isString(message.queue)) + return "queue: string expected"; + if (message.topic != null && message.hasOwnProperty("topic")) + if (!$util.isString(message.topic)) + return "topic: string expected"; + if (message.subscriptionName != null && message.hasOwnProperty("subscriptionName")) + if (!$util.isString(message.subscriptionName)) + return "subscriptionName: string expected"; + return null; + }; + + /** + * Creates an AzureServiceBusReadArgs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.AzureServiceBusReadArgs + * @static + * @param {Object.} object Plain object + * @returns {protos.args.AzureServiceBusReadArgs} AzureServiceBusReadArgs + */ + AzureServiceBusReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AzureServiceBusReadArgs) + return object; + var message = new $root.protos.args.AzureServiceBusReadArgs(); + if (object.queue != null) + message.queue = String(object.queue); + if (object.topic != null) + message.topic = String(object.topic); + if (object.subscriptionName != null) + message.subscriptionName = String(object.subscriptionName); + return message; + }; + + /** + * Creates a plain object from an AzureServiceBusReadArgs message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.AzureServiceBusReadArgs + * @static + * @param {protos.args.AzureServiceBusReadArgs} message AzureServiceBusReadArgs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AzureServiceBusReadArgs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.queue = ""; + object.topic = ""; + object.subscriptionName = ""; } - if (message.awsSns != null && message.hasOwnProperty("awsSns")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.AWSSNSConn.verify(message.awsSns); - if (error) - return "awsSns." + error; - } - } - if (message.mongo != null && message.hasOwnProperty("mongo")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.MongoConn.verify(message.mongo); - if (error) - return "mongo." + error; - } - } - if (message.nats != null && message.hasOwnProperty("nats")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.NatsConn.verify(message.nats); - if (error) - return "nats." + error; - } - } - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.NatsStreamingConn.verify(message.natsStreaming); - if (error) - return "natsStreaming." + error; - } - } - if (message.nsq != null && message.hasOwnProperty("nsq")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.NSQConn.verify(message.nsq); - if (error) - return "nsq." + error; - } - } - if (message.postgres != null && message.hasOwnProperty("postgres")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.PostgresConn.verify(message.postgres); - if (error) - return "postgres." + error; - } - } - if (message.pulsar != null && message.hasOwnProperty("pulsar")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.PulsarConn.verify(message.pulsar); - if (error) - return "pulsar." + error; - } - } - if (message.rabbit != null && message.hasOwnProperty("rabbit")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.RabbitConn.verify(message.rabbit); - if (error) - return "rabbit." + error; - } - } - if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.RabbitStreamsConn.verify(message.rabbitStreams); - if (error) - return "rabbitStreams." + error; - } - } - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.RedisPubSubConn.verify(message.redisPubsub); - if (error) - return "redisPubsub." + error; - } - } - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.RedisStreamsConn.verify(message.redisStreams); - if (error) - return "redisStreams." + error; - } - } - if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.AzureEventHubConn.verify(message.azureEventHub); - if (error) - return "azureEventHub." + error; - } - } - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.AzureServiceBusConn.verify(message.azureServiceBus); - if (error) - return "azureServiceBus." + error; - } - } - if (message.mqtt != null && message.hasOwnProperty("mqtt")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.MQTTConn.verify(message.mqtt); - if (error) - return "mqtt." + error; - } - } - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.KubeMQQueueConn.verify(message.kubemqQueue); - if (error) - return "kubemqQueue." + error; - } - } - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.GCPPubSubConn.verify(message.gcpPubsub); - if (error) - return "gcpPubsub." + error; - } - } - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.NatsJetstreamConn.verify(message.natsJetstream); - if (error) - return "natsJetstream." + error; - } - } - if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.AWSKinesisConn.verify(message.awsKinesis); - if (error) - return "awsKinesis." + error; - } - } - if (message.memphis != null && message.hasOwnProperty("memphis")) { - if (properties.conn === 1) - return "conn: multiple values"; - properties.conn = 1; - { - var error = $root.protos.args.MemphisConn.verify(message.memphis); - if (error) - return "memphis." + error; - } - } - if (message._id != null && message.hasOwnProperty("_id")) - if (!$util.isString(message._id)) - return "_id: string expected"; - return null; - }; - - /** - * Creates a ConnectionOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.ConnectionOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.ConnectionOptions} ConnectionOptions - */ - ConnectionOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ConnectionOptions) - return object; - var message = new $root.protos.opts.ConnectionOptions(); - if (object.name != null) - message.name = String(object.name); - if (object.notes != null) - message.notes = String(object.notes); - if (object.kafka != null) { - if (typeof object.kafka !== "object") - throw TypeError(".protos.opts.ConnectionOptions.kafka: object expected"); - message.kafka = $root.protos.args.KafkaConn.fromObject(object.kafka); - } - if (object.activeMq != null) { - if (typeof object.activeMq !== "object") - throw TypeError(".protos.opts.ConnectionOptions.activeMq: object expected"); - message.activeMq = $root.protos.args.ActiveMQConn.fromObject(object.activeMq); - } - if (object.awsSqs != null) { - if (typeof object.awsSqs !== "object") - throw TypeError(".protos.opts.ConnectionOptions.awsSqs: object expected"); - message.awsSqs = $root.protos.args.AWSSQSConn.fromObject(object.awsSqs); - } - if (object.awsSns != null) { - if (typeof object.awsSns !== "object") - throw TypeError(".protos.opts.ConnectionOptions.awsSns: object expected"); - message.awsSns = $root.protos.args.AWSSNSConn.fromObject(object.awsSns); - } - if (object.mongo != null) { - if (typeof object.mongo !== "object") - throw TypeError(".protos.opts.ConnectionOptions.mongo: object expected"); - message.mongo = $root.protos.args.MongoConn.fromObject(object.mongo); - } - if (object.nats != null) { - if (typeof object.nats !== "object") - throw TypeError(".protos.opts.ConnectionOptions.nats: object expected"); - message.nats = $root.protos.args.NatsConn.fromObject(object.nats); - } - if (object.natsStreaming != null) { - if (typeof object.natsStreaming !== "object") - throw TypeError(".protos.opts.ConnectionOptions.natsStreaming: object expected"); - message.natsStreaming = $root.protos.args.NatsStreamingConn.fromObject(object.natsStreaming); - } - if (object.nsq != null) { - if (typeof object.nsq !== "object") - throw TypeError(".protos.opts.ConnectionOptions.nsq: object expected"); - message.nsq = $root.protos.args.NSQConn.fromObject(object.nsq); - } - if (object.postgres != null) { - if (typeof object.postgres !== "object") - throw TypeError(".protos.opts.ConnectionOptions.postgres: object expected"); - message.postgres = $root.protos.args.PostgresConn.fromObject(object.postgres); - } - if (object.pulsar != null) { - if (typeof object.pulsar !== "object") - throw TypeError(".protos.opts.ConnectionOptions.pulsar: object expected"); - message.pulsar = $root.protos.args.PulsarConn.fromObject(object.pulsar); - } - if (object.rabbit != null) { - if (typeof object.rabbit !== "object") - throw TypeError(".protos.opts.ConnectionOptions.rabbit: object expected"); - message.rabbit = $root.protos.args.RabbitConn.fromObject(object.rabbit); - } - if (object.rabbitStreams != null) { - if (typeof object.rabbitStreams !== "object") - throw TypeError(".protos.opts.ConnectionOptions.rabbitStreams: object expected"); - message.rabbitStreams = $root.protos.args.RabbitStreamsConn.fromObject(object.rabbitStreams); - } - if (object.redisPubsub != null) { - if (typeof object.redisPubsub !== "object") - throw TypeError(".protos.opts.ConnectionOptions.redisPubsub: object expected"); - message.redisPubsub = $root.protos.args.RedisPubSubConn.fromObject(object.redisPubsub); - } - if (object.redisStreams != null) { - if (typeof object.redisStreams !== "object") - throw TypeError(".protos.opts.ConnectionOptions.redisStreams: object expected"); - message.redisStreams = $root.protos.args.RedisStreamsConn.fromObject(object.redisStreams); - } - if (object.azureEventHub != null) { - if (typeof object.azureEventHub !== "object") - throw TypeError(".protos.opts.ConnectionOptions.azureEventHub: object expected"); - message.azureEventHub = $root.protos.args.AzureEventHubConn.fromObject(object.azureEventHub); - } - if (object.azureServiceBus != null) { - if (typeof object.azureServiceBus !== "object") - throw TypeError(".protos.opts.ConnectionOptions.azureServiceBus: object expected"); - message.azureServiceBus = $root.protos.args.AzureServiceBusConn.fromObject(object.azureServiceBus); - } - if (object.mqtt != null) { - if (typeof object.mqtt !== "object") - throw TypeError(".protos.opts.ConnectionOptions.mqtt: object expected"); - message.mqtt = $root.protos.args.MQTTConn.fromObject(object.mqtt); - } - if (object.kubemqQueue != null) { - if (typeof object.kubemqQueue !== "object") - throw TypeError(".protos.opts.ConnectionOptions.kubemqQueue: object expected"); - message.kubemqQueue = $root.protos.args.KubeMQQueueConn.fromObject(object.kubemqQueue); - } - if (object.gcpPubsub != null) { - if (typeof object.gcpPubsub !== "object") - throw TypeError(".protos.opts.ConnectionOptions.gcpPubsub: object expected"); - message.gcpPubsub = $root.protos.args.GCPPubSubConn.fromObject(object.gcpPubsub); - } - if (object.natsJetstream != null) { - if (typeof object.natsJetstream !== "object") - throw TypeError(".protos.opts.ConnectionOptions.natsJetstream: object expected"); - message.natsJetstream = $root.protos.args.NatsJetstreamConn.fromObject(object.natsJetstream); - } - if (object.awsKinesis != null) { - if (typeof object.awsKinesis !== "object") - throw TypeError(".protos.opts.ConnectionOptions.awsKinesis: object expected"); - message.awsKinesis = $root.protos.args.AWSKinesisConn.fromObject(object.awsKinesis); - } - if (object.memphis != null) { - if (typeof object.memphis !== "object") - throw TypeError(".protos.opts.ConnectionOptions.memphis: object expected"); - message.memphis = $root.protos.args.MemphisConn.fromObject(object.memphis); - } - if (object._id != null) - message._id = String(object._id); - return message; - }; - - /** - * Creates a plain object from a ConnectionOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.ConnectionOptions - * @static - * @param {protos.opts.ConnectionOptions} message ConnectionOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConnectionOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.notes = ""; - object._id = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.notes != null && message.hasOwnProperty("notes")) - object.notes = message.notes; - if (message.kafka != null && message.hasOwnProperty("kafka")) { - object.kafka = $root.protos.args.KafkaConn.toObject(message.kafka, options); - if (options.oneofs) - object.conn = "kafka"; - } - if (message.activeMq != null && message.hasOwnProperty("activeMq")) { - object.activeMq = $root.protos.args.ActiveMQConn.toObject(message.activeMq, options); - if (options.oneofs) - object.conn = "activeMq"; - } - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) { - object.awsSqs = $root.protos.args.AWSSQSConn.toObject(message.awsSqs, options); - if (options.oneofs) - object.conn = "awsSqs"; - } - if (message.awsSns != null && message.hasOwnProperty("awsSns")) { - object.awsSns = $root.protos.args.AWSSNSConn.toObject(message.awsSns, options); - if (options.oneofs) - object.conn = "awsSns"; - } - if (message.mongo != null && message.hasOwnProperty("mongo")) { - object.mongo = $root.protos.args.MongoConn.toObject(message.mongo, options); - if (options.oneofs) - object.conn = "mongo"; - } - if (message.nats != null && message.hasOwnProperty("nats")) { - object.nats = $root.protos.args.NatsConn.toObject(message.nats, options); - if (options.oneofs) - object.conn = "nats"; - } - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) { - object.natsStreaming = $root.protos.args.NatsStreamingConn.toObject(message.natsStreaming, options); - if (options.oneofs) - object.conn = "natsStreaming"; - } - if (message.nsq != null && message.hasOwnProperty("nsq")) { - object.nsq = $root.protos.args.NSQConn.toObject(message.nsq, options); - if (options.oneofs) - object.conn = "nsq"; - } - if (message.postgres != null && message.hasOwnProperty("postgres")) { - object.postgres = $root.protos.args.PostgresConn.toObject(message.postgres, options); - if (options.oneofs) - object.conn = "postgres"; - } - if (message.pulsar != null && message.hasOwnProperty("pulsar")) { - object.pulsar = $root.protos.args.PulsarConn.toObject(message.pulsar, options); - if (options.oneofs) - object.conn = "pulsar"; - } - if (message.rabbit != null && message.hasOwnProperty("rabbit")) { - object.rabbit = $root.protos.args.RabbitConn.toObject(message.rabbit, options); - if (options.oneofs) - object.conn = "rabbit"; - } - if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) { - object.rabbitStreams = $root.protos.args.RabbitStreamsConn.toObject(message.rabbitStreams, options); - if (options.oneofs) - object.conn = "rabbitStreams"; - } - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) { - object.redisPubsub = $root.protos.args.RedisPubSubConn.toObject(message.redisPubsub, options); - if (options.oneofs) - object.conn = "redisPubsub"; - } - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) { - object.redisStreams = $root.protos.args.RedisStreamsConn.toObject(message.redisStreams, options); - if (options.oneofs) - object.conn = "redisStreams"; - } - if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) { - object.azureEventHub = $root.protos.args.AzureEventHubConn.toObject(message.azureEventHub, options); - if (options.oneofs) - object.conn = "azureEventHub"; - } - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) { - object.azureServiceBus = $root.protos.args.AzureServiceBusConn.toObject(message.azureServiceBus, options); - if (options.oneofs) - object.conn = "azureServiceBus"; - } - if (message.mqtt != null && message.hasOwnProperty("mqtt")) { - object.mqtt = $root.protos.args.MQTTConn.toObject(message.mqtt, options); - if (options.oneofs) - object.conn = "mqtt"; - } - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) { - object.kubemqQueue = $root.protos.args.KubeMQQueueConn.toObject(message.kubemqQueue, options); - if (options.oneofs) - object.conn = "kubemqQueue"; - } - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) { - object.gcpPubsub = $root.protos.args.GCPPubSubConn.toObject(message.gcpPubsub, options); - if (options.oneofs) - object.conn = "gcpPubsub"; - } - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) { - object.natsJetstream = $root.protos.args.NatsJetstreamConn.toObject(message.natsJetstream, options); - if (options.oneofs) - object.conn = "natsJetstream"; - } - if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) { - object.awsKinesis = $root.protos.args.AWSKinesisConn.toObject(message.awsKinesis, options); - if (options.oneofs) - object.conn = "awsKinesis"; - } - if (message.memphis != null && message.hasOwnProperty("memphis")) { - object.memphis = $root.protos.args.MemphisConn.toObject(message.memphis, options); - if (options.oneofs) - object.conn = "memphis"; - } - if (message._id != null && message.hasOwnProperty("_id")) - object._id = message._id; + if (message.queue != null && message.hasOwnProperty("queue")) + object.queue = message.queue; + if (message.topic != null && message.hasOwnProperty("topic")) + object.topic = message.topic; + if (message.subscriptionName != null && message.hasOwnProperty("subscriptionName")) + object.subscriptionName = message.subscriptionName; return object; }; /** - * Converts this ConnectionOptions to JSON. + * Converts this AzureServiceBusReadArgs to JSON. * @function toJSON - * @memberof protos.opts.ConnectionOptions + * @memberof protos.args.AzureServiceBusReadArgs * @instance * @returns {Object.} JSON object */ - ConnectionOptions.prototype.toJSON = function toJSON() { + AzureServiceBusReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConnectionOptions; + return AzureServiceBusReadArgs; })(); - opts.RelayCLIOptions = (function() { + args.AzureServiceBusWriteArgs = (function() { /** - * Properties of a RelayCLIOptions. - * @memberof protos.opts - * @interface IRelayCLIOptions - * @property {string|null} [httpListenAddress] RelayCLIOptions httpListenAddress + * Properties of an AzureServiceBusWriteArgs. + * @memberof protos.args + * @interface IAzureServiceBusWriteArgs + * @property {string|null} [queue] AzureServiceBusWriteArgs queue + * @property {string|null} [topic] AzureServiceBusWriteArgs topic */ /** - * Constructs a new RelayCLIOptions. - * @memberof protos.opts - * @classdesc Represents a RelayCLIOptions. - * @implements IRelayCLIOptions + * Constructs a new AzureServiceBusWriteArgs. + * @memberof protos.args + * @classdesc Represents an AzureServiceBusWriteArgs. + * @implements IAzureServiceBusWriteArgs * @constructor - * @param {protos.opts.IRelayCLIOptions=} [properties] Properties to set + * @param {protos.args.IAzureServiceBusWriteArgs=} [properties] Properties to set */ - function RelayCLIOptions(properties) { + function AzureServiceBusWriteArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5838,75 +4187,88 @@ $root.protos = (function() { } /** - * RelayCLIOptions httpListenAddress. - * @member {string} httpListenAddress - * @memberof protos.opts.RelayCLIOptions + * AzureServiceBusWriteArgs queue. + * @member {string} queue + * @memberof protos.args.AzureServiceBusWriteArgs + * @instance + */ + AzureServiceBusWriteArgs.prototype.queue = ""; + + /** + * AzureServiceBusWriteArgs topic. + * @member {string} topic + * @memberof protos.args.AzureServiceBusWriteArgs * @instance */ - RelayCLIOptions.prototype.httpListenAddress = ""; + AzureServiceBusWriteArgs.prototype.topic = ""; /** - * Creates a new RelayCLIOptions instance using the specified properties. + * Creates a new AzureServiceBusWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.RelayCLIOptions + * @memberof protos.args.AzureServiceBusWriteArgs * @static - * @param {protos.opts.IRelayCLIOptions=} [properties] Properties to set - * @returns {protos.opts.RelayCLIOptions} RelayCLIOptions instance + * @param {protos.args.IAzureServiceBusWriteArgs=} [properties] Properties to set + * @returns {protos.args.AzureServiceBusWriteArgs} AzureServiceBusWriteArgs instance */ - RelayCLIOptions.create = function create(properties) { - return new RelayCLIOptions(properties); + AzureServiceBusWriteArgs.create = function create(properties) { + return new AzureServiceBusWriteArgs(properties); }; /** - * Encodes the specified RelayCLIOptions message. Does not implicitly {@link protos.opts.RelayCLIOptions.verify|verify} messages. + * Encodes the specified AzureServiceBusWriteArgs message. Does not implicitly {@link protos.args.AzureServiceBusWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayCLIOptions + * @memberof protos.args.AzureServiceBusWriteArgs * @static - * @param {protos.opts.IRelayCLIOptions} message RelayCLIOptions message or plain object to encode + * @param {protos.args.IAzureServiceBusWriteArgs} message AzureServiceBusWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayCLIOptions.encode = function encode(message, writer) { + AzureServiceBusWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.httpListenAddress != null && Object.hasOwnProperty.call(message, "httpListenAddress")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.httpListenAddress); - return writer; + if (message.queue != null && Object.hasOwnProperty.call(message, "queue")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.queue); + if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.topic); + return writer; }; /** - * Encodes the specified RelayCLIOptions message, length delimited. Does not implicitly {@link protos.opts.RelayCLIOptions.verify|verify} messages. + * Encodes the specified AzureServiceBusWriteArgs message, length delimited. Does not implicitly {@link protos.args.AzureServiceBusWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayCLIOptions + * @memberof protos.args.AzureServiceBusWriteArgs * @static - * @param {protos.opts.IRelayCLIOptions} message RelayCLIOptions message or plain object to encode + * @param {protos.args.IAzureServiceBusWriteArgs} message AzureServiceBusWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayCLIOptions.encodeDelimited = function encodeDelimited(message, writer) { + AzureServiceBusWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayCLIOptions message from the specified reader or buffer. + * Decodes an AzureServiceBusWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayCLIOptions + * @memberof protos.args.AzureServiceBusWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayCLIOptions} RelayCLIOptions + * @returns {protos.args.AzureServiceBusWriteArgs} AzureServiceBusWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayCLIOptions.decode = function decode(reader, length) { + AzureServiceBusWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayCLIOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AzureServiceBusWriteArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.httpListenAddress = reader.string(); + message.queue = reader.string(); + break; + case 2: + message.topic = reader.string(); break; default: reader.skipType(tag & 7); @@ -5917,135 +4279,118 @@ $root.protos = (function() { }; /** - * Decodes a RelayCLIOptions message from the specified reader or buffer, length delimited. + * Decodes an AzureServiceBusWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayCLIOptions + * @memberof protos.args.AzureServiceBusWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayCLIOptions} RelayCLIOptions + * @returns {protos.args.AzureServiceBusWriteArgs} AzureServiceBusWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayCLIOptions.decodeDelimited = function decodeDelimited(reader) { + AzureServiceBusWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayCLIOptions message. + * Verifies an AzureServiceBusWriteArgs message. * @function verify - * @memberof protos.opts.RelayCLIOptions + * @memberof protos.args.AzureServiceBusWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayCLIOptions.verify = function verify(message) { + AzureServiceBusWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.httpListenAddress != null && message.hasOwnProperty("httpListenAddress")) - if (!$util.isString(message.httpListenAddress)) - return "httpListenAddress: string expected"; + if (message.queue != null && message.hasOwnProperty("queue")) + if (!$util.isString(message.queue)) + return "queue: string expected"; + if (message.topic != null && message.hasOwnProperty("topic")) + if (!$util.isString(message.topic)) + return "topic: string expected"; return null; }; /** - * Creates a RelayCLIOptions message from a plain object. Also converts values to their respective internal types. + * Creates an AzureServiceBusWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayCLIOptions + * @memberof protos.args.AzureServiceBusWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayCLIOptions} RelayCLIOptions + * @returns {protos.args.AzureServiceBusWriteArgs} AzureServiceBusWriteArgs */ - RelayCLIOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayCLIOptions) + AzureServiceBusWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.AzureServiceBusWriteArgs) return object; - var message = new $root.protos.opts.RelayCLIOptions(); - if (object.httpListenAddress != null) - message.httpListenAddress = String(object.httpListenAddress); + var message = new $root.protos.args.AzureServiceBusWriteArgs(); + if (object.queue != null) + message.queue = String(object.queue); + if (object.topic != null) + message.topic = String(object.topic); return message; }; /** - * Creates a plain object from a RelayCLIOptions message. Also converts values to other types if specified. + * Creates a plain object from an AzureServiceBusWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayCLIOptions + * @memberof protos.args.AzureServiceBusWriteArgs * @static - * @param {protos.opts.RelayCLIOptions} message RelayCLIOptions + * @param {protos.args.AzureServiceBusWriteArgs} message AzureServiceBusWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayCLIOptions.toObject = function toObject(message, options) { + AzureServiceBusWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.httpListenAddress = ""; - if (message.httpListenAddress != null && message.hasOwnProperty("httpListenAddress")) - object.httpListenAddress = message.httpListenAddress; + if (options.defaults) { + object.queue = ""; + object.topic = ""; + } + if (message.queue != null && message.hasOwnProperty("queue")) + object.queue = message.queue; + if (message.topic != null && message.hasOwnProperty("topic")) + object.topic = message.topic; return object; }; /** - * Converts this RelayCLIOptions to JSON. + * Converts this AzureServiceBusWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.RelayCLIOptions + * @memberof protos.args.AzureServiceBusWriteArgs * @instance * @returns {Object.} JSON object */ - RelayCLIOptions.prototype.toJSON = function toJSON() { + AzureServiceBusWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayCLIOptions; + return AzureServiceBusWriteArgs; })(); - opts.RelayOptions = (function() { + args.GCPPubSubConn = (function() { /** - * Properties of a RelayOptions. - * @memberof protos.opts - * @interface IRelayOptions - * @property {string|null} [collectionToken] RelayOptions collectionToken - * @property {number|null} [batchSize] RelayOptions batchSize - * @property {number|null} [batchMaxRetry] RelayOptions batchMaxRetry - * @property {string|null} [connectionId] RelayOptions connectionId - * @property {number|null} [numWorkers] RelayOptions numWorkers - * @property {boolean|null} [statsEnable] RelayOptions statsEnable - * @property {number|null} [statsReportIntervalSec] RelayOptions statsReportIntervalSec - * @property {boolean|null} [deadLetter] RelayOptions deadLetter - * @property {string|null} [_streamdalGrpcAddress] RelayOptions _streamdalGrpcAddress - * @property {boolean|null} [_streamdalGrpcDisableTls] RelayOptions _streamdalGrpcDisableTls - * @property {number|null} [_streamdalGrpcTimeoutSeconds] RelayOptions _streamdalGrpcTimeoutSeconds - * @property {string|null} [_relayId] RelayOptions _relayId - * @property {protos.opts.IRelayCLIOptions|null} [_cliOptions] RelayOptions _cliOptions - * @property {boolean|null} [_active] RelayOptions _active - * @property {protos.opts.IRelayGroupKafkaOptions|null} [kafka] RelayOptions kafka - * @property {protos.opts.IRelayGroupAWSSQSOptions|null} [awsSqs] RelayOptions awsSqs - * @property {protos.opts.IRelayGroupMongoOptions|null} [mongo] RelayOptions mongo - * @property {protos.opts.IRelayGroupNSQOptions|null} [nsq] RelayOptions nsq - * @property {protos.opts.IRelayGroupRabbitOptions|null} [rabbit] RelayOptions rabbit - * @property {protos.opts.IRelayGroupMQTTOptions|null} [mqtt] RelayOptions mqtt - * @property {protos.opts.IRelayGroupAzureServiceBusOptions|null} [azureServiceBus] RelayOptions azureServiceBus - * @property {protos.opts.IRelayGroupGCPPubSubOptions|null} [gcpPubsub] RelayOptions gcpPubsub - * @property {protos.opts.IRelayGroupKubeMQQueueOptions|null} [kubemqQueue] RelayOptions kubemqQueue - * @property {protos.opts.IRelayGroupRedisPubSubOptions|null} [redisPubsub] RelayOptions redisPubsub - * @property {protos.opts.IRelayGroupRedisStreamsOptions|null} [redisStreams] RelayOptions redisStreams - * @property {protos.opts.IRelayGroupPostgresOptions|null} [postgres] RelayOptions postgres - * @property {protos.opts.IRelayGroupNatsOptions|null} [nats] RelayOptions nats - * @property {protos.opts.IRelayGroupNatsStreamingOptions|null} [natsStreaming] RelayOptions natsStreaming - * @property {protos.opts.IRelayGroupNatsJetStreamOptions|null} [natsJetstream] RelayOptions natsJetstream - */ - - /** - * Constructs a new RelayOptions. - * @memberof protos.opts - * @classdesc Represents a RelayOptions. - * @implements IRelayOptions + * Properties of a GCPPubSubConn. + * @memberof protos.args + * @interface IGCPPubSubConn + * @property {string|null} [projectId] GCPPubSubConn projectId + * @property {string|null} [credentialsJson] GCPPubSubConn credentialsJson + * @property {string|null} [credentialsFile] GCPPubSubConn credentialsFile + */ + + /** + * Constructs a new GCPPubSubConn. + * @memberof protos.args + * @classdesc Represents a GCPPubSubConn. + * @implements IGCPPubSubConn * @constructor - * @param {protos.opts.IRelayOptions=} [properties] Properties to set + * @param {protos.args.IGCPPubSubConn=} [properties] Properties to set */ - function RelayOptions(properties) { + function GCPPubSubConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6053,439 +4398,101 @@ $root.protos = (function() { } /** - * RelayOptions collectionToken. - * @member {string} collectionToken - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.collectionToken = ""; - - /** - * RelayOptions batchSize. - * @member {number} batchSize - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.batchSize = 0; - - /** - * RelayOptions batchMaxRetry. - * @member {number} batchMaxRetry - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.batchMaxRetry = 0; - - /** - * RelayOptions connectionId. - * @member {string} connectionId - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.connectionId = ""; - - /** - * RelayOptions numWorkers. - * @member {number} numWorkers - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.numWorkers = 0; - - /** - * RelayOptions statsEnable. - * @member {boolean} statsEnable - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.statsEnable = false; - - /** - * RelayOptions statsReportIntervalSec. - * @member {number} statsReportIntervalSec - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.statsReportIntervalSec = 0; - - /** - * RelayOptions deadLetter. - * @member {boolean} deadLetter - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.deadLetter = false; - - /** - * RelayOptions _streamdalGrpcAddress. - * @member {string} _streamdalGrpcAddress - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype._streamdalGrpcAddress = ""; - - /** - * RelayOptions _streamdalGrpcDisableTls. - * @member {boolean} _streamdalGrpcDisableTls - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype._streamdalGrpcDisableTls = false; - - /** - * RelayOptions _streamdalGrpcTimeoutSeconds. - * @member {number} _streamdalGrpcTimeoutSeconds - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype._streamdalGrpcTimeoutSeconds = 0; - - /** - * RelayOptions _relayId. - * @member {string} _relayId - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype._relayId = ""; - - /** - * RelayOptions _cliOptions. - * @member {protos.opts.IRelayCLIOptions|null|undefined} _cliOptions - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype._cliOptions = null; - - /** - * RelayOptions _active. - * @member {boolean} _active - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype._active = false; - - /** - * RelayOptions kafka. - * @member {protos.opts.IRelayGroupKafkaOptions|null|undefined} kafka - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.kafka = null; - - /** - * RelayOptions awsSqs. - * @member {protos.opts.IRelayGroupAWSSQSOptions|null|undefined} awsSqs - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.awsSqs = null; - - /** - * RelayOptions mongo. - * @member {protos.opts.IRelayGroupMongoOptions|null|undefined} mongo - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.mongo = null; - - /** - * RelayOptions nsq. - * @member {protos.opts.IRelayGroupNSQOptions|null|undefined} nsq - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.nsq = null; - - /** - * RelayOptions rabbit. - * @member {protos.opts.IRelayGroupRabbitOptions|null|undefined} rabbit - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.rabbit = null; - - /** - * RelayOptions mqtt. - * @member {protos.opts.IRelayGroupMQTTOptions|null|undefined} mqtt - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.mqtt = null; - - /** - * RelayOptions azureServiceBus. - * @member {protos.opts.IRelayGroupAzureServiceBusOptions|null|undefined} azureServiceBus - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.azureServiceBus = null; - - /** - * RelayOptions gcpPubsub. - * @member {protos.opts.IRelayGroupGCPPubSubOptions|null|undefined} gcpPubsub - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.gcpPubsub = null; - - /** - * RelayOptions kubemqQueue. - * @member {protos.opts.IRelayGroupKubeMQQueueOptions|null|undefined} kubemqQueue - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.kubemqQueue = null; - - /** - * RelayOptions redisPubsub. - * @member {protos.opts.IRelayGroupRedisPubSubOptions|null|undefined} redisPubsub - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.redisPubsub = null; - - /** - * RelayOptions redisStreams. - * @member {protos.opts.IRelayGroupRedisStreamsOptions|null|undefined} redisStreams - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.redisStreams = null; - - /** - * RelayOptions postgres. - * @member {protos.opts.IRelayGroupPostgresOptions|null|undefined} postgres - * @memberof protos.opts.RelayOptions - * @instance - */ - RelayOptions.prototype.postgres = null; - - /** - * RelayOptions nats. - * @member {protos.opts.IRelayGroupNatsOptions|null|undefined} nats - * @memberof protos.opts.RelayOptions + * GCPPubSubConn projectId. + * @member {string} projectId + * @memberof protos.args.GCPPubSubConn * @instance */ - RelayOptions.prototype.nats = null; + GCPPubSubConn.prototype.projectId = ""; /** - * RelayOptions natsStreaming. - * @member {protos.opts.IRelayGroupNatsStreamingOptions|null|undefined} natsStreaming - * @memberof protos.opts.RelayOptions + * GCPPubSubConn credentialsJson. + * @member {string} credentialsJson + * @memberof protos.args.GCPPubSubConn * @instance */ - RelayOptions.prototype.natsStreaming = null; + GCPPubSubConn.prototype.credentialsJson = ""; /** - * RelayOptions natsJetstream. - * @member {protos.opts.IRelayGroupNatsJetStreamOptions|null|undefined} natsJetstream - * @memberof protos.opts.RelayOptions + * GCPPubSubConn credentialsFile. + * @member {string} credentialsFile + * @memberof protos.args.GCPPubSubConn * @instance */ - RelayOptions.prototype.natsJetstream = null; + GCPPubSubConn.prototype.credentialsFile = ""; /** - * Creates a new RelayOptions instance using the specified properties. + * Creates a new GCPPubSubConn instance using the specified properties. * @function create - * @memberof protos.opts.RelayOptions + * @memberof protos.args.GCPPubSubConn * @static - * @param {protos.opts.IRelayOptions=} [properties] Properties to set - * @returns {protos.opts.RelayOptions} RelayOptions instance + * @param {protos.args.IGCPPubSubConn=} [properties] Properties to set + * @returns {protos.args.GCPPubSubConn} GCPPubSubConn instance */ - RelayOptions.create = function create(properties) { - return new RelayOptions(properties); + GCPPubSubConn.create = function create(properties) { + return new GCPPubSubConn(properties); }; /** - * Encodes the specified RelayOptions message. Does not implicitly {@link protos.opts.RelayOptions.verify|verify} messages. + * Encodes the specified GCPPubSubConn message. Does not implicitly {@link protos.args.GCPPubSubConn.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayOptions + * @memberof protos.args.GCPPubSubConn * @static - * @param {protos.opts.IRelayOptions} message RelayOptions message or plain object to encode + * @param {protos.args.IGCPPubSubConn} message GCPPubSubConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayOptions.encode = function encode(message, writer) { + GCPPubSubConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.collectionToken != null && Object.hasOwnProperty.call(message, "collectionToken")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.collectionToken); - if (message.batchSize != null && Object.hasOwnProperty.call(message, "batchSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.batchSize); - if (message.batchMaxRetry != null && Object.hasOwnProperty.call(message, "batchMaxRetry")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.batchMaxRetry); - if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.connectionId); - if (message.numWorkers != null && Object.hasOwnProperty.call(message, "numWorkers")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.numWorkers); - if (message.statsEnable != null && Object.hasOwnProperty.call(message, "statsEnable")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.statsEnable); - if (message.statsReportIntervalSec != null && Object.hasOwnProperty.call(message, "statsReportIntervalSec")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.statsReportIntervalSec); - if (message.deadLetter != null && Object.hasOwnProperty.call(message, "deadLetter")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.deadLetter); - if (message.kafka != null && Object.hasOwnProperty.call(message, "kafka")) - $root.protos.opts.RelayGroupKafkaOptions.encode(message.kafka, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); - if (message.awsSqs != null && Object.hasOwnProperty.call(message, "awsSqs")) - $root.protos.opts.RelayGroupAWSSQSOptions.encode(message.awsSqs, writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); - if (message.mongo != null && Object.hasOwnProperty.call(message, "mongo")) - $root.protos.opts.RelayGroupMongoOptions.encode(message.mongo, writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim(); - if (message.nsq != null && Object.hasOwnProperty.call(message, "nsq")) - $root.protos.opts.RelayGroupNSQOptions.encode(message.nsq, writer.uint32(/* id 103, wireType 2 =*/826).fork()).ldelim(); - if (message.rabbit != null && Object.hasOwnProperty.call(message, "rabbit")) - $root.protos.opts.RelayGroupRabbitOptions.encode(message.rabbit, writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim(); - if (message.mqtt != null && Object.hasOwnProperty.call(message, "mqtt")) - $root.protos.opts.RelayGroupMQTTOptions.encode(message.mqtt, writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); - if (message.azureServiceBus != null && Object.hasOwnProperty.call(message, "azureServiceBus")) - $root.protos.opts.RelayGroupAzureServiceBusOptions.encode(message.azureServiceBus, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim(); - if (message.gcpPubsub != null && Object.hasOwnProperty.call(message, "gcpPubsub")) - $root.protos.opts.RelayGroupGCPPubSubOptions.encode(message.gcpPubsub, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); - if (message.kubemqQueue != null && Object.hasOwnProperty.call(message, "kubemqQueue")) - $root.protos.opts.RelayGroupKubeMQQueueOptions.encode(message.kubemqQueue, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim(); - if (message.redisPubsub != null && Object.hasOwnProperty.call(message, "redisPubsub")) - $root.protos.opts.RelayGroupRedisPubSubOptions.encode(message.redisPubsub, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); - if (message.redisStreams != null && Object.hasOwnProperty.call(message, "redisStreams")) - $root.protos.opts.RelayGroupRedisStreamsOptions.encode(message.redisStreams, writer.uint32(/* id 111, wireType 2 =*/890).fork()).ldelim(); - if (message.postgres != null && Object.hasOwnProperty.call(message, "postgres")) - $root.protos.opts.RelayGroupPostgresOptions.encode(message.postgres, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim(); - if (message.nats != null && Object.hasOwnProperty.call(message, "nats")) - $root.protos.opts.RelayGroupNatsOptions.encode(message.nats, writer.uint32(/* id 113, wireType 2 =*/906).fork()).ldelim(); - if (message.natsStreaming != null && Object.hasOwnProperty.call(message, "natsStreaming")) - $root.protos.opts.RelayGroupNatsStreamingOptions.encode(message.natsStreaming, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); - if (message.natsJetstream != null && Object.hasOwnProperty.call(message, "natsJetstream")) - $root.protos.opts.RelayGroupNatsJetStreamOptions.encode(message.natsJetstream, writer.uint32(/* id 115, wireType 2 =*/922).fork()).ldelim(); - if (message._streamdalGrpcAddress != null && Object.hasOwnProperty.call(message, "_streamdalGrpcAddress")) - writer.uint32(/* id 1000, wireType 2 =*/8002).string(message._streamdalGrpcAddress); - if (message._streamdalGrpcDisableTls != null && Object.hasOwnProperty.call(message, "_streamdalGrpcDisableTls")) - writer.uint32(/* id 1001, wireType 0 =*/8008).bool(message._streamdalGrpcDisableTls); - if (message._streamdalGrpcTimeoutSeconds != null && Object.hasOwnProperty.call(message, "_streamdalGrpcTimeoutSeconds")) - writer.uint32(/* id 1002, wireType 0 =*/8016).int32(message._streamdalGrpcTimeoutSeconds); - if (message._relayId != null && Object.hasOwnProperty.call(message, "_relayId")) - writer.uint32(/* id 1003, wireType 2 =*/8026).string(message._relayId); - if (message._cliOptions != null && Object.hasOwnProperty.call(message, "_cliOptions")) - $root.protos.opts.RelayCLIOptions.encode(message._cliOptions, writer.uint32(/* id 1004, wireType 2 =*/8034).fork()).ldelim(); - if (message._active != null && Object.hasOwnProperty.call(message, "_active")) - writer.uint32(/* id 1005, wireType 0 =*/8040).bool(message._active); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.credentialsJson != null && Object.hasOwnProperty.call(message, "credentialsJson")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.credentialsJson); + if (message.credentialsFile != null && Object.hasOwnProperty.call(message, "credentialsFile")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.credentialsFile); return writer; }; /** - * Encodes the specified RelayOptions message, length delimited. Does not implicitly {@link protos.opts.RelayOptions.verify|verify} messages. + * Encodes the specified GCPPubSubConn message, length delimited. Does not implicitly {@link protos.args.GCPPubSubConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayOptions + * @memberof protos.args.GCPPubSubConn * @static - * @param {protos.opts.IRelayOptions} message RelayOptions message or plain object to encode + * @param {protos.args.IGCPPubSubConn} message GCPPubSubConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayOptions.encodeDelimited = function encodeDelimited(message, writer) { + GCPPubSubConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayOptions message from the specified reader or buffer. + * Decodes a GCPPubSubConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayOptions + * @memberof protos.args.GCPPubSubConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayOptions} RelayOptions + * @returns {protos.args.GCPPubSubConn} GCPPubSubConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayOptions.decode = function decode(reader, length) { + GCPPubSubConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.GCPPubSubConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.collectionToken = reader.string(); + message.projectId = reader.string(); break; case 2: - message.batchSize = reader.int32(); + message.credentialsJson = reader.string(); break; case 3: - message.batchMaxRetry = reader.int32(); - break; - case 4: - message.connectionId = reader.string(); - break; - case 5: - message.numWorkers = reader.int32(); - break; - case 6: - message.statsEnable = reader.bool(); - break; - case 7: - message.statsReportIntervalSec = reader.int32(); - break; - case 8: - message.deadLetter = reader.bool(); - break; - case 1000: - message._streamdalGrpcAddress = reader.string(); - break; - case 1001: - message._streamdalGrpcDisableTls = reader.bool(); - break; - case 1002: - message._streamdalGrpcTimeoutSeconds = reader.int32(); - break; - case 1003: - message._relayId = reader.string(); - break; - case 1004: - message._cliOptions = $root.protos.opts.RelayCLIOptions.decode(reader, reader.uint32()); - break; - case 1005: - message._active = reader.bool(); - break; - case 100: - message.kafka = $root.protos.opts.RelayGroupKafkaOptions.decode(reader, reader.uint32()); - break; - case 101: - message.awsSqs = $root.protos.opts.RelayGroupAWSSQSOptions.decode(reader, reader.uint32()); - break; - case 102: - message.mongo = $root.protos.opts.RelayGroupMongoOptions.decode(reader, reader.uint32()); - break; - case 103: - message.nsq = $root.protos.opts.RelayGroupNSQOptions.decode(reader, reader.uint32()); - break; - case 104: - message.rabbit = $root.protos.opts.RelayGroupRabbitOptions.decode(reader, reader.uint32()); - break; - case 105: - message.mqtt = $root.protos.opts.RelayGroupMQTTOptions.decode(reader, reader.uint32()); - break; - case 106: - message.azureServiceBus = $root.protos.opts.RelayGroupAzureServiceBusOptions.decode(reader, reader.uint32()); - break; - case 107: - message.gcpPubsub = $root.protos.opts.RelayGroupGCPPubSubOptions.decode(reader, reader.uint32()); - break; - case 108: - message.kubemqQueue = $root.protos.opts.RelayGroupKubeMQQueueOptions.decode(reader, reader.uint32()); - break; - case 109: - message.redisPubsub = $root.protos.opts.RelayGroupRedisPubSubOptions.decode(reader, reader.uint32()); - break; - case 111: - message.redisStreams = $root.protos.opts.RelayGroupRedisStreamsOptions.decode(reader, reader.uint32()); - break; - case 112: - message.postgres = $root.protos.opts.RelayGroupPostgresOptions.decode(reader, reader.uint32()); - break; - case 113: - message.nats = $root.protos.opts.RelayGroupNatsOptions.decode(reader, reader.uint32()); - break; - case 114: - message.natsStreaming = $root.protos.opts.RelayGroupNatsStreamingOptions.decode(reader, reader.uint32()); - break; - case 115: - message.natsJetstream = $root.protos.opts.RelayGroupNatsJetStreamOptions.decode(reader, reader.uint32()); + message.credentialsFile = reader.string(); break; default: reader.skipType(tag & 7); @@ -6496,413 +4503,125 @@ $root.protos = (function() { }; /** - * Decodes a RelayOptions message from the specified reader or buffer, length delimited. + * Decodes a GCPPubSubConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayOptions + * @memberof protos.args.GCPPubSubConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayOptions} RelayOptions + * @returns {protos.args.GCPPubSubConn} GCPPubSubConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayOptions.decodeDelimited = function decodeDelimited(reader) { + GCPPubSubConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayOptions message. + * Verifies a GCPPubSubConn message. * @function verify - * @memberof protos.opts.RelayOptions + * @memberof protos.args.GCPPubSubConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayOptions.verify = function verify(message) { + GCPPubSubConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.collectionToken != null && message.hasOwnProperty("collectionToken")) - if (!$util.isString(message.collectionToken)) - return "collectionToken: string expected"; - if (message.batchSize != null && message.hasOwnProperty("batchSize")) - if (!$util.isInteger(message.batchSize)) - return "batchSize: integer expected"; - if (message.batchMaxRetry != null && message.hasOwnProperty("batchMaxRetry")) - if (!$util.isInteger(message.batchMaxRetry)) - return "batchMaxRetry: integer expected"; - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - if (!$util.isString(message.connectionId)) - return "connectionId: string expected"; - if (message.numWorkers != null && message.hasOwnProperty("numWorkers")) - if (!$util.isInteger(message.numWorkers)) - return "numWorkers: integer expected"; - if (message.statsEnable != null && message.hasOwnProperty("statsEnable")) - if (typeof message.statsEnable !== "boolean") - return "statsEnable: boolean expected"; - if (message.statsReportIntervalSec != null && message.hasOwnProperty("statsReportIntervalSec")) - if (!$util.isInteger(message.statsReportIntervalSec)) - return "statsReportIntervalSec: integer expected"; - if (message.deadLetter != null && message.hasOwnProperty("deadLetter")) - if (typeof message.deadLetter !== "boolean") - return "deadLetter: boolean expected"; - if (message._streamdalGrpcAddress != null && message.hasOwnProperty("_streamdalGrpcAddress")) - if (!$util.isString(message._streamdalGrpcAddress)) - return "_streamdalGrpcAddress: string expected"; - if (message._streamdalGrpcDisableTls != null && message.hasOwnProperty("_streamdalGrpcDisableTls")) - if (typeof message._streamdalGrpcDisableTls !== "boolean") - return "_streamdalGrpcDisableTls: boolean expected"; - if (message._streamdalGrpcTimeoutSeconds != null && message.hasOwnProperty("_streamdalGrpcTimeoutSeconds")) - if (!$util.isInteger(message._streamdalGrpcTimeoutSeconds)) - return "_streamdalGrpcTimeoutSeconds: integer expected"; - if (message._relayId != null && message.hasOwnProperty("_relayId")) - if (!$util.isString(message._relayId)) - return "_relayId: string expected"; - if (message._cliOptions != null && message.hasOwnProperty("_cliOptions")) { - var error = $root.protos.opts.RelayCLIOptions.verify(message._cliOptions); - if (error) - return "_cliOptions." + error; - } - if (message._active != null && message.hasOwnProperty("_active")) - if (typeof message._active !== "boolean") - return "_active: boolean expected"; - if (message.kafka != null && message.hasOwnProperty("kafka")) { - var error = $root.protos.opts.RelayGroupKafkaOptions.verify(message.kafka); - if (error) - return "kafka." + error; - } - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) { - var error = $root.protos.opts.RelayGroupAWSSQSOptions.verify(message.awsSqs); - if (error) - return "awsSqs." + error; - } - if (message.mongo != null && message.hasOwnProperty("mongo")) { - var error = $root.protos.opts.RelayGroupMongoOptions.verify(message.mongo); - if (error) - return "mongo." + error; - } - if (message.nsq != null && message.hasOwnProperty("nsq")) { - var error = $root.protos.opts.RelayGroupNSQOptions.verify(message.nsq); - if (error) - return "nsq." + error; - } - if (message.rabbit != null && message.hasOwnProperty("rabbit")) { - var error = $root.protos.opts.RelayGroupRabbitOptions.verify(message.rabbit); - if (error) - return "rabbit." + error; - } - if (message.mqtt != null && message.hasOwnProperty("mqtt")) { - var error = $root.protos.opts.RelayGroupMQTTOptions.verify(message.mqtt); - if (error) - return "mqtt." + error; - } - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) { - var error = $root.protos.opts.RelayGroupAzureServiceBusOptions.verify(message.azureServiceBus); - if (error) - return "azureServiceBus." + error; - } - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) { - var error = $root.protos.opts.RelayGroupGCPPubSubOptions.verify(message.gcpPubsub); - if (error) - return "gcpPubsub." + error; - } - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) { - var error = $root.protos.opts.RelayGroupKubeMQQueueOptions.verify(message.kubemqQueue); - if (error) - return "kubemqQueue." + error; - } - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) { - var error = $root.protos.opts.RelayGroupRedisPubSubOptions.verify(message.redisPubsub); - if (error) - return "redisPubsub." + error; - } - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) { - var error = $root.protos.opts.RelayGroupRedisStreamsOptions.verify(message.redisStreams); - if (error) - return "redisStreams." + error; - } - if (message.postgres != null && message.hasOwnProperty("postgres")) { - var error = $root.protos.opts.RelayGroupPostgresOptions.verify(message.postgres); - if (error) - return "postgres." + error; - } - if (message.nats != null && message.hasOwnProperty("nats")) { - var error = $root.protos.opts.RelayGroupNatsOptions.verify(message.nats); - if (error) - return "nats." + error; - } - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) { - var error = $root.protos.opts.RelayGroupNatsStreamingOptions.verify(message.natsStreaming); - if (error) - return "natsStreaming." + error; - } - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) { - var error = $root.protos.opts.RelayGroupNatsJetStreamOptions.verify(message.natsJetstream); - if (error) - return "natsJetstream." + error; - } + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.credentialsJson != null && message.hasOwnProperty("credentialsJson")) + if (!$util.isString(message.credentialsJson)) + return "credentialsJson: string expected"; + if (message.credentialsFile != null && message.hasOwnProperty("credentialsFile")) + if (!$util.isString(message.credentialsFile)) + return "credentialsFile: string expected"; return null; }; /** - * Creates a RelayOptions message from a plain object. Also converts values to their respective internal types. + * Creates a GCPPubSubConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayOptions + * @memberof protos.args.GCPPubSubConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayOptions} RelayOptions + * @returns {protos.args.GCPPubSubConn} GCPPubSubConn */ - RelayOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayOptions) + GCPPubSubConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.GCPPubSubConn) return object; - var message = new $root.protos.opts.RelayOptions(); - if (object.collectionToken != null) - message.collectionToken = String(object.collectionToken); - if (object.batchSize != null) - message.batchSize = object.batchSize | 0; - if (object.batchMaxRetry != null) - message.batchMaxRetry = object.batchMaxRetry | 0; - if (object.connectionId != null) - message.connectionId = String(object.connectionId); - if (object.numWorkers != null) - message.numWorkers = object.numWorkers | 0; - if (object.statsEnable != null) - message.statsEnable = Boolean(object.statsEnable); - if (object.statsReportIntervalSec != null) - message.statsReportIntervalSec = object.statsReportIntervalSec | 0; - if (object.deadLetter != null) - message.deadLetter = Boolean(object.deadLetter); - if (object._streamdalGrpcAddress != null) - message._streamdalGrpcAddress = String(object._streamdalGrpcAddress); - if (object._streamdalGrpcDisableTls != null) - message._streamdalGrpcDisableTls = Boolean(object._streamdalGrpcDisableTls); - if (object._streamdalGrpcTimeoutSeconds != null) - message._streamdalGrpcTimeoutSeconds = object._streamdalGrpcTimeoutSeconds | 0; - if (object._relayId != null) - message._relayId = String(object._relayId); - if (object._cliOptions != null) { - if (typeof object._cliOptions !== "object") - throw TypeError(".protos.opts.RelayOptions._cliOptions: object expected"); - message._cliOptions = $root.protos.opts.RelayCLIOptions.fromObject(object._cliOptions); - } - if (object._active != null) - message._active = Boolean(object._active); - if (object.kafka != null) { - if (typeof object.kafka !== "object") - throw TypeError(".protos.opts.RelayOptions.kafka: object expected"); - message.kafka = $root.protos.opts.RelayGroupKafkaOptions.fromObject(object.kafka); - } - if (object.awsSqs != null) { - if (typeof object.awsSqs !== "object") - throw TypeError(".protos.opts.RelayOptions.awsSqs: object expected"); - message.awsSqs = $root.protos.opts.RelayGroupAWSSQSOptions.fromObject(object.awsSqs); - } - if (object.mongo != null) { - if (typeof object.mongo !== "object") - throw TypeError(".protos.opts.RelayOptions.mongo: object expected"); - message.mongo = $root.protos.opts.RelayGroupMongoOptions.fromObject(object.mongo); - } - if (object.nsq != null) { - if (typeof object.nsq !== "object") - throw TypeError(".protos.opts.RelayOptions.nsq: object expected"); - message.nsq = $root.protos.opts.RelayGroupNSQOptions.fromObject(object.nsq); - } - if (object.rabbit != null) { - if (typeof object.rabbit !== "object") - throw TypeError(".protos.opts.RelayOptions.rabbit: object expected"); - message.rabbit = $root.protos.opts.RelayGroupRabbitOptions.fromObject(object.rabbit); - } - if (object.mqtt != null) { - if (typeof object.mqtt !== "object") - throw TypeError(".protos.opts.RelayOptions.mqtt: object expected"); - message.mqtt = $root.protos.opts.RelayGroupMQTTOptions.fromObject(object.mqtt); - } - if (object.azureServiceBus != null) { - if (typeof object.azureServiceBus !== "object") - throw TypeError(".protos.opts.RelayOptions.azureServiceBus: object expected"); - message.azureServiceBus = $root.protos.opts.RelayGroupAzureServiceBusOptions.fromObject(object.azureServiceBus); - } - if (object.gcpPubsub != null) { - if (typeof object.gcpPubsub !== "object") - throw TypeError(".protos.opts.RelayOptions.gcpPubsub: object expected"); - message.gcpPubsub = $root.protos.opts.RelayGroupGCPPubSubOptions.fromObject(object.gcpPubsub); - } - if (object.kubemqQueue != null) { - if (typeof object.kubemqQueue !== "object") - throw TypeError(".protos.opts.RelayOptions.kubemqQueue: object expected"); - message.kubemqQueue = $root.protos.opts.RelayGroupKubeMQQueueOptions.fromObject(object.kubemqQueue); - } - if (object.redisPubsub != null) { - if (typeof object.redisPubsub !== "object") - throw TypeError(".protos.opts.RelayOptions.redisPubsub: object expected"); - message.redisPubsub = $root.protos.opts.RelayGroupRedisPubSubOptions.fromObject(object.redisPubsub); - } - if (object.redisStreams != null) { - if (typeof object.redisStreams !== "object") - throw TypeError(".protos.opts.RelayOptions.redisStreams: object expected"); - message.redisStreams = $root.protos.opts.RelayGroupRedisStreamsOptions.fromObject(object.redisStreams); - } - if (object.postgres != null) { - if (typeof object.postgres !== "object") - throw TypeError(".protos.opts.RelayOptions.postgres: object expected"); - message.postgres = $root.protos.opts.RelayGroupPostgresOptions.fromObject(object.postgres); - } - if (object.nats != null) { - if (typeof object.nats !== "object") - throw TypeError(".protos.opts.RelayOptions.nats: object expected"); - message.nats = $root.protos.opts.RelayGroupNatsOptions.fromObject(object.nats); - } - if (object.natsStreaming != null) { - if (typeof object.natsStreaming !== "object") - throw TypeError(".protos.opts.RelayOptions.natsStreaming: object expected"); - message.natsStreaming = $root.protos.opts.RelayGroupNatsStreamingOptions.fromObject(object.natsStreaming); - } - if (object.natsJetstream != null) { - if (typeof object.natsJetstream !== "object") - throw TypeError(".protos.opts.RelayOptions.natsJetstream: object expected"); - message.natsJetstream = $root.protos.opts.RelayGroupNatsJetStreamOptions.fromObject(object.natsJetstream); - } + var message = new $root.protos.args.GCPPubSubConn(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.credentialsJson != null) + message.credentialsJson = String(object.credentialsJson); + if (object.credentialsFile != null) + message.credentialsFile = String(object.credentialsFile); return message; }; /** - * Creates a plain object from a RelayOptions message. Also converts values to other types if specified. + * Creates a plain object from a GCPPubSubConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayOptions + * @memberof protos.args.GCPPubSubConn * @static - * @param {protos.opts.RelayOptions} message RelayOptions + * @param {protos.args.GCPPubSubConn} message GCPPubSubConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayOptions.toObject = function toObject(message, options) { + GCPPubSubConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.collectionToken = ""; - object.batchSize = 0; - object.batchMaxRetry = 0; - object.connectionId = ""; - object.numWorkers = 0; - object.statsEnable = false; - object.statsReportIntervalSec = 0; - object.deadLetter = false; - object.kafka = null; - object.awsSqs = null; - object.mongo = null; - object.nsq = null; - object.rabbit = null; - object.mqtt = null; - object.azureServiceBus = null; - object.gcpPubsub = null; - object.kubemqQueue = null; - object.redisPubsub = null; - object.redisStreams = null; - object.postgres = null; - object.nats = null; - object.natsStreaming = null; - object.natsJetstream = null; - object._streamdalGrpcAddress = ""; - object._streamdalGrpcDisableTls = false; - object._streamdalGrpcTimeoutSeconds = 0; - object._relayId = ""; - object._cliOptions = null; - object._active = false; + object.projectId = ""; + object.credentialsJson = ""; + object.credentialsFile = ""; } - if (message.collectionToken != null && message.hasOwnProperty("collectionToken")) - object.collectionToken = message.collectionToken; - if (message.batchSize != null && message.hasOwnProperty("batchSize")) - object.batchSize = message.batchSize; - if (message.batchMaxRetry != null && message.hasOwnProperty("batchMaxRetry")) - object.batchMaxRetry = message.batchMaxRetry; - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - object.connectionId = message.connectionId; - if (message.numWorkers != null && message.hasOwnProperty("numWorkers")) - object.numWorkers = message.numWorkers; - if (message.statsEnable != null && message.hasOwnProperty("statsEnable")) - object.statsEnable = message.statsEnable; - if (message.statsReportIntervalSec != null && message.hasOwnProperty("statsReportIntervalSec")) - object.statsReportIntervalSec = message.statsReportIntervalSec; - if (message.deadLetter != null && message.hasOwnProperty("deadLetter")) - object.deadLetter = message.deadLetter; - if (message.kafka != null && message.hasOwnProperty("kafka")) - object.kafka = $root.protos.opts.RelayGroupKafkaOptions.toObject(message.kafka, options); - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) - object.awsSqs = $root.protos.opts.RelayGroupAWSSQSOptions.toObject(message.awsSqs, options); - if (message.mongo != null && message.hasOwnProperty("mongo")) - object.mongo = $root.protos.opts.RelayGroupMongoOptions.toObject(message.mongo, options); - if (message.nsq != null && message.hasOwnProperty("nsq")) - object.nsq = $root.protos.opts.RelayGroupNSQOptions.toObject(message.nsq, options); - if (message.rabbit != null && message.hasOwnProperty("rabbit")) - object.rabbit = $root.protos.opts.RelayGroupRabbitOptions.toObject(message.rabbit, options); - if (message.mqtt != null && message.hasOwnProperty("mqtt")) - object.mqtt = $root.protos.opts.RelayGroupMQTTOptions.toObject(message.mqtt, options); - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) - object.azureServiceBus = $root.protos.opts.RelayGroupAzureServiceBusOptions.toObject(message.azureServiceBus, options); - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) - object.gcpPubsub = $root.protos.opts.RelayGroupGCPPubSubOptions.toObject(message.gcpPubsub, options); - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) - object.kubemqQueue = $root.protos.opts.RelayGroupKubeMQQueueOptions.toObject(message.kubemqQueue, options); - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) - object.redisPubsub = $root.protos.opts.RelayGroupRedisPubSubOptions.toObject(message.redisPubsub, options); - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) - object.redisStreams = $root.protos.opts.RelayGroupRedisStreamsOptions.toObject(message.redisStreams, options); - if (message.postgres != null && message.hasOwnProperty("postgres")) - object.postgres = $root.protos.opts.RelayGroupPostgresOptions.toObject(message.postgres, options); - if (message.nats != null && message.hasOwnProperty("nats")) - object.nats = $root.protos.opts.RelayGroupNatsOptions.toObject(message.nats, options); - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) - object.natsStreaming = $root.protos.opts.RelayGroupNatsStreamingOptions.toObject(message.natsStreaming, options); - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) - object.natsJetstream = $root.protos.opts.RelayGroupNatsJetStreamOptions.toObject(message.natsJetstream, options); - if (message._streamdalGrpcAddress != null && message.hasOwnProperty("_streamdalGrpcAddress")) - object._streamdalGrpcAddress = message._streamdalGrpcAddress; - if (message._streamdalGrpcDisableTls != null && message.hasOwnProperty("_streamdalGrpcDisableTls")) - object._streamdalGrpcDisableTls = message._streamdalGrpcDisableTls; - if (message._streamdalGrpcTimeoutSeconds != null && message.hasOwnProperty("_streamdalGrpcTimeoutSeconds")) - object._streamdalGrpcTimeoutSeconds = message._streamdalGrpcTimeoutSeconds; - if (message._relayId != null && message.hasOwnProperty("_relayId")) - object._relayId = message._relayId; - if (message._cliOptions != null && message.hasOwnProperty("_cliOptions")) - object._cliOptions = $root.protos.opts.RelayCLIOptions.toObject(message._cliOptions, options); - if (message._active != null && message.hasOwnProperty("_active")) - object._active = message._active; + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.credentialsJson != null && message.hasOwnProperty("credentialsJson")) + object.credentialsJson = message.credentialsJson; + if (message.credentialsFile != null && message.hasOwnProperty("credentialsFile")) + object.credentialsFile = message.credentialsFile; return object; }; /** - * Converts this RelayOptions to JSON. + * Converts this GCPPubSubConn to JSON. * @function toJSON - * @memberof protos.opts.RelayOptions + * @memberof protos.args.GCPPubSubConn * @instance * @returns {Object.} JSON object */ - RelayOptions.prototype.toJSON = function toJSON() { + GCPPubSubConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayOptions; + return GCPPubSubConn; })(); - opts.RelayGroupKafkaOptions = (function() { + args.GCPPubSubReadArgs = (function() { /** - * Properties of a RelayGroupKafkaOptions. - * @memberof protos.opts - * @interface IRelayGroupKafkaOptions - * @property {protos.args.IKafkaConn|null} [_conn] RelayGroupKafkaOptions _conn - * @property {protos.args.IKafkaRelayArgs|null} [args] RelayGroupKafkaOptions args + * Properties of a GCPPubSubReadArgs. + * @memberof protos.args + * @interface IGCPPubSubReadArgs + * @property {string|null} [subscriptionId] GCPPubSubReadArgs subscriptionId + * @property {boolean|null} [ackMessages] GCPPubSubReadArgs ackMessages */ /** - * Constructs a new RelayGroupKafkaOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupKafkaOptions. - * @implements IRelayGroupKafkaOptions + * Constructs a new GCPPubSubReadArgs. + * @memberof protos.args + * @classdesc Represents a GCPPubSubReadArgs. + * @implements IGCPPubSubReadArgs * @constructor - * @param {protos.opts.IRelayGroupKafkaOptions=} [properties] Properties to set + * @param {protos.args.IGCPPubSubReadArgs=} [properties] Properties to set */ - function RelayGroupKafkaOptions(properties) { + function GCPPubSubReadArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6910,88 +4629,88 @@ $root.protos = (function() { } /** - * RelayGroupKafkaOptions _conn. - * @member {protos.args.IKafkaConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupKafkaOptions + * GCPPubSubReadArgs subscriptionId. + * @member {string} subscriptionId + * @memberof protos.args.GCPPubSubReadArgs * @instance */ - RelayGroupKafkaOptions.prototype._conn = null; + GCPPubSubReadArgs.prototype.subscriptionId = ""; /** - * RelayGroupKafkaOptions args. - * @member {protos.args.IKafkaRelayArgs|null|undefined} args - * @memberof protos.opts.RelayGroupKafkaOptions + * GCPPubSubReadArgs ackMessages. + * @member {boolean} ackMessages + * @memberof protos.args.GCPPubSubReadArgs * @instance */ - RelayGroupKafkaOptions.prototype.args = null; + GCPPubSubReadArgs.prototype.ackMessages = false; /** - * Creates a new RelayGroupKafkaOptions instance using the specified properties. + * Creates a new GCPPubSubReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupKafkaOptions + * @memberof protos.args.GCPPubSubReadArgs * @static - * @param {protos.opts.IRelayGroupKafkaOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupKafkaOptions} RelayGroupKafkaOptions instance + * @param {protos.args.IGCPPubSubReadArgs=} [properties] Properties to set + * @returns {protos.args.GCPPubSubReadArgs} GCPPubSubReadArgs instance */ - RelayGroupKafkaOptions.create = function create(properties) { - return new RelayGroupKafkaOptions(properties); + GCPPubSubReadArgs.create = function create(properties) { + return new GCPPubSubReadArgs(properties); }; /** - * Encodes the specified RelayGroupKafkaOptions message. Does not implicitly {@link protos.opts.RelayGroupKafkaOptions.verify|verify} messages. + * Encodes the specified GCPPubSubReadArgs message. Does not implicitly {@link protos.args.GCPPubSubReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupKafkaOptions + * @memberof protos.args.GCPPubSubReadArgs * @static - * @param {protos.opts.IRelayGroupKafkaOptions} message RelayGroupKafkaOptions message or plain object to encode + * @param {protos.args.IGCPPubSubReadArgs} message GCPPubSubReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupKafkaOptions.encode = function encode(message, writer) { + GCPPubSubReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.KafkaConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.KafkaRelayArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.subscriptionId != null && Object.hasOwnProperty.call(message, "subscriptionId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.subscriptionId); + if (message.ackMessages != null && Object.hasOwnProperty.call(message, "ackMessages")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.ackMessages); return writer; }; /** - * Encodes the specified RelayGroupKafkaOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupKafkaOptions.verify|verify} messages. + * Encodes the specified GCPPubSubReadArgs message, length delimited. Does not implicitly {@link protos.args.GCPPubSubReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupKafkaOptions + * @memberof protos.args.GCPPubSubReadArgs * @static - * @param {protos.opts.IRelayGroupKafkaOptions} message RelayGroupKafkaOptions message or plain object to encode + * @param {protos.args.IGCPPubSubReadArgs} message GCPPubSubReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupKafkaOptions.encodeDelimited = function encodeDelimited(message, writer) { + GCPPubSubReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupKafkaOptions message from the specified reader or buffer. + * Decodes a GCPPubSubReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupKafkaOptions + * @memberof protos.args.GCPPubSubReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupKafkaOptions} RelayGroupKafkaOptions + * @returns {protos.args.GCPPubSubReadArgs} GCPPubSubReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupKafkaOptions.decode = function decode(reader, length) { + GCPPubSubReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupKafkaOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.GCPPubSubReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.KafkaConn.decode(reader, reader.uint32()); + message.subscriptionId = reader.string(); break; case 2: - message.args = $root.protos.args.KafkaRelayArgs.decode(reader, reader.uint32()); + message.ackMessages = reader.bool(); break; default: reader.skipType(tag & 7); @@ -7002,127 +4721,116 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupKafkaOptions message from the specified reader or buffer, length delimited. + * Decodes a GCPPubSubReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupKafkaOptions + * @memberof protos.args.GCPPubSubReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupKafkaOptions} RelayGroupKafkaOptions + * @returns {protos.args.GCPPubSubReadArgs} GCPPubSubReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupKafkaOptions.decodeDelimited = function decodeDelimited(reader) { + GCPPubSubReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupKafkaOptions message. + * Verifies a GCPPubSubReadArgs message. * @function verify - * @memberof protos.opts.RelayGroupKafkaOptions + * @memberof protos.args.GCPPubSubReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupKafkaOptions.verify = function verify(message) { + GCPPubSubReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.KafkaConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.KafkaRelayArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.subscriptionId != null && message.hasOwnProperty("subscriptionId")) + if (!$util.isString(message.subscriptionId)) + return "subscriptionId: string expected"; + if (message.ackMessages != null && message.hasOwnProperty("ackMessages")) + if (typeof message.ackMessages !== "boolean") + return "ackMessages: boolean expected"; return null; }; /** - * Creates a RelayGroupKafkaOptions message from a plain object. Also converts values to their respective internal types. + * Creates a GCPPubSubReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupKafkaOptions + * @memberof protos.args.GCPPubSubReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupKafkaOptions} RelayGroupKafkaOptions + * @returns {protos.args.GCPPubSubReadArgs} GCPPubSubReadArgs */ - RelayGroupKafkaOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupKafkaOptions) + GCPPubSubReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.GCPPubSubReadArgs) return object; - var message = new $root.protos.opts.RelayGroupKafkaOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupKafkaOptions._conn: object expected"); - message._conn = $root.protos.args.KafkaConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupKafkaOptions.args: object expected"); - message.args = $root.protos.args.KafkaRelayArgs.fromObject(object.args); - } + var message = new $root.protos.args.GCPPubSubReadArgs(); + if (object.subscriptionId != null) + message.subscriptionId = String(object.subscriptionId); + if (object.ackMessages != null) + message.ackMessages = Boolean(object.ackMessages); return message; }; /** - * Creates a plain object from a RelayGroupKafkaOptions message. Also converts values to other types if specified. + * Creates a plain object from a GCPPubSubReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupKafkaOptions + * @memberof protos.args.GCPPubSubReadArgs * @static - * @param {protos.opts.RelayGroupKafkaOptions} message RelayGroupKafkaOptions + * @param {protos.args.GCPPubSubReadArgs} message GCPPubSubReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupKafkaOptions.toObject = function toObject(message, options) { + GCPPubSubReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.subscriptionId = ""; + object.ackMessages = false; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.KafkaConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.KafkaRelayArgs.toObject(message.args, options); + if (message.subscriptionId != null && message.hasOwnProperty("subscriptionId")) + object.subscriptionId = message.subscriptionId; + if (message.ackMessages != null && message.hasOwnProperty("ackMessages")) + object.ackMessages = message.ackMessages; return object; }; /** - * Converts this RelayGroupKafkaOptions to JSON. + * Converts this GCPPubSubReadArgs to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupKafkaOptions + * @memberof protos.args.GCPPubSubReadArgs * @instance * @returns {Object.} JSON object */ - RelayGroupKafkaOptions.prototype.toJSON = function toJSON() { + GCPPubSubReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupKafkaOptions; + return GCPPubSubReadArgs; })(); - opts.RelayGroupAWSSQSOptions = (function() { + args.GCPPubSubWriteArgs = (function() { /** - * Properties of a RelayGroupAWSSQSOptions. - * @memberof protos.opts - * @interface IRelayGroupAWSSQSOptions - * @property {protos.args.IAWSSQSConn|null} [_conn] RelayGroupAWSSQSOptions _conn - * @property {protos.args.IAWSSQSRelayArgs|null} [args] RelayGroupAWSSQSOptions args + * Properties of a GCPPubSubWriteArgs. + * @memberof protos.args + * @interface IGCPPubSubWriteArgs + * @property {string|null} [topicId] GCPPubSubWriteArgs topicId */ /** - * Constructs a new RelayGroupAWSSQSOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupAWSSQSOptions. - * @implements IRelayGroupAWSSQSOptions + * Constructs a new GCPPubSubWriteArgs. + * @memberof protos.args + * @classdesc Represents a GCPPubSubWriteArgs. + * @implements IGCPPubSubWriteArgs * @constructor - * @param {protos.opts.IRelayGroupAWSSQSOptions=} [properties] Properties to set + * @param {protos.args.IGCPPubSubWriteArgs=} [properties] Properties to set */ - function RelayGroupAWSSQSOptions(properties) { + function GCPPubSubWriteArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7130,88 +4838,75 @@ $root.protos = (function() { } /** - * RelayGroupAWSSQSOptions _conn. - * @member {protos.args.IAWSSQSConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupAWSSQSOptions - * @instance - */ - RelayGroupAWSSQSOptions.prototype._conn = null; - - /** - * RelayGroupAWSSQSOptions args. - * @member {protos.args.IAWSSQSRelayArgs|null|undefined} args - * @memberof protos.opts.RelayGroupAWSSQSOptions + * GCPPubSubWriteArgs topicId. + * @member {string} topicId + * @memberof protos.args.GCPPubSubWriteArgs * @instance */ - RelayGroupAWSSQSOptions.prototype.args = null; + GCPPubSubWriteArgs.prototype.topicId = ""; /** - * Creates a new RelayGroupAWSSQSOptions instance using the specified properties. + * Creates a new GCPPubSubWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupAWSSQSOptions + * @memberof protos.args.GCPPubSubWriteArgs * @static - * @param {protos.opts.IRelayGroupAWSSQSOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupAWSSQSOptions} RelayGroupAWSSQSOptions instance + * @param {protos.args.IGCPPubSubWriteArgs=} [properties] Properties to set + * @returns {protos.args.GCPPubSubWriteArgs} GCPPubSubWriteArgs instance */ - RelayGroupAWSSQSOptions.create = function create(properties) { - return new RelayGroupAWSSQSOptions(properties); + GCPPubSubWriteArgs.create = function create(properties) { + return new GCPPubSubWriteArgs(properties); }; /** - * Encodes the specified RelayGroupAWSSQSOptions message. Does not implicitly {@link protos.opts.RelayGroupAWSSQSOptions.verify|verify} messages. + * Encodes the specified GCPPubSubWriteArgs message. Does not implicitly {@link protos.args.GCPPubSubWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupAWSSQSOptions + * @memberof protos.args.GCPPubSubWriteArgs * @static - * @param {protos.opts.IRelayGroupAWSSQSOptions} message RelayGroupAWSSQSOptions message or plain object to encode + * @param {protos.args.IGCPPubSubWriteArgs} message GCPPubSubWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupAWSSQSOptions.encode = function encode(message, writer) { + GCPPubSubWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AWSSQSConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AWSSQSRelayArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.topicId != null && Object.hasOwnProperty.call(message, "topicId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topicId); return writer; }; /** - * Encodes the specified RelayGroupAWSSQSOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupAWSSQSOptions.verify|verify} messages. + * Encodes the specified GCPPubSubWriteArgs message, length delimited. Does not implicitly {@link protos.args.GCPPubSubWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupAWSSQSOptions + * @memberof protos.args.GCPPubSubWriteArgs * @static - * @param {protos.opts.IRelayGroupAWSSQSOptions} message RelayGroupAWSSQSOptions message or plain object to encode + * @param {protos.args.IGCPPubSubWriteArgs} message GCPPubSubWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupAWSSQSOptions.encodeDelimited = function encodeDelimited(message, writer) { + GCPPubSubWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupAWSSQSOptions message from the specified reader or buffer. + * Decodes a GCPPubSubWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupAWSSQSOptions + * @memberof protos.args.GCPPubSubWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupAWSSQSOptions} RelayGroupAWSSQSOptions + * @returns {protos.args.GCPPubSubWriteArgs} GCPPubSubWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupAWSSQSOptions.decode = function decode(reader, length) { + GCPPubSubWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupAWSSQSOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.GCPPubSubWriteArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.AWSSQSConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.AWSSQSRelayArgs.decode(reader, reader.uint32()); + message.topicId = reader.string(); break; default: reader.skipType(tag & 7); @@ -7222,127 +4917,130 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupAWSSQSOptions message from the specified reader or buffer, length delimited. + * Decodes a GCPPubSubWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupAWSSQSOptions + * @memberof protos.args.GCPPubSubWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupAWSSQSOptions} RelayGroupAWSSQSOptions + * @returns {protos.args.GCPPubSubWriteArgs} GCPPubSubWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupAWSSQSOptions.decodeDelimited = function decodeDelimited(reader) { + GCPPubSubWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupAWSSQSOptions message. + * Verifies a GCPPubSubWriteArgs message. * @function verify - * @memberof protos.opts.RelayGroupAWSSQSOptions + * @memberof protos.args.GCPPubSubWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupAWSSQSOptions.verify = function verify(message) { + GCPPubSubWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AWSSQSConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AWSSQSRelayArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.topicId != null && message.hasOwnProperty("topicId")) + if (!$util.isString(message.topicId)) + return "topicId: string expected"; return null; }; /** - * Creates a RelayGroupAWSSQSOptions message from a plain object. Also converts values to their respective internal types. + * Creates a GCPPubSubWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupAWSSQSOptions + * @memberof protos.args.GCPPubSubWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupAWSSQSOptions} RelayGroupAWSSQSOptions + * @returns {protos.args.GCPPubSubWriteArgs} GCPPubSubWriteArgs */ - RelayGroupAWSSQSOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupAWSSQSOptions) + GCPPubSubWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.GCPPubSubWriteArgs) return object; - var message = new $root.protos.opts.RelayGroupAWSSQSOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupAWSSQSOptions._conn: object expected"); - message._conn = $root.protos.args.AWSSQSConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupAWSSQSOptions.args: object expected"); - message.args = $root.protos.args.AWSSQSRelayArgs.fromObject(object.args); - } + var message = new $root.protos.args.GCPPubSubWriteArgs(); + if (object.topicId != null) + message.topicId = String(object.topicId); return message; }; /** - * Creates a plain object from a RelayGroupAWSSQSOptions message. Also converts values to other types if specified. + * Creates a plain object from a GCPPubSubWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupAWSSQSOptions + * @memberof protos.args.GCPPubSubWriteArgs * @static - * @param {protos.opts.RelayGroupAWSSQSOptions} message RelayGroupAWSSQSOptions + * @param {protos.args.GCPPubSubWriteArgs} message GCPPubSubWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupAWSSQSOptions.toObject = function toObject(message, options) { + GCPPubSubWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AWSSQSConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AWSSQSRelayArgs.toObject(message.args, options); + if (options.defaults) + object.topicId = ""; + if (message.topicId != null && message.hasOwnProperty("topicId")) + object.topicId = message.topicId; return object; }; /** - * Converts this RelayGroupAWSSQSOptions to JSON. + * Converts this GCPPubSubWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupAWSSQSOptions + * @memberof protos.args.GCPPubSubWriteArgs * @instance * @returns {Object.} JSON object */ - RelayGroupAWSSQSOptions.prototype.toJSON = function toJSON() { + GCPPubSubWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupAWSSQSOptions; + return GCPPubSubWriteArgs; + })(); + + /** + * SASLType enum. + * @name protos.args.SASLType + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} PLAIN=1 PLAIN value + * @property {number} SCRAM=2 SCRAM value + */ + args.SASLType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "PLAIN"] = 1; + values[valuesById[2] = "SCRAM"] = 2; + return values; })(); - opts.RelayGroupMongoOptions = (function() { + args.KafkaConn = (function() { /** - * Properties of a RelayGroupMongoOptions. - * @memberof protos.opts - * @interface IRelayGroupMongoOptions - * @property {protos.args.IMongoConn|null} [_conn] RelayGroupMongoOptions _conn - * @property {protos.args.IMongoReadArgs|null} [args] RelayGroupMongoOptions args + * Properties of a KafkaConn. + * @memberof protos.args + * @interface IKafkaConn + * @property {Array.|null} [address] KafkaConn address + * @property {number|null} [timeoutSeconds] KafkaConn timeoutSeconds + * @property {boolean|null} [useTls] KafkaConn useTls + * @property {boolean|null} [tlsSkipVerify] KafkaConn tlsSkipVerify + * @property {protos.args.SASLType|null} [saslType] KafkaConn saslType + * @property {string|null} [saslUsername] KafkaConn saslUsername + * @property {string|null} [saslPassword] KafkaConn saslPassword */ /** - * Constructs a new RelayGroupMongoOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupMongoOptions. - * @implements IRelayGroupMongoOptions + * Constructs a new KafkaConn. + * @memberof protos.args + * @classdesc Represents a KafkaConn. + * @implements IKafkaConn * @constructor - * @param {protos.opts.IRelayGroupMongoOptions=} [properties] Properties to set + * @param {protos.args.IKafkaConn=} [properties] Properties to set */ - function RelayGroupMongoOptions(properties) { + function KafkaConn(properties) { + this.address = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7350,88 +5048,156 @@ $root.protos = (function() { } /** - * RelayGroupMongoOptions _conn. - * @member {protos.args.IMongoConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupMongoOptions + * KafkaConn address. + * @member {Array.} address + * @memberof protos.args.KafkaConn * @instance */ - RelayGroupMongoOptions.prototype._conn = null; + KafkaConn.prototype.address = $util.emptyArray; /** - * RelayGroupMongoOptions args. - * @member {protos.args.IMongoReadArgs|null|undefined} args - * @memberof protos.opts.RelayGroupMongoOptions + * KafkaConn timeoutSeconds. + * @member {number} timeoutSeconds + * @memberof protos.args.KafkaConn + * @instance + */ + KafkaConn.prototype.timeoutSeconds = 0; + + /** + * KafkaConn useTls. + * @member {boolean} useTls + * @memberof protos.args.KafkaConn + * @instance + */ + KafkaConn.prototype.useTls = false; + + /** + * KafkaConn tlsSkipVerify. + * @member {boolean} tlsSkipVerify + * @memberof protos.args.KafkaConn + * @instance + */ + KafkaConn.prototype.tlsSkipVerify = false; + + /** + * KafkaConn saslType. + * @member {protos.args.SASLType} saslType + * @memberof protos.args.KafkaConn + * @instance + */ + KafkaConn.prototype.saslType = 0; + + /** + * KafkaConn saslUsername. + * @member {string} saslUsername + * @memberof protos.args.KafkaConn + * @instance + */ + KafkaConn.prototype.saslUsername = ""; + + /** + * KafkaConn saslPassword. + * @member {string} saslPassword + * @memberof protos.args.KafkaConn * @instance */ - RelayGroupMongoOptions.prototype.args = null; + KafkaConn.prototype.saslPassword = ""; /** - * Creates a new RelayGroupMongoOptions instance using the specified properties. + * Creates a new KafkaConn instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupMongoOptions + * @memberof protos.args.KafkaConn * @static - * @param {protos.opts.IRelayGroupMongoOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupMongoOptions} RelayGroupMongoOptions instance + * @param {protos.args.IKafkaConn=} [properties] Properties to set + * @returns {protos.args.KafkaConn} KafkaConn instance */ - RelayGroupMongoOptions.create = function create(properties) { - return new RelayGroupMongoOptions(properties); + KafkaConn.create = function create(properties) { + return new KafkaConn(properties); }; /** - * Encodes the specified RelayGroupMongoOptions message. Does not implicitly {@link protos.opts.RelayGroupMongoOptions.verify|verify} messages. + * Encodes the specified KafkaConn message. Does not implicitly {@link protos.args.KafkaConn.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupMongoOptions + * @memberof protos.args.KafkaConn * @static - * @param {protos.opts.IRelayGroupMongoOptions} message RelayGroupMongoOptions message or plain object to encode + * @param {protos.args.IKafkaConn} message KafkaConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupMongoOptions.encode = function encode(message, writer) { + KafkaConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.MongoConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.MongoReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.address != null && message.address.length) + for (var i = 0; i < message.address.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address[i]); + if (message.timeoutSeconds != null && Object.hasOwnProperty.call(message, "timeoutSeconds")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.timeoutSeconds); + if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useTls); + if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.tlsSkipVerify); + if (message.saslType != null && Object.hasOwnProperty.call(message, "saslType")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.saslType); + if (message.saslUsername != null && Object.hasOwnProperty.call(message, "saslUsername")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.saslUsername); + if (message.saslPassword != null && Object.hasOwnProperty.call(message, "saslPassword")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.saslPassword); return writer; }; /** - * Encodes the specified RelayGroupMongoOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupMongoOptions.verify|verify} messages. + * Encodes the specified KafkaConn message, length delimited. Does not implicitly {@link protos.args.KafkaConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupMongoOptions + * @memberof protos.args.KafkaConn * @static - * @param {protos.opts.IRelayGroupMongoOptions} message RelayGroupMongoOptions message or plain object to encode + * @param {protos.args.IKafkaConn} message KafkaConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupMongoOptions.encodeDelimited = function encodeDelimited(message, writer) { + KafkaConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupMongoOptions message from the specified reader or buffer. + * Decodes a KafkaConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupMongoOptions + * @memberof protos.args.KafkaConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupMongoOptions} RelayGroupMongoOptions + * @returns {protos.args.KafkaConn} KafkaConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupMongoOptions.decode = function decode(reader, length) { + KafkaConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupMongoOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KafkaConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.MongoConn.decode(reader, reader.uint32()); + if (!(message.address && message.address.length)) + message.address = []; + message.address.push(reader.string()); break; case 2: - message.args = $root.protos.args.MongoReadArgs.decode(reader, reader.uint32()); + message.timeoutSeconds = reader.int32(); + break; + case 3: + message.useTls = reader.bool(); + break; + case 4: + message.tlsSkipVerify = reader.bool(); + break; + case 5: + message.saslType = reader.int32(); + break; + case 6: + message.saslUsername = reader.string(); + break; + case 7: + message.saslPassword = reader.string(); break; default: reader.skipType(tag & 7); @@ -7442,127 +5208,200 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupMongoOptions message from the specified reader or buffer, length delimited. + * Decodes a KafkaConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupMongoOptions + * @memberof protos.args.KafkaConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupMongoOptions} RelayGroupMongoOptions + * @returns {protos.args.KafkaConn} KafkaConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupMongoOptions.decodeDelimited = function decodeDelimited(reader) { + KafkaConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupMongoOptions message. + * Verifies a KafkaConn message. * @function verify - * @memberof protos.opts.RelayGroupMongoOptions + * @memberof protos.args.KafkaConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupMongoOptions.verify = function verify(message) { + KafkaConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.MongoConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.MongoReadArgs.verify(message.args); - if (error) - return "args." + error; + if (message.address != null && message.hasOwnProperty("address")) { + if (!Array.isArray(message.address)) + return "address: array expected"; + for (var i = 0; i < message.address.length; ++i) + if (!$util.isString(message.address[i])) + return "address: string[] expected"; } + if (message.timeoutSeconds != null && message.hasOwnProperty("timeoutSeconds")) + if (!$util.isInteger(message.timeoutSeconds)) + return "timeoutSeconds: integer expected"; + if (message.useTls != null && message.hasOwnProperty("useTls")) + if (typeof message.useTls !== "boolean") + return "useTls: boolean expected"; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + if (typeof message.tlsSkipVerify !== "boolean") + return "tlsSkipVerify: boolean expected"; + if (message.saslType != null && message.hasOwnProperty("saslType")) + switch (message.saslType) { + default: + return "saslType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.saslUsername != null && message.hasOwnProperty("saslUsername")) + if (!$util.isString(message.saslUsername)) + return "saslUsername: string expected"; + if (message.saslPassword != null && message.hasOwnProperty("saslPassword")) + if (!$util.isString(message.saslPassword)) + return "saslPassword: string expected"; return null; }; /** - * Creates a RelayGroupMongoOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KafkaConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupMongoOptions + * @memberof protos.args.KafkaConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupMongoOptions} RelayGroupMongoOptions + * @returns {protos.args.KafkaConn} KafkaConn */ - RelayGroupMongoOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupMongoOptions) + KafkaConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.KafkaConn) return object; - var message = new $root.protos.opts.RelayGroupMongoOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupMongoOptions._conn: object expected"); - message._conn = $root.protos.args.MongoConn.fromObject(object._conn); + var message = new $root.protos.args.KafkaConn(); + if (object.address) { + if (!Array.isArray(object.address)) + throw TypeError(".protos.args.KafkaConn.address: array expected"); + message.address = []; + for (var i = 0; i < object.address.length; ++i) + message.address[i] = String(object.address[i]); } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupMongoOptions.args: object expected"); - message.args = $root.protos.args.MongoReadArgs.fromObject(object.args); + if (object.timeoutSeconds != null) + message.timeoutSeconds = object.timeoutSeconds | 0; + if (object.useTls != null) + message.useTls = Boolean(object.useTls); + if (object.tlsSkipVerify != null) + message.tlsSkipVerify = Boolean(object.tlsSkipVerify); + switch (object.saslType) { + case "NONE": + case 0: + message.saslType = 0; + break; + case "PLAIN": + case 1: + message.saslType = 1; + break; + case "SCRAM": + case 2: + message.saslType = 2; + break; } + if (object.saslUsername != null) + message.saslUsername = String(object.saslUsername); + if (object.saslPassword != null) + message.saslPassword = String(object.saslPassword); return message; }; /** - * Creates a plain object from a RelayGroupMongoOptions message. Also converts values to other types if specified. + * Creates a plain object from a KafkaConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupMongoOptions + * @memberof protos.args.KafkaConn * @static - * @param {protos.opts.RelayGroupMongoOptions} message RelayGroupMongoOptions + * @param {protos.args.KafkaConn} message KafkaConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupMongoOptions.toObject = function toObject(message, options) { + KafkaConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.address = []; if (options.defaults) { - object._conn = null; - object.args = null; + object.timeoutSeconds = 0; + object.useTls = false; + object.tlsSkipVerify = false; + object.saslType = options.enums === String ? "NONE" : 0; + object.saslUsername = ""; + object.saslPassword = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.MongoConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.MongoReadArgs.toObject(message.args, options); + if (message.address && message.address.length) { + object.address = []; + for (var j = 0; j < message.address.length; ++j) + object.address[j] = message.address[j]; + } + if (message.timeoutSeconds != null && message.hasOwnProperty("timeoutSeconds")) + object.timeoutSeconds = message.timeoutSeconds; + if (message.useTls != null && message.hasOwnProperty("useTls")) + object.useTls = message.useTls; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + object.tlsSkipVerify = message.tlsSkipVerify; + if (message.saslType != null && message.hasOwnProperty("saslType")) + object.saslType = options.enums === String ? $root.protos.args.SASLType[message.saslType] : message.saslType; + if (message.saslUsername != null && message.hasOwnProperty("saslUsername")) + object.saslUsername = message.saslUsername; + if (message.saslPassword != null && message.hasOwnProperty("saslPassword")) + object.saslPassword = message.saslPassword; return object; }; /** - * Converts this RelayGroupMongoOptions to JSON. + * Converts this KafkaConn to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupMongoOptions + * @memberof protos.args.KafkaConn * @instance * @returns {Object.} JSON object */ - RelayGroupMongoOptions.prototype.toJSON = function toJSON() { + KafkaConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupMongoOptions; + return KafkaConn; })(); - opts.RelayGroupNSQOptions = (function() { + args.KafkaReadArgs = (function() { /** - * Properties of a RelayGroupNSQOptions. - * @memberof protos.opts - * @interface IRelayGroupNSQOptions - * @property {protos.args.INSQConn|null} [_conn] RelayGroupNSQOptions _conn - * @property {protos.args.INSQReadArgs|null} [args] RelayGroupNSQOptions args + * Properties of a KafkaReadArgs. + * @memberof protos.args + * @interface IKafkaReadArgs + * @property {Array.|null} [topics] KafkaReadArgs topics + * @property {number|Long|null} [readOffset] KafkaReadArgs readOffset + * @property {boolean|null} [useConsumerGroup] KafkaReadArgs useConsumerGroup + * @property {string|null} [consumerGroupName] KafkaReadArgs consumerGroupName + * @property {number|null} [maxWaitSeconds] KafkaReadArgs maxWaitSeconds + * @property {number|null} [minBytes] KafkaReadArgs minBytes + * @property {number|null} [maxBytes] KafkaReadArgs maxBytes + * @property {number|null} [commitIntervalSeconds] KafkaReadArgs commitIntervalSeconds + * @property {number|null} [rebalanceTimeoutSeconds] KafkaReadArgs rebalanceTimeoutSeconds + * @property {number|null} [queueCapacity] KafkaReadArgs queueCapacity + * @property {boolean|null} [includeOffsetInfo] KafkaReadArgs includeOffsetInfo + * @property {boolean|null} [lag] KafkaReadArgs lag + * @property {string|null} [lagConsumerGroup] KafkaReadArgs lagConsumerGroup */ /** - * Constructs a new RelayGroupNSQOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupNSQOptions. - * @implements IRelayGroupNSQOptions + * Constructs a new KafkaReadArgs. + * @memberof protos.args + * @classdesc Represents a KafkaReadArgs. + * @implements IKafkaReadArgs * @constructor - * @param {protos.opts.IRelayGroupNSQOptions=} [properties] Properties to set + * @param {protos.args.IKafkaReadArgs=} [properties] Properties to set */ - function RelayGroupNSQOptions(properties) { + function KafkaReadArgs(properties) { + this.topics = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7570,88 +5409,234 @@ $root.protos = (function() { } /** - * RelayGroupNSQOptions _conn. - * @member {protos.args.INSQConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupNSQOptions + * KafkaReadArgs topics. + * @member {Array.} topics + * @memberof protos.args.KafkaReadArgs * @instance */ - RelayGroupNSQOptions.prototype._conn = null; + KafkaReadArgs.prototype.topics = $util.emptyArray; /** - * RelayGroupNSQOptions args. - * @member {protos.args.INSQReadArgs|null|undefined} args - * @memberof protos.opts.RelayGroupNSQOptions + * KafkaReadArgs readOffset. + * @member {number|Long} readOffset + * @memberof protos.args.KafkaReadArgs * @instance */ - RelayGroupNSQOptions.prototype.args = null; + KafkaReadArgs.prototype.readOffset = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new RelayGroupNSQOptions instance using the specified properties. - * @function create - * @memberof protos.opts.RelayGroupNSQOptions - * @static - * @param {protos.opts.IRelayGroupNSQOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupNSQOptions} RelayGroupNSQOptions instance + * KafkaReadArgs useConsumerGroup. + * @member {boolean} useConsumerGroup + * @memberof protos.args.KafkaReadArgs + * @instance */ - RelayGroupNSQOptions.create = function create(properties) { - return new RelayGroupNSQOptions(properties); - }; + KafkaReadArgs.prototype.useConsumerGroup = false; + + /** + * KafkaReadArgs consumerGroupName. + * @member {string} consumerGroupName + * @memberof protos.args.KafkaReadArgs + * @instance + */ + KafkaReadArgs.prototype.consumerGroupName = ""; + + /** + * KafkaReadArgs maxWaitSeconds. + * @member {number} maxWaitSeconds + * @memberof protos.args.KafkaReadArgs + * @instance + */ + KafkaReadArgs.prototype.maxWaitSeconds = 0; + + /** + * KafkaReadArgs minBytes. + * @member {number} minBytes + * @memberof protos.args.KafkaReadArgs + * @instance + */ + KafkaReadArgs.prototype.minBytes = 0; + + /** + * KafkaReadArgs maxBytes. + * @member {number} maxBytes + * @memberof protos.args.KafkaReadArgs + * @instance + */ + KafkaReadArgs.prototype.maxBytes = 0; + + /** + * KafkaReadArgs commitIntervalSeconds. + * @member {number} commitIntervalSeconds + * @memberof protos.args.KafkaReadArgs + * @instance + */ + KafkaReadArgs.prototype.commitIntervalSeconds = 0; + + /** + * KafkaReadArgs rebalanceTimeoutSeconds. + * @member {number} rebalanceTimeoutSeconds + * @memberof protos.args.KafkaReadArgs + * @instance + */ + KafkaReadArgs.prototype.rebalanceTimeoutSeconds = 0; + + /** + * KafkaReadArgs queueCapacity. + * @member {number} queueCapacity + * @memberof protos.args.KafkaReadArgs + * @instance + */ + KafkaReadArgs.prototype.queueCapacity = 0; + + /** + * KafkaReadArgs includeOffsetInfo. + * @member {boolean} includeOffsetInfo + * @memberof protos.args.KafkaReadArgs + * @instance + */ + KafkaReadArgs.prototype.includeOffsetInfo = false; + + /** + * KafkaReadArgs lag. + * @member {boolean} lag + * @memberof protos.args.KafkaReadArgs + * @instance + */ + KafkaReadArgs.prototype.lag = false; + + /** + * KafkaReadArgs lagConsumerGroup. + * @member {string} lagConsumerGroup + * @memberof protos.args.KafkaReadArgs + * @instance + */ + KafkaReadArgs.prototype.lagConsumerGroup = ""; + + /** + * Creates a new KafkaReadArgs instance using the specified properties. + * @function create + * @memberof protos.args.KafkaReadArgs + * @static + * @param {protos.args.IKafkaReadArgs=} [properties] Properties to set + * @returns {protos.args.KafkaReadArgs} KafkaReadArgs instance + */ + KafkaReadArgs.create = function create(properties) { + return new KafkaReadArgs(properties); + }; /** - * Encodes the specified RelayGroupNSQOptions message. Does not implicitly {@link protos.opts.RelayGroupNSQOptions.verify|verify} messages. + * Encodes the specified KafkaReadArgs message. Does not implicitly {@link protos.args.KafkaReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupNSQOptions + * @memberof protos.args.KafkaReadArgs * @static - * @param {protos.opts.IRelayGroupNSQOptions} message RelayGroupNSQOptions message or plain object to encode + * @param {protos.args.IKafkaReadArgs} message KafkaReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupNSQOptions.encode = function encode(message, writer) { + KafkaReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NSQConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NSQReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.topics != null && message.topics.length) + for (var i = 0; i < message.topics.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topics[i]); + if (message.readOffset != null && Object.hasOwnProperty.call(message, "readOffset")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.readOffset); + if (message.useConsumerGroup != null && Object.hasOwnProperty.call(message, "useConsumerGroup")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useConsumerGroup); + if (message.consumerGroupName != null && Object.hasOwnProperty.call(message, "consumerGroupName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.consumerGroupName); + if (message.maxWaitSeconds != null && Object.hasOwnProperty.call(message, "maxWaitSeconds")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxWaitSeconds); + if (message.minBytes != null && Object.hasOwnProperty.call(message, "minBytes")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.minBytes); + if (message.maxBytes != null && Object.hasOwnProperty.call(message, "maxBytes")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.maxBytes); + if (message.commitIntervalSeconds != null && Object.hasOwnProperty.call(message, "commitIntervalSeconds")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.commitIntervalSeconds); + if (message.rebalanceTimeoutSeconds != null && Object.hasOwnProperty.call(message, "rebalanceTimeoutSeconds")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.rebalanceTimeoutSeconds); + if (message.queueCapacity != null && Object.hasOwnProperty.call(message, "queueCapacity")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.queueCapacity); + if (message.includeOffsetInfo != null && Object.hasOwnProperty.call(message, "includeOffsetInfo")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.includeOffsetInfo); + if (message.lag != null && Object.hasOwnProperty.call(message, "lag")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.lag); + if (message.lagConsumerGroup != null && Object.hasOwnProperty.call(message, "lagConsumerGroup")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.lagConsumerGroup); return writer; }; /** - * Encodes the specified RelayGroupNSQOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupNSQOptions.verify|verify} messages. + * Encodes the specified KafkaReadArgs message, length delimited. Does not implicitly {@link protos.args.KafkaReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupNSQOptions + * @memberof protos.args.KafkaReadArgs * @static - * @param {protos.opts.IRelayGroupNSQOptions} message RelayGroupNSQOptions message or plain object to encode + * @param {protos.args.IKafkaReadArgs} message KafkaReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupNSQOptions.encodeDelimited = function encodeDelimited(message, writer) { + KafkaReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupNSQOptions message from the specified reader or buffer. + * Decodes a KafkaReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupNSQOptions + * @memberof protos.args.KafkaReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupNSQOptions} RelayGroupNSQOptions + * @returns {protos.args.KafkaReadArgs} KafkaReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupNSQOptions.decode = function decode(reader, length) { + KafkaReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupNSQOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KafkaReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.NSQConn.decode(reader, reader.uint32()); + if (!(message.topics && message.topics.length)) + message.topics = []; + message.topics.push(reader.string()); break; case 2: - message.args = $root.protos.args.NSQReadArgs.decode(reader, reader.uint32()); + message.readOffset = reader.int64(); + break; + case 3: + message.useConsumerGroup = reader.bool(); + break; + case 4: + message.consumerGroupName = reader.string(); + break; + case 5: + message.maxWaitSeconds = reader.int32(); + break; + case 6: + message.minBytes = reader.int32(); + break; + case 7: + message.maxBytes = reader.int32(); + break; + case 8: + message.commitIntervalSeconds = reader.int32(); + break; + case 9: + message.rebalanceTimeoutSeconds = reader.int32(); + break; + case 10: + message.queueCapacity = reader.int32(); + break; + case 11: + message.includeOffsetInfo = reader.bool(); + break; + case 12: + message.lag = reader.bool(); + break; + case 13: + message.lagConsumerGroup = reader.string(); break; default: reader.skipType(tag & 7); @@ -7662,127 +5647,235 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupNSQOptions message from the specified reader or buffer, length delimited. + * Decodes a KafkaReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupNSQOptions + * @memberof protos.args.KafkaReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupNSQOptions} RelayGroupNSQOptions + * @returns {protos.args.KafkaReadArgs} KafkaReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupNSQOptions.decodeDelimited = function decodeDelimited(reader) { + KafkaReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupNSQOptions message. + * Verifies a KafkaReadArgs message. * @function verify - * @memberof protos.opts.RelayGroupNSQOptions + * @memberof protos.args.KafkaReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupNSQOptions.verify = function verify(message) { + KafkaReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NSQConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NSQReadArgs.verify(message.args); - if (error) - return "args." + error; + if (message.topics != null && message.hasOwnProperty("topics")) { + if (!Array.isArray(message.topics)) + return "topics: array expected"; + for (var i = 0; i < message.topics.length; ++i) + if (!$util.isString(message.topics[i])) + return "topics: string[] expected"; } + if (message.readOffset != null && message.hasOwnProperty("readOffset")) + if (!$util.isInteger(message.readOffset) && !(message.readOffset && $util.isInteger(message.readOffset.low) && $util.isInteger(message.readOffset.high))) + return "readOffset: integer|Long expected"; + if (message.useConsumerGroup != null && message.hasOwnProperty("useConsumerGroup")) + if (typeof message.useConsumerGroup !== "boolean") + return "useConsumerGroup: boolean expected"; + if (message.consumerGroupName != null && message.hasOwnProperty("consumerGroupName")) + if (!$util.isString(message.consumerGroupName)) + return "consumerGroupName: string expected"; + if (message.maxWaitSeconds != null && message.hasOwnProperty("maxWaitSeconds")) + if (!$util.isInteger(message.maxWaitSeconds)) + return "maxWaitSeconds: integer expected"; + if (message.minBytes != null && message.hasOwnProperty("minBytes")) + if (!$util.isInteger(message.minBytes)) + return "minBytes: integer expected"; + if (message.maxBytes != null && message.hasOwnProperty("maxBytes")) + if (!$util.isInteger(message.maxBytes)) + return "maxBytes: integer expected"; + if (message.commitIntervalSeconds != null && message.hasOwnProperty("commitIntervalSeconds")) + if (!$util.isInteger(message.commitIntervalSeconds)) + return "commitIntervalSeconds: integer expected"; + if (message.rebalanceTimeoutSeconds != null && message.hasOwnProperty("rebalanceTimeoutSeconds")) + if (!$util.isInteger(message.rebalanceTimeoutSeconds)) + return "rebalanceTimeoutSeconds: integer expected"; + if (message.queueCapacity != null && message.hasOwnProperty("queueCapacity")) + if (!$util.isInteger(message.queueCapacity)) + return "queueCapacity: integer expected"; + if (message.includeOffsetInfo != null && message.hasOwnProperty("includeOffsetInfo")) + if (typeof message.includeOffsetInfo !== "boolean") + return "includeOffsetInfo: boolean expected"; + if (message.lag != null && message.hasOwnProperty("lag")) + if (typeof message.lag !== "boolean") + return "lag: boolean expected"; + if (message.lagConsumerGroup != null && message.hasOwnProperty("lagConsumerGroup")) + if (!$util.isString(message.lagConsumerGroup)) + return "lagConsumerGroup: string expected"; return null; }; /** - * Creates a RelayGroupNSQOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KafkaReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupNSQOptions + * @memberof protos.args.KafkaReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupNSQOptions} RelayGroupNSQOptions + * @returns {protos.args.KafkaReadArgs} KafkaReadArgs */ - RelayGroupNSQOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupNSQOptions) + KafkaReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.KafkaReadArgs) return object; - var message = new $root.protos.opts.RelayGroupNSQOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupNSQOptions._conn: object expected"); - message._conn = $root.protos.args.NSQConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupNSQOptions.args: object expected"); - message.args = $root.protos.args.NSQReadArgs.fromObject(object.args); + var message = new $root.protos.args.KafkaReadArgs(); + if (object.topics) { + if (!Array.isArray(object.topics)) + throw TypeError(".protos.args.KafkaReadArgs.topics: array expected"); + message.topics = []; + for (var i = 0; i < object.topics.length; ++i) + message.topics[i] = String(object.topics[i]); } + if (object.readOffset != null) + if ($util.Long) + (message.readOffset = $util.Long.fromValue(object.readOffset)).unsigned = false; + else if (typeof object.readOffset === "string") + message.readOffset = parseInt(object.readOffset, 10); + else if (typeof object.readOffset === "number") + message.readOffset = object.readOffset; + else if (typeof object.readOffset === "object") + message.readOffset = new $util.LongBits(object.readOffset.low >>> 0, object.readOffset.high >>> 0).toNumber(); + if (object.useConsumerGroup != null) + message.useConsumerGroup = Boolean(object.useConsumerGroup); + if (object.consumerGroupName != null) + message.consumerGroupName = String(object.consumerGroupName); + if (object.maxWaitSeconds != null) + message.maxWaitSeconds = object.maxWaitSeconds | 0; + if (object.minBytes != null) + message.minBytes = object.minBytes | 0; + if (object.maxBytes != null) + message.maxBytes = object.maxBytes | 0; + if (object.commitIntervalSeconds != null) + message.commitIntervalSeconds = object.commitIntervalSeconds | 0; + if (object.rebalanceTimeoutSeconds != null) + message.rebalanceTimeoutSeconds = object.rebalanceTimeoutSeconds | 0; + if (object.queueCapacity != null) + message.queueCapacity = object.queueCapacity | 0; + if (object.includeOffsetInfo != null) + message.includeOffsetInfo = Boolean(object.includeOffsetInfo); + if (object.lag != null) + message.lag = Boolean(object.lag); + if (object.lagConsumerGroup != null) + message.lagConsumerGroup = String(object.lagConsumerGroup); return message; }; /** - * Creates a plain object from a RelayGroupNSQOptions message. Also converts values to other types if specified. + * Creates a plain object from a KafkaReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupNSQOptions + * @memberof protos.args.KafkaReadArgs * @static - * @param {protos.opts.RelayGroupNSQOptions} message RelayGroupNSQOptions + * @param {protos.args.KafkaReadArgs} message KafkaReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupNSQOptions.toObject = function toObject(message, options) { + KafkaReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.topics = []; if (options.defaults) { - object._conn = null; - object.args = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.readOffset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.readOffset = options.longs === String ? "0" : 0; + object.useConsumerGroup = false; + object.consumerGroupName = ""; + object.maxWaitSeconds = 0; + object.minBytes = 0; + object.maxBytes = 0; + object.commitIntervalSeconds = 0; + object.rebalanceTimeoutSeconds = 0; + object.queueCapacity = 0; + object.includeOffsetInfo = false; + object.lag = false; + object.lagConsumerGroup = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NSQConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NSQReadArgs.toObject(message.args, options); + if (message.topics && message.topics.length) { + object.topics = []; + for (var j = 0; j < message.topics.length; ++j) + object.topics[j] = message.topics[j]; + } + if (message.readOffset != null && message.hasOwnProperty("readOffset")) + if (typeof message.readOffset === "number") + object.readOffset = options.longs === String ? String(message.readOffset) : message.readOffset; + else + object.readOffset = options.longs === String ? $util.Long.prototype.toString.call(message.readOffset) : options.longs === Number ? new $util.LongBits(message.readOffset.low >>> 0, message.readOffset.high >>> 0).toNumber() : message.readOffset; + if (message.useConsumerGroup != null && message.hasOwnProperty("useConsumerGroup")) + object.useConsumerGroup = message.useConsumerGroup; + if (message.consumerGroupName != null && message.hasOwnProperty("consumerGroupName")) + object.consumerGroupName = message.consumerGroupName; + if (message.maxWaitSeconds != null && message.hasOwnProperty("maxWaitSeconds")) + object.maxWaitSeconds = message.maxWaitSeconds; + if (message.minBytes != null && message.hasOwnProperty("minBytes")) + object.minBytes = message.minBytes; + if (message.maxBytes != null && message.hasOwnProperty("maxBytes")) + object.maxBytes = message.maxBytes; + if (message.commitIntervalSeconds != null && message.hasOwnProperty("commitIntervalSeconds")) + object.commitIntervalSeconds = message.commitIntervalSeconds; + if (message.rebalanceTimeoutSeconds != null && message.hasOwnProperty("rebalanceTimeoutSeconds")) + object.rebalanceTimeoutSeconds = message.rebalanceTimeoutSeconds; + if (message.queueCapacity != null && message.hasOwnProperty("queueCapacity")) + object.queueCapacity = message.queueCapacity; + if (message.includeOffsetInfo != null && message.hasOwnProperty("includeOffsetInfo")) + object.includeOffsetInfo = message.includeOffsetInfo; + if (message.lag != null && message.hasOwnProperty("lag")) + object.lag = message.lag; + if (message.lagConsumerGroup != null && message.hasOwnProperty("lagConsumerGroup")) + object.lagConsumerGroup = message.lagConsumerGroup; return object; }; /** - * Converts this RelayGroupNSQOptions to JSON. + * Converts this KafkaReadArgs to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupNSQOptions + * @memberof protos.args.KafkaReadArgs * @instance * @returns {Object.} JSON object */ - RelayGroupNSQOptions.prototype.toJSON = function toJSON() { + KafkaReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupNSQOptions; + return KafkaReadArgs; })(); - opts.RelayGroupPostgresOptions = (function() { + args.KafkaWriteArgs = (function() { /** - * Properties of a RelayGroupPostgresOptions. - * @memberof protos.opts - * @interface IRelayGroupPostgresOptions - * @property {protos.args.IPostgresConn|null} [_conn] RelayGroupPostgresOptions _conn - * @property {protos.args.IPostgresReadArgs|null} [args] RelayGroupPostgresOptions args + * Properties of a KafkaWriteArgs. + * @memberof protos.args + * @interface IKafkaWriteArgs + * @property {string|null} [key] KafkaWriteArgs key + * @property {Object.|null} [headers] KafkaWriteArgs headers + * @property {Array.|null} [topics] KafkaWriteArgs topics */ /** - * Constructs a new RelayGroupPostgresOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupPostgresOptions. - * @implements IRelayGroupPostgresOptions + * Constructs a new KafkaWriteArgs. + * @memberof protos.args + * @classdesc Represents a KafkaWriteArgs. + * @implements IKafkaWriteArgs * @constructor - * @param {protos.opts.IRelayGroupPostgresOptions=} [properties] Properties to set + * @param {protos.args.IKafkaWriteArgs=} [properties] Properties to set */ - function RelayGroupPostgresOptions(properties) { + function KafkaWriteArgs(properties) { + this.headers = {}; + this.topics = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7790,88 +5883,124 @@ $root.protos = (function() { } /** - * RelayGroupPostgresOptions _conn. - * @member {protos.args.IPostgresConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupPostgresOptions + * KafkaWriteArgs key. + * @member {string} key + * @memberof protos.args.KafkaWriteArgs * @instance */ - RelayGroupPostgresOptions.prototype._conn = null; + KafkaWriteArgs.prototype.key = ""; /** - * RelayGroupPostgresOptions args. - * @member {protos.args.IPostgresReadArgs|null|undefined} args - * @memberof protos.opts.RelayGroupPostgresOptions + * KafkaWriteArgs headers. + * @member {Object.} headers + * @memberof protos.args.KafkaWriteArgs + * @instance + */ + KafkaWriteArgs.prototype.headers = $util.emptyObject; + + /** + * KafkaWriteArgs topics. + * @member {Array.} topics + * @memberof protos.args.KafkaWriteArgs * @instance */ - RelayGroupPostgresOptions.prototype.args = null; + KafkaWriteArgs.prototype.topics = $util.emptyArray; /** - * Creates a new RelayGroupPostgresOptions instance using the specified properties. + * Creates a new KafkaWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupPostgresOptions + * @memberof protos.args.KafkaWriteArgs * @static - * @param {protos.opts.IRelayGroupPostgresOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupPostgresOptions} RelayGroupPostgresOptions instance + * @param {protos.args.IKafkaWriteArgs=} [properties] Properties to set + * @returns {protos.args.KafkaWriteArgs} KafkaWriteArgs instance */ - RelayGroupPostgresOptions.create = function create(properties) { - return new RelayGroupPostgresOptions(properties); + KafkaWriteArgs.create = function create(properties) { + return new KafkaWriteArgs(properties); }; /** - * Encodes the specified RelayGroupPostgresOptions message. Does not implicitly {@link protos.opts.RelayGroupPostgresOptions.verify|verify} messages. + * Encodes the specified KafkaWriteArgs message. Does not implicitly {@link protos.args.KafkaWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupPostgresOptions + * @memberof protos.args.KafkaWriteArgs * @static - * @param {protos.opts.IRelayGroupPostgresOptions} message RelayGroupPostgresOptions message or plain object to encode + * @param {protos.args.IKafkaWriteArgs} message KafkaWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupPostgresOptions.encode = function encode(message, writer) { + KafkaWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.PostgresConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.PostgresReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.headers != null && Object.hasOwnProperty.call(message, "headers")) + for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.headers[keys[i]]).ldelim(); + if (message.topics != null && message.topics.length) + for (var i = 0; i < message.topics.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.topics[i]); return writer; }; /** - * Encodes the specified RelayGroupPostgresOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupPostgresOptions.verify|verify} messages. + * Encodes the specified KafkaWriteArgs message, length delimited. Does not implicitly {@link protos.args.KafkaWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupPostgresOptions + * @memberof protos.args.KafkaWriteArgs * @static - * @param {protos.opts.IRelayGroupPostgresOptions} message RelayGroupPostgresOptions message or plain object to encode + * @param {protos.args.IKafkaWriteArgs} message KafkaWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupPostgresOptions.encodeDelimited = function encodeDelimited(message, writer) { + KafkaWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupPostgresOptions message from the specified reader or buffer. + * Decodes a KafkaWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupPostgresOptions + * @memberof protos.args.KafkaWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupPostgresOptions} RelayGroupPostgresOptions + * @returns {protos.args.KafkaWriteArgs} KafkaWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupPostgresOptions.decode = function decode(reader, length) { + KafkaWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupPostgresOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KafkaWriteArgs(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.PostgresConn.decode(reader, reader.uint32()); + message.key = reader.string(); break; case 2: - message.args = $root.protos.args.PostgresReadArgs.decode(reader, reader.uint32()); + if (message.headers === $util.emptyObject) + message.headers = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.headers[key] = value; + break; + case 3: + if (!(message.topics && message.topics.length)) + message.topics = []; + message.topics.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -7882,127 +6011,161 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupPostgresOptions message from the specified reader or buffer, length delimited. + * Decodes a KafkaWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupPostgresOptions + * @memberof protos.args.KafkaWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupPostgresOptions} RelayGroupPostgresOptions + * @returns {protos.args.KafkaWriteArgs} KafkaWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupPostgresOptions.decodeDelimited = function decodeDelimited(reader) { + KafkaWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupPostgresOptions message. + * Verifies a KafkaWriteArgs message. * @function verify - * @memberof protos.opts.RelayGroupPostgresOptions + * @memberof protos.args.KafkaWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupPostgresOptions.verify = function verify(message) { + KafkaWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.PostgresConn.verify(message._conn); - if (error) - return "_conn." + error; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.headers != null && message.hasOwnProperty("headers")) { + if (!$util.isObject(message.headers)) + return "headers: object expected"; + var key = Object.keys(message.headers); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.headers[key[i]])) + return "headers: string{k:string} expected"; } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.PostgresReadArgs.verify(message.args); - if (error) - return "args." + error; + if (message.topics != null && message.hasOwnProperty("topics")) { + if (!Array.isArray(message.topics)) + return "topics: array expected"; + for (var i = 0; i < message.topics.length; ++i) + if (!$util.isString(message.topics[i])) + return "topics: string[] expected"; } return null; }; /** - * Creates a RelayGroupPostgresOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KafkaWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupPostgresOptions + * @memberof protos.args.KafkaWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupPostgresOptions} RelayGroupPostgresOptions + * @returns {protos.args.KafkaWriteArgs} KafkaWriteArgs */ - RelayGroupPostgresOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupPostgresOptions) + KafkaWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.KafkaWriteArgs) return object; - var message = new $root.protos.opts.RelayGroupPostgresOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupPostgresOptions._conn: object expected"); - message._conn = $root.protos.args.PostgresConn.fromObject(object._conn); + var message = new $root.protos.args.KafkaWriteArgs(); + if (object.key != null) + message.key = String(object.key); + if (object.headers) { + if (typeof object.headers !== "object") + throw TypeError(".protos.args.KafkaWriteArgs.headers: object expected"); + message.headers = {}; + for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) + message.headers[keys[i]] = String(object.headers[keys[i]]); } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupPostgresOptions.args: object expected"); - message.args = $root.protos.args.PostgresReadArgs.fromObject(object.args); + if (object.topics) { + if (!Array.isArray(object.topics)) + throw TypeError(".protos.args.KafkaWriteArgs.topics: array expected"); + message.topics = []; + for (var i = 0; i < object.topics.length; ++i) + message.topics[i] = String(object.topics[i]); } return message; }; /** - * Creates a plain object from a RelayGroupPostgresOptions message. Also converts values to other types if specified. + * Creates a plain object from a KafkaWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupPostgresOptions + * @memberof protos.args.KafkaWriteArgs * @static - * @param {protos.opts.RelayGroupPostgresOptions} message RelayGroupPostgresOptions + * @param {protos.args.KafkaWriteArgs} message KafkaWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupPostgresOptions.toObject = function toObject(message, options) { + KafkaWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.PostgresConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.PostgresReadArgs.toObject(message.args, options); - return object; + if (options.arrays || options.defaults) + object.topics = []; + if (options.objects || options.defaults) + object.headers = {}; + if (options.defaults) + object.key = ""; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + var keys2; + if (message.headers && (keys2 = Object.keys(message.headers)).length) { + object.headers = {}; + for (var j = 0; j < keys2.length; ++j) + object.headers[keys2[j]] = message.headers[keys2[j]]; + } + if (message.topics && message.topics.length) { + object.topics = []; + for (var j = 0; j < message.topics.length; ++j) + object.topics[j] = message.topics[j]; + } + return object; }; /** - * Converts this RelayGroupPostgresOptions to JSON. + * Converts this KafkaWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupPostgresOptions + * @memberof protos.args.KafkaWriteArgs * @instance * @returns {Object.} JSON object */ - RelayGroupPostgresOptions.prototype.toJSON = function toJSON() { + KafkaWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupPostgresOptions; + return KafkaWriteArgs; })(); - opts.RelayGroupRabbitOptions = (function() { + args.KafkaRelayArgs = (function() { /** - * Properties of a RelayGroupRabbitOptions. - * @memberof protos.opts - * @interface IRelayGroupRabbitOptions - * @property {protos.args.IRabbitConn|null} [_conn] RelayGroupRabbitOptions _conn - * @property {protos.args.IRabbitReadArgs|null} [args] RelayGroupRabbitOptions args + * Properties of a KafkaRelayArgs. + * @memberof protos.args + * @interface IKafkaRelayArgs + * @property {Array.|null} [topics] KafkaRelayArgs topics + * @property {number|Long|null} [readOffset] KafkaRelayArgs readOffset + * @property {boolean|null} [useConsumerGroup] KafkaRelayArgs useConsumerGroup + * @property {string|null} [consumerGroupName] KafkaRelayArgs consumerGroupName + * @property {number|null} [maxWaitSeconds] KafkaRelayArgs maxWaitSeconds + * @property {number|null} [minBytes] KafkaRelayArgs minBytes + * @property {number|null} [maxBytes] KafkaRelayArgs maxBytes + * @property {number|null} [commitIntervalSeconds] KafkaRelayArgs commitIntervalSeconds + * @property {number|null} [rebalanceTimeoutSeconds] KafkaRelayArgs rebalanceTimeoutSeconds + * @property {number|null} [queueCapacity] KafkaRelayArgs queueCapacity */ /** - * Constructs a new RelayGroupRabbitOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupRabbitOptions. - * @implements IRelayGroupRabbitOptions + * Constructs a new KafkaRelayArgs. + * @memberof protos.args + * @classdesc Represents a KafkaRelayArgs. + * @implements IKafkaRelayArgs * @constructor - * @param {protos.opts.IRelayGroupRabbitOptions=} [properties] Properties to set + * @param {protos.args.IKafkaRelayArgs=} [properties] Properties to set */ - function RelayGroupRabbitOptions(properties) { + function KafkaRelayArgs(properties) { + this.topics = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8010,88 +6173,195 @@ $root.protos = (function() { } /** - * RelayGroupRabbitOptions _conn. - * @member {protos.args.IRabbitConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupRabbitOptions + * KafkaRelayArgs topics. + * @member {Array.} topics + * @memberof protos.args.KafkaRelayArgs * @instance */ - RelayGroupRabbitOptions.prototype._conn = null; + KafkaRelayArgs.prototype.topics = $util.emptyArray; /** - * RelayGroupRabbitOptions args. - * @member {protos.args.IRabbitReadArgs|null|undefined} args - * @memberof protos.opts.RelayGroupRabbitOptions + * KafkaRelayArgs readOffset. + * @member {number|Long} readOffset + * @memberof protos.args.KafkaRelayArgs + * @instance + */ + KafkaRelayArgs.prototype.readOffset = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * KafkaRelayArgs useConsumerGroup. + * @member {boolean} useConsumerGroup + * @memberof protos.args.KafkaRelayArgs * @instance */ - RelayGroupRabbitOptions.prototype.args = null; + KafkaRelayArgs.prototype.useConsumerGroup = false; + + /** + * KafkaRelayArgs consumerGroupName. + * @member {string} consumerGroupName + * @memberof protos.args.KafkaRelayArgs + * @instance + */ + KafkaRelayArgs.prototype.consumerGroupName = ""; + + /** + * KafkaRelayArgs maxWaitSeconds. + * @member {number} maxWaitSeconds + * @memberof protos.args.KafkaRelayArgs + * @instance + */ + KafkaRelayArgs.prototype.maxWaitSeconds = 0; + + /** + * KafkaRelayArgs minBytes. + * @member {number} minBytes + * @memberof protos.args.KafkaRelayArgs + * @instance + */ + KafkaRelayArgs.prototype.minBytes = 0; + + /** + * KafkaRelayArgs maxBytes. + * @member {number} maxBytes + * @memberof protos.args.KafkaRelayArgs + * @instance + */ + KafkaRelayArgs.prototype.maxBytes = 0; + + /** + * KafkaRelayArgs commitIntervalSeconds. + * @member {number} commitIntervalSeconds + * @memberof protos.args.KafkaRelayArgs + * @instance + */ + KafkaRelayArgs.prototype.commitIntervalSeconds = 0; + + /** + * KafkaRelayArgs rebalanceTimeoutSeconds. + * @member {number} rebalanceTimeoutSeconds + * @memberof protos.args.KafkaRelayArgs + * @instance + */ + KafkaRelayArgs.prototype.rebalanceTimeoutSeconds = 0; + + /** + * KafkaRelayArgs queueCapacity. + * @member {number} queueCapacity + * @memberof protos.args.KafkaRelayArgs + * @instance + */ + KafkaRelayArgs.prototype.queueCapacity = 0; /** - * Creates a new RelayGroupRabbitOptions instance using the specified properties. + * Creates a new KafkaRelayArgs instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupRabbitOptions + * @memberof protos.args.KafkaRelayArgs * @static - * @param {protos.opts.IRelayGroupRabbitOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupRabbitOptions} RelayGroupRabbitOptions instance + * @param {protos.args.IKafkaRelayArgs=} [properties] Properties to set + * @returns {protos.args.KafkaRelayArgs} KafkaRelayArgs instance */ - RelayGroupRabbitOptions.create = function create(properties) { - return new RelayGroupRabbitOptions(properties); + KafkaRelayArgs.create = function create(properties) { + return new KafkaRelayArgs(properties); }; /** - * Encodes the specified RelayGroupRabbitOptions message. Does not implicitly {@link protos.opts.RelayGroupRabbitOptions.verify|verify} messages. + * Encodes the specified KafkaRelayArgs message. Does not implicitly {@link protos.args.KafkaRelayArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupRabbitOptions + * @memberof protos.args.KafkaRelayArgs * @static - * @param {protos.opts.IRelayGroupRabbitOptions} message RelayGroupRabbitOptions message or plain object to encode + * @param {protos.args.IKafkaRelayArgs} message KafkaRelayArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupRabbitOptions.encode = function encode(message, writer) { + KafkaRelayArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RabbitConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RabbitReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.topics != null && message.topics.length) + for (var i = 0; i < message.topics.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topics[i]); + if (message.readOffset != null && Object.hasOwnProperty.call(message, "readOffset")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.readOffset); + if (message.useConsumerGroup != null && Object.hasOwnProperty.call(message, "useConsumerGroup")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useConsumerGroup); + if (message.consumerGroupName != null && Object.hasOwnProperty.call(message, "consumerGroupName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.consumerGroupName); + if (message.maxWaitSeconds != null && Object.hasOwnProperty.call(message, "maxWaitSeconds")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxWaitSeconds); + if (message.minBytes != null && Object.hasOwnProperty.call(message, "minBytes")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.minBytes); + if (message.maxBytes != null && Object.hasOwnProperty.call(message, "maxBytes")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.maxBytes); + if (message.commitIntervalSeconds != null && Object.hasOwnProperty.call(message, "commitIntervalSeconds")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.commitIntervalSeconds); + if (message.rebalanceTimeoutSeconds != null && Object.hasOwnProperty.call(message, "rebalanceTimeoutSeconds")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.rebalanceTimeoutSeconds); + if (message.queueCapacity != null && Object.hasOwnProperty.call(message, "queueCapacity")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.queueCapacity); return writer; }; /** - * Encodes the specified RelayGroupRabbitOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupRabbitOptions.verify|verify} messages. + * Encodes the specified KafkaRelayArgs message, length delimited. Does not implicitly {@link protos.args.KafkaRelayArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupRabbitOptions + * @memberof protos.args.KafkaRelayArgs * @static - * @param {protos.opts.IRelayGroupRabbitOptions} message RelayGroupRabbitOptions message or plain object to encode + * @param {protos.args.IKafkaRelayArgs} message KafkaRelayArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupRabbitOptions.encodeDelimited = function encodeDelimited(message, writer) { + KafkaRelayArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupRabbitOptions message from the specified reader or buffer. + * Decodes a KafkaRelayArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupRabbitOptions + * @memberof protos.args.KafkaRelayArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupRabbitOptions} RelayGroupRabbitOptions + * @returns {protos.args.KafkaRelayArgs} KafkaRelayArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupRabbitOptions.decode = function decode(reader, length) { + KafkaRelayArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupRabbitOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KafkaRelayArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.RabbitConn.decode(reader, reader.uint32()); + if (!(message.topics && message.topics.length)) + message.topics = []; + message.topics.push(reader.string()); break; case 2: - message.args = $root.protos.args.RabbitReadArgs.decode(reader, reader.uint32()); + message.readOffset = reader.int64(); + break; + case 3: + message.useConsumerGroup = reader.bool(); + break; + case 4: + message.consumerGroupName = reader.string(); + break; + case 5: + message.maxWaitSeconds = reader.int32(); + break; + case 6: + message.minBytes = reader.int32(); + break; + case 7: + message.maxBytes = reader.int32(); + break; + case 8: + message.commitIntervalSeconds = reader.int32(); + break; + case 9: + message.rebalanceTimeoutSeconds = reader.int32(); + break; + case 10: + message.queueCapacity = reader.int32(); break; default: reader.skipType(tag & 7); @@ -8102,127 +6372,210 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupRabbitOptions message from the specified reader or buffer, length delimited. + * Decodes a KafkaRelayArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupRabbitOptions + * @memberof protos.args.KafkaRelayArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupRabbitOptions} RelayGroupRabbitOptions + * @returns {protos.args.KafkaRelayArgs} KafkaRelayArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupRabbitOptions.decodeDelimited = function decodeDelimited(reader) { + KafkaRelayArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupRabbitOptions message. + * Verifies a KafkaRelayArgs message. * @function verify - * @memberof protos.opts.RelayGroupRabbitOptions + * @memberof protos.args.KafkaRelayArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupRabbitOptions.verify = function verify(message) { + KafkaRelayArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RabbitConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RabbitReadArgs.verify(message.args); - if (error) - return "args." + error; + if (message.topics != null && message.hasOwnProperty("topics")) { + if (!Array.isArray(message.topics)) + return "topics: array expected"; + for (var i = 0; i < message.topics.length; ++i) + if (!$util.isString(message.topics[i])) + return "topics: string[] expected"; } + if (message.readOffset != null && message.hasOwnProperty("readOffset")) + if (!$util.isInteger(message.readOffset) && !(message.readOffset && $util.isInteger(message.readOffset.low) && $util.isInteger(message.readOffset.high))) + return "readOffset: integer|Long expected"; + if (message.useConsumerGroup != null && message.hasOwnProperty("useConsumerGroup")) + if (typeof message.useConsumerGroup !== "boolean") + return "useConsumerGroup: boolean expected"; + if (message.consumerGroupName != null && message.hasOwnProperty("consumerGroupName")) + if (!$util.isString(message.consumerGroupName)) + return "consumerGroupName: string expected"; + if (message.maxWaitSeconds != null && message.hasOwnProperty("maxWaitSeconds")) + if (!$util.isInteger(message.maxWaitSeconds)) + return "maxWaitSeconds: integer expected"; + if (message.minBytes != null && message.hasOwnProperty("minBytes")) + if (!$util.isInteger(message.minBytes)) + return "minBytes: integer expected"; + if (message.maxBytes != null && message.hasOwnProperty("maxBytes")) + if (!$util.isInteger(message.maxBytes)) + return "maxBytes: integer expected"; + if (message.commitIntervalSeconds != null && message.hasOwnProperty("commitIntervalSeconds")) + if (!$util.isInteger(message.commitIntervalSeconds)) + return "commitIntervalSeconds: integer expected"; + if (message.rebalanceTimeoutSeconds != null && message.hasOwnProperty("rebalanceTimeoutSeconds")) + if (!$util.isInteger(message.rebalanceTimeoutSeconds)) + return "rebalanceTimeoutSeconds: integer expected"; + if (message.queueCapacity != null && message.hasOwnProperty("queueCapacity")) + if (!$util.isInteger(message.queueCapacity)) + return "queueCapacity: integer expected"; return null; }; /** - * Creates a RelayGroupRabbitOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KafkaRelayArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupRabbitOptions + * @memberof protos.args.KafkaRelayArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupRabbitOptions} RelayGroupRabbitOptions + * @returns {protos.args.KafkaRelayArgs} KafkaRelayArgs */ - RelayGroupRabbitOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupRabbitOptions) + KafkaRelayArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.KafkaRelayArgs) return object; - var message = new $root.protos.opts.RelayGroupRabbitOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupRabbitOptions._conn: object expected"); - message._conn = $root.protos.args.RabbitConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupRabbitOptions.args: object expected"); - message.args = $root.protos.args.RabbitReadArgs.fromObject(object.args); + var message = new $root.protos.args.KafkaRelayArgs(); + if (object.topics) { + if (!Array.isArray(object.topics)) + throw TypeError(".protos.args.KafkaRelayArgs.topics: array expected"); + message.topics = []; + for (var i = 0; i < object.topics.length; ++i) + message.topics[i] = String(object.topics[i]); } + if (object.readOffset != null) + if ($util.Long) + (message.readOffset = $util.Long.fromValue(object.readOffset)).unsigned = false; + else if (typeof object.readOffset === "string") + message.readOffset = parseInt(object.readOffset, 10); + else if (typeof object.readOffset === "number") + message.readOffset = object.readOffset; + else if (typeof object.readOffset === "object") + message.readOffset = new $util.LongBits(object.readOffset.low >>> 0, object.readOffset.high >>> 0).toNumber(); + if (object.useConsumerGroup != null) + message.useConsumerGroup = Boolean(object.useConsumerGroup); + if (object.consumerGroupName != null) + message.consumerGroupName = String(object.consumerGroupName); + if (object.maxWaitSeconds != null) + message.maxWaitSeconds = object.maxWaitSeconds | 0; + if (object.minBytes != null) + message.minBytes = object.minBytes | 0; + if (object.maxBytes != null) + message.maxBytes = object.maxBytes | 0; + if (object.commitIntervalSeconds != null) + message.commitIntervalSeconds = object.commitIntervalSeconds | 0; + if (object.rebalanceTimeoutSeconds != null) + message.rebalanceTimeoutSeconds = object.rebalanceTimeoutSeconds | 0; + if (object.queueCapacity != null) + message.queueCapacity = object.queueCapacity | 0; return message; }; /** - * Creates a plain object from a RelayGroupRabbitOptions message. Also converts values to other types if specified. + * Creates a plain object from a KafkaRelayArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupRabbitOptions + * @memberof protos.args.KafkaRelayArgs * @static - * @param {protos.opts.RelayGroupRabbitOptions} message RelayGroupRabbitOptions + * @param {protos.args.KafkaRelayArgs} message KafkaRelayArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupRabbitOptions.toObject = function toObject(message, options) { + KafkaRelayArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.topics = []; if (options.defaults) { - object._conn = null; - object.args = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.readOffset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.readOffset = options.longs === String ? "0" : 0; + object.useConsumerGroup = false; + object.consumerGroupName = ""; + object.maxWaitSeconds = 0; + object.minBytes = 0; + object.maxBytes = 0; + object.commitIntervalSeconds = 0; + object.rebalanceTimeoutSeconds = 0; + object.queueCapacity = 0; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RabbitConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RabbitReadArgs.toObject(message.args, options); + if (message.topics && message.topics.length) { + object.topics = []; + for (var j = 0; j < message.topics.length; ++j) + object.topics[j] = message.topics[j]; + } + if (message.readOffset != null && message.hasOwnProperty("readOffset")) + if (typeof message.readOffset === "number") + object.readOffset = options.longs === String ? String(message.readOffset) : message.readOffset; + else + object.readOffset = options.longs === String ? $util.Long.prototype.toString.call(message.readOffset) : options.longs === Number ? new $util.LongBits(message.readOffset.low >>> 0, message.readOffset.high >>> 0).toNumber() : message.readOffset; + if (message.useConsumerGroup != null && message.hasOwnProperty("useConsumerGroup")) + object.useConsumerGroup = message.useConsumerGroup; + if (message.consumerGroupName != null && message.hasOwnProperty("consumerGroupName")) + object.consumerGroupName = message.consumerGroupName; + if (message.maxWaitSeconds != null && message.hasOwnProperty("maxWaitSeconds")) + object.maxWaitSeconds = message.maxWaitSeconds; + if (message.minBytes != null && message.hasOwnProperty("minBytes")) + object.minBytes = message.minBytes; + if (message.maxBytes != null && message.hasOwnProperty("maxBytes")) + object.maxBytes = message.maxBytes; + if (message.commitIntervalSeconds != null && message.hasOwnProperty("commitIntervalSeconds")) + object.commitIntervalSeconds = message.commitIntervalSeconds; + if (message.rebalanceTimeoutSeconds != null && message.hasOwnProperty("rebalanceTimeoutSeconds")) + object.rebalanceTimeoutSeconds = message.rebalanceTimeoutSeconds; + if (message.queueCapacity != null && message.hasOwnProperty("queueCapacity")) + object.queueCapacity = message.queueCapacity; return object; }; /** - * Converts this RelayGroupRabbitOptions to JSON. + * Converts this KafkaRelayArgs to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupRabbitOptions + * @memberof protos.args.KafkaRelayArgs * @instance * @returns {Object.} JSON object */ - RelayGroupRabbitOptions.prototype.toJSON = function toJSON() { + KafkaRelayArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupRabbitOptions; + return KafkaRelayArgs; })(); - opts.RelayGroupRedisPubSubOptions = (function() { + args.KubeMQQueueConn = (function() { /** - * Properties of a RelayGroupRedisPubSubOptions. - * @memberof protos.opts - * @interface IRelayGroupRedisPubSubOptions - * @property {protos.args.IRedisPubSubConn|null} [_conn] RelayGroupRedisPubSubOptions _conn - * @property {protos.args.IRedisPubSubReadArgs|null} [args] RelayGroupRedisPubSubOptions args + * Properties of a KubeMQQueueConn. + * @memberof protos.args + * @interface IKubeMQQueueConn + * @property {string|null} [address] KubeMQQueueConn address + * @property {string|null} [authToken] KubeMQQueueConn authToken + * @property {string|null} [tlsClientCert] KubeMQQueueConn tlsClientCert + * @property {string|null} [clientId] KubeMQQueueConn clientId */ /** - * Constructs a new RelayGroupRedisPubSubOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupRedisPubSubOptions. - * @implements IRelayGroupRedisPubSubOptions + * Constructs a new KubeMQQueueConn. + * @memberof protos.args + * @classdesc Represents a KubeMQQueueConn. + * @implements IKubeMQQueueConn * @constructor - * @param {protos.opts.IRelayGroupRedisPubSubOptions=} [properties] Properties to set + * @param {protos.args.IKubeMQQueueConn=} [properties] Properties to set */ - function RelayGroupRedisPubSubOptions(properties) { + function KubeMQQueueConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8230,88 +6583,114 @@ $root.protos = (function() { } /** - * RelayGroupRedisPubSubOptions _conn. - * @member {protos.args.IRedisPubSubConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupRedisPubSubOptions + * KubeMQQueueConn address. + * @member {string} address + * @memberof protos.args.KubeMQQueueConn * @instance */ - RelayGroupRedisPubSubOptions.prototype._conn = null; + KubeMQQueueConn.prototype.address = ""; /** - * RelayGroupRedisPubSubOptions args. - * @member {protos.args.IRedisPubSubReadArgs|null|undefined} args - * @memberof protos.opts.RelayGroupRedisPubSubOptions + * KubeMQQueueConn authToken. + * @member {string} authToken + * @memberof protos.args.KubeMQQueueConn + * @instance + */ + KubeMQQueueConn.prototype.authToken = ""; + + /** + * KubeMQQueueConn tlsClientCert. + * @member {string} tlsClientCert + * @memberof protos.args.KubeMQQueueConn + * @instance + */ + KubeMQQueueConn.prototype.tlsClientCert = ""; + + /** + * KubeMQQueueConn clientId. + * @member {string} clientId + * @memberof protos.args.KubeMQQueueConn * @instance */ - RelayGroupRedisPubSubOptions.prototype.args = null; + KubeMQQueueConn.prototype.clientId = ""; /** - * Creates a new RelayGroupRedisPubSubOptions instance using the specified properties. + * Creates a new KubeMQQueueConn instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupRedisPubSubOptions + * @memberof protos.args.KubeMQQueueConn * @static - * @param {protos.opts.IRelayGroupRedisPubSubOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupRedisPubSubOptions} RelayGroupRedisPubSubOptions instance + * @param {protos.args.IKubeMQQueueConn=} [properties] Properties to set + * @returns {protos.args.KubeMQQueueConn} KubeMQQueueConn instance */ - RelayGroupRedisPubSubOptions.create = function create(properties) { - return new RelayGroupRedisPubSubOptions(properties); + KubeMQQueueConn.create = function create(properties) { + return new KubeMQQueueConn(properties); }; /** - * Encodes the specified RelayGroupRedisPubSubOptions message. Does not implicitly {@link protos.opts.RelayGroupRedisPubSubOptions.verify|verify} messages. + * Encodes the specified KubeMQQueueConn message. Does not implicitly {@link protos.args.KubeMQQueueConn.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupRedisPubSubOptions + * @memberof protos.args.KubeMQQueueConn * @static - * @param {protos.opts.IRelayGroupRedisPubSubOptions} message RelayGroupRedisPubSubOptions message or plain object to encode + * @param {protos.args.IKubeMQQueueConn} message KubeMQQueueConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupRedisPubSubOptions.encode = function encode(message, writer) { + KubeMQQueueConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RedisPubSubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RedisPubSubReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + if (message.authToken != null && Object.hasOwnProperty.call(message, "authToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.authToken); + if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tlsClientCert); + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.clientId); return writer; }; /** - * Encodes the specified RelayGroupRedisPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupRedisPubSubOptions.verify|verify} messages. + * Encodes the specified KubeMQQueueConn message, length delimited. Does not implicitly {@link protos.args.KubeMQQueueConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupRedisPubSubOptions + * @memberof protos.args.KubeMQQueueConn * @static - * @param {protos.opts.IRelayGroupRedisPubSubOptions} message RelayGroupRedisPubSubOptions message or plain object to encode + * @param {protos.args.IKubeMQQueueConn} message KubeMQQueueConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupRedisPubSubOptions.encodeDelimited = function encodeDelimited(message, writer) { + KubeMQQueueConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupRedisPubSubOptions message from the specified reader or buffer. + * Decodes a KubeMQQueueConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupRedisPubSubOptions + * @memberof protos.args.KubeMQQueueConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupRedisPubSubOptions} RelayGroupRedisPubSubOptions + * @returns {protos.args.KubeMQQueueConn} KubeMQQueueConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupRedisPubSubOptions.decode = function decode(reader, length) { + KubeMQQueueConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupRedisPubSubOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KubeMQQueueConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.RedisPubSubConn.decode(reader, reader.uint32()); + message.address = reader.string(); break; case 2: - message.args = $root.protos.args.RedisPubSubReadArgs.decode(reader, reader.uint32()); + message.authToken = reader.string(); + break; + case 3: + message.tlsClientCert = reader.string(); + break; + case 4: + message.clientId = reader.string(); break; default: reader.skipType(tag & 7); @@ -8322,127 +6701,132 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupRedisPubSubOptions message from the specified reader or buffer, length delimited. + * Decodes a KubeMQQueueConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupRedisPubSubOptions + * @memberof protos.args.KubeMQQueueConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupRedisPubSubOptions} RelayGroupRedisPubSubOptions + * @returns {protos.args.KubeMQQueueConn} KubeMQQueueConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupRedisPubSubOptions.decodeDelimited = function decodeDelimited(reader) { + KubeMQQueueConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupRedisPubSubOptions message. + * Verifies a KubeMQQueueConn message. * @function verify - * @memberof protos.opts.RelayGroupRedisPubSubOptions + * @memberof protos.args.KubeMQQueueConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupRedisPubSubOptions.verify = function verify(message) { + KubeMQQueueConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RedisPubSubConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RedisPubSubReadArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.authToken != null && message.hasOwnProperty("authToken")) + if (!$util.isString(message.authToken)) + return "authToken: string expected"; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + if (!$util.isString(message.tlsClientCert)) + return "tlsClientCert: string expected"; + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; return null; }; /** - * Creates a RelayGroupRedisPubSubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KubeMQQueueConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupRedisPubSubOptions + * @memberof protos.args.KubeMQQueueConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupRedisPubSubOptions} RelayGroupRedisPubSubOptions + * @returns {protos.args.KubeMQQueueConn} KubeMQQueueConn */ - RelayGroupRedisPubSubOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupRedisPubSubOptions) + KubeMQQueueConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.KubeMQQueueConn) return object; - var message = new $root.protos.opts.RelayGroupRedisPubSubOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupRedisPubSubOptions._conn: object expected"); - message._conn = $root.protos.args.RedisPubSubConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupRedisPubSubOptions.args: object expected"); - message.args = $root.protos.args.RedisPubSubReadArgs.fromObject(object.args); - } + var message = new $root.protos.args.KubeMQQueueConn(); + if (object.address != null) + message.address = String(object.address); + if (object.authToken != null) + message.authToken = String(object.authToken); + if (object.tlsClientCert != null) + message.tlsClientCert = String(object.tlsClientCert); + if (object.clientId != null) + message.clientId = String(object.clientId); return message; }; /** - * Creates a plain object from a RelayGroupRedisPubSubOptions message. Also converts values to other types if specified. + * Creates a plain object from a KubeMQQueueConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupRedisPubSubOptions + * @memberof protos.args.KubeMQQueueConn * @static - * @param {protos.opts.RelayGroupRedisPubSubOptions} message RelayGroupRedisPubSubOptions + * @param {protos.args.KubeMQQueueConn} message KubeMQQueueConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupRedisPubSubOptions.toObject = function toObject(message, options) { + KubeMQQueueConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.address = ""; + object.authToken = ""; + object.tlsClientCert = ""; + object.clientId = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RedisPubSubConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RedisPubSubReadArgs.toObject(message.args, options); + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.authToken != null && message.hasOwnProperty("authToken")) + object.authToken = message.authToken; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + object.tlsClientCert = message.tlsClientCert; + if (message.clientId != null && message.hasOwnProperty("clientId")) + object.clientId = message.clientId; return object; }; /** - * Converts this RelayGroupRedisPubSubOptions to JSON. + * Converts this KubeMQQueueConn to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupRedisPubSubOptions + * @memberof protos.args.KubeMQQueueConn * @instance * @returns {Object.} JSON object */ - RelayGroupRedisPubSubOptions.prototype.toJSON = function toJSON() { + KubeMQQueueConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupRedisPubSubOptions; + return KubeMQQueueConn; })(); - opts.RelayGroupRedisStreamsOptions = (function() { + args.KubeMQQueueReadArgs = (function() { /** - * Properties of a RelayGroupRedisStreamsOptions. - * @memberof protos.opts - * @interface IRelayGroupRedisStreamsOptions - * @property {protos.args.IRedisStreamsConn|null} [_conn] RelayGroupRedisStreamsOptions _conn - * @property {protos.args.IRedisStreamsReadArgs|null} [args] RelayGroupRedisStreamsOptions args + * Properties of a KubeMQQueueReadArgs. + * @memberof protos.args + * @interface IKubeMQQueueReadArgs + * @property {string|null} [queueName] KubeMQQueueReadArgs queueName */ /** - * Constructs a new RelayGroupRedisStreamsOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupRedisStreamsOptions. - * @implements IRelayGroupRedisStreamsOptions - * @constructor - * @param {protos.opts.IRelayGroupRedisStreamsOptions=} [properties] Properties to set - */ - function RelayGroupRedisStreamsOptions(properties) { + * Constructs a new KubeMQQueueReadArgs. + * @memberof protos.args + * @classdesc Represents a KubeMQQueueReadArgs. + * @implements IKubeMQQueueReadArgs + * @constructor + * @param {protos.args.IKubeMQQueueReadArgs=} [properties] Properties to set + */ + function KubeMQQueueReadArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8450,88 +6834,75 @@ $root.protos = (function() { } /** - * RelayGroupRedisStreamsOptions _conn. - * @member {protos.args.IRedisStreamsConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupRedisStreamsOptions - * @instance - */ - RelayGroupRedisStreamsOptions.prototype._conn = null; - - /** - * RelayGroupRedisStreamsOptions args. - * @member {protos.args.IRedisStreamsReadArgs|null|undefined} args - * @memberof protos.opts.RelayGroupRedisStreamsOptions + * KubeMQQueueReadArgs queueName. + * @member {string} queueName + * @memberof protos.args.KubeMQQueueReadArgs * @instance */ - RelayGroupRedisStreamsOptions.prototype.args = null; + KubeMQQueueReadArgs.prototype.queueName = ""; /** - * Creates a new RelayGroupRedisStreamsOptions instance using the specified properties. + * Creates a new KubeMQQueueReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupRedisStreamsOptions + * @memberof protos.args.KubeMQQueueReadArgs * @static - * @param {protos.opts.IRelayGroupRedisStreamsOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupRedisStreamsOptions} RelayGroupRedisStreamsOptions instance + * @param {protos.args.IKubeMQQueueReadArgs=} [properties] Properties to set + * @returns {protos.args.KubeMQQueueReadArgs} KubeMQQueueReadArgs instance */ - RelayGroupRedisStreamsOptions.create = function create(properties) { - return new RelayGroupRedisStreamsOptions(properties); + KubeMQQueueReadArgs.create = function create(properties) { + return new KubeMQQueueReadArgs(properties); }; /** - * Encodes the specified RelayGroupRedisStreamsOptions message. Does not implicitly {@link protos.opts.RelayGroupRedisStreamsOptions.verify|verify} messages. + * Encodes the specified KubeMQQueueReadArgs message. Does not implicitly {@link protos.args.KubeMQQueueReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupRedisStreamsOptions + * @memberof protos.args.KubeMQQueueReadArgs * @static - * @param {protos.opts.IRelayGroupRedisStreamsOptions} message RelayGroupRedisStreamsOptions message or plain object to encode + * @param {protos.args.IKubeMQQueueReadArgs} message KubeMQQueueReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupRedisStreamsOptions.encode = function encode(message, writer) { + KubeMQQueueReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RedisStreamsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RedisStreamsReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queueName != null && Object.hasOwnProperty.call(message, "queueName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.queueName); return writer; }; /** - * Encodes the specified RelayGroupRedisStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupRedisStreamsOptions.verify|verify} messages. + * Encodes the specified KubeMQQueueReadArgs message, length delimited. Does not implicitly {@link protos.args.KubeMQQueueReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupRedisStreamsOptions + * @memberof protos.args.KubeMQQueueReadArgs * @static - * @param {protos.opts.IRelayGroupRedisStreamsOptions} message RelayGroupRedisStreamsOptions message or plain object to encode + * @param {protos.args.IKubeMQQueueReadArgs} message KubeMQQueueReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupRedisStreamsOptions.encodeDelimited = function encodeDelimited(message, writer) { + KubeMQQueueReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupRedisStreamsOptions message from the specified reader or buffer. + * Decodes a KubeMQQueueReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupRedisStreamsOptions + * @memberof protos.args.KubeMQQueueReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupRedisStreamsOptions} RelayGroupRedisStreamsOptions + * @returns {protos.args.KubeMQQueueReadArgs} KubeMQQueueReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupRedisStreamsOptions.decode = function decode(reader, length) { + KubeMQQueueReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupRedisStreamsOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KubeMQQueueReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.RedisStreamsConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.RedisStreamsReadArgs.decode(reader, reader.uint32()); + message.queueName = reader.string(); break; default: reader.skipType(tag & 7); @@ -8542,127 +6913,107 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupRedisStreamsOptions message from the specified reader or buffer, length delimited. + * Decodes a KubeMQQueueReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupRedisStreamsOptions + * @memberof protos.args.KubeMQQueueReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupRedisStreamsOptions} RelayGroupRedisStreamsOptions + * @returns {protos.args.KubeMQQueueReadArgs} KubeMQQueueReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupRedisStreamsOptions.decodeDelimited = function decodeDelimited(reader) { + KubeMQQueueReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupRedisStreamsOptions message. + * Verifies a KubeMQQueueReadArgs message. * @function verify - * @memberof protos.opts.RelayGroupRedisStreamsOptions + * @memberof protos.args.KubeMQQueueReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupRedisStreamsOptions.verify = function verify(message) { + KubeMQQueueReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RedisStreamsConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RedisStreamsReadArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.queueName != null && message.hasOwnProperty("queueName")) + if (!$util.isString(message.queueName)) + return "queueName: string expected"; return null; }; /** - * Creates a RelayGroupRedisStreamsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KubeMQQueueReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupRedisStreamsOptions + * @memberof protos.args.KubeMQQueueReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupRedisStreamsOptions} RelayGroupRedisStreamsOptions + * @returns {protos.args.KubeMQQueueReadArgs} KubeMQQueueReadArgs */ - RelayGroupRedisStreamsOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupRedisStreamsOptions) + KubeMQQueueReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.KubeMQQueueReadArgs) return object; - var message = new $root.protos.opts.RelayGroupRedisStreamsOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupRedisStreamsOptions._conn: object expected"); - message._conn = $root.protos.args.RedisStreamsConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupRedisStreamsOptions.args: object expected"); - message.args = $root.protos.args.RedisStreamsReadArgs.fromObject(object.args); - } + var message = new $root.protos.args.KubeMQQueueReadArgs(); + if (object.queueName != null) + message.queueName = String(object.queueName); return message; }; /** - * Creates a plain object from a RelayGroupRedisStreamsOptions message. Also converts values to other types if specified. + * Creates a plain object from a KubeMQQueueReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupRedisStreamsOptions + * @memberof protos.args.KubeMQQueueReadArgs * @static - * @param {protos.opts.RelayGroupRedisStreamsOptions} message RelayGroupRedisStreamsOptions + * @param {protos.args.KubeMQQueueReadArgs} message KubeMQQueueReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupRedisStreamsOptions.toObject = function toObject(message, options) { + KubeMQQueueReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RedisStreamsConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RedisStreamsReadArgs.toObject(message.args, options); + if (options.defaults) + object.queueName = ""; + if (message.queueName != null && message.hasOwnProperty("queueName")) + object.queueName = message.queueName; return object; }; /** - * Converts this RelayGroupRedisStreamsOptions to JSON. + * Converts this KubeMQQueueReadArgs to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupRedisStreamsOptions + * @memberof protos.args.KubeMQQueueReadArgs * @instance * @returns {Object.} JSON object */ - RelayGroupRedisStreamsOptions.prototype.toJSON = function toJSON() { + KubeMQQueueReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupRedisStreamsOptions; + return KubeMQQueueReadArgs; })(); - opts.RelayGroupAzureServiceBusOptions = (function() { + args.KubeMQQueueWriteArgs = (function() { /** - * Properties of a RelayGroupAzureServiceBusOptions. - * @memberof protos.opts - * @interface IRelayGroupAzureServiceBusOptions - * @property {protos.args.IAzureServiceBusConn|null} [_conn] RelayGroupAzureServiceBusOptions _conn - * @property {protos.args.IAzureServiceBusReadArgs|null} [args] RelayGroupAzureServiceBusOptions args + * Properties of a KubeMQQueueWriteArgs. + * @memberof protos.args + * @interface IKubeMQQueueWriteArgs + * @property {string|null} [queueName] KubeMQQueueWriteArgs queueName */ /** - * Constructs a new RelayGroupAzureServiceBusOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupAzureServiceBusOptions. - * @implements IRelayGroupAzureServiceBusOptions + * Constructs a new KubeMQQueueWriteArgs. + * @memberof protos.args + * @classdesc Represents a KubeMQQueueWriteArgs. + * @implements IKubeMQQueueWriteArgs * @constructor - * @param {protos.opts.IRelayGroupAzureServiceBusOptions=} [properties] Properties to set + * @param {protos.args.IKubeMQQueueWriteArgs=} [properties] Properties to set */ - function RelayGroupAzureServiceBusOptions(properties) { + function KubeMQQueueWriteArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8670,88 +7021,75 @@ $root.protos = (function() { } /** - * RelayGroupAzureServiceBusOptions _conn. - * @member {protos.args.IAzureServiceBusConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupAzureServiceBusOptions - * @instance - */ - RelayGroupAzureServiceBusOptions.prototype._conn = null; - - /** - * RelayGroupAzureServiceBusOptions args. - * @member {protos.args.IAzureServiceBusReadArgs|null|undefined} args - * @memberof protos.opts.RelayGroupAzureServiceBusOptions + * KubeMQQueueWriteArgs queueName. + * @member {string} queueName + * @memberof protos.args.KubeMQQueueWriteArgs * @instance */ - RelayGroupAzureServiceBusOptions.prototype.args = null; + KubeMQQueueWriteArgs.prototype.queueName = ""; /** - * Creates a new RelayGroupAzureServiceBusOptions instance using the specified properties. + * Creates a new KubeMQQueueWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupAzureServiceBusOptions + * @memberof protos.args.KubeMQQueueWriteArgs * @static - * @param {protos.opts.IRelayGroupAzureServiceBusOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupAzureServiceBusOptions} RelayGroupAzureServiceBusOptions instance + * @param {protos.args.IKubeMQQueueWriteArgs=} [properties] Properties to set + * @returns {protos.args.KubeMQQueueWriteArgs} KubeMQQueueWriteArgs instance */ - RelayGroupAzureServiceBusOptions.create = function create(properties) { - return new RelayGroupAzureServiceBusOptions(properties); + KubeMQQueueWriteArgs.create = function create(properties) { + return new KubeMQQueueWriteArgs(properties); }; /** - * Encodes the specified RelayGroupAzureServiceBusOptions message. Does not implicitly {@link protos.opts.RelayGroupAzureServiceBusOptions.verify|verify} messages. + * Encodes the specified KubeMQQueueWriteArgs message. Does not implicitly {@link protos.args.KubeMQQueueWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupAzureServiceBusOptions + * @memberof protos.args.KubeMQQueueWriteArgs * @static - * @param {protos.opts.IRelayGroupAzureServiceBusOptions} message RelayGroupAzureServiceBusOptions message or plain object to encode + * @param {protos.args.IKubeMQQueueWriteArgs} message KubeMQQueueWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupAzureServiceBusOptions.encode = function encode(message, writer) { + KubeMQQueueWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AzureServiceBusConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AzureServiceBusReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.queueName != null && Object.hasOwnProperty.call(message, "queueName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.queueName); return writer; }; /** - * Encodes the specified RelayGroupAzureServiceBusOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupAzureServiceBusOptions.verify|verify} messages. + * Encodes the specified KubeMQQueueWriteArgs message, length delimited. Does not implicitly {@link protos.args.KubeMQQueueWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupAzureServiceBusOptions + * @memberof protos.args.KubeMQQueueWriteArgs * @static - * @param {protos.opts.IRelayGroupAzureServiceBusOptions} message RelayGroupAzureServiceBusOptions message or plain object to encode + * @param {protos.args.IKubeMQQueueWriteArgs} message KubeMQQueueWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupAzureServiceBusOptions.encodeDelimited = function encodeDelimited(message, writer) { + KubeMQQueueWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupAzureServiceBusOptions message from the specified reader or buffer. + * Decodes a KubeMQQueueWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupAzureServiceBusOptions + * @memberof protos.args.KubeMQQueueWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupAzureServiceBusOptions} RelayGroupAzureServiceBusOptions + * @returns {protos.args.KubeMQQueueWriteArgs} KubeMQQueueWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupAzureServiceBusOptions.decode = function decode(reader, length) { + KubeMQQueueWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupAzureServiceBusOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KubeMQQueueWriteArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.AzureServiceBusConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.AzureServiceBusReadArgs.decode(reader, reader.uint32()); + message.queueName = reader.string(); break; default: reader.skipType(tag & 7); @@ -8762,127 +7100,109 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupAzureServiceBusOptions message from the specified reader or buffer, length delimited. + * Decodes a KubeMQQueueWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupAzureServiceBusOptions + * @memberof protos.args.KubeMQQueueWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupAzureServiceBusOptions} RelayGroupAzureServiceBusOptions + * @returns {protos.args.KubeMQQueueWriteArgs} KubeMQQueueWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupAzureServiceBusOptions.decodeDelimited = function decodeDelimited(reader) { + KubeMQQueueWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupAzureServiceBusOptions message. + * Verifies a KubeMQQueueWriteArgs message. * @function verify - * @memberof protos.opts.RelayGroupAzureServiceBusOptions + * @memberof protos.args.KubeMQQueueWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupAzureServiceBusOptions.verify = function verify(message) { + KubeMQQueueWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AzureServiceBusConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AzureServiceBusReadArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.queueName != null && message.hasOwnProperty("queueName")) + if (!$util.isString(message.queueName)) + return "queueName: string expected"; return null; }; /** - * Creates a RelayGroupAzureServiceBusOptions message from a plain object. Also converts values to their respective internal types. + * Creates a KubeMQQueueWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupAzureServiceBusOptions + * @memberof protos.args.KubeMQQueueWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupAzureServiceBusOptions} RelayGroupAzureServiceBusOptions + * @returns {protos.args.KubeMQQueueWriteArgs} KubeMQQueueWriteArgs */ - RelayGroupAzureServiceBusOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupAzureServiceBusOptions) + KubeMQQueueWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.KubeMQQueueWriteArgs) return object; - var message = new $root.protos.opts.RelayGroupAzureServiceBusOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupAzureServiceBusOptions._conn: object expected"); - message._conn = $root.protos.args.AzureServiceBusConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupAzureServiceBusOptions.args: object expected"); - message.args = $root.protos.args.AzureServiceBusReadArgs.fromObject(object.args); - } + var message = new $root.protos.args.KubeMQQueueWriteArgs(); + if (object.queueName != null) + message.queueName = String(object.queueName); return message; }; /** - * Creates a plain object from a RelayGroupAzureServiceBusOptions message. Also converts values to other types if specified. + * Creates a plain object from a KubeMQQueueWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupAzureServiceBusOptions + * @memberof protos.args.KubeMQQueueWriteArgs * @static - * @param {protos.opts.RelayGroupAzureServiceBusOptions} message RelayGroupAzureServiceBusOptions + * @param {protos.args.KubeMQQueueWriteArgs} message KubeMQQueueWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupAzureServiceBusOptions.toObject = function toObject(message, options) { + KubeMQQueueWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AzureServiceBusConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AzureServiceBusReadArgs.toObject(message.args, options); + if (options.defaults) + object.queueName = ""; + if (message.queueName != null && message.hasOwnProperty("queueName")) + object.queueName = message.queueName; return object; }; /** - * Converts this RelayGroupAzureServiceBusOptions to JSON. + * Converts this KubeMQQueueWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupAzureServiceBusOptions + * @memberof protos.args.KubeMQQueueWriteArgs * @instance * @returns {Object.} JSON object */ - RelayGroupAzureServiceBusOptions.prototype.toJSON = function toJSON() { + KubeMQQueueWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupAzureServiceBusOptions; + return KubeMQQueueWriteArgs; })(); - opts.RelayGroupMQTTOptions = (function() { + args.MemphisConn = (function() { /** - * Properties of a RelayGroupMQTTOptions. - * @memberof protos.opts - * @interface IRelayGroupMQTTOptions - * @property {protos.args.IMQTTConn|null} [_conn] RelayGroupMQTTOptions _conn - * @property {protos.args.IMQTTReadArgs|null} [args] RelayGroupMQTTOptions args + * Properties of a MemphisConn. + * @memberof protos.args + * @interface IMemphisConn + * @property {string|null} [address] MemphisConn address + * @property {string|null} [username] MemphisConn username + * @property {string|null} [brokerToken] MemphisConn brokerToken */ /** - * Constructs a new RelayGroupMQTTOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupMQTTOptions. - * @implements IRelayGroupMQTTOptions + * Constructs a new MemphisConn. + * @memberof protos.args + * @classdesc Represents a MemphisConn. + * @implements IMemphisConn * @constructor - * @param {protos.opts.IRelayGroupMQTTOptions=} [properties] Properties to set + * @param {protos.args.IMemphisConn=} [properties] Properties to set */ - function RelayGroupMQTTOptions(properties) { + function MemphisConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8890,88 +7210,101 @@ $root.protos = (function() { } /** - * RelayGroupMQTTOptions _conn. - * @member {protos.args.IMQTTConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupMQTTOptions + * MemphisConn address. + * @member {string} address + * @memberof protos.args.MemphisConn * @instance */ - RelayGroupMQTTOptions.prototype._conn = null; + MemphisConn.prototype.address = ""; /** - * RelayGroupMQTTOptions args. - * @member {protos.args.IMQTTReadArgs|null|undefined} args - * @memberof protos.opts.RelayGroupMQTTOptions + * MemphisConn username. + * @member {string} username + * @memberof protos.args.MemphisConn + * @instance + */ + MemphisConn.prototype.username = ""; + + /** + * MemphisConn brokerToken. + * @member {string} brokerToken + * @memberof protos.args.MemphisConn * @instance */ - RelayGroupMQTTOptions.prototype.args = null; + MemphisConn.prototype.brokerToken = ""; /** - * Creates a new RelayGroupMQTTOptions instance using the specified properties. + * Creates a new MemphisConn instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupMQTTOptions + * @memberof protos.args.MemphisConn * @static - * @param {protos.opts.IRelayGroupMQTTOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupMQTTOptions} RelayGroupMQTTOptions instance + * @param {protos.args.IMemphisConn=} [properties] Properties to set + * @returns {protos.args.MemphisConn} MemphisConn instance */ - RelayGroupMQTTOptions.create = function create(properties) { - return new RelayGroupMQTTOptions(properties); + MemphisConn.create = function create(properties) { + return new MemphisConn(properties); }; /** - * Encodes the specified RelayGroupMQTTOptions message. Does not implicitly {@link protos.opts.RelayGroupMQTTOptions.verify|verify} messages. + * Encodes the specified MemphisConn message. Does not implicitly {@link protos.args.MemphisConn.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupMQTTOptions + * @memberof protos.args.MemphisConn * @static - * @param {protos.opts.IRelayGroupMQTTOptions} message RelayGroupMQTTOptions message or plain object to encode + * @param {protos.args.IMemphisConn} message MemphisConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupMQTTOptions.encode = function encode(message, writer) { + MemphisConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.MQTTConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.MQTTReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); + if (message.brokerToken != null && Object.hasOwnProperty.call(message, "brokerToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.brokerToken); return writer; }; /** - * Encodes the specified RelayGroupMQTTOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupMQTTOptions.verify|verify} messages. + * Encodes the specified MemphisConn message, length delimited. Does not implicitly {@link protos.args.MemphisConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupMQTTOptions + * @memberof protos.args.MemphisConn * @static - * @param {protos.opts.IRelayGroupMQTTOptions} message RelayGroupMQTTOptions message or plain object to encode + * @param {protos.args.IMemphisConn} message MemphisConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupMQTTOptions.encodeDelimited = function encodeDelimited(message, writer) { + MemphisConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupMQTTOptions message from the specified reader or buffer. + * Decodes a MemphisConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupMQTTOptions + * @memberof protos.args.MemphisConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupMQTTOptions} RelayGroupMQTTOptions + * @returns {protos.args.MemphisConn} MemphisConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupMQTTOptions.decode = function decode(reader, length) { + MemphisConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupMQTTOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MemphisConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.MQTTConn.decode(reader, reader.uint32()); + message.address = reader.string(); break; case 2: - message.args = $root.protos.args.MQTTReadArgs.decode(reader, reader.uint32()); + message.username = reader.string(); + break; + case 3: + message.brokerToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -8982,127 +7315,126 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupMQTTOptions message from the specified reader or buffer, length delimited. + * Decodes a MemphisConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupMQTTOptions + * @memberof protos.args.MemphisConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupMQTTOptions} RelayGroupMQTTOptions + * @returns {protos.args.MemphisConn} MemphisConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupMQTTOptions.decodeDelimited = function decodeDelimited(reader) { + MemphisConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupMQTTOptions message. + * Verifies a MemphisConn message. * @function verify - * @memberof protos.opts.RelayGroupMQTTOptions + * @memberof protos.args.MemphisConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupMQTTOptions.verify = function verify(message) { + MemphisConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.MQTTConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.MQTTReadArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.brokerToken != null && message.hasOwnProperty("brokerToken")) + if (!$util.isString(message.brokerToken)) + return "brokerToken: string expected"; return null; }; /** - * Creates a RelayGroupMQTTOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MemphisConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupMQTTOptions + * @memberof protos.args.MemphisConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupMQTTOptions} RelayGroupMQTTOptions + * @returns {protos.args.MemphisConn} MemphisConn */ - RelayGroupMQTTOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupMQTTOptions) + MemphisConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.MemphisConn) return object; - var message = new $root.protos.opts.RelayGroupMQTTOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupMQTTOptions._conn: object expected"); - message._conn = $root.protos.args.MQTTConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupMQTTOptions.args: object expected"); - message.args = $root.protos.args.MQTTReadArgs.fromObject(object.args); - } + var message = new $root.protos.args.MemphisConn(); + if (object.address != null) + message.address = String(object.address); + if (object.username != null) + message.username = String(object.username); + if (object.brokerToken != null) + message.brokerToken = String(object.brokerToken); return message; }; /** - * Creates a plain object from a RelayGroupMQTTOptions message. Also converts values to other types if specified. + * Creates a plain object from a MemphisConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupMQTTOptions + * @memberof protos.args.MemphisConn * @static - * @param {protos.opts.RelayGroupMQTTOptions} message RelayGroupMQTTOptions + * @param {protos.args.MemphisConn} message MemphisConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupMQTTOptions.toObject = function toObject(message, options) { + MemphisConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.address = ""; + object.username = ""; + object.brokerToken = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.MQTTConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.MQTTReadArgs.toObject(message.args, options); + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.brokerToken != null && message.hasOwnProperty("brokerToken")) + object.brokerToken = message.brokerToken; return object; }; /** - * Converts this RelayGroupMQTTOptions to JSON. + * Converts this MemphisConn to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupMQTTOptions + * @memberof protos.args.MemphisConn * @instance * @returns {Object.} JSON object */ - RelayGroupMQTTOptions.prototype.toJSON = function toJSON() { + MemphisConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupMQTTOptions; + return MemphisConn; })(); - opts.RelayGroupGCPPubSubOptions = (function() { + args.MemphisReadArgs = (function() { /** - * Properties of a RelayGroupGCPPubSubOptions. - * @memberof protos.opts - * @interface IRelayGroupGCPPubSubOptions - * @property {protos.args.IGCPPubSubConn|null} [_conn] RelayGroupGCPPubSubOptions _conn - * @property {protos.args.IGCPPubSubReadArgs|null} [args] RelayGroupGCPPubSubOptions args + * Properties of a MemphisReadArgs. + * @memberof protos.args + * @interface IMemphisReadArgs + * @property {string|null} [station] MemphisReadArgs station + * @property {string|null} [consumerName] MemphisReadArgs consumerName + * @property {string|null} [consumerGroup] MemphisReadArgs consumerGroup */ /** - * Constructs a new RelayGroupGCPPubSubOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupGCPPubSubOptions. - * @implements IRelayGroupGCPPubSubOptions + * Constructs a new MemphisReadArgs. + * @memberof protos.args + * @classdesc Represents a MemphisReadArgs. + * @implements IMemphisReadArgs * @constructor - * @param {protos.opts.IRelayGroupGCPPubSubOptions=} [properties] Properties to set + * @param {protos.args.IMemphisReadArgs=} [properties] Properties to set */ - function RelayGroupGCPPubSubOptions(properties) { + function MemphisReadArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9110,88 +7442,101 @@ $root.protos = (function() { } /** - * RelayGroupGCPPubSubOptions _conn. - * @member {protos.args.IGCPPubSubConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupGCPPubSubOptions + * MemphisReadArgs station. + * @member {string} station + * @memberof protos.args.MemphisReadArgs * @instance */ - RelayGroupGCPPubSubOptions.prototype._conn = null; + MemphisReadArgs.prototype.station = ""; /** - * RelayGroupGCPPubSubOptions args. - * @member {protos.args.IGCPPubSubReadArgs|null|undefined} args - * @memberof protos.opts.RelayGroupGCPPubSubOptions + * MemphisReadArgs consumerName. + * @member {string} consumerName + * @memberof protos.args.MemphisReadArgs + * @instance + */ + MemphisReadArgs.prototype.consumerName = ""; + + /** + * MemphisReadArgs consumerGroup. + * @member {string} consumerGroup + * @memberof protos.args.MemphisReadArgs * @instance */ - RelayGroupGCPPubSubOptions.prototype.args = null; + MemphisReadArgs.prototype.consumerGroup = ""; /** - * Creates a new RelayGroupGCPPubSubOptions instance using the specified properties. + * Creates a new MemphisReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupGCPPubSubOptions + * @memberof protos.args.MemphisReadArgs * @static - * @param {protos.opts.IRelayGroupGCPPubSubOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupGCPPubSubOptions} RelayGroupGCPPubSubOptions instance + * @param {protos.args.IMemphisReadArgs=} [properties] Properties to set + * @returns {protos.args.MemphisReadArgs} MemphisReadArgs instance */ - RelayGroupGCPPubSubOptions.create = function create(properties) { - return new RelayGroupGCPPubSubOptions(properties); + MemphisReadArgs.create = function create(properties) { + return new MemphisReadArgs(properties); }; /** - * Encodes the specified RelayGroupGCPPubSubOptions message. Does not implicitly {@link protos.opts.RelayGroupGCPPubSubOptions.verify|verify} messages. + * Encodes the specified MemphisReadArgs message. Does not implicitly {@link protos.args.MemphisReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupGCPPubSubOptions + * @memberof protos.args.MemphisReadArgs * @static - * @param {protos.opts.IRelayGroupGCPPubSubOptions} message RelayGroupGCPPubSubOptions message or plain object to encode + * @param {protos.args.IMemphisReadArgs} message MemphisReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupGCPPubSubOptions.encode = function encode(message, writer) { + MemphisReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.GCPPubSubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.GCPPubSubReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.station != null && Object.hasOwnProperty.call(message, "station")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.station); + if (message.consumerName != null && Object.hasOwnProperty.call(message, "consumerName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.consumerName); + if (message.consumerGroup != null && Object.hasOwnProperty.call(message, "consumerGroup")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.consumerGroup); return writer; }; /** - * Encodes the specified RelayGroupGCPPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupGCPPubSubOptions.verify|verify} messages. + * Encodes the specified MemphisReadArgs message, length delimited. Does not implicitly {@link protos.args.MemphisReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupGCPPubSubOptions + * @memberof protos.args.MemphisReadArgs * @static - * @param {protos.opts.IRelayGroupGCPPubSubOptions} message RelayGroupGCPPubSubOptions message or plain object to encode + * @param {protos.args.IMemphisReadArgs} message MemphisReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupGCPPubSubOptions.encodeDelimited = function encodeDelimited(message, writer) { + MemphisReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupGCPPubSubOptions message from the specified reader or buffer. + * Decodes a MemphisReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupGCPPubSubOptions + * @memberof protos.args.MemphisReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupGCPPubSubOptions} RelayGroupGCPPubSubOptions + * @returns {protos.args.MemphisReadArgs} MemphisReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupGCPPubSubOptions.decode = function decode(reader, length) { + MemphisReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupGCPPubSubOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MemphisReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.GCPPubSubConn.decode(reader, reader.uint32()); + message.station = reader.string(); break; case 2: - message.args = $root.protos.args.GCPPubSubReadArgs.decode(reader, reader.uint32()); + message.consumerName = reader.string(); + break; + case 3: + message.consumerGroup = reader.string(); break; default: reader.skipType(tag & 7); @@ -9202,127 +7547,128 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupGCPPubSubOptions message from the specified reader or buffer, length delimited. + * Decodes a MemphisReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupGCPPubSubOptions + * @memberof protos.args.MemphisReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupGCPPubSubOptions} RelayGroupGCPPubSubOptions + * @returns {protos.args.MemphisReadArgs} MemphisReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupGCPPubSubOptions.decodeDelimited = function decodeDelimited(reader) { + MemphisReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupGCPPubSubOptions message. + * Verifies a MemphisReadArgs message. * @function verify - * @memberof protos.opts.RelayGroupGCPPubSubOptions + * @memberof protos.args.MemphisReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupGCPPubSubOptions.verify = function verify(message) { + MemphisReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.GCPPubSubConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.GCPPubSubReadArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.station != null && message.hasOwnProperty("station")) + if (!$util.isString(message.station)) + return "station: string expected"; + if (message.consumerName != null && message.hasOwnProperty("consumerName")) + if (!$util.isString(message.consumerName)) + return "consumerName: string expected"; + if (message.consumerGroup != null && message.hasOwnProperty("consumerGroup")) + if (!$util.isString(message.consumerGroup)) + return "consumerGroup: string expected"; return null; }; /** - * Creates a RelayGroupGCPPubSubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MemphisReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupGCPPubSubOptions + * @memberof protos.args.MemphisReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupGCPPubSubOptions} RelayGroupGCPPubSubOptions + * @returns {protos.args.MemphisReadArgs} MemphisReadArgs */ - RelayGroupGCPPubSubOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupGCPPubSubOptions) + MemphisReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.MemphisReadArgs) return object; - var message = new $root.protos.opts.RelayGroupGCPPubSubOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupGCPPubSubOptions._conn: object expected"); - message._conn = $root.protos.args.GCPPubSubConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupGCPPubSubOptions.args: object expected"); - message.args = $root.protos.args.GCPPubSubReadArgs.fromObject(object.args); - } + var message = new $root.protos.args.MemphisReadArgs(); + if (object.station != null) + message.station = String(object.station); + if (object.consumerName != null) + message.consumerName = String(object.consumerName); + if (object.consumerGroup != null) + message.consumerGroup = String(object.consumerGroup); return message; }; /** - * Creates a plain object from a RelayGroupGCPPubSubOptions message. Also converts values to other types if specified. + * Creates a plain object from a MemphisReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupGCPPubSubOptions + * @memberof protos.args.MemphisReadArgs * @static - * @param {protos.opts.RelayGroupGCPPubSubOptions} message RelayGroupGCPPubSubOptions + * @param {protos.args.MemphisReadArgs} message MemphisReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupGCPPubSubOptions.toObject = function toObject(message, options) { + MemphisReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.station = ""; + object.consumerName = ""; + object.consumerGroup = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.GCPPubSubConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.GCPPubSubReadArgs.toObject(message.args, options); + if (message.station != null && message.hasOwnProperty("station")) + object.station = message.station; + if (message.consumerName != null && message.hasOwnProperty("consumerName")) + object.consumerName = message.consumerName; + if (message.consumerGroup != null && message.hasOwnProperty("consumerGroup")) + object.consumerGroup = message.consumerGroup; return object; }; /** - * Converts this RelayGroupGCPPubSubOptions to JSON. + * Converts this MemphisReadArgs to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupGCPPubSubOptions + * @memberof protos.args.MemphisReadArgs * @instance * @returns {Object.} JSON object */ - RelayGroupGCPPubSubOptions.prototype.toJSON = function toJSON() { + MemphisReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupGCPPubSubOptions; + return MemphisReadArgs; })(); - opts.RelayGroupKubeMQQueueOptions = (function() { + args.MemphisWriteArgs = (function() { /** - * Properties of a RelayGroupKubeMQQueueOptions. - * @memberof protos.opts - * @interface IRelayGroupKubeMQQueueOptions - * @property {protos.args.IKubeMQQueueConn|null} [_conn] RelayGroupKubeMQQueueOptions _conn - * @property {protos.args.IKubeMQQueueReadArgs|null} [args] RelayGroupKubeMQQueueOptions args + * Properties of a MemphisWriteArgs. + * @memberof protos.args + * @interface IMemphisWriteArgs + * @property {string|null} [station] MemphisWriteArgs station + * @property {string|null} [producerName] MemphisWriteArgs producerName + * @property {Object.|null} [headers] MemphisWriteArgs headers + * @property {string|null} [messageId] MemphisWriteArgs messageId */ /** - * Constructs a new RelayGroupKubeMQQueueOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupKubeMQQueueOptions. - * @implements IRelayGroupKubeMQQueueOptions + * Constructs a new MemphisWriteArgs. + * @memberof protos.args + * @classdesc Represents a MemphisWriteArgs. + * @implements IMemphisWriteArgs * @constructor - * @param {protos.opts.IRelayGroupKubeMQQueueOptions=} [properties] Properties to set + * @param {protos.args.IMemphisWriteArgs=} [properties] Properties to set */ - function RelayGroupKubeMQQueueOptions(properties) { + function MemphisWriteArgs(properties) { + this.headers = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9330,88 +7676,134 @@ $root.protos = (function() { } /** - * RelayGroupKubeMQQueueOptions _conn. - * @member {protos.args.IKubeMQQueueConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupKubeMQQueueOptions + * MemphisWriteArgs station. + * @member {string} station + * @memberof protos.args.MemphisWriteArgs * @instance */ - RelayGroupKubeMQQueueOptions.prototype._conn = null; + MemphisWriteArgs.prototype.station = ""; /** - * RelayGroupKubeMQQueueOptions args. - * @member {protos.args.IKubeMQQueueReadArgs|null|undefined} args - * @memberof protos.opts.RelayGroupKubeMQQueueOptions + * MemphisWriteArgs producerName. + * @member {string} producerName + * @memberof protos.args.MemphisWriteArgs + * @instance + */ + MemphisWriteArgs.prototype.producerName = ""; + + /** + * MemphisWriteArgs headers. + * @member {Object.} headers + * @memberof protos.args.MemphisWriteArgs + * @instance + */ + MemphisWriteArgs.prototype.headers = $util.emptyObject; + + /** + * MemphisWriteArgs messageId. + * @member {string} messageId + * @memberof protos.args.MemphisWriteArgs * @instance */ - RelayGroupKubeMQQueueOptions.prototype.args = null; + MemphisWriteArgs.prototype.messageId = ""; /** - * Creates a new RelayGroupKubeMQQueueOptions instance using the specified properties. + * Creates a new MemphisWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupKubeMQQueueOptions + * @memberof protos.args.MemphisWriteArgs * @static - * @param {protos.opts.IRelayGroupKubeMQQueueOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupKubeMQQueueOptions} RelayGroupKubeMQQueueOptions instance + * @param {protos.args.IMemphisWriteArgs=} [properties] Properties to set + * @returns {protos.args.MemphisWriteArgs} MemphisWriteArgs instance */ - RelayGroupKubeMQQueueOptions.create = function create(properties) { - return new RelayGroupKubeMQQueueOptions(properties); + MemphisWriteArgs.create = function create(properties) { + return new MemphisWriteArgs(properties); }; /** - * Encodes the specified RelayGroupKubeMQQueueOptions message. Does not implicitly {@link protos.opts.RelayGroupKubeMQQueueOptions.verify|verify} messages. + * Encodes the specified MemphisWriteArgs message. Does not implicitly {@link protos.args.MemphisWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupKubeMQQueueOptions + * @memberof protos.args.MemphisWriteArgs * @static - * @param {protos.opts.IRelayGroupKubeMQQueueOptions} message RelayGroupKubeMQQueueOptions message or plain object to encode + * @param {protos.args.IMemphisWriteArgs} message MemphisWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupKubeMQQueueOptions.encode = function encode(message, writer) { + MemphisWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.KubeMQQueueConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.KubeMQQueueReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.station != null && Object.hasOwnProperty.call(message, "station")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.station); + if (message.producerName != null && Object.hasOwnProperty.call(message, "producerName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.producerName); + if (message.headers != null && Object.hasOwnProperty.call(message, "headers")) + for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.headers[keys[i]]).ldelim(); + if (message.messageId != null && Object.hasOwnProperty.call(message, "messageId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.messageId); return writer; }; /** - * Encodes the specified RelayGroupKubeMQQueueOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupKubeMQQueueOptions.verify|verify} messages. + * Encodes the specified MemphisWriteArgs message, length delimited. Does not implicitly {@link protos.args.MemphisWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupKubeMQQueueOptions + * @memberof protos.args.MemphisWriteArgs * @static - * @param {protos.opts.IRelayGroupKubeMQQueueOptions} message RelayGroupKubeMQQueueOptions message or plain object to encode + * @param {protos.args.IMemphisWriteArgs} message MemphisWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupKubeMQQueueOptions.encodeDelimited = function encodeDelimited(message, writer) { + MemphisWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupKubeMQQueueOptions message from the specified reader or buffer. + * Decodes a MemphisWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupKubeMQQueueOptions + * @memberof protos.args.MemphisWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupKubeMQQueueOptions} RelayGroupKubeMQQueueOptions + * @returns {protos.args.MemphisWriteArgs} MemphisWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupKubeMQQueueOptions.decode = function decode(reader, length) { + MemphisWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupKubeMQQueueOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MemphisWriteArgs(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.KubeMQQueueConn.decode(reader, reader.uint32()); + message.station = reader.string(); break; case 2: - message.args = $root.protos.args.KubeMQQueueReadArgs.decode(reader, reader.uint32()); + message.producerName = reader.string(); + break; + case 3: + if (message.headers === $util.emptyObject) + message.headers = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.headers[key] = value; + break; + case 4: + message.messageId = reader.string(); break; default: reader.skipType(tag & 7); @@ -9422,127 +7814,147 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupKubeMQQueueOptions message from the specified reader or buffer, length delimited. + * Decodes a MemphisWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupKubeMQQueueOptions + * @memberof protos.args.MemphisWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupKubeMQQueueOptions} RelayGroupKubeMQQueueOptions + * @returns {protos.args.MemphisWriteArgs} MemphisWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupKubeMQQueueOptions.decodeDelimited = function decodeDelimited(reader) { + MemphisWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupKubeMQQueueOptions message. + * Verifies a MemphisWriteArgs message. * @function verify - * @memberof protos.opts.RelayGroupKubeMQQueueOptions + * @memberof protos.args.MemphisWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupKubeMQQueueOptions.verify = function verify(message) { + MemphisWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.KubeMQQueueConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.KubeMQQueueReadArgs.verify(message.args); - if (error) - return "args." + error; + if (message.station != null && message.hasOwnProperty("station")) + if (!$util.isString(message.station)) + return "station: string expected"; + if (message.producerName != null && message.hasOwnProperty("producerName")) + if (!$util.isString(message.producerName)) + return "producerName: string expected"; + if (message.headers != null && message.hasOwnProperty("headers")) { + if (!$util.isObject(message.headers)) + return "headers: object expected"; + var key = Object.keys(message.headers); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.headers[key[i]])) + return "headers: string{k:string} expected"; } + if (message.messageId != null && message.hasOwnProperty("messageId")) + if (!$util.isString(message.messageId)) + return "messageId: string expected"; return null; }; /** - * Creates a RelayGroupKubeMQQueueOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MemphisWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupKubeMQQueueOptions + * @memberof protos.args.MemphisWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupKubeMQQueueOptions} RelayGroupKubeMQQueueOptions + * @returns {protos.args.MemphisWriteArgs} MemphisWriteArgs */ - RelayGroupKubeMQQueueOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupKubeMQQueueOptions) + MemphisWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.MemphisWriteArgs) return object; - var message = new $root.protos.opts.RelayGroupKubeMQQueueOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupKubeMQQueueOptions._conn: object expected"); - message._conn = $root.protos.args.KubeMQQueueConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupKubeMQQueueOptions.args: object expected"); - message.args = $root.protos.args.KubeMQQueueReadArgs.fromObject(object.args); + var message = new $root.protos.args.MemphisWriteArgs(); + if (object.station != null) + message.station = String(object.station); + if (object.producerName != null) + message.producerName = String(object.producerName); + if (object.headers) { + if (typeof object.headers !== "object") + throw TypeError(".protos.args.MemphisWriteArgs.headers: object expected"); + message.headers = {}; + for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) + message.headers[keys[i]] = String(object.headers[keys[i]]); } + if (object.messageId != null) + message.messageId = String(object.messageId); return message; }; /** - * Creates a plain object from a RelayGroupKubeMQQueueOptions message. Also converts values to other types if specified. + * Creates a plain object from a MemphisWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupKubeMQQueueOptions + * @memberof protos.args.MemphisWriteArgs * @static - * @param {protos.opts.RelayGroupKubeMQQueueOptions} message RelayGroupKubeMQQueueOptions + * @param {protos.args.MemphisWriteArgs} message MemphisWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupKubeMQQueueOptions.toObject = function toObject(message, options) { + MemphisWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.headers = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.station = ""; + object.producerName = ""; + object.messageId = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.KubeMQQueueConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.KubeMQQueueReadArgs.toObject(message.args, options); + if (message.station != null && message.hasOwnProperty("station")) + object.station = message.station; + if (message.producerName != null && message.hasOwnProperty("producerName")) + object.producerName = message.producerName; + var keys2; + if (message.headers && (keys2 = Object.keys(message.headers)).length) { + object.headers = {}; + for (var j = 0; j < keys2.length; ++j) + object.headers[keys2[j]] = message.headers[keys2[j]]; + } + if (message.messageId != null && message.hasOwnProperty("messageId")) + object.messageId = message.messageId; return object; }; /** - * Converts this RelayGroupKubeMQQueueOptions to JSON. + * Converts this MemphisWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupKubeMQQueueOptions + * @memberof protos.args.MemphisWriteArgs * @instance * @returns {Object.} JSON object */ - RelayGroupKubeMQQueueOptions.prototype.toJSON = function toJSON() { + MemphisWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupKubeMQQueueOptions; + return MemphisWriteArgs; })(); - opts.RelayGroupNatsOptions = (function() { + args.MongoConn = (function() { /** - * Properties of a RelayGroupNatsOptions. - * @memberof protos.opts - * @interface IRelayGroupNatsOptions - * @property {protos.args.INatsConn|null} [_conn] RelayGroupNatsOptions _conn - * @property {protos.args.INatsReadArgs|null} [args] RelayGroupNatsOptions args + * Properties of a MongoConn. + * @memberof protos.args + * @interface IMongoConn + * @property {string|null} [dsn] MongoConn dsn */ /** - * Constructs a new RelayGroupNatsOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupNatsOptions. - * @implements IRelayGroupNatsOptions + * Constructs a new MongoConn. + * @memberof protos.args + * @classdesc Represents a MongoConn. + * @implements IMongoConn * @constructor - * @param {protos.opts.IRelayGroupNatsOptions=} [properties] Properties to set + * @param {protos.args.IMongoConn=} [properties] Properties to set */ - function RelayGroupNatsOptions(properties) { + function MongoConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9550,88 +7962,75 @@ $root.protos = (function() { } /** - * RelayGroupNatsOptions _conn. - * @member {protos.args.INatsConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupNatsOptions - * @instance - */ - RelayGroupNatsOptions.prototype._conn = null; - - /** - * RelayGroupNatsOptions args. - * @member {protos.args.INatsReadArgs|null|undefined} args - * @memberof protos.opts.RelayGroupNatsOptions + * MongoConn dsn. + * @member {string} dsn + * @memberof protos.args.MongoConn * @instance */ - RelayGroupNatsOptions.prototype.args = null; + MongoConn.prototype.dsn = ""; /** - * Creates a new RelayGroupNatsOptions instance using the specified properties. + * Creates a new MongoConn instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupNatsOptions + * @memberof protos.args.MongoConn * @static - * @param {protos.opts.IRelayGroupNatsOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupNatsOptions} RelayGroupNatsOptions instance + * @param {protos.args.IMongoConn=} [properties] Properties to set + * @returns {protos.args.MongoConn} MongoConn instance */ - RelayGroupNatsOptions.create = function create(properties) { - return new RelayGroupNatsOptions(properties); + MongoConn.create = function create(properties) { + return new MongoConn(properties); }; /** - * Encodes the specified RelayGroupNatsOptions message. Does not implicitly {@link protos.opts.RelayGroupNatsOptions.verify|verify} messages. + * Encodes the specified MongoConn message. Does not implicitly {@link protos.args.MongoConn.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupNatsOptions + * @memberof protos.args.MongoConn * @static - * @param {protos.opts.IRelayGroupNatsOptions} message RelayGroupNatsOptions message or plain object to encode + * @param {protos.args.IMongoConn} message MongoConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupNatsOptions.encode = function encode(message, writer) { + MongoConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NatsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NatsReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dsn != null && Object.hasOwnProperty.call(message, "dsn")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dsn); return writer; }; /** - * Encodes the specified RelayGroupNatsOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupNatsOptions.verify|verify} messages. + * Encodes the specified MongoConn message, length delimited. Does not implicitly {@link protos.args.MongoConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupNatsOptions + * @memberof protos.args.MongoConn * @static - * @param {protos.opts.IRelayGroupNatsOptions} message RelayGroupNatsOptions message or plain object to encode + * @param {protos.args.IMongoConn} message MongoConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupNatsOptions.encodeDelimited = function encodeDelimited(message, writer) { + MongoConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupNatsOptions message from the specified reader or buffer. + * Decodes a MongoConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupNatsOptions + * @memberof protos.args.MongoConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupNatsOptions} RelayGroupNatsOptions + * @returns {protos.args.MongoConn} MongoConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupNatsOptions.decode = function decode(reader, length) { + MongoConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupNatsOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MongoConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.NatsConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.NatsReadArgs.decode(reader, reader.uint32()); + message.dsn = reader.string(); break; default: reader.skipType(tag & 7); @@ -9642,127 +8041,109 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupNatsOptions message from the specified reader or buffer, length delimited. + * Decodes a MongoConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupNatsOptions + * @memberof protos.args.MongoConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupNatsOptions} RelayGroupNatsOptions + * @returns {protos.args.MongoConn} MongoConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupNatsOptions.decodeDelimited = function decodeDelimited(reader) { + MongoConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupNatsOptions message. + * Verifies a MongoConn message. * @function verify - * @memberof protos.opts.RelayGroupNatsOptions + * @memberof protos.args.MongoConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupNatsOptions.verify = function verify(message) { + MongoConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NatsConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NatsReadArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.dsn != null && message.hasOwnProperty("dsn")) + if (!$util.isString(message.dsn)) + return "dsn: string expected"; return null; }; /** - * Creates a RelayGroupNatsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MongoConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupNatsOptions + * @memberof protos.args.MongoConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupNatsOptions} RelayGroupNatsOptions + * @returns {protos.args.MongoConn} MongoConn */ - RelayGroupNatsOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupNatsOptions) + MongoConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.MongoConn) return object; - var message = new $root.protos.opts.RelayGroupNatsOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupNatsOptions._conn: object expected"); - message._conn = $root.protos.args.NatsConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupNatsOptions.args: object expected"); - message.args = $root.protos.args.NatsReadArgs.fromObject(object.args); - } + var message = new $root.protos.args.MongoConn(); + if (object.dsn != null) + message.dsn = String(object.dsn); return message; }; /** - * Creates a plain object from a RelayGroupNatsOptions message. Also converts values to other types if specified. + * Creates a plain object from a MongoConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupNatsOptions + * @memberof protos.args.MongoConn * @static - * @param {protos.opts.RelayGroupNatsOptions} message RelayGroupNatsOptions + * @param {protos.args.MongoConn} message MongoConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupNatsOptions.toObject = function toObject(message, options) { + MongoConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NatsConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NatsReadArgs.toObject(message.args, options); + if (options.defaults) + object.dsn = ""; + if (message.dsn != null && message.hasOwnProperty("dsn")) + object.dsn = message.dsn; return object; }; /** - * Converts this RelayGroupNatsOptions to JSON. + * Converts this MongoConn to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupNatsOptions + * @memberof protos.args.MongoConn * @instance * @returns {Object.} JSON object */ - RelayGroupNatsOptions.prototype.toJSON = function toJSON() { + MongoConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupNatsOptions; + return MongoConn; })(); - opts.RelayGroupNatsStreamingOptions = (function() { + args.MongoReadArgs = (function() { /** - * Properties of a RelayGroupNatsStreamingOptions. - * @memberof protos.opts - * @interface IRelayGroupNatsStreamingOptions - * @property {protos.args.INatsStreamingConn|null} [_conn] RelayGroupNatsStreamingOptions _conn - * @property {protos.args.INatsStreamingReadArgs|null} [args] RelayGroupNatsStreamingOptions args + * Properties of a MongoReadArgs. + * @memberof protos.args + * @interface IMongoReadArgs + * @property {string|null} [database] MongoReadArgs database + * @property {string|null} [collection] MongoReadArgs collection + * @property {boolean|null} [includeFullDocument] MongoReadArgs includeFullDocument */ /** - * Constructs a new RelayGroupNatsStreamingOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupNatsStreamingOptions. - * @implements IRelayGroupNatsStreamingOptions + * Constructs a new MongoReadArgs. + * @memberof protos.args + * @classdesc Represents a MongoReadArgs. + * @implements IMongoReadArgs * @constructor - * @param {protos.opts.IRelayGroupNatsStreamingOptions=} [properties] Properties to set + * @param {protos.args.IMongoReadArgs=} [properties] Properties to set */ - function RelayGroupNatsStreamingOptions(properties) { + function MongoReadArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9770,88 +8151,101 @@ $root.protos = (function() { } /** - * RelayGroupNatsStreamingOptions _conn. - * @member {protos.args.INatsStreamingConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupNatsStreamingOptions + * MongoReadArgs database. + * @member {string} database + * @memberof protos.args.MongoReadArgs * @instance */ - RelayGroupNatsStreamingOptions.prototype._conn = null; + MongoReadArgs.prototype.database = ""; /** - * RelayGroupNatsStreamingOptions args. - * @member {protos.args.INatsStreamingReadArgs|null|undefined} args - * @memberof protos.opts.RelayGroupNatsStreamingOptions + * MongoReadArgs collection. + * @member {string} collection + * @memberof protos.args.MongoReadArgs + * @instance + */ + MongoReadArgs.prototype.collection = ""; + + /** + * MongoReadArgs includeFullDocument. + * @member {boolean} includeFullDocument + * @memberof protos.args.MongoReadArgs * @instance */ - RelayGroupNatsStreamingOptions.prototype.args = null; + MongoReadArgs.prototype.includeFullDocument = false; /** - * Creates a new RelayGroupNatsStreamingOptions instance using the specified properties. + * Creates a new MongoReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupNatsStreamingOptions + * @memberof protos.args.MongoReadArgs * @static - * @param {protos.opts.IRelayGroupNatsStreamingOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupNatsStreamingOptions} RelayGroupNatsStreamingOptions instance + * @param {protos.args.IMongoReadArgs=} [properties] Properties to set + * @returns {protos.args.MongoReadArgs} MongoReadArgs instance */ - RelayGroupNatsStreamingOptions.create = function create(properties) { - return new RelayGroupNatsStreamingOptions(properties); + MongoReadArgs.create = function create(properties) { + return new MongoReadArgs(properties); }; /** - * Encodes the specified RelayGroupNatsStreamingOptions message. Does not implicitly {@link protos.opts.RelayGroupNatsStreamingOptions.verify|verify} messages. + * Encodes the specified MongoReadArgs message. Does not implicitly {@link protos.args.MongoReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupNatsStreamingOptions + * @memberof protos.args.MongoReadArgs * @static - * @param {protos.opts.IRelayGroupNatsStreamingOptions} message RelayGroupNatsStreamingOptions message or plain object to encode + * @param {protos.args.IMongoReadArgs} message MongoReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupNatsStreamingOptions.encode = function encode(message, writer) { + MongoReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NatsStreamingConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NatsStreamingReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.database != null && Object.hasOwnProperty.call(message, "database")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.database); + if (message.collection != null && Object.hasOwnProperty.call(message, "collection")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.collection); + if (message.includeFullDocument != null && Object.hasOwnProperty.call(message, "includeFullDocument")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.includeFullDocument); return writer; }; /** - * Encodes the specified RelayGroupNatsStreamingOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupNatsStreamingOptions.verify|verify} messages. + * Encodes the specified MongoReadArgs message, length delimited. Does not implicitly {@link protos.args.MongoReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupNatsStreamingOptions + * @memberof protos.args.MongoReadArgs * @static - * @param {protos.opts.IRelayGroupNatsStreamingOptions} message RelayGroupNatsStreamingOptions message or plain object to encode + * @param {protos.args.IMongoReadArgs} message MongoReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupNatsStreamingOptions.encodeDelimited = function encodeDelimited(message, writer) { + MongoReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupNatsStreamingOptions message from the specified reader or buffer. + * Decodes a MongoReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupNatsStreamingOptions + * @memberof protos.args.MongoReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupNatsStreamingOptions} RelayGroupNatsStreamingOptions + * @returns {protos.args.MongoReadArgs} MongoReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupNatsStreamingOptions.decode = function decode(reader, length) { + MongoReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupNatsStreamingOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MongoReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.NatsStreamingConn.decode(reader, reader.uint32()); + message.database = reader.string(); break; case 2: - message.args = $root.protos.args.NatsStreamingReadArgs.decode(reader, reader.uint32()); + message.collection = reader.string(); + break; + case 3: + message.includeFullDocument = reader.bool(); break; default: reader.skipType(tag & 7); @@ -9862,127 +8256,143 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupNatsStreamingOptions message from the specified reader or buffer, length delimited. + * Decodes a MongoReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupNatsStreamingOptions + * @memberof protos.args.MongoReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupNatsStreamingOptions} RelayGroupNatsStreamingOptions + * @returns {protos.args.MongoReadArgs} MongoReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupNatsStreamingOptions.decodeDelimited = function decodeDelimited(reader) { + MongoReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupNatsStreamingOptions message. + * Verifies a MongoReadArgs message. * @function verify - * @memberof protos.opts.RelayGroupNatsStreamingOptions + * @memberof protos.args.MongoReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupNatsStreamingOptions.verify = function verify(message) { + MongoReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NatsStreamingConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NatsStreamingReadArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.database != null && message.hasOwnProperty("database")) + if (!$util.isString(message.database)) + return "database: string expected"; + if (message.collection != null && message.hasOwnProperty("collection")) + if (!$util.isString(message.collection)) + return "collection: string expected"; + if (message.includeFullDocument != null && message.hasOwnProperty("includeFullDocument")) + if (typeof message.includeFullDocument !== "boolean") + return "includeFullDocument: boolean expected"; return null; }; /** - * Creates a RelayGroupNatsStreamingOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MongoReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupNatsStreamingOptions + * @memberof protos.args.MongoReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupNatsStreamingOptions} RelayGroupNatsStreamingOptions + * @returns {protos.args.MongoReadArgs} MongoReadArgs */ - RelayGroupNatsStreamingOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupNatsStreamingOptions) + MongoReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.MongoReadArgs) return object; - var message = new $root.protos.opts.RelayGroupNatsStreamingOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupNatsStreamingOptions._conn: object expected"); - message._conn = $root.protos.args.NatsStreamingConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupNatsStreamingOptions.args: object expected"); - message.args = $root.protos.args.NatsStreamingReadArgs.fromObject(object.args); - } + var message = new $root.protos.args.MongoReadArgs(); + if (object.database != null) + message.database = String(object.database); + if (object.collection != null) + message.collection = String(object.collection); + if (object.includeFullDocument != null) + message.includeFullDocument = Boolean(object.includeFullDocument); return message; }; /** - * Creates a plain object from a RelayGroupNatsStreamingOptions message. Also converts values to other types if specified. + * Creates a plain object from a MongoReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupNatsStreamingOptions + * @memberof protos.args.MongoReadArgs * @static - * @param {protos.opts.RelayGroupNatsStreamingOptions} message RelayGroupNatsStreamingOptions + * @param {protos.args.MongoReadArgs} message MongoReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupNatsStreamingOptions.toObject = function toObject(message, options) { + MongoReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.database = ""; + object.collection = ""; + object.includeFullDocument = false; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NatsStreamingConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NatsStreamingReadArgs.toObject(message.args, options); + if (message.database != null && message.hasOwnProperty("database")) + object.database = message.database; + if (message.collection != null && message.hasOwnProperty("collection")) + object.collection = message.collection; + if (message.includeFullDocument != null && message.hasOwnProperty("includeFullDocument")) + object.includeFullDocument = message.includeFullDocument; return object; }; /** - * Converts this RelayGroupNatsStreamingOptions to JSON. + * Converts this MongoReadArgs to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupNatsStreamingOptions + * @memberof protos.args.MongoReadArgs * @instance * @returns {Object.} JSON object */ - RelayGroupNatsStreamingOptions.prototype.toJSON = function toJSON() { + MongoReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupNatsStreamingOptions; + return MongoReadArgs; + })(); + + /** + * MQTTQoSLevel enum. + * @name protos.args.MQTTQoSLevel + * @enum {number} + * @property {number} MQTT_QOS_LEVEL_AT_MOST_ONCE=0 MQTT_QOS_LEVEL_AT_MOST_ONCE value + * @property {number} MQTT_QOS_LEVEL_AT_LEAST_ONCE=1 MQTT_QOS_LEVEL_AT_LEAST_ONCE value + * @property {number} MQTT_QOS_LEVEL_EXACTLY_ONCE=2 MQTT_QOS_LEVEL_EXACTLY_ONCE value + */ + args.MQTTQoSLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MQTT_QOS_LEVEL_AT_MOST_ONCE"] = 0; + values[valuesById[1] = "MQTT_QOS_LEVEL_AT_LEAST_ONCE"] = 1; + values[valuesById[2] = "MQTT_QOS_LEVEL_EXACTLY_ONCE"] = 2; + return values; })(); - opts.RelayGroupNatsJetStreamOptions = (function() { + args.MQTTTLSOptions = (function() { /** - * Properties of a RelayGroupNatsJetStreamOptions. - * @memberof protos.opts - * @interface IRelayGroupNatsJetStreamOptions - * @property {protos.args.INatsJetstreamConn|null} [_conn] RelayGroupNatsJetStreamOptions _conn - * @property {protos.args.INatsJetstreamReadArgs|null} [args] RelayGroupNatsJetStreamOptions args + * Properties of a MQTTTLSOptions. + * @memberof protos.args + * @interface IMQTTTLSOptions + * @property {string|null} [tlsCaCert] MQTTTLSOptions tlsCaCert + * @property {string|null} [tlsClientCert] MQTTTLSOptions tlsClientCert + * @property {string|null} [tlsClientKey] MQTTTLSOptions tlsClientKey + * @property {boolean|null} [tlsSkipVerify] MQTTTLSOptions tlsSkipVerify */ /** - * Constructs a new RelayGroupNatsJetStreamOptions. - * @memberof protos.opts - * @classdesc Represents a RelayGroupNatsJetStreamOptions. - * @implements IRelayGroupNatsJetStreamOptions + * Constructs a new MQTTTLSOptions. + * @memberof protos.args + * @classdesc Represents a MQTTTLSOptions. + * @implements IMQTTTLSOptions * @constructor - * @param {protos.opts.IRelayGroupNatsJetStreamOptions=} [properties] Properties to set + * @param {protos.args.IMQTTTLSOptions=} [properties] Properties to set */ - function RelayGroupNatsJetStreamOptions(properties) { + function MQTTTLSOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9990,91 +8400,117 @@ $root.protos = (function() { } /** - * RelayGroupNatsJetStreamOptions _conn. - * @member {protos.args.INatsJetstreamConn|null|undefined} _conn - * @memberof protos.opts.RelayGroupNatsJetStreamOptions + * MQTTTLSOptions tlsCaCert. + * @member {string} tlsCaCert + * @memberof protos.args.MQTTTLSOptions * @instance */ - RelayGroupNatsJetStreamOptions.prototype._conn = null; + MQTTTLSOptions.prototype.tlsCaCert = ""; /** - * RelayGroupNatsJetStreamOptions args. - * @member {protos.args.INatsJetstreamReadArgs|null|undefined} args - * @memberof protos.opts.RelayGroupNatsJetStreamOptions + * MQTTTLSOptions tlsClientCert. + * @member {string} tlsClientCert + * @memberof protos.args.MQTTTLSOptions + * @instance + */ + MQTTTLSOptions.prototype.tlsClientCert = ""; + + /** + * MQTTTLSOptions tlsClientKey. + * @member {string} tlsClientKey + * @memberof protos.args.MQTTTLSOptions + * @instance + */ + MQTTTLSOptions.prototype.tlsClientKey = ""; + + /** + * MQTTTLSOptions tlsSkipVerify. + * @member {boolean} tlsSkipVerify + * @memberof protos.args.MQTTTLSOptions * @instance */ - RelayGroupNatsJetStreamOptions.prototype.args = null; + MQTTTLSOptions.prototype.tlsSkipVerify = false; /** - * Creates a new RelayGroupNatsJetStreamOptions instance using the specified properties. + * Creates a new MQTTTLSOptions instance using the specified properties. * @function create - * @memberof protos.opts.RelayGroupNatsJetStreamOptions + * @memberof protos.args.MQTTTLSOptions * @static - * @param {protos.opts.IRelayGroupNatsJetStreamOptions=} [properties] Properties to set - * @returns {protos.opts.RelayGroupNatsJetStreamOptions} RelayGroupNatsJetStreamOptions instance + * @param {protos.args.IMQTTTLSOptions=} [properties] Properties to set + * @returns {protos.args.MQTTTLSOptions} MQTTTLSOptions instance */ - RelayGroupNatsJetStreamOptions.create = function create(properties) { - return new RelayGroupNatsJetStreamOptions(properties); + MQTTTLSOptions.create = function create(properties) { + return new MQTTTLSOptions(properties); }; /** - * Encodes the specified RelayGroupNatsJetStreamOptions message. Does not implicitly {@link protos.opts.RelayGroupNatsJetStreamOptions.verify|verify} messages. + * Encodes the specified MQTTTLSOptions message. Does not implicitly {@link protos.args.MQTTTLSOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.RelayGroupNatsJetStreamOptions + * @memberof protos.args.MQTTTLSOptions * @static - * @param {protos.opts.IRelayGroupNatsJetStreamOptions} message RelayGroupNatsJetStreamOptions message or plain object to encode + * @param {protos.args.IMQTTTLSOptions} message MQTTTLSOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupNatsJetStreamOptions.encode = function encode(message, writer) { + MQTTTLSOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NatsJetstreamConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NatsJetstreamReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.tlsCaCert != null && Object.hasOwnProperty.call(message, "tlsCaCert")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tlsCaCert); + if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tlsClientCert); + if (message.tlsClientKey != null && Object.hasOwnProperty.call(message, "tlsClientKey")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tlsClientKey); + if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.tlsSkipVerify); return writer; }; /** - * Encodes the specified RelayGroupNatsJetStreamOptions message, length delimited. Does not implicitly {@link protos.opts.RelayGroupNatsJetStreamOptions.verify|verify} messages. + * Encodes the specified MQTTTLSOptions message, length delimited. Does not implicitly {@link protos.args.MQTTTLSOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.RelayGroupNatsJetStreamOptions + * @memberof protos.args.MQTTTLSOptions * @static - * @param {protos.opts.IRelayGroupNatsJetStreamOptions} message RelayGroupNatsJetStreamOptions message or plain object to encode + * @param {protos.args.IMQTTTLSOptions} message MQTTTLSOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RelayGroupNatsJetStreamOptions.encodeDelimited = function encodeDelimited(message, writer) { + MQTTTLSOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RelayGroupNatsJetStreamOptions message from the specified reader or buffer. + * Decodes a MQTTTLSOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.RelayGroupNatsJetStreamOptions + * @memberof protos.args.MQTTTLSOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.RelayGroupNatsJetStreamOptions} RelayGroupNatsJetStreamOptions + * @returns {protos.args.MQTTTLSOptions} MQTTTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupNatsJetStreamOptions.decode = function decode(reader, length) { + MQTTTLSOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.RelayGroupNatsJetStreamOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MQTTTLSOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.NatsJetstreamConn.decode(reader, reader.uint32()); + message.tlsCaCert = reader.string(); break; case 2: - message.args = $root.protos.args.NatsJetstreamReadArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); + message.tlsClientCert = reader.string(); + break; + case 3: + message.tlsClientKey = reader.string(); + break; + case 4: + message.tlsSkipVerify = reader.bool(); + break; + default: + reader.skipType(tag & 7); break; } } @@ -10082,126 +8518,136 @@ $root.protos = (function() { }; /** - * Decodes a RelayGroupNatsJetStreamOptions message from the specified reader or buffer, length delimited. + * Decodes a MQTTTLSOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.RelayGroupNatsJetStreamOptions + * @memberof protos.args.MQTTTLSOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.RelayGroupNatsJetStreamOptions} RelayGroupNatsJetStreamOptions + * @returns {protos.args.MQTTTLSOptions} MQTTTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RelayGroupNatsJetStreamOptions.decodeDelimited = function decodeDelimited(reader) { + MQTTTLSOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RelayGroupNatsJetStreamOptions message. + * Verifies a MQTTTLSOptions message. * @function verify - * @memberof protos.opts.RelayGroupNatsJetStreamOptions + * @memberof protos.args.MQTTTLSOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RelayGroupNatsJetStreamOptions.verify = function verify(message) { + MQTTTLSOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NatsJetstreamConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NatsJetstreamReadArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) + if (!$util.isString(message.tlsCaCert)) + return "tlsCaCert: string expected"; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + if (!$util.isString(message.tlsClientCert)) + return "tlsClientCert: string expected"; + if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) + if (!$util.isString(message.tlsClientKey)) + return "tlsClientKey: string expected"; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + if (typeof message.tlsSkipVerify !== "boolean") + return "tlsSkipVerify: boolean expected"; return null; }; /** - * Creates a RelayGroupNatsJetStreamOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MQTTTLSOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.RelayGroupNatsJetStreamOptions + * @memberof protos.args.MQTTTLSOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.RelayGroupNatsJetStreamOptions} RelayGroupNatsJetStreamOptions + * @returns {protos.args.MQTTTLSOptions} MQTTTLSOptions */ - RelayGroupNatsJetStreamOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.RelayGroupNatsJetStreamOptions) + MQTTTLSOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.MQTTTLSOptions) return object; - var message = new $root.protos.opts.RelayGroupNatsJetStreamOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.RelayGroupNatsJetStreamOptions._conn: object expected"); - message._conn = $root.protos.args.NatsJetstreamConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.RelayGroupNatsJetStreamOptions.args: object expected"); - message.args = $root.protos.args.NatsJetstreamReadArgs.fromObject(object.args); - } + var message = new $root.protos.args.MQTTTLSOptions(); + if (object.tlsCaCert != null) + message.tlsCaCert = String(object.tlsCaCert); + if (object.tlsClientCert != null) + message.tlsClientCert = String(object.tlsClientCert); + if (object.tlsClientKey != null) + message.tlsClientKey = String(object.tlsClientKey); + if (object.tlsSkipVerify != null) + message.tlsSkipVerify = Boolean(object.tlsSkipVerify); return message; }; /** - * Creates a plain object from a RelayGroupNatsJetStreamOptions message. Also converts values to other types if specified. + * Creates a plain object from a MQTTTLSOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.RelayGroupNatsJetStreamOptions + * @memberof protos.args.MQTTTLSOptions * @static - * @param {protos.opts.RelayGroupNatsJetStreamOptions} message RelayGroupNatsJetStreamOptions + * @param {protos.args.MQTTTLSOptions} message MQTTTLSOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RelayGroupNatsJetStreamOptions.toObject = function toObject(message, options) { + MQTTTLSOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.tlsCaCert = ""; + object.tlsClientCert = ""; + object.tlsClientKey = ""; + object.tlsSkipVerify = false; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NatsJetstreamConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NatsJetstreamReadArgs.toObject(message.args, options); + if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) + object.tlsCaCert = message.tlsCaCert; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + object.tlsClientCert = message.tlsClientCert; + if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) + object.tlsClientKey = message.tlsClientKey; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + object.tlsSkipVerify = message.tlsSkipVerify; return object; }; /** - * Converts this RelayGroupNatsJetStreamOptions to JSON. + * Converts this MQTTTLSOptions to JSON. * @function toJSON - * @memberof protos.opts.RelayGroupNatsJetStreamOptions + * @memberof protos.args.MQTTTLSOptions * @instance * @returns {Object.} JSON object */ - RelayGroupNatsJetStreamOptions.prototype.toJSON = function toJSON() { + MQTTTLSOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RelayGroupNatsJetStreamOptions; + return MQTTTLSOptions; })(); - opts.GetRelayOptions = (function() { + args.MQTTConn = (function() { /** - * Properties of a GetRelayOptions. - * @memberof protos.opts - * @interface IGetRelayOptions - * @property {string|null} [id] GetRelayOptions id + * Properties of a MQTTConn. + * @memberof protos.args + * @interface IMQTTConn + * @property {string|null} [address] MQTTConn address + * @property {number|null} [connTimeoutSeconds] MQTTConn connTimeoutSeconds + * @property {string|null} [clientId] MQTTConn clientId + * @property {protos.args.MQTTQoSLevel|null} [qosLevel] MQTTConn qosLevel + * @property {protos.args.IMQTTTLSOptions|null} [tlsOptions] MQTTConn tlsOptions */ /** - * Constructs a new GetRelayOptions. - * @memberof protos.opts - * @classdesc Represents a GetRelayOptions. - * @implements IGetRelayOptions + * Constructs a new MQTTConn. + * @memberof protos.args + * @classdesc Represents a MQTTConn. + * @implements IMQTTConn * @constructor - * @param {protos.opts.IGetRelayOptions=} [properties] Properties to set + * @param {protos.args.IMQTTConn=} [properties] Properties to set */ - function GetRelayOptions(properties) { + function MQTTConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10209,75 +8655,127 @@ $root.protos = (function() { } /** - * GetRelayOptions id. - * @member {string} id - * @memberof protos.opts.GetRelayOptions + * MQTTConn address. + * @member {string} address + * @memberof protos.args.MQTTConn + * @instance + */ + MQTTConn.prototype.address = ""; + + /** + * MQTTConn connTimeoutSeconds. + * @member {number} connTimeoutSeconds + * @memberof protos.args.MQTTConn + * @instance + */ + MQTTConn.prototype.connTimeoutSeconds = 0; + + /** + * MQTTConn clientId. + * @member {string} clientId + * @memberof protos.args.MQTTConn + * @instance + */ + MQTTConn.prototype.clientId = ""; + + /** + * MQTTConn qosLevel. + * @member {protos.args.MQTTQoSLevel} qosLevel + * @memberof protos.args.MQTTConn + * @instance + */ + MQTTConn.prototype.qosLevel = 0; + + /** + * MQTTConn tlsOptions. + * @member {protos.args.IMQTTTLSOptions|null|undefined} tlsOptions + * @memberof protos.args.MQTTConn * @instance */ - GetRelayOptions.prototype.id = ""; + MQTTConn.prototype.tlsOptions = null; /** - * Creates a new GetRelayOptions instance using the specified properties. + * Creates a new MQTTConn instance using the specified properties. * @function create - * @memberof protos.opts.GetRelayOptions + * @memberof protos.args.MQTTConn * @static - * @param {protos.opts.IGetRelayOptions=} [properties] Properties to set - * @returns {protos.opts.GetRelayOptions} GetRelayOptions instance + * @param {protos.args.IMQTTConn=} [properties] Properties to set + * @returns {protos.args.MQTTConn} MQTTConn instance */ - GetRelayOptions.create = function create(properties) { - return new GetRelayOptions(properties); + MQTTConn.create = function create(properties) { + return new MQTTConn(properties); }; /** - * Encodes the specified GetRelayOptions message. Does not implicitly {@link protos.opts.GetRelayOptions.verify|verify} messages. + * Encodes the specified MQTTConn message. Does not implicitly {@link protos.args.MQTTConn.verify|verify} messages. * @function encode - * @memberof protos.opts.GetRelayOptions + * @memberof protos.args.MQTTConn * @static - * @param {protos.opts.IGetRelayOptions} message GetRelayOptions message or plain object to encode + * @param {protos.args.IMQTTConn} message MQTTConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRelayOptions.encode = function encode(message, writer) { + MQTTConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + if (message.connTimeoutSeconds != null && Object.hasOwnProperty.call(message, "connTimeoutSeconds")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.connTimeoutSeconds); + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.clientId); + if (message.qosLevel != null && Object.hasOwnProperty.call(message, "qosLevel")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.qosLevel); + if (message.tlsOptions != null && Object.hasOwnProperty.call(message, "tlsOptions")) + $root.protos.args.MQTTTLSOptions.encode(message.tlsOptions, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetRelayOptions message, length delimited. Does not implicitly {@link protos.opts.GetRelayOptions.verify|verify} messages. + * Encodes the specified MQTTConn message, length delimited. Does not implicitly {@link protos.args.MQTTConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.GetRelayOptions + * @memberof protos.args.MQTTConn * @static - * @param {protos.opts.IGetRelayOptions} message GetRelayOptions message or plain object to encode + * @param {protos.args.IMQTTConn} message MQTTConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetRelayOptions.encodeDelimited = function encodeDelimited(message, writer) { + MQTTConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetRelayOptions message from the specified reader or buffer. + * Decodes a MQTTConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.GetRelayOptions + * @memberof protos.args.MQTTConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.GetRelayOptions} GetRelayOptions + * @returns {protos.args.MQTTConn} MQTTConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRelayOptions.decode = function decode(reader, length) { + MQTTConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.GetRelayOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MQTTConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message.address = reader.string(); + break; + case 3: + message.connTimeoutSeconds = reader.uint32(); + break; + case 4: + message.clientId = reader.string(); + break; + case 5: + message.qosLevel = reader.int32(); + break; + case 6: + message.tlsOptions = $root.protos.args.MQTTTLSOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -10288,130 +8786,164 @@ $root.protos = (function() { }; /** - * Decodes a GetRelayOptions message from the specified reader or buffer, length delimited. + * Decodes a MQTTConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.GetRelayOptions + * @memberof protos.args.MQTTConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.GetRelayOptions} GetRelayOptions + * @returns {protos.args.MQTTConn} MQTTConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetRelayOptions.decodeDelimited = function decodeDelimited(reader) { + MQTTConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetRelayOptions message. + * Verifies a MQTTConn message. * @function verify - * @memberof protos.opts.GetRelayOptions + * @memberof protos.args.MQTTConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetRelayOptions.verify = function verify(message) { + MQTTConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.connTimeoutSeconds != null && message.hasOwnProperty("connTimeoutSeconds")) + if (!$util.isInteger(message.connTimeoutSeconds)) + return "connTimeoutSeconds: integer expected"; + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + if (message.qosLevel != null && message.hasOwnProperty("qosLevel")) + switch (message.qosLevel) { + default: + return "qosLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) { + var error = $root.protos.args.MQTTTLSOptions.verify(message.tlsOptions); + if (error) + return "tlsOptions." + error; + } return null; }; /** - * Creates a GetRelayOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MQTTConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.GetRelayOptions + * @memberof protos.args.MQTTConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.GetRelayOptions} GetRelayOptions + * @returns {protos.args.MQTTConn} MQTTConn */ - GetRelayOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.GetRelayOptions) + MQTTConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.MQTTConn) return object; - var message = new $root.protos.opts.GetRelayOptions(); - if (object.id != null) - message.id = String(object.id); + var message = new $root.protos.args.MQTTConn(); + if (object.address != null) + message.address = String(object.address); + if (object.connTimeoutSeconds != null) + message.connTimeoutSeconds = object.connTimeoutSeconds >>> 0; + if (object.clientId != null) + message.clientId = String(object.clientId); + switch (object.qosLevel) { + case "MQTT_QOS_LEVEL_AT_MOST_ONCE": + case 0: + message.qosLevel = 0; + break; + case "MQTT_QOS_LEVEL_AT_LEAST_ONCE": + case 1: + message.qosLevel = 1; + break; + case "MQTT_QOS_LEVEL_EXACTLY_ONCE": + case 2: + message.qosLevel = 2; + break; + } + if (object.tlsOptions != null) { + if (typeof object.tlsOptions !== "object") + throw TypeError(".protos.args.MQTTConn.tlsOptions: object expected"); + message.tlsOptions = $root.protos.args.MQTTTLSOptions.fromObject(object.tlsOptions); + } return message; }; /** - * Creates a plain object from a GetRelayOptions message. Also converts values to other types if specified. + * Creates a plain object from a MQTTConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.GetRelayOptions + * @memberof protos.args.MQTTConn * @static - * @param {protos.opts.GetRelayOptions} message GetRelayOptions + * @param {protos.args.MQTTConn} message MQTTConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetRelayOptions.toObject = function toObject(message, options) { + MQTTConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + if (options.defaults) { + object.address = ""; + object.connTimeoutSeconds = 0; + object.clientId = ""; + object.qosLevel = options.enums === String ? "MQTT_QOS_LEVEL_AT_MOST_ONCE" : 0; + object.tlsOptions = null; + } + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.connTimeoutSeconds != null && message.hasOwnProperty("connTimeoutSeconds")) + object.connTimeoutSeconds = message.connTimeoutSeconds; + if (message.clientId != null && message.hasOwnProperty("clientId")) + object.clientId = message.clientId; + if (message.qosLevel != null && message.hasOwnProperty("qosLevel")) + object.qosLevel = options.enums === String ? $root.protos.args.MQTTQoSLevel[message.qosLevel] : message.qosLevel; + if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) + object.tlsOptions = $root.protos.args.MQTTTLSOptions.toObject(message.tlsOptions, options); return object; }; /** - * Converts this GetRelayOptions to JSON. + * Converts this MQTTConn to JSON. * @function toJSON - * @memberof protos.opts.GetRelayOptions + * @memberof protos.args.MQTTConn * @instance * @returns {Object.} JSON object */ - GetRelayOptions.prototype.toJSON = function toJSON() { + MQTTConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetRelayOptions; + return MQTTConn; })(); - opts.CreateRelayOptions = (function() { + args.MQTTReadArgs = (function() { /** - * Properties of a CreateRelayOptions. - * @memberof protos.opts - * @interface ICreateRelayOptions - * @property {string|null} [connectionId] CreateRelayOptions connectionId - * @property {string|null} [collectionToken] CreateRelayOptions collectionToken - * @property {number|null} [batchSize] CreateRelayOptions batchSize - * @property {number|null} [batchMaxRetry] CreateRelayOptions batchMaxRetry - * @property {number|null} [numWorkers] CreateRelayOptions numWorkers - * @property {string|null} [streamdalGrpcAddress] CreateRelayOptions streamdalGrpcAddress - * @property {boolean|null} [streamdalGrpcDisableTls] CreateRelayOptions streamdalGrpcDisableTls - * @property {number|null} [streamdalGrpcTimeoutSeconds] CreateRelayOptions streamdalGrpcTimeoutSeconds - * @property {boolean|null} [deadLetter] CreateRelayOptions deadLetter - * @property {protos.args.IKafkaRelayArgs|null} [kafka] CreateRelayOptions kafka - * @property {protos.args.IAWSSQSRelayArgs|null} [awsSqs] CreateRelayOptions awsSqs - * @property {protos.args.IMongoReadArgs|null} [mongo] CreateRelayOptions mongo - * @property {protos.args.INSQReadArgs|null} [nsq] CreateRelayOptions nsq - * @property {protos.args.IRabbitReadArgs|null} [rabbit] CreateRelayOptions rabbit - * @property {protos.args.IMQTTReadArgs|null} [mqtt] CreateRelayOptions mqtt - * @property {protos.args.IAzureServiceBusReadArgs|null} [azureServiceBus] CreateRelayOptions azureServiceBus - * @property {protos.args.IGCPPubSubReadArgs|null} [gcpPubsub] CreateRelayOptions gcpPubsub - * @property {protos.args.IKubeMQQueueReadArgs|null} [kubemqQueue] CreateRelayOptions kubemqQueue - * @property {protos.args.IRedisPubSubReadArgs|null} [redisPubsub] CreateRelayOptions redisPubsub - * @property {protos.args.IRedisStreamsReadArgs|null} [redisStreams] CreateRelayOptions redisStreams - * @property {protos.args.IPostgresReadArgs|null} [postgres] CreateRelayOptions postgres - * @property {protos.args.INatsReadArgs|null} [nats] CreateRelayOptions nats - * @property {protos.args.INatsStreamingReadArgs|null} [natsStreaming] CreateRelayOptions natsStreaming - * @property {protos.args.INatsJetstreamReadArgs|null} [natsJetstream] CreateRelayOptions natsJetstream - */ - - /** - * Constructs a new CreateRelayOptions. - * @memberof protos.opts - * @classdesc Represents a CreateRelayOptions. - * @implements ICreateRelayOptions + * Properties of a MQTTReadArgs. + * @memberof protos.args + * @interface IMQTTReadArgs + * @property {string|null} [topic] MQTTReadArgs topic + * @property {number|null} [readTimeoutSeconds] MQTTReadArgs readTimeoutSeconds + */ + + /** + * Constructs a new MQTTReadArgs. + * @memberof protos.args + * @classdesc Represents a MQTTReadArgs. + * @implements IMQTTReadArgs * @constructor - * @param {protos.opts.ICreateRelayOptions=} [properties] Properties to set + * @param {protos.args.IMQTTReadArgs=} [properties] Properties to set */ - function CreateRelayOptions(properties) { + function MQTTReadArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10419,374 +8951,88 @@ $root.protos = (function() { } /** - * CreateRelayOptions connectionId. - * @member {string} connectionId - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.connectionId = ""; - - /** - * CreateRelayOptions collectionToken. - * @member {string} collectionToken - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.collectionToken = ""; - - /** - * CreateRelayOptions batchSize. - * @member {number} batchSize - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.batchSize = 0; - - /** - * CreateRelayOptions batchMaxRetry. - * @member {number} batchMaxRetry - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.batchMaxRetry = 0; - - /** - * CreateRelayOptions numWorkers. - * @member {number} numWorkers - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.numWorkers = 0; - - /** - * CreateRelayOptions streamdalGrpcAddress. - * @member {string} streamdalGrpcAddress - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.streamdalGrpcAddress = ""; - - /** - * CreateRelayOptions streamdalGrpcDisableTls. - * @member {boolean} streamdalGrpcDisableTls - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.streamdalGrpcDisableTls = false; - - /** - * CreateRelayOptions streamdalGrpcTimeoutSeconds. - * @member {number} streamdalGrpcTimeoutSeconds - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.streamdalGrpcTimeoutSeconds = 0; - - /** - * CreateRelayOptions deadLetter. - * @member {boolean} deadLetter - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.deadLetter = false; - - /** - * CreateRelayOptions kafka. - * @member {protos.args.IKafkaRelayArgs|null|undefined} kafka - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.kafka = null; - - /** - * CreateRelayOptions awsSqs. - * @member {protos.args.IAWSSQSRelayArgs|null|undefined} awsSqs - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.awsSqs = null; - - /** - * CreateRelayOptions mongo. - * @member {protos.args.IMongoReadArgs|null|undefined} mongo - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.mongo = null; - - /** - * CreateRelayOptions nsq. - * @member {protos.args.INSQReadArgs|null|undefined} nsq - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.nsq = null; - - /** - * CreateRelayOptions rabbit. - * @member {protos.args.IRabbitReadArgs|null|undefined} rabbit - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.rabbit = null; - - /** - * CreateRelayOptions mqtt. - * @member {protos.args.IMQTTReadArgs|null|undefined} mqtt - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.mqtt = null; - - /** - * CreateRelayOptions azureServiceBus. - * @member {protos.args.IAzureServiceBusReadArgs|null|undefined} azureServiceBus - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.azureServiceBus = null; - - /** - * CreateRelayOptions gcpPubsub. - * @member {protos.args.IGCPPubSubReadArgs|null|undefined} gcpPubsub - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.gcpPubsub = null; - - /** - * CreateRelayOptions kubemqQueue. - * @member {protos.args.IKubeMQQueueReadArgs|null|undefined} kubemqQueue - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.kubemqQueue = null; - - /** - * CreateRelayOptions redisPubsub. - * @member {protos.args.IRedisPubSubReadArgs|null|undefined} redisPubsub - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.redisPubsub = null; - - /** - * CreateRelayOptions redisStreams. - * @member {protos.args.IRedisStreamsReadArgs|null|undefined} redisStreams - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.redisStreams = null; - - /** - * CreateRelayOptions postgres. - * @member {protos.args.IPostgresReadArgs|null|undefined} postgres - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.postgres = null; - - /** - * CreateRelayOptions nats. - * @member {protos.args.INatsReadArgs|null|undefined} nats - * @memberof protos.opts.CreateRelayOptions - * @instance - */ - CreateRelayOptions.prototype.nats = null; - - /** - * CreateRelayOptions natsStreaming. - * @member {protos.args.INatsStreamingReadArgs|null|undefined} natsStreaming - * @memberof protos.opts.CreateRelayOptions + * MQTTReadArgs topic. + * @member {string} topic + * @memberof protos.args.MQTTReadArgs * @instance */ - CreateRelayOptions.prototype.natsStreaming = null; + MQTTReadArgs.prototype.topic = ""; /** - * CreateRelayOptions natsJetstream. - * @member {protos.args.INatsJetstreamReadArgs|null|undefined} natsJetstream - * @memberof protos.opts.CreateRelayOptions + * MQTTReadArgs readTimeoutSeconds. + * @member {number} readTimeoutSeconds + * @memberof protos.args.MQTTReadArgs * @instance */ - CreateRelayOptions.prototype.natsJetstream = null; + MQTTReadArgs.prototype.readTimeoutSeconds = 0; /** - * Creates a new CreateRelayOptions instance using the specified properties. + * Creates a new MQTTReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.CreateRelayOptions + * @memberof protos.args.MQTTReadArgs * @static - * @param {protos.opts.ICreateRelayOptions=} [properties] Properties to set - * @returns {protos.opts.CreateRelayOptions} CreateRelayOptions instance + * @param {protos.args.IMQTTReadArgs=} [properties] Properties to set + * @returns {protos.args.MQTTReadArgs} MQTTReadArgs instance */ - CreateRelayOptions.create = function create(properties) { - return new CreateRelayOptions(properties); + MQTTReadArgs.create = function create(properties) { + return new MQTTReadArgs(properties); }; /** - * Encodes the specified CreateRelayOptions message. Does not implicitly {@link protos.opts.CreateRelayOptions.verify|verify} messages. + * Encodes the specified MQTTReadArgs message. Does not implicitly {@link protos.args.MQTTReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.CreateRelayOptions + * @memberof protos.args.MQTTReadArgs * @static - * @param {protos.opts.ICreateRelayOptions} message CreateRelayOptions message or plain object to encode + * @param {protos.args.IMQTTReadArgs} message MQTTReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateRelayOptions.encode = function encode(message, writer) { + MQTTReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connectionId); - if (message.collectionToken != null && Object.hasOwnProperty.call(message, "collectionToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.collectionToken); - if (message.batchSize != null && Object.hasOwnProperty.call(message, "batchSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.batchSize); - if (message.batchMaxRetry != null && Object.hasOwnProperty.call(message, "batchMaxRetry")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.batchMaxRetry); - if (message.numWorkers != null && Object.hasOwnProperty.call(message, "numWorkers")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.numWorkers); - if (message.streamdalGrpcAddress != null && Object.hasOwnProperty.call(message, "streamdalGrpcAddress")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.streamdalGrpcAddress); - if (message.streamdalGrpcDisableTls != null && Object.hasOwnProperty.call(message, "streamdalGrpcDisableTls")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.streamdalGrpcDisableTls); - if (message.streamdalGrpcTimeoutSeconds != null && Object.hasOwnProperty.call(message, "streamdalGrpcTimeoutSeconds")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.streamdalGrpcTimeoutSeconds); - if (message.deadLetter != null && Object.hasOwnProperty.call(message, "deadLetter")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.deadLetter); - if (message.kafka != null && Object.hasOwnProperty.call(message, "kafka")) - $root.protos.args.KafkaRelayArgs.encode(message.kafka, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); - if (message.awsSqs != null && Object.hasOwnProperty.call(message, "awsSqs")) - $root.protos.args.AWSSQSRelayArgs.encode(message.awsSqs, writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); - if (message.mongo != null && Object.hasOwnProperty.call(message, "mongo")) - $root.protos.args.MongoReadArgs.encode(message.mongo, writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim(); - if (message.nsq != null && Object.hasOwnProperty.call(message, "nsq")) - $root.protos.args.NSQReadArgs.encode(message.nsq, writer.uint32(/* id 103, wireType 2 =*/826).fork()).ldelim(); - if (message.rabbit != null && Object.hasOwnProperty.call(message, "rabbit")) - $root.protos.args.RabbitReadArgs.encode(message.rabbit, writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim(); - if (message.mqtt != null && Object.hasOwnProperty.call(message, "mqtt")) - $root.protos.args.MQTTReadArgs.encode(message.mqtt, writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); - if (message.azureServiceBus != null && Object.hasOwnProperty.call(message, "azureServiceBus")) - $root.protos.args.AzureServiceBusReadArgs.encode(message.azureServiceBus, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim(); - if (message.gcpPubsub != null && Object.hasOwnProperty.call(message, "gcpPubsub")) - $root.protos.args.GCPPubSubReadArgs.encode(message.gcpPubsub, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); - if (message.kubemqQueue != null && Object.hasOwnProperty.call(message, "kubemqQueue")) - $root.protos.args.KubeMQQueueReadArgs.encode(message.kubemqQueue, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim(); - if (message.redisPubsub != null && Object.hasOwnProperty.call(message, "redisPubsub")) - $root.protos.args.RedisPubSubReadArgs.encode(message.redisPubsub, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); - if (message.redisStreams != null && Object.hasOwnProperty.call(message, "redisStreams")) - $root.protos.args.RedisStreamsReadArgs.encode(message.redisStreams, writer.uint32(/* id 111, wireType 2 =*/890).fork()).ldelim(); - if (message.postgres != null && Object.hasOwnProperty.call(message, "postgres")) - $root.protos.args.PostgresReadArgs.encode(message.postgres, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim(); - if (message.nats != null && Object.hasOwnProperty.call(message, "nats")) - $root.protos.args.NatsReadArgs.encode(message.nats, writer.uint32(/* id 113, wireType 2 =*/906).fork()).ldelim(); - if (message.natsStreaming != null && Object.hasOwnProperty.call(message, "natsStreaming")) - $root.protos.args.NatsStreamingReadArgs.encode(message.natsStreaming, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); - if (message.natsJetstream != null && Object.hasOwnProperty.call(message, "natsJetstream")) - $root.protos.args.NatsJetstreamReadArgs.encode(message.natsJetstream, writer.uint32(/* id 115, wireType 2 =*/922).fork()).ldelim(); + if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); + if (message.readTimeoutSeconds != null && Object.hasOwnProperty.call(message, "readTimeoutSeconds")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.readTimeoutSeconds); return writer; }; /** - * Encodes the specified CreateRelayOptions message, length delimited. Does not implicitly {@link protos.opts.CreateRelayOptions.verify|verify} messages. + * Encodes the specified MQTTReadArgs message, length delimited. Does not implicitly {@link protos.args.MQTTReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.CreateRelayOptions + * @memberof protos.args.MQTTReadArgs * @static - * @param {protos.opts.ICreateRelayOptions} message CreateRelayOptions message or plain object to encode + * @param {protos.args.IMQTTReadArgs} message MQTTReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateRelayOptions.encodeDelimited = function encodeDelimited(message, writer) { + MQTTReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateRelayOptions message from the specified reader or buffer. + * Decodes a MQTTReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.CreateRelayOptions + * @memberof protos.args.MQTTReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.CreateRelayOptions} CreateRelayOptions + * @returns {protos.args.MQTTReadArgs} MQTTReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateRelayOptions.decode = function decode(reader, length) { + MQTTReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.CreateRelayOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MQTTReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connectionId = reader.string(); + message.topic = reader.string(); break; case 2: - message.collectionToken = reader.string(); - break; - case 3: - message.batchSize = reader.int32(); - break; - case 4: - message.batchMaxRetry = reader.int32(); - break; - case 5: - message.numWorkers = reader.int32(); - break; - case 6: - message.streamdalGrpcAddress = reader.string(); - break; - case 7: - message.streamdalGrpcDisableTls = reader.bool(); - break; - case 8: - message.streamdalGrpcTimeoutSeconds = reader.int32(); - break; - case 9: - message.deadLetter = reader.bool(); - break; - case 100: - message.kafka = $root.protos.args.KafkaRelayArgs.decode(reader, reader.uint32()); - break; - case 101: - message.awsSqs = $root.protos.args.AWSSQSRelayArgs.decode(reader, reader.uint32()); - break; - case 102: - message.mongo = $root.protos.args.MongoReadArgs.decode(reader, reader.uint32()); - break; - case 103: - message.nsq = $root.protos.args.NSQReadArgs.decode(reader, reader.uint32()); - break; - case 104: - message.rabbit = $root.protos.args.RabbitReadArgs.decode(reader, reader.uint32()); - break; - case 105: - message.mqtt = $root.protos.args.MQTTReadArgs.decode(reader, reader.uint32()); - break; - case 106: - message.azureServiceBus = $root.protos.args.AzureServiceBusReadArgs.decode(reader, reader.uint32()); - break; - case 107: - message.gcpPubsub = $root.protos.args.GCPPubSubReadArgs.decode(reader, reader.uint32()); - break; - case 108: - message.kubemqQueue = $root.protos.args.KubeMQQueueReadArgs.decode(reader, reader.uint32()); - break; - case 109: - message.redisPubsub = $root.protos.args.RedisPubSubReadArgs.decode(reader, reader.uint32()); - break; - case 111: - message.redisStreams = $root.protos.args.RedisStreamsReadArgs.decode(reader, reader.uint32()); - break; - case 112: - message.postgres = $root.protos.args.PostgresReadArgs.decode(reader, reader.uint32()); - break; - case 113: - message.nats = $root.protos.args.NatsReadArgs.decode(reader, reader.uint32()); - break; - case 114: - message.natsStreaming = $root.protos.args.NatsStreamingReadArgs.decode(reader, reader.uint32()); - break; - case 115: - message.natsJetstream = $root.protos.args.NatsJetstreamReadArgs.decode(reader, reader.uint32()); + message.readTimeoutSeconds = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -10797,367 +9043,117 @@ $root.protos = (function() { }; /** - * Decodes a CreateRelayOptions message from the specified reader or buffer, length delimited. + * Decodes a MQTTReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.CreateRelayOptions + * @memberof protos.args.MQTTReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.CreateRelayOptions} CreateRelayOptions + * @returns {protos.args.MQTTReadArgs} MQTTReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateRelayOptions.decodeDelimited = function decodeDelimited(reader) { + MQTTReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateRelayOptions message. + * Verifies a MQTTReadArgs message. * @function verify - * @memberof protos.opts.CreateRelayOptions + * @memberof protos.args.MQTTReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateRelayOptions.verify = function verify(message) { + MQTTReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - if (!$util.isString(message.connectionId)) - return "connectionId: string expected"; - if (message.collectionToken != null && message.hasOwnProperty("collectionToken")) - if (!$util.isString(message.collectionToken)) - return "collectionToken: string expected"; - if (message.batchSize != null && message.hasOwnProperty("batchSize")) - if (!$util.isInteger(message.batchSize)) - return "batchSize: integer expected"; - if (message.batchMaxRetry != null && message.hasOwnProperty("batchMaxRetry")) - if (!$util.isInteger(message.batchMaxRetry)) - return "batchMaxRetry: integer expected"; - if (message.numWorkers != null && message.hasOwnProperty("numWorkers")) - if (!$util.isInteger(message.numWorkers)) - return "numWorkers: integer expected"; - if (message.streamdalGrpcAddress != null && message.hasOwnProperty("streamdalGrpcAddress")) - if (!$util.isString(message.streamdalGrpcAddress)) - return "streamdalGrpcAddress: string expected"; - if (message.streamdalGrpcDisableTls != null && message.hasOwnProperty("streamdalGrpcDisableTls")) - if (typeof message.streamdalGrpcDisableTls !== "boolean") - return "streamdalGrpcDisableTls: boolean expected"; - if (message.streamdalGrpcTimeoutSeconds != null && message.hasOwnProperty("streamdalGrpcTimeoutSeconds")) - if (!$util.isInteger(message.streamdalGrpcTimeoutSeconds)) - return "streamdalGrpcTimeoutSeconds: integer expected"; - if (message.deadLetter != null && message.hasOwnProperty("deadLetter")) - if (typeof message.deadLetter !== "boolean") - return "deadLetter: boolean expected"; - if (message.kafka != null && message.hasOwnProperty("kafka")) { - var error = $root.protos.args.KafkaRelayArgs.verify(message.kafka); - if (error) - return "kafka." + error; - } - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) { - var error = $root.protos.args.AWSSQSRelayArgs.verify(message.awsSqs); - if (error) - return "awsSqs." + error; - } - if (message.mongo != null && message.hasOwnProperty("mongo")) { - var error = $root.protos.args.MongoReadArgs.verify(message.mongo); - if (error) - return "mongo." + error; - } - if (message.nsq != null && message.hasOwnProperty("nsq")) { - var error = $root.protos.args.NSQReadArgs.verify(message.nsq); - if (error) - return "nsq." + error; - } - if (message.rabbit != null && message.hasOwnProperty("rabbit")) { - var error = $root.protos.args.RabbitReadArgs.verify(message.rabbit); - if (error) - return "rabbit." + error; - } - if (message.mqtt != null && message.hasOwnProperty("mqtt")) { - var error = $root.protos.args.MQTTReadArgs.verify(message.mqtt); - if (error) - return "mqtt." + error; - } - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) { - var error = $root.protos.args.AzureServiceBusReadArgs.verify(message.azureServiceBus); - if (error) - return "azureServiceBus." + error; - } - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) { - var error = $root.protos.args.GCPPubSubReadArgs.verify(message.gcpPubsub); - if (error) - return "gcpPubsub." + error; - } - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) { - var error = $root.protos.args.KubeMQQueueReadArgs.verify(message.kubemqQueue); - if (error) - return "kubemqQueue." + error; - } - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) { - var error = $root.protos.args.RedisPubSubReadArgs.verify(message.redisPubsub); - if (error) - return "redisPubsub." + error; - } - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) { - var error = $root.protos.args.RedisStreamsReadArgs.verify(message.redisStreams); - if (error) - return "redisStreams." + error; - } - if (message.postgres != null && message.hasOwnProperty("postgres")) { - var error = $root.protos.args.PostgresReadArgs.verify(message.postgres); - if (error) - return "postgres." + error; - } - if (message.nats != null && message.hasOwnProperty("nats")) { - var error = $root.protos.args.NatsReadArgs.verify(message.nats); - if (error) - return "nats." + error; - } - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) { - var error = $root.protos.args.NatsStreamingReadArgs.verify(message.natsStreaming); - if (error) - return "natsStreaming." + error; - } - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) { - var error = $root.protos.args.NatsJetstreamReadArgs.verify(message.natsJetstream); - if (error) - return "natsJetstream." + error; - } + if (message.topic != null && message.hasOwnProperty("topic")) + if (!$util.isString(message.topic)) + return "topic: string expected"; + if (message.readTimeoutSeconds != null && message.hasOwnProperty("readTimeoutSeconds")) + if (!$util.isInteger(message.readTimeoutSeconds)) + return "readTimeoutSeconds: integer expected"; return null; }; /** - * Creates a CreateRelayOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MQTTReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.CreateRelayOptions + * @memberof protos.args.MQTTReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.CreateRelayOptions} CreateRelayOptions + * @returns {protos.args.MQTTReadArgs} MQTTReadArgs */ - CreateRelayOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.CreateRelayOptions) + MQTTReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.MQTTReadArgs) return object; - var message = new $root.protos.opts.CreateRelayOptions(); - if (object.connectionId != null) - message.connectionId = String(object.connectionId); - if (object.collectionToken != null) - message.collectionToken = String(object.collectionToken); - if (object.batchSize != null) - message.batchSize = object.batchSize | 0; - if (object.batchMaxRetry != null) - message.batchMaxRetry = object.batchMaxRetry | 0; - if (object.numWorkers != null) - message.numWorkers = object.numWorkers | 0; - if (object.streamdalGrpcAddress != null) - message.streamdalGrpcAddress = String(object.streamdalGrpcAddress); - if (object.streamdalGrpcDisableTls != null) - message.streamdalGrpcDisableTls = Boolean(object.streamdalGrpcDisableTls); - if (object.streamdalGrpcTimeoutSeconds != null) - message.streamdalGrpcTimeoutSeconds = object.streamdalGrpcTimeoutSeconds | 0; - if (object.deadLetter != null) - message.deadLetter = Boolean(object.deadLetter); - if (object.kafka != null) { - if (typeof object.kafka !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.kafka: object expected"); - message.kafka = $root.protos.args.KafkaRelayArgs.fromObject(object.kafka); - } - if (object.awsSqs != null) { - if (typeof object.awsSqs !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.awsSqs: object expected"); - message.awsSqs = $root.protos.args.AWSSQSRelayArgs.fromObject(object.awsSqs); - } - if (object.mongo != null) { - if (typeof object.mongo !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.mongo: object expected"); - message.mongo = $root.protos.args.MongoReadArgs.fromObject(object.mongo); - } - if (object.nsq != null) { - if (typeof object.nsq !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.nsq: object expected"); - message.nsq = $root.protos.args.NSQReadArgs.fromObject(object.nsq); - } - if (object.rabbit != null) { - if (typeof object.rabbit !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.rabbit: object expected"); - message.rabbit = $root.protos.args.RabbitReadArgs.fromObject(object.rabbit); - } - if (object.mqtt != null) { - if (typeof object.mqtt !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.mqtt: object expected"); - message.mqtt = $root.protos.args.MQTTReadArgs.fromObject(object.mqtt); - } - if (object.azureServiceBus != null) { - if (typeof object.azureServiceBus !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.azureServiceBus: object expected"); - message.azureServiceBus = $root.protos.args.AzureServiceBusReadArgs.fromObject(object.azureServiceBus); - } - if (object.gcpPubsub != null) { - if (typeof object.gcpPubsub !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.gcpPubsub: object expected"); - message.gcpPubsub = $root.protos.args.GCPPubSubReadArgs.fromObject(object.gcpPubsub); - } - if (object.kubemqQueue != null) { - if (typeof object.kubemqQueue !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.kubemqQueue: object expected"); - message.kubemqQueue = $root.protos.args.KubeMQQueueReadArgs.fromObject(object.kubemqQueue); - } - if (object.redisPubsub != null) { - if (typeof object.redisPubsub !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.redisPubsub: object expected"); - message.redisPubsub = $root.protos.args.RedisPubSubReadArgs.fromObject(object.redisPubsub); - } - if (object.redisStreams != null) { - if (typeof object.redisStreams !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.redisStreams: object expected"); - message.redisStreams = $root.protos.args.RedisStreamsReadArgs.fromObject(object.redisStreams); - } - if (object.postgres != null) { - if (typeof object.postgres !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.postgres: object expected"); - message.postgres = $root.protos.args.PostgresReadArgs.fromObject(object.postgres); - } - if (object.nats != null) { - if (typeof object.nats !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.nats: object expected"); - message.nats = $root.protos.args.NatsReadArgs.fromObject(object.nats); - } - if (object.natsStreaming != null) { - if (typeof object.natsStreaming !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.natsStreaming: object expected"); - message.natsStreaming = $root.protos.args.NatsStreamingReadArgs.fromObject(object.natsStreaming); - } - if (object.natsJetstream != null) { - if (typeof object.natsJetstream !== "object") - throw TypeError(".protos.opts.CreateRelayOptions.natsJetstream: object expected"); - message.natsJetstream = $root.protos.args.NatsJetstreamReadArgs.fromObject(object.natsJetstream); - } + var message = new $root.protos.args.MQTTReadArgs(); + if (object.topic != null) + message.topic = String(object.topic); + if (object.readTimeoutSeconds != null) + message.readTimeoutSeconds = object.readTimeoutSeconds >>> 0; return message; }; /** - * Creates a plain object from a CreateRelayOptions message. Also converts values to other types if specified. + * Creates a plain object from a MQTTReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.CreateRelayOptions + * @memberof protos.args.MQTTReadArgs * @static - * @param {protos.opts.CreateRelayOptions} message CreateRelayOptions + * @param {protos.args.MQTTReadArgs} message MQTTReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateRelayOptions.toObject = function toObject(message, options) { + MQTTReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.connectionId = ""; - object.collectionToken = ""; - object.batchSize = 0; - object.batchMaxRetry = 0; - object.numWorkers = 0; - object.streamdalGrpcAddress = ""; - object.streamdalGrpcDisableTls = false; - object.streamdalGrpcTimeoutSeconds = 0; - object.deadLetter = false; - object.kafka = null; - object.awsSqs = null; - object.mongo = null; - object.nsq = null; - object.rabbit = null; - object.mqtt = null; - object.azureServiceBus = null; - object.gcpPubsub = null; - object.kubemqQueue = null; - object.redisPubsub = null; - object.redisStreams = null; - object.postgres = null; - object.nats = null; - object.natsStreaming = null; - object.natsJetstream = null; + object.topic = ""; + object.readTimeoutSeconds = 0; } - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - object.connectionId = message.connectionId; - if (message.collectionToken != null && message.hasOwnProperty("collectionToken")) - object.collectionToken = message.collectionToken; - if (message.batchSize != null && message.hasOwnProperty("batchSize")) - object.batchSize = message.batchSize; - if (message.batchMaxRetry != null && message.hasOwnProperty("batchMaxRetry")) - object.batchMaxRetry = message.batchMaxRetry; - if (message.numWorkers != null && message.hasOwnProperty("numWorkers")) - object.numWorkers = message.numWorkers; - if (message.streamdalGrpcAddress != null && message.hasOwnProperty("streamdalGrpcAddress")) - object.streamdalGrpcAddress = message.streamdalGrpcAddress; - if (message.streamdalGrpcDisableTls != null && message.hasOwnProperty("streamdalGrpcDisableTls")) - object.streamdalGrpcDisableTls = message.streamdalGrpcDisableTls; - if (message.streamdalGrpcTimeoutSeconds != null && message.hasOwnProperty("streamdalGrpcTimeoutSeconds")) - object.streamdalGrpcTimeoutSeconds = message.streamdalGrpcTimeoutSeconds; - if (message.deadLetter != null && message.hasOwnProperty("deadLetter")) - object.deadLetter = message.deadLetter; - if (message.kafka != null && message.hasOwnProperty("kafka")) - object.kafka = $root.protos.args.KafkaRelayArgs.toObject(message.kafka, options); - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) - object.awsSqs = $root.protos.args.AWSSQSRelayArgs.toObject(message.awsSqs, options); - if (message.mongo != null && message.hasOwnProperty("mongo")) - object.mongo = $root.protos.args.MongoReadArgs.toObject(message.mongo, options); - if (message.nsq != null && message.hasOwnProperty("nsq")) - object.nsq = $root.protos.args.NSQReadArgs.toObject(message.nsq, options); - if (message.rabbit != null && message.hasOwnProperty("rabbit")) - object.rabbit = $root.protos.args.RabbitReadArgs.toObject(message.rabbit, options); - if (message.mqtt != null && message.hasOwnProperty("mqtt")) - object.mqtt = $root.protos.args.MQTTReadArgs.toObject(message.mqtt, options); - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) - object.azureServiceBus = $root.protos.args.AzureServiceBusReadArgs.toObject(message.azureServiceBus, options); - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) - object.gcpPubsub = $root.protos.args.GCPPubSubReadArgs.toObject(message.gcpPubsub, options); - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) - object.kubemqQueue = $root.protos.args.KubeMQQueueReadArgs.toObject(message.kubemqQueue, options); - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) - object.redisPubsub = $root.protos.args.RedisPubSubReadArgs.toObject(message.redisPubsub, options); - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) - object.redisStreams = $root.protos.args.RedisStreamsReadArgs.toObject(message.redisStreams, options); - if (message.postgres != null && message.hasOwnProperty("postgres")) - object.postgres = $root.protos.args.PostgresReadArgs.toObject(message.postgres, options); - if (message.nats != null && message.hasOwnProperty("nats")) - object.nats = $root.protos.args.NatsReadArgs.toObject(message.nats, options); - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) - object.natsStreaming = $root.protos.args.NatsStreamingReadArgs.toObject(message.natsStreaming, options); - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) - object.natsJetstream = $root.protos.args.NatsJetstreamReadArgs.toObject(message.natsJetstream, options); + if (message.topic != null && message.hasOwnProperty("topic")) + object.topic = message.topic; + if (message.readTimeoutSeconds != null && message.hasOwnProperty("readTimeoutSeconds")) + object.readTimeoutSeconds = message.readTimeoutSeconds; return object; }; /** - * Converts this CreateRelayOptions to JSON. + * Converts this MQTTReadArgs to JSON. * @function toJSON - * @memberof protos.opts.CreateRelayOptions + * @memberof protos.args.MQTTReadArgs * @instance * @returns {Object.} JSON object */ - CreateRelayOptions.prototype.toJSON = function toJSON() { + MQTTReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateRelayOptions; + return MQTTReadArgs; })(); - opts.DeleteRelayOptions = (function() { + args.MQTTWriteArgs = (function() { /** - * Properties of a DeleteRelayOptions. - * @memberof protos.opts - * @interface IDeleteRelayOptions - * @property {string|null} [id] DeleteRelayOptions id + * Properties of a MQTTWriteArgs. + * @memberof protos.args + * @interface IMQTTWriteArgs + * @property {string|null} [topic] MQTTWriteArgs topic + * @property {number|null} [writeTimeoutSeconds] MQTTWriteArgs writeTimeoutSeconds */ /** - * Constructs a new DeleteRelayOptions. - * @memberof protos.opts - * @classdesc Represents a DeleteRelayOptions. - * @implements IDeleteRelayOptions + * Constructs a new MQTTWriteArgs. + * @memberof protos.args + * @classdesc Represents a MQTTWriteArgs. + * @implements IMQTTWriteArgs * @constructor - * @param {protos.opts.IDeleteRelayOptions=} [properties] Properties to set + * @param {protos.args.IMQTTWriteArgs=} [properties] Properties to set */ - function DeleteRelayOptions(properties) { + function MQTTWriteArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11165,75 +9161,88 @@ $root.protos = (function() { } /** - * DeleteRelayOptions id. - * @member {string} id - * @memberof protos.opts.DeleteRelayOptions + * MQTTWriteArgs topic. + * @member {string} topic + * @memberof protos.args.MQTTWriteArgs + * @instance + */ + MQTTWriteArgs.prototype.topic = ""; + + /** + * MQTTWriteArgs writeTimeoutSeconds. + * @member {number} writeTimeoutSeconds + * @memberof protos.args.MQTTWriteArgs * @instance */ - DeleteRelayOptions.prototype.id = ""; + MQTTWriteArgs.prototype.writeTimeoutSeconds = 0; /** - * Creates a new DeleteRelayOptions instance using the specified properties. + * Creates a new MQTTWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.DeleteRelayOptions + * @memberof protos.args.MQTTWriteArgs * @static - * @param {protos.opts.IDeleteRelayOptions=} [properties] Properties to set - * @returns {protos.opts.DeleteRelayOptions} DeleteRelayOptions instance + * @param {protos.args.IMQTTWriteArgs=} [properties] Properties to set + * @returns {protos.args.MQTTWriteArgs} MQTTWriteArgs instance */ - DeleteRelayOptions.create = function create(properties) { - return new DeleteRelayOptions(properties); + MQTTWriteArgs.create = function create(properties) { + return new MQTTWriteArgs(properties); }; /** - * Encodes the specified DeleteRelayOptions message. Does not implicitly {@link protos.opts.DeleteRelayOptions.verify|verify} messages. + * Encodes the specified MQTTWriteArgs message. Does not implicitly {@link protos.args.MQTTWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.DeleteRelayOptions + * @memberof protos.args.MQTTWriteArgs * @static - * @param {protos.opts.IDeleteRelayOptions} message DeleteRelayOptions message or plain object to encode + * @param {protos.args.IMQTTWriteArgs} message MQTTWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteRelayOptions.encode = function encode(message, writer) { + MQTTWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); + if (message.writeTimeoutSeconds != null && Object.hasOwnProperty.call(message, "writeTimeoutSeconds")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.writeTimeoutSeconds); return writer; }; /** - * Encodes the specified DeleteRelayOptions message, length delimited. Does not implicitly {@link protos.opts.DeleteRelayOptions.verify|verify} messages. + * Encodes the specified MQTTWriteArgs message, length delimited. Does not implicitly {@link protos.args.MQTTWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.DeleteRelayOptions + * @memberof protos.args.MQTTWriteArgs * @static - * @param {protos.opts.IDeleteRelayOptions} message DeleteRelayOptions message or plain object to encode + * @param {protos.args.IMQTTWriteArgs} message MQTTWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteRelayOptions.encodeDelimited = function encodeDelimited(message, writer) { + MQTTWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteRelayOptions message from the specified reader or buffer. + * Decodes a MQTTWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.DeleteRelayOptions + * @memberof protos.args.MQTTWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.DeleteRelayOptions} DeleteRelayOptions + * @returns {protos.args.MQTTWriteArgs} MQTTWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteRelayOptions.decode = function decode(reader, length) { + MQTTWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.DeleteRelayOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MQTTWriteArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message.topic = reader.string(); + break; + case 2: + message.writeTimeoutSeconds = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -11244,107 +9253,119 @@ $root.protos = (function() { }; /** - * Decodes a DeleteRelayOptions message from the specified reader or buffer, length delimited. + * Decodes a MQTTWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.DeleteRelayOptions + * @memberof protos.args.MQTTWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.DeleteRelayOptions} DeleteRelayOptions + * @returns {protos.args.MQTTWriteArgs} MQTTWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteRelayOptions.decodeDelimited = function decodeDelimited(reader) { + MQTTWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteRelayOptions message. + * Verifies a MQTTWriteArgs message. * @function verify - * @memberof protos.opts.DeleteRelayOptions + * @memberof protos.args.MQTTWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteRelayOptions.verify = function verify(message) { + MQTTWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; + if (message.topic != null && message.hasOwnProperty("topic")) + if (!$util.isString(message.topic)) + return "topic: string expected"; + if (message.writeTimeoutSeconds != null && message.hasOwnProperty("writeTimeoutSeconds")) + if (!$util.isInteger(message.writeTimeoutSeconds)) + return "writeTimeoutSeconds: integer expected"; return null; }; /** - * Creates a DeleteRelayOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MQTTWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.DeleteRelayOptions + * @memberof protos.args.MQTTWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.DeleteRelayOptions} DeleteRelayOptions + * @returns {protos.args.MQTTWriteArgs} MQTTWriteArgs */ - DeleteRelayOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.DeleteRelayOptions) + MQTTWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.MQTTWriteArgs) return object; - var message = new $root.protos.opts.DeleteRelayOptions(); - if (object.id != null) - message.id = String(object.id); + var message = new $root.protos.args.MQTTWriteArgs(); + if (object.topic != null) + message.topic = String(object.topic); + if (object.writeTimeoutSeconds != null) + message.writeTimeoutSeconds = object.writeTimeoutSeconds >>> 0; return message; }; /** - * Creates a plain object from a DeleteRelayOptions message. Also converts values to other types if specified. + * Creates a plain object from a MQTTWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.DeleteRelayOptions + * @memberof protos.args.MQTTWriteArgs * @static - * @param {protos.opts.DeleteRelayOptions} message DeleteRelayOptions + * @param {protos.args.MQTTWriteArgs} message MQTTWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteRelayOptions.toObject = function toObject(message, options) { + MQTTWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + if (options.defaults) { + object.topic = ""; + object.writeTimeoutSeconds = 0; + } + if (message.topic != null && message.hasOwnProperty("topic")) + object.topic = message.topic; + if (message.writeTimeoutSeconds != null && message.hasOwnProperty("writeTimeoutSeconds")) + object.writeTimeoutSeconds = message.writeTimeoutSeconds; return object; }; /** - * Converts this DeleteRelayOptions to JSON. + * Converts this MQTTWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.DeleteRelayOptions + * @memberof protos.args.MQTTWriteArgs * @instance * @returns {Object.} JSON object */ - DeleteRelayOptions.prototype.toJSON = function toJSON() { + MQTTWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteRelayOptions; + return MQTTWriteArgs; })(); - opts.StopRelayOptions = (function() { + args.NatsConn = (function() { /** - * Properties of a StopRelayOptions. - * @memberof protos.opts - * @interface IStopRelayOptions - * @property {string|null} [id] StopRelayOptions id + * Properties of a NatsConn. + * @memberof protos.args + * @interface INatsConn + * @property {string|null} [dsn] NatsConn dsn + * @property {string|null} [userCredentials] NatsConn userCredentials + * @property {protos.args.INatsTLSOptions|null} [tlsOptions] NatsConn tlsOptions + * @property {string|null} [nkey] NatsConn nkey */ /** - * Constructs a new StopRelayOptions. - * @memberof protos.opts - * @classdesc Represents a StopRelayOptions. - * @implements IStopRelayOptions + * Constructs a new NatsConn. + * @memberof protos.args + * @classdesc Represents a NatsConn. + * @implements INatsConn * @constructor - * @param {protos.opts.IStopRelayOptions=} [properties] Properties to set + * @param {protos.args.INatsConn=} [properties] Properties to set */ - function StopRelayOptions(properties) { + function NatsConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11352,75 +9373,114 @@ $root.protos = (function() { } /** - * StopRelayOptions id. - * @member {string} id - * @memberof protos.opts.StopRelayOptions + * NatsConn dsn. + * @member {string} dsn + * @memberof protos.args.NatsConn + * @instance + */ + NatsConn.prototype.dsn = ""; + + /** + * NatsConn userCredentials. + * @member {string} userCredentials + * @memberof protos.args.NatsConn + * @instance + */ + NatsConn.prototype.userCredentials = ""; + + /** + * NatsConn tlsOptions. + * @member {protos.args.INatsTLSOptions|null|undefined} tlsOptions + * @memberof protos.args.NatsConn + * @instance + */ + NatsConn.prototype.tlsOptions = null; + + /** + * NatsConn nkey. + * @member {string} nkey + * @memberof protos.args.NatsConn * @instance */ - StopRelayOptions.prototype.id = ""; + NatsConn.prototype.nkey = ""; /** - * Creates a new StopRelayOptions instance using the specified properties. + * Creates a new NatsConn instance using the specified properties. * @function create - * @memberof protos.opts.StopRelayOptions + * @memberof protos.args.NatsConn * @static - * @param {protos.opts.IStopRelayOptions=} [properties] Properties to set - * @returns {protos.opts.StopRelayOptions} StopRelayOptions instance + * @param {protos.args.INatsConn=} [properties] Properties to set + * @returns {protos.args.NatsConn} NatsConn instance */ - StopRelayOptions.create = function create(properties) { - return new StopRelayOptions(properties); + NatsConn.create = function create(properties) { + return new NatsConn(properties); }; /** - * Encodes the specified StopRelayOptions message. Does not implicitly {@link protos.opts.StopRelayOptions.verify|verify} messages. + * Encodes the specified NatsConn message. Does not implicitly {@link protos.args.NatsConn.verify|verify} messages. * @function encode - * @memberof protos.opts.StopRelayOptions + * @memberof protos.args.NatsConn * @static - * @param {protos.opts.IStopRelayOptions} message StopRelayOptions message or plain object to encode + * @param {protos.args.INatsConn} message NatsConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopRelayOptions.encode = function encode(message, writer) { + NatsConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.dsn != null && Object.hasOwnProperty.call(message, "dsn")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dsn); + if (message.userCredentials != null && Object.hasOwnProperty.call(message, "userCredentials")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.userCredentials); + if (message.tlsOptions != null && Object.hasOwnProperty.call(message, "tlsOptions")) + $root.protos.args.NatsTLSOptions.encode(message.tlsOptions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.nkey != null && Object.hasOwnProperty.call(message, "nkey")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nkey); return writer; }; /** - * Encodes the specified StopRelayOptions message, length delimited. Does not implicitly {@link protos.opts.StopRelayOptions.verify|verify} messages. + * Encodes the specified NatsConn message, length delimited. Does not implicitly {@link protos.args.NatsConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.StopRelayOptions + * @memberof protos.args.NatsConn * @static - * @param {protos.opts.IStopRelayOptions} message StopRelayOptions message or plain object to encode + * @param {protos.args.INatsConn} message NatsConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopRelayOptions.encodeDelimited = function encodeDelimited(message, writer) { + NatsConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopRelayOptions message from the specified reader or buffer. + * Decodes a NatsConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.StopRelayOptions + * @memberof protos.args.NatsConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.StopRelayOptions} StopRelayOptions + * @returns {protos.args.NatsConn} NatsConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopRelayOptions.decode = function decode(reader, length) { + NatsConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.StopRelayOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message.dsn = reader.string(); + break; + case 2: + message.userCredentials = reader.string(); + break; + case 3: + message.tlsOptions = $root.protos.args.NatsTLSOptions.decode(reader, reader.uint32()); + break; + case 4: + message.nkey = reader.string(); break; default: reader.skipType(tag & 7); @@ -11431,107 +9491,141 @@ $root.protos = (function() { }; /** - * Decodes a StopRelayOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.StopRelayOptions + * @memberof protos.args.NatsConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.StopRelayOptions} StopRelayOptions + * @returns {protos.args.NatsConn} NatsConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopRelayOptions.decodeDelimited = function decodeDelimited(reader) { + NatsConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopRelayOptions message. + * Verifies a NatsConn message. * @function verify - * @memberof protos.opts.StopRelayOptions + * @memberof protos.args.NatsConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopRelayOptions.verify = function verify(message) { + NatsConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; + if (message.dsn != null && message.hasOwnProperty("dsn")) + if (!$util.isString(message.dsn)) + return "dsn: string expected"; + if (message.userCredentials != null && message.hasOwnProperty("userCredentials")) + if (!$util.isString(message.userCredentials)) + return "userCredentials: string expected"; + if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) { + var error = $root.protos.args.NatsTLSOptions.verify(message.tlsOptions); + if (error) + return "tlsOptions." + error; + } + if (message.nkey != null && message.hasOwnProperty("nkey")) + if (!$util.isString(message.nkey)) + return "nkey: string expected"; return null; }; /** - * Creates a StopRelayOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.StopRelayOptions + * @memberof protos.args.NatsConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.StopRelayOptions} StopRelayOptions + * @returns {protos.args.NatsConn} NatsConn */ - StopRelayOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.StopRelayOptions) + NatsConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NatsConn) return object; - var message = new $root.protos.opts.StopRelayOptions(); - if (object.id != null) - message.id = String(object.id); + var message = new $root.protos.args.NatsConn(); + if (object.dsn != null) + message.dsn = String(object.dsn); + if (object.userCredentials != null) + message.userCredentials = String(object.userCredentials); + if (object.tlsOptions != null) { + if (typeof object.tlsOptions !== "object") + throw TypeError(".protos.args.NatsConn.tlsOptions: object expected"); + message.tlsOptions = $root.protos.args.NatsTLSOptions.fromObject(object.tlsOptions); + } + if (object.nkey != null) + message.nkey = String(object.nkey); return message; }; /** - * Creates a plain object from a StopRelayOptions message. Also converts values to other types if specified. + * Creates a plain object from a NatsConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.StopRelayOptions + * @memberof protos.args.NatsConn * @static - * @param {protos.opts.StopRelayOptions} message StopRelayOptions + * @param {protos.args.NatsConn} message NatsConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopRelayOptions.toObject = function toObject(message, options) { + NatsConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + if (options.defaults) { + object.dsn = ""; + object.userCredentials = ""; + object.tlsOptions = null; + object.nkey = ""; + } + if (message.dsn != null && message.hasOwnProperty("dsn")) + object.dsn = message.dsn; + if (message.userCredentials != null && message.hasOwnProperty("userCredentials")) + object.userCredentials = message.userCredentials; + if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) + object.tlsOptions = $root.protos.args.NatsTLSOptions.toObject(message.tlsOptions, options); + if (message.nkey != null && message.hasOwnProperty("nkey")) + object.nkey = message.nkey; return object; }; /** - * Converts this StopRelayOptions to JSON. + * Converts this NatsConn to JSON. * @function toJSON - * @memberof protos.opts.StopRelayOptions + * @memberof protos.args.NatsConn * @instance * @returns {Object.} JSON object */ - StopRelayOptions.prototype.toJSON = function toJSON() { + NatsConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StopRelayOptions; + return NatsConn; })(); - opts.ResumeRelayOptions = (function() { + args.NatsTLSOptions = (function() { /** - * Properties of a ResumeRelayOptions. - * @memberof protos.opts - * @interface IResumeRelayOptions - * @property {string|null} [id] ResumeRelayOptions id + * Properties of a NatsTLSOptions. + * @memberof protos.args + * @interface INatsTLSOptions + * @property {boolean|null} [tlsSkipVerify] NatsTLSOptions tlsSkipVerify + * @property {string|null} [tlsCaCert] NatsTLSOptions tlsCaCert + * @property {string|null} [tlsClientCert] NatsTLSOptions tlsClientCert + * @property {string|null} [tlsClientKey] NatsTLSOptions tlsClientKey + * @property {boolean|null} [useTls] NatsTLSOptions useTls */ /** - * Constructs a new ResumeRelayOptions. - * @memberof protos.opts - * @classdesc Represents a ResumeRelayOptions. - * @implements IResumeRelayOptions + * Constructs a new NatsTLSOptions. + * @memberof protos.args + * @classdesc Represents a NatsTLSOptions. + * @implements INatsTLSOptions * @constructor - * @param {protos.opts.IResumeRelayOptions=} [properties] Properties to set + * @param {protos.args.INatsTLSOptions=} [properties] Properties to set */ - function ResumeRelayOptions(properties) { + function NatsTLSOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11539,75 +9633,127 @@ $root.protos = (function() { } /** - * ResumeRelayOptions id. - * @member {string} id - * @memberof protos.opts.ResumeRelayOptions + * NatsTLSOptions tlsSkipVerify. + * @member {boolean} tlsSkipVerify + * @memberof protos.args.NatsTLSOptions + * @instance + */ + NatsTLSOptions.prototype.tlsSkipVerify = false; + + /** + * NatsTLSOptions tlsCaCert. + * @member {string} tlsCaCert + * @memberof protos.args.NatsTLSOptions + * @instance + */ + NatsTLSOptions.prototype.tlsCaCert = ""; + + /** + * NatsTLSOptions tlsClientCert. + * @member {string} tlsClientCert + * @memberof protos.args.NatsTLSOptions + * @instance + */ + NatsTLSOptions.prototype.tlsClientCert = ""; + + /** + * NatsTLSOptions tlsClientKey. + * @member {string} tlsClientKey + * @memberof protos.args.NatsTLSOptions + * @instance + */ + NatsTLSOptions.prototype.tlsClientKey = ""; + + /** + * NatsTLSOptions useTls. + * @member {boolean} useTls + * @memberof protos.args.NatsTLSOptions * @instance */ - ResumeRelayOptions.prototype.id = ""; + NatsTLSOptions.prototype.useTls = false; /** - * Creates a new ResumeRelayOptions instance using the specified properties. + * Creates a new NatsTLSOptions instance using the specified properties. * @function create - * @memberof protos.opts.ResumeRelayOptions + * @memberof protos.args.NatsTLSOptions * @static - * @param {protos.opts.IResumeRelayOptions=} [properties] Properties to set - * @returns {protos.opts.ResumeRelayOptions} ResumeRelayOptions instance + * @param {protos.args.INatsTLSOptions=} [properties] Properties to set + * @returns {protos.args.NatsTLSOptions} NatsTLSOptions instance */ - ResumeRelayOptions.create = function create(properties) { - return new ResumeRelayOptions(properties); + NatsTLSOptions.create = function create(properties) { + return new NatsTLSOptions(properties); }; /** - * Encodes the specified ResumeRelayOptions message. Does not implicitly {@link protos.opts.ResumeRelayOptions.verify|verify} messages. + * Encodes the specified NatsTLSOptions message. Does not implicitly {@link protos.args.NatsTLSOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ResumeRelayOptions + * @memberof protos.args.NatsTLSOptions * @static - * @param {protos.opts.IResumeRelayOptions} message ResumeRelayOptions message or plain object to encode + * @param {protos.args.INatsTLSOptions} message NatsTLSOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeRelayOptions.encode = function encode(message, writer) { + NatsTLSOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.tlsSkipVerify); + if (message.tlsCaCert != null && Object.hasOwnProperty.call(message, "tlsCaCert")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tlsCaCert); + if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tlsClientCert); + if (message.tlsClientKey != null && Object.hasOwnProperty.call(message, "tlsClientKey")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.tlsClientKey); + if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useTls); return writer; }; /** - * Encodes the specified ResumeRelayOptions message, length delimited. Does not implicitly {@link protos.opts.ResumeRelayOptions.verify|verify} messages. + * Encodes the specified NatsTLSOptions message, length delimited. Does not implicitly {@link protos.args.NatsTLSOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ResumeRelayOptions + * @memberof protos.args.NatsTLSOptions * @static - * @param {protos.opts.IResumeRelayOptions} message ResumeRelayOptions message or plain object to encode + * @param {protos.args.INatsTLSOptions} message NatsTLSOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeRelayOptions.encodeDelimited = function encodeDelimited(message, writer) { + NatsTLSOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResumeRelayOptions message from the specified reader or buffer. + * Decodes a NatsTLSOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ResumeRelayOptions + * @memberof protos.args.NatsTLSOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ResumeRelayOptions} ResumeRelayOptions + * @returns {protos.args.NatsTLSOptions} NatsTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeRelayOptions.decode = function decode(reader, length) { + NatsTLSOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ResumeRelayOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsTLSOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message.tlsSkipVerify = reader.bool(); + break; + case 2: + message.tlsCaCert = reader.string(); + break; + case 3: + message.tlsClientCert = reader.string(); + break; + case 4: + message.tlsClientKey = reader.string(); + break; + case 5: + message.useTls = reader.bool(); break; default: reader.skipType(tag & 7); @@ -11618,125 +9764,140 @@ $root.protos = (function() { }; /** - * Decodes a ResumeRelayOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsTLSOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ResumeRelayOptions + * @memberof protos.args.NatsTLSOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ResumeRelayOptions} ResumeRelayOptions + * @returns {protos.args.NatsTLSOptions} NatsTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeRelayOptions.decodeDelimited = function decodeDelimited(reader) { + NatsTLSOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResumeRelayOptions message. + * Verifies a NatsTLSOptions message. * @function verify - * @memberof protos.opts.ResumeRelayOptions + * @memberof protos.args.NatsTLSOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResumeRelayOptions.verify = function verify(message) { + NatsTLSOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + if (typeof message.tlsSkipVerify !== "boolean") + return "tlsSkipVerify: boolean expected"; + if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) + if (!$util.isString(message.tlsCaCert)) + return "tlsCaCert: string expected"; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + if (!$util.isString(message.tlsClientCert)) + return "tlsClientCert: string expected"; + if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) + if (!$util.isString(message.tlsClientKey)) + return "tlsClientKey: string expected"; + if (message.useTls != null && message.hasOwnProperty("useTls")) + if (typeof message.useTls !== "boolean") + return "useTls: boolean expected"; return null; }; /** - * Creates a ResumeRelayOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsTLSOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ResumeRelayOptions + * @memberof protos.args.NatsTLSOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ResumeRelayOptions} ResumeRelayOptions + * @returns {protos.args.NatsTLSOptions} NatsTLSOptions */ - ResumeRelayOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ResumeRelayOptions) + NatsTLSOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NatsTLSOptions) return object; - var message = new $root.protos.opts.ResumeRelayOptions(); - if (object.id != null) - message.id = String(object.id); + var message = new $root.protos.args.NatsTLSOptions(); + if (object.tlsSkipVerify != null) + message.tlsSkipVerify = Boolean(object.tlsSkipVerify); + if (object.tlsCaCert != null) + message.tlsCaCert = String(object.tlsCaCert); + if (object.tlsClientCert != null) + message.tlsClientCert = String(object.tlsClientCert); + if (object.tlsClientKey != null) + message.tlsClientKey = String(object.tlsClientKey); + if (object.useTls != null) + message.useTls = Boolean(object.useTls); return message; }; /** - * Creates a plain object from a ResumeRelayOptions message. Also converts values to other types if specified. + * Creates a plain object from a NatsTLSOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ResumeRelayOptions + * @memberof protos.args.NatsTLSOptions * @static - * @param {protos.opts.ResumeRelayOptions} message ResumeRelayOptions + * @param {protos.args.NatsTLSOptions} message NatsTLSOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResumeRelayOptions.toObject = function toObject(message, options) { + NatsTLSOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + if (options.defaults) { + object.tlsSkipVerify = false; + object.tlsCaCert = ""; + object.tlsClientCert = ""; + object.tlsClientKey = ""; + object.useTls = false; + } + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + object.tlsSkipVerify = message.tlsSkipVerify; + if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) + object.tlsCaCert = message.tlsCaCert; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + object.tlsClientCert = message.tlsClientCert; + if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) + object.tlsClientKey = message.tlsClientKey; + if (message.useTls != null && message.hasOwnProperty("useTls")) + object.useTls = message.useTls; return object; }; /** - * Converts this ResumeRelayOptions to JSON. + * Converts this NatsTLSOptions to JSON. * @function toJSON - * @memberof protos.opts.ResumeRelayOptions + * @memberof protos.args.NatsTLSOptions * @instance * @returns {Object.} JSON object */ - ResumeRelayOptions.prototype.toJSON = function toJSON() { + NatsTLSOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResumeRelayOptions; + return NatsTLSOptions; })(); - opts.ServerOptions = (function() { + args.NatsReadArgs = (function() { /** - * Properties of a ServerOptions. - * @memberof protos.opts - * @interface IServerOptions - * @property {string|null} [nodeId] ServerOptions nodeId - * @property {string|null} [clusterId] ServerOptions clusterId - * @property {string|null} [grpcListenAddress] ServerOptions grpcListenAddress - * @property {string|null} [authToken] ServerOptions authToken - * @property {Array.|null} [natsUrl] ServerOptions natsUrl - * @property {boolean|null} [useTls] ServerOptions useTls - * @property {string|null} [tlsCertFile] ServerOptions tlsCertFile - * @property {string|null} [tlsKeyFile] ServerOptions tlsKeyFile - * @property {string|null} [tlsCaFile] ServerOptions tlsCaFile - * @property {boolean|null} [tlsSkipVerify] ServerOptions tlsSkipVerify - * @property {boolean|null} [enableCluster] ServerOptions enableCluster - * @property {string|null} [statsDatabasePath] ServerOptions statsDatabasePath - * @property {number|null} [statsFlushIntervalSeconds] ServerOptions statsFlushIntervalSeconds - * @property {string|null} [httpListenAddress] ServerOptions httpListenAddress - * @property {boolean|null} [remoteControlEnabled] ServerOptions remoteControlEnabled - * @property {string|null} [remoteControlAddress] ServerOptions remoteControlAddress - * @property {string|null} [remoteControlApiToken] ServerOptions remoteControlApiToken - * @property {boolean|null} [remoteControlDisableTls] ServerOptions remoteControlDisableTls - */ - - /** - * Constructs a new ServerOptions. - * @memberof protos.opts - * @classdesc Represents a ServerOptions. - * @implements IServerOptions + * Properties of a NatsReadArgs. + * @memberof protos.args + * @interface INatsReadArgs + * @property {string|null} [subject] NatsReadArgs subject + */ + + /** + * Constructs a new NatsReadArgs. + * @memberof protos.args + * @classdesc Represents a NatsReadArgs. + * @implements INatsReadArgs * @constructor - * @param {protos.opts.IServerOptions=} [properties] Properties to set + * @param {protos.args.INatsReadArgs=} [properties] Properties to set */ - function ServerOptions(properties) { - this.natsUrl = []; + function NatsReadArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11744,299 +9905,262 @@ $root.protos = (function() { } /** - * ServerOptions nodeId. - * @member {string} nodeId - * @memberof protos.opts.ServerOptions - * @instance - */ - ServerOptions.prototype.nodeId = ""; - - /** - * ServerOptions clusterId. - * @member {string} clusterId - * @memberof protos.opts.ServerOptions - * @instance - */ - ServerOptions.prototype.clusterId = ""; - - /** - * ServerOptions grpcListenAddress. - * @member {string} grpcListenAddress - * @memberof protos.opts.ServerOptions - * @instance - */ - ServerOptions.prototype.grpcListenAddress = ""; - - /** - * ServerOptions authToken. - * @member {string} authToken - * @memberof protos.opts.ServerOptions + * NatsReadArgs subject. + * @member {string} subject + * @memberof protos.args.NatsReadArgs * @instance */ - ServerOptions.prototype.authToken = ""; + NatsReadArgs.prototype.subject = ""; /** - * ServerOptions natsUrl. - * @member {Array.} natsUrl - * @memberof protos.opts.ServerOptions - * @instance + * Creates a new NatsReadArgs instance using the specified properties. + * @function create + * @memberof protos.args.NatsReadArgs + * @static + * @param {protos.args.INatsReadArgs=} [properties] Properties to set + * @returns {protos.args.NatsReadArgs} NatsReadArgs instance */ - ServerOptions.prototype.natsUrl = $util.emptyArray; + NatsReadArgs.create = function create(properties) { + return new NatsReadArgs(properties); + }; /** - * ServerOptions useTls. - * @member {boolean} useTls - * @memberof protos.opts.ServerOptions - * @instance + * Encodes the specified NatsReadArgs message. Does not implicitly {@link protos.args.NatsReadArgs.verify|verify} messages. + * @function encode + * @memberof protos.args.NatsReadArgs + * @static + * @param {protos.args.INatsReadArgs} message NatsReadArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ServerOptions.prototype.useTls = false; + NatsReadArgs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.subject != null && Object.hasOwnProperty.call(message, "subject")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.subject); + return writer; + }; /** - * ServerOptions tlsCertFile. - * @member {string} tlsCertFile - * @memberof protos.opts.ServerOptions - * @instance + * Encodes the specified NatsReadArgs message, length delimited. Does not implicitly {@link protos.args.NatsReadArgs.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.NatsReadArgs + * @static + * @param {protos.args.INatsReadArgs} message NatsReadArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ServerOptions.prototype.tlsCertFile = ""; + NatsReadArgs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * ServerOptions tlsKeyFile. - * @member {string} tlsKeyFile - * @memberof protos.opts.ServerOptions - * @instance + * Decodes a NatsReadArgs message from the specified reader or buffer. + * @function decode + * @memberof protos.args.NatsReadArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.args.NatsReadArgs} NatsReadArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServerOptions.prototype.tlsKeyFile = ""; + NatsReadArgs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsReadArgs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subject = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * ServerOptions tlsCaFile. - * @member {string} tlsCaFile - * @memberof protos.opts.ServerOptions - * @instance + * Decodes a NatsReadArgs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.args.NatsReadArgs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.args.NatsReadArgs} NatsReadArgs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServerOptions.prototype.tlsCaFile = ""; + NatsReadArgs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * ServerOptions tlsSkipVerify. - * @member {boolean} tlsSkipVerify - * @memberof protos.opts.ServerOptions - * @instance + * Verifies a NatsReadArgs message. + * @function verify + * @memberof protos.args.NatsReadArgs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServerOptions.prototype.tlsSkipVerify = false; + NatsReadArgs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.subject != null && message.hasOwnProperty("subject")) + if (!$util.isString(message.subject)) + return "subject: string expected"; + return null; + }; /** - * ServerOptions enableCluster. - * @member {boolean} enableCluster - * @memberof protos.opts.ServerOptions - * @instance + * Creates a NatsReadArgs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.NatsReadArgs + * @static + * @param {Object.} object Plain object + * @returns {protos.args.NatsReadArgs} NatsReadArgs */ - ServerOptions.prototype.enableCluster = false; + NatsReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NatsReadArgs) + return object; + var message = new $root.protos.args.NatsReadArgs(); + if (object.subject != null) + message.subject = String(object.subject); + return message; + }; /** - * ServerOptions statsDatabasePath. - * @member {string} statsDatabasePath - * @memberof protos.opts.ServerOptions - * @instance + * Creates a plain object from a NatsReadArgs message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.NatsReadArgs + * @static + * @param {protos.args.NatsReadArgs} message NatsReadArgs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ServerOptions.prototype.statsDatabasePath = ""; + NatsReadArgs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.subject = ""; + if (message.subject != null && message.hasOwnProperty("subject")) + object.subject = message.subject; + return object; + }; /** - * ServerOptions statsFlushIntervalSeconds. - * @member {number} statsFlushIntervalSeconds - * @memberof protos.opts.ServerOptions + * Converts this NatsReadArgs to JSON. + * @function toJSON + * @memberof protos.args.NatsReadArgs * @instance + * @returns {Object.} JSON object */ - ServerOptions.prototype.statsFlushIntervalSeconds = 0; + NatsReadArgs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ServerOptions httpListenAddress. - * @member {string} httpListenAddress - * @memberof protos.opts.ServerOptions - * @instance - */ - ServerOptions.prototype.httpListenAddress = ""; + return NatsReadArgs; + })(); - /** - * ServerOptions remoteControlEnabled. - * @member {boolean} remoteControlEnabled - * @memberof protos.opts.ServerOptions - * @instance - */ - ServerOptions.prototype.remoteControlEnabled = false; + args.NatsWriteArgs = (function() { /** - * ServerOptions remoteControlAddress. - * @member {string} remoteControlAddress - * @memberof protos.opts.ServerOptions - * @instance + * Properties of a NatsWriteArgs. + * @memberof protos.args + * @interface INatsWriteArgs + * @property {string|null} [subject] NatsWriteArgs subject */ - ServerOptions.prototype.remoteControlAddress = ""; /** - * ServerOptions remoteControlApiToken. - * @member {string} remoteControlApiToken - * @memberof protos.opts.ServerOptions - * @instance + * Constructs a new NatsWriteArgs. + * @memberof protos.args + * @classdesc Represents a NatsWriteArgs. + * @implements INatsWriteArgs + * @constructor + * @param {protos.args.INatsWriteArgs=} [properties] Properties to set */ - ServerOptions.prototype.remoteControlApiToken = ""; + function NatsWriteArgs(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ServerOptions remoteControlDisableTls. - * @member {boolean} remoteControlDisableTls - * @memberof protos.opts.ServerOptions + * NatsWriteArgs subject. + * @member {string} subject + * @memberof protos.args.NatsWriteArgs * @instance */ - ServerOptions.prototype.remoteControlDisableTls = false; + NatsWriteArgs.prototype.subject = ""; /** - * Creates a new ServerOptions instance using the specified properties. + * Creates a new NatsWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.ServerOptions + * @memberof protos.args.NatsWriteArgs * @static - * @param {protos.opts.IServerOptions=} [properties] Properties to set - * @returns {protos.opts.ServerOptions} ServerOptions instance + * @param {protos.args.INatsWriteArgs=} [properties] Properties to set + * @returns {protos.args.NatsWriteArgs} NatsWriteArgs instance */ - ServerOptions.create = function create(properties) { - return new ServerOptions(properties); + NatsWriteArgs.create = function create(properties) { + return new NatsWriteArgs(properties); }; /** - * Encodes the specified ServerOptions message. Does not implicitly {@link protos.opts.ServerOptions.verify|verify} messages. + * Encodes the specified NatsWriteArgs message. Does not implicitly {@link protos.args.NatsWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.ServerOptions + * @memberof protos.args.NatsWriteArgs * @static - * @param {protos.opts.IServerOptions} message ServerOptions message or plain object to encode + * @param {protos.args.INatsWriteArgs} message NatsWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServerOptions.encode = function encode(message, writer) { + NatsWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clusterId); - if (message.grpcListenAddress != null && Object.hasOwnProperty.call(message, "grpcListenAddress")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.grpcListenAddress); - if (message.authToken != null && Object.hasOwnProperty.call(message, "authToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.authToken); - if (message.natsUrl != null && message.natsUrl.length) - for (var i = 0; i < message.natsUrl.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.natsUrl[i]); - if (message.tlsCertFile != null && Object.hasOwnProperty.call(message, "tlsCertFile")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.tlsCertFile); - if (message.tlsKeyFile != null && Object.hasOwnProperty.call(message, "tlsKeyFile")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.tlsKeyFile); - if (message.tlsCaFile != null && Object.hasOwnProperty.call(message, "tlsCaFile")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.tlsCaFile); - if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.tlsSkipVerify); - if (message.enableCluster != null && Object.hasOwnProperty.call(message, "enableCluster")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enableCluster); - if (message.statsDatabasePath != null && Object.hasOwnProperty.call(message, "statsDatabasePath")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.statsDatabasePath); - if (message.statsFlushIntervalSeconds != null && Object.hasOwnProperty.call(message, "statsFlushIntervalSeconds")) - writer.uint32(/* id 15, wireType 0 =*/120).int32(message.statsFlushIntervalSeconds); - if (message.httpListenAddress != null && Object.hasOwnProperty.call(message, "httpListenAddress")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.httpListenAddress); - if (message.remoteControlEnabled != null && Object.hasOwnProperty.call(message, "remoteControlEnabled")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.remoteControlEnabled); - if (message.remoteControlAddress != null && Object.hasOwnProperty.call(message, "remoteControlAddress")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.remoteControlAddress); - if (message.remoteControlApiToken != null && Object.hasOwnProperty.call(message, "remoteControlApiToken")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.remoteControlApiToken); - if (message.remoteControlDisableTls != null && Object.hasOwnProperty.call(message, "remoteControlDisableTls")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.remoteControlDisableTls); - if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) - writer.uint32(/* id 500, wireType 0 =*/4000).bool(message.useTls); + if (message.subject != null && Object.hasOwnProperty.call(message, "subject")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.subject); return writer; }; /** - * Encodes the specified ServerOptions message, length delimited. Does not implicitly {@link protos.opts.ServerOptions.verify|verify} messages. + * Encodes the specified NatsWriteArgs message, length delimited. Does not implicitly {@link protos.args.NatsWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ServerOptions + * @memberof protos.args.NatsWriteArgs * @static - * @param {protos.opts.IServerOptions} message ServerOptions message or plain object to encode + * @param {protos.args.INatsWriteArgs} message NatsWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServerOptions.encodeDelimited = function encodeDelimited(message, writer) { + NatsWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServerOptions message from the specified reader or buffer. + * Decodes a NatsWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ServerOptions + * @memberof protos.args.NatsWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ServerOptions} ServerOptions + * @returns {protos.args.NatsWriteArgs} NatsWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServerOptions.decode = function decode(reader, length) { + NatsWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ServerOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsWriteArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.nodeId = reader.string(); - break; - case 2: - message.clusterId = reader.string(); - break; - case 3: - message.grpcListenAddress = reader.string(); - break; - case 4: - message.authToken = reader.string(); - break; - case 5: - if (!(message.natsUrl && message.natsUrl.length)) - message.natsUrl = []; - message.natsUrl.push(reader.string()); - break; - case 500: - message.useTls = reader.bool(); - break; - case 6: - message.tlsCertFile = reader.string(); - break; - case 7: - message.tlsKeyFile = reader.string(); - break; - case 8: - message.tlsCaFile = reader.string(); - break; - case 9: - message.tlsSkipVerify = reader.bool(); - break; - case 10: - message.enableCluster = reader.bool(); - break; - case 14: - message.statsDatabasePath = reader.string(); - break; - case 15: - message.statsFlushIntervalSeconds = reader.int32(); - break; - case 16: - message.httpListenAddress = reader.string(); - break; - case 17: - message.remoteControlEnabled = reader.bool(); - break; - case 18: - message.remoteControlAddress = reader.string(); - break; - case 19: - message.remoteControlApiToken = reader.string(); - break; - case 20: - message.remoteControlDisableTls = reader.bool(); + message.subject = reader.string(); break; default: reader.skipType(tag & 7); @@ -12047,284 +10171,111 @@ $root.protos = (function() { }; /** - * Decodes a ServerOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ServerOptions + * @memberof protos.args.NatsWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ServerOptions} ServerOptions + * @returns {protos.args.NatsWriteArgs} NatsWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServerOptions.decodeDelimited = function decodeDelimited(reader) { + NatsWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServerOptions message. + * Verifies a NatsWriteArgs message. * @function verify - * @memberof protos.opts.ServerOptions + * @memberof protos.args.NatsWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServerOptions.verify = function verify(message) { + NatsWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isString(message.nodeId)) - return "nodeId: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.grpcListenAddress != null && message.hasOwnProperty("grpcListenAddress")) - if (!$util.isString(message.grpcListenAddress)) - return "grpcListenAddress: string expected"; - if (message.authToken != null && message.hasOwnProperty("authToken")) - if (!$util.isString(message.authToken)) - return "authToken: string expected"; - if (message.natsUrl != null && message.hasOwnProperty("natsUrl")) { - if (!Array.isArray(message.natsUrl)) - return "natsUrl: array expected"; - for (var i = 0; i < message.natsUrl.length; ++i) - if (!$util.isString(message.natsUrl[i])) - return "natsUrl: string[] expected"; - } - if (message.useTls != null && message.hasOwnProperty("useTls")) - if (typeof message.useTls !== "boolean") - return "useTls: boolean expected"; - if (message.tlsCertFile != null && message.hasOwnProperty("tlsCertFile")) - if (!$util.isString(message.tlsCertFile)) - return "tlsCertFile: string expected"; - if (message.tlsKeyFile != null && message.hasOwnProperty("tlsKeyFile")) - if (!$util.isString(message.tlsKeyFile)) - return "tlsKeyFile: string expected"; - if (message.tlsCaFile != null && message.hasOwnProperty("tlsCaFile")) - if (!$util.isString(message.tlsCaFile)) - return "tlsCaFile: string expected"; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - if (typeof message.tlsSkipVerify !== "boolean") - return "tlsSkipVerify: boolean expected"; - if (message.enableCluster != null && message.hasOwnProperty("enableCluster")) - if (typeof message.enableCluster !== "boolean") - return "enableCluster: boolean expected"; - if (message.statsDatabasePath != null && message.hasOwnProperty("statsDatabasePath")) - if (!$util.isString(message.statsDatabasePath)) - return "statsDatabasePath: string expected"; - if (message.statsFlushIntervalSeconds != null && message.hasOwnProperty("statsFlushIntervalSeconds")) - if (!$util.isInteger(message.statsFlushIntervalSeconds)) - return "statsFlushIntervalSeconds: integer expected"; - if (message.httpListenAddress != null && message.hasOwnProperty("httpListenAddress")) - if (!$util.isString(message.httpListenAddress)) - return "httpListenAddress: string expected"; - if (message.remoteControlEnabled != null && message.hasOwnProperty("remoteControlEnabled")) - if (typeof message.remoteControlEnabled !== "boolean") - return "remoteControlEnabled: boolean expected"; - if (message.remoteControlAddress != null && message.hasOwnProperty("remoteControlAddress")) - if (!$util.isString(message.remoteControlAddress)) - return "remoteControlAddress: string expected"; - if (message.remoteControlApiToken != null && message.hasOwnProperty("remoteControlApiToken")) - if (!$util.isString(message.remoteControlApiToken)) - return "remoteControlApiToken: string expected"; - if (message.remoteControlDisableTls != null && message.hasOwnProperty("remoteControlDisableTls")) - if (typeof message.remoteControlDisableTls !== "boolean") - return "remoteControlDisableTls: boolean expected"; + if (message.subject != null && message.hasOwnProperty("subject")) + if (!$util.isString(message.subject)) + return "subject: string expected"; return null; }; /** - * Creates a ServerOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ServerOptions + * @memberof protos.args.NatsWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.ServerOptions} ServerOptions + * @returns {protos.args.NatsWriteArgs} NatsWriteArgs */ - ServerOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ServerOptions) + NatsWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NatsWriteArgs) return object; - var message = new $root.protos.opts.ServerOptions(); - if (object.nodeId != null) - message.nodeId = String(object.nodeId); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.grpcListenAddress != null) - message.grpcListenAddress = String(object.grpcListenAddress); - if (object.authToken != null) - message.authToken = String(object.authToken); - if (object.natsUrl) { - if (!Array.isArray(object.natsUrl)) - throw TypeError(".protos.opts.ServerOptions.natsUrl: array expected"); - message.natsUrl = []; - for (var i = 0; i < object.natsUrl.length; ++i) - message.natsUrl[i] = String(object.natsUrl[i]); - } - if (object.useTls != null) - message.useTls = Boolean(object.useTls); - if (object.tlsCertFile != null) - message.tlsCertFile = String(object.tlsCertFile); - if (object.tlsKeyFile != null) - message.tlsKeyFile = String(object.tlsKeyFile); - if (object.tlsCaFile != null) - message.tlsCaFile = String(object.tlsCaFile); - if (object.tlsSkipVerify != null) - message.tlsSkipVerify = Boolean(object.tlsSkipVerify); - if (object.enableCluster != null) - message.enableCluster = Boolean(object.enableCluster); - if (object.statsDatabasePath != null) - message.statsDatabasePath = String(object.statsDatabasePath); - if (object.statsFlushIntervalSeconds != null) - message.statsFlushIntervalSeconds = object.statsFlushIntervalSeconds | 0; - if (object.httpListenAddress != null) - message.httpListenAddress = String(object.httpListenAddress); - if (object.remoteControlEnabled != null) - message.remoteControlEnabled = Boolean(object.remoteControlEnabled); - if (object.remoteControlAddress != null) - message.remoteControlAddress = String(object.remoteControlAddress); - if (object.remoteControlApiToken != null) - message.remoteControlApiToken = String(object.remoteControlApiToken); - if (object.remoteControlDisableTls != null) - message.remoteControlDisableTls = Boolean(object.remoteControlDisableTls); + var message = new $root.protos.args.NatsWriteArgs(); + if (object.subject != null) + message.subject = String(object.subject); return message; }; /** - * Creates a plain object from a ServerOptions message. Also converts values to other types if specified. + * Creates a plain object from a NatsWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ServerOptions + * @memberof protos.args.NatsWriteArgs * @static - * @param {protos.opts.ServerOptions} message ServerOptions + * @param {protos.args.NatsWriteArgs} message NatsWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServerOptions.toObject = function toObject(message, options) { + NatsWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.natsUrl = []; - if (options.defaults) { - object.nodeId = ""; - object.clusterId = ""; - object.grpcListenAddress = ""; - object.authToken = ""; - object.tlsCertFile = ""; - object.tlsKeyFile = ""; - object.tlsCaFile = ""; - object.tlsSkipVerify = false; - object.enableCluster = false; - object.statsDatabasePath = ""; - object.statsFlushIntervalSeconds = 0; - object.httpListenAddress = ""; - object.remoteControlEnabled = false; - object.remoteControlAddress = ""; - object.remoteControlApiToken = ""; - object.remoteControlDisableTls = false; - object.useTls = false; - } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - object.nodeId = message.nodeId; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.grpcListenAddress != null && message.hasOwnProperty("grpcListenAddress")) - object.grpcListenAddress = message.grpcListenAddress; - if (message.authToken != null && message.hasOwnProperty("authToken")) - object.authToken = message.authToken; - if (message.natsUrl && message.natsUrl.length) { - object.natsUrl = []; - for (var j = 0; j < message.natsUrl.length; ++j) - object.natsUrl[j] = message.natsUrl[j]; - } - if (message.tlsCertFile != null && message.hasOwnProperty("tlsCertFile")) - object.tlsCertFile = message.tlsCertFile; - if (message.tlsKeyFile != null && message.hasOwnProperty("tlsKeyFile")) - object.tlsKeyFile = message.tlsKeyFile; - if (message.tlsCaFile != null && message.hasOwnProperty("tlsCaFile")) - object.tlsCaFile = message.tlsCaFile; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - object.tlsSkipVerify = message.tlsSkipVerify; - if (message.enableCluster != null && message.hasOwnProperty("enableCluster")) - object.enableCluster = message.enableCluster; - if (message.statsDatabasePath != null && message.hasOwnProperty("statsDatabasePath")) - object.statsDatabasePath = message.statsDatabasePath; - if (message.statsFlushIntervalSeconds != null && message.hasOwnProperty("statsFlushIntervalSeconds")) - object.statsFlushIntervalSeconds = message.statsFlushIntervalSeconds; - if (message.httpListenAddress != null && message.hasOwnProperty("httpListenAddress")) - object.httpListenAddress = message.httpListenAddress; - if (message.remoteControlEnabled != null && message.hasOwnProperty("remoteControlEnabled")) - object.remoteControlEnabled = message.remoteControlEnabled; - if (message.remoteControlAddress != null && message.hasOwnProperty("remoteControlAddress")) - object.remoteControlAddress = message.remoteControlAddress; - if (message.remoteControlApiToken != null && message.hasOwnProperty("remoteControlApiToken")) - object.remoteControlApiToken = message.remoteControlApiToken; - if (message.remoteControlDisableTls != null && message.hasOwnProperty("remoteControlDisableTls")) - object.remoteControlDisableTls = message.remoteControlDisableTls; - if (message.useTls != null && message.hasOwnProperty("useTls")) - object.useTls = message.useTls; + if (options.defaults) + object.subject = ""; + if (message.subject != null && message.hasOwnProperty("subject")) + object.subject = message.subject; return object; }; /** - * Converts this ServerOptions to JSON. + * Converts this NatsWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.ServerOptions + * @memberof protos.args.NatsWriteArgs * @instance * @returns {Object.} JSON object */ - ServerOptions.prototype.toJSON = function toJSON() { + NatsWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ServerOptions; + return NatsWriteArgs; })(); - opts.TunnelOptions = (function() { + args.NatsJetstreamTLSOptions = (function() { /** - * Properties of a TunnelOptions. - * @memberof protos.opts - * @interface ITunnelOptions - * @property {string|null} [apiToken] TunnelOptions apiToken - * @property {string|null} [connectionId] TunnelOptions connectionId - * @property {string|null} [_grpcAddress] TunnelOptions _grpcAddress - * @property {number|null} [_grpcTimeoutSeconds] TunnelOptions _grpcTimeoutSeconds - * @property {boolean|null} [_grpcInsecure] TunnelOptions _grpcInsecure - * @property {string|null} [name] TunnelOptions name - * @property {string|null} [_tunnelId] TunnelOptions _tunnelId - * @property {boolean|null} [_active] TunnelOptions _active - * @property {protos.opts.ITunnelGroupKafkaOptions|null} [kafka] TunnelOptions kafka - * @property {protos.opts.ITunnelGroupActiveMQOptions|null} [activemq] TunnelOptions activemq - * @property {protos.opts.ITunnelGroupAWSSQSOptions|null} [awsSqs] TunnelOptions awsSqs - * @property {protos.opts.ITunnelGroupAWSSNSOptions|null} [awsSns] TunnelOptions awsSns - * @property {protos.opts.ITunnelGroupNatsOptions|null} [nats] TunnelOptions nats - * @property {protos.opts.ITunnelGroupNatsStreamingOptions|null} [natsStreaming] TunnelOptions natsStreaming - * @property {protos.opts.ITunnelGroupNSQOptions|null} [nsq] TunnelOptions nsq - * @property {protos.opts.ITunnelGroupRabbitOptions|null} [rabbit] TunnelOptions rabbit - * @property {protos.opts.ITunnelGroupMQTTOptions|null} [mqtt] TunnelOptions mqtt - * @property {protos.opts.ITunnelGroupAzureServiceBusOptions|null} [azureServiceBus] TunnelOptions azureServiceBus - * @property {protos.opts.ITunnelGroupAzureEventHubOptions|null} [azureEventHub] TunnelOptions azureEventHub - * @property {protos.opts.ITunnelGroupGCPPubSubOptions|null} [gcpPubsub] TunnelOptions gcpPubsub - * @property {protos.opts.ITunnelGroupKubeMQQueueOptions|null} [kubemqQueue] TunnelOptions kubemqQueue - * @property {protos.opts.ITunnelGroupRedisPubSubOptions|null} [redisPubsub] TunnelOptions redisPubsub - * @property {protos.opts.ITunnelGroupRedisStreamsOptions|null} [redisStreams] TunnelOptions redisStreams - * @property {protos.opts.ITunnelGroupPulsarOptions|null} [pulsar] TunnelOptions pulsar - * @property {protos.opts.ITunnelGroupRabbitStreamsOptions|null} [rabbitStreams] TunnelOptions rabbitStreams - * @property {protos.opts.ITunnelGroupNatsJetstreamOptions|null} [natsJetstream] TunnelOptions natsJetstream - * @property {protos.opts.ITunnelGroupAWSKinesisOptions|null} [awsKinesis] TunnelOptions awsKinesis - * @property {protos.opts.ITunnelGroupMemphisOptions|null} [memphis] TunnelOptions memphis - */ - - /** - * Constructs a new TunnelOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelOptions. - * @implements ITunnelOptions + * Properties of a NatsJetstreamTLSOptions. + * @memberof protos.args + * @interface INatsJetstreamTLSOptions + * @property {string|null} [tlsCaCert] NatsJetstreamTLSOptions tlsCaCert + * @property {string|null} [tlsClientCert] NatsJetstreamTLSOptions tlsClientCert + * @property {string|null} [tlsClientKey] NatsJetstreamTLSOptions tlsClientKey + * @property {boolean|null} [tlsSkipVerify] NatsJetstreamTLSOptions tlsSkipVerify + * @property {boolean|null} [useTls] NatsJetstreamTLSOptions useTls + */ + + /** + * Constructs a new NatsJetstreamTLSOptions. + * @memberof protos.args + * @classdesc Represents a NatsJetstreamTLSOptions. + * @implements INatsJetstreamTLSOptions * @constructor - * @param {protos.opts.ITunnelOptions=} [properties] Properties to set + * @param {protos.args.INatsJetstreamTLSOptions=} [properties] Properties to set */ - function TunnelOptions(properties) { + function NatsJetstreamTLSOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12332,426 +10283,403 @@ $root.protos = (function() { } /** - * TunnelOptions apiToken. - * @member {string} apiToken - * @memberof protos.opts.TunnelOptions - * @instance - */ - TunnelOptions.prototype.apiToken = ""; - - /** - * TunnelOptions connectionId. - * @member {string} connectionId - * @memberof protos.opts.TunnelOptions - * @instance - */ - TunnelOptions.prototype.connectionId = ""; - - /** - * TunnelOptions _grpcAddress. - * @member {string} _grpcAddress - * @memberof protos.opts.TunnelOptions - * @instance - */ - TunnelOptions.prototype._grpcAddress = ""; - - /** - * TunnelOptions _grpcTimeoutSeconds. - * @member {number} _grpcTimeoutSeconds - * @memberof protos.opts.TunnelOptions - * @instance - */ - TunnelOptions.prototype._grpcTimeoutSeconds = 0; - - /** - * TunnelOptions _grpcInsecure. - * @member {boolean} _grpcInsecure - * @memberof protos.opts.TunnelOptions - * @instance - */ - TunnelOptions.prototype._grpcInsecure = false; - - /** - * TunnelOptions name. - * @member {string} name - * @memberof protos.opts.TunnelOptions + * NatsJetstreamTLSOptions tlsCaCert. + * @member {string} tlsCaCert + * @memberof protos.args.NatsJetstreamTLSOptions * @instance */ - TunnelOptions.prototype.name = ""; + NatsJetstreamTLSOptions.prototype.tlsCaCert = ""; /** - * TunnelOptions _tunnelId. - * @member {string} _tunnelId - * @memberof protos.opts.TunnelOptions + * NatsJetstreamTLSOptions tlsClientCert. + * @member {string} tlsClientCert + * @memberof protos.args.NatsJetstreamTLSOptions * @instance */ - TunnelOptions.prototype._tunnelId = ""; + NatsJetstreamTLSOptions.prototype.tlsClientCert = ""; /** - * TunnelOptions _active. - * @member {boolean} _active - * @memberof protos.opts.TunnelOptions + * NatsJetstreamTLSOptions tlsClientKey. + * @member {string} tlsClientKey + * @memberof protos.args.NatsJetstreamTLSOptions * @instance */ - TunnelOptions.prototype._active = false; + NatsJetstreamTLSOptions.prototype.tlsClientKey = ""; /** - * TunnelOptions kafka. - * @member {protos.opts.ITunnelGroupKafkaOptions|null|undefined} kafka - * @memberof protos.opts.TunnelOptions + * NatsJetstreamTLSOptions tlsSkipVerify. + * @member {boolean} tlsSkipVerify + * @memberof protos.args.NatsJetstreamTLSOptions * @instance */ - TunnelOptions.prototype.kafka = null; + NatsJetstreamTLSOptions.prototype.tlsSkipVerify = false; /** - * TunnelOptions activemq. - * @member {protos.opts.ITunnelGroupActiveMQOptions|null|undefined} activemq - * @memberof protos.opts.TunnelOptions + * NatsJetstreamTLSOptions useTls. + * @member {boolean} useTls + * @memberof protos.args.NatsJetstreamTLSOptions * @instance */ - TunnelOptions.prototype.activemq = null; + NatsJetstreamTLSOptions.prototype.useTls = false; /** - * TunnelOptions awsSqs. - * @member {protos.opts.ITunnelGroupAWSSQSOptions|null|undefined} awsSqs - * @memberof protos.opts.TunnelOptions - * @instance + * Creates a new NatsJetstreamTLSOptions instance using the specified properties. + * @function create + * @memberof protos.args.NatsJetstreamTLSOptions + * @static + * @param {protos.args.INatsJetstreamTLSOptions=} [properties] Properties to set + * @returns {protos.args.NatsJetstreamTLSOptions} NatsJetstreamTLSOptions instance */ - TunnelOptions.prototype.awsSqs = null; + NatsJetstreamTLSOptions.create = function create(properties) { + return new NatsJetstreamTLSOptions(properties); + }; /** - * TunnelOptions awsSns. - * @member {protos.opts.ITunnelGroupAWSSNSOptions|null|undefined} awsSns - * @memberof protos.opts.TunnelOptions - * @instance + * Encodes the specified NatsJetstreamTLSOptions message. Does not implicitly {@link protos.args.NatsJetstreamTLSOptions.verify|verify} messages. + * @function encode + * @memberof protos.args.NatsJetstreamTLSOptions + * @static + * @param {protos.args.INatsJetstreamTLSOptions} message NatsJetstreamTLSOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - TunnelOptions.prototype.awsSns = null; + NatsJetstreamTLSOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tlsCaCert != null && Object.hasOwnProperty.call(message, "tlsCaCert")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tlsCaCert); + if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tlsClientCert); + if (message.tlsClientKey != null && Object.hasOwnProperty.call(message, "tlsClientKey")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tlsClientKey); + if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.tlsSkipVerify); + if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useTls); + return writer; + }; /** - * TunnelOptions nats. - * @member {protos.opts.ITunnelGroupNatsOptions|null|undefined} nats - * @memberof protos.opts.TunnelOptions - * @instance + * Encodes the specified NatsJetstreamTLSOptions message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamTLSOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.NatsJetstreamTLSOptions + * @static + * @param {protos.args.INatsJetstreamTLSOptions} message NatsJetstreamTLSOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - TunnelOptions.prototype.nats = null; + NatsJetstreamTLSOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * TunnelOptions natsStreaming. - * @member {protos.opts.ITunnelGroupNatsStreamingOptions|null|undefined} natsStreaming - * @memberof protos.opts.TunnelOptions - * @instance + * Decodes a NatsJetstreamTLSOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.args.NatsJetstreamTLSOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.args.NatsJetstreamTLSOptions} NatsJetstreamTLSOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelOptions.prototype.natsStreaming = null; - - /** - * TunnelOptions nsq. - * @member {protos.opts.ITunnelGroupNSQOptions|null|undefined} nsq - * @memberof protos.opts.TunnelOptions - * @instance - */ - TunnelOptions.prototype.nsq = null; + NatsJetstreamTLSOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsJetstreamTLSOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tlsCaCert = reader.string(); + break; + case 2: + message.tlsClientCert = reader.string(); + break; + case 3: + message.tlsClientKey = reader.string(); + break; + case 4: + message.tlsSkipVerify = reader.bool(); + break; + case 5: + message.useTls = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * TunnelOptions rabbit. - * @member {protos.opts.ITunnelGroupRabbitOptions|null|undefined} rabbit - * @memberof protos.opts.TunnelOptions - * @instance + * Decodes a NatsJetstreamTLSOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.args.NatsJetstreamTLSOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.args.NatsJetstreamTLSOptions} NatsJetstreamTLSOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelOptions.prototype.rabbit = null; + NatsJetstreamTLSOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * TunnelOptions mqtt. - * @member {protos.opts.ITunnelGroupMQTTOptions|null|undefined} mqtt - * @memberof protos.opts.TunnelOptions - * @instance + * Verifies a NatsJetstreamTLSOptions message. + * @function verify + * @memberof protos.args.NatsJetstreamTLSOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelOptions.prototype.mqtt = null; + NatsJetstreamTLSOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) + if (!$util.isString(message.tlsCaCert)) + return "tlsCaCert: string expected"; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + if (!$util.isString(message.tlsClientCert)) + return "tlsClientCert: string expected"; + if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) + if (!$util.isString(message.tlsClientKey)) + return "tlsClientKey: string expected"; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + if (typeof message.tlsSkipVerify !== "boolean") + return "tlsSkipVerify: boolean expected"; + if (message.useTls != null && message.hasOwnProperty("useTls")) + if (typeof message.useTls !== "boolean") + return "useTls: boolean expected"; + return null; + }; /** - * TunnelOptions azureServiceBus. - * @member {protos.opts.ITunnelGroupAzureServiceBusOptions|null|undefined} azureServiceBus - * @memberof protos.opts.TunnelOptions - * @instance + * Creates a NatsJetstreamTLSOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.args.NatsJetstreamTLSOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.args.NatsJetstreamTLSOptions} NatsJetstreamTLSOptions */ - TunnelOptions.prototype.azureServiceBus = null; + NatsJetstreamTLSOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NatsJetstreamTLSOptions) + return object; + var message = new $root.protos.args.NatsJetstreamTLSOptions(); + if (object.tlsCaCert != null) + message.tlsCaCert = String(object.tlsCaCert); + if (object.tlsClientCert != null) + message.tlsClientCert = String(object.tlsClientCert); + if (object.tlsClientKey != null) + message.tlsClientKey = String(object.tlsClientKey); + if (object.tlsSkipVerify != null) + message.tlsSkipVerify = Boolean(object.tlsSkipVerify); + if (object.useTls != null) + message.useTls = Boolean(object.useTls); + return message; + }; /** - * TunnelOptions azureEventHub. - * @member {protos.opts.ITunnelGroupAzureEventHubOptions|null|undefined} azureEventHub - * @memberof protos.opts.TunnelOptions - * @instance + * Creates a plain object from a NatsJetstreamTLSOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.NatsJetstreamTLSOptions + * @static + * @param {protos.args.NatsJetstreamTLSOptions} message NatsJetstreamTLSOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - TunnelOptions.prototype.azureEventHub = null; + NatsJetstreamTLSOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.tlsCaCert = ""; + object.tlsClientCert = ""; + object.tlsClientKey = ""; + object.tlsSkipVerify = false; + object.useTls = false; + } + if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) + object.tlsCaCert = message.tlsCaCert; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + object.tlsClientCert = message.tlsClientCert; + if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) + object.tlsClientKey = message.tlsClientKey; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + object.tlsSkipVerify = message.tlsSkipVerify; + if (message.useTls != null && message.hasOwnProperty("useTls")) + object.useTls = message.useTls; + return object; + }; /** - * TunnelOptions gcpPubsub. - * @member {protos.opts.ITunnelGroupGCPPubSubOptions|null|undefined} gcpPubsub - * @memberof protos.opts.TunnelOptions + * Converts this NatsJetstreamTLSOptions to JSON. + * @function toJSON + * @memberof protos.args.NatsJetstreamTLSOptions * @instance + * @returns {Object.} JSON object */ - TunnelOptions.prototype.gcpPubsub = null; + NatsJetstreamTLSOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * TunnelOptions kubemqQueue. - * @member {protos.opts.ITunnelGroupKubeMQQueueOptions|null|undefined} kubemqQueue - * @memberof protos.opts.TunnelOptions - * @instance - */ - TunnelOptions.prototype.kubemqQueue = null; + return NatsJetstreamTLSOptions; + })(); + + args.NatsJetstreamConn = (function() { /** - * TunnelOptions redisPubsub. - * @member {protos.opts.ITunnelGroupRedisPubSubOptions|null|undefined} redisPubsub - * @memberof protos.opts.TunnelOptions - * @instance + * Properties of a NatsJetstreamConn. + * @memberof protos.args + * @interface INatsJetstreamConn + * @property {string|null} [dsn] NatsJetstreamConn dsn + * @property {string|null} [userCredentials] NatsJetstreamConn userCredentials + * @property {string|null} [clientId] NatsJetstreamConn clientId + * @property {protos.args.INatsJetstreamTLSOptions|null} [tlsOptions] NatsJetstreamConn tlsOptions + * @property {string|null} [nkey] NatsJetstreamConn nkey */ - TunnelOptions.prototype.redisPubsub = null; /** - * TunnelOptions redisStreams. - * @member {protos.opts.ITunnelGroupRedisStreamsOptions|null|undefined} redisStreams - * @memberof protos.opts.TunnelOptions - * @instance + * Constructs a new NatsJetstreamConn. + * @memberof protos.args + * @classdesc Represents a NatsJetstreamConn. + * @implements INatsJetstreamConn + * @constructor + * @param {protos.args.INatsJetstreamConn=} [properties] Properties to set */ - TunnelOptions.prototype.redisStreams = null; + function NatsJetstreamConn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * TunnelOptions pulsar. - * @member {protos.opts.ITunnelGroupPulsarOptions|null|undefined} pulsar - * @memberof protos.opts.TunnelOptions + * NatsJetstreamConn dsn. + * @member {string} dsn + * @memberof protos.args.NatsJetstreamConn * @instance */ - TunnelOptions.prototype.pulsar = null; + NatsJetstreamConn.prototype.dsn = ""; /** - * TunnelOptions rabbitStreams. - * @member {protos.opts.ITunnelGroupRabbitStreamsOptions|null|undefined} rabbitStreams - * @memberof protos.opts.TunnelOptions + * NatsJetstreamConn userCredentials. + * @member {string} userCredentials + * @memberof protos.args.NatsJetstreamConn * @instance */ - TunnelOptions.prototype.rabbitStreams = null; + NatsJetstreamConn.prototype.userCredentials = ""; /** - * TunnelOptions natsJetstream. - * @member {protos.opts.ITunnelGroupNatsJetstreamOptions|null|undefined} natsJetstream - * @memberof protos.opts.TunnelOptions + * NatsJetstreamConn clientId. + * @member {string} clientId + * @memberof protos.args.NatsJetstreamConn * @instance */ - TunnelOptions.prototype.natsJetstream = null; + NatsJetstreamConn.prototype.clientId = ""; /** - * TunnelOptions awsKinesis. - * @member {protos.opts.ITunnelGroupAWSKinesisOptions|null|undefined} awsKinesis - * @memberof protos.opts.TunnelOptions + * NatsJetstreamConn tlsOptions. + * @member {protos.args.INatsJetstreamTLSOptions|null|undefined} tlsOptions + * @memberof protos.args.NatsJetstreamConn * @instance */ - TunnelOptions.prototype.awsKinesis = null; + NatsJetstreamConn.prototype.tlsOptions = null; /** - * TunnelOptions memphis. - * @member {protos.opts.ITunnelGroupMemphisOptions|null|undefined} memphis - * @memberof protos.opts.TunnelOptions + * NatsJetstreamConn nkey. + * @member {string} nkey + * @memberof protos.args.NatsJetstreamConn * @instance */ - TunnelOptions.prototype.memphis = null; + NatsJetstreamConn.prototype.nkey = ""; /** - * Creates a new TunnelOptions instance using the specified properties. + * Creates a new NatsJetstreamConn instance using the specified properties. * @function create - * @memberof protos.opts.TunnelOptions + * @memberof protos.args.NatsJetstreamConn * @static - * @param {protos.opts.ITunnelOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelOptions} TunnelOptions instance + * @param {protos.args.INatsJetstreamConn=} [properties] Properties to set + * @returns {protos.args.NatsJetstreamConn} NatsJetstreamConn instance */ - TunnelOptions.create = function create(properties) { - return new TunnelOptions(properties); + NatsJetstreamConn.create = function create(properties) { + return new NatsJetstreamConn(properties); }; /** - * Encodes the specified TunnelOptions message. Does not implicitly {@link protos.opts.TunnelOptions.verify|verify} messages. + * Encodes the specified NatsJetstreamConn message. Does not implicitly {@link protos.args.NatsJetstreamConn.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelOptions + * @memberof protos.args.NatsJetstreamConn * @static - * @param {protos.opts.ITunnelOptions} message TunnelOptions message or plain object to encode + * @param {protos.args.INatsJetstreamConn} message NatsJetstreamConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelOptions.encode = function encode(message, writer) { + NatsJetstreamConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.apiToken != null && Object.hasOwnProperty.call(message, "apiToken")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.apiToken); - if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.connectionId); - if (message._grpcAddress != null && Object.hasOwnProperty.call(message, "_grpcAddress")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message._grpcAddress); - if (message._grpcTimeoutSeconds != null && Object.hasOwnProperty.call(message, "_grpcTimeoutSeconds")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message._grpcTimeoutSeconds); - if (message._grpcInsecure != null && Object.hasOwnProperty.call(message, "_grpcInsecure")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message._grpcInsecure); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); - if (message.kafka != null && Object.hasOwnProperty.call(message, "kafka")) - $root.protos.opts.TunnelGroupKafkaOptions.encode(message.kafka, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); - if (message.activemq != null && Object.hasOwnProperty.call(message, "activemq")) - $root.protos.opts.TunnelGroupActiveMQOptions.encode(message.activemq, writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); - if (message.awsSqs != null && Object.hasOwnProperty.call(message, "awsSqs")) - $root.protos.opts.TunnelGroupAWSSQSOptions.encode(message.awsSqs, writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim(); - if (message.awsSns != null && Object.hasOwnProperty.call(message, "awsSns")) - $root.protos.opts.TunnelGroupAWSSNSOptions.encode(message.awsSns, writer.uint32(/* id 103, wireType 2 =*/826).fork()).ldelim(); - if (message.nats != null && Object.hasOwnProperty.call(message, "nats")) - $root.protos.opts.TunnelGroupNatsOptions.encode(message.nats, writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim(); - if (message.natsStreaming != null && Object.hasOwnProperty.call(message, "natsStreaming")) - $root.protos.opts.TunnelGroupNatsStreamingOptions.encode(message.natsStreaming, writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); - if (message.nsq != null && Object.hasOwnProperty.call(message, "nsq")) - $root.protos.opts.TunnelGroupNSQOptions.encode(message.nsq, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim(); - if (message.rabbit != null && Object.hasOwnProperty.call(message, "rabbit")) - $root.protos.opts.TunnelGroupRabbitOptions.encode(message.rabbit, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); - if (message.mqtt != null && Object.hasOwnProperty.call(message, "mqtt")) - $root.protos.opts.TunnelGroupMQTTOptions.encode(message.mqtt, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim(); - if (message.azureServiceBus != null && Object.hasOwnProperty.call(message, "azureServiceBus")) - $root.protos.opts.TunnelGroupAzureServiceBusOptions.encode(message.azureServiceBus, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); - if (message.azureEventHub != null && Object.hasOwnProperty.call(message, "azureEventHub")) - $root.protos.opts.TunnelGroupAzureEventHubOptions.encode(message.azureEventHub, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); - if (message.gcpPubsub != null && Object.hasOwnProperty.call(message, "gcpPubsub")) - $root.protos.opts.TunnelGroupGCPPubSubOptions.encode(message.gcpPubsub, writer.uint32(/* id 111, wireType 2 =*/890).fork()).ldelim(); - if (message.kubemqQueue != null && Object.hasOwnProperty.call(message, "kubemqQueue")) - $root.protos.opts.TunnelGroupKubeMQQueueOptions.encode(message.kubemqQueue, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim(); - if (message.redisPubsub != null && Object.hasOwnProperty.call(message, "redisPubsub")) - $root.protos.opts.TunnelGroupRedisPubSubOptions.encode(message.redisPubsub, writer.uint32(/* id 113, wireType 2 =*/906).fork()).ldelim(); - if (message.redisStreams != null && Object.hasOwnProperty.call(message, "redisStreams")) - $root.protos.opts.TunnelGroupRedisStreamsOptions.encode(message.redisStreams, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); - if (message.pulsar != null && Object.hasOwnProperty.call(message, "pulsar")) - $root.protos.opts.TunnelGroupPulsarOptions.encode(message.pulsar, writer.uint32(/* id 115, wireType 2 =*/922).fork()).ldelim(); - if (message.rabbitStreams != null && Object.hasOwnProperty.call(message, "rabbitStreams")) - $root.protos.opts.TunnelGroupRabbitStreamsOptions.encode(message.rabbitStreams, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); - if (message.natsJetstream != null && Object.hasOwnProperty.call(message, "natsJetstream")) - $root.protos.opts.TunnelGroupNatsJetstreamOptions.encode(message.natsJetstream, writer.uint32(/* id 117, wireType 2 =*/938).fork()).ldelim(); - if (message.awsKinesis != null && Object.hasOwnProperty.call(message, "awsKinesis")) - $root.protos.opts.TunnelGroupAWSKinesisOptions.encode(message.awsKinesis, writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim(); - if (message.memphis != null && Object.hasOwnProperty.call(message, "memphis")) - $root.protos.opts.TunnelGroupMemphisOptions.encode(message.memphis, writer.uint32(/* id 119, wireType 2 =*/954).fork()).ldelim(); - if (message._tunnelId != null && Object.hasOwnProperty.call(message, "_tunnelId")) - writer.uint32(/* id 1000, wireType 2 =*/8002).string(message._tunnelId); - if (message._active != null && Object.hasOwnProperty.call(message, "_active")) - writer.uint32(/* id 1001, wireType 0 =*/8008).bool(message._active); + if (message.dsn != null && Object.hasOwnProperty.call(message, "dsn")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dsn); + if (message.userCredentials != null && Object.hasOwnProperty.call(message, "userCredentials")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.userCredentials); + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientId); + if (message.tlsOptions != null && Object.hasOwnProperty.call(message, "tlsOptions")) + $root.protos.args.NatsJetstreamTLSOptions.encode(message.tlsOptions, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.nkey != null && Object.hasOwnProperty.call(message, "nkey")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.nkey); return writer; }; /** - * Encodes the specified TunnelOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelOptions.verify|verify} messages. + * Encodes the specified NatsJetstreamConn message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelOptions + * @memberof protos.args.NatsJetstreamConn * @static - * @param {protos.opts.ITunnelOptions} message TunnelOptions message or plain object to encode + * @param {protos.args.INatsJetstreamConn} message NatsJetstreamConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelOptions.encodeDelimited = function encodeDelimited(message, writer) { + NatsJetstreamConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelOptions message from the specified reader or buffer. + * Decodes a NatsJetstreamConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelOptions + * @memberof protos.args.NatsJetstreamConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelOptions} TunnelOptions + * @returns {protos.args.NatsJetstreamConn} NatsJetstreamConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelOptions.decode = function decode(reader, length) { + NatsJetstreamConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsJetstreamConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.apiToken = reader.string(); + message.dsn = reader.string(); break; case 2: - message.connectionId = reader.string(); + message.userCredentials = reader.string(); break; case 3: - message._grpcAddress = reader.string(); + message.clientId = reader.string(); break; case 4: - message._grpcTimeoutSeconds = reader.uint32(); + message.tlsOptions = $root.protos.args.NatsJetstreamTLSOptions.decode(reader, reader.uint32()); break; case 5: - message._grpcInsecure = reader.bool(); - break; - case 6: - message.name = reader.string(); - break; - case 1000: - message._tunnelId = reader.string(); - break; - case 1001: - message._active = reader.bool(); - break; - case 100: - message.kafka = $root.protos.opts.TunnelGroupKafkaOptions.decode(reader, reader.uint32()); - break; - case 101: - message.activemq = $root.protos.opts.TunnelGroupActiveMQOptions.decode(reader, reader.uint32()); - break; - case 102: - message.awsSqs = $root.protos.opts.TunnelGroupAWSSQSOptions.decode(reader, reader.uint32()); - break; - case 103: - message.awsSns = $root.protos.opts.TunnelGroupAWSSNSOptions.decode(reader, reader.uint32()); - break; - case 104: - message.nats = $root.protos.opts.TunnelGroupNatsOptions.decode(reader, reader.uint32()); - break; - case 105: - message.natsStreaming = $root.protos.opts.TunnelGroupNatsStreamingOptions.decode(reader, reader.uint32()); - break; - case 106: - message.nsq = $root.protos.opts.TunnelGroupNSQOptions.decode(reader, reader.uint32()); - break; - case 107: - message.rabbit = $root.protos.opts.TunnelGroupRabbitOptions.decode(reader, reader.uint32()); - break; - case 108: - message.mqtt = $root.protos.opts.TunnelGroupMQTTOptions.decode(reader, reader.uint32()); - break; - case 109: - message.azureServiceBus = $root.protos.opts.TunnelGroupAzureServiceBusOptions.decode(reader, reader.uint32()); - break; - case 110: - message.azureEventHub = $root.protos.opts.TunnelGroupAzureEventHubOptions.decode(reader, reader.uint32()); - break; - case 111: - message.gcpPubsub = $root.protos.opts.TunnelGroupGCPPubSubOptions.decode(reader, reader.uint32()); - break; - case 112: - message.kubemqQueue = $root.protos.opts.TunnelGroupKubeMQQueueOptions.decode(reader, reader.uint32()); - break; - case 113: - message.redisPubsub = $root.protos.opts.TunnelGroupRedisPubSubOptions.decode(reader, reader.uint32()); - break; - case 114: - message.redisStreams = $root.protos.opts.TunnelGroupRedisStreamsOptions.decode(reader, reader.uint32()); - break; - case 115: - message.pulsar = $root.protos.opts.TunnelGroupPulsarOptions.decode(reader, reader.uint32()); - break; - case 116: - message.rabbitStreams = $root.protos.opts.TunnelGroupRabbitStreamsOptions.decode(reader, reader.uint32()); - break; - case 117: - message.natsJetstream = $root.protos.opts.TunnelGroupNatsJetstreamOptions.decode(reader, reader.uint32()); - break; - case 118: - message.awsKinesis = $root.protos.opts.TunnelGroupAWSKinesisOptions.decode(reader, reader.uint32()); - break; - case 119: - message.memphis = $root.protos.opts.TunnelGroupMemphisOptions.decode(reader, reader.uint32()); + message.nkey = reader.string(); break; default: reader.skipType(tag & 7); @@ -12762,425 +10690,152 @@ $root.protos = (function() { }; /** - * Decodes a TunnelOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsJetstreamConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelOptions + * @memberof protos.args.NatsJetstreamConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelOptions} TunnelOptions + * @returns {protos.args.NatsJetstreamConn} NatsJetstreamConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelOptions.decodeDelimited = function decodeDelimited(reader) { + NatsJetstreamConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelOptions message. + * Verifies a NatsJetstreamConn message. * @function verify - * @memberof protos.opts.TunnelOptions + * @memberof protos.args.NatsJetstreamConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelOptions.verify = function verify(message) { + NatsJetstreamConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.apiToken != null && message.hasOwnProperty("apiToken")) - if (!$util.isString(message.apiToken)) - return "apiToken: string expected"; - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - if (!$util.isString(message.connectionId)) - return "connectionId: string expected"; - if (message._grpcAddress != null && message.hasOwnProperty("_grpcAddress")) - if (!$util.isString(message._grpcAddress)) - return "_grpcAddress: string expected"; - if (message._grpcTimeoutSeconds != null && message.hasOwnProperty("_grpcTimeoutSeconds")) - if (!$util.isInteger(message._grpcTimeoutSeconds)) - return "_grpcTimeoutSeconds: integer expected"; - if (message._grpcInsecure != null && message.hasOwnProperty("_grpcInsecure")) - if (typeof message._grpcInsecure !== "boolean") - return "_grpcInsecure: boolean expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message._tunnelId != null && message.hasOwnProperty("_tunnelId")) - if (!$util.isString(message._tunnelId)) - return "_tunnelId: string expected"; - if (message._active != null && message.hasOwnProperty("_active")) - if (typeof message._active !== "boolean") - return "_active: boolean expected"; - if (message.kafka != null && message.hasOwnProperty("kafka")) { - var error = $root.protos.opts.TunnelGroupKafkaOptions.verify(message.kafka); - if (error) - return "kafka." + error; - } - if (message.activemq != null && message.hasOwnProperty("activemq")) { - var error = $root.protos.opts.TunnelGroupActiveMQOptions.verify(message.activemq); - if (error) - return "activemq." + error; - } - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) { - var error = $root.protos.opts.TunnelGroupAWSSQSOptions.verify(message.awsSqs); - if (error) - return "awsSqs." + error; - } - if (message.awsSns != null && message.hasOwnProperty("awsSns")) { - var error = $root.protos.opts.TunnelGroupAWSSNSOptions.verify(message.awsSns); - if (error) - return "awsSns." + error; - } - if (message.nats != null && message.hasOwnProperty("nats")) { - var error = $root.protos.opts.TunnelGroupNatsOptions.verify(message.nats); - if (error) - return "nats." + error; - } - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) { - var error = $root.protos.opts.TunnelGroupNatsStreamingOptions.verify(message.natsStreaming); - if (error) - return "natsStreaming." + error; - } - if (message.nsq != null && message.hasOwnProperty("nsq")) { - var error = $root.protos.opts.TunnelGroupNSQOptions.verify(message.nsq); - if (error) - return "nsq." + error; - } - if (message.rabbit != null && message.hasOwnProperty("rabbit")) { - var error = $root.protos.opts.TunnelGroupRabbitOptions.verify(message.rabbit); - if (error) - return "rabbit." + error; - } - if (message.mqtt != null && message.hasOwnProperty("mqtt")) { - var error = $root.protos.opts.TunnelGroupMQTTOptions.verify(message.mqtt); - if (error) - return "mqtt." + error; - } - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) { - var error = $root.protos.opts.TunnelGroupAzureServiceBusOptions.verify(message.azureServiceBus); - if (error) - return "azureServiceBus." + error; - } - if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) { - var error = $root.protos.opts.TunnelGroupAzureEventHubOptions.verify(message.azureEventHub); - if (error) - return "azureEventHub." + error; - } - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) { - var error = $root.protos.opts.TunnelGroupGCPPubSubOptions.verify(message.gcpPubsub); - if (error) - return "gcpPubsub." + error; - } - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) { - var error = $root.protos.opts.TunnelGroupKubeMQQueueOptions.verify(message.kubemqQueue); - if (error) - return "kubemqQueue." + error; - } - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) { - var error = $root.protos.opts.TunnelGroupRedisPubSubOptions.verify(message.redisPubsub); - if (error) - return "redisPubsub." + error; - } - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) { - var error = $root.protos.opts.TunnelGroupRedisStreamsOptions.verify(message.redisStreams); - if (error) - return "redisStreams." + error; - } - if (message.pulsar != null && message.hasOwnProperty("pulsar")) { - var error = $root.protos.opts.TunnelGroupPulsarOptions.verify(message.pulsar); - if (error) - return "pulsar." + error; - } - if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) { - var error = $root.protos.opts.TunnelGroupRabbitStreamsOptions.verify(message.rabbitStreams); - if (error) - return "rabbitStreams." + error; - } - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) { - var error = $root.protos.opts.TunnelGroupNatsJetstreamOptions.verify(message.natsJetstream); - if (error) - return "natsJetstream." + error; - } - if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) { - var error = $root.protos.opts.TunnelGroupAWSKinesisOptions.verify(message.awsKinesis); - if (error) - return "awsKinesis." + error; - } - if (message.memphis != null && message.hasOwnProperty("memphis")) { - var error = $root.protos.opts.TunnelGroupMemphisOptions.verify(message.memphis); + if (message.dsn != null && message.hasOwnProperty("dsn")) + if (!$util.isString(message.dsn)) + return "dsn: string expected"; + if (message.userCredentials != null && message.hasOwnProperty("userCredentials")) + if (!$util.isString(message.userCredentials)) + return "userCredentials: string expected"; + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) { + var error = $root.protos.args.NatsJetstreamTLSOptions.verify(message.tlsOptions); if (error) - return "memphis." + error; + return "tlsOptions." + error; } + if (message.nkey != null && message.hasOwnProperty("nkey")) + if (!$util.isString(message.nkey)) + return "nkey: string expected"; return null; }; /** - * Creates a TunnelOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsJetstreamConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelOptions + * @memberof protos.args.NatsJetstreamConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelOptions} TunnelOptions + * @returns {protos.args.NatsJetstreamConn} NatsJetstreamConn */ - TunnelOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelOptions) + NatsJetstreamConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NatsJetstreamConn) return object; - var message = new $root.protos.opts.TunnelOptions(); - if (object.apiToken != null) - message.apiToken = String(object.apiToken); - if (object.connectionId != null) - message.connectionId = String(object.connectionId); - if (object._grpcAddress != null) - message._grpcAddress = String(object._grpcAddress); - if (object._grpcTimeoutSeconds != null) - message._grpcTimeoutSeconds = object._grpcTimeoutSeconds >>> 0; - if (object._grpcInsecure != null) - message._grpcInsecure = Boolean(object._grpcInsecure); - if (object.name != null) - message.name = String(object.name); - if (object._tunnelId != null) - message._tunnelId = String(object._tunnelId); - if (object._active != null) - message._active = Boolean(object._active); - if (object.kafka != null) { - if (typeof object.kafka !== "object") - throw TypeError(".protos.opts.TunnelOptions.kafka: object expected"); - message.kafka = $root.protos.opts.TunnelGroupKafkaOptions.fromObject(object.kafka); - } - if (object.activemq != null) { - if (typeof object.activemq !== "object") - throw TypeError(".protos.opts.TunnelOptions.activemq: object expected"); - message.activemq = $root.protos.opts.TunnelGroupActiveMQOptions.fromObject(object.activemq); - } - if (object.awsSqs != null) { - if (typeof object.awsSqs !== "object") - throw TypeError(".protos.opts.TunnelOptions.awsSqs: object expected"); - message.awsSqs = $root.protos.opts.TunnelGroupAWSSQSOptions.fromObject(object.awsSqs); - } - if (object.awsSns != null) { - if (typeof object.awsSns !== "object") - throw TypeError(".protos.opts.TunnelOptions.awsSns: object expected"); - message.awsSns = $root.protos.opts.TunnelGroupAWSSNSOptions.fromObject(object.awsSns); - } - if (object.nats != null) { - if (typeof object.nats !== "object") - throw TypeError(".protos.opts.TunnelOptions.nats: object expected"); - message.nats = $root.protos.opts.TunnelGroupNatsOptions.fromObject(object.nats); - } - if (object.natsStreaming != null) { - if (typeof object.natsStreaming !== "object") - throw TypeError(".protos.opts.TunnelOptions.natsStreaming: object expected"); - message.natsStreaming = $root.protos.opts.TunnelGroupNatsStreamingOptions.fromObject(object.natsStreaming); - } - if (object.nsq != null) { - if (typeof object.nsq !== "object") - throw TypeError(".protos.opts.TunnelOptions.nsq: object expected"); - message.nsq = $root.protos.opts.TunnelGroupNSQOptions.fromObject(object.nsq); - } - if (object.rabbit != null) { - if (typeof object.rabbit !== "object") - throw TypeError(".protos.opts.TunnelOptions.rabbit: object expected"); - message.rabbit = $root.protos.opts.TunnelGroupRabbitOptions.fromObject(object.rabbit); - } - if (object.mqtt != null) { - if (typeof object.mqtt !== "object") - throw TypeError(".protos.opts.TunnelOptions.mqtt: object expected"); - message.mqtt = $root.protos.opts.TunnelGroupMQTTOptions.fromObject(object.mqtt); - } - if (object.azureServiceBus != null) { - if (typeof object.azureServiceBus !== "object") - throw TypeError(".protos.opts.TunnelOptions.azureServiceBus: object expected"); - message.azureServiceBus = $root.protos.opts.TunnelGroupAzureServiceBusOptions.fromObject(object.azureServiceBus); - } - if (object.azureEventHub != null) { - if (typeof object.azureEventHub !== "object") - throw TypeError(".protos.opts.TunnelOptions.azureEventHub: object expected"); - message.azureEventHub = $root.protos.opts.TunnelGroupAzureEventHubOptions.fromObject(object.azureEventHub); - } - if (object.gcpPubsub != null) { - if (typeof object.gcpPubsub !== "object") - throw TypeError(".protos.opts.TunnelOptions.gcpPubsub: object expected"); - message.gcpPubsub = $root.protos.opts.TunnelGroupGCPPubSubOptions.fromObject(object.gcpPubsub); - } - if (object.kubemqQueue != null) { - if (typeof object.kubemqQueue !== "object") - throw TypeError(".protos.opts.TunnelOptions.kubemqQueue: object expected"); - message.kubemqQueue = $root.protos.opts.TunnelGroupKubeMQQueueOptions.fromObject(object.kubemqQueue); - } - if (object.redisPubsub != null) { - if (typeof object.redisPubsub !== "object") - throw TypeError(".protos.opts.TunnelOptions.redisPubsub: object expected"); - message.redisPubsub = $root.protos.opts.TunnelGroupRedisPubSubOptions.fromObject(object.redisPubsub); - } - if (object.redisStreams != null) { - if (typeof object.redisStreams !== "object") - throw TypeError(".protos.opts.TunnelOptions.redisStreams: object expected"); - message.redisStreams = $root.protos.opts.TunnelGroupRedisStreamsOptions.fromObject(object.redisStreams); - } - if (object.pulsar != null) { - if (typeof object.pulsar !== "object") - throw TypeError(".protos.opts.TunnelOptions.pulsar: object expected"); - message.pulsar = $root.protos.opts.TunnelGroupPulsarOptions.fromObject(object.pulsar); - } - if (object.rabbitStreams != null) { - if (typeof object.rabbitStreams !== "object") - throw TypeError(".protos.opts.TunnelOptions.rabbitStreams: object expected"); - message.rabbitStreams = $root.protos.opts.TunnelGroupRabbitStreamsOptions.fromObject(object.rabbitStreams); - } - if (object.natsJetstream != null) { - if (typeof object.natsJetstream !== "object") - throw TypeError(".protos.opts.TunnelOptions.natsJetstream: object expected"); - message.natsJetstream = $root.protos.opts.TunnelGroupNatsJetstreamOptions.fromObject(object.natsJetstream); - } - if (object.awsKinesis != null) { - if (typeof object.awsKinesis !== "object") - throw TypeError(".protos.opts.TunnelOptions.awsKinesis: object expected"); - message.awsKinesis = $root.protos.opts.TunnelGroupAWSKinesisOptions.fromObject(object.awsKinesis); - } - if (object.memphis != null) { - if (typeof object.memphis !== "object") - throw TypeError(".protos.opts.TunnelOptions.memphis: object expected"); - message.memphis = $root.protos.opts.TunnelGroupMemphisOptions.fromObject(object.memphis); + var message = new $root.protos.args.NatsJetstreamConn(); + if (object.dsn != null) + message.dsn = String(object.dsn); + if (object.userCredentials != null) + message.userCredentials = String(object.userCredentials); + if (object.clientId != null) + message.clientId = String(object.clientId); + if (object.tlsOptions != null) { + if (typeof object.tlsOptions !== "object") + throw TypeError(".protos.args.NatsJetstreamConn.tlsOptions: object expected"); + message.tlsOptions = $root.protos.args.NatsJetstreamTLSOptions.fromObject(object.tlsOptions); } + if (object.nkey != null) + message.nkey = String(object.nkey); return message; }; /** - * Creates a plain object from a TunnelOptions message. Also converts values to other types if specified. + * Creates a plain object from a NatsJetstreamConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelOptions + * @memberof protos.args.NatsJetstreamConn * @static - * @param {protos.opts.TunnelOptions} message TunnelOptions + * @param {protos.args.NatsJetstreamConn} message NatsJetstreamConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelOptions.toObject = function toObject(message, options) { + NatsJetstreamConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.apiToken = ""; - object.connectionId = ""; - object._grpcAddress = ""; - object._grpcTimeoutSeconds = 0; - object._grpcInsecure = false; - object.name = ""; - object.kafka = null; - object.activemq = null; - object.awsSqs = null; - object.awsSns = null; - object.nats = null; - object.natsStreaming = null; - object.nsq = null; - object.rabbit = null; - object.mqtt = null; - object.azureServiceBus = null; - object.azureEventHub = null; - object.gcpPubsub = null; - object.kubemqQueue = null; - object.redisPubsub = null; - object.redisStreams = null; - object.pulsar = null; - object.rabbitStreams = null; - object.natsJetstream = null; - object.awsKinesis = null; - object.memphis = null; - object._tunnelId = ""; - object._active = false; - } - if (message.apiToken != null && message.hasOwnProperty("apiToken")) - object.apiToken = message.apiToken; - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - object.connectionId = message.connectionId; - if (message._grpcAddress != null && message.hasOwnProperty("_grpcAddress")) - object._grpcAddress = message._grpcAddress; - if (message._grpcTimeoutSeconds != null && message.hasOwnProperty("_grpcTimeoutSeconds")) - object._grpcTimeoutSeconds = message._grpcTimeoutSeconds; - if (message._grpcInsecure != null && message.hasOwnProperty("_grpcInsecure")) - object._grpcInsecure = message._grpcInsecure; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.kafka != null && message.hasOwnProperty("kafka")) - object.kafka = $root.protos.opts.TunnelGroupKafkaOptions.toObject(message.kafka, options); - if (message.activemq != null && message.hasOwnProperty("activemq")) - object.activemq = $root.protos.opts.TunnelGroupActiveMQOptions.toObject(message.activemq, options); - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) - object.awsSqs = $root.protos.opts.TunnelGroupAWSSQSOptions.toObject(message.awsSqs, options); - if (message.awsSns != null && message.hasOwnProperty("awsSns")) - object.awsSns = $root.protos.opts.TunnelGroupAWSSNSOptions.toObject(message.awsSns, options); - if (message.nats != null && message.hasOwnProperty("nats")) - object.nats = $root.protos.opts.TunnelGroupNatsOptions.toObject(message.nats, options); - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) - object.natsStreaming = $root.protos.opts.TunnelGroupNatsStreamingOptions.toObject(message.natsStreaming, options); - if (message.nsq != null && message.hasOwnProperty("nsq")) - object.nsq = $root.protos.opts.TunnelGroupNSQOptions.toObject(message.nsq, options); - if (message.rabbit != null && message.hasOwnProperty("rabbit")) - object.rabbit = $root.protos.opts.TunnelGroupRabbitOptions.toObject(message.rabbit, options); - if (message.mqtt != null && message.hasOwnProperty("mqtt")) - object.mqtt = $root.protos.opts.TunnelGroupMQTTOptions.toObject(message.mqtt, options); - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) - object.azureServiceBus = $root.protos.opts.TunnelGroupAzureServiceBusOptions.toObject(message.azureServiceBus, options); - if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) - object.azureEventHub = $root.protos.opts.TunnelGroupAzureEventHubOptions.toObject(message.azureEventHub, options); - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) - object.gcpPubsub = $root.protos.opts.TunnelGroupGCPPubSubOptions.toObject(message.gcpPubsub, options); - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) - object.kubemqQueue = $root.protos.opts.TunnelGroupKubeMQQueueOptions.toObject(message.kubemqQueue, options); - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) - object.redisPubsub = $root.protos.opts.TunnelGroupRedisPubSubOptions.toObject(message.redisPubsub, options); - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) - object.redisStreams = $root.protos.opts.TunnelGroupRedisStreamsOptions.toObject(message.redisStreams, options); - if (message.pulsar != null && message.hasOwnProperty("pulsar")) - object.pulsar = $root.protos.opts.TunnelGroupPulsarOptions.toObject(message.pulsar, options); - if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) - object.rabbitStreams = $root.protos.opts.TunnelGroupRabbitStreamsOptions.toObject(message.rabbitStreams, options); - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) - object.natsJetstream = $root.protos.opts.TunnelGroupNatsJetstreamOptions.toObject(message.natsJetstream, options); - if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) - object.awsKinesis = $root.protos.opts.TunnelGroupAWSKinesisOptions.toObject(message.awsKinesis, options); - if (message.memphis != null && message.hasOwnProperty("memphis")) - object.memphis = $root.protos.opts.TunnelGroupMemphisOptions.toObject(message.memphis, options); - if (message._tunnelId != null && message.hasOwnProperty("_tunnelId")) - object._tunnelId = message._tunnelId; - if (message._active != null && message.hasOwnProperty("_active")) - object._active = message._active; + object.dsn = ""; + object.userCredentials = ""; + object.clientId = ""; + object.tlsOptions = null; + object.nkey = ""; + } + if (message.dsn != null && message.hasOwnProperty("dsn")) + object.dsn = message.dsn; + if (message.userCredentials != null && message.hasOwnProperty("userCredentials")) + object.userCredentials = message.userCredentials; + if (message.clientId != null && message.hasOwnProperty("clientId")) + object.clientId = message.clientId; + if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) + object.tlsOptions = $root.protos.args.NatsJetstreamTLSOptions.toObject(message.tlsOptions, options); + if (message.nkey != null && message.hasOwnProperty("nkey")) + object.nkey = message.nkey; return object; }; /** - * Converts this TunnelOptions to JSON. + * Converts this NatsJetstreamConn to JSON. * @function toJSON - * @memberof protos.opts.TunnelOptions + * @memberof protos.args.NatsJetstreamConn * @instance * @returns {Object.} JSON object */ - TunnelOptions.prototype.toJSON = function toJSON() { + NatsJetstreamConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelOptions; + return NatsJetstreamConn; })(); - opts.TunnelGroupKafkaOptions = (function() { + args.NatsJetstreamReadArgs = (function() { /** - * Properties of a TunnelGroupKafkaOptions. - * @memberof protos.opts - * @interface ITunnelGroupKafkaOptions - * @property {protos.args.IKafkaConn|null} [_conn] TunnelGroupKafkaOptions _conn - * @property {protos.args.IKafkaWriteArgs|null} [args] TunnelGroupKafkaOptions args + * Properties of a NatsJetstreamReadArgs. + * @memberof protos.args + * @interface INatsJetstreamReadArgs + * @property {string|null} [stream] NatsJetstreamReadArgs stream + * @property {string|null} [consumerName] NatsJetstreamReadArgs consumerName + * @property {boolean|null} [createDurableConsumer] NatsJetstreamReadArgs createDurableConsumer + * @property {boolean|null} [existingDurableConsumer] NatsJetstreamReadArgs existingDurableConsumer + * @property {boolean|null} [keepConsumer] NatsJetstreamReadArgs keepConsumer + * @property {number|Long|null} [consumerStartSequence] NatsJetstreamReadArgs consumerStartSequence + * @property {string|null} [consumerStartTime] NatsJetstreamReadArgs consumerStartTime + * @property {string|null} [consumerFilterSubject] NatsJetstreamReadArgs consumerFilterSubject */ /** - * Constructs a new TunnelGroupKafkaOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupKafkaOptions. - * @implements ITunnelGroupKafkaOptions + * Constructs a new NatsJetstreamReadArgs. + * @memberof protos.args + * @classdesc Represents a NatsJetstreamReadArgs. + * @implements INatsJetstreamReadArgs * @constructor - * @param {protos.opts.ITunnelGroupKafkaOptions=} [properties] Properties to set + * @param {protos.args.INatsJetstreamReadArgs=} [properties] Properties to set */ - function TunnelGroupKafkaOptions(properties) { + function NatsJetstreamReadArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13188,88 +10843,166 @@ $root.protos = (function() { } /** - * TunnelGroupKafkaOptions _conn. - * @member {protos.args.IKafkaConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupKafkaOptions + * NatsJetstreamReadArgs stream. + * @member {string} stream + * @memberof protos.args.NatsJetstreamReadArgs * @instance */ - TunnelGroupKafkaOptions.prototype._conn = null; + NatsJetstreamReadArgs.prototype.stream = ""; /** - * TunnelGroupKafkaOptions args. - * @member {protos.args.IKafkaWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupKafkaOptions + * NatsJetstreamReadArgs consumerName. + * @member {string} consumerName + * @memberof protos.args.NatsJetstreamReadArgs + * @instance + */ + NatsJetstreamReadArgs.prototype.consumerName = ""; + + /** + * NatsJetstreamReadArgs createDurableConsumer. + * @member {boolean} createDurableConsumer + * @memberof protos.args.NatsJetstreamReadArgs + * @instance + */ + NatsJetstreamReadArgs.prototype.createDurableConsumer = false; + + /** + * NatsJetstreamReadArgs existingDurableConsumer. + * @member {boolean} existingDurableConsumer + * @memberof protos.args.NatsJetstreamReadArgs + * @instance + */ + NatsJetstreamReadArgs.prototype.existingDurableConsumer = false; + + /** + * NatsJetstreamReadArgs keepConsumer. + * @member {boolean} keepConsumer + * @memberof protos.args.NatsJetstreamReadArgs * @instance */ - TunnelGroupKafkaOptions.prototype.args = null; + NatsJetstreamReadArgs.prototype.keepConsumer = false; + + /** + * NatsJetstreamReadArgs consumerStartSequence. + * @member {number|Long} consumerStartSequence + * @memberof protos.args.NatsJetstreamReadArgs + * @instance + */ + NatsJetstreamReadArgs.prototype.consumerStartSequence = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * NatsJetstreamReadArgs consumerStartTime. + * @member {string} consumerStartTime + * @memberof protos.args.NatsJetstreamReadArgs + * @instance + */ + NatsJetstreamReadArgs.prototype.consumerStartTime = ""; + + /** + * NatsJetstreamReadArgs consumerFilterSubject. + * @member {string} consumerFilterSubject + * @memberof protos.args.NatsJetstreamReadArgs + * @instance + */ + NatsJetstreamReadArgs.prototype.consumerFilterSubject = ""; /** - * Creates a new TunnelGroupKafkaOptions instance using the specified properties. + * Creates a new NatsJetstreamReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupKafkaOptions + * @memberof protos.args.NatsJetstreamReadArgs * @static - * @param {protos.opts.ITunnelGroupKafkaOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupKafkaOptions} TunnelGroupKafkaOptions instance + * @param {protos.args.INatsJetstreamReadArgs=} [properties] Properties to set + * @returns {protos.args.NatsJetstreamReadArgs} NatsJetstreamReadArgs instance */ - TunnelGroupKafkaOptions.create = function create(properties) { - return new TunnelGroupKafkaOptions(properties); + NatsJetstreamReadArgs.create = function create(properties) { + return new NatsJetstreamReadArgs(properties); }; /** - * Encodes the specified TunnelGroupKafkaOptions message. Does not implicitly {@link protos.opts.TunnelGroupKafkaOptions.verify|verify} messages. + * Encodes the specified NatsJetstreamReadArgs message. Does not implicitly {@link protos.args.NatsJetstreamReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupKafkaOptions + * @memberof protos.args.NatsJetstreamReadArgs * @static - * @param {protos.opts.ITunnelGroupKafkaOptions} message TunnelGroupKafkaOptions message or plain object to encode + * @param {protos.args.INatsJetstreamReadArgs} message NatsJetstreamReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupKafkaOptions.encode = function encode(message, writer) { + NatsJetstreamReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.KafkaConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.KafkaWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.stream != null && Object.hasOwnProperty.call(message, "stream")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.stream); + if (message.consumerName != null && Object.hasOwnProperty.call(message, "consumerName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.consumerName); + if (message.createDurableConsumer != null && Object.hasOwnProperty.call(message, "createDurableConsumer")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.createDurableConsumer); + if (message.existingDurableConsumer != null && Object.hasOwnProperty.call(message, "existingDurableConsumer")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.existingDurableConsumer); + if (message.keepConsumer != null && Object.hasOwnProperty.call(message, "keepConsumer")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.keepConsumer); + if (message.consumerStartSequence != null && Object.hasOwnProperty.call(message, "consumerStartSequence")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.consumerStartSequence); + if (message.consumerStartTime != null && Object.hasOwnProperty.call(message, "consumerStartTime")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.consumerStartTime); + if (message.consumerFilterSubject != null && Object.hasOwnProperty.call(message, "consumerFilterSubject")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.consumerFilterSubject); return writer; }; /** - * Encodes the specified TunnelGroupKafkaOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupKafkaOptions.verify|verify} messages. + * Encodes the specified NatsJetstreamReadArgs message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupKafkaOptions + * @memberof protos.args.NatsJetstreamReadArgs * @static - * @param {protos.opts.ITunnelGroupKafkaOptions} message TunnelGroupKafkaOptions message or plain object to encode + * @param {protos.args.INatsJetstreamReadArgs} message NatsJetstreamReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupKafkaOptions.encodeDelimited = function encodeDelimited(message, writer) { + NatsJetstreamReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupKafkaOptions message from the specified reader or buffer. + * Decodes a NatsJetstreamReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupKafkaOptions + * @memberof protos.args.NatsJetstreamReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupKafkaOptions} TunnelGroupKafkaOptions + * @returns {protos.args.NatsJetstreamReadArgs} NatsJetstreamReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupKafkaOptions.decode = function decode(reader, length) { + NatsJetstreamReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupKafkaOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsJetstreamReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.KafkaConn.decode(reader, reader.uint32()); + message.stream = reader.string(); break; case 2: - message.args = $root.protos.args.KafkaWriteArgs.decode(reader, reader.uint32()); + message.consumerName = reader.string(); + break; + case 3: + message.createDurableConsumer = reader.bool(); + break; + case 4: + message.existingDurableConsumer = reader.bool(); + break; + case 5: + message.keepConsumer = reader.bool(); + break; + case 6: + message.consumerStartSequence = reader.int64(); + break; + case 7: + message.consumerStartTime = reader.string(); + break; + case 8: + message.consumerFilterSubject = reader.string(); break; default: reader.skipType(tag & 7); @@ -13280,127 +11013,178 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupKafkaOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsJetstreamReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupKafkaOptions + * @memberof protos.args.NatsJetstreamReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupKafkaOptions} TunnelGroupKafkaOptions + * @returns {protos.args.NatsJetstreamReadArgs} NatsJetstreamReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupKafkaOptions.decodeDelimited = function decodeDelimited(reader) { + NatsJetstreamReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupKafkaOptions message. + * Verifies a NatsJetstreamReadArgs message. * @function verify - * @memberof protos.opts.TunnelGroupKafkaOptions + * @memberof protos.args.NatsJetstreamReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupKafkaOptions.verify = function verify(message) { + NatsJetstreamReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.KafkaConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.KafkaWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.stream != null && message.hasOwnProperty("stream")) + if (!$util.isString(message.stream)) + return "stream: string expected"; + if (message.consumerName != null && message.hasOwnProperty("consumerName")) + if (!$util.isString(message.consumerName)) + return "consumerName: string expected"; + if (message.createDurableConsumer != null && message.hasOwnProperty("createDurableConsumer")) + if (typeof message.createDurableConsumer !== "boolean") + return "createDurableConsumer: boolean expected"; + if (message.existingDurableConsumer != null && message.hasOwnProperty("existingDurableConsumer")) + if (typeof message.existingDurableConsumer !== "boolean") + return "existingDurableConsumer: boolean expected"; + if (message.keepConsumer != null && message.hasOwnProperty("keepConsumer")) + if (typeof message.keepConsumer !== "boolean") + return "keepConsumer: boolean expected"; + if (message.consumerStartSequence != null && message.hasOwnProperty("consumerStartSequence")) + if (!$util.isInteger(message.consumerStartSequence) && !(message.consumerStartSequence && $util.isInteger(message.consumerStartSequence.low) && $util.isInteger(message.consumerStartSequence.high))) + return "consumerStartSequence: integer|Long expected"; + if (message.consumerStartTime != null && message.hasOwnProperty("consumerStartTime")) + if (!$util.isString(message.consumerStartTime)) + return "consumerStartTime: string expected"; + if (message.consumerFilterSubject != null && message.hasOwnProperty("consumerFilterSubject")) + if (!$util.isString(message.consumerFilterSubject)) + return "consumerFilterSubject: string expected"; return null; }; /** - * Creates a TunnelGroupKafkaOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsJetstreamReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupKafkaOptions + * @memberof protos.args.NatsJetstreamReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupKafkaOptions} TunnelGroupKafkaOptions + * @returns {protos.args.NatsJetstreamReadArgs} NatsJetstreamReadArgs */ - TunnelGroupKafkaOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupKafkaOptions) + NatsJetstreamReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NatsJetstreamReadArgs) return object; - var message = new $root.protos.opts.TunnelGroupKafkaOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupKafkaOptions._conn: object expected"); - message._conn = $root.protos.args.KafkaConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupKafkaOptions.args: object expected"); - message.args = $root.protos.args.KafkaWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.NatsJetstreamReadArgs(); + if (object.stream != null) + message.stream = String(object.stream); + if (object.consumerName != null) + message.consumerName = String(object.consumerName); + if (object.createDurableConsumer != null) + message.createDurableConsumer = Boolean(object.createDurableConsumer); + if (object.existingDurableConsumer != null) + message.existingDurableConsumer = Boolean(object.existingDurableConsumer); + if (object.keepConsumer != null) + message.keepConsumer = Boolean(object.keepConsumer); + if (object.consumerStartSequence != null) + if ($util.Long) + (message.consumerStartSequence = $util.Long.fromValue(object.consumerStartSequence)).unsigned = false; + else if (typeof object.consumerStartSequence === "string") + message.consumerStartSequence = parseInt(object.consumerStartSequence, 10); + else if (typeof object.consumerStartSequence === "number") + message.consumerStartSequence = object.consumerStartSequence; + else if (typeof object.consumerStartSequence === "object") + message.consumerStartSequence = new $util.LongBits(object.consumerStartSequence.low >>> 0, object.consumerStartSequence.high >>> 0).toNumber(); + if (object.consumerStartTime != null) + message.consumerStartTime = String(object.consumerStartTime); + if (object.consumerFilterSubject != null) + message.consumerFilterSubject = String(object.consumerFilterSubject); return message; }; /** - * Creates a plain object from a TunnelGroupKafkaOptions message. Also converts values to other types if specified. + * Creates a plain object from a NatsJetstreamReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupKafkaOptions + * @memberof protos.args.NatsJetstreamReadArgs * @static - * @param {protos.opts.TunnelGroupKafkaOptions} message TunnelGroupKafkaOptions + * @param {protos.args.NatsJetstreamReadArgs} message NatsJetstreamReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupKafkaOptions.toObject = function toObject(message, options) { + NatsJetstreamReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.stream = ""; + object.consumerName = ""; + object.createDurableConsumer = false; + object.existingDurableConsumer = false; + object.keepConsumer = false; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.consumerStartSequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.consumerStartSequence = options.longs === String ? "0" : 0; + object.consumerStartTime = ""; + object.consumerFilterSubject = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.KafkaConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.KafkaWriteArgs.toObject(message.args, options); + if (message.stream != null && message.hasOwnProperty("stream")) + object.stream = message.stream; + if (message.consumerName != null && message.hasOwnProperty("consumerName")) + object.consumerName = message.consumerName; + if (message.createDurableConsumer != null && message.hasOwnProperty("createDurableConsumer")) + object.createDurableConsumer = message.createDurableConsumer; + if (message.existingDurableConsumer != null && message.hasOwnProperty("existingDurableConsumer")) + object.existingDurableConsumer = message.existingDurableConsumer; + if (message.keepConsumer != null && message.hasOwnProperty("keepConsumer")) + object.keepConsumer = message.keepConsumer; + if (message.consumerStartSequence != null && message.hasOwnProperty("consumerStartSequence")) + if (typeof message.consumerStartSequence === "number") + object.consumerStartSequence = options.longs === String ? String(message.consumerStartSequence) : message.consumerStartSequence; + else + object.consumerStartSequence = options.longs === String ? $util.Long.prototype.toString.call(message.consumerStartSequence) : options.longs === Number ? new $util.LongBits(message.consumerStartSequence.low >>> 0, message.consumerStartSequence.high >>> 0).toNumber() : message.consumerStartSequence; + if (message.consumerStartTime != null && message.hasOwnProperty("consumerStartTime")) + object.consumerStartTime = message.consumerStartTime; + if (message.consumerFilterSubject != null && message.hasOwnProperty("consumerFilterSubject")) + object.consumerFilterSubject = message.consumerFilterSubject; return object; }; /** - * Converts this TunnelGroupKafkaOptions to JSON. + * Converts this NatsJetstreamReadArgs to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupKafkaOptions + * @memberof protos.args.NatsJetstreamReadArgs * @instance * @returns {Object.} JSON object */ - TunnelGroupKafkaOptions.prototype.toJSON = function toJSON() { + NatsJetstreamReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupKafkaOptions; + return NatsJetstreamReadArgs; })(); - opts.TunnelGroupActiveMQOptions = (function() { + args.NatsJetstreamWriteArgs = (function() { /** - * Properties of a TunnelGroupActiveMQOptions. - * @memberof protos.opts - * @interface ITunnelGroupActiveMQOptions - * @property {protos.args.IActiveMQConn|null} [_conn] TunnelGroupActiveMQOptions _conn - * @property {protos.args.IActiveMQWriteArgs|null} [args] TunnelGroupActiveMQOptions args + * Properties of a NatsJetstreamWriteArgs. + * @memberof protos.args + * @interface INatsJetstreamWriteArgs + * @property {string|null} [subject] NatsJetstreamWriteArgs subject */ /** - * Constructs a new TunnelGroupActiveMQOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupActiveMQOptions. - * @implements ITunnelGroupActiveMQOptions + * Constructs a new NatsJetstreamWriteArgs. + * @memberof protos.args + * @classdesc Represents a NatsJetstreamWriteArgs. + * @implements INatsJetstreamWriteArgs * @constructor - * @param {protos.opts.ITunnelGroupActiveMQOptions=} [properties] Properties to set + * @param {protos.args.INatsJetstreamWriteArgs=} [properties] Properties to set */ - function TunnelGroupActiveMQOptions(properties) { + function NatsJetstreamWriteArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13408,88 +11192,75 @@ $root.protos = (function() { } /** - * TunnelGroupActiveMQOptions _conn. - * @member {protos.args.IActiveMQConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupActiveMQOptions - * @instance - */ - TunnelGroupActiveMQOptions.prototype._conn = null; - - /** - * TunnelGroupActiveMQOptions args. - * @member {protos.args.IActiveMQWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupActiveMQOptions + * NatsJetstreamWriteArgs subject. + * @member {string} subject + * @memberof protos.args.NatsJetstreamWriteArgs * @instance */ - TunnelGroupActiveMQOptions.prototype.args = null; + NatsJetstreamWriteArgs.prototype.subject = ""; /** - * Creates a new TunnelGroupActiveMQOptions instance using the specified properties. + * Creates a new NatsJetstreamWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupActiveMQOptions + * @memberof protos.args.NatsJetstreamWriteArgs * @static - * @param {protos.opts.ITunnelGroupActiveMQOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupActiveMQOptions} TunnelGroupActiveMQOptions instance + * @param {protos.args.INatsJetstreamWriteArgs=} [properties] Properties to set + * @returns {protos.args.NatsJetstreamWriteArgs} NatsJetstreamWriteArgs instance */ - TunnelGroupActiveMQOptions.create = function create(properties) { - return new TunnelGroupActiveMQOptions(properties); + NatsJetstreamWriteArgs.create = function create(properties) { + return new NatsJetstreamWriteArgs(properties); }; /** - * Encodes the specified TunnelGroupActiveMQOptions message. Does not implicitly {@link protos.opts.TunnelGroupActiveMQOptions.verify|verify} messages. + * Encodes the specified NatsJetstreamWriteArgs message. Does not implicitly {@link protos.args.NatsJetstreamWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupActiveMQOptions + * @memberof protos.args.NatsJetstreamWriteArgs * @static - * @param {protos.opts.ITunnelGroupActiveMQOptions} message TunnelGroupActiveMQOptions message or plain object to encode + * @param {protos.args.INatsJetstreamWriteArgs} message NatsJetstreamWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupActiveMQOptions.encode = function encode(message, writer) { + NatsJetstreamWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.ActiveMQConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.ActiveMQWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.subject != null && Object.hasOwnProperty.call(message, "subject")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.subject); return writer; }; /** - * Encodes the specified TunnelGroupActiveMQOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupActiveMQOptions.verify|verify} messages. + * Encodes the specified NatsJetstreamWriteArgs message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupActiveMQOptions + * @memberof protos.args.NatsJetstreamWriteArgs * @static - * @param {protos.opts.ITunnelGroupActiveMQOptions} message TunnelGroupActiveMQOptions message or plain object to encode + * @param {protos.args.INatsJetstreamWriteArgs} message NatsJetstreamWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupActiveMQOptions.encodeDelimited = function encodeDelimited(message, writer) { + NatsJetstreamWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupActiveMQOptions message from the specified reader or buffer. + * Decodes a NatsJetstreamWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupActiveMQOptions + * @memberof protos.args.NatsJetstreamWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupActiveMQOptions} TunnelGroupActiveMQOptions + * @returns {protos.args.NatsJetstreamWriteArgs} NatsJetstreamWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupActiveMQOptions.decode = function decode(reader, length) { + NatsJetstreamWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupActiveMQOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsJetstreamWriteArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.ActiveMQConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.ActiveMQWriteArgs.decode(reader, reader.uint32()); + message.subject = reader.string(); break; default: reader.skipType(tag & 7); @@ -13500,127 +11271,111 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupActiveMQOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsJetstreamWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupActiveMQOptions + * @memberof protos.args.NatsJetstreamWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupActiveMQOptions} TunnelGroupActiveMQOptions + * @returns {protos.args.NatsJetstreamWriteArgs} NatsJetstreamWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupActiveMQOptions.decodeDelimited = function decodeDelimited(reader) { + NatsJetstreamWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupActiveMQOptions message. + * Verifies a NatsJetstreamWriteArgs message. * @function verify - * @memberof protos.opts.TunnelGroupActiveMQOptions + * @memberof protos.args.NatsJetstreamWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupActiveMQOptions.verify = function verify(message) { + NatsJetstreamWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.ActiveMQConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.ActiveMQWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.subject != null && message.hasOwnProperty("subject")) + if (!$util.isString(message.subject)) + return "subject: string expected"; return null; }; /** - * Creates a TunnelGroupActiveMQOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsJetstreamWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupActiveMQOptions + * @memberof protos.args.NatsJetstreamWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupActiveMQOptions} TunnelGroupActiveMQOptions + * @returns {protos.args.NatsJetstreamWriteArgs} NatsJetstreamWriteArgs */ - TunnelGroupActiveMQOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupActiveMQOptions) + NatsJetstreamWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NatsJetstreamWriteArgs) return object; - var message = new $root.protos.opts.TunnelGroupActiveMQOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupActiveMQOptions._conn: object expected"); - message._conn = $root.protos.args.ActiveMQConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupActiveMQOptions.args: object expected"); - message.args = $root.protos.args.ActiveMQWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.NatsJetstreamWriteArgs(); + if (object.subject != null) + message.subject = String(object.subject); return message; }; /** - * Creates a plain object from a TunnelGroupActiveMQOptions message. Also converts values to other types if specified. + * Creates a plain object from a NatsJetstreamWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupActiveMQOptions + * @memberof protos.args.NatsJetstreamWriteArgs * @static - * @param {protos.opts.TunnelGroupActiveMQOptions} message TunnelGroupActiveMQOptions + * @param {protos.args.NatsJetstreamWriteArgs} message NatsJetstreamWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupActiveMQOptions.toObject = function toObject(message, options) { + NatsJetstreamWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.ActiveMQConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.ActiveMQWriteArgs.toObject(message.args, options); + if (options.defaults) + object.subject = ""; + if (message.subject != null && message.hasOwnProperty("subject")) + object.subject = message.subject; return object; }; /** - * Converts this TunnelGroupActiveMQOptions to JSON. + * Converts this NatsJetstreamWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupActiveMQOptions + * @memberof protos.args.NatsJetstreamWriteArgs * @instance * @returns {Object.} JSON object */ - TunnelGroupActiveMQOptions.prototype.toJSON = function toJSON() { + NatsJetstreamWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupActiveMQOptions; + return NatsJetstreamWriteArgs; })(); - opts.TunnelGroupAWSSQSOptions = (function() { + args.NatsStreamingTLSOptions = (function() { /** - * Properties of a TunnelGroupAWSSQSOptions. - * @memberof protos.opts - * @interface ITunnelGroupAWSSQSOptions - * @property {protos.args.IAWSSQSConn|null} [_conn] TunnelGroupAWSSQSOptions _conn - * @property {protos.args.IAWSSQSWriteArgs|null} [args] TunnelGroupAWSSQSOptions args + * Properties of a NatsStreamingTLSOptions. + * @memberof protos.args + * @interface INatsStreamingTLSOptions + * @property {string|null} [tlsCaCert] NatsStreamingTLSOptions tlsCaCert + * @property {string|null} [tlsClientCert] NatsStreamingTLSOptions tlsClientCert + * @property {string|null} [tlsClientKey] NatsStreamingTLSOptions tlsClientKey + * @property {boolean|null} [tlsSkipVerify] NatsStreamingTLSOptions tlsSkipVerify + * @property {boolean|null} [useTls] NatsStreamingTLSOptions useTls */ /** - * Constructs a new TunnelGroupAWSSQSOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupAWSSQSOptions. - * @implements ITunnelGroupAWSSQSOptions + * Constructs a new NatsStreamingTLSOptions. + * @memberof protos.args + * @classdesc Represents a NatsStreamingTLSOptions. + * @implements INatsStreamingTLSOptions * @constructor - * @param {protos.opts.ITunnelGroupAWSSQSOptions=} [properties] Properties to set + * @param {protos.args.INatsStreamingTLSOptions=} [properties] Properties to set */ - function TunnelGroupAWSSQSOptions(properties) { + function NatsStreamingTLSOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13628,88 +11383,127 @@ $root.protos = (function() { } /** - * TunnelGroupAWSSQSOptions _conn. - * @member {protos.args.IAWSSQSConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupAWSSQSOptions + * NatsStreamingTLSOptions tlsCaCert. + * @member {string} tlsCaCert + * @memberof protos.args.NatsStreamingTLSOptions * @instance */ - TunnelGroupAWSSQSOptions.prototype._conn = null; + NatsStreamingTLSOptions.prototype.tlsCaCert = ""; /** - * TunnelGroupAWSSQSOptions args. - * @member {protos.args.IAWSSQSWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupAWSSQSOptions + * NatsStreamingTLSOptions tlsClientCert. + * @member {string} tlsClientCert + * @memberof protos.args.NatsStreamingTLSOptions + * @instance + */ + NatsStreamingTLSOptions.prototype.tlsClientCert = ""; + + /** + * NatsStreamingTLSOptions tlsClientKey. + * @member {string} tlsClientKey + * @memberof protos.args.NatsStreamingTLSOptions * @instance */ - TunnelGroupAWSSQSOptions.prototype.args = null; + NatsStreamingTLSOptions.prototype.tlsClientKey = ""; + + /** + * NatsStreamingTLSOptions tlsSkipVerify. + * @member {boolean} tlsSkipVerify + * @memberof protos.args.NatsStreamingTLSOptions + * @instance + */ + NatsStreamingTLSOptions.prototype.tlsSkipVerify = false; + + /** + * NatsStreamingTLSOptions useTls. + * @member {boolean} useTls + * @memberof protos.args.NatsStreamingTLSOptions + * @instance + */ + NatsStreamingTLSOptions.prototype.useTls = false; /** - * Creates a new TunnelGroupAWSSQSOptions instance using the specified properties. + * Creates a new NatsStreamingTLSOptions instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupAWSSQSOptions + * @memberof protos.args.NatsStreamingTLSOptions * @static - * @param {protos.opts.ITunnelGroupAWSSQSOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupAWSSQSOptions} TunnelGroupAWSSQSOptions instance + * @param {protos.args.INatsStreamingTLSOptions=} [properties] Properties to set + * @returns {protos.args.NatsStreamingTLSOptions} NatsStreamingTLSOptions instance */ - TunnelGroupAWSSQSOptions.create = function create(properties) { - return new TunnelGroupAWSSQSOptions(properties); + NatsStreamingTLSOptions.create = function create(properties) { + return new NatsStreamingTLSOptions(properties); }; /** - * Encodes the specified TunnelGroupAWSSQSOptions message. Does not implicitly {@link protos.opts.TunnelGroupAWSSQSOptions.verify|verify} messages. + * Encodes the specified NatsStreamingTLSOptions message. Does not implicitly {@link protos.args.NatsStreamingTLSOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupAWSSQSOptions + * @memberof protos.args.NatsStreamingTLSOptions * @static - * @param {protos.opts.ITunnelGroupAWSSQSOptions} message TunnelGroupAWSSQSOptions message or plain object to encode + * @param {protos.args.INatsStreamingTLSOptions} message NatsStreamingTLSOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupAWSSQSOptions.encode = function encode(message, writer) { + NatsStreamingTLSOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AWSSQSConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AWSSQSWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.tlsCaCert != null && Object.hasOwnProperty.call(message, "tlsCaCert")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tlsCaCert); + if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tlsClientCert); + if (message.tlsClientKey != null && Object.hasOwnProperty.call(message, "tlsClientKey")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tlsClientKey); + if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.tlsSkipVerify); + if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useTls); return writer; }; /** - * Encodes the specified TunnelGroupAWSSQSOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupAWSSQSOptions.verify|verify} messages. + * Encodes the specified NatsStreamingTLSOptions message, length delimited. Does not implicitly {@link protos.args.NatsStreamingTLSOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupAWSSQSOptions + * @memberof protos.args.NatsStreamingTLSOptions * @static - * @param {protos.opts.ITunnelGroupAWSSQSOptions} message TunnelGroupAWSSQSOptions message or plain object to encode + * @param {protos.args.INatsStreamingTLSOptions} message NatsStreamingTLSOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupAWSSQSOptions.encodeDelimited = function encodeDelimited(message, writer) { + NatsStreamingTLSOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupAWSSQSOptions message from the specified reader or buffer. + * Decodes a NatsStreamingTLSOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupAWSSQSOptions + * @memberof protos.args.NatsStreamingTLSOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupAWSSQSOptions} TunnelGroupAWSSQSOptions + * @returns {protos.args.NatsStreamingTLSOptions} NatsStreamingTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupAWSSQSOptions.decode = function decode(reader, length) { + NatsStreamingTLSOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupAWSSQSOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsStreamingTLSOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.AWSSQSConn.decode(reader, reader.uint32()); + message.tlsCaCert = reader.string(); break; case 2: - message.args = $root.protos.args.AWSSQSWriteArgs.decode(reader, reader.uint32()); + message.tlsClientCert = reader.string(); + break; + case 3: + message.tlsClientKey = reader.string(); + break; + case 4: + message.tlsSkipVerify = reader.bool(); + break; + case 5: + message.useTls = reader.bool(); break; default: reader.skipType(tag & 7); @@ -13720,127 +11514,144 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupAWSSQSOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsStreamingTLSOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupAWSSQSOptions + * @memberof protos.args.NatsStreamingTLSOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupAWSSQSOptions} TunnelGroupAWSSQSOptions + * @returns {protos.args.NatsStreamingTLSOptions} NatsStreamingTLSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupAWSSQSOptions.decodeDelimited = function decodeDelimited(reader) { + NatsStreamingTLSOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupAWSSQSOptions message. + * Verifies a NatsStreamingTLSOptions message. * @function verify - * @memberof protos.opts.TunnelGroupAWSSQSOptions + * @memberof protos.args.NatsStreamingTLSOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupAWSSQSOptions.verify = function verify(message) { + NatsStreamingTLSOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AWSSQSConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AWSSQSWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) + if (!$util.isString(message.tlsCaCert)) + return "tlsCaCert: string expected"; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + if (!$util.isString(message.tlsClientCert)) + return "tlsClientCert: string expected"; + if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) + if (!$util.isString(message.tlsClientKey)) + return "tlsClientKey: string expected"; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + if (typeof message.tlsSkipVerify !== "boolean") + return "tlsSkipVerify: boolean expected"; + if (message.useTls != null && message.hasOwnProperty("useTls")) + if (typeof message.useTls !== "boolean") + return "useTls: boolean expected"; return null; }; /** - * Creates a TunnelGroupAWSSQSOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsStreamingTLSOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupAWSSQSOptions + * @memberof protos.args.NatsStreamingTLSOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupAWSSQSOptions} TunnelGroupAWSSQSOptions + * @returns {protos.args.NatsStreamingTLSOptions} NatsStreamingTLSOptions */ - TunnelGroupAWSSQSOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupAWSSQSOptions) + NatsStreamingTLSOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NatsStreamingTLSOptions) return object; - var message = new $root.protos.opts.TunnelGroupAWSSQSOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupAWSSQSOptions._conn: object expected"); - message._conn = $root.protos.args.AWSSQSConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupAWSSQSOptions.args: object expected"); - message.args = $root.protos.args.AWSSQSWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.NatsStreamingTLSOptions(); + if (object.tlsCaCert != null) + message.tlsCaCert = String(object.tlsCaCert); + if (object.tlsClientCert != null) + message.tlsClientCert = String(object.tlsClientCert); + if (object.tlsClientKey != null) + message.tlsClientKey = String(object.tlsClientKey); + if (object.tlsSkipVerify != null) + message.tlsSkipVerify = Boolean(object.tlsSkipVerify); + if (object.useTls != null) + message.useTls = Boolean(object.useTls); return message; }; /** - * Creates a plain object from a TunnelGroupAWSSQSOptions message. Also converts values to other types if specified. + * Creates a plain object from a NatsStreamingTLSOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupAWSSQSOptions + * @memberof protos.args.NatsStreamingTLSOptions * @static - * @param {protos.opts.TunnelGroupAWSSQSOptions} message TunnelGroupAWSSQSOptions + * @param {protos.args.NatsStreamingTLSOptions} message NatsStreamingTLSOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupAWSSQSOptions.toObject = function toObject(message, options) { + NatsStreamingTLSOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.tlsCaCert = ""; + object.tlsClientCert = ""; + object.tlsClientKey = ""; + object.tlsSkipVerify = false; + object.useTls = false; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AWSSQSConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AWSSQSWriteArgs.toObject(message.args, options); + if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) + object.tlsCaCert = message.tlsCaCert; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + object.tlsClientCert = message.tlsClientCert; + if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) + object.tlsClientKey = message.tlsClientKey; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + object.tlsSkipVerify = message.tlsSkipVerify; + if (message.useTls != null && message.hasOwnProperty("useTls")) + object.useTls = message.useTls; return object; }; /** - * Converts this TunnelGroupAWSSQSOptions to JSON. + * Converts this NatsStreamingTLSOptions to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupAWSSQSOptions + * @memberof protos.args.NatsStreamingTLSOptions * @instance * @returns {Object.} JSON object */ - TunnelGroupAWSSQSOptions.prototype.toJSON = function toJSON() { + NatsStreamingTLSOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupAWSSQSOptions; + return NatsStreamingTLSOptions; })(); - opts.TunnelGroupAWSSNSOptions = (function() { + args.NatsStreamingConn = (function() { /** - * Properties of a TunnelGroupAWSSNSOptions. - * @memberof protos.opts - * @interface ITunnelGroupAWSSNSOptions - * @property {protos.args.IAWSSNSConn|null} [_conn] TunnelGroupAWSSNSOptions _conn - * @property {protos.args.IAWSSNSWriteArgs|null} [args] TunnelGroupAWSSNSOptions args + * Properties of a NatsStreamingConn. + * @memberof protos.args + * @interface INatsStreamingConn + * @property {string|null} [dsn] NatsStreamingConn dsn + * @property {string|null} [userCredentials] NatsStreamingConn userCredentials + * @property {string|null} [clusterId] NatsStreamingConn clusterId + * @property {string|null} [clientId] NatsStreamingConn clientId + * @property {protos.args.INatsStreamingTLSOptions|null} [tlsOptions] NatsStreamingConn tlsOptions */ /** - * Constructs a new TunnelGroupAWSSNSOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupAWSSNSOptions. - * @implements ITunnelGroupAWSSNSOptions + * Constructs a new NatsStreamingConn. + * @memberof protos.args + * @classdesc Represents a NatsStreamingConn. + * @implements INatsStreamingConn * @constructor - * @param {protos.opts.ITunnelGroupAWSSNSOptions=} [properties] Properties to set + * @param {protos.args.INatsStreamingConn=} [properties] Properties to set */ - function TunnelGroupAWSSNSOptions(properties) { + function NatsStreamingConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13848,88 +11659,127 @@ $root.protos = (function() { } /** - * TunnelGroupAWSSNSOptions _conn. - * @member {protos.args.IAWSSNSConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupAWSSNSOptions + * NatsStreamingConn dsn. + * @member {string} dsn + * @memberof protos.args.NatsStreamingConn * @instance */ - TunnelGroupAWSSNSOptions.prototype._conn = null; + NatsStreamingConn.prototype.dsn = ""; /** - * TunnelGroupAWSSNSOptions args. - * @member {protos.args.IAWSSNSWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupAWSSNSOptions + * NatsStreamingConn userCredentials. + * @member {string} userCredentials + * @memberof protos.args.NatsStreamingConn + * @instance + */ + NatsStreamingConn.prototype.userCredentials = ""; + + /** + * NatsStreamingConn clusterId. + * @member {string} clusterId + * @memberof protos.args.NatsStreamingConn + * @instance + */ + NatsStreamingConn.prototype.clusterId = ""; + + /** + * NatsStreamingConn clientId. + * @member {string} clientId + * @memberof protos.args.NatsStreamingConn + * @instance + */ + NatsStreamingConn.prototype.clientId = ""; + + /** + * NatsStreamingConn tlsOptions. + * @member {protos.args.INatsStreamingTLSOptions|null|undefined} tlsOptions + * @memberof protos.args.NatsStreamingConn * @instance */ - TunnelGroupAWSSNSOptions.prototype.args = null; + NatsStreamingConn.prototype.tlsOptions = null; /** - * Creates a new TunnelGroupAWSSNSOptions instance using the specified properties. + * Creates a new NatsStreamingConn instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupAWSSNSOptions + * @memberof protos.args.NatsStreamingConn * @static - * @param {protos.opts.ITunnelGroupAWSSNSOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupAWSSNSOptions} TunnelGroupAWSSNSOptions instance + * @param {protos.args.INatsStreamingConn=} [properties] Properties to set + * @returns {protos.args.NatsStreamingConn} NatsStreamingConn instance */ - TunnelGroupAWSSNSOptions.create = function create(properties) { - return new TunnelGroupAWSSNSOptions(properties); + NatsStreamingConn.create = function create(properties) { + return new NatsStreamingConn(properties); }; /** - * Encodes the specified TunnelGroupAWSSNSOptions message. Does not implicitly {@link protos.opts.TunnelGroupAWSSNSOptions.verify|verify} messages. + * Encodes the specified NatsStreamingConn message. Does not implicitly {@link protos.args.NatsStreamingConn.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupAWSSNSOptions + * @memberof protos.args.NatsStreamingConn * @static - * @param {protos.opts.ITunnelGroupAWSSNSOptions} message TunnelGroupAWSSNSOptions message or plain object to encode + * @param {protos.args.INatsStreamingConn} message NatsStreamingConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupAWSSNSOptions.encode = function encode(message, writer) { + NatsStreamingConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AWSSNSConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AWSSNSWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dsn != null && Object.hasOwnProperty.call(message, "dsn")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dsn); + if (message.userCredentials != null && Object.hasOwnProperty.call(message, "userCredentials")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.userCredentials); + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.clientId); + if (message.tlsOptions != null && Object.hasOwnProperty.call(message, "tlsOptions")) + $root.protos.args.NatsStreamingTLSOptions.encode(message.tlsOptions, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified TunnelGroupAWSSNSOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupAWSSNSOptions.verify|verify} messages. + * Encodes the specified NatsStreamingConn message, length delimited. Does not implicitly {@link protos.args.NatsStreamingConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupAWSSNSOptions + * @memberof protos.args.NatsStreamingConn * @static - * @param {protos.opts.ITunnelGroupAWSSNSOptions} message TunnelGroupAWSSNSOptions message or plain object to encode + * @param {protos.args.INatsStreamingConn} message NatsStreamingConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupAWSSNSOptions.encodeDelimited = function encodeDelimited(message, writer) { + NatsStreamingConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupAWSSNSOptions message from the specified reader or buffer. + * Decodes a NatsStreamingConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupAWSSNSOptions + * @memberof protos.args.NatsStreamingConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupAWSSNSOptions} TunnelGroupAWSSNSOptions + * @returns {protos.args.NatsStreamingConn} NatsStreamingConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupAWSSNSOptions.decode = function decode(reader, length) { + NatsStreamingConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupAWSSNSOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsStreamingConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.AWSSNSConn.decode(reader, reader.uint32()); + message.dsn = reader.string(); break; case 2: - message.args = $root.protos.args.AWSSNSWriteArgs.decode(reader, reader.uint32()); + message.userCredentials = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.clientId = reader.string(); + break; + case 5: + message.tlsOptions = $root.protos.args.NatsStreamingTLSOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13940,127 +11790,150 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupAWSSNSOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsStreamingConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupAWSSNSOptions + * @memberof protos.args.NatsStreamingConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupAWSSNSOptions} TunnelGroupAWSSNSOptions + * @returns {protos.args.NatsStreamingConn} NatsStreamingConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupAWSSNSOptions.decodeDelimited = function decodeDelimited(reader) { + NatsStreamingConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupAWSSNSOptions message. + * Verifies a NatsStreamingConn message. * @function verify - * @memberof protos.opts.TunnelGroupAWSSNSOptions + * @memberof protos.args.NatsStreamingConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupAWSSNSOptions.verify = function verify(message) { + NatsStreamingConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AWSSNSConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AWSSNSWriteArgs.verify(message.args); + if (message.dsn != null && message.hasOwnProperty("dsn")) + if (!$util.isString(message.dsn)) + return "dsn: string expected"; + if (message.userCredentials != null && message.hasOwnProperty("userCredentials")) + if (!$util.isString(message.userCredentials)) + return "userCredentials: string expected"; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (!$util.isString(message.clusterId)) + return "clusterId: string expected"; + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) { + var error = $root.protos.args.NatsStreamingTLSOptions.verify(message.tlsOptions); if (error) - return "args." + error; + return "tlsOptions." + error; } return null; }; /** - * Creates a TunnelGroupAWSSNSOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsStreamingConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupAWSSNSOptions + * @memberof protos.args.NatsStreamingConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupAWSSNSOptions} TunnelGroupAWSSNSOptions + * @returns {protos.args.NatsStreamingConn} NatsStreamingConn */ - TunnelGroupAWSSNSOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupAWSSNSOptions) + NatsStreamingConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NatsStreamingConn) return object; - var message = new $root.protos.opts.TunnelGroupAWSSNSOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupAWSSNSOptions._conn: object expected"); - message._conn = $root.protos.args.AWSSNSConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupAWSSNSOptions.args: object expected"); - message.args = $root.protos.args.AWSSNSWriteArgs.fromObject(object.args); + var message = new $root.protos.args.NatsStreamingConn(); + if (object.dsn != null) + message.dsn = String(object.dsn); + if (object.userCredentials != null) + message.userCredentials = String(object.userCredentials); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.clientId != null) + message.clientId = String(object.clientId); + if (object.tlsOptions != null) { + if (typeof object.tlsOptions !== "object") + throw TypeError(".protos.args.NatsStreamingConn.tlsOptions: object expected"); + message.tlsOptions = $root.protos.args.NatsStreamingTLSOptions.fromObject(object.tlsOptions); } return message; }; /** - * Creates a plain object from a TunnelGroupAWSSNSOptions message. Also converts values to other types if specified. + * Creates a plain object from a NatsStreamingConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupAWSSNSOptions + * @memberof protos.args.NatsStreamingConn * @static - * @param {protos.opts.TunnelGroupAWSSNSOptions} message TunnelGroupAWSSNSOptions + * @param {protos.args.NatsStreamingConn} message NatsStreamingConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupAWSSNSOptions.toObject = function toObject(message, options) { + NatsStreamingConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.dsn = ""; + object.userCredentials = ""; + object.clusterId = ""; + object.clientId = ""; + object.tlsOptions = null; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AWSSNSConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AWSSNSWriteArgs.toObject(message.args, options); + if (message.dsn != null && message.hasOwnProperty("dsn")) + object.dsn = message.dsn; + if (message.userCredentials != null && message.hasOwnProperty("userCredentials")) + object.userCredentials = message.userCredentials; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.clientId != null && message.hasOwnProperty("clientId")) + object.clientId = message.clientId; + if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) + object.tlsOptions = $root.protos.args.NatsStreamingTLSOptions.toObject(message.tlsOptions, options); return object; }; /** - * Converts this TunnelGroupAWSSNSOptions to JSON. + * Converts this NatsStreamingConn to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupAWSSNSOptions + * @memberof protos.args.NatsStreamingConn * @instance * @returns {Object.} JSON object */ - TunnelGroupAWSSNSOptions.prototype.toJSON = function toJSON() { + NatsStreamingConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupAWSSNSOptions; + return NatsStreamingConn; })(); - opts.TunnelGroupNatsOptions = (function() { + args.NatsStreamingReadArgs = (function() { /** - * Properties of a TunnelGroupNatsOptions. - * @memberof protos.opts - * @interface ITunnelGroupNatsOptions - * @property {protos.args.INatsConn|null} [_conn] TunnelGroupNatsOptions _conn - * @property {protos.args.INatsWriteArgs|null} [args] TunnelGroupNatsOptions args + * Properties of a NatsStreamingReadArgs. + * @memberof protos.args + * @interface INatsStreamingReadArgs + * @property {string|null} [channel] NatsStreamingReadArgs channel + * @property {string|null} [durableName] NatsStreamingReadArgs durableName + * @property {boolean|null} [readLastAvailable] NatsStreamingReadArgs readLastAvailable + * @property {number|null} [readSequenceNumber] NatsStreamingReadArgs readSequenceNumber + * @property {string|null} [readSince] NatsStreamingReadArgs readSince + * @property {boolean|null} [readAll] NatsStreamingReadArgs readAll */ /** - * Constructs a new TunnelGroupNatsOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupNatsOptions. - * @implements ITunnelGroupNatsOptions + * Constructs a new NatsStreamingReadArgs. + * @memberof protos.args + * @classdesc Represents a NatsStreamingReadArgs. + * @implements INatsStreamingReadArgs * @constructor - * @param {protos.opts.ITunnelGroupNatsOptions=} [properties] Properties to set + * @param {protos.args.INatsStreamingReadArgs=} [properties] Properties to set */ - function TunnelGroupNatsOptions(properties) { + function NatsStreamingReadArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14068,88 +11941,140 @@ $root.protos = (function() { } /** - * TunnelGroupNatsOptions _conn. - * @member {protos.args.INatsConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupNatsOptions + * NatsStreamingReadArgs channel. + * @member {string} channel + * @memberof protos.args.NatsStreamingReadArgs + * @instance + */ + NatsStreamingReadArgs.prototype.channel = ""; + + /** + * NatsStreamingReadArgs durableName. + * @member {string} durableName + * @memberof protos.args.NatsStreamingReadArgs * @instance */ - TunnelGroupNatsOptions.prototype._conn = null; + NatsStreamingReadArgs.prototype.durableName = ""; /** - * TunnelGroupNatsOptions args. - * @member {protos.args.INatsWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupNatsOptions + * NatsStreamingReadArgs readLastAvailable. + * @member {boolean} readLastAvailable + * @memberof protos.args.NatsStreamingReadArgs + * @instance + */ + NatsStreamingReadArgs.prototype.readLastAvailable = false; + + /** + * NatsStreamingReadArgs readSequenceNumber. + * @member {number} readSequenceNumber + * @memberof protos.args.NatsStreamingReadArgs + * @instance + */ + NatsStreamingReadArgs.prototype.readSequenceNumber = 0; + + /** + * NatsStreamingReadArgs readSince. + * @member {string} readSince + * @memberof protos.args.NatsStreamingReadArgs + * @instance + */ + NatsStreamingReadArgs.prototype.readSince = ""; + + /** + * NatsStreamingReadArgs readAll. + * @member {boolean} readAll + * @memberof protos.args.NatsStreamingReadArgs * @instance */ - TunnelGroupNatsOptions.prototype.args = null; + NatsStreamingReadArgs.prototype.readAll = false; /** - * Creates a new TunnelGroupNatsOptions instance using the specified properties. + * Creates a new NatsStreamingReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupNatsOptions + * @memberof protos.args.NatsStreamingReadArgs * @static - * @param {protos.opts.ITunnelGroupNatsOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupNatsOptions} TunnelGroupNatsOptions instance + * @param {protos.args.INatsStreamingReadArgs=} [properties] Properties to set + * @returns {protos.args.NatsStreamingReadArgs} NatsStreamingReadArgs instance */ - TunnelGroupNatsOptions.create = function create(properties) { - return new TunnelGroupNatsOptions(properties); + NatsStreamingReadArgs.create = function create(properties) { + return new NatsStreamingReadArgs(properties); }; /** - * Encodes the specified TunnelGroupNatsOptions message. Does not implicitly {@link protos.opts.TunnelGroupNatsOptions.verify|verify} messages. + * Encodes the specified NatsStreamingReadArgs message. Does not implicitly {@link protos.args.NatsStreamingReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupNatsOptions + * @memberof protos.args.NatsStreamingReadArgs * @static - * @param {protos.opts.ITunnelGroupNatsOptions} message TunnelGroupNatsOptions message or plain object to encode + * @param {protos.args.INatsStreamingReadArgs} message NatsStreamingReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupNatsOptions.encode = function encode(message, writer) { + NatsStreamingReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NatsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NatsWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel); + if (message.durableName != null && Object.hasOwnProperty.call(message, "durableName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.durableName); + if (message.readLastAvailable != null && Object.hasOwnProperty.call(message, "readLastAvailable")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.readLastAvailable); + if (message.readSequenceNumber != null && Object.hasOwnProperty.call(message, "readSequenceNumber")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.readSequenceNumber); + if (message.readSince != null && Object.hasOwnProperty.call(message, "readSince")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.readSince); + if (message.readAll != null && Object.hasOwnProperty.call(message, "readAll")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.readAll); return writer; }; /** - * Encodes the specified TunnelGroupNatsOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupNatsOptions.verify|verify} messages. + * Encodes the specified NatsStreamingReadArgs message, length delimited. Does not implicitly {@link protos.args.NatsStreamingReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupNatsOptions + * @memberof protos.args.NatsStreamingReadArgs * @static - * @param {protos.opts.ITunnelGroupNatsOptions} message TunnelGroupNatsOptions message or plain object to encode + * @param {protos.args.INatsStreamingReadArgs} message NatsStreamingReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupNatsOptions.encodeDelimited = function encodeDelimited(message, writer) { + NatsStreamingReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupNatsOptions message from the specified reader or buffer. + * Decodes a NatsStreamingReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupNatsOptions + * @memberof protos.args.NatsStreamingReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupNatsOptions} TunnelGroupNatsOptions + * @returns {protos.args.NatsStreamingReadArgs} NatsStreamingReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupNatsOptions.decode = function decode(reader, length) { + NatsStreamingReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupNatsOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsStreamingReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.NatsConn.decode(reader, reader.uint32()); + message.channel = reader.string(); break; case 2: - message.args = $root.protos.args.NatsWriteArgs.decode(reader, reader.uint32()); + message.durableName = reader.string(); + break; + case 3: + message.readLastAvailable = reader.bool(); + break; + case 4: + message.readSequenceNumber = reader.uint32(); + break; + case 5: + message.readSince = reader.string(); + break; + case 6: + message.readAll = reader.bool(); break; default: reader.skipType(tag & 7); @@ -14160,127 +12085,148 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupNatsOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsStreamingReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupNatsOptions + * @memberof protos.args.NatsStreamingReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupNatsOptions} TunnelGroupNatsOptions + * @returns {protos.args.NatsStreamingReadArgs} NatsStreamingReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupNatsOptions.decodeDelimited = function decodeDelimited(reader) { + NatsStreamingReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupNatsOptions message. + * Verifies a NatsStreamingReadArgs message. * @function verify - * @memberof protos.opts.TunnelGroupNatsOptions + * @memberof protos.args.NatsStreamingReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupNatsOptions.verify = function verify(message) { + NatsStreamingReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NatsConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NatsWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.channel != null && message.hasOwnProperty("channel")) + if (!$util.isString(message.channel)) + return "channel: string expected"; + if (message.durableName != null && message.hasOwnProperty("durableName")) + if (!$util.isString(message.durableName)) + return "durableName: string expected"; + if (message.readLastAvailable != null && message.hasOwnProperty("readLastAvailable")) + if (typeof message.readLastAvailable !== "boolean") + return "readLastAvailable: boolean expected"; + if (message.readSequenceNumber != null && message.hasOwnProperty("readSequenceNumber")) + if (!$util.isInteger(message.readSequenceNumber)) + return "readSequenceNumber: integer expected"; + if (message.readSince != null && message.hasOwnProperty("readSince")) + if (!$util.isString(message.readSince)) + return "readSince: string expected"; + if (message.readAll != null && message.hasOwnProperty("readAll")) + if (typeof message.readAll !== "boolean") + return "readAll: boolean expected"; return null; }; /** - * Creates a TunnelGroupNatsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsStreamingReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupNatsOptions + * @memberof protos.args.NatsStreamingReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupNatsOptions} TunnelGroupNatsOptions + * @returns {protos.args.NatsStreamingReadArgs} NatsStreamingReadArgs */ - TunnelGroupNatsOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupNatsOptions) + NatsStreamingReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NatsStreamingReadArgs) return object; - var message = new $root.protos.opts.TunnelGroupNatsOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupNatsOptions._conn: object expected"); - message._conn = $root.protos.args.NatsConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupNatsOptions.args: object expected"); - message.args = $root.protos.args.NatsWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.NatsStreamingReadArgs(); + if (object.channel != null) + message.channel = String(object.channel); + if (object.durableName != null) + message.durableName = String(object.durableName); + if (object.readLastAvailable != null) + message.readLastAvailable = Boolean(object.readLastAvailable); + if (object.readSequenceNumber != null) + message.readSequenceNumber = object.readSequenceNumber >>> 0; + if (object.readSince != null) + message.readSince = String(object.readSince); + if (object.readAll != null) + message.readAll = Boolean(object.readAll); return message; }; /** - * Creates a plain object from a TunnelGroupNatsOptions message. Also converts values to other types if specified. + * Creates a plain object from a NatsStreamingReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupNatsOptions + * @memberof protos.args.NatsStreamingReadArgs * @static - * @param {protos.opts.TunnelGroupNatsOptions} message TunnelGroupNatsOptions + * @param {protos.args.NatsStreamingReadArgs} message NatsStreamingReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupNatsOptions.toObject = function toObject(message, options) { + NatsStreamingReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.channel = ""; + object.durableName = ""; + object.readLastAvailable = false; + object.readSequenceNumber = 0; + object.readSince = ""; + object.readAll = false; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NatsConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NatsWriteArgs.toObject(message.args, options); + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = message.channel; + if (message.durableName != null && message.hasOwnProperty("durableName")) + object.durableName = message.durableName; + if (message.readLastAvailable != null && message.hasOwnProperty("readLastAvailable")) + object.readLastAvailable = message.readLastAvailable; + if (message.readSequenceNumber != null && message.hasOwnProperty("readSequenceNumber")) + object.readSequenceNumber = message.readSequenceNumber; + if (message.readSince != null && message.hasOwnProperty("readSince")) + object.readSince = message.readSince; + if (message.readAll != null && message.hasOwnProperty("readAll")) + object.readAll = message.readAll; return object; }; /** - * Converts this TunnelGroupNatsOptions to JSON. + * Converts this NatsStreamingReadArgs to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupNatsOptions + * @memberof protos.args.NatsStreamingReadArgs * @instance * @returns {Object.} JSON object */ - TunnelGroupNatsOptions.prototype.toJSON = function toJSON() { + NatsStreamingReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupNatsOptions; + return NatsStreamingReadArgs; })(); - opts.TunnelGroupNatsJetstreamOptions = (function() { + args.NatsStreamingWriteArgs = (function() { /** - * Properties of a TunnelGroupNatsJetstreamOptions. - * @memberof protos.opts - * @interface ITunnelGroupNatsJetstreamOptions - * @property {protos.args.INatsJetstreamConn|null} [_conn] TunnelGroupNatsJetstreamOptions _conn - * @property {protos.args.INatsJetstreamWriteArgs|null} [args] TunnelGroupNatsJetstreamOptions args + * Properties of a NatsStreamingWriteArgs. + * @memberof protos.args + * @interface INatsStreamingWriteArgs + * @property {string|null} [channel] NatsStreamingWriteArgs channel */ /** - * Constructs a new TunnelGroupNatsJetstreamOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupNatsJetstreamOptions. - * @implements ITunnelGroupNatsJetstreamOptions + * Constructs a new NatsStreamingWriteArgs. + * @memberof protos.args + * @classdesc Represents a NatsStreamingWriteArgs. + * @implements INatsStreamingWriteArgs * @constructor - * @param {protos.opts.ITunnelGroupNatsJetstreamOptions=} [properties] Properties to set + * @param {protos.args.INatsStreamingWriteArgs=} [properties] Properties to set */ - function TunnelGroupNatsJetstreamOptions(properties) { + function NatsStreamingWriteArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14288,88 +12234,75 @@ $root.protos = (function() { } /** - * TunnelGroupNatsJetstreamOptions _conn. - * @member {protos.args.INatsJetstreamConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupNatsJetstreamOptions - * @instance - */ - TunnelGroupNatsJetstreamOptions.prototype._conn = null; - - /** - * TunnelGroupNatsJetstreamOptions args. - * @member {protos.args.INatsJetstreamWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupNatsJetstreamOptions + * NatsStreamingWriteArgs channel. + * @member {string} channel + * @memberof protos.args.NatsStreamingWriteArgs * @instance */ - TunnelGroupNatsJetstreamOptions.prototype.args = null; + NatsStreamingWriteArgs.prototype.channel = ""; /** - * Creates a new TunnelGroupNatsJetstreamOptions instance using the specified properties. + * Creates a new NatsStreamingWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupNatsJetstreamOptions + * @memberof protos.args.NatsStreamingWriteArgs * @static - * @param {protos.opts.ITunnelGroupNatsJetstreamOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupNatsJetstreamOptions} TunnelGroupNatsJetstreamOptions instance + * @param {protos.args.INatsStreamingWriteArgs=} [properties] Properties to set + * @returns {protos.args.NatsStreamingWriteArgs} NatsStreamingWriteArgs instance */ - TunnelGroupNatsJetstreamOptions.create = function create(properties) { - return new TunnelGroupNatsJetstreamOptions(properties); + NatsStreamingWriteArgs.create = function create(properties) { + return new NatsStreamingWriteArgs(properties); }; /** - * Encodes the specified TunnelGroupNatsJetstreamOptions message. Does not implicitly {@link protos.opts.TunnelGroupNatsJetstreamOptions.verify|verify} messages. + * Encodes the specified NatsStreamingWriteArgs message. Does not implicitly {@link protos.args.NatsStreamingWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupNatsJetstreamOptions + * @memberof protos.args.NatsStreamingWriteArgs * @static - * @param {protos.opts.ITunnelGroupNatsJetstreamOptions} message TunnelGroupNatsJetstreamOptions message or plain object to encode + * @param {protos.args.INatsStreamingWriteArgs} message NatsStreamingWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupNatsJetstreamOptions.encode = function encode(message, writer) { + NatsStreamingWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NatsJetstreamConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NatsJetstreamWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel); return writer; }; /** - * Encodes the specified TunnelGroupNatsJetstreamOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupNatsJetstreamOptions.verify|verify} messages. + * Encodes the specified NatsStreamingWriteArgs message, length delimited. Does not implicitly {@link protos.args.NatsStreamingWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupNatsJetstreamOptions + * @memberof protos.args.NatsStreamingWriteArgs * @static - * @param {protos.opts.ITunnelGroupNatsJetstreamOptions} message TunnelGroupNatsJetstreamOptions message or plain object to encode + * @param {protos.args.INatsStreamingWriteArgs} message NatsStreamingWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupNatsJetstreamOptions.encodeDelimited = function encodeDelimited(message, writer) { + NatsStreamingWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupNatsJetstreamOptions message from the specified reader or buffer. + * Decodes a NatsStreamingWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupNatsJetstreamOptions + * @memberof protos.args.NatsStreamingWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupNatsJetstreamOptions} TunnelGroupNatsJetstreamOptions + * @returns {protos.args.NatsStreamingWriteArgs} NatsStreamingWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupNatsJetstreamOptions.decode = function decode(reader, length) { + NatsStreamingWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupNatsJetstreamOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsStreamingWriteArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.NatsJetstreamConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.NatsJetstreamWriteArgs.decode(reader, reader.uint32()); + message.channel = reader.string(); break; default: reader.skipType(tag & 7); @@ -14380,127 +12313,115 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupNatsJetstreamOptions message from the specified reader or buffer, length delimited. + * Decodes a NatsStreamingWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupNatsJetstreamOptions + * @memberof protos.args.NatsStreamingWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupNatsJetstreamOptions} TunnelGroupNatsJetstreamOptions + * @returns {protos.args.NatsStreamingWriteArgs} NatsStreamingWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupNatsJetstreamOptions.decodeDelimited = function decodeDelimited(reader) { + NatsStreamingWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupNatsJetstreamOptions message. + * Verifies a NatsStreamingWriteArgs message. * @function verify - * @memberof protos.opts.TunnelGroupNatsJetstreamOptions + * @memberof protos.args.NatsStreamingWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupNatsJetstreamOptions.verify = function verify(message) { + NatsStreamingWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NatsJetstreamConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NatsJetstreamWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.channel != null && message.hasOwnProperty("channel")) + if (!$util.isString(message.channel)) + return "channel: string expected"; return null; }; /** - * Creates a TunnelGroupNatsJetstreamOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NatsStreamingWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupNatsJetstreamOptions + * @memberof protos.args.NatsStreamingWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupNatsJetstreamOptions} TunnelGroupNatsJetstreamOptions + * @returns {protos.args.NatsStreamingWriteArgs} NatsStreamingWriteArgs */ - TunnelGroupNatsJetstreamOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupNatsJetstreamOptions) + NatsStreamingWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NatsStreamingWriteArgs) return object; - var message = new $root.protos.opts.TunnelGroupNatsJetstreamOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupNatsJetstreamOptions._conn: object expected"); - message._conn = $root.protos.args.NatsJetstreamConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupNatsJetstreamOptions.args: object expected"); - message.args = $root.protos.args.NatsJetstreamWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.NatsStreamingWriteArgs(); + if (object.channel != null) + message.channel = String(object.channel); return message; }; /** - * Creates a plain object from a TunnelGroupNatsJetstreamOptions message. Also converts values to other types if specified. + * Creates a plain object from a NatsStreamingWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupNatsJetstreamOptions + * @memberof protos.args.NatsStreamingWriteArgs * @static - * @param {protos.opts.TunnelGroupNatsJetstreamOptions} message TunnelGroupNatsJetstreamOptions + * @param {protos.args.NatsStreamingWriteArgs} message NatsStreamingWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupNatsJetstreamOptions.toObject = function toObject(message, options) { + NatsStreamingWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NatsJetstreamConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NatsJetstreamWriteArgs.toObject(message.args, options); + if (options.defaults) + object.channel = ""; + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = message.channel; return object; }; /** - * Converts this TunnelGroupNatsJetstreamOptions to JSON. + * Converts this NatsStreamingWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupNatsJetstreamOptions + * @memberof protos.args.NatsStreamingWriteArgs * @instance * @returns {Object.} JSON object */ - TunnelGroupNatsJetstreamOptions.prototype.toJSON = function toJSON() { + NatsStreamingWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupNatsJetstreamOptions; + return NatsStreamingWriteArgs; })(); - opts.TunnelGroupNatsStreamingOptions = (function() { + args.NSQConn = (function() { /** - * Properties of a TunnelGroupNatsStreamingOptions. - * @memberof protos.opts - * @interface ITunnelGroupNatsStreamingOptions - * @property {protos.args.INatsStreamingConn|null} [_conn] TunnelGroupNatsStreamingOptions _conn - * @property {protos.args.INatsStreamingWriteArgs|null} [args] TunnelGroupNatsStreamingOptions args + * Properties of a NSQConn. + * @memberof protos.args + * @interface INSQConn + * @property {string|null} [nsqdAddress] NSQConn nsqdAddress + * @property {string|null} [lookupdAddress] NSQConn lookupdAddress + * @property {boolean|null} [useTls] NSQConn useTls + * @property {boolean|null} [tlsSkipVerify] NSQConn tlsSkipVerify + * @property {string|null} [tlsCaCert] NSQConn tlsCaCert + * @property {string|null} [tlsClientCert] NSQConn tlsClientCert + * @property {string|null} [tlsClientKey] NSQConn tlsClientKey + * @property {string|null} [authSecret] NSQConn authSecret + * @property {string|null} [clientId] NSQConn clientId */ /** - * Constructs a new TunnelGroupNatsStreamingOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupNatsStreamingOptions. - * @implements ITunnelGroupNatsStreamingOptions + * Constructs a new NSQConn. + * @memberof protos.args + * @classdesc Represents a NSQConn. + * @implements INSQConn * @constructor - * @param {protos.opts.ITunnelGroupNatsStreamingOptions=} [properties] Properties to set + * @param {protos.args.INSQConn=} [properties] Properties to set */ - function TunnelGroupNatsStreamingOptions(properties) { + function NSQConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14508,88 +12429,179 @@ $root.protos = (function() { } /** - * TunnelGroupNatsStreamingOptions _conn. - * @member {protos.args.INatsStreamingConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupNatsStreamingOptions + * NSQConn nsqdAddress. + * @member {string} nsqdAddress + * @memberof protos.args.NSQConn * @instance */ - TunnelGroupNatsStreamingOptions.prototype._conn = null; + NSQConn.prototype.nsqdAddress = ""; /** - * TunnelGroupNatsStreamingOptions args. - * @member {protos.args.INatsStreamingWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupNatsStreamingOptions + * NSQConn lookupdAddress. + * @member {string} lookupdAddress + * @memberof protos.args.NSQConn + * @instance + */ + NSQConn.prototype.lookupdAddress = ""; + + /** + * NSQConn useTls. + * @member {boolean} useTls + * @memberof protos.args.NSQConn + * @instance + */ + NSQConn.prototype.useTls = false; + + /** + * NSQConn tlsSkipVerify. + * @member {boolean} tlsSkipVerify + * @memberof protos.args.NSQConn + * @instance + */ + NSQConn.prototype.tlsSkipVerify = false; + + /** + * NSQConn tlsCaCert. + * @member {string} tlsCaCert + * @memberof protos.args.NSQConn + * @instance + */ + NSQConn.prototype.tlsCaCert = ""; + + /** + * NSQConn tlsClientCert. + * @member {string} tlsClientCert + * @memberof protos.args.NSQConn * @instance */ - TunnelGroupNatsStreamingOptions.prototype.args = null; + NSQConn.prototype.tlsClientCert = ""; + + /** + * NSQConn tlsClientKey. + * @member {string} tlsClientKey + * @memberof protos.args.NSQConn + * @instance + */ + NSQConn.prototype.tlsClientKey = ""; + + /** + * NSQConn authSecret. + * @member {string} authSecret + * @memberof protos.args.NSQConn + * @instance + */ + NSQConn.prototype.authSecret = ""; + + /** + * NSQConn clientId. + * @member {string} clientId + * @memberof protos.args.NSQConn + * @instance + */ + NSQConn.prototype.clientId = ""; /** - * Creates a new TunnelGroupNatsStreamingOptions instance using the specified properties. + * Creates a new NSQConn instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupNatsStreamingOptions + * @memberof protos.args.NSQConn * @static - * @param {protos.opts.ITunnelGroupNatsStreamingOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupNatsStreamingOptions} TunnelGroupNatsStreamingOptions instance + * @param {protos.args.INSQConn=} [properties] Properties to set + * @returns {protos.args.NSQConn} NSQConn instance */ - TunnelGroupNatsStreamingOptions.create = function create(properties) { - return new TunnelGroupNatsStreamingOptions(properties); + NSQConn.create = function create(properties) { + return new NSQConn(properties); }; /** - * Encodes the specified TunnelGroupNatsStreamingOptions message. Does not implicitly {@link protos.opts.TunnelGroupNatsStreamingOptions.verify|verify} messages. + * Encodes the specified NSQConn message. Does not implicitly {@link protos.args.NSQConn.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupNatsStreamingOptions + * @memberof protos.args.NSQConn * @static - * @param {protos.opts.ITunnelGroupNatsStreamingOptions} message TunnelGroupNatsStreamingOptions message or plain object to encode + * @param {protos.args.INSQConn} message NSQConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupNatsStreamingOptions.encode = function encode(message, writer) { + NSQConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NatsStreamingConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NatsStreamingWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nsqdAddress != null && Object.hasOwnProperty.call(message, "nsqdAddress")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.nsqdAddress); + if (message.lookupdAddress != null && Object.hasOwnProperty.call(message, "lookupdAddress")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.lookupdAddress); + if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useTls); + if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.tlsSkipVerify); + if (message.tlsCaCert != null && Object.hasOwnProperty.call(message, "tlsCaCert")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.tlsCaCert); + if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.tlsClientCert); + if (message.tlsClientKey != null && Object.hasOwnProperty.call(message, "tlsClientKey")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.tlsClientKey); + if (message.authSecret != null && Object.hasOwnProperty.call(message, "authSecret")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.authSecret); + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.clientId); return writer; }; /** - * Encodes the specified TunnelGroupNatsStreamingOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupNatsStreamingOptions.verify|verify} messages. + * Encodes the specified NSQConn message, length delimited. Does not implicitly {@link protos.args.NSQConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupNatsStreamingOptions + * @memberof protos.args.NSQConn * @static - * @param {protos.opts.ITunnelGroupNatsStreamingOptions} message TunnelGroupNatsStreamingOptions message or plain object to encode + * @param {protos.args.INSQConn} message NSQConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupNatsStreamingOptions.encodeDelimited = function encodeDelimited(message, writer) { + NSQConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupNatsStreamingOptions message from the specified reader or buffer. + * Decodes a NSQConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupNatsStreamingOptions + * @memberof protos.args.NSQConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupNatsStreamingOptions} TunnelGroupNatsStreamingOptions + * @returns {protos.args.NSQConn} NSQConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupNatsStreamingOptions.decode = function decode(reader, length) { + NSQConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupNatsStreamingOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NSQConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.NatsStreamingConn.decode(reader, reader.uint32()); + message.nsqdAddress = reader.string(); break; case 2: - message.args = $root.protos.args.NatsStreamingWriteArgs.decode(reader, reader.uint32()); + message.lookupdAddress = reader.string(); + break; + case 3: + message.useTls = reader.bool(); + break; + case 4: + message.tlsSkipVerify = reader.bool(); + break; + case 5: + message.tlsCaCert = reader.string(); + break; + case 6: + message.tlsClientCert = reader.string(); + break; + case 7: + message.tlsClientKey = reader.string(); + break; + case 8: + message.authSecret = reader.string(); + break; + case 9: + message.clientId = reader.string(); break; default: reader.skipType(tag & 7); @@ -14600,127 +12612,173 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupNatsStreamingOptions message from the specified reader or buffer, length delimited. + * Decodes a NSQConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupNatsStreamingOptions + * @memberof protos.args.NSQConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupNatsStreamingOptions} TunnelGroupNatsStreamingOptions + * @returns {protos.args.NSQConn} NSQConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupNatsStreamingOptions.decodeDelimited = function decodeDelimited(reader) { + NSQConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupNatsStreamingOptions message. + * Verifies a NSQConn message. * @function verify - * @memberof protos.opts.TunnelGroupNatsStreamingOptions + * @memberof protos.args.NSQConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupNatsStreamingOptions.verify = function verify(message) { + NSQConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NatsStreamingConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NatsStreamingWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.nsqdAddress != null && message.hasOwnProperty("nsqdAddress")) + if (!$util.isString(message.nsqdAddress)) + return "nsqdAddress: string expected"; + if (message.lookupdAddress != null && message.hasOwnProperty("lookupdAddress")) + if (!$util.isString(message.lookupdAddress)) + return "lookupdAddress: string expected"; + if (message.useTls != null && message.hasOwnProperty("useTls")) + if (typeof message.useTls !== "boolean") + return "useTls: boolean expected"; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + if (typeof message.tlsSkipVerify !== "boolean") + return "tlsSkipVerify: boolean expected"; + if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) + if (!$util.isString(message.tlsCaCert)) + return "tlsCaCert: string expected"; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + if (!$util.isString(message.tlsClientCert)) + return "tlsClientCert: string expected"; + if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) + if (!$util.isString(message.tlsClientKey)) + return "tlsClientKey: string expected"; + if (message.authSecret != null && message.hasOwnProperty("authSecret")) + if (!$util.isString(message.authSecret)) + return "authSecret: string expected"; + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; return null; }; /** - * Creates a TunnelGroupNatsStreamingOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NSQConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupNatsStreamingOptions + * @memberof protos.args.NSQConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupNatsStreamingOptions} TunnelGroupNatsStreamingOptions + * @returns {protos.args.NSQConn} NSQConn */ - TunnelGroupNatsStreamingOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupNatsStreamingOptions) + NSQConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NSQConn) return object; - var message = new $root.protos.opts.TunnelGroupNatsStreamingOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupNatsStreamingOptions._conn: object expected"); - message._conn = $root.protos.args.NatsStreamingConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupNatsStreamingOptions.args: object expected"); - message.args = $root.protos.args.NatsStreamingWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.NSQConn(); + if (object.nsqdAddress != null) + message.nsqdAddress = String(object.nsqdAddress); + if (object.lookupdAddress != null) + message.lookupdAddress = String(object.lookupdAddress); + if (object.useTls != null) + message.useTls = Boolean(object.useTls); + if (object.tlsSkipVerify != null) + message.tlsSkipVerify = Boolean(object.tlsSkipVerify); + if (object.tlsCaCert != null) + message.tlsCaCert = String(object.tlsCaCert); + if (object.tlsClientCert != null) + message.tlsClientCert = String(object.tlsClientCert); + if (object.tlsClientKey != null) + message.tlsClientKey = String(object.tlsClientKey); + if (object.authSecret != null) + message.authSecret = String(object.authSecret); + if (object.clientId != null) + message.clientId = String(object.clientId); return message; }; /** - * Creates a plain object from a TunnelGroupNatsStreamingOptions message. Also converts values to other types if specified. + * Creates a plain object from a NSQConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupNatsStreamingOptions + * @memberof protos.args.NSQConn * @static - * @param {protos.opts.TunnelGroupNatsStreamingOptions} message TunnelGroupNatsStreamingOptions + * @param {protos.args.NSQConn} message NSQConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupNatsStreamingOptions.toObject = function toObject(message, options) { + NSQConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.nsqdAddress = ""; + object.lookupdAddress = ""; + object.useTls = false; + object.tlsSkipVerify = false; + object.tlsCaCert = ""; + object.tlsClientCert = ""; + object.tlsClientKey = ""; + object.authSecret = ""; + object.clientId = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NatsStreamingConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NatsStreamingWriteArgs.toObject(message.args, options); + if (message.nsqdAddress != null && message.hasOwnProperty("nsqdAddress")) + object.nsqdAddress = message.nsqdAddress; + if (message.lookupdAddress != null && message.hasOwnProperty("lookupdAddress")) + object.lookupdAddress = message.lookupdAddress; + if (message.useTls != null && message.hasOwnProperty("useTls")) + object.useTls = message.useTls; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + object.tlsSkipVerify = message.tlsSkipVerify; + if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) + object.tlsCaCert = message.tlsCaCert; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + object.tlsClientCert = message.tlsClientCert; + if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) + object.tlsClientKey = message.tlsClientKey; + if (message.authSecret != null && message.hasOwnProperty("authSecret")) + object.authSecret = message.authSecret; + if (message.clientId != null && message.hasOwnProperty("clientId")) + object.clientId = message.clientId; return object; }; /** - * Converts this TunnelGroupNatsStreamingOptions to JSON. + * Converts this NSQConn to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupNatsStreamingOptions + * @memberof protos.args.NSQConn * @instance * @returns {Object.} JSON object */ - TunnelGroupNatsStreamingOptions.prototype.toJSON = function toJSON() { + NSQConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupNatsStreamingOptions; + return NSQConn; })(); - opts.TunnelGroupNSQOptions = (function() { + args.NSQReadArgs = (function() { /** - * Properties of a TunnelGroupNSQOptions. - * @memberof protos.opts - * @interface ITunnelGroupNSQOptions - * @property {protos.args.INSQConn|null} [_conn] TunnelGroupNSQOptions _conn - * @property {protos.args.INSQWriteArgs|null} [args] TunnelGroupNSQOptions args + * Properties of a NSQReadArgs. + * @memberof protos.args + * @interface INSQReadArgs + * @property {string|null} [topic] NSQReadArgs topic + * @property {string|null} [channel] NSQReadArgs channel */ /** - * Constructs a new TunnelGroupNSQOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupNSQOptions. - * @implements ITunnelGroupNSQOptions + * Constructs a new NSQReadArgs. + * @memberof protos.args + * @classdesc Represents a NSQReadArgs. + * @implements INSQReadArgs * @constructor - * @param {protos.opts.ITunnelGroupNSQOptions=} [properties] Properties to set + * @param {protos.args.INSQReadArgs=} [properties] Properties to set */ - function TunnelGroupNSQOptions(properties) { + function NSQReadArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14728,88 +12786,88 @@ $root.protos = (function() { } /** - * TunnelGroupNSQOptions _conn. - * @member {protos.args.INSQConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupNSQOptions + * NSQReadArgs topic. + * @member {string} topic + * @memberof protos.args.NSQReadArgs * @instance */ - TunnelGroupNSQOptions.prototype._conn = null; + NSQReadArgs.prototype.topic = ""; /** - * TunnelGroupNSQOptions args. - * @member {protos.args.INSQWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupNSQOptions + * NSQReadArgs channel. + * @member {string} channel + * @memberof protos.args.NSQReadArgs * @instance */ - TunnelGroupNSQOptions.prototype.args = null; + NSQReadArgs.prototype.channel = ""; /** - * Creates a new TunnelGroupNSQOptions instance using the specified properties. + * Creates a new NSQReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupNSQOptions + * @memberof protos.args.NSQReadArgs * @static - * @param {protos.opts.ITunnelGroupNSQOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupNSQOptions} TunnelGroupNSQOptions instance + * @param {protos.args.INSQReadArgs=} [properties] Properties to set + * @returns {protos.args.NSQReadArgs} NSQReadArgs instance */ - TunnelGroupNSQOptions.create = function create(properties) { - return new TunnelGroupNSQOptions(properties); + NSQReadArgs.create = function create(properties) { + return new NSQReadArgs(properties); }; /** - * Encodes the specified TunnelGroupNSQOptions message. Does not implicitly {@link protos.opts.TunnelGroupNSQOptions.verify|verify} messages. + * Encodes the specified NSQReadArgs message. Does not implicitly {@link protos.args.NSQReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupNSQOptions + * @memberof protos.args.NSQReadArgs * @static - * @param {protos.opts.ITunnelGroupNSQOptions} message TunnelGroupNSQOptions message or plain object to encode + * @param {protos.args.INSQReadArgs} message NSQReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupNSQOptions.encode = function encode(message, writer) { + NSQReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NSQConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NSQWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel); return writer; }; /** - * Encodes the specified TunnelGroupNSQOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupNSQOptions.verify|verify} messages. + * Encodes the specified NSQReadArgs message, length delimited. Does not implicitly {@link protos.args.NSQReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupNSQOptions + * @memberof protos.args.NSQReadArgs * @static - * @param {protos.opts.ITunnelGroupNSQOptions} message TunnelGroupNSQOptions message or plain object to encode + * @param {protos.args.INSQReadArgs} message NSQReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupNSQOptions.encodeDelimited = function encodeDelimited(message, writer) { + NSQReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupNSQOptions message from the specified reader or buffer. + * Decodes a NSQReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupNSQOptions + * @memberof protos.args.NSQReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupNSQOptions} TunnelGroupNSQOptions + * @returns {protos.args.NSQReadArgs} NSQReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupNSQOptions.decode = function decode(reader, length) { + NSQReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupNSQOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NSQReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.NSQConn.decode(reader, reader.uint32()); + message.topic = reader.string(); break; case 2: - message.args = $root.protos.args.NSQWriteArgs.decode(reader, reader.uint32()); + message.channel = reader.string(); break; default: reader.skipType(tag & 7); @@ -14820,127 +12878,116 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupNSQOptions message from the specified reader or buffer, length delimited. + * Decodes a NSQReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupNSQOptions + * @memberof protos.args.NSQReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupNSQOptions} TunnelGroupNSQOptions + * @returns {protos.args.NSQReadArgs} NSQReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupNSQOptions.decodeDelimited = function decodeDelimited(reader) { + NSQReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupNSQOptions message. + * Verifies a NSQReadArgs message. * @function verify - * @memberof protos.opts.TunnelGroupNSQOptions + * @memberof protos.args.NSQReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupNSQOptions.verify = function verify(message) { + NSQReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NSQConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NSQWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.topic != null && message.hasOwnProperty("topic")) + if (!$util.isString(message.topic)) + return "topic: string expected"; + if (message.channel != null && message.hasOwnProperty("channel")) + if (!$util.isString(message.channel)) + return "channel: string expected"; return null; }; /** - * Creates a TunnelGroupNSQOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NSQReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupNSQOptions + * @memberof protos.args.NSQReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupNSQOptions} TunnelGroupNSQOptions + * @returns {protos.args.NSQReadArgs} NSQReadArgs */ - TunnelGroupNSQOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupNSQOptions) + NSQReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NSQReadArgs) return object; - var message = new $root.protos.opts.TunnelGroupNSQOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupNSQOptions._conn: object expected"); - message._conn = $root.protos.args.NSQConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupNSQOptions.args: object expected"); - message.args = $root.protos.args.NSQWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.NSQReadArgs(); + if (object.topic != null) + message.topic = String(object.topic); + if (object.channel != null) + message.channel = String(object.channel); return message; }; /** - * Creates a plain object from a TunnelGroupNSQOptions message. Also converts values to other types if specified. + * Creates a plain object from a NSQReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupNSQOptions + * @memberof protos.args.NSQReadArgs * @static - * @param {protos.opts.TunnelGroupNSQOptions} message TunnelGroupNSQOptions + * @param {protos.args.NSQReadArgs} message NSQReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupNSQOptions.toObject = function toObject(message, options) { + NSQReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.topic = ""; + object.channel = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NSQConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NSQWriteArgs.toObject(message.args, options); + if (message.topic != null && message.hasOwnProperty("topic")) + object.topic = message.topic; + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = message.channel; return object; }; /** - * Converts this TunnelGroupNSQOptions to JSON. + * Converts this NSQReadArgs to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupNSQOptions + * @memberof protos.args.NSQReadArgs * @instance * @returns {Object.} JSON object */ - TunnelGroupNSQOptions.prototype.toJSON = function toJSON() { + NSQReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupNSQOptions; + return NSQReadArgs; })(); - opts.TunnelGroupRabbitOptions = (function() { + args.NSQWriteArgs = (function() { /** - * Properties of a TunnelGroupRabbitOptions. - * @memberof protos.opts - * @interface ITunnelGroupRabbitOptions - * @property {protos.args.IRabbitConn|null} [_conn] TunnelGroupRabbitOptions _conn - * @property {protos.args.IRabbitWriteArgs|null} [args] TunnelGroupRabbitOptions args + * Properties of a NSQWriteArgs. + * @memberof protos.args + * @interface INSQWriteArgs + * @property {string|null} [topic] NSQWriteArgs topic */ /** - * Constructs a new TunnelGroupRabbitOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupRabbitOptions. - * @implements ITunnelGroupRabbitOptions + * Constructs a new NSQWriteArgs. + * @memberof protos.args + * @classdesc Represents a NSQWriteArgs. + * @implements INSQWriteArgs * @constructor - * @param {protos.opts.ITunnelGroupRabbitOptions=} [properties] Properties to set + * @param {protos.args.INSQWriteArgs=} [properties] Properties to set */ - function TunnelGroupRabbitOptions(properties) { + function NSQWriteArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14948,88 +12995,75 @@ $root.protos = (function() { } /** - * TunnelGroupRabbitOptions _conn. - * @member {protos.args.IRabbitConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupRabbitOptions - * @instance - */ - TunnelGroupRabbitOptions.prototype._conn = null; - - /** - * TunnelGroupRabbitOptions args. - * @member {protos.args.IRabbitWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupRabbitOptions + * NSQWriteArgs topic. + * @member {string} topic + * @memberof protos.args.NSQWriteArgs * @instance */ - TunnelGroupRabbitOptions.prototype.args = null; + NSQWriteArgs.prototype.topic = ""; /** - * Creates a new TunnelGroupRabbitOptions instance using the specified properties. + * Creates a new NSQWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupRabbitOptions + * @memberof protos.args.NSQWriteArgs * @static - * @param {protos.opts.ITunnelGroupRabbitOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupRabbitOptions} TunnelGroupRabbitOptions instance + * @param {protos.args.INSQWriteArgs=} [properties] Properties to set + * @returns {protos.args.NSQWriteArgs} NSQWriteArgs instance */ - TunnelGroupRabbitOptions.create = function create(properties) { - return new TunnelGroupRabbitOptions(properties); + NSQWriteArgs.create = function create(properties) { + return new NSQWriteArgs(properties); }; /** - * Encodes the specified TunnelGroupRabbitOptions message. Does not implicitly {@link protos.opts.TunnelGroupRabbitOptions.verify|verify} messages. + * Encodes the specified NSQWriteArgs message. Does not implicitly {@link protos.args.NSQWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupRabbitOptions + * @memberof protos.args.NSQWriteArgs * @static - * @param {protos.opts.ITunnelGroupRabbitOptions} message TunnelGroupRabbitOptions message or plain object to encode + * @param {protos.args.INSQWriteArgs} message NSQWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupRabbitOptions.encode = function encode(message, writer) { + NSQWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RabbitConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RabbitWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); return writer; }; /** - * Encodes the specified TunnelGroupRabbitOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupRabbitOptions.verify|verify} messages. + * Encodes the specified NSQWriteArgs message, length delimited. Does not implicitly {@link protos.args.NSQWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupRabbitOptions + * @memberof protos.args.NSQWriteArgs * @static - * @param {protos.opts.ITunnelGroupRabbitOptions} message TunnelGroupRabbitOptions message or plain object to encode + * @param {protos.args.INSQWriteArgs} message NSQWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupRabbitOptions.encodeDelimited = function encodeDelimited(message, writer) { + NSQWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupRabbitOptions message from the specified reader or buffer. + * Decodes a NSQWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupRabbitOptions + * @memberof protos.args.NSQWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupRabbitOptions} TunnelGroupRabbitOptions + * @returns {protos.args.NSQWriteArgs} NSQWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupRabbitOptions.decode = function decode(reader, length) { + NSQWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupRabbitOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NSQWriteArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.RabbitConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.RabbitWriteArgs.decode(reader, reader.uint32()); + message.topic = reader.string(); break; default: reader.skipType(tag & 7); @@ -15040,127 +13074,113 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupRabbitOptions message from the specified reader or buffer, length delimited. + * Decodes a NSQWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupRabbitOptions + * @memberof protos.args.NSQWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupRabbitOptions} TunnelGroupRabbitOptions + * @returns {protos.args.NSQWriteArgs} NSQWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupRabbitOptions.decodeDelimited = function decodeDelimited(reader) { + NSQWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupRabbitOptions message. + * Verifies a NSQWriteArgs message. * @function verify - * @memberof protos.opts.TunnelGroupRabbitOptions + * @memberof protos.args.NSQWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupRabbitOptions.verify = function verify(message) { + NSQWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RabbitConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RabbitWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.topic != null && message.hasOwnProperty("topic")) + if (!$util.isString(message.topic)) + return "topic: string expected"; return null; }; /** - * Creates a TunnelGroupRabbitOptions message from a plain object. Also converts values to their respective internal types. + * Creates a NSQWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupRabbitOptions + * @memberof protos.args.NSQWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupRabbitOptions} TunnelGroupRabbitOptions + * @returns {protos.args.NSQWriteArgs} NSQWriteArgs */ - TunnelGroupRabbitOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupRabbitOptions) + NSQWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.NSQWriteArgs) return object; - var message = new $root.protos.opts.TunnelGroupRabbitOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupRabbitOptions._conn: object expected"); - message._conn = $root.protos.args.RabbitConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupRabbitOptions.args: object expected"); - message.args = $root.protos.args.RabbitWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.NSQWriteArgs(); + if (object.topic != null) + message.topic = String(object.topic); return message; }; /** - * Creates a plain object from a TunnelGroupRabbitOptions message. Also converts values to other types if specified. + * Creates a plain object from a NSQWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupRabbitOptions + * @memberof protos.args.NSQWriteArgs * @static - * @param {protos.opts.TunnelGroupRabbitOptions} message TunnelGroupRabbitOptions + * @param {protos.args.NSQWriteArgs} message NSQWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupRabbitOptions.toObject = function toObject(message, options) { + NSQWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RabbitConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RabbitWriteArgs.toObject(message.args, options); + if (options.defaults) + object.topic = ""; + if (message.topic != null && message.hasOwnProperty("topic")) + object.topic = message.topic; return object; }; /** - * Converts this TunnelGroupRabbitOptions to JSON. + * Converts this NSQWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupRabbitOptions + * @memberof protos.args.NSQWriteArgs * @instance * @returns {Object.} JSON object */ - TunnelGroupRabbitOptions.prototype.toJSON = function toJSON() { + NSQWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupRabbitOptions; + return NSQWriteArgs; })(); - opts.TunnelGroupRabbitStreamsOptions = (function() { + args.PostgresConn = (function() { /** - * Properties of a TunnelGroupRabbitStreamsOptions. - * @memberof protos.opts - * @interface ITunnelGroupRabbitStreamsOptions - * @property {protos.args.IRabbitStreamsConn|null} [_conn] TunnelGroupRabbitStreamsOptions _conn - * @property {protos.args.IRabbitStreamsWriteArgs|null} [args] TunnelGroupRabbitStreamsOptions args + * Properties of a PostgresConn. + * @memberof protos.args + * @interface IPostgresConn + * @property {string|null} [address] PostgresConn address + * @property {number|null} [port] PostgresConn port + * @property {string|null} [username] PostgresConn username + * @property {string|null} [password] PostgresConn password + * @property {string|null} [database] PostgresConn database + * @property {boolean|null} [useTls] PostgresConn useTls + * @property {boolean|null} [tlsSkipVerify] PostgresConn tlsSkipVerify */ /** - * Constructs a new TunnelGroupRabbitStreamsOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupRabbitStreamsOptions. - * @implements ITunnelGroupRabbitStreamsOptions + * Constructs a new PostgresConn. + * @memberof protos.args + * @classdesc Represents a PostgresConn. + * @implements IPostgresConn * @constructor - * @param {protos.opts.ITunnelGroupRabbitStreamsOptions=} [properties] Properties to set + * @param {protos.args.IPostgresConn=} [properties] Properties to set */ - function TunnelGroupRabbitStreamsOptions(properties) { + function PostgresConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15168,88 +13188,153 @@ $root.protos = (function() { } /** - * TunnelGroupRabbitStreamsOptions _conn. - * @member {protos.args.IRabbitStreamsConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupRabbitStreamsOptions + * PostgresConn address. + * @member {string} address + * @memberof protos.args.PostgresConn * @instance */ - TunnelGroupRabbitStreamsOptions.prototype._conn = null; + PostgresConn.prototype.address = ""; /** - * TunnelGroupRabbitStreamsOptions args. - * @member {protos.args.IRabbitStreamsWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupRabbitStreamsOptions + * PostgresConn port. + * @member {number} port + * @memberof protos.args.PostgresConn + * @instance + */ + PostgresConn.prototype.port = 0; + + /** + * PostgresConn username. + * @member {string} username + * @memberof protos.args.PostgresConn + * @instance + */ + PostgresConn.prototype.username = ""; + + /** + * PostgresConn password. + * @member {string} password + * @memberof protos.args.PostgresConn + * @instance + */ + PostgresConn.prototype.password = ""; + + /** + * PostgresConn database. + * @member {string} database + * @memberof protos.args.PostgresConn + * @instance + */ + PostgresConn.prototype.database = ""; + + /** + * PostgresConn useTls. + * @member {boolean} useTls + * @memberof protos.args.PostgresConn + * @instance + */ + PostgresConn.prototype.useTls = false; + + /** + * PostgresConn tlsSkipVerify. + * @member {boolean} tlsSkipVerify + * @memberof protos.args.PostgresConn * @instance */ - TunnelGroupRabbitStreamsOptions.prototype.args = null; + PostgresConn.prototype.tlsSkipVerify = false; /** - * Creates a new TunnelGroupRabbitStreamsOptions instance using the specified properties. + * Creates a new PostgresConn instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupRabbitStreamsOptions + * @memberof protos.args.PostgresConn * @static - * @param {protos.opts.ITunnelGroupRabbitStreamsOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupRabbitStreamsOptions} TunnelGroupRabbitStreamsOptions instance + * @param {protos.args.IPostgresConn=} [properties] Properties to set + * @returns {protos.args.PostgresConn} PostgresConn instance */ - TunnelGroupRabbitStreamsOptions.create = function create(properties) { - return new TunnelGroupRabbitStreamsOptions(properties); + PostgresConn.create = function create(properties) { + return new PostgresConn(properties); }; /** - * Encodes the specified TunnelGroupRabbitStreamsOptions message. Does not implicitly {@link protos.opts.TunnelGroupRabbitStreamsOptions.verify|verify} messages. + * Encodes the specified PostgresConn message. Does not implicitly {@link protos.args.PostgresConn.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupRabbitStreamsOptions + * @memberof protos.args.PostgresConn * @static - * @param {protos.opts.ITunnelGroupRabbitStreamsOptions} message TunnelGroupRabbitStreamsOptions message or plain object to encode + * @param {protos.args.IPostgresConn} message PostgresConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupRabbitStreamsOptions.encode = function encode(message, writer) { + PostgresConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RabbitStreamsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RabbitStreamsWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + if (message.port != null && Object.hasOwnProperty.call(message, "port")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.port); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.username); + if (message.password != null && Object.hasOwnProperty.call(message, "password")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.password); + if (message.database != null && Object.hasOwnProperty.call(message, "database")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.database); + if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.useTls); + if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.tlsSkipVerify); return writer; }; /** - * Encodes the specified TunnelGroupRabbitStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupRabbitStreamsOptions.verify|verify} messages. + * Encodes the specified PostgresConn message, length delimited. Does not implicitly {@link protos.args.PostgresConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupRabbitStreamsOptions + * @memberof protos.args.PostgresConn * @static - * @param {protos.opts.ITunnelGroupRabbitStreamsOptions} message TunnelGroupRabbitStreamsOptions message or plain object to encode + * @param {protos.args.IPostgresConn} message PostgresConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupRabbitStreamsOptions.encodeDelimited = function encodeDelimited(message, writer) { + PostgresConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupRabbitStreamsOptions message from the specified reader or buffer. + * Decodes a PostgresConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupRabbitStreamsOptions + * @memberof protos.args.PostgresConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupRabbitStreamsOptions} TunnelGroupRabbitStreamsOptions + * @returns {protos.args.PostgresConn} PostgresConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupRabbitStreamsOptions.decode = function decode(reader, length) { + PostgresConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupRabbitStreamsOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.PostgresConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.RabbitStreamsConn.decode(reader, reader.uint32()); + message.address = reader.string(); break; case 2: - message.args = $root.protos.args.RabbitStreamsWriteArgs.decode(reader, reader.uint32()); + message.port = reader.uint32(); + break; + case 3: + message.username = reader.string(); + break; + case 4: + message.password = reader.string(); + break; + case 5: + message.database = reader.string(); + break; + case 6: + message.useTls = reader.bool(); + break; + case 7: + message.tlsSkipVerify = reader.bool(); break; default: reader.skipType(tag & 7); @@ -15260,127 +13345,157 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupRabbitStreamsOptions message from the specified reader or buffer, length delimited. + * Decodes a PostgresConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupRabbitStreamsOptions + * @memberof protos.args.PostgresConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupRabbitStreamsOptions} TunnelGroupRabbitStreamsOptions + * @returns {protos.args.PostgresConn} PostgresConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupRabbitStreamsOptions.decodeDelimited = function decodeDelimited(reader) { + PostgresConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupRabbitStreamsOptions message. + * Verifies a PostgresConn message. * @function verify - * @memberof protos.opts.TunnelGroupRabbitStreamsOptions + * @memberof protos.args.PostgresConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupRabbitStreamsOptions.verify = function verify(message) { + PostgresConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RabbitStreamsConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RabbitStreamsWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.port != null && message.hasOwnProperty("port")) + if (!$util.isInteger(message.port)) + return "port: integer expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.password != null && message.hasOwnProperty("password")) + if (!$util.isString(message.password)) + return "password: string expected"; + if (message.database != null && message.hasOwnProperty("database")) + if (!$util.isString(message.database)) + return "database: string expected"; + if (message.useTls != null && message.hasOwnProperty("useTls")) + if (typeof message.useTls !== "boolean") + return "useTls: boolean expected"; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + if (typeof message.tlsSkipVerify !== "boolean") + return "tlsSkipVerify: boolean expected"; return null; }; /** - * Creates a TunnelGroupRabbitStreamsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a PostgresConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupRabbitStreamsOptions + * @memberof protos.args.PostgresConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupRabbitStreamsOptions} TunnelGroupRabbitStreamsOptions + * @returns {protos.args.PostgresConn} PostgresConn */ - TunnelGroupRabbitStreamsOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupRabbitStreamsOptions) + PostgresConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.PostgresConn) return object; - var message = new $root.protos.opts.TunnelGroupRabbitStreamsOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupRabbitStreamsOptions._conn: object expected"); - message._conn = $root.protos.args.RabbitStreamsConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupRabbitStreamsOptions.args: object expected"); - message.args = $root.protos.args.RabbitStreamsWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.PostgresConn(); + if (object.address != null) + message.address = String(object.address); + if (object.port != null) + message.port = object.port >>> 0; + if (object.username != null) + message.username = String(object.username); + if (object.password != null) + message.password = String(object.password); + if (object.database != null) + message.database = String(object.database); + if (object.useTls != null) + message.useTls = Boolean(object.useTls); + if (object.tlsSkipVerify != null) + message.tlsSkipVerify = Boolean(object.tlsSkipVerify); return message; }; /** - * Creates a plain object from a TunnelGroupRabbitStreamsOptions message. Also converts values to other types if specified. + * Creates a plain object from a PostgresConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupRabbitStreamsOptions + * @memberof protos.args.PostgresConn * @static - * @param {protos.opts.TunnelGroupRabbitStreamsOptions} message TunnelGroupRabbitStreamsOptions + * @param {protos.args.PostgresConn} message PostgresConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupRabbitStreamsOptions.toObject = function toObject(message, options) { + PostgresConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.address = ""; + object.port = 0; + object.username = ""; + object.password = ""; + object.database = ""; + object.useTls = false; + object.tlsSkipVerify = false; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RabbitStreamsConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RabbitStreamsWriteArgs.toObject(message.args, options); + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.port != null && message.hasOwnProperty("port")) + object.port = message.port; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.password != null && message.hasOwnProperty("password")) + object.password = message.password; + if (message.database != null && message.hasOwnProperty("database")) + object.database = message.database; + if (message.useTls != null && message.hasOwnProperty("useTls")) + object.useTls = message.useTls; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + object.tlsSkipVerify = message.tlsSkipVerify; return object; }; /** - * Converts this TunnelGroupRabbitStreamsOptions to JSON. + * Converts this PostgresConn to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupRabbitStreamsOptions + * @memberof protos.args.PostgresConn * @instance * @returns {Object.} JSON object */ - TunnelGroupRabbitStreamsOptions.prototype.toJSON = function toJSON() { + PostgresConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupRabbitStreamsOptions; + return PostgresConn; })(); - opts.TunnelGroupRedisPubSubOptions = (function() { + args.PostgresReadArgs = (function() { /** - * Properties of a TunnelGroupRedisPubSubOptions. - * @memberof protos.opts - * @interface ITunnelGroupRedisPubSubOptions - * @property {protos.args.IRedisPubSubConn|null} [_conn] TunnelGroupRedisPubSubOptions _conn - * @property {protos.args.IRedisPubSubWriteArgs|null} [args] TunnelGroupRedisPubSubOptions args + * Properties of a PostgresReadArgs. + * @memberof protos.args + * @interface IPostgresReadArgs + * @property {string|null} [replicationSlotName] PostgresReadArgs replicationSlotName + * @property {string|null} [publisherName] PostgresReadArgs publisherName */ /** - * Constructs a new TunnelGroupRedisPubSubOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupRedisPubSubOptions. - * @implements ITunnelGroupRedisPubSubOptions + * Constructs a new PostgresReadArgs. + * @memberof protos.args + * @classdesc Represents a PostgresReadArgs. + * @implements IPostgresReadArgs * @constructor - * @param {protos.opts.ITunnelGroupRedisPubSubOptions=} [properties] Properties to set + * @param {protos.args.IPostgresReadArgs=} [properties] Properties to set */ - function TunnelGroupRedisPubSubOptions(properties) { + function PostgresReadArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15388,88 +13503,88 @@ $root.protos = (function() { } /** - * TunnelGroupRedisPubSubOptions _conn. - * @member {protos.args.IRedisPubSubConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupRedisPubSubOptions + * PostgresReadArgs replicationSlotName. + * @member {string} replicationSlotName + * @memberof protos.args.PostgresReadArgs * @instance */ - TunnelGroupRedisPubSubOptions.prototype._conn = null; + PostgresReadArgs.prototype.replicationSlotName = ""; /** - * TunnelGroupRedisPubSubOptions args. - * @member {protos.args.IRedisPubSubWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupRedisPubSubOptions + * PostgresReadArgs publisherName. + * @member {string} publisherName + * @memberof protos.args.PostgresReadArgs * @instance */ - TunnelGroupRedisPubSubOptions.prototype.args = null; + PostgresReadArgs.prototype.publisherName = ""; /** - * Creates a new TunnelGroupRedisPubSubOptions instance using the specified properties. + * Creates a new PostgresReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupRedisPubSubOptions + * @memberof protos.args.PostgresReadArgs * @static - * @param {protos.opts.ITunnelGroupRedisPubSubOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupRedisPubSubOptions} TunnelGroupRedisPubSubOptions instance + * @param {protos.args.IPostgresReadArgs=} [properties] Properties to set + * @returns {protos.args.PostgresReadArgs} PostgresReadArgs instance */ - TunnelGroupRedisPubSubOptions.create = function create(properties) { - return new TunnelGroupRedisPubSubOptions(properties); + PostgresReadArgs.create = function create(properties) { + return new PostgresReadArgs(properties); }; /** - * Encodes the specified TunnelGroupRedisPubSubOptions message. Does not implicitly {@link protos.opts.TunnelGroupRedisPubSubOptions.verify|verify} messages. + * Encodes the specified PostgresReadArgs message. Does not implicitly {@link protos.args.PostgresReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupRedisPubSubOptions + * @memberof protos.args.PostgresReadArgs * @static - * @param {protos.opts.ITunnelGroupRedisPubSubOptions} message TunnelGroupRedisPubSubOptions message or plain object to encode + * @param {protos.args.IPostgresReadArgs} message PostgresReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupRedisPubSubOptions.encode = function encode(message, writer) { + PostgresReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RedisPubSubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RedisPubSubWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.replicationSlotName != null && Object.hasOwnProperty.call(message, "replicationSlotName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.replicationSlotName); + if (message.publisherName != null && Object.hasOwnProperty.call(message, "publisherName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.publisherName); return writer; }; /** - * Encodes the specified TunnelGroupRedisPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupRedisPubSubOptions.verify|verify} messages. + * Encodes the specified PostgresReadArgs message, length delimited. Does not implicitly {@link protos.args.PostgresReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupRedisPubSubOptions + * @memberof protos.args.PostgresReadArgs * @static - * @param {protos.opts.ITunnelGroupRedisPubSubOptions} message TunnelGroupRedisPubSubOptions message or plain object to encode + * @param {protos.args.IPostgresReadArgs} message PostgresReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupRedisPubSubOptions.encodeDelimited = function encodeDelimited(message, writer) { + PostgresReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupRedisPubSubOptions message from the specified reader or buffer. + * Decodes a PostgresReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupRedisPubSubOptions + * @memberof protos.args.PostgresReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupRedisPubSubOptions} TunnelGroupRedisPubSubOptions + * @returns {protos.args.PostgresReadArgs} PostgresReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupRedisPubSubOptions.decode = function decode(reader, length) { + PostgresReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupRedisPubSubOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.PostgresReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.RedisPubSubConn.decode(reader, reader.uint32()); - break; case 2: - message.args = $root.protos.args.RedisPubSubWriteArgs.decode(reader, reader.uint32()); + message.replicationSlotName = reader.string(); + break; + case 3: + message.publisherName = reader.string(); break; default: reader.skipType(tag & 7); @@ -15480,127 +13595,154 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupRedisPubSubOptions message from the specified reader or buffer, length delimited. + * Decodes a PostgresReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupRedisPubSubOptions + * @memberof protos.args.PostgresReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupRedisPubSubOptions} TunnelGroupRedisPubSubOptions + * @returns {protos.args.PostgresReadArgs} PostgresReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupRedisPubSubOptions.decodeDelimited = function decodeDelimited(reader) { + PostgresReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupRedisPubSubOptions message. + * Verifies a PostgresReadArgs message. * @function verify - * @memberof protos.opts.TunnelGroupRedisPubSubOptions + * @memberof protos.args.PostgresReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupRedisPubSubOptions.verify = function verify(message) { + PostgresReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RedisPubSubConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RedisPubSubWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.replicationSlotName != null && message.hasOwnProperty("replicationSlotName")) + if (!$util.isString(message.replicationSlotName)) + return "replicationSlotName: string expected"; + if (message.publisherName != null && message.hasOwnProperty("publisherName")) + if (!$util.isString(message.publisherName)) + return "publisherName: string expected"; return null; }; /** - * Creates a TunnelGroupRedisPubSubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a PostgresReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupRedisPubSubOptions + * @memberof protos.args.PostgresReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupRedisPubSubOptions} TunnelGroupRedisPubSubOptions + * @returns {protos.args.PostgresReadArgs} PostgresReadArgs */ - TunnelGroupRedisPubSubOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupRedisPubSubOptions) + PostgresReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.PostgresReadArgs) return object; - var message = new $root.protos.opts.TunnelGroupRedisPubSubOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupRedisPubSubOptions._conn: object expected"); - message._conn = $root.protos.args.RedisPubSubConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupRedisPubSubOptions.args: object expected"); - message.args = $root.protos.args.RedisPubSubWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.PostgresReadArgs(); + if (object.replicationSlotName != null) + message.replicationSlotName = String(object.replicationSlotName); + if (object.publisherName != null) + message.publisherName = String(object.publisherName); return message; }; /** - * Creates a plain object from a TunnelGroupRedisPubSubOptions message. Also converts values to other types if specified. + * Creates a plain object from a PostgresReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupRedisPubSubOptions + * @memberof protos.args.PostgresReadArgs * @static - * @param {protos.opts.TunnelGroupRedisPubSubOptions} message TunnelGroupRedisPubSubOptions + * @param {protos.args.PostgresReadArgs} message PostgresReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupRedisPubSubOptions.toObject = function toObject(message, options) { + PostgresReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.replicationSlotName = ""; + object.publisherName = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RedisPubSubConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RedisPubSubWriteArgs.toObject(message.args, options); + if (message.replicationSlotName != null && message.hasOwnProperty("replicationSlotName")) + object.replicationSlotName = message.replicationSlotName; + if (message.publisherName != null && message.hasOwnProperty("publisherName")) + object.publisherName = message.publisherName; return object; }; /** - * Converts this TunnelGroupRedisPubSubOptions to JSON. + * Converts this PostgresReadArgs to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupRedisPubSubOptions + * @memberof protos.args.PostgresReadArgs * @instance * @returns {Object.} JSON object */ - TunnelGroupRedisPubSubOptions.prototype.toJSON = function toJSON() { + PostgresReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupRedisPubSubOptions; + return PostgresReadArgs; + })(); + + /** + * SubscriptionType enum. + * @name protos.args.SubscriptionType + * @enum {number} + * @property {number} SHARED=0 SHARED value + * @property {number} EXCLUSIVE=1 EXCLUSIVE value + * @property {number} FAILOVER=2 FAILOVER value + * @property {number} KEYSHARED=3 KEYSHARED value + */ + args.SubscriptionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SHARED"] = 0; + values[valuesById[1] = "EXCLUSIVE"] = 1; + values[valuesById[2] = "FAILOVER"] = 2; + values[valuesById[3] = "KEYSHARED"] = 3; + return values; + })(); + + /** + * SubscriptionInitialPosition enum. + * @name protos.args.SubscriptionInitialPosition + * @enum {number} + * @property {number} PULSAR_LATEST=0 PULSAR_LATEST value + * @property {number} PULSAR_EARLIEST=1 PULSAR_EARLIEST value + */ + args.SubscriptionInitialPosition = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PULSAR_LATEST"] = 0; + values[valuesById[1] = "PULSAR_EARLIEST"] = 1; + return values; })(); - opts.TunnelGroupRedisStreamsOptions = (function() { + args.PulsarConn = (function() { /** - * Properties of a TunnelGroupRedisStreamsOptions. - * @memberof protos.opts - * @interface ITunnelGroupRedisStreamsOptions - * @property {protos.args.IRedisStreamsConn|null} [_conn] TunnelGroupRedisStreamsOptions _conn - * @property {protos.args.IRedisStreamsWriteArgs|null} [args] TunnelGroupRedisStreamsOptions args + * Properties of a PulsarConn. + * @memberof protos.args + * @interface IPulsarConn + * @property {string|null} [dsn] PulsarConn dsn + * @property {number|null} [connectTimeoutSeconds] PulsarConn connectTimeoutSeconds + * @property {boolean|null} [tlsSkipVerify] PulsarConn tlsSkipVerify + * @property {string|null} [tlsClientCert] PulsarConn tlsClientCert + * @property {string|null} [tlsClientKey] PulsarConn tlsClientKey + * @property {string|null} [token] PulsarConn token + * @property {string|null} [listenerName] PulsarConn listenerName */ /** - * Constructs a new TunnelGroupRedisStreamsOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupRedisStreamsOptions. - * @implements ITunnelGroupRedisStreamsOptions + * Constructs a new PulsarConn. + * @memberof protos.args + * @classdesc Represents a PulsarConn. + * @implements IPulsarConn * @constructor - * @param {protos.opts.ITunnelGroupRedisStreamsOptions=} [properties] Properties to set + * @param {protos.args.IPulsarConn=} [properties] Properties to set */ - function TunnelGroupRedisStreamsOptions(properties) { + function PulsarConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15608,88 +13750,153 @@ $root.protos = (function() { } /** - * TunnelGroupRedisStreamsOptions _conn. - * @member {protos.args.IRedisStreamsConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupRedisStreamsOptions + * PulsarConn dsn. + * @member {string} dsn + * @memberof protos.args.PulsarConn * @instance */ - TunnelGroupRedisStreamsOptions.prototype._conn = null; + PulsarConn.prototype.dsn = ""; /** - * TunnelGroupRedisStreamsOptions args. - * @member {protos.args.IRedisStreamsWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupRedisStreamsOptions + * PulsarConn connectTimeoutSeconds. + * @member {number} connectTimeoutSeconds + * @memberof protos.args.PulsarConn + * @instance + */ + PulsarConn.prototype.connectTimeoutSeconds = 0; + + /** + * PulsarConn tlsSkipVerify. + * @member {boolean} tlsSkipVerify + * @memberof protos.args.PulsarConn + * @instance + */ + PulsarConn.prototype.tlsSkipVerify = false; + + /** + * PulsarConn tlsClientCert. + * @member {string} tlsClientCert + * @memberof protos.args.PulsarConn + * @instance + */ + PulsarConn.prototype.tlsClientCert = ""; + + /** + * PulsarConn tlsClientKey. + * @member {string} tlsClientKey + * @memberof protos.args.PulsarConn + * @instance + */ + PulsarConn.prototype.tlsClientKey = ""; + + /** + * PulsarConn token. + * @member {string} token + * @memberof protos.args.PulsarConn + * @instance + */ + PulsarConn.prototype.token = ""; + + /** + * PulsarConn listenerName. + * @member {string} listenerName + * @memberof protos.args.PulsarConn * @instance */ - TunnelGroupRedisStreamsOptions.prototype.args = null; + PulsarConn.prototype.listenerName = ""; /** - * Creates a new TunnelGroupRedisStreamsOptions instance using the specified properties. + * Creates a new PulsarConn instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupRedisStreamsOptions + * @memberof protos.args.PulsarConn * @static - * @param {protos.opts.ITunnelGroupRedisStreamsOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupRedisStreamsOptions} TunnelGroupRedisStreamsOptions instance + * @param {protos.args.IPulsarConn=} [properties] Properties to set + * @returns {protos.args.PulsarConn} PulsarConn instance */ - TunnelGroupRedisStreamsOptions.create = function create(properties) { - return new TunnelGroupRedisStreamsOptions(properties); + PulsarConn.create = function create(properties) { + return new PulsarConn(properties); }; /** - * Encodes the specified TunnelGroupRedisStreamsOptions message. Does not implicitly {@link protos.opts.TunnelGroupRedisStreamsOptions.verify|verify} messages. + * Encodes the specified PulsarConn message. Does not implicitly {@link protos.args.PulsarConn.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupRedisStreamsOptions + * @memberof protos.args.PulsarConn * @static - * @param {protos.opts.ITunnelGroupRedisStreamsOptions} message TunnelGroupRedisStreamsOptions message or plain object to encode + * @param {protos.args.IPulsarConn} message PulsarConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupRedisStreamsOptions.encode = function encode(message, writer) { + PulsarConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RedisStreamsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RedisStreamsWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + if (message.dsn != null && Object.hasOwnProperty.call(message, "dsn")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dsn); + if (message.connectTimeoutSeconds != null && Object.hasOwnProperty.call(message, "connectTimeoutSeconds")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.connectTimeoutSeconds); + if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.tlsSkipVerify); + if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.tlsClientCert); + if (message.tlsClientKey != null && Object.hasOwnProperty.call(message, "tlsClientKey")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.tlsClientKey); + if (message.token != null && Object.hasOwnProperty.call(message, "token")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.token); + if (message.listenerName != null && Object.hasOwnProperty.call(message, "listenerName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.listenerName); + return writer; + }; /** - * Encodes the specified TunnelGroupRedisStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupRedisStreamsOptions.verify|verify} messages. + * Encodes the specified PulsarConn message, length delimited. Does not implicitly {@link protos.args.PulsarConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupRedisStreamsOptions + * @memberof protos.args.PulsarConn * @static - * @param {protos.opts.ITunnelGroupRedisStreamsOptions} message TunnelGroupRedisStreamsOptions message or plain object to encode + * @param {protos.args.IPulsarConn} message PulsarConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupRedisStreamsOptions.encodeDelimited = function encodeDelimited(message, writer) { + PulsarConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupRedisStreamsOptions message from the specified reader or buffer. + * Decodes a PulsarConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupRedisStreamsOptions + * @memberof protos.args.PulsarConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupRedisStreamsOptions} TunnelGroupRedisStreamsOptions + * @returns {protos.args.PulsarConn} PulsarConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupRedisStreamsOptions.decode = function decode(reader, length) { + PulsarConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupRedisStreamsOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.PulsarConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.RedisStreamsConn.decode(reader, reader.uint32()); + message.dsn = reader.string(); break; case 2: - message.args = $root.protos.args.RedisStreamsWriteArgs.decode(reader, reader.uint32()); + message.connectTimeoutSeconds = reader.uint32(); + break; + case 3: + message.tlsSkipVerify = reader.bool(); + break; + case 4: + message.tlsClientCert = reader.string(); + break; + case 5: + message.tlsClientKey = reader.string(); + break; + case 6: + message.token = reader.string(); + break; + case 7: + message.listenerName = reader.string(); break; default: reader.skipType(tag & 7); @@ -15700,127 +13907,159 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupRedisStreamsOptions message from the specified reader or buffer, length delimited. + * Decodes a PulsarConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupRedisStreamsOptions + * @memberof protos.args.PulsarConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupRedisStreamsOptions} TunnelGroupRedisStreamsOptions + * @returns {protos.args.PulsarConn} PulsarConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupRedisStreamsOptions.decodeDelimited = function decodeDelimited(reader) { + PulsarConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupRedisStreamsOptions message. + * Verifies a PulsarConn message. * @function verify - * @memberof protos.opts.TunnelGroupRedisStreamsOptions + * @memberof protos.args.PulsarConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupRedisStreamsOptions.verify = function verify(message) { + PulsarConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RedisStreamsConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RedisStreamsWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.dsn != null && message.hasOwnProperty("dsn")) + if (!$util.isString(message.dsn)) + return "dsn: string expected"; + if (message.connectTimeoutSeconds != null && message.hasOwnProperty("connectTimeoutSeconds")) + if (!$util.isInteger(message.connectTimeoutSeconds)) + return "connectTimeoutSeconds: integer expected"; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + if (typeof message.tlsSkipVerify !== "boolean") + return "tlsSkipVerify: boolean expected"; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + if (!$util.isString(message.tlsClientCert)) + return "tlsClientCert: string expected"; + if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) + if (!$util.isString(message.tlsClientKey)) + return "tlsClientKey: string expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.listenerName != null && message.hasOwnProperty("listenerName")) + if (!$util.isString(message.listenerName)) + return "listenerName: string expected"; return null; }; /** - * Creates a TunnelGroupRedisStreamsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a PulsarConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupRedisStreamsOptions + * @memberof protos.args.PulsarConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupRedisStreamsOptions} TunnelGroupRedisStreamsOptions + * @returns {protos.args.PulsarConn} PulsarConn */ - TunnelGroupRedisStreamsOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupRedisStreamsOptions) + PulsarConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.PulsarConn) return object; - var message = new $root.protos.opts.TunnelGroupRedisStreamsOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupRedisStreamsOptions._conn: object expected"); - message._conn = $root.protos.args.RedisStreamsConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupRedisStreamsOptions.args: object expected"); - message.args = $root.protos.args.RedisStreamsWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.PulsarConn(); + if (object.dsn != null) + message.dsn = String(object.dsn); + if (object.connectTimeoutSeconds != null) + message.connectTimeoutSeconds = object.connectTimeoutSeconds >>> 0; + if (object.tlsSkipVerify != null) + message.tlsSkipVerify = Boolean(object.tlsSkipVerify); + if (object.tlsClientCert != null) + message.tlsClientCert = String(object.tlsClientCert); + if (object.tlsClientKey != null) + message.tlsClientKey = String(object.tlsClientKey); + if (object.token != null) + message.token = String(object.token); + if (object.listenerName != null) + message.listenerName = String(object.listenerName); return message; }; /** - * Creates a plain object from a TunnelGroupRedisStreamsOptions message. Also converts values to other types if specified. + * Creates a plain object from a PulsarConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupRedisStreamsOptions + * @memberof protos.args.PulsarConn * @static - * @param {protos.opts.TunnelGroupRedisStreamsOptions} message TunnelGroupRedisStreamsOptions + * @param {protos.args.PulsarConn} message PulsarConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupRedisStreamsOptions.toObject = function toObject(message, options) { + PulsarConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.dsn = ""; + object.connectTimeoutSeconds = 0; + object.tlsSkipVerify = false; + object.tlsClientCert = ""; + object.tlsClientKey = ""; + object.token = ""; + object.listenerName = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RedisStreamsConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RedisStreamsWriteArgs.toObject(message.args, options); + if (message.dsn != null && message.hasOwnProperty("dsn")) + object.dsn = message.dsn; + if (message.connectTimeoutSeconds != null && message.hasOwnProperty("connectTimeoutSeconds")) + object.connectTimeoutSeconds = message.connectTimeoutSeconds; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + object.tlsSkipVerify = message.tlsSkipVerify; + if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) + object.tlsClientCert = message.tlsClientCert; + if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) + object.tlsClientKey = message.tlsClientKey; + if (message.token != null && message.hasOwnProperty("token")) + object.token = message.token; + if (message.listenerName != null && message.hasOwnProperty("listenerName")) + object.listenerName = message.listenerName; return object; }; /** - * Converts this TunnelGroupRedisStreamsOptions to JSON. + * Converts this PulsarConn to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupRedisStreamsOptions + * @memberof protos.args.PulsarConn * @instance * @returns {Object.} JSON object */ - TunnelGroupRedisStreamsOptions.prototype.toJSON = function toJSON() { + PulsarConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupRedisStreamsOptions; + return PulsarConn; })(); - opts.TunnelGroupAzureEventHubOptions = (function() { + args.PulsarReadArgs = (function() { /** - * Properties of a TunnelGroupAzureEventHubOptions. - * @memberof protos.opts - * @interface ITunnelGroupAzureEventHubOptions - * @property {protos.args.IAzureEventHubConn|null} [_conn] TunnelGroupAzureEventHubOptions _conn - * @property {protos.args.IAzureEventHubWriteArgs|null} [args] TunnelGroupAzureEventHubOptions args + * Properties of a PulsarReadArgs. + * @memberof protos.args + * @interface IPulsarReadArgs + * @property {string|null} [topic] PulsarReadArgs topic + * @property {string|null} [subscriptionName] PulsarReadArgs subscriptionName + * @property {protos.args.SubscriptionType|null} [subscriptionType] PulsarReadArgs subscriptionType + * @property {protos.args.SubscriptionInitialPosition|null} [initialPosition] PulsarReadArgs initialPosition */ /** - * Constructs a new TunnelGroupAzureEventHubOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupAzureEventHubOptions. - * @implements ITunnelGroupAzureEventHubOptions + * Constructs a new PulsarReadArgs. + * @memberof protos.args + * @classdesc Represents a PulsarReadArgs. + * @implements IPulsarReadArgs * @constructor - * @param {protos.opts.ITunnelGroupAzureEventHubOptions=} [properties] Properties to set + * @param {protos.args.IPulsarReadArgs=} [properties] Properties to set */ - function TunnelGroupAzureEventHubOptions(properties) { + function PulsarReadArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15828,88 +14067,114 @@ $root.protos = (function() { } /** - * TunnelGroupAzureEventHubOptions _conn. - * @member {protos.args.IAzureEventHubConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupAzureEventHubOptions + * PulsarReadArgs topic. + * @member {string} topic + * @memberof protos.args.PulsarReadArgs * @instance */ - TunnelGroupAzureEventHubOptions.prototype._conn = null; + PulsarReadArgs.prototype.topic = ""; /** - * TunnelGroupAzureEventHubOptions args. - * @member {protos.args.IAzureEventHubWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupAzureEventHubOptions + * PulsarReadArgs subscriptionName. + * @member {string} subscriptionName + * @memberof protos.args.PulsarReadArgs + * @instance + */ + PulsarReadArgs.prototype.subscriptionName = ""; + + /** + * PulsarReadArgs subscriptionType. + * @member {protos.args.SubscriptionType} subscriptionType + * @memberof protos.args.PulsarReadArgs + * @instance + */ + PulsarReadArgs.prototype.subscriptionType = 0; + + /** + * PulsarReadArgs initialPosition. + * @member {protos.args.SubscriptionInitialPosition} initialPosition + * @memberof protos.args.PulsarReadArgs * @instance */ - TunnelGroupAzureEventHubOptions.prototype.args = null; + PulsarReadArgs.prototype.initialPosition = 0; /** - * Creates a new TunnelGroupAzureEventHubOptions instance using the specified properties. + * Creates a new PulsarReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupAzureEventHubOptions + * @memberof protos.args.PulsarReadArgs * @static - * @param {protos.opts.ITunnelGroupAzureEventHubOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupAzureEventHubOptions} TunnelGroupAzureEventHubOptions instance + * @param {protos.args.IPulsarReadArgs=} [properties] Properties to set + * @returns {protos.args.PulsarReadArgs} PulsarReadArgs instance */ - TunnelGroupAzureEventHubOptions.create = function create(properties) { - return new TunnelGroupAzureEventHubOptions(properties); + PulsarReadArgs.create = function create(properties) { + return new PulsarReadArgs(properties); }; /** - * Encodes the specified TunnelGroupAzureEventHubOptions message. Does not implicitly {@link protos.opts.TunnelGroupAzureEventHubOptions.verify|verify} messages. + * Encodes the specified PulsarReadArgs message. Does not implicitly {@link protos.args.PulsarReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupAzureEventHubOptions + * @memberof protos.args.PulsarReadArgs * @static - * @param {protos.opts.ITunnelGroupAzureEventHubOptions} message TunnelGroupAzureEventHubOptions message or plain object to encode + * @param {protos.args.IPulsarReadArgs} message PulsarReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupAzureEventHubOptions.encode = function encode(message, writer) { + PulsarReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AzureEventHubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AzureEventHubWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); + if (message.subscriptionName != null && Object.hasOwnProperty.call(message, "subscriptionName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.subscriptionName); + if (message.subscriptionType != null && Object.hasOwnProperty.call(message, "subscriptionType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.subscriptionType); + if (message.initialPosition != null && Object.hasOwnProperty.call(message, "initialPosition")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.initialPosition); return writer; }; /** - * Encodes the specified TunnelGroupAzureEventHubOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupAzureEventHubOptions.verify|verify} messages. + * Encodes the specified PulsarReadArgs message, length delimited. Does not implicitly {@link protos.args.PulsarReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupAzureEventHubOptions + * @memberof protos.args.PulsarReadArgs * @static - * @param {protos.opts.ITunnelGroupAzureEventHubOptions} message TunnelGroupAzureEventHubOptions message or plain object to encode + * @param {protos.args.IPulsarReadArgs} message PulsarReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupAzureEventHubOptions.encodeDelimited = function encodeDelimited(message, writer) { + PulsarReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupAzureEventHubOptions message from the specified reader or buffer. + * Decodes a PulsarReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupAzureEventHubOptions + * @memberof protos.args.PulsarReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupAzureEventHubOptions} TunnelGroupAzureEventHubOptions + * @returns {protos.args.PulsarReadArgs} PulsarReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupAzureEventHubOptions.decode = function decode(reader, length) { + PulsarReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupAzureEventHubOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.PulsarReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.AzureEventHubConn.decode(reader, reader.uint32()); + message.topic = reader.string(); break; case 2: - message.args = $root.protos.args.AzureEventHubWriteArgs.decode(reader, reader.uint32()); + message.subscriptionName = reader.string(); + break; + case 3: + message.subscriptionType = reader.int32(); + break; + case 4: + message.initialPosition = reader.int32(); break; default: reader.skipType(tag & 7); @@ -15920,127 +14185,168 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupAzureEventHubOptions message from the specified reader or buffer, length delimited. + * Decodes a PulsarReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupAzureEventHubOptions + * @memberof protos.args.PulsarReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupAzureEventHubOptions} TunnelGroupAzureEventHubOptions + * @returns {protos.args.PulsarReadArgs} PulsarReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupAzureEventHubOptions.decodeDelimited = function decodeDelimited(reader) { + PulsarReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupAzureEventHubOptions message. + * Verifies a PulsarReadArgs message. * @function verify - * @memberof protos.opts.TunnelGroupAzureEventHubOptions + * @memberof protos.args.PulsarReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupAzureEventHubOptions.verify = function verify(message) { + PulsarReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AzureEventHubConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AzureEventHubWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.topic != null && message.hasOwnProperty("topic")) + if (!$util.isString(message.topic)) + return "topic: string expected"; + if (message.subscriptionName != null && message.hasOwnProperty("subscriptionName")) + if (!$util.isString(message.subscriptionName)) + return "subscriptionName: string expected"; + if (message.subscriptionType != null && message.hasOwnProperty("subscriptionType")) + switch (message.subscriptionType) { + default: + return "subscriptionType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.initialPosition != null && message.hasOwnProperty("initialPosition")) + switch (message.initialPosition) { + default: + return "initialPosition: enum value expected"; + case 0: + case 1: + break; + } return null; }; /** - * Creates a TunnelGroupAzureEventHubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a PulsarReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupAzureEventHubOptions + * @memberof protos.args.PulsarReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupAzureEventHubOptions} TunnelGroupAzureEventHubOptions + * @returns {protos.args.PulsarReadArgs} PulsarReadArgs */ - TunnelGroupAzureEventHubOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupAzureEventHubOptions) + PulsarReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.PulsarReadArgs) return object; - var message = new $root.protos.opts.TunnelGroupAzureEventHubOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupAzureEventHubOptions._conn: object expected"); - message._conn = $root.protos.args.AzureEventHubConn.fromObject(object._conn); + var message = new $root.protos.args.PulsarReadArgs(); + if (object.topic != null) + message.topic = String(object.topic); + if (object.subscriptionName != null) + message.subscriptionName = String(object.subscriptionName); + switch (object.subscriptionType) { + case "SHARED": + case 0: + message.subscriptionType = 0; + break; + case "EXCLUSIVE": + case 1: + message.subscriptionType = 1; + break; + case "FAILOVER": + case 2: + message.subscriptionType = 2; + break; + case "KEYSHARED": + case 3: + message.subscriptionType = 3; + break; } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupAzureEventHubOptions.args: object expected"); - message.args = $root.protos.args.AzureEventHubWriteArgs.fromObject(object.args); + switch (object.initialPosition) { + case "PULSAR_LATEST": + case 0: + message.initialPosition = 0; + break; + case "PULSAR_EARLIEST": + case 1: + message.initialPosition = 1; + break; } return message; }; /** - * Creates a plain object from a TunnelGroupAzureEventHubOptions message. Also converts values to other types if specified. + * Creates a plain object from a PulsarReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupAzureEventHubOptions + * @memberof protos.args.PulsarReadArgs * @static - * @param {protos.opts.TunnelGroupAzureEventHubOptions} message TunnelGroupAzureEventHubOptions + * @param {protos.args.PulsarReadArgs} message PulsarReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupAzureEventHubOptions.toObject = function toObject(message, options) { + PulsarReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.topic = ""; + object.subscriptionName = ""; + object.subscriptionType = options.enums === String ? "SHARED" : 0; + object.initialPosition = options.enums === String ? "PULSAR_LATEST" : 0; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AzureEventHubConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AzureEventHubWriteArgs.toObject(message.args, options); + if (message.topic != null && message.hasOwnProperty("topic")) + object.topic = message.topic; + if (message.subscriptionName != null && message.hasOwnProperty("subscriptionName")) + object.subscriptionName = message.subscriptionName; + if (message.subscriptionType != null && message.hasOwnProperty("subscriptionType")) + object.subscriptionType = options.enums === String ? $root.protos.args.SubscriptionType[message.subscriptionType] : message.subscriptionType; + if (message.initialPosition != null && message.hasOwnProperty("initialPosition")) + object.initialPosition = options.enums === String ? $root.protos.args.SubscriptionInitialPosition[message.initialPosition] : message.initialPosition; return object; }; /** - * Converts this TunnelGroupAzureEventHubOptions to JSON. + * Converts this PulsarReadArgs to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupAzureEventHubOptions + * @memberof protos.args.PulsarReadArgs * @instance * @returns {Object.} JSON object */ - TunnelGroupAzureEventHubOptions.prototype.toJSON = function toJSON() { + PulsarReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupAzureEventHubOptions; + return PulsarReadArgs; })(); - opts.TunnelGroupAzureServiceBusOptions = (function() { + args.PulsarWriteArgs = (function() { /** - * Properties of a TunnelGroupAzureServiceBusOptions. - * @memberof protos.opts - * @interface ITunnelGroupAzureServiceBusOptions - * @property {protos.args.IAzureServiceBusConn|null} [_conn] TunnelGroupAzureServiceBusOptions _conn - * @property {protos.args.IAzureServiceBusWriteArgs|null} [args] TunnelGroupAzureServiceBusOptions args + * Properties of a PulsarWriteArgs. + * @memberof protos.args + * @interface IPulsarWriteArgs + * @property {string|null} [topic] PulsarWriteArgs topic */ /** - * Constructs a new TunnelGroupAzureServiceBusOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupAzureServiceBusOptions. - * @implements ITunnelGroupAzureServiceBusOptions + * Constructs a new PulsarWriteArgs. + * @memberof protos.args + * @classdesc Represents a PulsarWriteArgs. + * @implements IPulsarWriteArgs * @constructor - * @param {protos.opts.ITunnelGroupAzureServiceBusOptions=} [properties] Properties to set + * @param {protos.args.IPulsarWriteArgs=} [properties] Properties to set */ - function TunnelGroupAzureServiceBusOptions(properties) { + function PulsarWriteArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16048,88 +14354,75 @@ $root.protos = (function() { } /** - * TunnelGroupAzureServiceBusOptions _conn. - * @member {protos.args.IAzureServiceBusConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupAzureServiceBusOptions - * @instance - */ - TunnelGroupAzureServiceBusOptions.prototype._conn = null; - - /** - * TunnelGroupAzureServiceBusOptions args. - * @member {protos.args.IAzureServiceBusWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupAzureServiceBusOptions + * PulsarWriteArgs topic. + * @member {string} topic + * @memberof protos.args.PulsarWriteArgs * @instance */ - TunnelGroupAzureServiceBusOptions.prototype.args = null; + PulsarWriteArgs.prototype.topic = ""; /** - * Creates a new TunnelGroupAzureServiceBusOptions instance using the specified properties. + * Creates a new PulsarWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupAzureServiceBusOptions + * @memberof protos.args.PulsarWriteArgs * @static - * @param {protos.opts.ITunnelGroupAzureServiceBusOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupAzureServiceBusOptions} TunnelGroupAzureServiceBusOptions instance + * @param {protos.args.IPulsarWriteArgs=} [properties] Properties to set + * @returns {protos.args.PulsarWriteArgs} PulsarWriteArgs instance */ - TunnelGroupAzureServiceBusOptions.create = function create(properties) { - return new TunnelGroupAzureServiceBusOptions(properties); + PulsarWriteArgs.create = function create(properties) { + return new PulsarWriteArgs(properties); }; /** - * Encodes the specified TunnelGroupAzureServiceBusOptions message. Does not implicitly {@link protos.opts.TunnelGroupAzureServiceBusOptions.verify|verify} messages. + * Encodes the specified PulsarWriteArgs message. Does not implicitly {@link protos.args.PulsarWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupAzureServiceBusOptions + * @memberof protos.args.PulsarWriteArgs * @static - * @param {protos.opts.ITunnelGroupAzureServiceBusOptions} message TunnelGroupAzureServiceBusOptions message or plain object to encode + * @param {protos.args.IPulsarWriteArgs} message PulsarWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupAzureServiceBusOptions.encode = function encode(message, writer) { + PulsarWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AzureServiceBusConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AzureServiceBusWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); return writer; }; /** - * Encodes the specified TunnelGroupAzureServiceBusOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupAzureServiceBusOptions.verify|verify} messages. + * Encodes the specified PulsarWriteArgs message, length delimited. Does not implicitly {@link protos.args.PulsarWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupAzureServiceBusOptions + * @memberof protos.args.PulsarWriteArgs * @static - * @param {protos.opts.ITunnelGroupAzureServiceBusOptions} message TunnelGroupAzureServiceBusOptions message or plain object to encode + * @param {protos.args.IPulsarWriteArgs} message PulsarWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupAzureServiceBusOptions.encodeDelimited = function encodeDelimited(message, writer) { + PulsarWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupAzureServiceBusOptions message from the specified reader or buffer. + * Decodes a PulsarWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupAzureServiceBusOptions + * @memberof protos.args.PulsarWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupAzureServiceBusOptions} TunnelGroupAzureServiceBusOptions + * @returns {protos.args.PulsarWriteArgs} PulsarWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupAzureServiceBusOptions.decode = function decode(reader, length) { + PulsarWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupAzureServiceBusOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.PulsarWriteArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.AzureServiceBusConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.AzureServiceBusWriteArgs.decode(reader, reader.uint32()); + message.topic = reader.string(); break; default: reader.skipType(tag & 7); @@ -16140,127 +14433,109 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupAzureServiceBusOptions message from the specified reader or buffer, length delimited. + * Decodes a PulsarWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupAzureServiceBusOptions + * @memberof protos.args.PulsarWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupAzureServiceBusOptions} TunnelGroupAzureServiceBusOptions + * @returns {protos.args.PulsarWriteArgs} PulsarWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupAzureServiceBusOptions.decodeDelimited = function decodeDelimited(reader) { + PulsarWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupAzureServiceBusOptions message. + * Verifies a PulsarWriteArgs message. * @function verify - * @memberof protos.opts.TunnelGroupAzureServiceBusOptions + * @memberof protos.args.PulsarWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupAzureServiceBusOptions.verify = function verify(message) { + PulsarWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AzureServiceBusConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AzureServiceBusWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.topic != null && message.hasOwnProperty("topic")) + if (!$util.isString(message.topic)) + return "topic: string expected"; return null; }; /** - * Creates a TunnelGroupAzureServiceBusOptions message from a plain object. Also converts values to their respective internal types. + * Creates a PulsarWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupAzureServiceBusOptions + * @memberof protos.args.PulsarWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupAzureServiceBusOptions} TunnelGroupAzureServiceBusOptions + * @returns {protos.args.PulsarWriteArgs} PulsarWriteArgs */ - TunnelGroupAzureServiceBusOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupAzureServiceBusOptions) + PulsarWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.PulsarWriteArgs) return object; - var message = new $root.protos.opts.TunnelGroupAzureServiceBusOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupAzureServiceBusOptions._conn: object expected"); - message._conn = $root.protos.args.AzureServiceBusConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupAzureServiceBusOptions.args: object expected"); - message.args = $root.protos.args.AzureServiceBusWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.PulsarWriteArgs(); + if (object.topic != null) + message.topic = String(object.topic); return message; }; /** - * Creates a plain object from a TunnelGroupAzureServiceBusOptions message. Also converts values to other types if specified. + * Creates a plain object from a PulsarWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupAzureServiceBusOptions + * @memberof protos.args.PulsarWriteArgs * @static - * @param {protos.opts.TunnelGroupAzureServiceBusOptions} message TunnelGroupAzureServiceBusOptions + * @param {protos.args.PulsarWriteArgs} message PulsarWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupAzureServiceBusOptions.toObject = function toObject(message, options) { + PulsarWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AzureServiceBusConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AzureServiceBusWriteArgs.toObject(message.args, options); + if (options.defaults) + object.topic = ""; + if (message.topic != null && message.hasOwnProperty("topic")) + object.topic = message.topic; return object; }; /** - * Converts this TunnelGroupAzureServiceBusOptions to JSON. + * Converts this PulsarWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupAzureServiceBusOptions + * @memberof protos.args.PulsarWriteArgs * @instance * @returns {Object.} JSON object */ - TunnelGroupAzureServiceBusOptions.prototype.toJSON = function toJSON() { + PulsarWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupAzureServiceBusOptions; + return PulsarWriteArgs; })(); - opts.TunnelGroupMQTTOptions = (function() { + args.RabbitConn = (function() { /** - * Properties of a TunnelGroupMQTTOptions. - * @memberof protos.opts - * @interface ITunnelGroupMQTTOptions - * @property {protos.args.IMQTTConn|null} [_conn] TunnelGroupMQTTOptions _conn - * @property {protos.args.IMQTTWriteArgs|null} [args] TunnelGroupMQTTOptions args + * Properties of a RabbitConn. + * @memberof protos.args + * @interface IRabbitConn + * @property {string|null} [address] RabbitConn address + * @property {boolean|null} [useTls] RabbitConn useTls + * @property {boolean|null} [tlsSkipVerify] RabbitConn tlsSkipVerify */ /** - * Constructs a new TunnelGroupMQTTOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupMQTTOptions. - * @implements ITunnelGroupMQTTOptions + * Constructs a new RabbitConn. + * @memberof protos.args + * @classdesc Represents a RabbitConn. + * @implements IRabbitConn * @constructor - * @param {protos.opts.ITunnelGroupMQTTOptions=} [properties] Properties to set + * @param {protos.args.IRabbitConn=} [properties] Properties to set */ - function TunnelGroupMQTTOptions(properties) { + function RabbitConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16268,88 +14543,101 @@ $root.protos = (function() { } /** - * TunnelGroupMQTTOptions _conn. - * @member {protos.args.IMQTTConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupMQTTOptions + * RabbitConn address. + * @member {string} address + * @memberof protos.args.RabbitConn * @instance */ - TunnelGroupMQTTOptions.prototype._conn = null; + RabbitConn.prototype.address = ""; /** - * TunnelGroupMQTTOptions args. - * @member {protos.args.IMQTTWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupMQTTOptions + * RabbitConn useTls. + * @member {boolean} useTls + * @memberof protos.args.RabbitConn + * @instance + */ + RabbitConn.prototype.useTls = false; + + /** + * RabbitConn tlsSkipVerify. + * @member {boolean} tlsSkipVerify + * @memberof protos.args.RabbitConn * @instance */ - TunnelGroupMQTTOptions.prototype.args = null; + RabbitConn.prototype.tlsSkipVerify = false; /** - * Creates a new TunnelGroupMQTTOptions instance using the specified properties. + * Creates a new RabbitConn instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupMQTTOptions + * @memberof protos.args.RabbitConn * @static - * @param {protos.opts.ITunnelGroupMQTTOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupMQTTOptions} TunnelGroupMQTTOptions instance + * @param {protos.args.IRabbitConn=} [properties] Properties to set + * @returns {protos.args.RabbitConn} RabbitConn instance */ - TunnelGroupMQTTOptions.create = function create(properties) { - return new TunnelGroupMQTTOptions(properties); + RabbitConn.create = function create(properties) { + return new RabbitConn(properties); }; /** - * Encodes the specified TunnelGroupMQTTOptions message. Does not implicitly {@link protos.opts.TunnelGroupMQTTOptions.verify|verify} messages. + * Encodes the specified RabbitConn message. Does not implicitly {@link protos.args.RabbitConn.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupMQTTOptions + * @memberof protos.args.RabbitConn * @static - * @param {protos.opts.ITunnelGroupMQTTOptions} message TunnelGroupMQTTOptions message or plain object to encode + * @param {protos.args.IRabbitConn} message RabbitConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupMQTTOptions.encode = function encode(message, writer) { + RabbitConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.MQTTConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.MQTTWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useTls); + if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.tlsSkipVerify); return writer; }; /** - * Encodes the specified TunnelGroupMQTTOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupMQTTOptions.verify|verify} messages. + * Encodes the specified RabbitConn message, length delimited. Does not implicitly {@link protos.args.RabbitConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupMQTTOptions + * @memberof protos.args.RabbitConn * @static - * @param {protos.opts.ITunnelGroupMQTTOptions} message TunnelGroupMQTTOptions message or plain object to encode + * @param {protos.args.IRabbitConn} message RabbitConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupMQTTOptions.encodeDelimited = function encodeDelimited(message, writer) { + RabbitConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupMQTTOptions message from the specified reader or buffer. + * Decodes a RabbitConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupMQTTOptions + * @memberof protos.args.RabbitConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupMQTTOptions} TunnelGroupMQTTOptions + * @returns {protos.args.RabbitConn} RabbitConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupMQTTOptions.decode = function decode(reader, length) { + RabbitConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupMQTTOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.MQTTConn.decode(reader, reader.uint32()); + message.address = reader.string(); break; case 2: - message.args = $root.protos.args.MQTTWriteArgs.decode(reader, reader.uint32()); + message.useTls = reader.bool(); + break; + case 3: + message.tlsSkipVerify = reader.bool(); break; default: reader.skipType(tag & 7); @@ -16360,127 +14648,135 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupMQTTOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupMQTTOptions + * @memberof protos.args.RabbitConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupMQTTOptions} TunnelGroupMQTTOptions + * @returns {protos.args.RabbitConn} RabbitConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupMQTTOptions.decodeDelimited = function decodeDelimited(reader) { + RabbitConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupMQTTOptions message. + * Verifies a RabbitConn message. * @function verify - * @memberof protos.opts.TunnelGroupMQTTOptions + * @memberof protos.args.RabbitConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupMQTTOptions.verify = function verify(message) { + RabbitConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.MQTTConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.MQTTWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.useTls != null && message.hasOwnProperty("useTls")) + if (typeof message.useTls !== "boolean") + return "useTls: boolean expected"; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + if (typeof message.tlsSkipVerify !== "boolean") + return "tlsSkipVerify: boolean expected"; return null; }; /** - * Creates a TunnelGroupMQTTOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupMQTTOptions + * @memberof protos.args.RabbitConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupMQTTOptions} TunnelGroupMQTTOptions + * @returns {protos.args.RabbitConn} RabbitConn */ - TunnelGroupMQTTOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupMQTTOptions) + RabbitConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.RabbitConn) return object; - var message = new $root.protos.opts.TunnelGroupMQTTOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupMQTTOptions._conn: object expected"); - message._conn = $root.protos.args.MQTTConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupMQTTOptions.args: object expected"); - message.args = $root.protos.args.MQTTWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.RabbitConn(); + if (object.address != null) + message.address = String(object.address); + if (object.useTls != null) + message.useTls = Boolean(object.useTls); + if (object.tlsSkipVerify != null) + message.tlsSkipVerify = Boolean(object.tlsSkipVerify); return message; }; /** - * Creates a plain object from a TunnelGroupMQTTOptions message. Also converts values to other types if specified. + * Creates a plain object from a RabbitConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupMQTTOptions + * @memberof protos.args.RabbitConn * @static - * @param {protos.opts.TunnelGroupMQTTOptions} message TunnelGroupMQTTOptions + * @param {protos.args.RabbitConn} message RabbitConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupMQTTOptions.toObject = function toObject(message, options) { + RabbitConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.address = ""; + object.useTls = false; + object.tlsSkipVerify = false; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.MQTTConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.MQTTWriteArgs.toObject(message.args, options); + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.useTls != null && message.hasOwnProperty("useTls")) + object.useTls = message.useTls; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + object.tlsSkipVerify = message.tlsSkipVerify; return object; }; /** - * Converts this TunnelGroupMQTTOptions to JSON. + * Converts this RabbitConn to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupMQTTOptions + * @memberof protos.args.RabbitConn * @instance * @returns {Object.} JSON object */ - TunnelGroupMQTTOptions.prototype.toJSON = function toJSON() { + RabbitConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupMQTTOptions; + return RabbitConn; })(); - opts.TunnelGroupGCPPubSubOptions = (function() { + args.RabbitReadArgs = (function() { /** - * Properties of a TunnelGroupGCPPubSubOptions. - * @memberof protos.opts - * @interface ITunnelGroupGCPPubSubOptions - * @property {protos.args.IGCPPubSubConn|null} [_conn] TunnelGroupGCPPubSubOptions _conn - * @property {protos.args.IGCPPubSubWriteArgs|null} [args] TunnelGroupGCPPubSubOptions args + * Properties of a RabbitReadArgs. + * @memberof protos.args + * @interface IRabbitReadArgs + * @property {string|null} [exchangeName] RabbitReadArgs exchangeName + * @property {string|null} [queueName] RabbitReadArgs queueName + * @property {string|null} [bindingKey] RabbitReadArgs bindingKey + * @property {boolean|null} [queueExclusive] RabbitReadArgs queueExclusive + * @property {boolean|null} [queueDeclare] RabbitReadArgs queueDeclare + * @property {boolean|null} [queueDurable] RabbitReadArgs queueDurable + * @property {boolean|null} [autoAck] RabbitReadArgs autoAck + * @property {string|null} [consumerTag] RabbitReadArgs consumerTag + * @property {boolean|null} [queueDelete] RabbitReadArgs queueDelete + * @property {Object.|null} [queueArg] RabbitReadArgs queueArg + * @property {string|null} [excludeBindingKeyRegex] RabbitReadArgs excludeBindingKeyRegex */ /** - * Constructs a new TunnelGroupGCPPubSubOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupGCPPubSubOptions. - * @implements ITunnelGroupGCPPubSubOptions + * Constructs a new RabbitReadArgs. + * @memberof protos.args + * @classdesc Represents a RabbitReadArgs. + * @implements IRabbitReadArgs * @constructor - * @param {protos.opts.ITunnelGroupGCPPubSubOptions=} [properties] Properties to set + * @param {protos.args.IRabbitReadArgs=} [properties] Properties to set */ - function TunnelGroupGCPPubSubOptions(properties) { + function RabbitReadArgs(properties) { + this.queueArg = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16488,88 +14784,225 @@ $root.protos = (function() { } /** - * TunnelGroupGCPPubSubOptions _conn. - * @member {protos.args.IGCPPubSubConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupGCPPubSubOptions + * RabbitReadArgs exchangeName. + * @member {string} exchangeName + * @memberof protos.args.RabbitReadArgs * @instance */ - TunnelGroupGCPPubSubOptions.prototype._conn = null; + RabbitReadArgs.prototype.exchangeName = ""; /** - * TunnelGroupGCPPubSubOptions args. - * @member {protos.args.IGCPPubSubWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupGCPPubSubOptions + * RabbitReadArgs queueName. + * @member {string} queueName + * @memberof protos.args.RabbitReadArgs + * @instance + */ + RabbitReadArgs.prototype.queueName = ""; + + /** + * RabbitReadArgs bindingKey. + * @member {string} bindingKey + * @memberof protos.args.RabbitReadArgs + * @instance + */ + RabbitReadArgs.prototype.bindingKey = ""; + + /** + * RabbitReadArgs queueExclusive. + * @member {boolean} queueExclusive + * @memberof protos.args.RabbitReadArgs + * @instance + */ + RabbitReadArgs.prototype.queueExclusive = false; + + /** + * RabbitReadArgs queueDeclare. + * @member {boolean} queueDeclare + * @memberof protos.args.RabbitReadArgs + * @instance + */ + RabbitReadArgs.prototype.queueDeclare = false; + + /** + * RabbitReadArgs queueDurable. + * @member {boolean} queueDurable + * @memberof protos.args.RabbitReadArgs + * @instance + */ + RabbitReadArgs.prototype.queueDurable = false; + + /** + * RabbitReadArgs autoAck. + * @member {boolean} autoAck + * @memberof protos.args.RabbitReadArgs + * @instance + */ + RabbitReadArgs.prototype.autoAck = false; + + /** + * RabbitReadArgs consumerTag. + * @member {string} consumerTag + * @memberof protos.args.RabbitReadArgs + * @instance + */ + RabbitReadArgs.prototype.consumerTag = ""; + + /** + * RabbitReadArgs queueDelete. + * @member {boolean} queueDelete + * @memberof protos.args.RabbitReadArgs + * @instance + */ + RabbitReadArgs.prototype.queueDelete = false; + + /** + * RabbitReadArgs queueArg. + * @member {Object.} queueArg + * @memberof protos.args.RabbitReadArgs + * @instance + */ + RabbitReadArgs.prototype.queueArg = $util.emptyObject; + + /** + * RabbitReadArgs excludeBindingKeyRegex. + * @member {string} excludeBindingKeyRegex + * @memberof protos.args.RabbitReadArgs * @instance */ - TunnelGroupGCPPubSubOptions.prototype.args = null; + RabbitReadArgs.prototype.excludeBindingKeyRegex = ""; /** - * Creates a new TunnelGroupGCPPubSubOptions instance using the specified properties. + * Creates a new RabbitReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupGCPPubSubOptions + * @memberof protos.args.RabbitReadArgs * @static - * @param {protos.opts.ITunnelGroupGCPPubSubOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupGCPPubSubOptions} TunnelGroupGCPPubSubOptions instance + * @param {protos.args.IRabbitReadArgs=} [properties] Properties to set + * @returns {protos.args.RabbitReadArgs} RabbitReadArgs instance */ - TunnelGroupGCPPubSubOptions.create = function create(properties) { - return new TunnelGroupGCPPubSubOptions(properties); + RabbitReadArgs.create = function create(properties) { + return new RabbitReadArgs(properties); }; /** - * Encodes the specified TunnelGroupGCPPubSubOptions message. Does not implicitly {@link protos.opts.TunnelGroupGCPPubSubOptions.verify|verify} messages. + * Encodes the specified RabbitReadArgs message. Does not implicitly {@link protos.args.RabbitReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupGCPPubSubOptions + * @memberof protos.args.RabbitReadArgs * @static - * @param {protos.opts.ITunnelGroupGCPPubSubOptions} message TunnelGroupGCPPubSubOptions message or plain object to encode + * @param {protos.args.IRabbitReadArgs} message RabbitReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupGCPPubSubOptions.encode = function encode(message, writer) { + RabbitReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.GCPPubSubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.GCPPubSubWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.exchangeName != null && Object.hasOwnProperty.call(message, "exchangeName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.exchangeName); + if (message.queueName != null && Object.hasOwnProperty.call(message, "queueName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.queueName); + if (message.bindingKey != null && Object.hasOwnProperty.call(message, "bindingKey")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.bindingKey); + if (message.queueExclusive != null && Object.hasOwnProperty.call(message, "queueExclusive")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.queueExclusive); + if (message.queueDeclare != null && Object.hasOwnProperty.call(message, "queueDeclare")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.queueDeclare); + if (message.queueDurable != null && Object.hasOwnProperty.call(message, "queueDurable")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.queueDurable); + if (message.autoAck != null && Object.hasOwnProperty.call(message, "autoAck")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.autoAck); + if (message.consumerTag != null && Object.hasOwnProperty.call(message, "consumerTag")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.consumerTag); + if (message.queueDelete != null && Object.hasOwnProperty.call(message, "queueDelete")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.queueDelete); + if (message.queueArg != null && Object.hasOwnProperty.call(message, "queueArg")) + for (var keys = Object.keys(message.queueArg), i = 0; i < keys.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.queueArg[keys[i]]).ldelim(); + if (message.excludeBindingKeyRegex != null && Object.hasOwnProperty.call(message, "excludeBindingKeyRegex")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.excludeBindingKeyRegex); return writer; }; /** - * Encodes the specified TunnelGroupGCPPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupGCPPubSubOptions.verify|verify} messages. + * Encodes the specified RabbitReadArgs message, length delimited. Does not implicitly {@link protos.args.RabbitReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupGCPPubSubOptions + * @memberof protos.args.RabbitReadArgs * @static - * @param {protos.opts.ITunnelGroupGCPPubSubOptions} message TunnelGroupGCPPubSubOptions message or plain object to encode + * @param {protos.args.IRabbitReadArgs} message RabbitReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupGCPPubSubOptions.encodeDelimited = function encodeDelimited(message, writer) { + RabbitReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupGCPPubSubOptions message from the specified reader or buffer. + * Decodes a RabbitReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupGCPPubSubOptions + * @memberof protos.args.RabbitReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupGCPPubSubOptions} TunnelGroupGCPPubSubOptions + * @returns {protos.args.RabbitReadArgs} RabbitReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupGCPPubSubOptions.decode = function decode(reader, length) { + RabbitReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupGCPPubSubOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitReadArgs(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.GCPPubSubConn.decode(reader, reader.uint32()); + message.exchangeName = reader.string(); break; case 2: - message.args = $root.protos.args.GCPPubSubWriteArgs.decode(reader, reader.uint32()); + message.queueName = reader.string(); + break; + case 3: + message.bindingKey = reader.string(); + break; + case 4: + message.queueExclusive = reader.bool(); + break; + case 5: + message.queueDeclare = reader.bool(); + break; + case 6: + message.queueDurable = reader.bool(); + break; + case 7: + message.autoAck = reader.bool(); + break; + case 8: + message.consumerTag = reader.string(); + break; + case 9: + message.queueDelete = reader.bool(); + break; + case 10: + if (message.queueArg === $util.emptyObject) + message.queueArg = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.queueArg[key] = value; + break; + case 11: + message.excludeBindingKeyRegex = reader.string(); break; default: reader.skipType(tag & 7); @@ -16580,127 +15013,209 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupGCPPubSubOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupGCPPubSubOptions + * @memberof protos.args.RabbitReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupGCPPubSubOptions} TunnelGroupGCPPubSubOptions + * @returns {protos.args.RabbitReadArgs} RabbitReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupGCPPubSubOptions.decodeDelimited = function decodeDelimited(reader) { + RabbitReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupGCPPubSubOptions message. + * Verifies a RabbitReadArgs message. * @function verify - * @memberof protos.opts.TunnelGroupGCPPubSubOptions + * @memberof protos.args.RabbitReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupGCPPubSubOptions.verify = function verify(message) { + RabbitReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.GCPPubSubConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.GCPPubSubWriteArgs.verify(message.args); - if (error) - return "args." + error; + if (message.exchangeName != null && message.hasOwnProperty("exchangeName")) + if (!$util.isString(message.exchangeName)) + return "exchangeName: string expected"; + if (message.queueName != null && message.hasOwnProperty("queueName")) + if (!$util.isString(message.queueName)) + return "queueName: string expected"; + if (message.bindingKey != null && message.hasOwnProperty("bindingKey")) + if (!$util.isString(message.bindingKey)) + return "bindingKey: string expected"; + if (message.queueExclusive != null && message.hasOwnProperty("queueExclusive")) + if (typeof message.queueExclusive !== "boolean") + return "queueExclusive: boolean expected"; + if (message.queueDeclare != null && message.hasOwnProperty("queueDeclare")) + if (typeof message.queueDeclare !== "boolean") + return "queueDeclare: boolean expected"; + if (message.queueDurable != null && message.hasOwnProperty("queueDurable")) + if (typeof message.queueDurable !== "boolean") + return "queueDurable: boolean expected"; + if (message.autoAck != null && message.hasOwnProperty("autoAck")) + if (typeof message.autoAck !== "boolean") + return "autoAck: boolean expected"; + if (message.consumerTag != null && message.hasOwnProperty("consumerTag")) + if (!$util.isString(message.consumerTag)) + return "consumerTag: string expected"; + if (message.queueDelete != null && message.hasOwnProperty("queueDelete")) + if (typeof message.queueDelete !== "boolean") + return "queueDelete: boolean expected"; + if (message.queueArg != null && message.hasOwnProperty("queueArg")) { + if (!$util.isObject(message.queueArg)) + return "queueArg: object expected"; + var key = Object.keys(message.queueArg); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.queueArg[key[i]])) + return "queueArg: string{k:string} expected"; } + if (message.excludeBindingKeyRegex != null && message.hasOwnProperty("excludeBindingKeyRegex")) + if (!$util.isString(message.excludeBindingKeyRegex)) + return "excludeBindingKeyRegex: string expected"; return null; }; /** - * Creates a TunnelGroupGCPPubSubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupGCPPubSubOptions + * @memberof protos.args.RabbitReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupGCPPubSubOptions} TunnelGroupGCPPubSubOptions + * @returns {protos.args.RabbitReadArgs} RabbitReadArgs */ - TunnelGroupGCPPubSubOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupGCPPubSubOptions) + RabbitReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.RabbitReadArgs) return object; - var message = new $root.protos.opts.TunnelGroupGCPPubSubOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupGCPPubSubOptions._conn: object expected"); - message._conn = $root.protos.args.GCPPubSubConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupGCPPubSubOptions.args: object expected"); - message.args = $root.protos.args.GCPPubSubWriteArgs.fromObject(object.args); + var message = new $root.protos.args.RabbitReadArgs(); + if (object.exchangeName != null) + message.exchangeName = String(object.exchangeName); + if (object.queueName != null) + message.queueName = String(object.queueName); + if (object.bindingKey != null) + message.bindingKey = String(object.bindingKey); + if (object.queueExclusive != null) + message.queueExclusive = Boolean(object.queueExclusive); + if (object.queueDeclare != null) + message.queueDeclare = Boolean(object.queueDeclare); + if (object.queueDurable != null) + message.queueDurable = Boolean(object.queueDurable); + if (object.autoAck != null) + message.autoAck = Boolean(object.autoAck); + if (object.consumerTag != null) + message.consumerTag = String(object.consumerTag); + if (object.queueDelete != null) + message.queueDelete = Boolean(object.queueDelete); + if (object.queueArg) { + if (typeof object.queueArg !== "object") + throw TypeError(".protos.args.RabbitReadArgs.queueArg: object expected"); + message.queueArg = {}; + for (var keys = Object.keys(object.queueArg), i = 0; i < keys.length; ++i) + message.queueArg[keys[i]] = String(object.queueArg[keys[i]]); } + if (object.excludeBindingKeyRegex != null) + message.excludeBindingKeyRegex = String(object.excludeBindingKeyRegex); return message; }; /** - * Creates a plain object from a TunnelGroupGCPPubSubOptions message. Also converts values to other types if specified. + * Creates a plain object from a RabbitReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupGCPPubSubOptions + * @memberof protos.args.RabbitReadArgs * @static - * @param {protos.opts.TunnelGroupGCPPubSubOptions} message TunnelGroupGCPPubSubOptions + * @param {protos.args.RabbitReadArgs} message RabbitReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupGCPPubSubOptions.toObject = function toObject(message, options) { + RabbitReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.queueArg = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.exchangeName = ""; + object.queueName = ""; + object.bindingKey = ""; + object.queueExclusive = false; + object.queueDeclare = false; + object.queueDurable = false; + object.autoAck = false; + object.consumerTag = ""; + object.queueDelete = false; + object.excludeBindingKeyRegex = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.GCPPubSubConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.GCPPubSubWriteArgs.toObject(message.args, options); + if (message.exchangeName != null && message.hasOwnProperty("exchangeName")) + object.exchangeName = message.exchangeName; + if (message.queueName != null && message.hasOwnProperty("queueName")) + object.queueName = message.queueName; + if (message.bindingKey != null && message.hasOwnProperty("bindingKey")) + object.bindingKey = message.bindingKey; + if (message.queueExclusive != null && message.hasOwnProperty("queueExclusive")) + object.queueExclusive = message.queueExclusive; + if (message.queueDeclare != null && message.hasOwnProperty("queueDeclare")) + object.queueDeclare = message.queueDeclare; + if (message.queueDurable != null && message.hasOwnProperty("queueDurable")) + object.queueDurable = message.queueDurable; + if (message.autoAck != null && message.hasOwnProperty("autoAck")) + object.autoAck = message.autoAck; + if (message.consumerTag != null && message.hasOwnProperty("consumerTag")) + object.consumerTag = message.consumerTag; + if (message.queueDelete != null && message.hasOwnProperty("queueDelete")) + object.queueDelete = message.queueDelete; + var keys2; + if (message.queueArg && (keys2 = Object.keys(message.queueArg)).length) { + object.queueArg = {}; + for (var j = 0; j < keys2.length; ++j) + object.queueArg[keys2[j]] = message.queueArg[keys2[j]]; + } + if (message.excludeBindingKeyRegex != null && message.hasOwnProperty("excludeBindingKeyRegex")) + object.excludeBindingKeyRegex = message.excludeBindingKeyRegex; return object; }; /** - * Converts this TunnelGroupGCPPubSubOptions to JSON. + * Converts this RabbitReadArgs to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupGCPPubSubOptions + * @memberof protos.args.RabbitReadArgs * @instance * @returns {Object.} JSON object */ - TunnelGroupGCPPubSubOptions.prototype.toJSON = function toJSON() { + RabbitReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupGCPPubSubOptions; + return RabbitReadArgs; })(); - opts.TunnelGroupKubeMQQueueOptions = (function() { + args.RabbitWriteArgs = (function() { /** - * Properties of a TunnelGroupKubeMQQueueOptions. - * @memberof protos.opts - * @interface ITunnelGroupKubeMQQueueOptions - * @property {protos.args.IKubeMQQueueConn|null} [_conn] TunnelGroupKubeMQQueueOptions _conn - * @property {protos.args.IKubeMQQueueWriteArgs|null} [args] TunnelGroupKubeMQQueueOptions args + * Properties of a RabbitWriteArgs. + * @memberof protos.args + * @interface IRabbitWriteArgs + * @property {string|null} [exchangeName] RabbitWriteArgs exchangeName + * @property {string|null} [routingKey] RabbitWriteArgs routingKey + * @property {string|null} [appId] RabbitWriteArgs appId + * @property {string|null} [exchangeType] RabbitWriteArgs exchangeType + * @property {boolean|null} [exchangeDeclare] RabbitWriteArgs exchangeDeclare + * @property {boolean|null} [exchangeDurable] RabbitWriteArgs exchangeDurable + * @property {boolean|null} [exchangeAutoDelete] RabbitWriteArgs exchangeAutoDelete */ /** - * Constructs a new TunnelGroupKubeMQQueueOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupKubeMQQueueOptions. - * @implements ITunnelGroupKubeMQQueueOptions + * Constructs a new RabbitWriteArgs. + * @memberof protos.args + * @classdesc Represents a RabbitWriteArgs. + * @implements IRabbitWriteArgs * @constructor - * @param {protos.opts.ITunnelGroupKubeMQQueueOptions=} [properties] Properties to set + * @param {protos.args.IRabbitWriteArgs=} [properties] Properties to set */ - function TunnelGroupKubeMQQueueOptions(properties) { + function RabbitWriteArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16708,88 +15223,153 @@ $root.protos = (function() { } /** - * TunnelGroupKubeMQQueueOptions _conn. - * @member {protos.args.IKubeMQQueueConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupKubeMQQueueOptions + * RabbitWriteArgs exchangeName. + * @member {string} exchangeName + * @memberof protos.args.RabbitWriteArgs * @instance */ - TunnelGroupKubeMQQueueOptions.prototype._conn = null; + RabbitWriteArgs.prototype.exchangeName = ""; /** - * TunnelGroupKubeMQQueueOptions args. - * @member {protos.args.IKubeMQQueueWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupKubeMQQueueOptions + * RabbitWriteArgs routingKey. + * @member {string} routingKey + * @memberof protos.args.RabbitWriteArgs + * @instance + */ + RabbitWriteArgs.prototype.routingKey = ""; + + /** + * RabbitWriteArgs appId. + * @member {string} appId + * @memberof protos.args.RabbitWriteArgs + * @instance + */ + RabbitWriteArgs.prototype.appId = ""; + + /** + * RabbitWriteArgs exchangeType. + * @member {string} exchangeType + * @memberof protos.args.RabbitWriteArgs + * @instance + */ + RabbitWriteArgs.prototype.exchangeType = ""; + + /** + * RabbitWriteArgs exchangeDeclare. + * @member {boolean} exchangeDeclare + * @memberof protos.args.RabbitWriteArgs + * @instance + */ + RabbitWriteArgs.prototype.exchangeDeclare = false; + + /** + * RabbitWriteArgs exchangeDurable. + * @member {boolean} exchangeDurable + * @memberof protos.args.RabbitWriteArgs + * @instance + */ + RabbitWriteArgs.prototype.exchangeDurable = false; + + /** + * RabbitWriteArgs exchangeAutoDelete. + * @member {boolean} exchangeAutoDelete + * @memberof protos.args.RabbitWriteArgs * @instance */ - TunnelGroupKubeMQQueueOptions.prototype.args = null; + RabbitWriteArgs.prototype.exchangeAutoDelete = false; /** - * Creates a new TunnelGroupKubeMQQueueOptions instance using the specified properties. + * Creates a new RabbitWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupKubeMQQueueOptions + * @memberof protos.args.RabbitWriteArgs * @static - * @param {protos.opts.ITunnelGroupKubeMQQueueOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupKubeMQQueueOptions} TunnelGroupKubeMQQueueOptions instance + * @param {protos.args.IRabbitWriteArgs=} [properties] Properties to set + * @returns {protos.args.RabbitWriteArgs} RabbitWriteArgs instance */ - TunnelGroupKubeMQQueueOptions.create = function create(properties) { - return new TunnelGroupKubeMQQueueOptions(properties); + RabbitWriteArgs.create = function create(properties) { + return new RabbitWriteArgs(properties); }; /** - * Encodes the specified TunnelGroupKubeMQQueueOptions message. Does not implicitly {@link protos.opts.TunnelGroupKubeMQQueueOptions.verify|verify} messages. + * Encodes the specified RabbitWriteArgs message. Does not implicitly {@link protos.args.RabbitWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupKubeMQQueueOptions + * @memberof protos.args.RabbitWriteArgs * @static - * @param {protos.opts.ITunnelGroupKubeMQQueueOptions} message TunnelGroupKubeMQQueueOptions message or plain object to encode + * @param {protos.args.IRabbitWriteArgs} message RabbitWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupKubeMQQueueOptions.encode = function encode(message, writer) { + RabbitWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.KubeMQQueueConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.KubeMQQueueWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified TunnelGroupKubeMQQueueOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupKubeMQQueueOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.TunnelGroupKubeMQQueueOptions - * @static - * @param {protos.opts.ITunnelGroupKubeMQQueueOptions} message TunnelGroupKubeMQQueueOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TunnelGroupKubeMQQueueOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + if (message.exchangeName != null && Object.hasOwnProperty.call(message, "exchangeName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.exchangeName); + if (message.routingKey != null && Object.hasOwnProperty.call(message, "routingKey")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.routingKey); + if (message.appId != null && Object.hasOwnProperty.call(message, "appId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.appId); + if (message.exchangeType != null && Object.hasOwnProperty.call(message, "exchangeType")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.exchangeType); + if (message.exchangeDeclare != null && Object.hasOwnProperty.call(message, "exchangeDeclare")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.exchangeDeclare); + if (message.exchangeDurable != null && Object.hasOwnProperty.call(message, "exchangeDurable")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.exchangeDurable); + if (message.exchangeAutoDelete != null && Object.hasOwnProperty.call(message, "exchangeAutoDelete")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.exchangeAutoDelete); + return writer; + }; /** - * Decodes a TunnelGroupKubeMQQueueOptions message from the specified reader or buffer. + * Encodes the specified RabbitWriteArgs message, length delimited. Does not implicitly {@link protos.args.RabbitWriteArgs.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.args.RabbitWriteArgs + * @static + * @param {protos.args.IRabbitWriteArgs} message RabbitWriteArgs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RabbitWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RabbitWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupKubeMQQueueOptions + * @memberof protos.args.RabbitWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupKubeMQQueueOptions} TunnelGroupKubeMQQueueOptions + * @returns {protos.args.RabbitWriteArgs} RabbitWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupKubeMQQueueOptions.decode = function decode(reader, length) { + RabbitWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupKubeMQQueueOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitWriteArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.KubeMQQueueConn.decode(reader, reader.uint32()); + message.exchangeName = reader.string(); break; case 2: - message.args = $root.protos.args.KubeMQQueueWriteArgs.decode(reader, reader.uint32()); + message.routingKey = reader.string(); + break; + case 3: + message.appId = reader.string(); + break; + case 4: + message.exchangeType = reader.string(); + break; + case 5: + message.exchangeDeclare = reader.bool(); + break; + case 6: + message.exchangeDurable = reader.bool(); + break; + case 7: + message.exchangeAutoDelete = reader.bool(); break; default: reader.skipType(tag & 7); @@ -16800,127 +15380,161 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupKubeMQQueueOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupKubeMQQueueOptions + * @memberof protos.args.RabbitWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupKubeMQQueueOptions} TunnelGroupKubeMQQueueOptions + * @returns {protos.args.RabbitWriteArgs} RabbitWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupKubeMQQueueOptions.decodeDelimited = function decodeDelimited(reader) { + RabbitWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupKubeMQQueueOptions message. + * Verifies a RabbitWriteArgs message. * @function verify - * @memberof protos.opts.TunnelGroupKubeMQQueueOptions + * @memberof protos.args.RabbitWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupKubeMQQueueOptions.verify = function verify(message) { + RabbitWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.KubeMQQueueConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.KubeMQQueueWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.exchangeName != null && message.hasOwnProperty("exchangeName")) + if (!$util.isString(message.exchangeName)) + return "exchangeName: string expected"; + if (message.routingKey != null && message.hasOwnProperty("routingKey")) + if (!$util.isString(message.routingKey)) + return "routingKey: string expected"; + if (message.appId != null && message.hasOwnProperty("appId")) + if (!$util.isString(message.appId)) + return "appId: string expected"; + if (message.exchangeType != null && message.hasOwnProperty("exchangeType")) + if (!$util.isString(message.exchangeType)) + return "exchangeType: string expected"; + if (message.exchangeDeclare != null && message.hasOwnProperty("exchangeDeclare")) + if (typeof message.exchangeDeclare !== "boolean") + return "exchangeDeclare: boolean expected"; + if (message.exchangeDurable != null && message.hasOwnProperty("exchangeDurable")) + if (typeof message.exchangeDurable !== "boolean") + return "exchangeDurable: boolean expected"; + if (message.exchangeAutoDelete != null && message.hasOwnProperty("exchangeAutoDelete")) + if (typeof message.exchangeAutoDelete !== "boolean") + return "exchangeAutoDelete: boolean expected"; return null; }; /** - * Creates a TunnelGroupKubeMQQueueOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupKubeMQQueueOptions + * @memberof protos.args.RabbitWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupKubeMQQueueOptions} TunnelGroupKubeMQQueueOptions + * @returns {protos.args.RabbitWriteArgs} RabbitWriteArgs */ - TunnelGroupKubeMQQueueOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupKubeMQQueueOptions) + RabbitWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.RabbitWriteArgs) return object; - var message = new $root.protos.opts.TunnelGroupKubeMQQueueOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupKubeMQQueueOptions._conn: object expected"); - message._conn = $root.protos.args.KubeMQQueueConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupKubeMQQueueOptions.args: object expected"); - message.args = $root.protos.args.KubeMQQueueWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.RabbitWriteArgs(); + if (object.exchangeName != null) + message.exchangeName = String(object.exchangeName); + if (object.routingKey != null) + message.routingKey = String(object.routingKey); + if (object.appId != null) + message.appId = String(object.appId); + if (object.exchangeType != null) + message.exchangeType = String(object.exchangeType); + if (object.exchangeDeclare != null) + message.exchangeDeclare = Boolean(object.exchangeDeclare); + if (object.exchangeDurable != null) + message.exchangeDurable = Boolean(object.exchangeDurable); + if (object.exchangeAutoDelete != null) + message.exchangeAutoDelete = Boolean(object.exchangeAutoDelete); return message; }; /** - * Creates a plain object from a TunnelGroupKubeMQQueueOptions message. Also converts values to other types if specified. + * Creates a plain object from a RabbitWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupKubeMQQueueOptions + * @memberof protos.args.RabbitWriteArgs * @static - * @param {protos.opts.TunnelGroupKubeMQQueueOptions} message TunnelGroupKubeMQQueueOptions + * @param {protos.args.RabbitWriteArgs} message RabbitWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupKubeMQQueueOptions.toObject = function toObject(message, options) { + RabbitWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.exchangeName = ""; + object.routingKey = ""; + object.appId = ""; + object.exchangeType = ""; + object.exchangeDeclare = false; + object.exchangeDurable = false; + object.exchangeAutoDelete = false; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.KubeMQQueueConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.KubeMQQueueWriteArgs.toObject(message.args, options); + if (message.exchangeName != null && message.hasOwnProperty("exchangeName")) + object.exchangeName = message.exchangeName; + if (message.routingKey != null && message.hasOwnProperty("routingKey")) + object.routingKey = message.routingKey; + if (message.appId != null && message.hasOwnProperty("appId")) + object.appId = message.appId; + if (message.exchangeType != null && message.hasOwnProperty("exchangeType")) + object.exchangeType = message.exchangeType; + if (message.exchangeDeclare != null && message.hasOwnProperty("exchangeDeclare")) + object.exchangeDeclare = message.exchangeDeclare; + if (message.exchangeDurable != null && message.hasOwnProperty("exchangeDurable")) + object.exchangeDurable = message.exchangeDurable; + if (message.exchangeAutoDelete != null && message.hasOwnProperty("exchangeAutoDelete")) + object.exchangeAutoDelete = message.exchangeAutoDelete; return object; }; /** - * Converts this TunnelGroupKubeMQQueueOptions to JSON. + * Converts this RabbitWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupKubeMQQueueOptions + * @memberof protos.args.RabbitWriteArgs * @instance * @returns {Object.} JSON object */ - TunnelGroupKubeMQQueueOptions.prototype.toJSON = function toJSON() { + RabbitWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupKubeMQQueueOptions; + return RabbitWriteArgs; })(); - opts.TunnelGroupPulsarOptions = (function() { + args.RabbitStreamsConn = (function() { /** - * Properties of a TunnelGroupPulsarOptions. - * @memberof protos.opts - * @interface ITunnelGroupPulsarOptions - * @property {protos.args.IPulsarConn|null} [_conn] TunnelGroupPulsarOptions _conn - * @property {protos.args.IPulsarWriteArgs|null} [args] TunnelGroupPulsarOptions args + * Properties of a RabbitStreamsConn. + * @memberof protos.args + * @interface IRabbitStreamsConn + * @property {string|null} [dsn] RabbitStreamsConn dsn + * @property {boolean|null} [useTls] RabbitStreamsConn useTls + * @property {boolean|null} [tlsSkipVerify] RabbitStreamsConn tlsSkipVerify + * @property {string|null} [username] RabbitStreamsConn username + * @property {string|null} [password] RabbitStreamsConn password + * @property {string|null} [clientName] RabbitStreamsConn clientName */ /** - * Constructs a new TunnelGroupPulsarOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupPulsarOptions. - * @implements ITunnelGroupPulsarOptions + * Constructs a new RabbitStreamsConn. + * @memberof protos.args + * @classdesc Represents a RabbitStreamsConn. + * @implements IRabbitStreamsConn * @constructor - * @param {protos.opts.ITunnelGroupPulsarOptions=} [properties] Properties to set + * @param {protos.args.IRabbitStreamsConn=} [properties] Properties to set */ - function TunnelGroupPulsarOptions(properties) { + function RabbitStreamsConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16928,88 +15542,140 @@ $root.protos = (function() { } /** - * TunnelGroupPulsarOptions _conn. - * @member {protos.args.IPulsarConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupPulsarOptions + * RabbitStreamsConn dsn. + * @member {string} dsn + * @memberof protos.args.RabbitStreamsConn * @instance */ - TunnelGroupPulsarOptions.prototype._conn = null; + RabbitStreamsConn.prototype.dsn = ""; /** - * TunnelGroupPulsarOptions args. - * @member {protos.args.IPulsarWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupPulsarOptions + * RabbitStreamsConn useTls. + * @member {boolean} useTls + * @memberof protos.args.RabbitStreamsConn + * @instance + */ + RabbitStreamsConn.prototype.useTls = false; + + /** + * RabbitStreamsConn tlsSkipVerify. + * @member {boolean} tlsSkipVerify + * @memberof protos.args.RabbitStreamsConn + * @instance + */ + RabbitStreamsConn.prototype.tlsSkipVerify = false; + + /** + * RabbitStreamsConn username. + * @member {string} username + * @memberof protos.args.RabbitStreamsConn + * @instance + */ + RabbitStreamsConn.prototype.username = ""; + + /** + * RabbitStreamsConn password. + * @member {string} password + * @memberof protos.args.RabbitStreamsConn + * @instance + */ + RabbitStreamsConn.prototype.password = ""; + + /** + * RabbitStreamsConn clientName. + * @member {string} clientName + * @memberof protos.args.RabbitStreamsConn * @instance */ - TunnelGroupPulsarOptions.prototype.args = null; + RabbitStreamsConn.prototype.clientName = ""; /** - * Creates a new TunnelGroupPulsarOptions instance using the specified properties. + * Creates a new RabbitStreamsConn instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupPulsarOptions + * @memberof protos.args.RabbitStreamsConn * @static - * @param {protos.opts.ITunnelGroupPulsarOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupPulsarOptions} TunnelGroupPulsarOptions instance + * @param {protos.args.IRabbitStreamsConn=} [properties] Properties to set + * @returns {protos.args.RabbitStreamsConn} RabbitStreamsConn instance */ - TunnelGroupPulsarOptions.create = function create(properties) { - return new TunnelGroupPulsarOptions(properties); + RabbitStreamsConn.create = function create(properties) { + return new RabbitStreamsConn(properties); }; /** - * Encodes the specified TunnelGroupPulsarOptions message. Does not implicitly {@link protos.opts.TunnelGroupPulsarOptions.verify|verify} messages. + * Encodes the specified RabbitStreamsConn message. Does not implicitly {@link protos.args.RabbitStreamsConn.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupPulsarOptions + * @memberof protos.args.RabbitStreamsConn * @static - * @param {protos.opts.ITunnelGroupPulsarOptions} message TunnelGroupPulsarOptions message or plain object to encode + * @param {protos.args.IRabbitStreamsConn} message RabbitStreamsConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupPulsarOptions.encode = function encode(message, writer) { + RabbitStreamsConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.PulsarConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.PulsarWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dsn != null && Object.hasOwnProperty.call(message, "dsn")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dsn); + if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useTls); + if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.tlsSkipVerify); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.username); + if (message.password != null && Object.hasOwnProperty.call(message, "password")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.password); + if (message.clientName != null && Object.hasOwnProperty.call(message, "clientName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.clientName); return writer; }; /** - * Encodes the specified TunnelGroupPulsarOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupPulsarOptions.verify|verify} messages. + * Encodes the specified RabbitStreamsConn message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupPulsarOptions + * @memberof protos.args.RabbitStreamsConn * @static - * @param {protos.opts.ITunnelGroupPulsarOptions} message TunnelGroupPulsarOptions message or plain object to encode + * @param {protos.args.IRabbitStreamsConn} message RabbitStreamsConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupPulsarOptions.encodeDelimited = function encodeDelimited(message, writer) { + RabbitStreamsConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupPulsarOptions message from the specified reader or buffer. + * Decodes a RabbitStreamsConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupPulsarOptions + * @memberof protos.args.RabbitStreamsConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupPulsarOptions} TunnelGroupPulsarOptions + * @returns {protos.args.RabbitStreamsConn} RabbitStreamsConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupPulsarOptions.decode = function decode(reader, length) { + RabbitStreamsConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupPulsarOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitStreamsConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.PulsarConn.decode(reader, reader.uint32()); + message.dsn = reader.string(); break; case 2: - message.args = $root.protos.args.PulsarWriteArgs.decode(reader, reader.uint32()); + message.useTls = reader.bool(); + break; + case 3: + message.tlsSkipVerify = reader.bool(); + break; + case 4: + message.username = reader.string(); + break; + case 5: + message.password = reader.string(); + break; + case 6: + message.clientName = reader.string(); break; default: reader.skipType(tag & 7); @@ -17020,127 +15686,152 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupPulsarOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitStreamsConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupPulsarOptions + * @memberof protos.args.RabbitStreamsConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupPulsarOptions} TunnelGroupPulsarOptions + * @returns {protos.args.RabbitStreamsConn} RabbitStreamsConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupPulsarOptions.decodeDelimited = function decodeDelimited(reader) { + RabbitStreamsConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupPulsarOptions message. + * Verifies a RabbitStreamsConn message. * @function verify - * @memberof protos.opts.TunnelGroupPulsarOptions + * @memberof protos.args.RabbitStreamsConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupPulsarOptions.verify = function verify(message) { + RabbitStreamsConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.PulsarConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.PulsarWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.dsn != null && message.hasOwnProperty("dsn")) + if (!$util.isString(message.dsn)) + return "dsn: string expected"; + if (message.useTls != null && message.hasOwnProperty("useTls")) + if (typeof message.useTls !== "boolean") + return "useTls: boolean expected"; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + if (typeof message.tlsSkipVerify !== "boolean") + return "tlsSkipVerify: boolean expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.password != null && message.hasOwnProperty("password")) + if (!$util.isString(message.password)) + return "password: string expected"; + if (message.clientName != null && message.hasOwnProperty("clientName")) + if (!$util.isString(message.clientName)) + return "clientName: string expected"; return null; }; /** - * Creates a TunnelGroupPulsarOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitStreamsConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupPulsarOptions + * @memberof protos.args.RabbitStreamsConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupPulsarOptions} TunnelGroupPulsarOptions + * @returns {protos.args.RabbitStreamsConn} RabbitStreamsConn */ - TunnelGroupPulsarOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupPulsarOptions) + RabbitStreamsConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.RabbitStreamsConn) return object; - var message = new $root.protos.opts.TunnelGroupPulsarOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupPulsarOptions._conn: object expected"); - message._conn = $root.protos.args.PulsarConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupPulsarOptions.args: object expected"); - message.args = $root.protos.args.PulsarWriteArgs.fromObject(object.args); - } + var message = new $root.protos.args.RabbitStreamsConn(); + if (object.dsn != null) + message.dsn = String(object.dsn); + if (object.useTls != null) + message.useTls = Boolean(object.useTls); + if (object.tlsSkipVerify != null) + message.tlsSkipVerify = Boolean(object.tlsSkipVerify); + if (object.username != null) + message.username = String(object.username); + if (object.password != null) + message.password = String(object.password); + if (object.clientName != null) + message.clientName = String(object.clientName); return message; }; /** - * Creates a plain object from a TunnelGroupPulsarOptions message. Also converts values to other types if specified. + * Creates a plain object from a RabbitStreamsConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupPulsarOptions + * @memberof protos.args.RabbitStreamsConn * @static - * @param {protos.opts.TunnelGroupPulsarOptions} message TunnelGroupPulsarOptions + * @param {protos.args.RabbitStreamsConn} message RabbitStreamsConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupPulsarOptions.toObject = function toObject(message, options) { + RabbitStreamsConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.dsn = ""; + object.useTls = false; + object.tlsSkipVerify = false; + object.username = ""; + object.password = ""; + object.clientName = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.PulsarConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.PulsarWriteArgs.toObject(message.args, options); + if (message.dsn != null && message.hasOwnProperty("dsn")) + object.dsn = message.dsn; + if (message.useTls != null && message.hasOwnProperty("useTls")) + object.useTls = message.useTls; + if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) + object.tlsSkipVerify = message.tlsSkipVerify; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.password != null && message.hasOwnProperty("password")) + object.password = message.password; + if (message.clientName != null && message.hasOwnProperty("clientName")) + object.clientName = message.clientName; return object; }; /** - * Converts this TunnelGroupPulsarOptions to JSON. + * Converts this RabbitStreamsConn to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupPulsarOptions + * @memberof protos.args.RabbitStreamsConn * @instance * @returns {Object.} JSON object */ - TunnelGroupPulsarOptions.prototype.toJSON = function toJSON() { + RabbitStreamsConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupPulsarOptions; + return RabbitStreamsConn; })(); - opts.TunnelGroupAWSKinesisOptions = (function() { + args.RabbitStreamsOffsetOptions = (function() { /** - * Properties of a TunnelGroupAWSKinesisOptions. - * @memberof protos.opts - * @interface ITunnelGroupAWSKinesisOptions - * @property {protos.args.IAWSKinesisConn|null} [_conn] TunnelGroupAWSKinesisOptions _conn - * @property {protos.args.IAWSKinesisWriteArgs|null} [args] TunnelGroupAWSKinesisOptions args + * Properties of a RabbitStreamsOffsetOptions. + * @memberof protos.args + * @interface IRabbitStreamsOffsetOptions + * @property {number|Long|null} [specificOffset] RabbitStreamsOffsetOptions specificOffset + * @property {boolean|null} [lastOffset] RabbitStreamsOffsetOptions lastOffset + * @property {boolean|null} [lastConsumed] RabbitStreamsOffsetOptions lastConsumed + * @property {boolean|null} [firstOffset] RabbitStreamsOffsetOptions firstOffset + * @property {boolean|null} [nextOffset] RabbitStreamsOffsetOptions nextOffset */ /** - * Constructs a new TunnelGroupAWSKinesisOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupAWSKinesisOptions. - * @implements ITunnelGroupAWSKinesisOptions + * Constructs a new RabbitStreamsOffsetOptions. + * @memberof protos.args + * @classdesc Represents a RabbitStreamsOffsetOptions. + * @implements IRabbitStreamsOffsetOptions * @constructor - * @param {protos.opts.ITunnelGroupAWSKinesisOptions=} [properties] Properties to set + * @param {protos.args.IRabbitStreamsOffsetOptions=} [properties] Properties to set */ - function TunnelGroupAWSKinesisOptions(properties) { + function RabbitStreamsOffsetOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17148,88 +15839,127 @@ $root.protos = (function() { } /** - * TunnelGroupAWSKinesisOptions _conn. - * @member {protos.args.IAWSKinesisConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupAWSKinesisOptions + * RabbitStreamsOffsetOptions specificOffset. + * @member {number|Long} specificOffset + * @memberof protos.args.RabbitStreamsOffsetOptions * @instance */ - TunnelGroupAWSKinesisOptions.prototype._conn = null; + RabbitStreamsOffsetOptions.prototype.specificOffset = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * TunnelGroupAWSKinesisOptions args. - * @member {protos.args.IAWSKinesisWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupAWSKinesisOptions + * RabbitStreamsOffsetOptions lastOffset. + * @member {boolean} lastOffset + * @memberof protos.args.RabbitStreamsOffsetOptions * @instance */ - TunnelGroupAWSKinesisOptions.prototype.args = null; + RabbitStreamsOffsetOptions.prototype.lastOffset = false; + + /** + * RabbitStreamsOffsetOptions lastConsumed. + * @member {boolean} lastConsumed + * @memberof protos.args.RabbitStreamsOffsetOptions + * @instance + */ + RabbitStreamsOffsetOptions.prototype.lastConsumed = false; + + /** + * RabbitStreamsOffsetOptions firstOffset. + * @member {boolean} firstOffset + * @memberof protos.args.RabbitStreamsOffsetOptions + * @instance + */ + RabbitStreamsOffsetOptions.prototype.firstOffset = false; + + /** + * RabbitStreamsOffsetOptions nextOffset. + * @member {boolean} nextOffset + * @memberof protos.args.RabbitStreamsOffsetOptions + * @instance + */ + RabbitStreamsOffsetOptions.prototype.nextOffset = false; /** - * Creates a new TunnelGroupAWSKinesisOptions instance using the specified properties. + * Creates a new RabbitStreamsOffsetOptions instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupAWSKinesisOptions + * @memberof protos.args.RabbitStreamsOffsetOptions * @static - * @param {protos.opts.ITunnelGroupAWSKinesisOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupAWSKinesisOptions} TunnelGroupAWSKinesisOptions instance + * @param {protos.args.IRabbitStreamsOffsetOptions=} [properties] Properties to set + * @returns {protos.args.RabbitStreamsOffsetOptions} RabbitStreamsOffsetOptions instance */ - TunnelGroupAWSKinesisOptions.create = function create(properties) { - return new TunnelGroupAWSKinesisOptions(properties); + RabbitStreamsOffsetOptions.create = function create(properties) { + return new RabbitStreamsOffsetOptions(properties); }; /** - * Encodes the specified TunnelGroupAWSKinesisOptions message. Does not implicitly {@link protos.opts.TunnelGroupAWSKinesisOptions.verify|verify} messages. + * Encodes the specified RabbitStreamsOffsetOptions message. Does not implicitly {@link protos.args.RabbitStreamsOffsetOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupAWSKinesisOptions + * @memberof protos.args.RabbitStreamsOffsetOptions * @static - * @param {protos.opts.ITunnelGroupAWSKinesisOptions} message TunnelGroupAWSKinesisOptions message or plain object to encode + * @param {protos.args.IRabbitStreamsOffsetOptions} message RabbitStreamsOffsetOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupAWSKinesisOptions.encode = function encode(message, writer) { + RabbitStreamsOffsetOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AWSKinesisConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AWSKinesisWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.specificOffset != null && Object.hasOwnProperty.call(message, "specificOffset")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.specificOffset); + if (message.lastOffset != null && Object.hasOwnProperty.call(message, "lastOffset")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.lastOffset); + if (message.lastConsumed != null && Object.hasOwnProperty.call(message, "lastConsumed")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.lastConsumed); + if (message.firstOffset != null && Object.hasOwnProperty.call(message, "firstOffset")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.firstOffset); + if (message.nextOffset != null && Object.hasOwnProperty.call(message, "nextOffset")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.nextOffset); return writer; }; /** - * Encodes the specified TunnelGroupAWSKinesisOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupAWSKinesisOptions.verify|verify} messages. + * Encodes the specified RabbitStreamsOffsetOptions message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsOffsetOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupAWSKinesisOptions + * @memberof protos.args.RabbitStreamsOffsetOptions * @static - * @param {protos.opts.ITunnelGroupAWSKinesisOptions} message TunnelGroupAWSKinesisOptions message or plain object to encode + * @param {protos.args.IRabbitStreamsOffsetOptions} message RabbitStreamsOffsetOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupAWSKinesisOptions.encodeDelimited = function encodeDelimited(message, writer) { + RabbitStreamsOffsetOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupAWSKinesisOptions message from the specified reader or buffer. + * Decodes a RabbitStreamsOffsetOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupAWSKinesisOptions + * @memberof protos.args.RabbitStreamsOffsetOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupAWSKinesisOptions} TunnelGroupAWSKinesisOptions + * @returns {protos.args.RabbitStreamsOffsetOptions} RabbitStreamsOffsetOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupAWSKinesisOptions.decode = function decode(reader, length) { + RabbitStreamsOffsetOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupAWSKinesisOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitStreamsOffsetOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.AWSKinesisConn.decode(reader, reader.uint32()); + message.specificOffset = reader.int64(); break; case 2: - message.args = $root.protos.args.AWSKinesisWriteArgs.decode(reader, reader.uint32()); + message.lastOffset = reader.bool(); + break; + case 3: + message.lastConsumed = reader.bool(); + break; + case 4: + message.firstOffset = reader.bool(); + break; + case 5: + message.nextOffset = reader.bool(); break; default: reader.skipType(tag & 7); @@ -17240,127 +15970,157 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupAWSKinesisOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitStreamsOffsetOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupAWSKinesisOptions + * @memberof protos.args.RabbitStreamsOffsetOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupAWSKinesisOptions} TunnelGroupAWSKinesisOptions + * @returns {protos.args.RabbitStreamsOffsetOptions} RabbitStreamsOffsetOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupAWSKinesisOptions.decodeDelimited = function decodeDelimited(reader) { + RabbitStreamsOffsetOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupAWSKinesisOptions message. + * Verifies a RabbitStreamsOffsetOptions message. * @function verify - * @memberof protos.opts.TunnelGroupAWSKinesisOptions + * @memberof protos.args.RabbitStreamsOffsetOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupAWSKinesisOptions.verify = function verify(message) { + RabbitStreamsOffsetOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AWSKinesisConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AWSKinesisWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.specificOffset != null && message.hasOwnProperty("specificOffset")) + if (!$util.isInteger(message.specificOffset) && !(message.specificOffset && $util.isInteger(message.specificOffset.low) && $util.isInteger(message.specificOffset.high))) + return "specificOffset: integer|Long expected"; + if (message.lastOffset != null && message.hasOwnProperty("lastOffset")) + if (typeof message.lastOffset !== "boolean") + return "lastOffset: boolean expected"; + if (message.lastConsumed != null && message.hasOwnProperty("lastConsumed")) + if (typeof message.lastConsumed !== "boolean") + return "lastConsumed: boolean expected"; + if (message.firstOffset != null && message.hasOwnProperty("firstOffset")) + if (typeof message.firstOffset !== "boolean") + return "firstOffset: boolean expected"; + if (message.nextOffset != null && message.hasOwnProperty("nextOffset")) + if (typeof message.nextOffset !== "boolean") + return "nextOffset: boolean expected"; return null; }; /** - * Creates a TunnelGroupAWSKinesisOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitStreamsOffsetOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupAWSKinesisOptions + * @memberof protos.args.RabbitStreamsOffsetOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupAWSKinesisOptions} TunnelGroupAWSKinesisOptions + * @returns {protos.args.RabbitStreamsOffsetOptions} RabbitStreamsOffsetOptions */ - TunnelGroupAWSKinesisOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupAWSKinesisOptions) + RabbitStreamsOffsetOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.RabbitStreamsOffsetOptions) return object; - var message = new $root.protos.opts.TunnelGroupAWSKinesisOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupAWSKinesisOptions._conn: object expected"); - message._conn = $root.protos.args.AWSKinesisConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupAWSKinesisOptions.args: object expected"); - message.args = $root.protos.args.AWSKinesisWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a TunnelGroupAWSKinesisOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.TunnelGroupAWSKinesisOptions - * @static - * @param {protos.opts.TunnelGroupAWSKinesisOptions} message TunnelGroupAWSKinesisOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TunnelGroupAWSKinesisOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; + var message = new $root.protos.args.RabbitStreamsOffsetOptions(); + if (object.specificOffset != null) + if ($util.Long) + (message.specificOffset = $util.Long.fromValue(object.specificOffset)).unsigned = false; + else if (typeof object.specificOffset === "string") + message.specificOffset = parseInt(object.specificOffset, 10); + else if (typeof object.specificOffset === "number") + message.specificOffset = object.specificOffset; + else if (typeof object.specificOffset === "object") + message.specificOffset = new $util.LongBits(object.specificOffset.low >>> 0, object.specificOffset.high >>> 0).toNumber(); + if (object.lastOffset != null) + message.lastOffset = Boolean(object.lastOffset); + if (object.lastConsumed != null) + message.lastConsumed = Boolean(object.lastConsumed); + if (object.firstOffset != null) + message.firstOffset = Boolean(object.firstOffset); + if (object.nextOffset != null) + message.nextOffset = Boolean(object.nextOffset); + return message; + }; + + /** + * Creates a plain object from a RabbitStreamsOffsetOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.args.RabbitStreamsOffsetOptions + * @static + * @param {protos.args.RabbitStreamsOffsetOptions} message RabbitStreamsOffsetOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RabbitStreamsOffsetOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.specificOffset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.specificOffset = options.longs === String ? "0" : 0; + object.lastOffset = false; + object.lastConsumed = false; + object.firstOffset = false; + object.nextOffset = false; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AWSKinesisConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AWSKinesisWriteArgs.toObject(message.args, options); + if (message.specificOffset != null && message.hasOwnProperty("specificOffset")) + if (typeof message.specificOffset === "number") + object.specificOffset = options.longs === String ? String(message.specificOffset) : message.specificOffset; + else + object.specificOffset = options.longs === String ? $util.Long.prototype.toString.call(message.specificOffset) : options.longs === Number ? new $util.LongBits(message.specificOffset.low >>> 0, message.specificOffset.high >>> 0).toNumber() : message.specificOffset; + if (message.lastOffset != null && message.hasOwnProperty("lastOffset")) + object.lastOffset = message.lastOffset; + if (message.lastConsumed != null && message.hasOwnProperty("lastConsumed")) + object.lastConsumed = message.lastConsumed; + if (message.firstOffset != null && message.hasOwnProperty("firstOffset")) + object.firstOffset = message.firstOffset; + if (message.nextOffset != null && message.hasOwnProperty("nextOffset")) + object.nextOffset = message.nextOffset; return object; }; /** - * Converts this TunnelGroupAWSKinesisOptions to JSON. + * Converts this RabbitStreamsOffsetOptions to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupAWSKinesisOptions + * @memberof protos.args.RabbitStreamsOffsetOptions * @instance * @returns {Object.} JSON object */ - TunnelGroupAWSKinesisOptions.prototype.toJSON = function toJSON() { + RabbitStreamsOffsetOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupAWSKinesisOptions; + return RabbitStreamsOffsetOptions; })(); - opts.TunnelGroupMemphisOptions = (function() { + args.RabbitStreamsReadArgs = (function() { /** - * Properties of a TunnelGroupMemphisOptions. - * @memberof protos.opts - * @interface ITunnelGroupMemphisOptions - * @property {protos.args.IMemphisConn|null} [_conn] TunnelGroupMemphisOptions _conn - * @property {protos.args.IMemphisWriteArgs|null} [args] TunnelGroupMemphisOptions args + * Properties of a RabbitStreamsReadArgs. + * @memberof protos.args + * @interface IRabbitStreamsReadArgs + * @property {string|null} [stream] RabbitStreamsReadArgs stream + * @property {boolean|null} [declareStream] RabbitStreamsReadArgs declareStream + * @property {string|null} [declareStreamSize] RabbitStreamsReadArgs declareStreamSize + * @property {protos.args.IRabbitStreamsOffsetOptions|null} [offsetOptions] RabbitStreamsReadArgs offsetOptions */ /** - * Constructs a new TunnelGroupMemphisOptions. - * @memberof protos.opts - * @classdesc Represents a TunnelGroupMemphisOptions. - * @implements ITunnelGroupMemphisOptions + * Constructs a new RabbitStreamsReadArgs. + * @memberof protos.args + * @classdesc Represents a RabbitStreamsReadArgs. + * @implements IRabbitStreamsReadArgs * @constructor - * @param {protos.opts.ITunnelGroupMemphisOptions=} [properties] Properties to set + * @param {protos.args.IRabbitStreamsReadArgs=} [properties] Properties to set */ - function TunnelGroupMemphisOptions(properties) { + function RabbitStreamsReadArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17368,88 +16128,114 @@ $root.protos = (function() { } /** - * TunnelGroupMemphisOptions _conn. - * @member {protos.args.IMemphisConn|null|undefined} _conn - * @memberof protos.opts.TunnelGroupMemphisOptions + * RabbitStreamsReadArgs stream. + * @member {string} stream + * @memberof protos.args.RabbitStreamsReadArgs * @instance */ - TunnelGroupMemphisOptions.prototype._conn = null; + RabbitStreamsReadArgs.prototype.stream = ""; /** - * TunnelGroupMemphisOptions args. - * @member {protos.args.IMemphisWriteArgs|null|undefined} args - * @memberof protos.opts.TunnelGroupMemphisOptions + * RabbitStreamsReadArgs declareStream. + * @member {boolean} declareStream + * @memberof protos.args.RabbitStreamsReadArgs + * @instance + */ + RabbitStreamsReadArgs.prototype.declareStream = false; + + /** + * RabbitStreamsReadArgs declareStreamSize. + * @member {string} declareStreamSize + * @memberof protos.args.RabbitStreamsReadArgs + * @instance + */ + RabbitStreamsReadArgs.prototype.declareStreamSize = ""; + + /** + * RabbitStreamsReadArgs offsetOptions. + * @member {protos.args.IRabbitStreamsOffsetOptions|null|undefined} offsetOptions + * @memberof protos.args.RabbitStreamsReadArgs * @instance */ - TunnelGroupMemphisOptions.prototype.args = null; + RabbitStreamsReadArgs.prototype.offsetOptions = null; /** - * Creates a new TunnelGroupMemphisOptions instance using the specified properties. + * Creates a new RabbitStreamsReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.TunnelGroupMemphisOptions + * @memberof protos.args.RabbitStreamsReadArgs * @static - * @param {protos.opts.ITunnelGroupMemphisOptions=} [properties] Properties to set - * @returns {protos.opts.TunnelGroupMemphisOptions} TunnelGroupMemphisOptions instance + * @param {protos.args.IRabbitStreamsReadArgs=} [properties] Properties to set + * @returns {protos.args.RabbitStreamsReadArgs} RabbitStreamsReadArgs instance */ - TunnelGroupMemphisOptions.create = function create(properties) { - return new TunnelGroupMemphisOptions(properties); + RabbitStreamsReadArgs.create = function create(properties) { + return new RabbitStreamsReadArgs(properties); }; /** - * Encodes the specified TunnelGroupMemphisOptions message. Does not implicitly {@link protos.opts.TunnelGroupMemphisOptions.verify|verify} messages. + * Encodes the specified RabbitStreamsReadArgs message. Does not implicitly {@link protos.args.RabbitStreamsReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.TunnelGroupMemphisOptions + * @memberof protos.args.RabbitStreamsReadArgs * @static - * @param {protos.opts.ITunnelGroupMemphisOptions} message TunnelGroupMemphisOptions message or plain object to encode + * @param {protos.args.IRabbitStreamsReadArgs} message RabbitStreamsReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupMemphisOptions.encode = function encode(message, writer) { + RabbitStreamsReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.MemphisConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.MemphisWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.stream != null && Object.hasOwnProperty.call(message, "stream")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.stream); + if (message.declareStream != null && Object.hasOwnProperty.call(message, "declareStream")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.declareStream); + if (message.declareStreamSize != null && Object.hasOwnProperty.call(message, "declareStreamSize")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.declareStreamSize); + if (message.offsetOptions != null && Object.hasOwnProperty.call(message, "offsetOptions")) + $root.protos.args.RabbitStreamsOffsetOptions.encode(message.offsetOptions, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified TunnelGroupMemphisOptions message, length delimited. Does not implicitly {@link protos.opts.TunnelGroupMemphisOptions.verify|verify} messages. + * Encodes the specified RabbitStreamsReadArgs message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.TunnelGroupMemphisOptions + * @memberof protos.args.RabbitStreamsReadArgs * @static - * @param {protos.opts.ITunnelGroupMemphisOptions} message TunnelGroupMemphisOptions message or plain object to encode + * @param {protos.args.IRabbitStreamsReadArgs} message RabbitStreamsReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TunnelGroupMemphisOptions.encodeDelimited = function encodeDelimited(message, writer) { + RabbitStreamsReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TunnelGroupMemphisOptions message from the specified reader or buffer. + * Decodes a RabbitStreamsReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.TunnelGroupMemphisOptions + * @memberof protos.args.RabbitStreamsReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.TunnelGroupMemphisOptions} TunnelGroupMemphisOptions + * @returns {protos.args.RabbitStreamsReadArgs} RabbitStreamsReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupMemphisOptions.decode = function decode(reader, length) { + RabbitStreamsReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.TunnelGroupMemphisOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitStreamsReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.MemphisConn.decode(reader, reader.uint32()); + message.stream = reader.string(); break; case 2: - message.args = $root.protos.args.MemphisWriteArgs.decode(reader, reader.uint32()); + message.declareStream = reader.bool(); + break; + case 3: + message.declareStreamSize = reader.string(); + break; + case 4: + message.offsetOptions = $root.protos.args.RabbitStreamsOffsetOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -17460,133 +16246,139 @@ $root.protos = (function() { }; /** - * Decodes a TunnelGroupMemphisOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitStreamsReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.TunnelGroupMemphisOptions + * @memberof protos.args.RabbitStreamsReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.TunnelGroupMemphisOptions} TunnelGroupMemphisOptions + * @returns {protos.args.RabbitStreamsReadArgs} RabbitStreamsReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TunnelGroupMemphisOptions.decodeDelimited = function decodeDelimited(reader) { + RabbitStreamsReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TunnelGroupMemphisOptions message. + * Verifies a RabbitStreamsReadArgs message. * @function verify - * @memberof protos.opts.TunnelGroupMemphisOptions + * @memberof protos.args.RabbitStreamsReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TunnelGroupMemphisOptions.verify = function verify(message) { + RabbitStreamsReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.MemphisConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.MemphisWriteArgs.verify(message.args); + if (message.stream != null && message.hasOwnProperty("stream")) + if (!$util.isString(message.stream)) + return "stream: string expected"; + if (message.declareStream != null && message.hasOwnProperty("declareStream")) + if (typeof message.declareStream !== "boolean") + return "declareStream: boolean expected"; + if (message.declareStreamSize != null && message.hasOwnProperty("declareStreamSize")) + if (!$util.isString(message.declareStreamSize)) + return "declareStreamSize: string expected"; + if (message.offsetOptions != null && message.hasOwnProperty("offsetOptions")) { + var error = $root.protos.args.RabbitStreamsOffsetOptions.verify(message.offsetOptions); if (error) - return "args." + error; + return "offsetOptions." + error; } return null; }; /** - * Creates a TunnelGroupMemphisOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitStreamsReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.TunnelGroupMemphisOptions + * @memberof protos.args.RabbitStreamsReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.TunnelGroupMemphisOptions} TunnelGroupMemphisOptions + * @returns {protos.args.RabbitStreamsReadArgs} RabbitStreamsReadArgs */ - TunnelGroupMemphisOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.TunnelGroupMemphisOptions) + RabbitStreamsReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.RabbitStreamsReadArgs) return object; - var message = new $root.protos.opts.TunnelGroupMemphisOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.TunnelGroupMemphisOptions._conn: object expected"); - message._conn = $root.protos.args.MemphisConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.TunnelGroupMemphisOptions.args: object expected"); - message.args = $root.protos.args.MemphisWriteArgs.fromObject(object.args); + var message = new $root.protos.args.RabbitStreamsReadArgs(); + if (object.stream != null) + message.stream = String(object.stream); + if (object.declareStream != null) + message.declareStream = Boolean(object.declareStream); + if (object.declareStreamSize != null) + message.declareStreamSize = String(object.declareStreamSize); + if (object.offsetOptions != null) { + if (typeof object.offsetOptions !== "object") + throw TypeError(".protos.args.RabbitStreamsReadArgs.offsetOptions: object expected"); + message.offsetOptions = $root.protos.args.RabbitStreamsOffsetOptions.fromObject(object.offsetOptions); } return message; }; /** - * Creates a plain object from a TunnelGroupMemphisOptions message. Also converts values to other types if specified. + * Creates a plain object from a RabbitStreamsReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.TunnelGroupMemphisOptions + * @memberof protos.args.RabbitStreamsReadArgs * @static - * @param {protos.opts.TunnelGroupMemphisOptions} message TunnelGroupMemphisOptions + * @param {protos.args.RabbitStreamsReadArgs} message RabbitStreamsReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TunnelGroupMemphisOptions.toObject = function toObject(message, options) { + RabbitStreamsReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.stream = ""; + object.declareStream = false; + object.declareStreamSize = ""; + object.offsetOptions = null; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.MemphisConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.MemphisWriteArgs.toObject(message.args, options); + if (message.stream != null && message.hasOwnProperty("stream")) + object.stream = message.stream; + if (message.declareStream != null && message.hasOwnProperty("declareStream")) + object.declareStream = message.declareStream; + if (message.declareStreamSize != null && message.hasOwnProperty("declareStreamSize")) + object.declareStreamSize = message.declareStreamSize; + if (message.offsetOptions != null && message.hasOwnProperty("offsetOptions")) + object.offsetOptions = $root.protos.args.RabbitStreamsOffsetOptions.toObject(message.offsetOptions, options); return object; }; /** - * Converts this TunnelGroupMemphisOptions to JSON. + * Converts this RabbitStreamsReadArgs to JSON. * @function toJSON - * @memberof protos.opts.TunnelGroupMemphisOptions + * @memberof protos.args.RabbitStreamsReadArgs * @instance * @returns {Object.} JSON object */ - TunnelGroupMemphisOptions.prototype.toJSON = function toJSON() { + RabbitStreamsReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TunnelGroupMemphisOptions; + return RabbitStreamsReadArgs; })(); - opts.GlobalCLIOptions = (function() { + args.RabbitStreamsWriteArgs = (function() { /** - * Properties of a GlobalCLIOptions. - * @memberof protos.opts - * @interface IGlobalCLIOptions - * @property {boolean|null} [debug] GlobalCLIOptions debug - * @property {boolean|null} [quiet] GlobalCLIOptions quiet - * @property {boolean|null} [version] GlobalCLIOptions version - * @property {string|null} [_fullCommand] GlobalCLIOptions _fullCommand - * @property {string|null} [_action] GlobalCLIOptions _action - * @property {string|null} [_backend] GlobalCLIOptions _backend - * @property {Array.|null} [_commands] GlobalCLIOptions _commands + * Properties of a RabbitStreamsWriteArgs. + * @memberof protos.args + * @interface IRabbitStreamsWriteArgs + * @property {string|null} [stream] RabbitStreamsWriteArgs stream + * @property {boolean|null} [declareStream] RabbitStreamsWriteArgs declareStream + * @property {string|null} [declareStreamSize] RabbitStreamsWriteArgs declareStreamSize */ /** - * Constructs a new GlobalCLIOptions. - * @memberof protos.opts - * @classdesc Represents a GlobalCLIOptions. - * @implements IGlobalCLIOptions + * Constructs a new RabbitStreamsWriteArgs. + * @memberof protos.args + * @classdesc Represents a RabbitStreamsWriteArgs. + * @implements IRabbitStreamsWriteArgs * @constructor - * @param {protos.opts.IGlobalCLIOptions=} [properties] Properties to set + * @param {protos.args.IRabbitStreamsWriteArgs=} [properties] Properties to set */ - function GlobalCLIOptions(properties) { - this._commands = []; + function RabbitStreamsWriteArgs(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17594,156 +16386,101 @@ $root.protos = (function() { } /** - * GlobalCLIOptions debug. - * @member {boolean} debug - * @memberof protos.opts.GlobalCLIOptions - * @instance - */ - GlobalCLIOptions.prototype.debug = false; - - /** - * GlobalCLIOptions quiet. - * @member {boolean} quiet - * @memberof protos.opts.GlobalCLIOptions - * @instance - */ - GlobalCLIOptions.prototype.quiet = false; - - /** - * GlobalCLIOptions version. - * @member {boolean} version - * @memberof protos.opts.GlobalCLIOptions - * @instance - */ - GlobalCLIOptions.prototype.version = false; - - /** - * GlobalCLIOptions _fullCommand. - * @member {string} _fullCommand - * @memberof protos.opts.GlobalCLIOptions - * @instance - */ - GlobalCLIOptions.prototype._fullCommand = ""; - - /** - * GlobalCLIOptions _action. - * @member {string} _action - * @memberof protos.opts.GlobalCLIOptions + * RabbitStreamsWriteArgs stream. + * @member {string} stream + * @memberof protos.args.RabbitStreamsWriteArgs * @instance */ - GlobalCLIOptions.prototype._action = ""; + RabbitStreamsWriteArgs.prototype.stream = ""; /** - * GlobalCLIOptions _backend. - * @member {string} _backend - * @memberof protos.opts.GlobalCLIOptions + * RabbitStreamsWriteArgs declareStream. + * @member {boolean} declareStream + * @memberof protos.args.RabbitStreamsWriteArgs * @instance */ - GlobalCLIOptions.prototype._backend = ""; + RabbitStreamsWriteArgs.prototype.declareStream = false; /** - * GlobalCLIOptions _commands. - * @member {Array.} _commands - * @memberof protos.opts.GlobalCLIOptions + * RabbitStreamsWriteArgs declareStreamSize. + * @member {string} declareStreamSize + * @memberof protos.args.RabbitStreamsWriteArgs * @instance */ - GlobalCLIOptions.prototype._commands = $util.emptyArray; + RabbitStreamsWriteArgs.prototype.declareStreamSize = ""; /** - * Creates a new GlobalCLIOptions instance using the specified properties. + * Creates a new RabbitStreamsWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.GlobalCLIOptions + * @memberof protos.args.RabbitStreamsWriteArgs * @static - * @param {protos.opts.IGlobalCLIOptions=} [properties] Properties to set - * @returns {protos.opts.GlobalCLIOptions} GlobalCLIOptions instance + * @param {protos.args.IRabbitStreamsWriteArgs=} [properties] Properties to set + * @returns {protos.args.RabbitStreamsWriteArgs} RabbitStreamsWriteArgs instance */ - GlobalCLIOptions.create = function create(properties) { - return new GlobalCLIOptions(properties); + RabbitStreamsWriteArgs.create = function create(properties) { + return new RabbitStreamsWriteArgs(properties); }; /** - * Encodes the specified GlobalCLIOptions message. Does not implicitly {@link protos.opts.GlobalCLIOptions.verify|verify} messages. + * Encodes the specified RabbitStreamsWriteArgs message. Does not implicitly {@link protos.args.RabbitStreamsWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.GlobalCLIOptions + * @memberof protos.args.RabbitStreamsWriteArgs * @static - * @param {protos.opts.IGlobalCLIOptions} message GlobalCLIOptions message or plain object to encode + * @param {protos.args.IRabbitStreamsWriteArgs} message RabbitStreamsWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalCLIOptions.encode = function encode(message, writer) { + RabbitStreamsWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.debug != null && Object.hasOwnProperty.call(message, "debug")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.debug); - if (message.quiet != null && Object.hasOwnProperty.call(message, "quiet")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.quiet); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.version); - if (message._fullCommand != null && Object.hasOwnProperty.call(message, "_fullCommand")) - writer.uint32(/* id 1000, wireType 2 =*/8002).string(message._fullCommand); - if (message._action != null && Object.hasOwnProperty.call(message, "_action")) - writer.uint32(/* id 1001, wireType 2 =*/8010).string(message._action); - if (message._backend != null && Object.hasOwnProperty.call(message, "_backend")) - writer.uint32(/* id 1002, wireType 2 =*/8018).string(message._backend); - if (message._commands != null && message._commands.length) - for (var i = 0; i < message._commands.length; ++i) - writer.uint32(/* id 1003, wireType 2 =*/8026).string(message._commands[i]); + if (message.stream != null && Object.hasOwnProperty.call(message, "stream")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.stream); + if (message.declareStream != null && Object.hasOwnProperty.call(message, "declareStream")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.declareStream); + if (message.declareStreamSize != null && Object.hasOwnProperty.call(message, "declareStreamSize")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.declareStreamSize); return writer; }; /** - * Encodes the specified GlobalCLIOptions message, length delimited. Does not implicitly {@link protos.opts.GlobalCLIOptions.verify|verify} messages. + * Encodes the specified RabbitStreamsWriteArgs message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.GlobalCLIOptions + * @memberof protos.args.RabbitStreamsWriteArgs * @static - * @param {protos.opts.IGlobalCLIOptions} message GlobalCLIOptions message or plain object to encode + * @param {protos.args.IRabbitStreamsWriteArgs} message RabbitStreamsWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalCLIOptions.encodeDelimited = function encodeDelimited(message, writer) { + RabbitStreamsWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GlobalCLIOptions message from the specified reader or buffer. + * Decodes a RabbitStreamsWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.GlobalCLIOptions + * @memberof protos.args.RabbitStreamsWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.GlobalCLIOptions} GlobalCLIOptions + * @returns {protos.args.RabbitStreamsWriteArgs} RabbitStreamsWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalCLIOptions.decode = function decode(reader, length) { + RabbitStreamsWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.GlobalCLIOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitStreamsWriteArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.debug = reader.bool(); + message.stream = reader.string(); break; case 2: - message.quiet = reader.bool(); + message.declareStream = reader.bool(); break; case 3: - message.version = reader.bool(); - break; - case 1000: - message._fullCommand = reader.string(); - break; - case 1001: - message._action = reader.string(); - break; - case 1002: - message._backend = reader.string(); - break; - case 1003: - if (!(message._commands && message._commands.length)) - message._commands = []; - message._commands.push(reader.string()); + message.declareStreamSize = reader.string(); break; default: reader.skipType(tag & 7); @@ -17754,175 +16491,127 @@ $root.protos = (function() { }; /** - * Decodes a GlobalCLIOptions message from the specified reader or buffer, length delimited. + * Decodes a RabbitStreamsWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.GlobalCLIOptions + * @memberof protos.args.RabbitStreamsWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.GlobalCLIOptions} GlobalCLIOptions + * @returns {protos.args.RabbitStreamsWriteArgs} RabbitStreamsWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalCLIOptions.decodeDelimited = function decodeDelimited(reader) { + RabbitStreamsWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GlobalCLIOptions message. + * Verifies a RabbitStreamsWriteArgs message. * @function verify - * @memberof protos.opts.GlobalCLIOptions + * @memberof protos.args.RabbitStreamsWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GlobalCLIOptions.verify = function verify(message) { + RabbitStreamsWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.debug != null && message.hasOwnProperty("debug")) - if (typeof message.debug !== "boolean") - return "debug: boolean expected"; - if (message.quiet != null && message.hasOwnProperty("quiet")) - if (typeof message.quiet !== "boolean") - return "quiet: boolean expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (typeof message.version !== "boolean") - return "version: boolean expected"; - if (message._fullCommand != null && message.hasOwnProperty("_fullCommand")) - if (!$util.isString(message._fullCommand)) - return "_fullCommand: string expected"; - if (message._action != null && message.hasOwnProperty("_action")) - if (!$util.isString(message._action)) - return "_action: string expected"; - if (message._backend != null && message.hasOwnProperty("_backend")) - if (!$util.isString(message._backend)) - return "_backend: string expected"; - if (message._commands != null && message.hasOwnProperty("_commands")) { - if (!Array.isArray(message._commands)) - return "_commands: array expected"; - for (var i = 0; i < message._commands.length; ++i) - if (!$util.isString(message._commands[i])) - return "_commands: string[] expected"; - } + if (message.stream != null && message.hasOwnProperty("stream")) + if (!$util.isString(message.stream)) + return "stream: string expected"; + if (message.declareStream != null && message.hasOwnProperty("declareStream")) + if (typeof message.declareStream !== "boolean") + return "declareStream: boolean expected"; + if (message.declareStreamSize != null && message.hasOwnProperty("declareStreamSize")) + if (!$util.isString(message.declareStreamSize)) + return "declareStreamSize: string expected"; return null; }; /** - * Creates a GlobalCLIOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RabbitStreamsWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.GlobalCLIOptions + * @memberof protos.args.RabbitStreamsWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.GlobalCLIOptions} GlobalCLIOptions + * @returns {protos.args.RabbitStreamsWriteArgs} RabbitStreamsWriteArgs */ - GlobalCLIOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.GlobalCLIOptions) + RabbitStreamsWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.RabbitStreamsWriteArgs) return object; - var message = new $root.protos.opts.GlobalCLIOptions(); - if (object.debug != null) - message.debug = Boolean(object.debug); - if (object.quiet != null) - message.quiet = Boolean(object.quiet); - if (object.version != null) - message.version = Boolean(object.version); - if (object._fullCommand != null) - message._fullCommand = String(object._fullCommand); - if (object._action != null) - message._action = String(object._action); - if (object._backend != null) - message._backend = String(object._backend); - if (object._commands) { - if (!Array.isArray(object._commands)) - throw TypeError(".protos.opts.GlobalCLIOptions._commands: array expected"); - message._commands = []; - for (var i = 0; i < object._commands.length; ++i) - message._commands[i] = String(object._commands[i]); - } + var message = new $root.protos.args.RabbitStreamsWriteArgs(); + if (object.stream != null) + message.stream = String(object.stream); + if (object.declareStream != null) + message.declareStream = Boolean(object.declareStream); + if (object.declareStreamSize != null) + message.declareStreamSize = String(object.declareStreamSize); return message; }; /** - * Creates a plain object from a GlobalCLIOptions message. Also converts values to other types if specified. + * Creates a plain object from a RabbitStreamsWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.GlobalCLIOptions + * @memberof protos.args.RabbitStreamsWriteArgs * @static - * @param {protos.opts.GlobalCLIOptions} message GlobalCLIOptions + * @param {protos.args.RabbitStreamsWriteArgs} message RabbitStreamsWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GlobalCLIOptions.toObject = function toObject(message, options) { + RabbitStreamsWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object._commands = []; if (options.defaults) { - object.debug = false; - object.quiet = false; - object.version = false; - object._fullCommand = ""; - object._action = ""; - object._backend = ""; - } - if (message.debug != null && message.hasOwnProperty("debug")) - object.debug = message.debug; - if (message.quiet != null && message.hasOwnProperty("quiet")) - object.quiet = message.quiet; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message._fullCommand != null && message.hasOwnProperty("_fullCommand")) - object._fullCommand = message._fullCommand; - if (message._action != null && message.hasOwnProperty("_action")) - object._action = message._action; - if (message._backend != null && message.hasOwnProperty("_backend")) - object._backend = message._backend; - if (message._commands && message._commands.length) { - object._commands = []; - for (var j = 0; j < message._commands.length; ++j) - object._commands[j] = message._commands[j]; + object.stream = ""; + object.declareStream = false; + object.declareStreamSize = ""; } + if (message.stream != null && message.hasOwnProperty("stream")) + object.stream = message.stream; + if (message.declareStream != null && message.hasOwnProperty("declareStream")) + object.declareStream = message.declareStream; + if (message.declareStreamSize != null && message.hasOwnProperty("declareStreamSize")) + object.declareStreamSize = message.declareStreamSize; return object; }; /** - * Converts this GlobalCLIOptions to JSON. + * Converts this RabbitStreamsWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.GlobalCLIOptions + * @memberof protos.args.RabbitStreamsWriteArgs * @instance * @returns {Object.} JSON object */ - GlobalCLIOptions.prototype.toJSON = function toJSON() { + RabbitStreamsWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GlobalCLIOptions; + return RabbitStreamsWriteArgs; })(); - opts.CLIOptions = (function() { + args.RedisPubSubConn = (function() { /** - * Properties of a CLIOptions. - * @memberof protos.opts - * @interface ICLIOptions - * @property {protos.opts.IGlobalCLIOptions|null} [global] CLIOptions global - * @property {protos.opts.IReadOptions|null} [read] CLIOptions read - * @property {protos.opts.IWriteOptions|null} [write] CLIOptions write - * @property {protos.opts.IRelayOptions|null} [relay] CLIOptions relay - * @property {protos.opts.ITunnelOptions|null} [tunnel] CLIOptions tunnel - * @property {protos.opts.IServerOptions|null} [server] CLIOptions server - * @property {protos.opts.IManageOptions|null} [manage] CLIOptions manage + * Properties of a RedisPubSubConn. + * @memberof protos.args + * @interface IRedisPubSubConn + * @property {string|null} [address] RedisPubSubConn address + * @property {string|null} [username] RedisPubSubConn username + * @property {string|null} [password] RedisPubSubConn password + * @property {number|null} [database] RedisPubSubConn database */ /** - * Constructs a new CLIOptions. - * @memberof protos.opts - * @classdesc Represents a CLIOptions. - * @implements ICLIOptions + * Constructs a new RedisPubSubConn. + * @memberof protos.args + * @classdesc Represents a RedisPubSubConn. + * @implements IRedisPubSubConn * @constructor - * @param {protos.opts.ICLIOptions=} [properties] Properties to set + * @param {protos.args.IRedisPubSubConn=} [properties] Properties to set */ - function CLIOptions(properties) { + function RedisPubSubConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17930,153 +16619,114 @@ $root.protos = (function() { } /** - * CLIOptions global. - * @member {protos.opts.IGlobalCLIOptions|null|undefined} global - * @memberof protos.opts.CLIOptions - * @instance - */ - CLIOptions.prototype.global = null; - - /** - * CLIOptions read. - * @member {protos.opts.IReadOptions|null|undefined} read - * @memberof protos.opts.CLIOptions - * @instance - */ - CLIOptions.prototype.read = null; - - /** - * CLIOptions write. - * @member {protos.opts.IWriteOptions|null|undefined} write - * @memberof protos.opts.CLIOptions - * @instance - */ - CLIOptions.prototype.write = null; - - /** - * CLIOptions relay. - * @member {protos.opts.IRelayOptions|null|undefined} relay - * @memberof protos.opts.CLIOptions + * RedisPubSubConn address. + * @member {string} address + * @memberof protos.args.RedisPubSubConn * @instance */ - CLIOptions.prototype.relay = null; + RedisPubSubConn.prototype.address = ""; /** - * CLIOptions tunnel. - * @member {protos.opts.ITunnelOptions|null|undefined} tunnel - * @memberof protos.opts.CLIOptions + * RedisPubSubConn username. + * @member {string} username + * @memberof protos.args.RedisPubSubConn * @instance */ - CLIOptions.prototype.tunnel = null; + RedisPubSubConn.prototype.username = ""; /** - * CLIOptions server. - * @member {protos.opts.IServerOptions|null|undefined} server - * @memberof protos.opts.CLIOptions + * RedisPubSubConn password. + * @member {string} password + * @memberof protos.args.RedisPubSubConn * @instance */ - CLIOptions.prototype.server = null; + RedisPubSubConn.prototype.password = ""; /** - * CLIOptions manage. - * @member {protos.opts.IManageOptions|null|undefined} manage - * @memberof protos.opts.CLIOptions + * RedisPubSubConn database. + * @member {number} database + * @memberof protos.args.RedisPubSubConn * @instance */ - CLIOptions.prototype.manage = null; + RedisPubSubConn.prototype.database = 0; /** - * Creates a new CLIOptions instance using the specified properties. + * Creates a new RedisPubSubConn instance using the specified properties. * @function create - * @memberof protos.opts.CLIOptions + * @memberof protos.args.RedisPubSubConn * @static - * @param {protos.opts.ICLIOptions=} [properties] Properties to set - * @returns {protos.opts.CLIOptions} CLIOptions instance + * @param {protos.args.IRedisPubSubConn=} [properties] Properties to set + * @returns {protos.args.RedisPubSubConn} RedisPubSubConn instance */ - CLIOptions.create = function create(properties) { - return new CLIOptions(properties); + RedisPubSubConn.create = function create(properties) { + return new RedisPubSubConn(properties); }; /** - * Encodes the specified CLIOptions message. Does not implicitly {@link protos.opts.CLIOptions.verify|verify} messages. + * Encodes the specified RedisPubSubConn message. Does not implicitly {@link protos.args.RedisPubSubConn.verify|verify} messages. * @function encode - * @memberof protos.opts.CLIOptions + * @memberof protos.args.RedisPubSubConn * @static - * @param {protos.opts.ICLIOptions} message CLIOptions message or plain object to encode + * @param {protos.args.IRedisPubSubConn} message RedisPubSubConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CLIOptions.encode = function encode(message, writer) { + RedisPubSubConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.global != null && Object.hasOwnProperty.call(message, "global")) - $root.protos.opts.GlobalCLIOptions.encode(message.global, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.read != null && Object.hasOwnProperty.call(message, "read")) - $root.protos.opts.ReadOptions.encode(message.read, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.write != null && Object.hasOwnProperty.call(message, "write")) - $root.protos.opts.WriteOptions.encode(message.write, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.relay != null && Object.hasOwnProperty.call(message, "relay")) - $root.protos.opts.RelayOptions.encode(message.relay, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.tunnel != null && Object.hasOwnProperty.call(message, "tunnel")) - $root.protos.opts.TunnelOptions.encode(message.tunnel, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.server != null && Object.hasOwnProperty.call(message, "server")) - $root.protos.opts.ServerOptions.encode(message.server, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.manage != null && Object.hasOwnProperty.call(message, "manage")) - $root.protos.opts.ManageOptions.encode(message.manage, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); + if (message.password != null && Object.hasOwnProperty.call(message, "password")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.password); + if (message.database != null && Object.hasOwnProperty.call(message, "database")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.database); return writer; }; /** - * Encodes the specified CLIOptions message, length delimited. Does not implicitly {@link protos.opts.CLIOptions.verify|verify} messages. + * Encodes the specified RedisPubSubConn message, length delimited. Does not implicitly {@link protos.args.RedisPubSubConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.CLIOptions + * @memberof protos.args.RedisPubSubConn * @static - * @param {protos.opts.ICLIOptions} message CLIOptions message or plain object to encode + * @param {protos.args.IRedisPubSubConn} message RedisPubSubConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CLIOptions.encodeDelimited = function encodeDelimited(message, writer) { + RedisPubSubConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CLIOptions message from the specified reader or buffer. + * Decodes a RedisPubSubConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.CLIOptions + * @memberof protos.args.RedisPubSubConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.CLIOptions} CLIOptions + * @returns {protos.args.RedisPubSubConn} RedisPubSubConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CLIOptions.decode = function decode(reader, length) { + RedisPubSubConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.CLIOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RedisPubSubConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.global = $root.protos.opts.GlobalCLIOptions.decode(reader, reader.uint32()); + message.address = reader.string(); break; case 2: - message.read = $root.protos.opts.ReadOptions.decode(reader, reader.uint32()); + message.username = reader.string(); break; case 3: - message.write = $root.protos.opts.WriteOptions.decode(reader, reader.uint32()); + message.password = reader.string(); break; case 4: - message.relay = $root.protos.opts.RelayOptions.decode(reader, reader.uint32()); - break; - case 5: - message.tunnel = $root.protos.opts.TunnelOptions.decode(reader, reader.uint32()); - break; - case 7: - message.server = $root.protos.opts.ServerOptions.decode(reader, reader.uint32()); - break; - case 8: - message.manage = $root.protos.opts.ManageOptions.decode(reader, reader.uint32()); + message.database = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -18087,196 +16737,133 @@ $root.protos = (function() { }; /** - * Decodes a CLIOptions message from the specified reader or buffer, length delimited. + * Decodes a RedisPubSubConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.CLIOptions + * @memberof protos.args.RedisPubSubConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.CLIOptions} CLIOptions + * @returns {protos.args.RedisPubSubConn} RedisPubSubConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CLIOptions.decodeDelimited = function decodeDelimited(reader) { + RedisPubSubConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CLIOptions message. + * Verifies a RedisPubSubConn message. * @function verify - * @memberof protos.opts.CLIOptions + * @memberof protos.args.RedisPubSubConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CLIOptions.verify = function verify(message) { + RedisPubSubConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.global != null && message.hasOwnProperty("global")) { - var error = $root.protos.opts.GlobalCLIOptions.verify(message.global); - if (error) - return "global." + error; - } - if (message.read != null && message.hasOwnProperty("read")) { - var error = $root.protos.opts.ReadOptions.verify(message.read); - if (error) - return "read." + error; - } - if (message.write != null && message.hasOwnProperty("write")) { - var error = $root.protos.opts.WriteOptions.verify(message.write); - if (error) - return "write." + error; - } - if (message.relay != null && message.hasOwnProperty("relay")) { - var error = $root.protos.opts.RelayOptions.verify(message.relay); - if (error) - return "relay." + error; - } - if (message.tunnel != null && message.hasOwnProperty("tunnel")) { - var error = $root.protos.opts.TunnelOptions.verify(message.tunnel); - if (error) - return "tunnel." + error; - } - if (message.server != null && message.hasOwnProperty("server")) { - var error = $root.protos.opts.ServerOptions.verify(message.server); - if (error) - return "server." + error; - } - if (message.manage != null && message.hasOwnProperty("manage")) { - var error = $root.protos.opts.ManageOptions.verify(message.manage); - if (error) - return "manage." + error; - } + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.password != null && message.hasOwnProperty("password")) + if (!$util.isString(message.password)) + return "password: string expected"; + if (message.database != null && message.hasOwnProperty("database")) + if (!$util.isInteger(message.database)) + return "database: integer expected"; return null; }; /** - * Creates a CLIOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RedisPubSubConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.CLIOptions + * @memberof protos.args.RedisPubSubConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.CLIOptions} CLIOptions + * @returns {protos.args.RedisPubSubConn} RedisPubSubConn */ - CLIOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.CLIOptions) + RedisPubSubConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.RedisPubSubConn) return object; - var message = new $root.protos.opts.CLIOptions(); - if (object.global != null) { - if (typeof object.global !== "object") - throw TypeError(".protos.opts.CLIOptions.global: object expected"); - message.global = $root.protos.opts.GlobalCLIOptions.fromObject(object.global); - } - if (object.read != null) { - if (typeof object.read !== "object") - throw TypeError(".protos.opts.CLIOptions.read: object expected"); - message.read = $root.protos.opts.ReadOptions.fromObject(object.read); - } - if (object.write != null) { - if (typeof object.write !== "object") - throw TypeError(".protos.opts.CLIOptions.write: object expected"); - message.write = $root.protos.opts.WriteOptions.fromObject(object.write); - } - if (object.relay != null) { - if (typeof object.relay !== "object") - throw TypeError(".protos.opts.CLIOptions.relay: object expected"); - message.relay = $root.protos.opts.RelayOptions.fromObject(object.relay); - } - if (object.tunnel != null) { - if (typeof object.tunnel !== "object") - throw TypeError(".protos.opts.CLIOptions.tunnel: object expected"); - message.tunnel = $root.protos.opts.TunnelOptions.fromObject(object.tunnel); - } - if (object.server != null) { - if (typeof object.server !== "object") - throw TypeError(".protos.opts.CLIOptions.server: object expected"); - message.server = $root.protos.opts.ServerOptions.fromObject(object.server); - } - if (object.manage != null) { - if (typeof object.manage !== "object") - throw TypeError(".protos.opts.CLIOptions.manage: object expected"); - message.manage = $root.protos.opts.ManageOptions.fromObject(object.manage); - } + var message = new $root.protos.args.RedisPubSubConn(); + if (object.address != null) + message.address = String(object.address); + if (object.username != null) + message.username = String(object.username); + if (object.password != null) + message.password = String(object.password); + if (object.database != null) + message.database = object.database >>> 0; return message; }; /** - * Creates a plain object from a CLIOptions message. Also converts values to other types if specified. + * Creates a plain object from a RedisPubSubConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.CLIOptions + * @memberof protos.args.RedisPubSubConn * @static - * @param {protos.opts.CLIOptions} message CLIOptions + * @param {protos.args.RedisPubSubConn} message RedisPubSubConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CLIOptions.toObject = function toObject(message, options) { + RedisPubSubConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.global = null; - object.read = null; - object.write = null; - object.relay = null; - object.tunnel = null; - object.server = null; - object.manage = null; + object.address = ""; + object.username = ""; + object.password = ""; + object.database = 0; } - if (message.global != null && message.hasOwnProperty("global")) - object.global = $root.protos.opts.GlobalCLIOptions.toObject(message.global, options); - if (message.read != null && message.hasOwnProperty("read")) - object.read = $root.protos.opts.ReadOptions.toObject(message.read, options); - if (message.write != null && message.hasOwnProperty("write")) - object.write = $root.protos.opts.WriteOptions.toObject(message.write, options); - if (message.relay != null && message.hasOwnProperty("relay")) - object.relay = $root.protos.opts.RelayOptions.toObject(message.relay, options); - if (message.tunnel != null && message.hasOwnProperty("tunnel")) - object.tunnel = $root.protos.opts.TunnelOptions.toObject(message.tunnel, options); - if (message.server != null && message.hasOwnProperty("server")) - object.server = $root.protos.opts.ServerOptions.toObject(message.server, options); - if (message.manage != null && message.hasOwnProperty("manage")) - object.manage = $root.protos.opts.ManageOptions.toObject(message.manage, options); + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.password != null && message.hasOwnProperty("password")) + object.password = message.password; + if (message.database != null && message.hasOwnProperty("database")) + object.database = message.database; return object; }; /** - * Converts this CLIOptions to JSON. + * Converts this RedisPubSubConn to JSON. * @function toJSON - * @memberof protos.opts.CLIOptions + * @memberof protos.args.RedisPubSubConn * @instance * @returns {Object.} JSON object */ - CLIOptions.prototype.toJSON = function toJSON() { + RedisPubSubConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CLIOptions; + return RedisPubSubConn; })(); - opts.ManageOptions = (function() { + args.RedisPubSubReadArgs = (function() { /** - * Properties of a ManageOptions. - * @memberof protos.opts - * @interface IManageOptions - * @property {protos.opts.IGlobalManageOptions|null} [globalOptions] ManageOptions globalOptions - * @property {protos.opts.IGetOptions|null} [get] ManageOptions get - * @property {protos.opts.ICreateOptions|null} [create] ManageOptions create - * @property {protos.opts.IDeleteOptions|null} ["delete"] ManageOptions delete - * @property {protos.opts.IStopOptions|null} [stop] ManageOptions stop - * @property {protos.opts.IResumeOptions|null} [resume] ManageOptions resume + * Properties of a RedisPubSubReadArgs. + * @memberof protos.args + * @interface IRedisPubSubReadArgs + * @property {Array.|null} [channels] RedisPubSubReadArgs channels */ /** - * Constructs a new ManageOptions. - * @memberof protos.opts - * @classdesc Represents a ManageOptions. - * @implements IManageOptions + * Constructs a new RedisPubSubReadArgs. + * @memberof protos.args + * @classdesc Represents a RedisPubSubReadArgs. + * @implements IRedisPubSubReadArgs * @constructor - * @param {protos.opts.IManageOptions=} [properties] Properties to set + * @param {protos.args.IRedisPubSubReadArgs=} [properties] Properties to set */ - function ManageOptions(properties) { + function RedisPubSubReadArgs(properties) { + this.channels = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18284,140 +16871,78 @@ $root.protos = (function() { } /** - * ManageOptions globalOptions. - * @member {protos.opts.IGlobalManageOptions|null|undefined} globalOptions - * @memberof protos.opts.ManageOptions - * @instance - */ - ManageOptions.prototype.globalOptions = null; - - /** - * ManageOptions get. - * @member {protos.opts.IGetOptions|null|undefined} get - * @memberof protos.opts.ManageOptions - * @instance - */ - ManageOptions.prototype.get = null; - - /** - * ManageOptions create. - * @member {protos.opts.ICreateOptions|null|undefined} create - * @memberof protos.opts.ManageOptions - * @instance - */ - ManageOptions.prototype.create = null; - - /** - * ManageOptions delete. - * @member {protos.opts.IDeleteOptions|null|undefined} delete - * @memberof protos.opts.ManageOptions - * @instance - */ - ManageOptions.prototype["delete"] = null; - - /** - * ManageOptions stop. - * @member {protos.opts.IStopOptions|null|undefined} stop - * @memberof protos.opts.ManageOptions - * @instance - */ - ManageOptions.prototype.stop = null; - - /** - * ManageOptions resume. - * @member {protos.opts.IResumeOptions|null|undefined} resume - * @memberof protos.opts.ManageOptions + * RedisPubSubReadArgs channels. + * @member {Array.} channels + * @memberof protos.args.RedisPubSubReadArgs * @instance */ - ManageOptions.prototype.resume = null; + RedisPubSubReadArgs.prototype.channels = $util.emptyArray; /** - * Creates a new ManageOptions instance using the specified properties. + * Creates a new RedisPubSubReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.ManageOptions + * @memberof protos.args.RedisPubSubReadArgs * @static - * @param {protos.opts.IManageOptions=} [properties] Properties to set - * @returns {protos.opts.ManageOptions} ManageOptions instance + * @param {protos.args.IRedisPubSubReadArgs=} [properties] Properties to set + * @returns {protos.args.RedisPubSubReadArgs} RedisPubSubReadArgs instance */ - ManageOptions.create = function create(properties) { - return new ManageOptions(properties); + RedisPubSubReadArgs.create = function create(properties) { + return new RedisPubSubReadArgs(properties); }; /** - * Encodes the specified ManageOptions message. Does not implicitly {@link protos.opts.ManageOptions.verify|verify} messages. + * Encodes the specified RedisPubSubReadArgs message. Does not implicitly {@link protos.args.RedisPubSubReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.ManageOptions + * @memberof protos.args.RedisPubSubReadArgs * @static - * @param {protos.opts.IManageOptions} message ManageOptions message or plain object to encode + * @param {protos.args.IRedisPubSubReadArgs} message RedisPubSubReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ManageOptions.encode = function encode(message, writer) { + RedisPubSubReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.globalOptions != null && Object.hasOwnProperty.call(message, "globalOptions")) - $root.protos.opts.GlobalManageOptions.encode(message.globalOptions, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.get != null && Object.hasOwnProperty.call(message, "get")) - $root.protos.opts.GetOptions.encode(message.get, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.create != null && Object.hasOwnProperty.call(message, "create")) - $root.protos.opts.CreateOptions.encode(message.create, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) - $root.protos.opts.DeleteOptions.encode(message["delete"], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.stop != null && Object.hasOwnProperty.call(message, "stop")) - $root.protos.opts.StopOptions.encode(message.stop, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.resume != null && Object.hasOwnProperty.call(message, "resume")) - $root.protos.opts.ResumeOptions.encode(message.resume, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.channels != null && message.channels.length) + for (var i = 0; i < message.channels.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channels[i]); return writer; }; /** - * Encodes the specified ManageOptions message, length delimited. Does not implicitly {@link protos.opts.ManageOptions.verify|verify} messages. + * Encodes the specified RedisPubSubReadArgs message, length delimited. Does not implicitly {@link protos.args.RedisPubSubReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ManageOptions + * @memberof protos.args.RedisPubSubReadArgs * @static - * @param {protos.opts.IManageOptions} message ManageOptions message or plain object to encode + * @param {protos.args.IRedisPubSubReadArgs} message RedisPubSubReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ManageOptions.encodeDelimited = function encodeDelimited(message, writer) { + RedisPubSubReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ManageOptions message from the specified reader or buffer. + * Decodes a RedisPubSubReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ManageOptions + * @memberof protos.args.RedisPubSubReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ManageOptions} ManageOptions + * @returns {protos.args.RedisPubSubReadArgs} RedisPubSubReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ManageOptions.decode = function decode(reader, length) { + RedisPubSubReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ManageOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RedisPubSubReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.globalOptions = $root.protos.opts.GlobalManageOptions.decode(reader, reader.uint32()); - break; - case 2: - message.get = $root.protos.opts.GetOptions.decode(reader, reader.uint32()); - break; - case 3: - message.create = $root.protos.opts.CreateOptions.decode(reader, reader.uint32()); - break; - case 5: - message["delete"] = $root.protos.opts.DeleteOptions.decode(reader, reader.uint32()); - break; - case 6: - message.stop = $root.protos.opts.StopOptions.decode(reader, reader.uint32()); - break; - case 7: - message.resume = $root.protos.opts.ResumeOptions.decode(reader, reader.uint32()); + if (!(message.channels && message.channels.length)) + message.channels = []; + message.channels.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -18428,186 +16953,120 @@ $root.protos = (function() { }; /** - * Decodes a ManageOptions message from the specified reader or buffer, length delimited. + * Decodes a RedisPubSubReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ManageOptions + * @memberof protos.args.RedisPubSubReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ManageOptions} ManageOptions + * @returns {protos.args.RedisPubSubReadArgs} RedisPubSubReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ManageOptions.decodeDelimited = function decodeDelimited(reader) { + RedisPubSubReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ManageOptions message. + * Verifies a RedisPubSubReadArgs message. * @function verify - * @memberof protos.opts.ManageOptions + * @memberof protos.args.RedisPubSubReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ManageOptions.verify = function verify(message) { + RedisPubSubReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.globalOptions != null && message.hasOwnProperty("globalOptions")) { - var error = $root.protos.opts.GlobalManageOptions.verify(message.globalOptions); - if (error) - return "globalOptions." + error; - } - if (message.get != null && message.hasOwnProperty("get")) { - var error = $root.protos.opts.GetOptions.verify(message.get); - if (error) - return "get." + error; - } - if (message.create != null && message.hasOwnProperty("create")) { - var error = $root.protos.opts.CreateOptions.verify(message.create); - if (error) - return "create." + error; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - var error = $root.protos.opts.DeleteOptions.verify(message["delete"]); - if (error) - return "delete." + error; - } - if (message.stop != null && message.hasOwnProperty("stop")) { - var error = $root.protos.opts.StopOptions.verify(message.stop); - if (error) - return "stop." + error; - } - if (message.resume != null && message.hasOwnProperty("resume")) { - var error = $root.protos.opts.ResumeOptions.verify(message.resume); - if (error) - return "resume." + error; + if (message.channels != null && message.hasOwnProperty("channels")) { + if (!Array.isArray(message.channels)) + return "channels: array expected"; + for (var i = 0; i < message.channels.length; ++i) + if (!$util.isString(message.channels[i])) + return "channels: string[] expected"; } return null; }; /** - * Creates a ManageOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RedisPubSubReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ManageOptions + * @memberof protos.args.RedisPubSubReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.ManageOptions} ManageOptions + * @returns {protos.args.RedisPubSubReadArgs} RedisPubSubReadArgs */ - ManageOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ManageOptions) + RedisPubSubReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.RedisPubSubReadArgs) return object; - var message = new $root.protos.opts.ManageOptions(); - if (object.globalOptions != null) { - if (typeof object.globalOptions !== "object") - throw TypeError(".protos.opts.ManageOptions.globalOptions: object expected"); - message.globalOptions = $root.protos.opts.GlobalManageOptions.fromObject(object.globalOptions); - } - if (object.get != null) { - if (typeof object.get !== "object") - throw TypeError(".protos.opts.ManageOptions.get: object expected"); - message.get = $root.protos.opts.GetOptions.fromObject(object.get); - } - if (object.create != null) { - if (typeof object.create !== "object") - throw TypeError(".protos.opts.ManageOptions.create: object expected"); - message.create = $root.protos.opts.CreateOptions.fromObject(object.create); - } - if (object["delete"] != null) { - if (typeof object["delete"] !== "object") - throw TypeError(".protos.opts.ManageOptions.delete: object expected"); - message["delete"] = $root.protos.opts.DeleteOptions.fromObject(object["delete"]); - } - if (object.stop != null) { - if (typeof object.stop !== "object") - throw TypeError(".protos.opts.ManageOptions.stop: object expected"); - message.stop = $root.protos.opts.StopOptions.fromObject(object.stop); - } - if (object.resume != null) { - if (typeof object.resume !== "object") - throw TypeError(".protos.opts.ManageOptions.resume: object expected"); - message.resume = $root.protos.opts.ResumeOptions.fromObject(object.resume); + var message = new $root.protos.args.RedisPubSubReadArgs(); + if (object.channels) { + if (!Array.isArray(object.channels)) + throw TypeError(".protos.args.RedisPubSubReadArgs.channels: array expected"); + message.channels = []; + for (var i = 0; i < object.channels.length; ++i) + message.channels[i] = String(object.channels[i]); } return message; }; /** - * Creates a plain object from a ManageOptions message. Also converts values to other types if specified. + * Creates a plain object from a RedisPubSubReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ManageOptions + * @memberof protos.args.RedisPubSubReadArgs * @static - * @param {protos.opts.ManageOptions} message ManageOptions + * @param {protos.args.RedisPubSubReadArgs} message RedisPubSubReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ManageOptions.toObject = function toObject(message, options) { + RedisPubSubReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.globalOptions = null; - object.get = null; - object.create = null; - object["delete"] = null; - object.stop = null; - object.resume = null; - } - if (message.globalOptions != null && message.hasOwnProperty("globalOptions")) - object.globalOptions = $root.protos.opts.GlobalManageOptions.toObject(message.globalOptions, options); - if (message.get != null && message.hasOwnProperty("get")) - object.get = $root.protos.opts.GetOptions.toObject(message.get, options); - if (message.create != null && message.hasOwnProperty("create")) - object.create = $root.protos.opts.CreateOptions.toObject(message.create, options); - if (message["delete"] != null && message.hasOwnProperty("delete")) - object["delete"] = $root.protos.opts.DeleteOptions.toObject(message["delete"], options); - if (message.stop != null && message.hasOwnProperty("stop")) - object.stop = $root.protos.opts.StopOptions.toObject(message.stop, options); - if (message.resume != null && message.hasOwnProperty("resume")) - object.resume = $root.protos.opts.ResumeOptions.toObject(message.resume, options); + if (options.arrays || options.defaults) + object.channels = []; + if (message.channels && message.channels.length) { + object.channels = []; + for (var j = 0; j < message.channels.length; ++j) + object.channels[j] = message.channels[j]; + } return object; }; /** - * Converts this ManageOptions to JSON. + * Converts this RedisPubSubReadArgs to JSON. * @function toJSON - * @memberof protos.opts.ManageOptions + * @memberof protos.args.RedisPubSubReadArgs * @instance * @returns {Object.} JSON object */ - ManageOptions.prototype.toJSON = function toJSON() { + RedisPubSubReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ManageOptions; + return RedisPubSubReadArgs; })(); - opts.GlobalManageOptions = (function() { + args.RedisPubSubWriteArgs = (function() { /** - * Properties of a GlobalManageOptions. - * @memberof protos.opts - * @interface IGlobalManageOptions - * @property {string|null} [manageAddress] GlobalManageOptions manageAddress - * @property {string|null} [manageToken] GlobalManageOptions manageToken - * @property {number|Long|null} [manageTimeoutSeconds] GlobalManageOptions manageTimeoutSeconds - * @property {boolean|null} [manageUseTls] GlobalManageOptions manageUseTls - * @property {boolean|null} [manageInsecureTls] GlobalManageOptions manageInsecureTls - * @property {string|null} [manageTlsCaFile] GlobalManageOptions manageTlsCaFile - * @property {string|null} [manageTlsCertFile] GlobalManageOptions manageTlsCertFile - * @property {string|null} [manageTlsKeyFile] GlobalManageOptions manageTlsKeyFile - * @property {boolean|null} [disablePretty] GlobalManageOptions disablePretty + * Properties of a RedisPubSubWriteArgs. + * @memberof protos.args + * @interface IRedisPubSubWriteArgs + * @property {Array.|null} [channels] RedisPubSubWriteArgs channels */ /** - * Constructs a new GlobalManageOptions. - * @memberof protos.opts - * @classdesc Represents a GlobalManageOptions. - * @implements IGlobalManageOptions + * Constructs a new RedisPubSubWriteArgs. + * @memberof protos.args + * @classdesc Represents a RedisPubSubWriteArgs. + * @implements IRedisPubSubWriteArgs * @constructor - * @param {protos.opts.IGlobalManageOptions=} [properties] Properties to set + * @param {protos.args.IRedisPubSubWriteArgs=} [properties] Properties to set */ - function GlobalManageOptions(properties) { + function RedisPubSubWriteArgs(properties) { + this.channels = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18615,179 +17074,78 @@ $root.protos = (function() { } /** - * GlobalManageOptions manageAddress. - * @member {string} manageAddress - * @memberof protos.opts.GlobalManageOptions - * @instance - */ - GlobalManageOptions.prototype.manageAddress = ""; - - /** - * GlobalManageOptions manageToken. - * @member {string} manageToken - * @memberof protos.opts.GlobalManageOptions - * @instance - */ - GlobalManageOptions.prototype.manageToken = ""; - - /** - * GlobalManageOptions manageTimeoutSeconds. - * @member {number|Long} manageTimeoutSeconds - * @memberof protos.opts.GlobalManageOptions - * @instance - */ - GlobalManageOptions.prototype.manageTimeoutSeconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * GlobalManageOptions manageUseTls. - * @member {boolean} manageUseTls - * @memberof protos.opts.GlobalManageOptions - * @instance - */ - GlobalManageOptions.prototype.manageUseTls = false; - - /** - * GlobalManageOptions manageInsecureTls. - * @member {boolean} manageInsecureTls - * @memberof protos.opts.GlobalManageOptions - * @instance - */ - GlobalManageOptions.prototype.manageInsecureTls = false; - - /** - * GlobalManageOptions manageTlsCaFile. - * @member {string} manageTlsCaFile - * @memberof protos.opts.GlobalManageOptions - * @instance - */ - GlobalManageOptions.prototype.manageTlsCaFile = ""; - - /** - * GlobalManageOptions manageTlsCertFile. - * @member {string} manageTlsCertFile - * @memberof protos.opts.GlobalManageOptions - * @instance - */ - GlobalManageOptions.prototype.manageTlsCertFile = ""; - - /** - * GlobalManageOptions manageTlsKeyFile. - * @member {string} manageTlsKeyFile - * @memberof protos.opts.GlobalManageOptions - * @instance - */ - GlobalManageOptions.prototype.manageTlsKeyFile = ""; - - /** - * GlobalManageOptions disablePretty. - * @member {boolean} disablePretty - * @memberof protos.opts.GlobalManageOptions + * RedisPubSubWriteArgs channels. + * @member {Array.} channels + * @memberof protos.args.RedisPubSubWriteArgs * @instance */ - GlobalManageOptions.prototype.disablePretty = false; + RedisPubSubWriteArgs.prototype.channels = $util.emptyArray; /** - * Creates a new GlobalManageOptions instance using the specified properties. + * Creates a new RedisPubSubWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.GlobalManageOptions + * @memberof protos.args.RedisPubSubWriteArgs * @static - * @param {protos.opts.IGlobalManageOptions=} [properties] Properties to set - * @returns {protos.opts.GlobalManageOptions} GlobalManageOptions instance + * @param {protos.args.IRedisPubSubWriteArgs=} [properties] Properties to set + * @returns {protos.args.RedisPubSubWriteArgs} RedisPubSubWriteArgs instance */ - GlobalManageOptions.create = function create(properties) { - return new GlobalManageOptions(properties); + RedisPubSubWriteArgs.create = function create(properties) { + return new RedisPubSubWriteArgs(properties); }; /** - * Encodes the specified GlobalManageOptions message. Does not implicitly {@link protos.opts.GlobalManageOptions.verify|verify} messages. + * Encodes the specified RedisPubSubWriteArgs message. Does not implicitly {@link protos.args.RedisPubSubWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.GlobalManageOptions + * @memberof protos.args.RedisPubSubWriteArgs * @static - * @param {protos.opts.IGlobalManageOptions} message GlobalManageOptions message or plain object to encode + * @param {protos.args.IRedisPubSubWriteArgs} message RedisPubSubWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalManageOptions.encode = function encode(message, writer) { + RedisPubSubWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.manageAddress != null && Object.hasOwnProperty.call(message, "manageAddress")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.manageAddress); - if (message.manageToken != null && Object.hasOwnProperty.call(message, "manageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.manageToken); - if (message.manageTimeoutSeconds != null && Object.hasOwnProperty.call(message, "manageTimeoutSeconds")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.manageTimeoutSeconds); - if (message.manageUseTls != null && Object.hasOwnProperty.call(message, "manageUseTls")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.manageUseTls); - if (message.manageInsecureTls != null && Object.hasOwnProperty.call(message, "manageInsecureTls")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.manageInsecureTls); - if (message.manageTlsCaFile != null && Object.hasOwnProperty.call(message, "manageTlsCaFile")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.manageTlsCaFile); - if (message.manageTlsCertFile != null && Object.hasOwnProperty.call(message, "manageTlsCertFile")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.manageTlsCertFile); - if (message.manageTlsKeyFile != null && Object.hasOwnProperty.call(message, "manageTlsKeyFile")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.manageTlsKeyFile); - if (message.disablePretty != null && Object.hasOwnProperty.call(message, "disablePretty")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.disablePretty); + if (message.channels != null && message.channels.length) + for (var i = 0; i < message.channels.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.channels[i]); return writer; }; /** - * Encodes the specified GlobalManageOptions message, length delimited. Does not implicitly {@link protos.opts.GlobalManageOptions.verify|verify} messages. + * Encodes the specified RedisPubSubWriteArgs message, length delimited. Does not implicitly {@link protos.args.RedisPubSubWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.GlobalManageOptions + * @memberof protos.args.RedisPubSubWriteArgs * @static - * @param {protos.opts.IGlobalManageOptions} message GlobalManageOptions message or plain object to encode + * @param {protos.args.IRedisPubSubWriteArgs} message RedisPubSubWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GlobalManageOptions.encodeDelimited = function encodeDelimited(message, writer) { + RedisPubSubWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GlobalManageOptions message from the specified reader or buffer. + * Decodes a RedisPubSubWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.GlobalManageOptions + * @memberof protos.args.RedisPubSubWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.GlobalManageOptions} GlobalManageOptions + * @returns {protos.args.RedisPubSubWriteArgs} RedisPubSubWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalManageOptions.decode = function decode(reader, length) { + RedisPubSubWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.GlobalManageOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RedisPubSubWriteArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.manageAddress = reader.string(); - break; - case 2: - message.manageToken = reader.string(); - break; - case 3: - message.manageTimeoutSeconds = reader.int64(); - break; - case 4: - message.manageUseTls = reader.bool(); - break; - case 5: - message.manageInsecureTls = reader.bool(); - break; - case 6: - message.manageTlsCaFile = reader.string(); - break; - case 7: - message.manageTlsCertFile = reader.string(); - break; - case 8: - message.manageTlsKeyFile = reader.string(); - break; - case 9: - message.disablePretty = reader.bool(); + if (!(message.channels && message.channels.length)) + message.channels = []; + message.channels.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -18798,188 +17156,136 @@ $root.protos = (function() { }; /** - * Decodes a GlobalManageOptions message from the specified reader or buffer, length delimited. + * Decodes a RedisPubSubWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.GlobalManageOptions + * @memberof protos.args.RedisPubSubWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.GlobalManageOptions} GlobalManageOptions + * @returns {protos.args.RedisPubSubWriteArgs} RedisPubSubWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GlobalManageOptions.decodeDelimited = function decodeDelimited(reader) { + RedisPubSubWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GlobalManageOptions message. + * Verifies a RedisPubSubWriteArgs message. * @function verify - * @memberof protos.opts.GlobalManageOptions + * @memberof protos.args.RedisPubSubWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GlobalManageOptions.verify = function verify(message) { + RedisPubSubWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.manageAddress != null && message.hasOwnProperty("manageAddress")) - if (!$util.isString(message.manageAddress)) - return "manageAddress: string expected"; - if (message.manageToken != null && message.hasOwnProperty("manageToken")) - if (!$util.isString(message.manageToken)) - return "manageToken: string expected"; - if (message.manageTimeoutSeconds != null && message.hasOwnProperty("manageTimeoutSeconds")) - if (!$util.isInteger(message.manageTimeoutSeconds) && !(message.manageTimeoutSeconds && $util.isInteger(message.manageTimeoutSeconds.low) && $util.isInteger(message.manageTimeoutSeconds.high))) - return "manageTimeoutSeconds: integer|Long expected"; - if (message.manageUseTls != null && message.hasOwnProperty("manageUseTls")) - if (typeof message.manageUseTls !== "boolean") - return "manageUseTls: boolean expected"; - if (message.manageInsecureTls != null && message.hasOwnProperty("manageInsecureTls")) - if (typeof message.manageInsecureTls !== "boolean") - return "manageInsecureTls: boolean expected"; - if (message.manageTlsCaFile != null && message.hasOwnProperty("manageTlsCaFile")) - if (!$util.isString(message.manageTlsCaFile)) - return "manageTlsCaFile: string expected"; - if (message.manageTlsCertFile != null && message.hasOwnProperty("manageTlsCertFile")) - if (!$util.isString(message.manageTlsCertFile)) - return "manageTlsCertFile: string expected"; - if (message.manageTlsKeyFile != null && message.hasOwnProperty("manageTlsKeyFile")) - if (!$util.isString(message.manageTlsKeyFile)) - return "manageTlsKeyFile: string expected"; - if (message.disablePretty != null && message.hasOwnProperty("disablePretty")) - if (typeof message.disablePretty !== "boolean") - return "disablePretty: boolean expected"; + if (message.channels != null && message.hasOwnProperty("channels")) { + if (!Array.isArray(message.channels)) + return "channels: array expected"; + for (var i = 0; i < message.channels.length; ++i) + if (!$util.isString(message.channels[i])) + return "channels: string[] expected"; + } return null; }; /** - * Creates a GlobalManageOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RedisPubSubWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.GlobalManageOptions + * @memberof protos.args.RedisPubSubWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.GlobalManageOptions} GlobalManageOptions + * @returns {protos.args.RedisPubSubWriteArgs} RedisPubSubWriteArgs */ - GlobalManageOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.GlobalManageOptions) + RedisPubSubWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.RedisPubSubWriteArgs) return object; - var message = new $root.protos.opts.GlobalManageOptions(); - if (object.manageAddress != null) - message.manageAddress = String(object.manageAddress); - if (object.manageToken != null) - message.manageToken = String(object.manageToken); - if (object.manageTimeoutSeconds != null) - if ($util.Long) - (message.manageTimeoutSeconds = $util.Long.fromValue(object.manageTimeoutSeconds)).unsigned = false; - else if (typeof object.manageTimeoutSeconds === "string") - message.manageTimeoutSeconds = parseInt(object.manageTimeoutSeconds, 10); - else if (typeof object.manageTimeoutSeconds === "number") - message.manageTimeoutSeconds = object.manageTimeoutSeconds; - else if (typeof object.manageTimeoutSeconds === "object") - message.manageTimeoutSeconds = new $util.LongBits(object.manageTimeoutSeconds.low >>> 0, object.manageTimeoutSeconds.high >>> 0).toNumber(); - if (object.manageUseTls != null) - message.manageUseTls = Boolean(object.manageUseTls); - if (object.manageInsecureTls != null) - message.manageInsecureTls = Boolean(object.manageInsecureTls); - if (object.manageTlsCaFile != null) - message.manageTlsCaFile = String(object.manageTlsCaFile); - if (object.manageTlsCertFile != null) - message.manageTlsCertFile = String(object.manageTlsCertFile); - if (object.manageTlsKeyFile != null) - message.manageTlsKeyFile = String(object.manageTlsKeyFile); - if (object.disablePretty != null) - message.disablePretty = Boolean(object.disablePretty); - return message; + var message = new $root.protos.args.RedisPubSubWriteArgs(); + if (object.channels) { + if (!Array.isArray(object.channels)) + throw TypeError(".protos.args.RedisPubSubWriteArgs.channels: array expected"); + message.channels = []; + for (var i = 0; i < object.channels.length; ++i) + message.channels[i] = String(object.channels[i]); + } + return message; }; /** - * Creates a plain object from a GlobalManageOptions message. Also converts values to other types if specified. + * Creates a plain object from a RedisPubSubWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.GlobalManageOptions + * @memberof protos.args.RedisPubSubWriteArgs * @static - * @param {protos.opts.GlobalManageOptions} message GlobalManageOptions + * @param {protos.args.RedisPubSubWriteArgs} message RedisPubSubWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GlobalManageOptions.toObject = function toObject(message, options) { + RedisPubSubWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.manageAddress = ""; - object.manageToken = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.manageTimeoutSeconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.manageTimeoutSeconds = options.longs === String ? "0" : 0; - object.manageUseTls = false; - object.manageInsecureTls = false; - object.manageTlsCaFile = ""; - object.manageTlsCertFile = ""; - object.manageTlsKeyFile = ""; - object.disablePretty = false; - } - if (message.manageAddress != null && message.hasOwnProperty("manageAddress")) - object.manageAddress = message.manageAddress; - if (message.manageToken != null && message.hasOwnProperty("manageToken")) - object.manageToken = message.manageToken; - if (message.manageTimeoutSeconds != null && message.hasOwnProperty("manageTimeoutSeconds")) - if (typeof message.manageTimeoutSeconds === "number") - object.manageTimeoutSeconds = options.longs === String ? String(message.manageTimeoutSeconds) : message.manageTimeoutSeconds; - else - object.manageTimeoutSeconds = options.longs === String ? $util.Long.prototype.toString.call(message.manageTimeoutSeconds) : options.longs === Number ? new $util.LongBits(message.manageTimeoutSeconds.low >>> 0, message.manageTimeoutSeconds.high >>> 0).toNumber() : message.manageTimeoutSeconds; - if (message.manageUseTls != null && message.hasOwnProperty("manageUseTls")) - object.manageUseTls = message.manageUseTls; - if (message.manageInsecureTls != null && message.hasOwnProperty("manageInsecureTls")) - object.manageInsecureTls = message.manageInsecureTls; - if (message.manageTlsCaFile != null && message.hasOwnProperty("manageTlsCaFile")) - object.manageTlsCaFile = message.manageTlsCaFile; - if (message.manageTlsCertFile != null && message.hasOwnProperty("manageTlsCertFile")) - object.manageTlsCertFile = message.manageTlsCertFile; - if (message.manageTlsKeyFile != null && message.hasOwnProperty("manageTlsKeyFile")) - object.manageTlsKeyFile = message.manageTlsKeyFile; - if (message.disablePretty != null && message.hasOwnProperty("disablePretty")) - object.disablePretty = message.disablePretty; + if (options.arrays || options.defaults) + object.channels = []; + if (message.channels && message.channels.length) { + object.channels = []; + for (var j = 0; j < message.channels.length; ++j) + object.channels[j] = message.channels[j]; + } return object; }; /** - * Converts this GlobalManageOptions to JSON. + * Converts this RedisPubSubWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.GlobalManageOptions + * @memberof protos.args.RedisPubSubWriteArgs * @instance * @returns {Object.} JSON object */ - GlobalManageOptions.prototype.toJSON = function toJSON() { + RedisPubSubWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GlobalManageOptions; + return RedisPubSubWriteArgs; + })(); + + /** + * OffsetStart enum. + * @name protos.args.OffsetStart + * @enum {number} + * @property {number} LATEST=0 LATEST value + * @property {number} OLDEST=1 OLDEST value + */ + args.OffsetStart = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LATEST"] = 0; + values[valuesById[1] = "OLDEST"] = 1; + return values; })(); - opts.GetOptions = (function() { + args.RedisStreamsConn = (function() { /** - * Properties of a GetOptions. - * @memberof protos.opts - * @interface IGetOptions - * @property {protos.opts.IGetConnectionOptions|null} [connection] GetOptions connection - * @property {protos.opts.IGetRelayOptions|null} [relay] GetOptions relay - * @property {protos.opts.IGetTunnelOptions|null} [tunnel] GetOptions tunnel + * Properties of a RedisStreamsConn. + * @memberof protos.args + * @interface IRedisStreamsConn + * @property {string|null} [address] RedisStreamsConn address + * @property {string|null} [username] RedisStreamsConn username + * @property {string|null} [password] RedisStreamsConn password + * @property {number|null} [database] RedisStreamsConn database */ /** - * Constructs a new GetOptions. - * @memberof protos.opts - * @classdesc Represents a GetOptions. - * @implements IGetOptions + * Constructs a new RedisStreamsConn. + * @memberof protos.args + * @classdesc Represents a RedisStreamsConn. + * @implements IRedisStreamsConn * @constructor - * @param {protos.opts.IGetOptions=} [properties] Properties to set + * @param {protos.args.IRedisStreamsConn=} [properties] Properties to set */ - function GetOptions(properties) { + function RedisStreamsConn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18987,101 +17293,114 @@ $root.protos = (function() { } /** - * GetOptions connection. - * @member {protos.opts.IGetConnectionOptions|null|undefined} connection - * @memberof protos.opts.GetOptions + * RedisStreamsConn address. + * @member {string} address + * @memberof protos.args.RedisStreamsConn + * @instance + */ + RedisStreamsConn.prototype.address = ""; + + /** + * RedisStreamsConn username. + * @member {string} username + * @memberof protos.args.RedisStreamsConn * @instance */ - GetOptions.prototype.connection = null; + RedisStreamsConn.prototype.username = ""; /** - * GetOptions relay. - * @member {protos.opts.IGetRelayOptions|null|undefined} relay - * @memberof protos.opts.GetOptions + * RedisStreamsConn password. + * @member {string} password + * @memberof protos.args.RedisStreamsConn * @instance */ - GetOptions.prototype.relay = null; + RedisStreamsConn.prototype.password = ""; /** - * GetOptions tunnel. - * @member {protos.opts.IGetTunnelOptions|null|undefined} tunnel - * @memberof protos.opts.GetOptions + * RedisStreamsConn database. + * @member {number} database + * @memberof protos.args.RedisStreamsConn * @instance */ - GetOptions.prototype.tunnel = null; + RedisStreamsConn.prototype.database = 0; /** - * Creates a new GetOptions instance using the specified properties. + * Creates a new RedisStreamsConn instance using the specified properties. * @function create - * @memberof protos.opts.GetOptions + * @memberof protos.args.RedisStreamsConn * @static - * @param {protos.opts.IGetOptions=} [properties] Properties to set - * @returns {protos.opts.GetOptions} GetOptions instance + * @param {protos.args.IRedisStreamsConn=} [properties] Properties to set + * @returns {protos.args.RedisStreamsConn} RedisStreamsConn instance */ - GetOptions.create = function create(properties) { - return new GetOptions(properties); + RedisStreamsConn.create = function create(properties) { + return new RedisStreamsConn(properties); }; /** - * Encodes the specified GetOptions message. Does not implicitly {@link protos.opts.GetOptions.verify|verify} messages. + * Encodes the specified RedisStreamsConn message. Does not implicitly {@link protos.args.RedisStreamsConn.verify|verify} messages. * @function encode - * @memberof protos.opts.GetOptions + * @memberof protos.args.RedisStreamsConn * @static - * @param {protos.opts.IGetOptions} message GetOptions message or plain object to encode + * @param {protos.args.IRedisStreamsConn} message RedisStreamsConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOptions.encode = function encode(message, writer) { + RedisStreamsConn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) - $root.protos.opts.GetConnectionOptions.encode(message.connection, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.relay != null && Object.hasOwnProperty.call(message, "relay")) - $root.protos.opts.GetRelayOptions.encode(message.relay, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.tunnel != null && Object.hasOwnProperty.call(message, "tunnel")) - $root.protos.opts.GetTunnelOptions.encode(message.tunnel, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.address != null && Object.hasOwnProperty.call(message, "address")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); + if (message.password != null && Object.hasOwnProperty.call(message, "password")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.password); + if (message.database != null && Object.hasOwnProperty.call(message, "database")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.database); return writer; }; /** - * Encodes the specified GetOptions message, length delimited. Does not implicitly {@link protos.opts.GetOptions.verify|verify} messages. + * Encodes the specified RedisStreamsConn message, length delimited. Does not implicitly {@link protos.args.RedisStreamsConn.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.GetOptions + * @memberof protos.args.RedisStreamsConn * @static - * @param {protos.opts.IGetOptions} message GetOptions message or plain object to encode + * @param {protos.args.IRedisStreamsConn} message RedisStreamsConn message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOptions.encodeDelimited = function encodeDelimited(message, writer) { + RedisStreamsConn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetOptions message from the specified reader or buffer. + * Decodes a RedisStreamsConn message from the specified reader or buffer. * @function decode - * @memberof protos.opts.GetOptions + * @memberof protos.args.RedisStreamsConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.GetOptions} GetOptions + * @returns {protos.args.RedisStreamsConn} RedisStreamsConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOptions.decode = function decode(reader, length) { + RedisStreamsConn.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.GetOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RedisStreamsConn(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connection = $root.protos.opts.GetConnectionOptions.decode(reader, reader.uint32()); + message.address = reader.string(); break; case 2: - message.relay = $root.protos.opts.GetRelayOptions.decode(reader, reader.uint32()); + message.username = reader.string(); break; case 3: - message.tunnel = $root.protos.opts.GetTunnelOptions.decode(reader, reader.uint32()); + message.password = reader.string(); + break; + case 4: + message.database = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -19092,141 +17411,134 @@ $root.protos = (function() { }; /** - * Decodes a GetOptions message from the specified reader or buffer, length delimited. + * Decodes a RedisStreamsConn message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.GetOptions + * @memberof protos.args.RedisStreamsConn * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.GetOptions} GetOptions + * @returns {protos.args.RedisStreamsConn} RedisStreamsConn * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOptions.decodeDelimited = function decodeDelimited(reader) { + RedisStreamsConn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetOptions message. + * Verifies a RedisStreamsConn message. * @function verify - * @memberof protos.opts.GetOptions + * @memberof protos.args.RedisStreamsConn * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetOptions.verify = function verify(message) { + RedisStreamsConn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connection != null && message.hasOwnProperty("connection")) { - var error = $root.protos.opts.GetConnectionOptions.verify(message.connection); - if (error) - return "connection." + error; - } - if (message.relay != null && message.hasOwnProperty("relay")) { - var error = $root.protos.opts.GetRelayOptions.verify(message.relay); - if (error) - return "relay." + error; - } - if (message.tunnel != null && message.hasOwnProperty("tunnel")) { - var error = $root.protos.opts.GetTunnelOptions.verify(message.tunnel); - if (error) - return "tunnel." + error; - } + if (message.address != null && message.hasOwnProperty("address")) + if (!$util.isString(message.address)) + return "address: string expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.password != null && message.hasOwnProperty("password")) + if (!$util.isString(message.password)) + return "password: string expected"; + if (message.database != null && message.hasOwnProperty("database")) + if (!$util.isInteger(message.database)) + return "database: integer expected"; return null; }; /** - * Creates a GetOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RedisStreamsConn message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.GetOptions + * @memberof protos.args.RedisStreamsConn * @static * @param {Object.} object Plain object - * @returns {protos.opts.GetOptions} GetOptions + * @returns {protos.args.RedisStreamsConn} RedisStreamsConn */ - GetOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.GetOptions) + RedisStreamsConn.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.RedisStreamsConn) return object; - var message = new $root.protos.opts.GetOptions(); - if (object.connection != null) { - if (typeof object.connection !== "object") - throw TypeError(".protos.opts.GetOptions.connection: object expected"); - message.connection = $root.protos.opts.GetConnectionOptions.fromObject(object.connection); - } - if (object.relay != null) { - if (typeof object.relay !== "object") - throw TypeError(".protos.opts.GetOptions.relay: object expected"); - message.relay = $root.protos.opts.GetRelayOptions.fromObject(object.relay); - } - if (object.tunnel != null) { - if (typeof object.tunnel !== "object") - throw TypeError(".protos.opts.GetOptions.tunnel: object expected"); - message.tunnel = $root.protos.opts.GetTunnelOptions.fromObject(object.tunnel); - } + var message = new $root.protos.args.RedisStreamsConn(); + if (object.address != null) + message.address = String(object.address); + if (object.username != null) + message.username = String(object.username); + if (object.password != null) + message.password = String(object.password); + if (object.database != null) + message.database = object.database >>> 0; return message; }; /** - * Creates a plain object from a GetOptions message. Also converts values to other types if specified. + * Creates a plain object from a RedisStreamsConn message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.GetOptions + * @memberof protos.args.RedisStreamsConn * @static - * @param {protos.opts.GetOptions} message GetOptions + * @param {protos.args.RedisStreamsConn} message RedisStreamsConn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetOptions.toObject = function toObject(message, options) { + RedisStreamsConn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.connection = null; - object.relay = null; - object.tunnel = null; - } - if (message.connection != null && message.hasOwnProperty("connection")) - object.connection = $root.protos.opts.GetConnectionOptions.toObject(message.connection, options); - if (message.relay != null && message.hasOwnProperty("relay")) - object.relay = $root.protos.opts.GetRelayOptions.toObject(message.relay, options); - if (message.tunnel != null && message.hasOwnProperty("tunnel")) - object.tunnel = $root.protos.opts.GetTunnelOptions.toObject(message.tunnel, options); + object.address = ""; + object.username = ""; + object.password = ""; + object.database = 0; + } + if (message.address != null && message.hasOwnProperty("address")) + object.address = message.address; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.password != null && message.hasOwnProperty("password")) + object.password = message.password; + if (message.database != null && message.hasOwnProperty("database")) + object.database = message.database; return object; }; /** - * Converts this GetOptions to JSON. + * Converts this RedisStreamsConn to JSON. * @function toJSON - * @memberof protos.opts.GetOptions + * @memberof protos.args.RedisStreamsConn * @instance * @returns {Object.} JSON object */ - GetOptions.prototype.toJSON = function toJSON() { + RedisStreamsConn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetOptions; + return RedisStreamsConn; })(); - opts.CreateOptions = (function() { + args.CreateConsumerConfig = (function() { /** - * Properties of a CreateOptions. - * @memberof protos.opts - * @interface ICreateOptions - * @property {protos.opts.ICreateConnectionOptions|null} [connection] CreateOptions connection - * @property {protos.opts.ICreateRelayOptions|null} [relay] CreateOptions relay - * @property {protos.opts.ICreateTunnelOptions|null} [tunnel] CreateOptions tunnel + * Properties of a CreateConsumerConfig. + * @memberof protos.args + * @interface ICreateConsumerConfig + * @property {boolean|null} [createStreams] CreateConsumerConfig createStreams + * @property {boolean|null} [recreateConsumerGroup] CreateConsumerConfig recreateConsumerGroup + * @property {protos.args.OffsetStart|null} [offsetStart] CreateConsumerConfig offsetStart */ /** - * Constructs a new CreateOptions. - * @memberof protos.opts - * @classdesc Represents a CreateOptions. - * @implements ICreateOptions + * Constructs a new CreateConsumerConfig. + * @memberof protos.args + * @classdesc Represents a CreateConsumerConfig. + * @implements ICreateConsumerConfig * @constructor - * @param {protos.opts.ICreateOptions=} [properties] Properties to set + * @param {protos.args.ICreateConsumerConfig=} [properties] Properties to set */ - function CreateOptions(properties) { + function CreateConsumerConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19234,101 +17546,101 @@ $root.protos = (function() { } /** - * CreateOptions connection. - * @member {protos.opts.ICreateConnectionOptions|null|undefined} connection - * @memberof protos.opts.CreateOptions + * CreateConsumerConfig createStreams. + * @member {boolean} createStreams + * @memberof protos.args.CreateConsumerConfig * @instance */ - CreateOptions.prototype.connection = null; + CreateConsumerConfig.prototype.createStreams = false; /** - * CreateOptions relay. - * @member {protos.opts.ICreateRelayOptions|null|undefined} relay - * @memberof protos.opts.CreateOptions + * CreateConsumerConfig recreateConsumerGroup. + * @member {boolean} recreateConsumerGroup + * @memberof protos.args.CreateConsumerConfig * @instance */ - CreateOptions.prototype.relay = null; + CreateConsumerConfig.prototype.recreateConsumerGroup = false; /** - * CreateOptions tunnel. - * @member {protos.opts.ICreateTunnelOptions|null|undefined} tunnel - * @memberof protos.opts.CreateOptions + * CreateConsumerConfig offsetStart. + * @member {protos.args.OffsetStart} offsetStart + * @memberof protos.args.CreateConsumerConfig * @instance */ - CreateOptions.prototype.tunnel = null; + CreateConsumerConfig.prototype.offsetStart = 0; /** - * Creates a new CreateOptions instance using the specified properties. + * Creates a new CreateConsumerConfig instance using the specified properties. * @function create - * @memberof protos.opts.CreateOptions + * @memberof protos.args.CreateConsumerConfig * @static - * @param {protos.opts.ICreateOptions=} [properties] Properties to set - * @returns {protos.opts.CreateOptions} CreateOptions instance + * @param {protos.args.ICreateConsumerConfig=} [properties] Properties to set + * @returns {protos.args.CreateConsumerConfig} CreateConsumerConfig instance */ - CreateOptions.create = function create(properties) { - return new CreateOptions(properties); + CreateConsumerConfig.create = function create(properties) { + return new CreateConsumerConfig(properties); }; /** - * Encodes the specified CreateOptions message. Does not implicitly {@link protos.opts.CreateOptions.verify|verify} messages. + * Encodes the specified CreateConsumerConfig message. Does not implicitly {@link protos.args.CreateConsumerConfig.verify|verify} messages. * @function encode - * @memberof protos.opts.CreateOptions + * @memberof protos.args.CreateConsumerConfig * @static - * @param {protos.opts.ICreateOptions} message CreateOptions message or plain object to encode + * @param {protos.args.ICreateConsumerConfig} message CreateConsumerConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateOptions.encode = function encode(message, writer) { + CreateConsumerConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) - $root.protos.opts.CreateConnectionOptions.encode(message.connection, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.relay != null && Object.hasOwnProperty.call(message, "relay")) - $root.protos.opts.CreateRelayOptions.encode(message.relay, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.tunnel != null && Object.hasOwnProperty.call(message, "tunnel")) - $root.protos.opts.CreateTunnelOptions.encode(message.tunnel, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.createStreams != null && Object.hasOwnProperty.call(message, "createStreams")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.createStreams); + if (message.recreateConsumerGroup != null && Object.hasOwnProperty.call(message, "recreateConsumerGroup")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.recreateConsumerGroup); + if (message.offsetStart != null && Object.hasOwnProperty.call(message, "offsetStart")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.offsetStart); return writer; }; /** - * Encodes the specified CreateOptions message, length delimited. Does not implicitly {@link protos.opts.CreateOptions.verify|verify} messages. + * Encodes the specified CreateConsumerConfig message, length delimited. Does not implicitly {@link protos.args.CreateConsumerConfig.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.CreateOptions + * @memberof protos.args.CreateConsumerConfig * @static - * @param {protos.opts.ICreateOptions} message CreateOptions message or plain object to encode + * @param {protos.args.ICreateConsumerConfig} message CreateConsumerConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateOptions.encodeDelimited = function encodeDelimited(message, writer) { + CreateConsumerConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateOptions message from the specified reader or buffer. + * Decodes a CreateConsumerConfig message from the specified reader or buffer. * @function decode - * @memberof protos.opts.CreateOptions + * @memberof protos.args.CreateConsumerConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.CreateOptions} CreateOptions + * @returns {protos.args.CreateConsumerConfig} CreateConsumerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateOptions.decode = function decode(reader, length) { + CreateConsumerConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.CreateOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.CreateConsumerConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connection = $root.protos.opts.CreateConnectionOptions.decode(reader, reader.uint32()); + message.createStreams = reader.bool(); break; case 2: - message.relay = $root.protos.opts.CreateRelayOptions.decode(reader, reader.uint32()); + message.recreateConsumerGroup = reader.bool(); break; case 3: - message.tunnel = $root.protos.opts.CreateTunnelOptions.decode(reader, reader.uint32()); + message.offsetStart = reader.int32(); break; default: reader.skipType(tag & 7); @@ -19339,141 +17651,142 @@ $root.protos = (function() { }; /** - * Decodes a CreateOptions message from the specified reader or buffer, length delimited. + * Decodes a CreateConsumerConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.CreateOptions + * @memberof protos.args.CreateConsumerConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.CreateOptions} CreateOptions + * @returns {protos.args.CreateConsumerConfig} CreateConsumerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateOptions.decodeDelimited = function decodeDelimited(reader) { + CreateConsumerConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateOptions message. + * Verifies a CreateConsumerConfig message. * @function verify - * @memberof protos.opts.CreateOptions + * @memberof protos.args.CreateConsumerConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateOptions.verify = function verify(message) { + CreateConsumerConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connection != null && message.hasOwnProperty("connection")) { - var error = $root.protos.opts.CreateConnectionOptions.verify(message.connection); - if (error) - return "connection." + error; - } - if (message.relay != null && message.hasOwnProperty("relay")) { - var error = $root.protos.opts.CreateRelayOptions.verify(message.relay); - if (error) - return "relay." + error; - } - if (message.tunnel != null && message.hasOwnProperty("tunnel")) { - var error = $root.protos.opts.CreateTunnelOptions.verify(message.tunnel); - if (error) - return "tunnel." + error; - } + if (message.createStreams != null && message.hasOwnProperty("createStreams")) + if (typeof message.createStreams !== "boolean") + return "createStreams: boolean expected"; + if (message.recreateConsumerGroup != null && message.hasOwnProperty("recreateConsumerGroup")) + if (typeof message.recreateConsumerGroup !== "boolean") + return "recreateConsumerGroup: boolean expected"; + if (message.offsetStart != null && message.hasOwnProperty("offsetStart")) + switch (message.offsetStart) { + default: + return "offsetStart: enum value expected"; + case 0: + case 1: + break; + } return null; }; /** - * Creates a CreateOptions message from a plain object. Also converts values to their respective internal types. + * Creates a CreateConsumerConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.CreateOptions + * @memberof protos.args.CreateConsumerConfig * @static * @param {Object.} object Plain object - * @returns {protos.opts.CreateOptions} CreateOptions + * @returns {protos.args.CreateConsumerConfig} CreateConsumerConfig */ - CreateOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.CreateOptions) + CreateConsumerConfig.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.CreateConsumerConfig) return object; - var message = new $root.protos.opts.CreateOptions(); - if (object.connection != null) { - if (typeof object.connection !== "object") - throw TypeError(".protos.opts.CreateOptions.connection: object expected"); - message.connection = $root.protos.opts.CreateConnectionOptions.fromObject(object.connection); - } - if (object.relay != null) { - if (typeof object.relay !== "object") - throw TypeError(".protos.opts.CreateOptions.relay: object expected"); - message.relay = $root.protos.opts.CreateRelayOptions.fromObject(object.relay); - } - if (object.tunnel != null) { - if (typeof object.tunnel !== "object") - throw TypeError(".protos.opts.CreateOptions.tunnel: object expected"); - message.tunnel = $root.protos.opts.CreateTunnelOptions.fromObject(object.tunnel); + var message = new $root.protos.args.CreateConsumerConfig(); + if (object.createStreams != null) + message.createStreams = Boolean(object.createStreams); + if (object.recreateConsumerGroup != null) + message.recreateConsumerGroup = Boolean(object.recreateConsumerGroup); + switch (object.offsetStart) { + case "LATEST": + case 0: + message.offsetStart = 0; + break; + case "OLDEST": + case 1: + message.offsetStart = 1; + break; } return message; }; /** - * Creates a plain object from a CreateOptions message. Also converts values to other types if specified. + * Creates a plain object from a CreateConsumerConfig message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.CreateOptions + * @memberof protos.args.CreateConsumerConfig * @static - * @param {protos.opts.CreateOptions} message CreateOptions + * @param {protos.args.CreateConsumerConfig} message CreateConsumerConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateOptions.toObject = function toObject(message, options) { + CreateConsumerConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.connection = null; - object.relay = null; - object.tunnel = null; - } - if (message.connection != null && message.hasOwnProperty("connection")) - object.connection = $root.protos.opts.CreateConnectionOptions.toObject(message.connection, options); - if (message.relay != null && message.hasOwnProperty("relay")) - object.relay = $root.protos.opts.CreateRelayOptions.toObject(message.relay, options); - if (message.tunnel != null && message.hasOwnProperty("tunnel")) - object.tunnel = $root.protos.opts.CreateTunnelOptions.toObject(message.tunnel, options); + object.createStreams = false; + object.recreateConsumerGroup = false; + object.offsetStart = options.enums === String ? "LATEST" : 0; + } + if (message.createStreams != null && message.hasOwnProperty("createStreams")) + object.createStreams = message.createStreams; + if (message.recreateConsumerGroup != null && message.hasOwnProperty("recreateConsumerGroup")) + object.recreateConsumerGroup = message.recreateConsumerGroup; + if (message.offsetStart != null && message.hasOwnProperty("offsetStart")) + object.offsetStart = options.enums === String ? $root.protos.args.OffsetStart[message.offsetStart] : message.offsetStart; return object; }; /** - * Converts this CreateOptions to JSON. + * Converts this CreateConsumerConfig to JSON. * @function toJSON - * @memberof protos.opts.CreateOptions + * @memberof protos.args.CreateConsumerConfig * @instance * @returns {Object.} JSON object */ - CreateOptions.prototype.toJSON = function toJSON() { + CreateConsumerConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateOptions; + return CreateConsumerConfig; })(); - opts.DeleteOptions = (function() { + args.RedisStreamsReadArgs = (function() { /** - * Properties of a DeleteOptions. - * @memberof protos.opts - * @interface IDeleteOptions - * @property {protos.opts.IDeleteConnectionOptions|null} [connection] DeleteOptions connection - * @property {protos.opts.IDeleteRelayOptions|null} [relay] DeleteOptions relay - * @property {protos.opts.IDeleteTunnelOptions|null} [tunnel] DeleteOptions tunnel + * Properties of a RedisStreamsReadArgs. + * @memberof protos.args + * @interface IRedisStreamsReadArgs + * @property {Array.|null} [streams] RedisStreamsReadArgs streams + * @property {string|null} [consumerGroup] RedisStreamsReadArgs consumerGroup + * @property {string|null} [consumerName] RedisStreamsReadArgs consumerName + * @property {number|null} [count] RedisStreamsReadArgs count + * @property {protos.args.ICreateConsumerConfig|null} [createConsumerConfig] RedisStreamsReadArgs createConsumerConfig */ /** - * Constructs a new DeleteOptions. - * @memberof protos.opts - * @classdesc Represents a DeleteOptions. - * @implements IDeleteOptions + * Constructs a new RedisStreamsReadArgs. + * @memberof protos.args + * @classdesc Represents a RedisStreamsReadArgs. + * @implements IRedisStreamsReadArgs * @constructor - * @param {protos.opts.IDeleteOptions=} [properties] Properties to set + * @param {protos.args.IRedisStreamsReadArgs=} [properties] Properties to set */ - function DeleteOptions(properties) { + function RedisStreamsReadArgs(properties) { + this.streams = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19481,101 +17794,130 @@ $root.protos = (function() { } /** - * DeleteOptions connection. - * @member {protos.opts.IDeleteConnectionOptions|null|undefined} connection - * @memberof protos.opts.DeleteOptions + * RedisStreamsReadArgs streams. + * @member {Array.} streams + * @memberof protos.args.RedisStreamsReadArgs + * @instance + */ + RedisStreamsReadArgs.prototype.streams = $util.emptyArray; + + /** + * RedisStreamsReadArgs consumerGroup. + * @member {string} consumerGroup + * @memberof protos.args.RedisStreamsReadArgs + * @instance + */ + RedisStreamsReadArgs.prototype.consumerGroup = ""; + + /** + * RedisStreamsReadArgs consumerName. + * @member {string} consumerName + * @memberof protos.args.RedisStreamsReadArgs * @instance */ - DeleteOptions.prototype.connection = null; + RedisStreamsReadArgs.prototype.consumerName = ""; /** - * DeleteOptions relay. - * @member {protos.opts.IDeleteRelayOptions|null|undefined} relay - * @memberof protos.opts.DeleteOptions + * RedisStreamsReadArgs count. + * @member {number} count + * @memberof protos.args.RedisStreamsReadArgs * @instance */ - DeleteOptions.prototype.relay = null; + RedisStreamsReadArgs.prototype.count = 0; /** - * DeleteOptions tunnel. - * @member {protos.opts.IDeleteTunnelOptions|null|undefined} tunnel - * @memberof protos.opts.DeleteOptions + * RedisStreamsReadArgs createConsumerConfig. + * @member {protos.args.ICreateConsumerConfig|null|undefined} createConsumerConfig + * @memberof protos.args.RedisStreamsReadArgs * @instance */ - DeleteOptions.prototype.tunnel = null; + RedisStreamsReadArgs.prototype.createConsumerConfig = null; /** - * Creates a new DeleteOptions instance using the specified properties. + * Creates a new RedisStreamsReadArgs instance using the specified properties. * @function create - * @memberof protos.opts.DeleteOptions + * @memberof protos.args.RedisStreamsReadArgs * @static - * @param {protos.opts.IDeleteOptions=} [properties] Properties to set - * @returns {protos.opts.DeleteOptions} DeleteOptions instance + * @param {protos.args.IRedisStreamsReadArgs=} [properties] Properties to set + * @returns {protos.args.RedisStreamsReadArgs} RedisStreamsReadArgs instance */ - DeleteOptions.create = function create(properties) { - return new DeleteOptions(properties); + RedisStreamsReadArgs.create = function create(properties) { + return new RedisStreamsReadArgs(properties); }; /** - * Encodes the specified DeleteOptions message. Does not implicitly {@link protos.opts.DeleteOptions.verify|verify} messages. + * Encodes the specified RedisStreamsReadArgs message. Does not implicitly {@link protos.args.RedisStreamsReadArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.DeleteOptions + * @memberof protos.args.RedisStreamsReadArgs * @static - * @param {protos.opts.IDeleteOptions} message DeleteOptions message or plain object to encode + * @param {protos.args.IRedisStreamsReadArgs} message RedisStreamsReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteOptions.encode = function encode(message, writer) { + RedisStreamsReadArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connection != null && Object.hasOwnProperty.call(message, "connection")) - $root.protos.opts.DeleteConnectionOptions.encode(message.connection, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.relay != null && Object.hasOwnProperty.call(message, "relay")) - $root.protos.opts.DeleteRelayOptions.encode(message.relay, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.tunnel != null && Object.hasOwnProperty.call(message, "tunnel")) - $root.protos.opts.DeleteTunnelOptions.encode(message.tunnel, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.streams != null && message.streams.length) + for (var i = 0; i < message.streams.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.streams[i]); + if (message.consumerGroup != null && Object.hasOwnProperty.call(message, "consumerGroup")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.consumerGroup); + if (message.consumerName != null && Object.hasOwnProperty.call(message, "consumerName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.consumerName); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.count); + if (message.createConsumerConfig != null && Object.hasOwnProperty.call(message, "createConsumerConfig")) + $root.protos.args.CreateConsumerConfig.encode(message.createConsumerConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteOptions message, length delimited. Does not implicitly {@link protos.opts.DeleteOptions.verify|verify} messages. + * Encodes the specified RedisStreamsReadArgs message, length delimited. Does not implicitly {@link protos.args.RedisStreamsReadArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.DeleteOptions + * @memberof protos.args.RedisStreamsReadArgs * @static - * @param {protos.opts.IDeleteOptions} message DeleteOptions message or plain object to encode + * @param {protos.args.IRedisStreamsReadArgs} message RedisStreamsReadArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteOptions.encodeDelimited = function encodeDelimited(message, writer) { + RedisStreamsReadArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteOptions message from the specified reader or buffer. + * Decodes a RedisStreamsReadArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.DeleteOptions + * @memberof protos.args.RedisStreamsReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.DeleteOptions} DeleteOptions + * @returns {protos.args.RedisStreamsReadArgs} RedisStreamsReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteOptions.decode = function decode(reader, length) { + RedisStreamsReadArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.DeleteOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RedisStreamsReadArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connection = $root.protos.opts.DeleteConnectionOptions.decode(reader, reader.uint32()); + if (!(message.streams && message.streams.length)) + message.streams = []; + message.streams.push(reader.string()); break; case 2: - message.relay = $root.protos.opts.DeleteRelayOptions.decode(reader, reader.uint32()); + message.consumerGroup = reader.string(); break; case 3: - message.tunnel = $root.protos.opts.DeleteTunnelOptions.decode(reader, reader.uint32()); + message.consumerName = reader.string(); + break; + case 4: + message.count = reader.uint32(); + break; + case 5: + message.createConsumerConfig = $root.protos.args.CreateConsumerConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -19586,140 +17928,161 @@ $root.protos = (function() { }; /** - * Decodes a DeleteOptions message from the specified reader or buffer, length delimited. + * Decodes a RedisStreamsReadArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.DeleteOptions + * @memberof protos.args.RedisStreamsReadArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.DeleteOptions} DeleteOptions + * @returns {protos.args.RedisStreamsReadArgs} RedisStreamsReadArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteOptions.decodeDelimited = function decodeDelimited(reader) { + RedisStreamsReadArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteOptions message. + * Verifies a RedisStreamsReadArgs message. * @function verify - * @memberof protos.opts.DeleteOptions + * @memberof protos.args.RedisStreamsReadArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteOptions.verify = function verify(message) { + RedisStreamsReadArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connection != null && message.hasOwnProperty("connection")) { - var error = $root.protos.opts.DeleteConnectionOptions.verify(message.connection); - if (error) - return "connection." + error; - } - if (message.relay != null && message.hasOwnProperty("relay")) { - var error = $root.protos.opts.DeleteRelayOptions.verify(message.relay); - if (error) - return "relay." + error; + if (message.streams != null && message.hasOwnProperty("streams")) { + if (!Array.isArray(message.streams)) + return "streams: array expected"; + for (var i = 0; i < message.streams.length; ++i) + if (!$util.isString(message.streams[i])) + return "streams: string[] expected"; } - if (message.tunnel != null && message.hasOwnProperty("tunnel")) { - var error = $root.protos.opts.DeleteTunnelOptions.verify(message.tunnel); + if (message.consumerGroup != null && message.hasOwnProperty("consumerGroup")) + if (!$util.isString(message.consumerGroup)) + return "consumerGroup: string expected"; + if (message.consumerName != null && message.hasOwnProperty("consumerName")) + if (!$util.isString(message.consumerName)) + return "consumerName: string expected"; + if (message.count != null && message.hasOwnProperty("count")) + if (!$util.isInteger(message.count)) + return "count: integer expected"; + if (message.createConsumerConfig != null && message.hasOwnProperty("createConsumerConfig")) { + var error = $root.protos.args.CreateConsumerConfig.verify(message.createConsumerConfig); if (error) - return "tunnel." + error; + return "createConsumerConfig." + error; } return null; }; /** - * Creates a DeleteOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RedisStreamsReadArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.DeleteOptions + * @memberof protos.args.RedisStreamsReadArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.DeleteOptions} DeleteOptions + * @returns {protos.args.RedisStreamsReadArgs} RedisStreamsReadArgs */ - DeleteOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.DeleteOptions) + RedisStreamsReadArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.RedisStreamsReadArgs) return object; - var message = new $root.protos.opts.DeleteOptions(); - if (object.connection != null) { - if (typeof object.connection !== "object") - throw TypeError(".protos.opts.DeleteOptions.connection: object expected"); - message.connection = $root.protos.opts.DeleteConnectionOptions.fromObject(object.connection); - } - if (object.relay != null) { - if (typeof object.relay !== "object") - throw TypeError(".protos.opts.DeleteOptions.relay: object expected"); - message.relay = $root.protos.opts.DeleteRelayOptions.fromObject(object.relay); - } - if (object.tunnel != null) { - if (typeof object.tunnel !== "object") - throw TypeError(".protos.opts.DeleteOptions.tunnel: object expected"); - message.tunnel = $root.protos.opts.DeleteTunnelOptions.fromObject(object.tunnel); + var message = new $root.protos.args.RedisStreamsReadArgs(); + if (object.streams) { + if (!Array.isArray(object.streams)) + throw TypeError(".protos.args.RedisStreamsReadArgs.streams: array expected"); + message.streams = []; + for (var i = 0; i < object.streams.length; ++i) + message.streams[i] = String(object.streams[i]); + } + if (object.consumerGroup != null) + message.consumerGroup = String(object.consumerGroup); + if (object.consumerName != null) + message.consumerName = String(object.consumerName); + if (object.count != null) + message.count = object.count >>> 0; + if (object.createConsumerConfig != null) { + if (typeof object.createConsumerConfig !== "object") + throw TypeError(".protos.args.RedisStreamsReadArgs.createConsumerConfig: object expected"); + message.createConsumerConfig = $root.protos.args.CreateConsumerConfig.fromObject(object.createConsumerConfig); } return message; }; /** - * Creates a plain object from a DeleteOptions message. Also converts values to other types if specified. + * Creates a plain object from a RedisStreamsReadArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.DeleteOptions + * @memberof protos.args.RedisStreamsReadArgs * @static - * @param {protos.opts.DeleteOptions} message DeleteOptions + * @param {protos.args.RedisStreamsReadArgs} message RedisStreamsReadArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteOptions.toObject = function toObject(message, options) { + RedisStreamsReadArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.streams = []; if (options.defaults) { - object.connection = null; - object.relay = null; - object.tunnel = null; - } - if (message.connection != null && message.hasOwnProperty("connection")) - object.connection = $root.protos.opts.DeleteConnectionOptions.toObject(message.connection, options); - if (message.relay != null && message.hasOwnProperty("relay")) - object.relay = $root.protos.opts.DeleteRelayOptions.toObject(message.relay, options); - if (message.tunnel != null && message.hasOwnProperty("tunnel")) - object.tunnel = $root.protos.opts.DeleteTunnelOptions.toObject(message.tunnel, options); + object.consumerGroup = ""; + object.consumerName = ""; + object.count = 0; + object.createConsumerConfig = null; + } + if (message.streams && message.streams.length) { + object.streams = []; + for (var j = 0; j < message.streams.length; ++j) + object.streams[j] = message.streams[j]; + } + if (message.consumerGroup != null && message.hasOwnProperty("consumerGroup")) + object.consumerGroup = message.consumerGroup; + if (message.consumerName != null && message.hasOwnProperty("consumerName")) + object.consumerName = message.consumerName; + if (message.count != null && message.hasOwnProperty("count")) + object.count = message.count; + if (message.createConsumerConfig != null && message.hasOwnProperty("createConsumerConfig")) + object.createConsumerConfig = $root.protos.args.CreateConsumerConfig.toObject(message.createConsumerConfig, options); return object; }; /** - * Converts this DeleteOptions to JSON. + * Converts this RedisStreamsReadArgs to JSON. * @function toJSON - * @memberof protos.opts.DeleteOptions + * @memberof protos.args.RedisStreamsReadArgs * @instance * @returns {Object.} JSON object */ - DeleteOptions.prototype.toJSON = function toJSON() { + RedisStreamsReadArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteOptions; + return RedisStreamsReadArgs; })(); - opts.StopOptions = (function() { + args.RedisStreamsWriteArgs = (function() { /** - * Properties of a StopOptions. - * @memberof protos.opts - * @interface IStopOptions - * @property {protos.opts.IStopRelayOptions|null} [relay] StopOptions relay - * @property {protos.opts.IStopTunnelOptions|null} [tunnel] StopOptions tunnel + * Properties of a RedisStreamsWriteArgs. + * @memberof protos.args + * @interface IRedisStreamsWriteArgs + * @property {string|null} [writeId] RedisStreamsWriteArgs writeId + * @property {Array.|null} [streams] RedisStreamsWriteArgs streams + * @property {string|null} [key] RedisStreamsWriteArgs key */ /** - * Constructs a new StopOptions. - * @memberof protos.opts - * @classdesc Represents a StopOptions. - * @implements IStopOptions + * Constructs a new RedisStreamsWriteArgs. + * @memberof protos.args + * @classdesc Represents a RedisStreamsWriteArgs. + * @implements IRedisStreamsWriteArgs * @constructor - * @param {protos.opts.IStopOptions=} [properties] Properties to set + * @param {protos.args.IRedisStreamsWriteArgs=} [properties] Properties to set */ - function StopOptions(properties) { + function RedisStreamsWriteArgs(properties) { + this.streams = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19727,88 +18090,104 @@ $root.protos = (function() { } /** - * StopOptions relay. - * @member {protos.opts.IStopRelayOptions|null|undefined} relay - * @memberof protos.opts.StopOptions + * RedisStreamsWriteArgs writeId. + * @member {string} writeId + * @memberof protos.args.RedisStreamsWriteArgs + * @instance + */ + RedisStreamsWriteArgs.prototype.writeId = ""; + + /** + * RedisStreamsWriteArgs streams. + * @member {Array.} streams + * @memberof protos.args.RedisStreamsWriteArgs * @instance */ - StopOptions.prototype.relay = null; + RedisStreamsWriteArgs.prototype.streams = $util.emptyArray; /** - * StopOptions tunnel. - * @member {protos.opts.IStopTunnelOptions|null|undefined} tunnel - * @memberof protos.opts.StopOptions + * RedisStreamsWriteArgs key. + * @member {string} key + * @memberof protos.args.RedisStreamsWriteArgs * @instance */ - StopOptions.prototype.tunnel = null; + RedisStreamsWriteArgs.prototype.key = ""; /** - * Creates a new StopOptions instance using the specified properties. + * Creates a new RedisStreamsWriteArgs instance using the specified properties. * @function create - * @memberof protos.opts.StopOptions + * @memberof protos.args.RedisStreamsWriteArgs * @static - * @param {protos.opts.IStopOptions=} [properties] Properties to set - * @returns {protos.opts.StopOptions} StopOptions instance + * @param {protos.args.IRedisStreamsWriteArgs=} [properties] Properties to set + * @returns {protos.args.RedisStreamsWriteArgs} RedisStreamsWriteArgs instance */ - StopOptions.create = function create(properties) { - return new StopOptions(properties); + RedisStreamsWriteArgs.create = function create(properties) { + return new RedisStreamsWriteArgs(properties); }; /** - * Encodes the specified StopOptions message. Does not implicitly {@link protos.opts.StopOptions.verify|verify} messages. + * Encodes the specified RedisStreamsWriteArgs message. Does not implicitly {@link protos.args.RedisStreamsWriteArgs.verify|verify} messages. * @function encode - * @memberof protos.opts.StopOptions + * @memberof protos.args.RedisStreamsWriteArgs * @static - * @param {protos.opts.IStopOptions} message StopOptions message or plain object to encode + * @param {protos.args.IRedisStreamsWriteArgs} message RedisStreamsWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopOptions.encode = function encode(message, writer) { + RedisStreamsWriteArgs.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.relay != null && Object.hasOwnProperty.call(message, "relay")) - $root.protos.opts.StopRelayOptions.encode(message.relay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tunnel != null && Object.hasOwnProperty.call(message, "tunnel")) - $root.protos.opts.StopTunnelOptions.encode(message.tunnel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.writeId != null && Object.hasOwnProperty.call(message, "writeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.writeId); + if (message.streams != null && message.streams.length) + for (var i = 0; i < message.streams.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.streams[i]); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.key); return writer; }; /** - * Encodes the specified StopOptions message, length delimited. Does not implicitly {@link protos.opts.StopOptions.verify|verify} messages. + * Encodes the specified RedisStreamsWriteArgs message, length delimited. Does not implicitly {@link protos.args.RedisStreamsWriteArgs.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.StopOptions + * @memberof protos.args.RedisStreamsWriteArgs * @static - * @param {protos.opts.IStopOptions} message StopOptions message or plain object to encode + * @param {protos.args.IRedisStreamsWriteArgs} message RedisStreamsWriteArgs message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopOptions.encodeDelimited = function encodeDelimited(message, writer) { + RedisStreamsWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopOptions message from the specified reader or buffer. + * Decodes a RedisStreamsWriteArgs message from the specified reader or buffer. * @function decode - * @memberof protos.opts.StopOptions + * @memberof protos.args.RedisStreamsWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.StopOptions} StopOptions + * @returns {protos.args.RedisStreamsWriteArgs} RedisStreamsWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopOptions.decode = function decode(reader, length) { + RedisStreamsWriteArgs.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.StopOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RedisStreamsWriteArgs(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.relay = $root.protos.opts.StopRelayOptions.decode(reader, reader.uint32()); + message.writeId = reader.string(); break; case 2: - message.tunnel = $root.protos.opts.StopTunnelOptions.decode(reader, reader.uint32()); + if (!(message.streams && message.streams.length)) + message.streams = []; + message.streams.push(reader.string()); + break; + case 3: + message.key = reader.string(); break; default: reader.skipType(tag & 7); @@ -19819,127 +18198,151 @@ $root.protos = (function() { }; /** - * Decodes a StopOptions message from the specified reader or buffer, length delimited. + * Decodes a RedisStreamsWriteArgs message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.StopOptions + * @memberof protos.args.RedisStreamsWriteArgs * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.StopOptions} StopOptions + * @returns {protos.args.RedisStreamsWriteArgs} RedisStreamsWriteArgs * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopOptions.decodeDelimited = function decodeDelimited(reader) { + RedisStreamsWriteArgs.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopOptions message. + * Verifies a RedisStreamsWriteArgs message. * @function verify - * @memberof protos.opts.StopOptions + * @memberof protos.args.RedisStreamsWriteArgs * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopOptions.verify = function verify(message) { + RedisStreamsWriteArgs.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.relay != null && message.hasOwnProperty("relay")) { - var error = $root.protos.opts.StopRelayOptions.verify(message.relay); - if (error) - return "relay." + error; - } - if (message.tunnel != null && message.hasOwnProperty("tunnel")) { - var error = $root.protos.opts.StopTunnelOptions.verify(message.tunnel); - if (error) - return "tunnel." + error; + if (message.writeId != null && message.hasOwnProperty("writeId")) + if (!$util.isString(message.writeId)) + return "writeId: string expected"; + if (message.streams != null && message.hasOwnProperty("streams")) { + if (!Array.isArray(message.streams)) + return "streams: array expected"; + for (var i = 0; i < message.streams.length; ++i) + if (!$util.isString(message.streams[i])) + return "streams: string[] expected"; } + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; return null; }; /** - * Creates a StopOptions message from a plain object. Also converts values to their respective internal types. + * Creates a RedisStreamsWriteArgs message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.StopOptions + * @memberof protos.args.RedisStreamsWriteArgs * @static * @param {Object.} object Plain object - * @returns {protos.opts.StopOptions} StopOptions + * @returns {protos.args.RedisStreamsWriteArgs} RedisStreamsWriteArgs */ - StopOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.StopOptions) + RedisStreamsWriteArgs.fromObject = function fromObject(object) { + if (object instanceof $root.protos.args.RedisStreamsWriteArgs) return object; - var message = new $root.protos.opts.StopOptions(); - if (object.relay != null) { - if (typeof object.relay !== "object") - throw TypeError(".protos.opts.StopOptions.relay: object expected"); - message.relay = $root.protos.opts.StopRelayOptions.fromObject(object.relay); - } - if (object.tunnel != null) { - if (typeof object.tunnel !== "object") - throw TypeError(".protos.opts.StopOptions.tunnel: object expected"); - message.tunnel = $root.protos.opts.StopTunnelOptions.fromObject(object.tunnel); + var message = new $root.protos.args.RedisStreamsWriteArgs(); + if (object.writeId != null) + message.writeId = String(object.writeId); + if (object.streams) { + if (!Array.isArray(object.streams)) + throw TypeError(".protos.args.RedisStreamsWriteArgs.streams: array expected"); + message.streams = []; + for (var i = 0; i < object.streams.length; ++i) + message.streams[i] = String(object.streams[i]); } + if (object.key != null) + message.key = String(object.key); return message; }; /** - * Creates a plain object from a StopOptions message. Also converts values to other types if specified. + * Creates a plain object from a RedisStreamsWriteArgs message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.StopOptions + * @memberof protos.args.RedisStreamsWriteArgs * @static - * @param {protos.opts.StopOptions} message StopOptions + * @param {protos.args.RedisStreamsWriteArgs} message RedisStreamsWriteArgs * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopOptions.toObject = function toObject(message, options) { + RedisStreamsWriteArgs.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.streams = []; if (options.defaults) { - object.relay = null; - object.tunnel = null; + object.writeId = ""; + object.key = ""; + } + if (message.writeId != null && message.hasOwnProperty("writeId")) + object.writeId = message.writeId; + if (message.streams && message.streams.length) { + object.streams = []; + for (var j = 0; j < message.streams.length; ++j) + object.streams[j] = message.streams[j]; } - if (message.relay != null && message.hasOwnProperty("relay")) - object.relay = $root.protos.opts.StopRelayOptions.toObject(message.relay, options); - if (message.tunnel != null && message.hasOwnProperty("tunnel")) - object.tunnel = $root.protos.opts.StopTunnelOptions.toObject(message.tunnel, options); + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; return object; }; /** - * Converts this StopOptions to JSON. + * Converts this RedisStreamsWriteArgs to JSON. * @function toJSON - * @memberof protos.opts.StopOptions + * @memberof protos.args.RedisStreamsWriteArgs * @instance * @returns {Object.} JSON object */ - StopOptions.prototype.toJSON = function toJSON() { + RedisStreamsWriteArgs.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StopOptions; + return RedisStreamsWriteArgs; })(); - opts.ResumeOptions = (function() { + return args; + })(); + + protos.common = (function() { + + /** + * Namespace common. + * @memberof protos + * @namespace + */ + var common = {}; + + common.Foreman = (function() { /** - * Properties of a ResumeOptions. - * @memberof protos.opts - * @interface IResumeOptions - * @property {protos.opts.IResumeRelayOptions|null} [relay] ResumeOptions relay - * @property {protos.opts.IResumeTunnelOptions|null} [tunnel] ResumeOptions tunnel + * Properties of a Foreman. + * @memberof protos.common + * @interface IForeman + * @property {string|null} [authToken] Foreman authToken + * @property {string|null} [plumberClusterId] Foreman plumberClusterId + * @property {string|null} [teamId] Foreman teamId */ /** - * Constructs a new ResumeOptions. - * @memberof protos.opts - * @classdesc Represents a ResumeOptions. - * @implements IResumeOptions + * Constructs a new Foreman. + * @memberof protos.common + * @classdesc Represents a Foreman. + * @implements IForeman * @constructor - * @param {protos.opts.IResumeOptions=} [properties] Properties to set + * @param {protos.common.IForeman=} [properties] Properties to set */ - function ResumeOptions(properties) { + function Foreman(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19947,88 +18350,101 @@ $root.protos = (function() { } /** - * ResumeOptions relay. - * @member {protos.opts.IResumeRelayOptions|null|undefined} relay - * @memberof protos.opts.ResumeOptions + * Foreman authToken. + * @member {string} authToken + * @memberof protos.common.Foreman + * @instance + */ + Foreman.prototype.authToken = ""; + + /** + * Foreman plumberClusterId. + * @member {string} plumberClusterId + * @memberof protos.common.Foreman * @instance */ - ResumeOptions.prototype.relay = null; + Foreman.prototype.plumberClusterId = ""; /** - * ResumeOptions tunnel. - * @member {protos.opts.IResumeTunnelOptions|null|undefined} tunnel - * @memberof protos.opts.ResumeOptions + * Foreman teamId. + * @member {string} teamId + * @memberof protos.common.Foreman * @instance */ - ResumeOptions.prototype.tunnel = null; + Foreman.prototype.teamId = ""; /** - * Creates a new ResumeOptions instance using the specified properties. + * Creates a new Foreman instance using the specified properties. * @function create - * @memberof protos.opts.ResumeOptions + * @memberof protos.common.Foreman * @static - * @param {protos.opts.IResumeOptions=} [properties] Properties to set - * @returns {protos.opts.ResumeOptions} ResumeOptions instance + * @param {protos.common.IForeman=} [properties] Properties to set + * @returns {protos.common.Foreman} Foreman instance */ - ResumeOptions.create = function create(properties) { - return new ResumeOptions(properties); + Foreman.create = function create(properties) { + return new Foreman(properties); }; /** - * Encodes the specified ResumeOptions message. Does not implicitly {@link protos.opts.ResumeOptions.verify|verify} messages. + * Encodes the specified Foreman message. Does not implicitly {@link protos.common.Foreman.verify|verify} messages. * @function encode - * @memberof protos.opts.ResumeOptions + * @memberof protos.common.Foreman * @static - * @param {protos.opts.IResumeOptions} message ResumeOptions message or plain object to encode + * @param {protos.common.IForeman} message Foreman message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeOptions.encode = function encode(message, writer) { + Foreman.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.relay != null && Object.hasOwnProperty.call(message, "relay")) - $root.protos.opts.ResumeRelayOptions.encode(message.relay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tunnel != null && Object.hasOwnProperty.call(message, "tunnel")) - $root.protos.opts.ResumeTunnelOptions.encode(message.tunnel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.authToken != null && Object.hasOwnProperty.call(message, "authToken")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.authToken); + if (message.plumberClusterId != null && Object.hasOwnProperty.call(message, "plumberClusterId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.plumberClusterId); + if (message.teamId != null && Object.hasOwnProperty.call(message, "teamId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.teamId); return writer; }; /** - * Encodes the specified ResumeOptions message, length delimited. Does not implicitly {@link protos.opts.ResumeOptions.verify|verify} messages. + * Encodes the specified Foreman message, length delimited. Does not implicitly {@link protos.common.Foreman.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ResumeOptions + * @memberof protos.common.Foreman * @static - * @param {protos.opts.IResumeOptions} message ResumeOptions message or plain object to encode + * @param {protos.common.IForeman} message Foreman message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeOptions.encodeDelimited = function encodeDelimited(message, writer) { + Foreman.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResumeOptions message from the specified reader or buffer. + * Decodes a Foreman message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ResumeOptions + * @memberof protos.common.Foreman * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ResumeOptions} ResumeOptions + * @returns {protos.common.Foreman} Foreman * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeOptions.decode = function decode(reader, length) { + Foreman.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ResumeOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.common.Foreman(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.relay = $root.protos.opts.ResumeRelayOptions.decode(reader, reader.uint32()); + message.authToken = reader.string(); break; case 2: - message.tunnel = $root.protos.opts.ResumeTunnelOptions.decode(reader, reader.uint32()); + message.plumberClusterId = reader.string(); + break; + case 3: + message.teamId = reader.string(); break; default: reader.skipType(tag & 7); @@ -20039,126 +18455,125 @@ $root.protos = (function() { }; /** - * Decodes a ResumeOptions message from the specified reader or buffer, length delimited. + * Decodes a Foreman message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ResumeOptions + * @memberof protos.common.Foreman * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ResumeOptions} ResumeOptions + * @returns {protos.common.Foreman} Foreman * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeOptions.decodeDelimited = function decodeDelimited(reader) { + Foreman.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResumeOptions message. + * Verifies a Foreman message. * @function verify - * @memberof protos.opts.ResumeOptions + * @memberof protos.common.Foreman * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResumeOptions.verify = function verify(message) { + Foreman.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.relay != null && message.hasOwnProperty("relay")) { - var error = $root.protos.opts.ResumeRelayOptions.verify(message.relay); - if (error) - return "relay." + error; - } - if (message.tunnel != null && message.hasOwnProperty("tunnel")) { - var error = $root.protos.opts.ResumeTunnelOptions.verify(message.tunnel); - if (error) - return "tunnel." + error; - } + if (message.authToken != null && message.hasOwnProperty("authToken")) + if (!$util.isString(message.authToken)) + return "authToken: string expected"; + if (message.plumberClusterId != null && message.hasOwnProperty("plumberClusterId")) + if (!$util.isString(message.plumberClusterId)) + return "plumberClusterId: string expected"; + if (message.teamId != null && message.hasOwnProperty("teamId")) + if (!$util.isString(message.teamId)) + return "teamId: string expected"; return null; }; /** - * Creates a ResumeOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Foreman message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ResumeOptions + * @memberof protos.common.Foreman * @static * @param {Object.} object Plain object - * @returns {protos.opts.ResumeOptions} ResumeOptions + * @returns {protos.common.Foreman} Foreman */ - ResumeOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ResumeOptions) + Foreman.fromObject = function fromObject(object) { + if (object instanceof $root.protos.common.Foreman) return object; - var message = new $root.protos.opts.ResumeOptions(); - if (object.relay != null) { - if (typeof object.relay !== "object") - throw TypeError(".protos.opts.ResumeOptions.relay: object expected"); - message.relay = $root.protos.opts.ResumeRelayOptions.fromObject(object.relay); - } - if (object.tunnel != null) { - if (typeof object.tunnel !== "object") - throw TypeError(".protos.opts.ResumeOptions.tunnel: object expected"); - message.tunnel = $root.protos.opts.ResumeTunnelOptions.fromObject(object.tunnel); - } + var message = new $root.protos.common.Foreman(); + if (object.authToken != null) + message.authToken = String(object.authToken); + if (object.plumberClusterId != null) + message.plumberClusterId = String(object.plumberClusterId); + if (object.teamId != null) + message.teamId = String(object.teamId); return message; }; /** - * Creates a plain object from a ResumeOptions message. Also converts values to other types if specified. + * Creates a plain object from a Foreman message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ResumeOptions + * @memberof protos.common.Foreman * @static - * @param {protos.opts.ResumeOptions} message ResumeOptions + * @param {protos.common.Foreman} message Foreman * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResumeOptions.toObject = function toObject(message, options) { + Foreman.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.relay = null; - object.tunnel = null; + object.authToken = ""; + object.plumberClusterId = ""; + object.teamId = ""; } - if (message.relay != null && message.hasOwnProperty("relay")) - object.relay = $root.protos.opts.ResumeRelayOptions.toObject(message.relay, options); - if (message.tunnel != null && message.hasOwnProperty("tunnel")) - object.tunnel = $root.protos.opts.ResumeTunnelOptions.toObject(message.tunnel, options); + if (message.authToken != null && message.hasOwnProperty("authToken")) + object.authToken = message.authToken; + if (message.plumberClusterId != null && message.hasOwnProperty("plumberClusterId")) + object.plumberClusterId = message.plumberClusterId; + if (message.teamId != null && message.hasOwnProperty("teamId")) + object.teamId = message.teamId; return object; }; /** - * Converts this ResumeOptions to JSON. + * Converts this Foreman to JSON. * @function toJSON - * @memberof protos.opts.ResumeOptions + * @memberof protos.common.Foreman * @instance * @returns {Object.} JSON object */ - ResumeOptions.prototype.toJSON = function toJSON() { + Foreman.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResumeOptions; + return Foreman; })(); - opts.GetConnectionOptions = (function() { + common.SourceManager = (function() { /** - * Properties of a GetConnectionOptions. - * @memberof protos.opts - * @interface IGetConnectionOptions - * @property {string|null} [id] GetConnectionOptions id + * Properties of a SourceManager. + * @memberof protos.common + * @interface ISourceManager + * @property {string|null} [serverToken] SourceManager serverToken + * @property {string|null} [sourceId] SourceManager sourceId */ /** - * Constructs a new GetConnectionOptions. - * @memberof protos.opts - * @classdesc Represents a GetConnectionOptions. - * @implements IGetConnectionOptions + * Constructs a new SourceManager. + * @memberof protos.common + * @classdesc Represents a SourceManager. + * @implements ISourceManager * @constructor - * @param {protos.opts.IGetConnectionOptions=} [properties] Properties to set + * @param {protos.common.ISourceManager=} [properties] Properties to set */ - function GetConnectionOptions(properties) { + function SourceManager(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20166,75 +18581,88 @@ $root.protos = (function() { } /** - * GetConnectionOptions id. - * @member {string} id - * @memberof protos.opts.GetConnectionOptions + * SourceManager serverToken. + * @member {string} serverToken + * @memberof protos.common.SourceManager + * @instance + */ + SourceManager.prototype.serverToken = ""; + + /** + * SourceManager sourceId. + * @member {string} sourceId + * @memberof protos.common.SourceManager * @instance */ - GetConnectionOptions.prototype.id = ""; + SourceManager.prototype.sourceId = ""; /** - * Creates a new GetConnectionOptions instance using the specified properties. + * Creates a new SourceManager instance using the specified properties. * @function create - * @memberof protos.opts.GetConnectionOptions + * @memberof protos.common.SourceManager * @static - * @param {protos.opts.IGetConnectionOptions=} [properties] Properties to set - * @returns {protos.opts.GetConnectionOptions} GetConnectionOptions instance + * @param {protos.common.ISourceManager=} [properties] Properties to set + * @returns {protos.common.SourceManager} SourceManager instance */ - GetConnectionOptions.create = function create(properties) { - return new GetConnectionOptions(properties); + SourceManager.create = function create(properties) { + return new SourceManager(properties); }; /** - * Encodes the specified GetConnectionOptions message. Does not implicitly {@link protos.opts.GetConnectionOptions.verify|verify} messages. + * Encodes the specified SourceManager message. Does not implicitly {@link protos.common.SourceManager.verify|verify} messages. * @function encode - * @memberof protos.opts.GetConnectionOptions + * @memberof protos.common.SourceManager * @static - * @param {protos.opts.IGetConnectionOptions} message GetConnectionOptions message or plain object to encode + * @param {protos.common.ISourceManager} message SourceManager message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetConnectionOptions.encode = function encode(message, writer) { + SourceManager.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.serverToken != null && Object.hasOwnProperty.call(message, "serverToken")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.serverToken); + if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceId); return writer; }; /** - * Encodes the specified GetConnectionOptions message, length delimited. Does not implicitly {@link protos.opts.GetConnectionOptions.verify|verify} messages. + * Encodes the specified SourceManager message, length delimited. Does not implicitly {@link protos.common.SourceManager.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.GetConnectionOptions + * @memberof protos.common.SourceManager * @static - * @param {protos.opts.IGetConnectionOptions} message GetConnectionOptions message or plain object to encode + * @param {protos.common.ISourceManager} message SourceManager message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetConnectionOptions.encodeDelimited = function encodeDelimited(message, writer) { + SourceManager.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetConnectionOptions message from the specified reader or buffer. + * Decodes a SourceManager message from the specified reader or buffer. * @function decode - * @memberof protos.opts.GetConnectionOptions + * @memberof protos.common.SourceManager * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.GetConnectionOptions} GetConnectionOptions + * @returns {protos.common.SourceManager} SourceManager * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetConnectionOptions.decode = function decode(reader, length) { + SourceManager.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.GetConnectionOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.common.SourceManager(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message.serverToken = reader.string(); + break; + case 2: + message.sourceId = reader.string(); break; default: reader.skipType(tag & 7); @@ -20245,129 +18673,118 @@ $root.protos = (function() { }; /** - * Decodes a GetConnectionOptions message from the specified reader or buffer, length delimited. + * Decodes a SourceManager message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.GetConnectionOptions + * @memberof protos.common.SourceManager * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.GetConnectionOptions} GetConnectionOptions + * @returns {protos.common.SourceManager} SourceManager * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetConnectionOptions.decodeDelimited = function decodeDelimited(reader) { + SourceManager.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetConnectionOptions message. + * Verifies a SourceManager message. * @function verify - * @memberof protos.opts.GetConnectionOptions + * @memberof protos.common.SourceManager * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetConnectionOptions.verify = function verify(message) { + SourceManager.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; + if (message.serverToken != null && message.hasOwnProperty("serverToken")) + if (!$util.isString(message.serverToken)) + return "serverToken: string expected"; + if (message.sourceId != null && message.hasOwnProperty("sourceId")) + if (!$util.isString(message.sourceId)) + return "sourceId: string expected"; return null; }; /** - * Creates a GetConnectionOptions message from a plain object. Also converts values to their respective internal types. + * Creates a SourceManager message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.GetConnectionOptions + * @memberof protos.common.SourceManager * @static * @param {Object.} object Plain object - * @returns {protos.opts.GetConnectionOptions} GetConnectionOptions + * @returns {protos.common.SourceManager} SourceManager */ - GetConnectionOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.GetConnectionOptions) + SourceManager.fromObject = function fromObject(object) { + if (object instanceof $root.protos.common.SourceManager) return object; - var message = new $root.protos.opts.GetConnectionOptions(); - if (object.id != null) - message.id = String(object.id); + var message = new $root.protos.common.SourceManager(); + if (object.serverToken != null) + message.serverToken = String(object.serverToken); + if (object.sourceId != null) + message.sourceId = String(object.sourceId); return message; }; /** - * Creates a plain object from a GetConnectionOptions message. Also converts values to other types if specified. + * Creates a plain object from a SourceManager message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.GetConnectionOptions + * @memberof protos.common.SourceManager * @static - * @param {protos.opts.GetConnectionOptions} message GetConnectionOptions + * @param {protos.common.SourceManager} message SourceManager * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetConnectionOptions.toObject = function toObject(message, options) { + SourceManager.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + if (options.defaults) { + object.serverToken = ""; + object.sourceId = ""; + } + if (message.serverToken != null && message.hasOwnProperty("serverToken")) + object.serverToken = message.serverToken; + if (message.sourceId != null && message.hasOwnProperty("sourceId")) + object.sourceId = message.sourceId; return object; }; /** - * Converts this GetConnectionOptions to JSON. + * Converts this SourceManager to JSON. * @function toJSON - * @memberof protos.opts.GetConnectionOptions + * @memberof protos.common.SourceManager * @instance * @returns {Object.} JSON object */ - GetConnectionOptions.prototype.toJSON = function toJSON() { + SourceManager.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetConnectionOptions; + return SourceManager; })(); - opts.CreateConnectionOptions = (function() { + common.Auth = (function() { /** - * Properties of a CreateConnectionOptions. - * @memberof protos.opts - * @interface ICreateConnectionOptions - * @property {string|null} [name] CreateConnectionOptions name - * @property {string|null} [notes] CreateConnectionOptions notes - * @property {protos.args.IKafkaConn|null} [kafka] CreateConnectionOptions kafka - * @property {protos.args.IActiveMQConn|null} [activeMq] CreateConnectionOptions activeMq - * @property {protos.args.IAWSSQSConn|null} [awsSqs] CreateConnectionOptions awsSqs - * @property {protos.args.IAWSSNSConn|null} [awsSns] CreateConnectionOptions awsSns - * @property {protos.args.IMongoConn|null} [mongo] CreateConnectionOptions mongo - * @property {protos.args.INatsConn|null} [nats] CreateConnectionOptions nats - * @property {protos.args.INatsStreamingConn|null} [natsStreaming] CreateConnectionOptions natsStreaming - * @property {protos.args.INSQConn|null} [nsq] CreateConnectionOptions nsq - * @property {protos.args.IPostgresConn|null} [postgres] CreateConnectionOptions postgres - * @property {protos.args.IPulsarConn|null} [pulsar] CreateConnectionOptions pulsar - * @property {protos.args.IRabbitConn|null} [rabbit] CreateConnectionOptions rabbit - * @property {protos.args.IRabbitStreamsConn|null} [rabbitStreams] CreateConnectionOptions rabbitStreams - * @property {protos.args.IRedisPubSubConn|null} [redisPubsub] CreateConnectionOptions redisPubsub - * @property {protos.args.IRedisStreamsConn|null} [redisStreams] CreateConnectionOptions redisStreams - * @property {protos.args.IAzureEventHubConn|null} [azureEventHub] CreateConnectionOptions azureEventHub - * @property {protos.args.IAzureServiceBusConn|null} [azureServiceBus] CreateConnectionOptions azureServiceBus - * @property {protos.args.IMQTTConn|null} [mqtt] CreateConnectionOptions mqtt - * @property {protos.args.IKubeMQQueueConn|null} [kubemqQueue] CreateConnectionOptions kubemqQueue - * @property {protos.args.IGCPPubSubConn|null} [gcpPubsub] CreateConnectionOptions gcpPubsub - * @property {protos.args.INatsJetstreamConn|null} [natsJetstream] CreateConnectionOptions natsJetstream - * @property {protos.args.IAWSKinesisConn|null} [awsKinesis] CreateConnectionOptions awsKinesis - */ - - /** - * Constructs a new CreateConnectionOptions. - * @memberof protos.opts - * @classdesc Represents a CreateConnectionOptions. - * @implements ICreateConnectionOptions + * Properties of an Auth. + * @memberof protos.common + * @interface IAuth + * @property {string|null} [token] Auth token + * @property {protos.common.IForeman|null} [_foreman] Auth _foreman + * @property {protos.common.ISourceManager|null} [_sourceManager] Auth _sourceManager + */ + + /** + * Constructs a new Auth. + * @memberof protos.common + * @classdesc Represents an Auth. + * @implements IAuth * @constructor - * @param {protos.opts.ICreateConnectionOptions=} [properties] Properties to set + * @param {protos.common.IAuth=} [properties] Properties to set */ - function CreateConnectionOptions(properties) { + function Auth(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20375,361 +18792,101 @@ $root.protos = (function() { } /** - * CreateConnectionOptions name. - * @member {string} name - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.name = ""; - - /** - * CreateConnectionOptions notes. - * @member {string} notes - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.notes = ""; - - /** - * CreateConnectionOptions kafka. - * @member {protos.args.IKafkaConn|null|undefined} kafka - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.kafka = null; - - /** - * CreateConnectionOptions activeMq. - * @member {protos.args.IActiveMQConn|null|undefined} activeMq - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.activeMq = null; - - /** - * CreateConnectionOptions awsSqs. - * @member {protos.args.IAWSSQSConn|null|undefined} awsSqs - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.awsSqs = null; - - /** - * CreateConnectionOptions awsSns. - * @member {protos.args.IAWSSNSConn|null|undefined} awsSns - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.awsSns = null; - - /** - * CreateConnectionOptions mongo. - * @member {protos.args.IMongoConn|null|undefined} mongo - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.mongo = null; - - /** - * CreateConnectionOptions nats. - * @member {protos.args.INatsConn|null|undefined} nats - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.nats = null; - - /** - * CreateConnectionOptions natsStreaming. - * @member {protos.args.INatsStreamingConn|null|undefined} natsStreaming - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.natsStreaming = null; - - /** - * CreateConnectionOptions nsq. - * @member {protos.args.INSQConn|null|undefined} nsq - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.nsq = null; - - /** - * CreateConnectionOptions postgres. - * @member {protos.args.IPostgresConn|null|undefined} postgres - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.postgres = null; - - /** - * CreateConnectionOptions pulsar. - * @member {protos.args.IPulsarConn|null|undefined} pulsar - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.pulsar = null; - - /** - * CreateConnectionOptions rabbit. - * @member {protos.args.IRabbitConn|null|undefined} rabbit - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.rabbit = null; - - /** - * CreateConnectionOptions rabbitStreams. - * @member {protos.args.IRabbitStreamsConn|null|undefined} rabbitStreams - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.rabbitStreams = null; - - /** - * CreateConnectionOptions redisPubsub. - * @member {protos.args.IRedisPubSubConn|null|undefined} redisPubsub - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.redisPubsub = null; - - /** - * CreateConnectionOptions redisStreams. - * @member {protos.args.IRedisStreamsConn|null|undefined} redisStreams - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.redisStreams = null; - - /** - * CreateConnectionOptions azureEventHub. - * @member {protos.args.IAzureEventHubConn|null|undefined} azureEventHub - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.azureEventHub = null; - - /** - * CreateConnectionOptions azureServiceBus. - * @member {protos.args.IAzureServiceBusConn|null|undefined} azureServiceBus - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.azureServiceBus = null; - - /** - * CreateConnectionOptions mqtt. - * @member {protos.args.IMQTTConn|null|undefined} mqtt - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.mqtt = null; - - /** - * CreateConnectionOptions kubemqQueue. - * @member {protos.args.IKubeMQQueueConn|null|undefined} kubemqQueue - * @memberof protos.opts.CreateConnectionOptions - * @instance - */ - CreateConnectionOptions.prototype.kubemqQueue = null; - - /** - * CreateConnectionOptions gcpPubsub. - * @member {protos.args.IGCPPubSubConn|null|undefined} gcpPubsub - * @memberof protos.opts.CreateConnectionOptions + * Auth token. + * @member {string} token + * @memberof protos.common.Auth * @instance */ - CreateConnectionOptions.prototype.gcpPubsub = null; + Auth.prototype.token = ""; /** - * CreateConnectionOptions natsJetstream. - * @member {protos.args.INatsJetstreamConn|null|undefined} natsJetstream - * @memberof protos.opts.CreateConnectionOptions + * Auth _foreman. + * @member {protos.common.IForeman|null|undefined} _foreman + * @memberof protos.common.Auth * @instance */ - CreateConnectionOptions.prototype.natsJetstream = null; + Auth.prototype._foreman = null; /** - * CreateConnectionOptions awsKinesis. - * @member {protos.args.IAWSKinesisConn|null|undefined} awsKinesis - * @memberof protos.opts.CreateConnectionOptions + * Auth _sourceManager. + * @member {protos.common.ISourceManager|null|undefined} _sourceManager + * @memberof protos.common.Auth * @instance */ - CreateConnectionOptions.prototype.awsKinesis = null; + Auth.prototype._sourceManager = null; /** - * Creates a new CreateConnectionOptions instance using the specified properties. + * Creates a new Auth instance using the specified properties. * @function create - * @memberof protos.opts.CreateConnectionOptions + * @memberof protos.common.Auth * @static - * @param {protos.opts.ICreateConnectionOptions=} [properties] Properties to set - * @returns {protos.opts.CreateConnectionOptions} CreateConnectionOptions instance + * @param {protos.common.IAuth=} [properties] Properties to set + * @returns {protos.common.Auth} Auth instance */ - CreateConnectionOptions.create = function create(properties) { - return new CreateConnectionOptions(properties); + Auth.create = function create(properties) { + return new Auth(properties); }; /** - * Encodes the specified CreateConnectionOptions message. Does not implicitly {@link protos.opts.CreateConnectionOptions.verify|verify} messages. + * Encodes the specified Auth message. Does not implicitly {@link protos.common.Auth.verify|verify} messages. * @function encode - * @memberof protos.opts.CreateConnectionOptions + * @memberof protos.common.Auth * @static - * @param {protos.opts.ICreateConnectionOptions} message CreateConnectionOptions message or plain object to encode + * @param {protos.common.IAuth} message Auth message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateConnectionOptions.encode = function encode(message, writer) { + Auth.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.notes); - if (message.kafka != null && Object.hasOwnProperty.call(message, "kafka")) - $root.protos.args.KafkaConn.encode(message.kafka, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); - if (message.activeMq != null && Object.hasOwnProperty.call(message, "activeMq")) - $root.protos.args.ActiveMQConn.encode(message.activeMq, writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); - if (message.awsSqs != null && Object.hasOwnProperty.call(message, "awsSqs")) - $root.protos.args.AWSSQSConn.encode(message.awsSqs, writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim(); - if (message.awsSns != null && Object.hasOwnProperty.call(message, "awsSns")) - $root.protos.args.AWSSNSConn.encode(message.awsSns, writer.uint32(/* id 103, wireType 2 =*/826).fork()).ldelim(); - if (message.mongo != null && Object.hasOwnProperty.call(message, "mongo")) - $root.protos.args.MongoConn.encode(message.mongo, writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim(); - if (message.nats != null && Object.hasOwnProperty.call(message, "nats")) - $root.protos.args.NatsConn.encode(message.nats, writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); - if (message.natsStreaming != null && Object.hasOwnProperty.call(message, "natsStreaming")) - $root.protos.args.NatsStreamingConn.encode(message.natsStreaming, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim(); - if (message.nsq != null && Object.hasOwnProperty.call(message, "nsq")) - $root.protos.args.NSQConn.encode(message.nsq, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); - if (message.postgres != null && Object.hasOwnProperty.call(message, "postgres")) - $root.protos.args.PostgresConn.encode(message.postgres, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim(); - if (message.pulsar != null && Object.hasOwnProperty.call(message, "pulsar")) - $root.protos.args.PulsarConn.encode(message.pulsar, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); - if (message.rabbit != null && Object.hasOwnProperty.call(message, "rabbit")) - $root.protos.args.RabbitConn.encode(message.rabbit, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); - if (message.rabbitStreams != null && Object.hasOwnProperty.call(message, "rabbitStreams")) - $root.protos.args.RabbitStreamsConn.encode(message.rabbitStreams, writer.uint32(/* id 111, wireType 2 =*/890).fork()).ldelim(); - if (message.redisPubsub != null && Object.hasOwnProperty.call(message, "redisPubsub")) - $root.protos.args.RedisPubSubConn.encode(message.redisPubsub, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim(); - if (message.redisStreams != null && Object.hasOwnProperty.call(message, "redisStreams")) - $root.protos.args.RedisStreamsConn.encode(message.redisStreams, writer.uint32(/* id 113, wireType 2 =*/906).fork()).ldelim(); - if (message.azureEventHub != null && Object.hasOwnProperty.call(message, "azureEventHub")) - $root.protos.args.AzureEventHubConn.encode(message.azureEventHub, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); - if (message.azureServiceBus != null && Object.hasOwnProperty.call(message, "azureServiceBus")) - $root.protos.args.AzureServiceBusConn.encode(message.azureServiceBus, writer.uint32(/* id 115, wireType 2 =*/922).fork()).ldelim(); - if (message.mqtt != null && Object.hasOwnProperty.call(message, "mqtt")) - $root.protos.args.MQTTConn.encode(message.mqtt, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); - if (message.kubemqQueue != null && Object.hasOwnProperty.call(message, "kubemqQueue")) - $root.protos.args.KubeMQQueueConn.encode(message.kubemqQueue, writer.uint32(/* id 117, wireType 2 =*/938).fork()).ldelim(); - if (message.gcpPubsub != null && Object.hasOwnProperty.call(message, "gcpPubsub")) - $root.protos.args.GCPPubSubConn.encode(message.gcpPubsub, writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim(); - if (message.natsJetstream != null && Object.hasOwnProperty.call(message, "natsJetstream")) - $root.protos.args.NatsJetstreamConn.encode(message.natsJetstream, writer.uint32(/* id 119, wireType 2 =*/954).fork()).ldelim(); - if (message.awsKinesis != null && Object.hasOwnProperty.call(message, "awsKinesis")) - $root.protos.args.AWSKinesisConn.encode(message.awsKinesis, writer.uint32(/* id 120, wireType 2 =*/962).fork()).ldelim(); + if (message.token != null && Object.hasOwnProperty.call(message, "token")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.token); + if (message._foreman != null && Object.hasOwnProperty.call(message, "_foreman")) + $root.protos.common.Foreman.encode(message._foreman, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message._sourceManager != null && Object.hasOwnProperty.call(message, "_sourceManager")) + $root.protos.common.SourceManager.encode(message._sourceManager, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateConnectionOptions message, length delimited. Does not implicitly {@link protos.opts.CreateConnectionOptions.verify|verify} messages. + * Encodes the specified Auth message, length delimited. Does not implicitly {@link protos.common.Auth.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.CreateConnectionOptions + * @memberof protos.common.Auth * @static - * @param {protos.opts.ICreateConnectionOptions} message CreateConnectionOptions message or plain object to encode + * @param {protos.common.IAuth} message Auth message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateConnectionOptions.encodeDelimited = function encodeDelimited(message, writer) { + Auth.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateConnectionOptions message from the specified reader or buffer. + * Decodes an Auth message from the specified reader or buffer. * @function decode - * @memberof protos.opts.CreateConnectionOptions + * @memberof protos.common.Auth * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.CreateConnectionOptions} CreateConnectionOptions + * @returns {protos.common.Auth} Auth * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateConnectionOptions.decode = function decode(reader, length) { + Auth.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.CreateConnectionOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.common.Auth(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.token = reader.string(); break; case 2: - message.notes = reader.string(); + message._foreman = $root.protos.common.Foreman.decode(reader, reader.uint32()); break; - case 100: - message.kafka = $root.protos.args.KafkaConn.decode(reader, reader.uint32()); - break; - case 101: - message.activeMq = $root.protos.args.ActiveMQConn.decode(reader, reader.uint32()); - break; - case 102: - message.awsSqs = $root.protos.args.AWSSQSConn.decode(reader, reader.uint32()); - break; - case 103: - message.awsSns = $root.protos.args.AWSSNSConn.decode(reader, reader.uint32()); - break; - case 104: - message.mongo = $root.protos.args.MongoConn.decode(reader, reader.uint32()); - break; - case 105: - message.nats = $root.protos.args.NatsConn.decode(reader, reader.uint32()); - break; - case 106: - message.natsStreaming = $root.protos.args.NatsStreamingConn.decode(reader, reader.uint32()); - break; - case 107: - message.nsq = $root.protos.args.NSQConn.decode(reader, reader.uint32()); - break; - case 108: - message.postgres = $root.protos.args.PostgresConn.decode(reader, reader.uint32()); - break; - case 109: - message.pulsar = $root.protos.args.PulsarConn.decode(reader, reader.uint32()); - break; - case 110: - message.rabbit = $root.protos.args.RabbitConn.decode(reader, reader.uint32()); - break; - case 111: - message.rabbitStreams = $root.protos.args.RabbitStreamsConn.decode(reader, reader.uint32()); - break; - case 112: - message.redisPubsub = $root.protos.args.RedisPubSubConn.decode(reader, reader.uint32()); - break; - case 113: - message.redisStreams = $root.protos.args.RedisStreamsConn.decode(reader, reader.uint32()); - break; - case 114: - message.azureEventHub = $root.protos.args.AzureEventHubConn.decode(reader, reader.uint32()); - break; - case 115: - message.azureServiceBus = $root.protos.args.AzureServiceBusConn.decode(reader, reader.uint32()); - break; - case 116: - message.mqtt = $root.protos.args.MQTTConn.decode(reader, reader.uint32()); - break; - case 117: - message.kubemqQueue = $root.protos.args.KubeMQQueueConn.decode(reader, reader.uint32()); - break; - case 118: - message.gcpPubsub = $root.protos.args.GCPPubSubConn.decode(reader, reader.uint32()); - break; - case 119: - message.natsJetstream = $root.protos.args.NatsJetstreamConn.decode(reader, reader.uint32()); - break; - case 120: - message.awsKinesis = $root.protos.args.AWSKinesisConn.decode(reader, reader.uint32()); + case 3: + message._sourceManager = $root.protos.common.SourceManager.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -20740,389 +18897,232 @@ $root.protos = (function() { }; /** - * Decodes a CreateConnectionOptions message from the specified reader or buffer, length delimited. + * Decodes an Auth message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.CreateConnectionOptions + * @memberof protos.common.Auth * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.CreateConnectionOptions} CreateConnectionOptions + * @returns {protos.common.Auth} Auth * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateConnectionOptions.decodeDelimited = function decodeDelimited(reader) { + Auth.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateConnectionOptions message. + * Verifies an Auth message. * @function verify - * @memberof protos.opts.CreateConnectionOptions + * @memberof protos.common.Auth * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateConnectionOptions.verify = function verify(message) { + Auth.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.notes != null && message.hasOwnProperty("notes")) - if (!$util.isString(message.notes)) - return "notes: string expected"; - if (message.kafka != null && message.hasOwnProperty("kafka")) { - var error = $root.protos.args.KafkaConn.verify(message.kafka); - if (error) - return "kafka." + error; - } - if (message.activeMq != null && message.hasOwnProperty("activeMq")) { - var error = $root.protos.args.ActiveMQConn.verify(message.activeMq); - if (error) - return "activeMq." + error; - } - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) { - var error = $root.protos.args.AWSSQSConn.verify(message.awsSqs); - if (error) - return "awsSqs." + error; - } - if (message.awsSns != null && message.hasOwnProperty("awsSns")) { - var error = $root.protos.args.AWSSNSConn.verify(message.awsSns); - if (error) - return "awsSns." + error; - } - if (message.mongo != null && message.hasOwnProperty("mongo")) { - var error = $root.protos.args.MongoConn.verify(message.mongo); - if (error) - return "mongo." + error; - } - if (message.nats != null && message.hasOwnProperty("nats")) { - var error = $root.protos.args.NatsConn.verify(message.nats); - if (error) - return "nats." + error; - } - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) { - var error = $root.protos.args.NatsStreamingConn.verify(message.natsStreaming); - if (error) - return "natsStreaming." + error; - } - if (message.nsq != null && message.hasOwnProperty("nsq")) { - var error = $root.protos.args.NSQConn.verify(message.nsq); - if (error) - return "nsq." + error; - } - if (message.postgres != null && message.hasOwnProperty("postgres")) { - var error = $root.protos.args.PostgresConn.verify(message.postgres); - if (error) - return "postgres." + error; - } - if (message.pulsar != null && message.hasOwnProperty("pulsar")) { - var error = $root.protos.args.PulsarConn.verify(message.pulsar); - if (error) - return "pulsar." + error; - } - if (message.rabbit != null && message.hasOwnProperty("rabbit")) { - var error = $root.protos.args.RabbitConn.verify(message.rabbit); - if (error) - return "rabbit." + error; - } - if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) { - var error = $root.protos.args.RabbitStreamsConn.verify(message.rabbitStreams); - if (error) - return "rabbitStreams." + error; - } - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) { - var error = $root.protos.args.RedisPubSubConn.verify(message.redisPubsub); - if (error) - return "redisPubsub." + error; - } - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) { - var error = $root.protos.args.RedisStreamsConn.verify(message.redisStreams); - if (error) - return "redisStreams." + error; - } - if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) { - var error = $root.protos.args.AzureEventHubConn.verify(message.azureEventHub); - if (error) - return "azureEventHub." + error; - } - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) { - var error = $root.protos.args.AzureServiceBusConn.verify(message.azureServiceBus); - if (error) - return "azureServiceBus." + error; - } - if (message.mqtt != null && message.hasOwnProperty("mqtt")) { - var error = $root.protos.args.MQTTConn.verify(message.mqtt); - if (error) - return "mqtt." + error; - } - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) { - var error = $root.protos.args.KubeMQQueueConn.verify(message.kubemqQueue); - if (error) - return "kubemqQueue." + error; - } - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) { - var error = $root.protos.args.GCPPubSubConn.verify(message.gcpPubsub); - if (error) - return "gcpPubsub." + error; - } - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) { - var error = $root.protos.args.NatsJetstreamConn.verify(message.natsJetstream); + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message._foreman != null && message.hasOwnProperty("_foreman")) { + var error = $root.protos.common.Foreman.verify(message._foreman); if (error) - return "natsJetstream." + error; + return "_foreman." + error; } - if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) { - var error = $root.protos.args.AWSKinesisConn.verify(message.awsKinesis); + if (message._sourceManager != null && message.hasOwnProperty("_sourceManager")) { + var error = $root.protos.common.SourceManager.verify(message._sourceManager); if (error) - return "awsKinesis." + error; + return "_sourceManager." + error; } return null; }; /** - * Creates a CreateConnectionOptions message from a plain object. Also converts values to their respective internal types. + * Creates an Auth message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.CreateConnectionOptions + * @memberof protos.common.Auth * @static * @param {Object.} object Plain object - * @returns {protos.opts.CreateConnectionOptions} CreateConnectionOptions + * @returns {protos.common.Auth} Auth */ - CreateConnectionOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.CreateConnectionOptions) + Auth.fromObject = function fromObject(object) { + if (object instanceof $root.protos.common.Auth) return object; - var message = new $root.protos.opts.CreateConnectionOptions(); - if (object.name != null) - message.name = String(object.name); - if (object.notes != null) - message.notes = String(object.notes); - if (object.kafka != null) { - if (typeof object.kafka !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.kafka: object expected"); - message.kafka = $root.protos.args.KafkaConn.fromObject(object.kafka); - } - if (object.activeMq != null) { - if (typeof object.activeMq !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.activeMq: object expected"); - message.activeMq = $root.protos.args.ActiveMQConn.fromObject(object.activeMq); - } - if (object.awsSqs != null) { - if (typeof object.awsSqs !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.awsSqs: object expected"); - message.awsSqs = $root.protos.args.AWSSQSConn.fromObject(object.awsSqs); - } - if (object.awsSns != null) { - if (typeof object.awsSns !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.awsSns: object expected"); - message.awsSns = $root.protos.args.AWSSNSConn.fromObject(object.awsSns); - } - if (object.mongo != null) { - if (typeof object.mongo !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.mongo: object expected"); - message.mongo = $root.protos.args.MongoConn.fromObject(object.mongo); - } - if (object.nats != null) { - if (typeof object.nats !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.nats: object expected"); - message.nats = $root.protos.args.NatsConn.fromObject(object.nats); - } - if (object.natsStreaming != null) { - if (typeof object.natsStreaming !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.natsStreaming: object expected"); - message.natsStreaming = $root.protos.args.NatsStreamingConn.fromObject(object.natsStreaming); - } - if (object.nsq != null) { - if (typeof object.nsq !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.nsq: object expected"); - message.nsq = $root.protos.args.NSQConn.fromObject(object.nsq); - } - if (object.postgres != null) { - if (typeof object.postgres !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.postgres: object expected"); - message.postgres = $root.protos.args.PostgresConn.fromObject(object.postgres); - } - if (object.pulsar != null) { - if (typeof object.pulsar !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.pulsar: object expected"); - message.pulsar = $root.protos.args.PulsarConn.fromObject(object.pulsar); - } - if (object.rabbit != null) { - if (typeof object.rabbit !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.rabbit: object expected"); - message.rabbit = $root.protos.args.RabbitConn.fromObject(object.rabbit); - } - if (object.rabbitStreams != null) { - if (typeof object.rabbitStreams !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.rabbitStreams: object expected"); - message.rabbitStreams = $root.protos.args.RabbitStreamsConn.fromObject(object.rabbitStreams); - } - if (object.redisPubsub != null) { - if (typeof object.redisPubsub !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.redisPubsub: object expected"); - message.redisPubsub = $root.protos.args.RedisPubSubConn.fromObject(object.redisPubsub); - } - if (object.redisStreams != null) { - if (typeof object.redisStreams !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.redisStreams: object expected"); - message.redisStreams = $root.protos.args.RedisStreamsConn.fromObject(object.redisStreams); - } - if (object.azureEventHub != null) { - if (typeof object.azureEventHub !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.azureEventHub: object expected"); - message.azureEventHub = $root.protos.args.AzureEventHubConn.fromObject(object.azureEventHub); - } - if (object.azureServiceBus != null) { - if (typeof object.azureServiceBus !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.azureServiceBus: object expected"); - message.azureServiceBus = $root.protos.args.AzureServiceBusConn.fromObject(object.azureServiceBus); - } - if (object.mqtt != null) { - if (typeof object.mqtt !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.mqtt: object expected"); - message.mqtt = $root.protos.args.MQTTConn.fromObject(object.mqtt); - } - if (object.kubemqQueue != null) { - if (typeof object.kubemqQueue !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.kubemqQueue: object expected"); - message.kubemqQueue = $root.protos.args.KubeMQQueueConn.fromObject(object.kubemqQueue); - } - if (object.gcpPubsub != null) { - if (typeof object.gcpPubsub !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.gcpPubsub: object expected"); - message.gcpPubsub = $root.protos.args.GCPPubSubConn.fromObject(object.gcpPubsub); - } - if (object.natsJetstream != null) { - if (typeof object.natsJetstream !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.natsJetstream: object expected"); - message.natsJetstream = $root.protos.args.NatsJetstreamConn.fromObject(object.natsJetstream); + var message = new $root.protos.common.Auth(); + if (object.token != null) + message.token = String(object.token); + if (object._foreman != null) { + if (typeof object._foreman !== "object") + throw TypeError(".protos.common.Auth._foreman: object expected"); + message._foreman = $root.protos.common.Foreman.fromObject(object._foreman); } - if (object.awsKinesis != null) { - if (typeof object.awsKinesis !== "object") - throw TypeError(".protos.opts.CreateConnectionOptions.awsKinesis: object expected"); - message.awsKinesis = $root.protos.args.AWSKinesisConn.fromObject(object.awsKinesis); + if (object._sourceManager != null) { + if (typeof object._sourceManager !== "object") + throw TypeError(".protos.common.Auth._sourceManager: object expected"); + message._sourceManager = $root.protos.common.SourceManager.fromObject(object._sourceManager); } return message; }; /** - * Creates a plain object from a CreateConnectionOptions message. Also converts values to other types if specified. + * Creates a plain object from an Auth message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.CreateConnectionOptions + * @memberof protos.common.Auth * @static - * @param {protos.opts.CreateConnectionOptions} message CreateConnectionOptions + * @param {protos.common.Auth} message Auth * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateConnectionOptions.toObject = function toObject(message, options) { + Auth.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.notes = ""; - object.kafka = null; - object.activeMq = null; - object.awsSqs = null; - object.awsSns = null; - object.mongo = null; - object.nats = null; - object.natsStreaming = null; - object.nsq = null; - object.postgres = null; - object.pulsar = null; - object.rabbit = null; - object.rabbitStreams = null; - object.redisPubsub = null; - object.redisStreams = null; - object.azureEventHub = null; - object.azureServiceBus = null; - object.mqtt = null; - object.kubemqQueue = null; - object.gcpPubsub = null; - object.natsJetstream = null; - object.awsKinesis = null; + object.token = ""; + object._foreman = null; + object._sourceManager = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.notes != null && message.hasOwnProperty("notes")) - object.notes = message.notes; - if (message.kafka != null && message.hasOwnProperty("kafka")) - object.kafka = $root.protos.args.KafkaConn.toObject(message.kafka, options); - if (message.activeMq != null && message.hasOwnProperty("activeMq")) - object.activeMq = $root.protos.args.ActiveMQConn.toObject(message.activeMq, options); - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) - object.awsSqs = $root.protos.args.AWSSQSConn.toObject(message.awsSqs, options); - if (message.awsSns != null && message.hasOwnProperty("awsSns")) - object.awsSns = $root.protos.args.AWSSNSConn.toObject(message.awsSns, options); - if (message.mongo != null && message.hasOwnProperty("mongo")) - object.mongo = $root.protos.args.MongoConn.toObject(message.mongo, options); - if (message.nats != null && message.hasOwnProperty("nats")) - object.nats = $root.protos.args.NatsConn.toObject(message.nats, options); - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) - object.natsStreaming = $root.protos.args.NatsStreamingConn.toObject(message.natsStreaming, options); - if (message.nsq != null && message.hasOwnProperty("nsq")) - object.nsq = $root.protos.args.NSQConn.toObject(message.nsq, options); - if (message.postgres != null && message.hasOwnProperty("postgres")) - object.postgres = $root.protos.args.PostgresConn.toObject(message.postgres, options); - if (message.pulsar != null && message.hasOwnProperty("pulsar")) - object.pulsar = $root.protos.args.PulsarConn.toObject(message.pulsar, options); - if (message.rabbit != null && message.hasOwnProperty("rabbit")) - object.rabbit = $root.protos.args.RabbitConn.toObject(message.rabbit, options); - if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) - object.rabbitStreams = $root.protos.args.RabbitStreamsConn.toObject(message.rabbitStreams, options); - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) - object.redisPubsub = $root.protos.args.RedisPubSubConn.toObject(message.redisPubsub, options); - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) - object.redisStreams = $root.protos.args.RedisStreamsConn.toObject(message.redisStreams, options); - if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) - object.azureEventHub = $root.protos.args.AzureEventHubConn.toObject(message.azureEventHub, options); - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) - object.azureServiceBus = $root.protos.args.AzureServiceBusConn.toObject(message.azureServiceBus, options); - if (message.mqtt != null && message.hasOwnProperty("mqtt")) - object.mqtt = $root.protos.args.MQTTConn.toObject(message.mqtt, options); - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) - object.kubemqQueue = $root.protos.args.KubeMQQueueConn.toObject(message.kubemqQueue, options); - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) - object.gcpPubsub = $root.protos.args.GCPPubSubConn.toObject(message.gcpPubsub, options); - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) - object.natsJetstream = $root.protos.args.NatsJetstreamConn.toObject(message.natsJetstream, options); - if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) - object.awsKinesis = $root.protos.args.AWSKinesisConn.toObject(message.awsKinesis, options); + if (message.token != null && message.hasOwnProperty("token")) + object.token = message.token; + if (message._foreman != null && message.hasOwnProperty("_foreman")) + object._foreman = $root.protos.common.Foreman.toObject(message._foreman, options); + if (message._sourceManager != null && message.hasOwnProperty("_sourceManager")) + object._sourceManager = $root.protos.common.SourceManager.toObject(message._sourceManager, options); return object; }; /** - * Converts this CreateConnectionOptions to JSON. + * Converts this Auth to JSON. * @function toJSON - * @memberof protos.opts.CreateConnectionOptions + * @memberof protos.common.Auth * @instance * @returns {Object.} JSON object */ - CreateConnectionOptions.prototype.toJSON = function toJSON() { + Auth.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateConnectionOptions; + return Auth; + })(); + + /** + * BackendType enum. + * @name protos.common.BackendType + * @enum {number} + * @property {number} BACKEND_TYPE_UNSET=0 BACKEND_TYPE_UNSET value + * @property {number} BACKEND_TYPE_KAFKA=1 BACKEND_TYPE_KAFKA value + * @property {number} BACKEND_TYPE_RABBIT=2 BACKEND_TYPE_RABBIT value + * @property {number} BACKEND_TYPE_RABBIT_STREAMS=3 BACKEND_TYPE_RABBIT_STREAMS value + * @property {number} BACKEND_TYPE_NSQ=4 BACKEND_TYPE_NSQ value + * @property {number} BACKEND_TYPE_NATS=5 BACKEND_TYPE_NATS value + * @property {number} BACKEND_TYPE_NATS_STREAMING=6 BACKEND_TYPE_NATS_STREAMING value + * @property {number} BACKEND_TYPE_GCP_PUBSUB=7 BACKEND_TYPE_GCP_PUBSUB value + * @property {number} BACKEND_TYPE_AZURE_SERVICE_BUS=8 BACKEND_TYPE_AZURE_SERVICE_BUS value + * @property {number} BACKEND_TYPE_AZURE_EVENT_HUB=9 BACKEND_TYPE_AZURE_EVENT_HUB value + * @property {number} BACKEND_TYPE_AWS_SQS=10 BACKEND_TYPE_AWS_SQS value + * @property {number} BACKEND_TYPE_AWS_SNS=11 BACKEND_TYPE_AWS_SNS value + * @property {number} BACKEND_TYPE_REDIS_PUBSUB=12 BACKEND_TYPE_REDIS_PUBSUB value + * @property {number} BACKEND_TYPE_REDIS_STREAMS=13 BACKEND_TYPE_REDIS_STREAMS value + * @property {number} BACKEND_TYPE_ACTIVEMQ=14 BACKEND_TYPE_ACTIVEMQ value + * @property {number} BACKEND_TYPE_PULSAR=15 BACKEND_TYPE_PULSAR value + * @property {number} BACKEND_TYPE_MQTT=16 BACKEND_TYPE_MQTT value + * @property {number} BACKEND_TYPE_POSTGRES_CDC=17 BACKEND_TYPE_POSTGRES_CDC value + * @property {number} BACKEND_TYPE_MONGODB_CDC=18 BACKEND_TYPE_MONGODB_CDC value + * @property {number} BACKEND_TYPE_KUBE_MQ=19 BACKEND_TYPE_KUBE_MQ value + * @property {number} BACKEND_TYPE_AWS_KINESIS=20 BACKEND_TYPE_AWS_KINESIS value + */ + common.BackendType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "BACKEND_TYPE_UNSET"] = 0; + values[valuesById[1] = "BACKEND_TYPE_KAFKA"] = 1; + values[valuesById[2] = "BACKEND_TYPE_RABBIT"] = 2; + values[valuesById[3] = "BACKEND_TYPE_RABBIT_STREAMS"] = 3; + values[valuesById[4] = "BACKEND_TYPE_NSQ"] = 4; + values[valuesById[5] = "BACKEND_TYPE_NATS"] = 5; + values[valuesById[6] = "BACKEND_TYPE_NATS_STREAMING"] = 6; + values[valuesById[7] = "BACKEND_TYPE_GCP_PUBSUB"] = 7; + values[valuesById[8] = "BACKEND_TYPE_AZURE_SERVICE_BUS"] = 8; + values[valuesById[9] = "BACKEND_TYPE_AZURE_EVENT_HUB"] = 9; + values[valuesById[10] = "BACKEND_TYPE_AWS_SQS"] = 10; + values[valuesById[11] = "BACKEND_TYPE_AWS_SNS"] = 11; + values[valuesById[12] = "BACKEND_TYPE_REDIS_PUBSUB"] = 12; + values[valuesById[13] = "BACKEND_TYPE_REDIS_STREAMS"] = 13; + values[valuesById[14] = "BACKEND_TYPE_ACTIVEMQ"] = 14; + values[valuesById[15] = "BACKEND_TYPE_PULSAR"] = 15; + values[valuesById[16] = "BACKEND_TYPE_MQTT"] = 16; + values[valuesById[17] = "BACKEND_TYPE_POSTGRES_CDC"] = 17; + values[valuesById[18] = "BACKEND_TYPE_MONGODB_CDC"] = 18; + values[valuesById[19] = "BACKEND_TYPE_KUBE_MQ"] = 19; + values[valuesById[20] = "BACKEND_TYPE_AWS_KINESIS"] = 20; + return values; + })(); + + /** + * Code enum. + * @name protos.common.Code + * @enum {number} + * @property {number} OK=0 OK value + * @property {number} CANCELLED=1 CANCELLED value + * @property {number} UNKNOWN=2 UNKNOWN value + * @property {number} INVALID_ARGUMENT=3 INVALID_ARGUMENT value + * @property {number} DEADLINE_EXCEEDED=4 DEADLINE_EXCEEDED value + * @property {number} NOT_FOUND=5 NOT_FOUND value + * @property {number} ALREADY_EXISTS=6 ALREADY_EXISTS value + * @property {number} PERMISSION_DENIED=7 PERMISSION_DENIED value + * @property {number} UNAUTHENTICATED=16 UNAUTHENTICATED value + * @property {number} RESOURCE_EXHAUSTED=8 RESOURCE_EXHAUSTED value + * @property {number} FAILED_PRECONDITION=9 FAILED_PRECONDITION value + * @property {number} ABORTED=10 ABORTED value + * @property {number} OUT_OF_RANGE=11 OUT_OF_RANGE value + * @property {number} UNIMPLEMENTED=12 UNIMPLEMENTED value + * @property {number} INTERNAL=13 INTERNAL value + * @property {number} UNAVAILABLE=14 UNAVAILABLE value + * @property {number} DATA_LOSS=15 DATA_LOSS value + */ + common.Code = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OK"] = 0; + values[valuesById[1] = "CANCELLED"] = 1; + values[valuesById[2] = "UNKNOWN"] = 2; + values[valuesById[3] = "INVALID_ARGUMENT"] = 3; + values[valuesById[4] = "DEADLINE_EXCEEDED"] = 4; + values[valuesById[5] = "NOT_FOUND"] = 5; + values[valuesById[6] = "ALREADY_EXISTS"] = 6; + values[valuesById[7] = "PERMISSION_DENIED"] = 7; + values[valuesById[16] = "UNAUTHENTICATED"] = 16; + values[valuesById[8] = "RESOURCE_EXHAUSTED"] = 8; + values[valuesById[9] = "FAILED_PRECONDITION"] = 9; + values[valuesById[10] = "ABORTED"] = 10; + values[valuesById[11] = "OUT_OF_RANGE"] = 11; + values[valuesById[12] = "UNIMPLEMENTED"] = 12; + values[valuesById[13] = "INTERNAL"] = 13; + values[valuesById[14] = "UNAVAILABLE"] = 14; + values[valuesById[15] = "DATA_LOSS"] = 15; + return values; })(); - opts.DeleteConnectionOptions = (function() { + common.Status = (function() { /** - * Properties of a DeleteConnectionOptions. - * @memberof protos.opts - * @interface IDeleteConnectionOptions - * @property {string|null} [id] DeleteConnectionOptions id + * Properties of a Status. + * @memberof protos.common + * @interface IStatus + * @property {protos.common.Code|null} [code] Status code + * @property {string|null} [message] Status message + * @property {string|null} [requestId] Status requestId */ /** - * Constructs a new DeleteConnectionOptions. - * @memberof protos.opts - * @classdesc Represents a DeleteConnectionOptions. - * @implements IDeleteConnectionOptions + * Constructs a new Status. + * @memberof protos.common + * @classdesc Represents a Status. + * @implements IStatus * @constructor - * @param {protos.opts.IDeleteConnectionOptions=} [properties] Properties to set + * @param {protos.common.IStatus=} [properties] Properties to set */ - function DeleteConnectionOptions(properties) { + function Status(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21130,78 +19130,104 @@ $root.protos = (function() { } /** - * DeleteConnectionOptions id. - * @member {string} id - * @memberof protos.opts.DeleteConnectionOptions + * Status code. + * @member {protos.common.Code} code + * @memberof protos.common.Status + * @instance + */ + Status.prototype.code = 0; + + /** + * Status message. + * @member {string} message + * @memberof protos.common.Status + * @instance + */ + Status.prototype.message = ""; + + /** + * Status requestId. + * @member {string} requestId + * @memberof protos.common.Status * @instance */ - DeleteConnectionOptions.prototype.id = ""; + Status.prototype.requestId = ""; /** - * Creates a new DeleteConnectionOptions instance using the specified properties. + * Creates a new Status instance using the specified properties. * @function create - * @memberof protos.opts.DeleteConnectionOptions + * @memberof protos.common.Status * @static - * @param {protos.opts.IDeleteConnectionOptions=} [properties] Properties to set - * @returns {protos.opts.DeleteConnectionOptions} DeleteConnectionOptions instance + * @param {protos.common.IStatus=} [properties] Properties to set + * @returns {protos.common.Status} Status instance */ - DeleteConnectionOptions.create = function create(properties) { - return new DeleteConnectionOptions(properties); + Status.create = function create(properties) { + return new Status(properties); }; /** - * Encodes the specified DeleteConnectionOptions message. Does not implicitly {@link protos.opts.DeleteConnectionOptions.verify|verify} messages. + * Encodes the specified Status message. Does not implicitly {@link protos.common.Status.verify|verify} messages. * @function encode - * @memberof protos.opts.DeleteConnectionOptions + * @memberof protos.common.Status * @static - * @param {protos.opts.IDeleteConnectionOptions} message DeleteConnectionOptions message or plain object to encode + * @param {protos.common.IStatus} message Status message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteConnectionOptions.encode = function encode(message, writer) { + Status.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId); return writer; }; /** - * Encodes the specified DeleteConnectionOptions message, length delimited. Does not implicitly {@link protos.opts.DeleteConnectionOptions.verify|verify} messages. + * Encodes the specified Status message, length delimited. Does not implicitly {@link protos.common.Status.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.DeleteConnectionOptions + * @memberof protos.common.Status * @static - * @param {protos.opts.IDeleteConnectionOptions} message DeleteConnectionOptions message or plain object to encode + * @param {protos.common.IStatus} message Status message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteConnectionOptions.encodeDelimited = function encodeDelimited(message, writer) { + Status.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteConnectionOptions message from the specified reader or buffer. + * Decodes a Status message from the specified reader or buffer. * @function decode - * @memberof protos.opts.DeleteConnectionOptions + * @memberof protos.common.Status * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.DeleteConnectionOptions} DeleteConnectionOptions + * @returns {protos.common.Status} Status * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteConnectionOptions.decode = function decode(reader, length) { + Status.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.DeleteConnectionOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.common.Status(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message.code = reader.int32(); break; - default: - reader.skipType(tag & 7); + case 2: + message.message = reader.string(); + break; + case 3: + message.requestId = reader.string(); + break; + default: + reader.skipType(tag & 7); break; } } @@ -21209,107 +19235,215 @@ $root.protos = (function() { }; /** - * Decodes a DeleteConnectionOptions message from the specified reader or buffer, length delimited. + * Decodes a Status message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.DeleteConnectionOptions + * @memberof protos.common.Status * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.DeleteConnectionOptions} DeleteConnectionOptions + * @returns {protos.common.Status} Status * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteConnectionOptions.decodeDelimited = function decodeDelimited(reader) { + Status.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteConnectionOptions message. + * Verifies a Status message. * @function verify - * @memberof protos.opts.DeleteConnectionOptions + * @memberof protos.common.Status * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteConnectionOptions.verify = function verify(message) { + Status.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; + if (message.code != null && message.hasOwnProperty("code")) + switch (message.code) { + default: + return "code: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 16: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + break; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; return null; }; /** - * Creates a DeleteConnectionOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Status message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.DeleteConnectionOptions + * @memberof protos.common.Status * @static * @param {Object.} object Plain object - * @returns {protos.opts.DeleteConnectionOptions} DeleteConnectionOptions + * @returns {protos.common.Status} Status */ - DeleteConnectionOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.DeleteConnectionOptions) + Status.fromObject = function fromObject(object) { + if (object instanceof $root.protos.common.Status) return object; - var message = new $root.protos.opts.DeleteConnectionOptions(); - if (object.id != null) - message.id = String(object.id); + var message = new $root.protos.common.Status(); + switch (object.code) { + case "OK": + case 0: + message.code = 0; + break; + case "CANCELLED": + case 1: + message.code = 1; + break; + case "UNKNOWN": + case 2: + message.code = 2; + break; + case "INVALID_ARGUMENT": + case 3: + message.code = 3; + break; + case "DEADLINE_EXCEEDED": + case 4: + message.code = 4; + break; + case "NOT_FOUND": + case 5: + message.code = 5; + break; + case "ALREADY_EXISTS": + case 6: + message.code = 6; + break; + case "PERMISSION_DENIED": + case 7: + message.code = 7; + break; + case "UNAUTHENTICATED": + case 16: + message.code = 16; + break; + case "RESOURCE_EXHAUSTED": + case 8: + message.code = 8; + break; + case "FAILED_PRECONDITION": + case 9: + message.code = 9; + break; + case "ABORTED": + case 10: + message.code = 10; + break; + case "OUT_OF_RANGE": + case 11: + message.code = 11; + break; + case "UNIMPLEMENTED": + case 12: + message.code = 12; + break; + case "INTERNAL": + case 13: + message.code = 13; + break; + case "UNAVAILABLE": + case 14: + message.code = 14; + break; + case "DATA_LOSS": + case 15: + message.code = 15; + break; + } + if (object.message != null) + message.message = String(object.message); + if (object.requestId != null) + message.requestId = String(object.requestId); return message; }; /** - * Creates a plain object from a DeleteConnectionOptions message. Also converts values to other types if specified. + * Creates a plain object from a Status message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.DeleteConnectionOptions + * @memberof protos.common.Status * @static - * @param {protos.opts.DeleteConnectionOptions} message DeleteConnectionOptions + * @param {protos.common.Status} message Status * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteConnectionOptions.toObject = function toObject(message, options) { + Status.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + if (options.defaults) { + object.code = options.enums === String ? "OK" : 0; + object.message = ""; + object.requestId = ""; + } + if (message.code != null && message.hasOwnProperty("code")) + object.code = options.enums === String ? $root.protos.common.Code[message.code] : message.code; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.requestId != null && message.hasOwnProperty("requestId")) + object.requestId = message.requestId; return object; }; /** - * Converts this DeleteConnectionOptions to JSON. + * Converts this Status to JSON. * @function toJSON - * @memberof protos.opts.DeleteConnectionOptions + * @memberof protos.common.Status * @instance * @returns {Object.} JSON object */ - DeleteConnectionOptions.prototype.toJSON = function toJSON() { + Status.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteConnectionOptions; + return Status; })(); - opts.GetTunnelOptions = (function() { + common.Validation = (function() { /** - * Properties of a GetTunnelOptions. - * @memberof protos.opts - * @interface IGetTunnelOptions - * @property {string|null} [id] GetTunnelOptions id + * Properties of a Validation. + * @memberof protos.common + * @interface IValidation + * @property {string|null} [_id] Validation _id + * @property {string|null} [schemaId] Validation schemaId + * @property {Array.|null} [fields] Validation fields */ /** - * Constructs a new GetTunnelOptions. - * @memberof protos.opts - * @classdesc Represents a GetTunnelOptions. - * @implements IGetTunnelOptions + * Constructs a new Validation. + * @memberof protos.common + * @classdesc Represents a Validation. + * @implements IValidation * @constructor - * @param {protos.opts.IGetTunnelOptions=} [properties] Properties to set + * @param {protos.common.IValidation=} [properties] Properties to set */ - function GetTunnelOptions(properties) { + function Validation(properties) { + this.fields = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21317,75 +19451,104 @@ $root.protos = (function() { } /** - * GetTunnelOptions id. - * @member {string} id - * @memberof protos.opts.GetTunnelOptions + * Validation _id. + * @member {string} _id + * @memberof protos.common.Validation + * @instance + */ + Validation.prototype._id = ""; + + /** + * Validation schemaId. + * @member {string} schemaId + * @memberof protos.common.Validation + * @instance + */ + Validation.prototype.schemaId = ""; + + /** + * Validation fields. + * @member {Array.} fields + * @memberof protos.common.Validation * @instance */ - GetTunnelOptions.prototype.id = ""; + Validation.prototype.fields = $util.emptyArray; /** - * Creates a new GetTunnelOptions instance using the specified properties. + * Creates a new Validation instance using the specified properties. * @function create - * @memberof protos.opts.GetTunnelOptions + * @memberof protos.common.Validation * @static - * @param {protos.opts.IGetTunnelOptions=} [properties] Properties to set - * @returns {protos.opts.GetTunnelOptions} GetTunnelOptions instance + * @param {protos.common.IValidation=} [properties] Properties to set + * @returns {protos.common.Validation} Validation instance */ - GetTunnelOptions.create = function create(properties) { - return new GetTunnelOptions(properties); + Validation.create = function create(properties) { + return new Validation(properties); }; /** - * Encodes the specified GetTunnelOptions message. Does not implicitly {@link protos.opts.GetTunnelOptions.verify|verify} messages. + * Encodes the specified Validation message. Does not implicitly {@link protos.common.Validation.verify|verify} messages. * @function encode - * @memberof protos.opts.GetTunnelOptions + * @memberof protos.common.Validation * @static - * @param {protos.opts.IGetTunnelOptions} message GetTunnelOptions message or plain object to encode + * @param {protos.common.IValidation} message Validation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTunnelOptions.encode = function encode(message, writer) { + Validation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message._id != null && Object.hasOwnProperty.call(message, "_id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message._id); + if (message.schemaId != null && Object.hasOwnProperty.call(message, "schemaId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaId); + if (message.fields != null && message.fields.length) + for (var i = 0; i < message.fields.length; ++i) + $root.protos.common.Validation.Field.encode(message.fields[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetTunnelOptions message, length delimited. Does not implicitly {@link protos.opts.GetTunnelOptions.verify|verify} messages. + * Encodes the specified Validation message, length delimited. Does not implicitly {@link protos.common.Validation.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.GetTunnelOptions + * @memberof protos.common.Validation * @static - * @param {protos.opts.IGetTunnelOptions} message GetTunnelOptions message or plain object to encode + * @param {protos.common.IValidation} message Validation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetTunnelOptions.encodeDelimited = function encodeDelimited(message, writer) { + Validation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTunnelOptions message from the specified reader or buffer. + * Decodes a Validation message from the specified reader or buffer. * @function decode - * @memberof protos.opts.GetTunnelOptions + * @memberof protos.common.Validation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.GetTunnelOptions} GetTunnelOptions + * @returns {protos.common.Validation} Validation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTunnelOptions.decode = function decode(reader, length) { + Validation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.GetTunnelOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.common.Validation(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message._id = reader.string(); + break; + case 2: + message.schemaId = reader.string(); + break; + case 3: + if (!(message.fields && message.fields.length)) + message.fields = []; + message.fields.push($root.protos.common.Validation.Field.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -21396,547 +19559,646 @@ $root.protos = (function() { }; /** - * Decodes a GetTunnelOptions message from the specified reader or buffer, length delimited. + * Decodes a Validation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.GetTunnelOptions + * @memberof protos.common.Validation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.GetTunnelOptions} GetTunnelOptions + * @returns {protos.common.Validation} Validation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetTunnelOptions.decodeDelimited = function decodeDelimited(reader) { + Validation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetTunnelOptions message. + * Verifies a Validation message. * @function verify - * @memberof protos.opts.GetTunnelOptions + * @memberof protos.common.Validation * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetTunnelOptions.verify = function verify(message) { + Validation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; + if (message._id != null && message.hasOwnProperty("_id")) + if (!$util.isString(message._id)) + return "_id: string expected"; + if (message.schemaId != null && message.hasOwnProperty("schemaId")) + if (!$util.isString(message.schemaId)) + return "schemaId: string expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!Array.isArray(message.fields)) + return "fields: array expected"; + for (var i = 0; i < message.fields.length; ++i) { + var error = $root.protos.common.Validation.Field.verify(message.fields[i]); + if (error) + return "fields." + error; + } + } return null; }; /** - * Creates a GetTunnelOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Validation message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.GetTunnelOptions + * @memberof protos.common.Validation * @static * @param {Object.} object Plain object - * @returns {protos.opts.GetTunnelOptions} GetTunnelOptions + * @returns {protos.common.Validation} Validation */ - GetTunnelOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.GetTunnelOptions) + Validation.fromObject = function fromObject(object) { + if (object instanceof $root.protos.common.Validation) return object; - var message = new $root.protos.opts.GetTunnelOptions(); - if (object.id != null) - message.id = String(object.id); + var message = new $root.protos.common.Validation(); + if (object._id != null) + message._id = String(object._id); + if (object.schemaId != null) + message.schemaId = String(object.schemaId); + if (object.fields) { + if (!Array.isArray(object.fields)) + throw TypeError(".protos.common.Validation.fields: array expected"); + message.fields = []; + for (var i = 0; i < object.fields.length; ++i) { + if (typeof object.fields[i] !== "object") + throw TypeError(".protos.common.Validation.fields: object expected"); + message.fields[i] = $root.protos.common.Validation.Field.fromObject(object.fields[i]); + } + } return message; }; /** - * Creates a plain object from a GetTunnelOptions message. Also converts values to other types if specified. + * Creates a plain object from a Validation message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.GetTunnelOptions + * @memberof protos.common.Validation * @static - * @param {protos.opts.GetTunnelOptions} message GetTunnelOptions + * @param {protos.common.Validation} message Validation * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTunnelOptions.toObject = function toObject(message, options) { + Validation.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + if (options.arrays || options.defaults) + object.fields = []; + if (options.defaults) { + object._id = ""; + object.schemaId = ""; + } + if (message._id != null && message.hasOwnProperty("_id")) + object._id = message._id; + if (message.schemaId != null && message.hasOwnProperty("schemaId")) + object.schemaId = message.schemaId; + if (message.fields && message.fields.length) { + object.fields = []; + for (var j = 0; j < message.fields.length; ++j) + object.fields[j] = $root.protos.common.Validation.Field.toObject(message.fields[j], options); + } return object; }; /** - * Converts this GetTunnelOptions to JSON. + * Converts this Validation to JSON. * @function toJSON - * @memberof protos.opts.GetTunnelOptions + * @memberof protos.common.Validation * @instance * @returns {Object.} JSON object */ - GetTunnelOptions.prototype.toJSON = function toJSON() { + Validation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetTunnelOptions; - })(); - - opts.CreateTunnelOptions = (function() { - - /** - * Properties of a CreateTunnelOptions. - * @memberof protos.opts - * @interface ICreateTunnelOptions - * @property {string|null} [connectionId] CreateTunnelOptions connectionId - * @property {string|null} [tunnelToken] CreateTunnelOptions tunnelToken - * @property {string|null} [name] CreateTunnelOptions name - * @property {string|null} [notes] CreateTunnelOptions notes - * @property {string|null} [_tunnelAddress] CreateTunnelOptions _tunnelAddress - * @property {number|null} [_tunnelTimeoutSeconds] CreateTunnelOptions _tunnelTimeoutSeconds - * @property {boolean|null} [_tunnelInsecure] CreateTunnelOptions _tunnelInsecure - * @property {protos.args.IKafkaWriteArgs|null} [kafka] CreateTunnelOptions kafka - * @property {protos.args.IActiveMQWriteArgs|null} [activemq] CreateTunnelOptions activemq - * @property {protos.args.IAWSSQSWriteArgs|null} [awsSqs] CreateTunnelOptions awsSqs - * @property {protos.args.IAWSSNSWriteArgs|null} [awsSns] CreateTunnelOptions awsSns - * @property {protos.args.INatsWriteArgs|null} [nats] CreateTunnelOptions nats - * @property {protos.args.INatsStreamingWriteArgs|null} [natsStreaming] CreateTunnelOptions natsStreaming - * @property {protos.args.INSQWriteArgs|null} [nsq] CreateTunnelOptions nsq - * @property {protos.args.IRabbitWriteArgs|null} [rabbit] CreateTunnelOptions rabbit - * @property {protos.args.IMQTTWriteArgs|null} [mqtt] CreateTunnelOptions mqtt - * @property {protos.args.IAzureServiceBusWriteArgs|null} [azureServiceBus] CreateTunnelOptions azureServiceBus - * @property {protos.args.IAzureEventHubWriteArgs|null} [azureEventHub] CreateTunnelOptions azureEventHub - * @property {protos.args.IGCPPubSubWriteArgs|null} [gcpPubsub] CreateTunnelOptions gcpPubsub - * @property {protos.args.IKubeMQQueueWriteArgs|null} [kubemqQueue] CreateTunnelOptions kubemqQueue - * @property {protos.args.IRedisPubSubWriteArgs|null} [redisPubsub] CreateTunnelOptions redisPubsub - * @property {protos.args.IRedisStreamsWriteArgs|null} [redisStreams] CreateTunnelOptions redisStreams - * @property {protos.args.IPulsarWriteArgs|null} [pulsar] CreateTunnelOptions pulsar - * @property {protos.args.IRabbitStreamsWriteArgs|null} [rabbitStreams] CreateTunnelOptions rabbitStreams - * @property {protos.args.INatsJetstreamWriteArgs|null} [natsJetstream] CreateTunnelOptions natsJetstream - * @property {protos.args.IAWSKinesisWriteArgs|null} [awsKinesis] CreateTunnelOptions awsKinesis - * @property {protos.args.IMemphisWriteArgs|null} [memphis] CreateTunnelOptions memphis - */ - - /** - * Constructs a new CreateTunnelOptions. - * @memberof protos.opts - * @classdesc Represents a CreateTunnelOptions. - * @implements ICreateTunnelOptions - * @constructor - * @param {protos.opts.ICreateTunnelOptions=} [properties] Properties to set - */ - function CreateTunnelOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateTunnelOptions connectionId. - * @member {string} connectionId - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype.connectionId = ""; + Validation.Field = (function() { - /** - * CreateTunnelOptions tunnelToken. - * @member {string} tunnelToken - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype.tunnelToken = ""; + /** + * Properties of a Field. + * @memberof protos.common.Validation + * @interface IField + * @property {string|null} [path] Field path + * @property {string|null} [validationType] Field validationType + * @property {string|null} [matchValue] Field matchValue + */ - /** - * CreateTunnelOptions name. - * @member {string} name - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype.name = ""; + /** + * Constructs a new Field. + * @memberof protos.common.Validation + * @classdesc Represents a Field. + * @implements IField + * @constructor + * @param {protos.common.Validation.IField=} [properties] Properties to set + */ + function Field(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * CreateTunnelOptions notes. - * @member {string} notes - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype.notes = ""; + /** + * Field path. + * @member {string} path + * @memberof protos.common.Validation.Field + * @instance + */ + Field.prototype.path = ""; - /** - * CreateTunnelOptions _tunnelAddress. - * @member {string} _tunnelAddress - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype._tunnelAddress = ""; + /** + * Field validationType. + * @member {string} validationType + * @memberof protos.common.Validation.Field + * @instance + */ + Field.prototype.validationType = ""; - /** - * CreateTunnelOptions _tunnelTimeoutSeconds. - * @member {number} _tunnelTimeoutSeconds - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype._tunnelTimeoutSeconds = 0; + /** + * Field matchValue. + * @member {string} matchValue + * @memberof protos.common.Validation.Field + * @instance + */ + Field.prototype.matchValue = ""; - /** - * CreateTunnelOptions _tunnelInsecure. - * @member {boolean} _tunnelInsecure - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype._tunnelInsecure = false; + /** + * Creates a new Field instance using the specified properties. + * @function create + * @memberof protos.common.Validation.Field + * @static + * @param {protos.common.Validation.IField=} [properties] Properties to set + * @returns {protos.common.Validation.Field} Field instance + */ + Field.create = function create(properties) { + return new Field(properties); + }; - /** - * CreateTunnelOptions kafka. - * @member {protos.args.IKafkaWriteArgs|null|undefined} kafka - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype.kafka = null; + /** + * Encodes the specified Field message. Does not implicitly {@link protos.common.Validation.Field.verify|verify} messages. + * @function encode + * @memberof protos.common.Validation.Field + * @static + * @param {protos.common.Validation.IField} message Field message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Field.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.path); + if (message.validationType != null && Object.hasOwnProperty.call(message, "validationType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.validationType); + if (message.matchValue != null && Object.hasOwnProperty.call(message, "matchValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.matchValue); + return writer; + }; - /** - * CreateTunnelOptions activemq. - * @member {protos.args.IActiveMQWriteArgs|null|undefined} activemq - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype.activemq = null; + /** + * Encodes the specified Field message, length delimited. Does not implicitly {@link protos.common.Validation.Field.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.common.Validation.Field + * @static + * @param {protos.common.Validation.IField} message Field message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Field.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * CreateTunnelOptions awsSqs. - * @member {protos.args.IAWSSQSWriteArgs|null|undefined} awsSqs - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype.awsSqs = null; + /** + * Decodes a Field message from the specified reader or buffer. + * @function decode + * @memberof protos.common.Validation.Field + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.common.Validation.Field} Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Field.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.common.Validation.Field(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.path = reader.string(); + break; + case 2: + message.validationType = reader.string(); + break; + case 3: + message.matchValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * CreateTunnelOptions awsSns. - * @member {protos.args.IAWSSNSWriteArgs|null|undefined} awsSns - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype.awsSns = null; + /** + * Decodes a Field message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.common.Validation.Field + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.common.Validation.Field} Field + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Field.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * CreateTunnelOptions nats. - * @member {protos.args.INatsWriteArgs|null|undefined} nats - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype.nats = null; + /** + * Verifies a Field message. + * @function verify + * @memberof protos.common.Validation.Field + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Field.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + if (message.validationType != null && message.hasOwnProperty("validationType")) + if (!$util.isString(message.validationType)) + return "validationType: string expected"; + if (message.matchValue != null && message.hasOwnProperty("matchValue")) + if (!$util.isString(message.matchValue)) + return "matchValue: string expected"; + return null; + }; - /** - * CreateTunnelOptions natsStreaming. - * @member {protos.args.INatsStreamingWriteArgs|null|undefined} natsStreaming - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype.natsStreaming = null; + /** + * Creates a Field message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.common.Validation.Field + * @static + * @param {Object.} object Plain object + * @returns {protos.common.Validation.Field} Field + */ + Field.fromObject = function fromObject(object) { + if (object instanceof $root.protos.common.Validation.Field) + return object; + var message = new $root.protos.common.Validation.Field(); + if (object.path != null) + message.path = String(object.path); + if (object.validationType != null) + message.validationType = String(object.validationType); + if (object.matchValue != null) + message.matchValue = String(object.matchValue); + return message; + }; - /** - * CreateTunnelOptions nsq. - * @member {protos.args.INSQWriteArgs|null|undefined} nsq - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype.nsq = null; + /** + * Creates a plain object from a Field message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.common.Validation.Field + * @static + * @param {protos.common.Validation.Field} message Field + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Field.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.path = ""; + object.validationType = ""; + object.matchValue = ""; + } + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + if (message.validationType != null && message.hasOwnProperty("validationType")) + object.validationType = message.validationType; + if (message.matchValue != null && message.hasOwnProperty("matchValue")) + object.matchValue = message.matchValue; + return object; + }; - /** - * CreateTunnelOptions rabbit. - * @member {protos.args.IRabbitWriteArgs|null|undefined} rabbit - * @memberof protos.opts.CreateTunnelOptions - * @instance - */ - CreateTunnelOptions.prototype.rabbit = null; + /** + * Converts this Field to JSON. + * @function toJSON + * @memberof protos.common.Validation.Field + * @instance + * @returns {Object.} JSON object + */ + Field.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Field; + })(); + + return Validation; + })(); + + return common; + })(); + + protos.encoding = (function() { + + /** + * Namespace encoding. + * @memberof protos + * @namespace + */ + var encoding = {}; + + /** + * EncodeType enum. + * @name protos.encoding.EncodeType + * @enum {number} + * @property {number} ENCODE_TYPE_UNSET=0 ENCODE_TYPE_UNSET value + * @property {number} ENCODE_TYPE_JSONPB=1 ENCODE_TYPE_JSONPB value + * @property {number} ENCODE_TYPE_AVRO=2 ENCODE_TYPE_AVRO value + * @property {number} ENCODE_TYPE_CLOUDEVENT=3 ENCODE_TYPE_CLOUDEVENT value + */ + encoding.EncodeType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENCODE_TYPE_UNSET"] = 0; + values[valuesById[1] = "ENCODE_TYPE_JSONPB"] = 1; + values[valuesById[2] = "ENCODE_TYPE_AVRO"] = 2; + values[valuesById[3] = "ENCODE_TYPE_CLOUDEVENT"] = 3; + return values; + })(); + + /** + * DecodeType enum. + * @name protos.encoding.DecodeType + * @enum {number} + * @property {number} DECODE_TYPE_UNSET=0 DECODE_TYPE_UNSET value + * @property {number} DECODE_TYPE_PROTOBUF=1 DECODE_TYPE_PROTOBUF value + * @property {number} DECODE_TYPE_AVRO=2 DECODE_TYPE_AVRO value + * @property {number} DECODE_TYPE_THRIFT=3 DECODE_TYPE_THRIFT value + * @property {number} DECODE_TYPE_FLATBUFFER=4 DECODE_TYPE_FLATBUFFER value + */ + encoding.DecodeType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DECODE_TYPE_UNSET"] = 0; + values[valuesById[1] = "DECODE_TYPE_PROTOBUF"] = 1; + values[valuesById[2] = "DECODE_TYPE_AVRO"] = 2; + values[valuesById[3] = "DECODE_TYPE_THRIFT"] = 3; + values[valuesById[4] = "DECODE_TYPE_FLATBUFFER"] = 4; + return values; + })(); + + /** + * EnvelopeType enum. + * @name protos.encoding.EnvelopeType + * @enum {number} + * @property {number} ENVELOPE_TYPE_UNSET=0 ENVELOPE_TYPE_UNSET value + * @property {number} ENVELOPE_TYPE_DEEP=1 ENVELOPE_TYPE_DEEP value + * @property {number} ENVELOPE_TYPE_SHALLOW=2 ENVELOPE_TYPE_SHALLOW value + */ + encoding.EnvelopeType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENVELOPE_TYPE_UNSET"] = 0; + values[valuesById[1] = "ENVELOPE_TYPE_DEEP"] = 1; + values[valuesById[2] = "ENVELOPE_TYPE_SHALLOW"] = 2; + return values; + })(); + + encoding.ProtobufSettings = (function() { /** - * CreateTunnelOptions mqtt. - * @member {protos.args.IMQTTWriteArgs|null|undefined} mqtt - * @memberof protos.opts.CreateTunnelOptions - * @instance + * Properties of a ProtobufSettings. + * @memberof protos.encoding + * @interface IProtobufSettings + * @property {string|null} [protobufRootMessage] ProtobufSettings protobufRootMessage + * @property {Array.|null} [protobufDirs] ProtobufSettings protobufDirs + * @property {string|null} [_protobufRootDir] ProtobufSettings _protobufRootDir + * @property {Uint8Array|null} [archive] ProtobufSettings archive + * @property {Uint8Array|null} [_messageDescriptor] ProtobufSettings _messageDescriptor + * @property {protos.encoding.EnvelopeType|null} [protobufEnvelopeType] ProtobufSettings protobufEnvelopeType + * @property {string|null} [shallowEnvelopeMessage] ProtobufSettings shallowEnvelopeMessage + * @property {number|null} [shallowEnvelopeFieldNumber] ProtobufSettings shallowEnvelopeFieldNumber + * @property {Uint8Array|null} [_shallowEnvelopeMessageDescriptor] ProtobufSettings _shallowEnvelopeMessageDescriptor + * @property {string|null} [protobufDescriptorSet] ProtobufSettings protobufDescriptorSet */ - CreateTunnelOptions.prototype.mqtt = null; /** - * CreateTunnelOptions azureServiceBus. - * @member {protos.args.IAzureServiceBusWriteArgs|null|undefined} azureServiceBus - * @memberof protos.opts.CreateTunnelOptions - * @instance + * Constructs a new ProtobufSettings. + * @memberof protos.encoding + * @classdesc Represents a ProtobufSettings. + * @implements IProtobufSettings + * @constructor + * @param {protos.encoding.IProtobufSettings=} [properties] Properties to set */ - CreateTunnelOptions.prototype.azureServiceBus = null; + function ProtobufSettings(properties) { + this.protobufDirs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * CreateTunnelOptions azureEventHub. - * @member {protos.args.IAzureEventHubWriteArgs|null|undefined} azureEventHub - * @memberof protos.opts.CreateTunnelOptions + * ProtobufSettings protobufRootMessage. + * @member {string} protobufRootMessage + * @memberof protos.encoding.ProtobufSettings * @instance */ - CreateTunnelOptions.prototype.azureEventHub = null; + ProtobufSettings.prototype.protobufRootMessage = ""; /** - * CreateTunnelOptions gcpPubsub. - * @member {protos.args.IGCPPubSubWriteArgs|null|undefined} gcpPubsub - * @memberof protos.opts.CreateTunnelOptions + * ProtobufSettings protobufDirs. + * @member {Array.} protobufDirs + * @memberof protos.encoding.ProtobufSettings * @instance */ - CreateTunnelOptions.prototype.gcpPubsub = null; + ProtobufSettings.prototype.protobufDirs = $util.emptyArray; /** - * CreateTunnelOptions kubemqQueue. - * @member {protos.args.IKubeMQQueueWriteArgs|null|undefined} kubemqQueue - * @memberof protos.opts.CreateTunnelOptions + * ProtobufSettings _protobufRootDir. + * @member {string} _protobufRootDir + * @memberof protos.encoding.ProtobufSettings * @instance */ - CreateTunnelOptions.prototype.kubemqQueue = null; + ProtobufSettings.prototype._protobufRootDir = ""; /** - * CreateTunnelOptions redisPubsub. - * @member {protos.args.IRedisPubSubWriteArgs|null|undefined} redisPubsub - * @memberof protos.opts.CreateTunnelOptions + * ProtobufSettings archive. + * @member {Uint8Array} archive + * @memberof protos.encoding.ProtobufSettings * @instance */ - CreateTunnelOptions.prototype.redisPubsub = null; + ProtobufSettings.prototype.archive = $util.newBuffer([]); /** - * CreateTunnelOptions redisStreams. - * @member {protos.args.IRedisStreamsWriteArgs|null|undefined} redisStreams - * @memberof protos.opts.CreateTunnelOptions + * ProtobufSettings _messageDescriptor. + * @member {Uint8Array} _messageDescriptor + * @memberof protos.encoding.ProtobufSettings * @instance */ - CreateTunnelOptions.prototype.redisStreams = null; + ProtobufSettings.prototype._messageDescriptor = $util.newBuffer([]); /** - * CreateTunnelOptions pulsar. - * @member {protos.args.IPulsarWriteArgs|null|undefined} pulsar - * @memberof protos.opts.CreateTunnelOptions + * ProtobufSettings protobufEnvelopeType. + * @member {protos.encoding.EnvelopeType} protobufEnvelopeType + * @memberof protos.encoding.ProtobufSettings * @instance */ - CreateTunnelOptions.prototype.pulsar = null; + ProtobufSettings.prototype.protobufEnvelopeType = 0; /** - * CreateTunnelOptions rabbitStreams. - * @member {protos.args.IRabbitStreamsWriteArgs|null|undefined} rabbitStreams - * @memberof protos.opts.CreateTunnelOptions + * ProtobufSettings shallowEnvelopeMessage. + * @member {string} shallowEnvelopeMessage + * @memberof protos.encoding.ProtobufSettings * @instance */ - CreateTunnelOptions.prototype.rabbitStreams = null; + ProtobufSettings.prototype.shallowEnvelopeMessage = ""; /** - * CreateTunnelOptions natsJetstream. - * @member {protos.args.INatsJetstreamWriteArgs|null|undefined} natsJetstream - * @memberof protos.opts.CreateTunnelOptions + * ProtobufSettings shallowEnvelopeFieldNumber. + * @member {number} shallowEnvelopeFieldNumber + * @memberof protos.encoding.ProtobufSettings * @instance */ - CreateTunnelOptions.prototype.natsJetstream = null; + ProtobufSettings.prototype.shallowEnvelopeFieldNumber = 0; /** - * CreateTunnelOptions awsKinesis. - * @member {protos.args.IAWSKinesisWriteArgs|null|undefined} awsKinesis - * @memberof protos.opts.CreateTunnelOptions + * ProtobufSettings _shallowEnvelopeMessageDescriptor. + * @member {Uint8Array} _shallowEnvelopeMessageDescriptor + * @memberof protos.encoding.ProtobufSettings * @instance */ - CreateTunnelOptions.prototype.awsKinesis = null; + ProtobufSettings.prototype._shallowEnvelopeMessageDescriptor = $util.newBuffer([]); /** - * CreateTunnelOptions memphis. - * @member {protos.args.IMemphisWriteArgs|null|undefined} memphis - * @memberof protos.opts.CreateTunnelOptions + * ProtobufSettings protobufDescriptorSet. + * @member {string} protobufDescriptorSet + * @memberof protos.encoding.ProtobufSettings * @instance */ - CreateTunnelOptions.prototype.memphis = null; + ProtobufSettings.prototype.protobufDescriptorSet = ""; /** - * Creates a new CreateTunnelOptions instance using the specified properties. + * Creates a new ProtobufSettings instance using the specified properties. * @function create - * @memberof protos.opts.CreateTunnelOptions + * @memberof protos.encoding.ProtobufSettings * @static - * @param {protos.opts.ICreateTunnelOptions=} [properties] Properties to set - * @returns {protos.opts.CreateTunnelOptions} CreateTunnelOptions instance + * @param {protos.encoding.IProtobufSettings=} [properties] Properties to set + * @returns {protos.encoding.ProtobufSettings} ProtobufSettings instance */ - CreateTunnelOptions.create = function create(properties) { - return new CreateTunnelOptions(properties); + ProtobufSettings.create = function create(properties) { + return new ProtobufSettings(properties); }; /** - * Encodes the specified CreateTunnelOptions message. Does not implicitly {@link protos.opts.CreateTunnelOptions.verify|verify} messages. + * Encodes the specified ProtobufSettings message. Does not implicitly {@link protos.encoding.ProtobufSettings.verify|verify} messages. * @function encode - * @memberof protos.opts.CreateTunnelOptions + * @memberof protos.encoding.ProtobufSettings * @static - * @param {protos.opts.ICreateTunnelOptions} message CreateTunnelOptions message or plain object to encode + * @param {protos.encoding.IProtobufSettings} message ProtobufSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTunnelOptions.encode = function encode(message, writer) { + ProtobufSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connectionId); - if (message.tunnelToken != null && Object.hasOwnProperty.call(message, "tunnelToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tunnelToken); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); - if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.notes); - if (message._tunnelAddress != null && Object.hasOwnProperty.call(message, "_tunnelAddress")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message._tunnelAddress); - if (message._tunnelTimeoutSeconds != null && Object.hasOwnProperty.call(message, "_tunnelTimeoutSeconds")) - writer.uint32(/* id 7, wireType 0 =*/56).uint32(message._tunnelTimeoutSeconds); - if (message._tunnelInsecure != null && Object.hasOwnProperty.call(message, "_tunnelInsecure")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message._tunnelInsecure); - if (message.kafka != null && Object.hasOwnProperty.call(message, "kafka")) - $root.protos.args.KafkaWriteArgs.encode(message.kafka, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); - if (message.activemq != null && Object.hasOwnProperty.call(message, "activemq")) - $root.protos.args.ActiveMQWriteArgs.encode(message.activemq, writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); - if (message.awsSqs != null && Object.hasOwnProperty.call(message, "awsSqs")) - $root.protos.args.AWSSQSWriteArgs.encode(message.awsSqs, writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim(); - if (message.awsSns != null && Object.hasOwnProperty.call(message, "awsSns")) - $root.protos.args.AWSSNSWriteArgs.encode(message.awsSns, writer.uint32(/* id 103, wireType 2 =*/826).fork()).ldelim(); - if (message.nats != null && Object.hasOwnProperty.call(message, "nats")) - $root.protos.args.NatsWriteArgs.encode(message.nats, writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim(); - if (message.natsStreaming != null && Object.hasOwnProperty.call(message, "natsStreaming")) - $root.protos.args.NatsStreamingWriteArgs.encode(message.natsStreaming, writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); - if (message.nsq != null && Object.hasOwnProperty.call(message, "nsq")) - $root.protos.args.NSQWriteArgs.encode(message.nsq, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim(); - if (message.rabbit != null && Object.hasOwnProperty.call(message, "rabbit")) - $root.protos.args.RabbitWriteArgs.encode(message.rabbit, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); - if (message.mqtt != null && Object.hasOwnProperty.call(message, "mqtt")) - $root.protos.args.MQTTWriteArgs.encode(message.mqtt, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim(); - if (message.azureServiceBus != null && Object.hasOwnProperty.call(message, "azureServiceBus")) - $root.protos.args.AzureServiceBusWriteArgs.encode(message.azureServiceBus, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); - if (message.azureEventHub != null && Object.hasOwnProperty.call(message, "azureEventHub")) - $root.protos.args.AzureEventHubWriteArgs.encode(message.azureEventHub, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); - if (message.gcpPubsub != null && Object.hasOwnProperty.call(message, "gcpPubsub")) - $root.protos.args.GCPPubSubWriteArgs.encode(message.gcpPubsub, writer.uint32(/* id 111, wireType 2 =*/890).fork()).ldelim(); - if (message.kubemqQueue != null && Object.hasOwnProperty.call(message, "kubemqQueue")) - $root.protos.args.KubeMQQueueWriteArgs.encode(message.kubemqQueue, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim(); - if (message.redisPubsub != null && Object.hasOwnProperty.call(message, "redisPubsub")) - $root.protos.args.RedisPubSubWriteArgs.encode(message.redisPubsub, writer.uint32(/* id 113, wireType 2 =*/906).fork()).ldelim(); - if (message.redisStreams != null && Object.hasOwnProperty.call(message, "redisStreams")) - $root.protos.args.RedisStreamsWriteArgs.encode(message.redisStreams, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); - if (message.pulsar != null && Object.hasOwnProperty.call(message, "pulsar")) - $root.protos.args.PulsarWriteArgs.encode(message.pulsar, writer.uint32(/* id 115, wireType 2 =*/922).fork()).ldelim(); - if (message.rabbitStreams != null && Object.hasOwnProperty.call(message, "rabbitStreams")) - $root.protos.args.RabbitStreamsWriteArgs.encode(message.rabbitStreams, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); - if (message.natsJetstream != null && Object.hasOwnProperty.call(message, "natsJetstream")) - $root.protos.args.NatsJetstreamWriteArgs.encode(message.natsJetstream, writer.uint32(/* id 117, wireType 2 =*/938).fork()).ldelim(); - if (message.awsKinesis != null && Object.hasOwnProperty.call(message, "awsKinesis")) - $root.protos.args.AWSKinesisWriteArgs.encode(message.awsKinesis, writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim(); - if (message.memphis != null && Object.hasOwnProperty.call(message, "memphis")) - $root.protos.args.MemphisWriteArgs.encode(message.memphis, writer.uint32(/* id 119, wireType 2 =*/954).fork()).ldelim(); + if (message.protobufRootMessage != null && Object.hasOwnProperty.call(message, "protobufRootMessage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.protobufRootMessage); + if (message.protobufDirs != null && message.protobufDirs.length) + for (var i = 0; i < message.protobufDirs.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.protobufDirs[i]); + if (message._protobufRootDir != null && Object.hasOwnProperty.call(message, "_protobufRootDir")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message._protobufRootDir); + if (message.archive != null && Object.hasOwnProperty.call(message, "archive")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.archive); + if (message._messageDescriptor != null && Object.hasOwnProperty.call(message, "_messageDescriptor")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message._messageDescriptor); + if (message.protobufEnvelopeType != null && Object.hasOwnProperty.call(message, "protobufEnvelopeType")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.protobufEnvelopeType); + if (message.shallowEnvelopeMessage != null && Object.hasOwnProperty.call(message, "shallowEnvelopeMessage")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.shallowEnvelopeMessage); + if (message.shallowEnvelopeFieldNumber != null && Object.hasOwnProperty.call(message, "shallowEnvelopeFieldNumber")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.shallowEnvelopeFieldNumber); + if (message._shallowEnvelopeMessageDescriptor != null && Object.hasOwnProperty.call(message, "_shallowEnvelopeMessageDescriptor")) + writer.uint32(/* id 9, wireType 2 =*/74).bytes(message._shallowEnvelopeMessageDescriptor); + if (message.protobufDescriptorSet != null && Object.hasOwnProperty.call(message, "protobufDescriptorSet")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.protobufDescriptorSet); return writer; }; /** - * Encodes the specified CreateTunnelOptions message, length delimited. Does not implicitly {@link protos.opts.CreateTunnelOptions.verify|verify} messages. + * Encodes the specified ProtobufSettings message, length delimited. Does not implicitly {@link protos.encoding.ProtobufSettings.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.CreateTunnelOptions + * @memberof protos.encoding.ProtobufSettings * @static - * @param {protos.opts.ICreateTunnelOptions} message CreateTunnelOptions message or plain object to encode + * @param {protos.encoding.IProtobufSettings} message ProtobufSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTunnelOptions.encodeDelimited = function encodeDelimited(message, writer) { + ProtobufSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTunnelOptions message from the specified reader or buffer. + * Decodes a ProtobufSettings message from the specified reader or buffer. * @function decode - * @memberof protos.opts.CreateTunnelOptions + * @memberof protos.encoding.ProtobufSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.CreateTunnelOptions} CreateTunnelOptions + * @returns {protos.encoding.ProtobufSettings} ProtobufSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTunnelOptions.decode = function decode(reader, length) { + ProtobufSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.CreateTunnelOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.ProtobufSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connectionId = reader.string(); + message.protobufRootMessage = reader.string(); + break; + case 2: + if (!(message.protobufDirs && message.protobufDirs.length)) + message.protobufDirs = []; + message.protobufDirs.push(reader.string()); break; case 3: - message.tunnelToken = reader.string(); + message._protobufRootDir = reader.string(); break; case 4: - message.name = reader.string(); + message.archive = reader.bytes(); break; case 5: - message.notes = reader.string(); + message._messageDescriptor = reader.bytes(); break; case 6: - message._tunnelAddress = reader.string(); + message.protobufEnvelopeType = reader.int32(); break; case 7: - message._tunnelTimeoutSeconds = reader.uint32(); + message.shallowEnvelopeMessage = reader.string(); break; case 8: - message._tunnelInsecure = reader.bool(); - break; - case 100: - message.kafka = $root.protos.args.KafkaWriteArgs.decode(reader, reader.uint32()); - break; - case 101: - message.activemq = $root.protos.args.ActiveMQWriteArgs.decode(reader, reader.uint32()); - break; - case 102: - message.awsSqs = $root.protos.args.AWSSQSWriteArgs.decode(reader, reader.uint32()); - break; - case 103: - message.awsSns = $root.protos.args.AWSSNSWriteArgs.decode(reader, reader.uint32()); - break; - case 104: - message.nats = $root.protos.args.NatsWriteArgs.decode(reader, reader.uint32()); - break; - case 105: - message.natsStreaming = $root.protos.args.NatsStreamingWriteArgs.decode(reader, reader.uint32()); - break; - case 106: - message.nsq = $root.protos.args.NSQWriteArgs.decode(reader, reader.uint32()); - break; - case 107: - message.rabbit = $root.protos.args.RabbitWriteArgs.decode(reader, reader.uint32()); - break; - case 108: - message.mqtt = $root.protos.args.MQTTWriteArgs.decode(reader, reader.uint32()); - break; - case 109: - message.azureServiceBus = $root.protos.args.AzureServiceBusWriteArgs.decode(reader, reader.uint32()); - break; - case 110: - message.azureEventHub = $root.protos.args.AzureEventHubWriteArgs.decode(reader, reader.uint32()); - break; - case 111: - message.gcpPubsub = $root.protos.args.GCPPubSubWriteArgs.decode(reader, reader.uint32()); - break; - case 112: - message.kubemqQueue = $root.protos.args.KubeMQQueueWriteArgs.decode(reader, reader.uint32()); - break; - case 113: - message.redisPubsub = $root.protos.args.RedisPubSubWriteArgs.decode(reader, reader.uint32()); - break; - case 114: - message.redisStreams = $root.protos.args.RedisStreamsWriteArgs.decode(reader, reader.uint32()); - break; - case 115: - message.pulsar = $root.protos.args.PulsarWriteArgs.decode(reader, reader.uint32()); - break; - case 116: - message.rabbitStreams = $root.protos.args.RabbitStreamsWriteArgs.decode(reader, reader.uint32()); - break; - case 117: - message.natsJetstream = $root.protos.args.NatsJetstreamWriteArgs.decode(reader, reader.uint32()); + message.shallowEnvelopeFieldNumber = reader.int32(); break; - case 118: - message.awsKinesis = $root.protos.args.AWSKinesisWriteArgs.decode(reader, reader.uint32()); + case 9: + message._shallowEnvelopeMessageDescriptor = reader.bytes(); break; - case 119: - message.memphis = $root.protos.args.MemphisWriteArgs.decode(reader, reader.uint32()); + case 10: + message.protobufDescriptorSet = reader.string(); break; default: reader.skipType(tag & 7); @@ -21947,416 +20209,239 @@ $root.protos = (function() { }; /** - * Decodes a CreateTunnelOptions message from the specified reader or buffer, length delimited. + * Decodes a ProtobufSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.CreateTunnelOptions + * @memberof protos.encoding.ProtobufSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.CreateTunnelOptions} CreateTunnelOptions + * @returns {protos.encoding.ProtobufSettings} ProtobufSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTunnelOptions.decodeDelimited = function decodeDelimited(reader) { + ProtobufSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTunnelOptions message. + * Verifies a ProtobufSettings message. * @function verify - * @memberof protos.opts.CreateTunnelOptions + * @memberof protos.encoding.ProtobufSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTunnelOptions.verify = function verify(message) { + ProtobufSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - if (!$util.isString(message.connectionId)) - return "connectionId: string expected"; - if (message.tunnelToken != null && message.hasOwnProperty("tunnelToken")) - if (!$util.isString(message.tunnelToken)) - return "tunnelToken: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.notes != null && message.hasOwnProperty("notes")) - if (!$util.isString(message.notes)) - return "notes: string expected"; - if (message._tunnelAddress != null && message.hasOwnProperty("_tunnelAddress")) - if (!$util.isString(message._tunnelAddress)) - return "_tunnelAddress: string expected"; - if (message._tunnelTimeoutSeconds != null && message.hasOwnProperty("_tunnelTimeoutSeconds")) - if (!$util.isInteger(message._tunnelTimeoutSeconds)) - return "_tunnelTimeoutSeconds: integer expected"; - if (message._tunnelInsecure != null && message.hasOwnProperty("_tunnelInsecure")) - if (typeof message._tunnelInsecure !== "boolean") - return "_tunnelInsecure: boolean expected"; - if (message.kafka != null && message.hasOwnProperty("kafka")) { - var error = $root.protos.args.KafkaWriteArgs.verify(message.kafka); - if (error) - return "kafka." + error; - } - if (message.activemq != null && message.hasOwnProperty("activemq")) { - var error = $root.protos.args.ActiveMQWriteArgs.verify(message.activemq); - if (error) - return "activemq." + error; - } - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) { - var error = $root.protos.args.AWSSQSWriteArgs.verify(message.awsSqs); - if (error) - return "awsSqs." + error; - } - if (message.awsSns != null && message.hasOwnProperty("awsSns")) { - var error = $root.protos.args.AWSSNSWriteArgs.verify(message.awsSns); - if (error) - return "awsSns." + error; - } - if (message.nats != null && message.hasOwnProperty("nats")) { - var error = $root.protos.args.NatsWriteArgs.verify(message.nats); - if (error) - return "nats." + error; - } - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) { - var error = $root.protos.args.NatsStreamingWriteArgs.verify(message.natsStreaming); - if (error) - return "natsStreaming." + error; - } - if (message.nsq != null && message.hasOwnProperty("nsq")) { - var error = $root.protos.args.NSQWriteArgs.verify(message.nsq); - if (error) - return "nsq." + error; - } - if (message.rabbit != null && message.hasOwnProperty("rabbit")) { - var error = $root.protos.args.RabbitWriteArgs.verify(message.rabbit); - if (error) - return "rabbit." + error; - } - if (message.mqtt != null && message.hasOwnProperty("mqtt")) { - var error = $root.protos.args.MQTTWriteArgs.verify(message.mqtt); - if (error) - return "mqtt." + error; - } - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) { - var error = $root.protos.args.AzureServiceBusWriteArgs.verify(message.azureServiceBus); - if (error) - return "azureServiceBus." + error; - } - if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) { - var error = $root.protos.args.AzureEventHubWriteArgs.verify(message.azureEventHub); - if (error) - return "azureEventHub." + error; - } - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) { - var error = $root.protos.args.GCPPubSubWriteArgs.verify(message.gcpPubsub); - if (error) - return "gcpPubsub." + error; - } - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) { - var error = $root.protos.args.KubeMQQueueWriteArgs.verify(message.kubemqQueue); - if (error) - return "kubemqQueue." + error; - } - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) { - var error = $root.protos.args.RedisPubSubWriteArgs.verify(message.redisPubsub); - if (error) - return "redisPubsub." + error; - } - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) { - var error = $root.protos.args.RedisStreamsWriteArgs.verify(message.redisStreams); - if (error) - return "redisStreams." + error; - } - if (message.pulsar != null && message.hasOwnProperty("pulsar")) { - var error = $root.protos.args.PulsarWriteArgs.verify(message.pulsar); - if (error) - return "pulsar." + error; - } - if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) { - var error = $root.protos.args.RabbitStreamsWriteArgs.verify(message.rabbitStreams); - if (error) - return "rabbitStreams." + error; - } - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) { - var error = $root.protos.args.NatsJetstreamWriteArgs.verify(message.natsJetstream); - if (error) - return "natsJetstream." + error; - } - if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) { - var error = $root.protos.args.AWSKinesisWriteArgs.verify(message.awsKinesis); - if (error) - return "awsKinesis." + error; - } - if (message.memphis != null && message.hasOwnProperty("memphis")) { - var error = $root.protos.args.MemphisWriteArgs.verify(message.memphis); - if (error) - return "memphis." + error; + if (message.protobufRootMessage != null && message.hasOwnProperty("protobufRootMessage")) + if (!$util.isString(message.protobufRootMessage)) + return "protobufRootMessage: string expected"; + if (message.protobufDirs != null && message.hasOwnProperty("protobufDirs")) { + if (!Array.isArray(message.protobufDirs)) + return "protobufDirs: array expected"; + for (var i = 0; i < message.protobufDirs.length; ++i) + if (!$util.isString(message.protobufDirs[i])) + return "protobufDirs: string[] expected"; } + if (message._protobufRootDir != null && message.hasOwnProperty("_protobufRootDir")) + if (!$util.isString(message._protobufRootDir)) + return "_protobufRootDir: string expected"; + if (message.archive != null && message.hasOwnProperty("archive")) + if (!(message.archive && typeof message.archive.length === "number" || $util.isString(message.archive))) + return "archive: buffer expected"; + if (message._messageDescriptor != null && message.hasOwnProperty("_messageDescriptor")) + if (!(message._messageDescriptor && typeof message._messageDescriptor.length === "number" || $util.isString(message._messageDescriptor))) + return "_messageDescriptor: buffer expected"; + if (message.protobufEnvelopeType != null && message.hasOwnProperty("protobufEnvelopeType")) + switch (message.protobufEnvelopeType) { + default: + return "protobufEnvelopeType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.shallowEnvelopeMessage != null && message.hasOwnProperty("shallowEnvelopeMessage")) + if (!$util.isString(message.shallowEnvelopeMessage)) + return "shallowEnvelopeMessage: string expected"; + if (message.shallowEnvelopeFieldNumber != null && message.hasOwnProperty("shallowEnvelopeFieldNumber")) + if (!$util.isInteger(message.shallowEnvelopeFieldNumber)) + return "shallowEnvelopeFieldNumber: integer expected"; + if (message._shallowEnvelopeMessageDescriptor != null && message.hasOwnProperty("_shallowEnvelopeMessageDescriptor")) + if (!(message._shallowEnvelopeMessageDescriptor && typeof message._shallowEnvelopeMessageDescriptor.length === "number" || $util.isString(message._shallowEnvelopeMessageDescriptor))) + return "_shallowEnvelopeMessageDescriptor: buffer expected"; + if (message.protobufDescriptorSet != null && message.hasOwnProperty("protobufDescriptorSet")) + if (!$util.isString(message.protobufDescriptorSet)) + return "protobufDescriptorSet: string expected"; return null; }; /** - * Creates a CreateTunnelOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ProtobufSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.CreateTunnelOptions + * @memberof protos.encoding.ProtobufSettings * @static * @param {Object.} object Plain object - * @returns {protos.opts.CreateTunnelOptions} CreateTunnelOptions + * @returns {protos.encoding.ProtobufSettings} ProtobufSettings */ - CreateTunnelOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.CreateTunnelOptions) + ProtobufSettings.fromObject = function fromObject(object) { + if (object instanceof $root.protos.encoding.ProtobufSettings) return object; - var message = new $root.protos.opts.CreateTunnelOptions(); - if (object.connectionId != null) - message.connectionId = String(object.connectionId); - if (object.tunnelToken != null) - message.tunnelToken = String(object.tunnelToken); - if (object.name != null) - message.name = String(object.name); - if (object.notes != null) - message.notes = String(object.notes); - if (object._tunnelAddress != null) - message._tunnelAddress = String(object._tunnelAddress); - if (object._tunnelTimeoutSeconds != null) - message._tunnelTimeoutSeconds = object._tunnelTimeoutSeconds >>> 0; - if (object._tunnelInsecure != null) - message._tunnelInsecure = Boolean(object._tunnelInsecure); - if (object.kafka != null) { - if (typeof object.kafka !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.kafka: object expected"); - message.kafka = $root.protos.args.KafkaWriteArgs.fromObject(object.kafka); - } - if (object.activemq != null) { - if (typeof object.activemq !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.activemq: object expected"); - message.activemq = $root.protos.args.ActiveMQWriteArgs.fromObject(object.activemq); + var message = new $root.protos.encoding.ProtobufSettings(); + if (object.protobufRootMessage != null) + message.protobufRootMessage = String(object.protobufRootMessage); + if (object.protobufDirs) { + if (!Array.isArray(object.protobufDirs)) + throw TypeError(".protos.encoding.ProtobufSettings.protobufDirs: array expected"); + message.protobufDirs = []; + for (var i = 0; i < object.protobufDirs.length; ++i) + message.protobufDirs[i] = String(object.protobufDirs[i]); } - if (object.awsSqs != null) { - if (typeof object.awsSqs !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.awsSqs: object expected"); - message.awsSqs = $root.protos.args.AWSSQSWriteArgs.fromObject(object.awsSqs); - } - if (object.awsSns != null) { - if (typeof object.awsSns !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.awsSns: object expected"); - message.awsSns = $root.protos.args.AWSSNSWriteArgs.fromObject(object.awsSns); - } - if (object.nats != null) { - if (typeof object.nats !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.nats: object expected"); - message.nats = $root.protos.args.NatsWriteArgs.fromObject(object.nats); - } - if (object.natsStreaming != null) { - if (typeof object.natsStreaming !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.natsStreaming: object expected"); - message.natsStreaming = $root.protos.args.NatsStreamingWriteArgs.fromObject(object.natsStreaming); - } - if (object.nsq != null) { - if (typeof object.nsq !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.nsq: object expected"); - message.nsq = $root.protos.args.NSQWriteArgs.fromObject(object.nsq); - } - if (object.rabbit != null) { - if (typeof object.rabbit !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.rabbit: object expected"); - message.rabbit = $root.protos.args.RabbitWriteArgs.fromObject(object.rabbit); - } - if (object.mqtt != null) { - if (typeof object.mqtt !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.mqtt: object expected"); - message.mqtt = $root.protos.args.MQTTWriteArgs.fromObject(object.mqtt); - } - if (object.azureServiceBus != null) { - if (typeof object.azureServiceBus !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.azureServiceBus: object expected"); - message.azureServiceBus = $root.protos.args.AzureServiceBusWriteArgs.fromObject(object.azureServiceBus); - } - if (object.azureEventHub != null) { - if (typeof object.azureEventHub !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.azureEventHub: object expected"); - message.azureEventHub = $root.protos.args.AzureEventHubWriteArgs.fromObject(object.azureEventHub); - } - if (object.gcpPubsub != null) { - if (typeof object.gcpPubsub !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.gcpPubsub: object expected"); - message.gcpPubsub = $root.protos.args.GCPPubSubWriteArgs.fromObject(object.gcpPubsub); - } - if (object.kubemqQueue != null) { - if (typeof object.kubemqQueue !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.kubemqQueue: object expected"); - message.kubemqQueue = $root.protos.args.KubeMQQueueWriteArgs.fromObject(object.kubemqQueue); - } - if (object.redisPubsub != null) { - if (typeof object.redisPubsub !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.redisPubsub: object expected"); - message.redisPubsub = $root.protos.args.RedisPubSubWriteArgs.fromObject(object.redisPubsub); - } - if (object.redisStreams != null) { - if (typeof object.redisStreams !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.redisStreams: object expected"); - message.redisStreams = $root.protos.args.RedisStreamsWriteArgs.fromObject(object.redisStreams); - } - if (object.pulsar != null) { - if (typeof object.pulsar !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.pulsar: object expected"); - message.pulsar = $root.protos.args.PulsarWriteArgs.fromObject(object.pulsar); - } - if (object.rabbitStreams != null) { - if (typeof object.rabbitStreams !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.rabbitStreams: object expected"); - message.rabbitStreams = $root.protos.args.RabbitStreamsWriteArgs.fromObject(object.rabbitStreams); - } - if (object.natsJetstream != null) { - if (typeof object.natsJetstream !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.natsJetstream: object expected"); - message.natsJetstream = $root.protos.args.NatsJetstreamWriteArgs.fromObject(object.natsJetstream); - } - if (object.awsKinesis != null) { - if (typeof object.awsKinesis !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.awsKinesis: object expected"); - message.awsKinesis = $root.protos.args.AWSKinesisWriteArgs.fromObject(object.awsKinesis); - } - if (object.memphis != null) { - if (typeof object.memphis !== "object") - throw TypeError(".protos.opts.CreateTunnelOptions.memphis: object expected"); - message.memphis = $root.protos.args.MemphisWriteArgs.fromObject(object.memphis); + if (object._protobufRootDir != null) + message._protobufRootDir = String(object._protobufRootDir); + if (object.archive != null) + if (typeof object.archive === "string") + $util.base64.decode(object.archive, message.archive = $util.newBuffer($util.base64.length(object.archive)), 0); + else if (object.archive.length) + message.archive = object.archive; + if (object._messageDescriptor != null) + if (typeof object._messageDescriptor === "string") + $util.base64.decode(object._messageDescriptor, message._messageDescriptor = $util.newBuffer($util.base64.length(object._messageDescriptor)), 0); + else if (object._messageDescriptor.length) + message._messageDescriptor = object._messageDescriptor; + switch (object.protobufEnvelopeType) { + case "ENVELOPE_TYPE_UNSET": + case 0: + message.protobufEnvelopeType = 0; + break; + case "ENVELOPE_TYPE_DEEP": + case 1: + message.protobufEnvelopeType = 1; + break; + case "ENVELOPE_TYPE_SHALLOW": + case 2: + message.protobufEnvelopeType = 2; + break; } + if (object.shallowEnvelopeMessage != null) + message.shallowEnvelopeMessage = String(object.shallowEnvelopeMessage); + if (object.shallowEnvelopeFieldNumber != null) + message.shallowEnvelopeFieldNumber = object.shallowEnvelopeFieldNumber | 0; + if (object._shallowEnvelopeMessageDescriptor != null) + if (typeof object._shallowEnvelopeMessageDescriptor === "string") + $util.base64.decode(object._shallowEnvelopeMessageDescriptor, message._shallowEnvelopeMessageDescriptor = $util.newBuffer($util.base64.length(object._shallowEnvelopeMessageDescriptor)), 0); + else if (object._shallowEnvelopeMessageDescriptor.length) + message._shallowEnvelopeMessageDescriptor = object._shallowEnvelopeMessageDescriptor; + if (object.protobufDescriptorSet != null) + message.protobufDescriptorSet = String(object.protobufDescriptorSet); return message; }; /** - * Creates a plain object from a CreateTunnelOptions message. Also converts values to other types if specified. + * Creates a plain object from a ProtobufSettings message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.CreateTunnelOptions + * @memberof protos.encoding.ProtobufSettings * @static - * @param {protos.opts.CreateTunnelOptions} message CreateTunnelOptions + * @param {protos.encoding.ProtobufSettings} message ProtobufSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTunnelOptions.toObject = function toObject(message, options) { + ProtobufSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.protobufDirs = []; if (options.defaults) { - object.connectionId = ""; - object.tunnelToken = ""; - object.name = ""; - object.notes = ""; - object._tunnelAddress = ""; - object._tunnelTimeoutSeconds = 0; - object._tunnelInsecure = false; - object.kafka = null; - object.activemq = null; - object.awsSqs = null; - object.awsSns = null; - object.nats = null; - object.natsStreaming = null; - object.nsq = null; - object.rabbit = null; - object.mqtt = null; - object.azureServiceBus = null; - object.azureEventHub = null; - object.gcpPubsub = null; - object.kubemqQueue = null; - object.redisPubsub = null; - object.redisStreams = null; - object.pulsar = null; - object.rabbitStreams = null; - object.natsJetstream = null; - object.awsKinesis = null; - object.memphis = null; + object.protobufRootMessage = ""; + object._protobufRootDir = ""; + if (options.bytes === String) + object.archive = ""; + else { + object.archive = []; + if (options.bytes !== Array) + object.archive = $util.newBuffer(object.archive); + } + if (options.bytes === String) + object._messageDescriptor = ""; + else { + object._messageDescriptor = []; + if (options.bytes !== Array) + object._messageDescriptor = $util.newBuffer(object._messageDescriptor); + } + object.protobufEnvelopeType = options.enums === String ? "ENVELOPE_TYPE_UNSET" : 0; + object.shallowEnvelopeMessage = ""; + object.shallowEnvelopeFieldNumber = 0; + if (options.bytes === String) + object._shallowEnvelopeMessageDescriptor = ""; + else { + object._shallowEnvelopeMessageDescriptor = []; + if (options.bytes !== Array) + object._shallowEnvelopeMessageDescriptor = $util.newBuffer(object._shallowEnvelopeMessageDescriptor); + } + object.protobufDescriptorSet = ""; } - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - object.connectionId = message.connectionId; - if (message.tunnelToken != null && message.hasOwnProperty("tunnelToken")) - object.tunnelToken = message.tunnelToken; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.notes != null && message.hasOwnProperty("notes")) - object.notes = message.notes; - if (message._tunnelAddress != null && message.hasOwnProperty("_tunnelAddress")) - object._tunnelAddress = message._tunnelAddress; - if (message._tunnelTimeoutSeconds != null && message.hasOwnProperty("_tunnelTimeoutSeconds")) - object._tunnelTimeoutSeconds = message._tunnelTimeoutSeconds; - if (message._tunnelInsecure != null && message.hasOwnProperty("_tunnelInsecure")) - object._tunnelInsecure = message._tunnelInsecure; - if (message.kafka != null && message.hasOwnProperty("kafka")) - object.kafka = $root.protos.args.KafkaWriteArgs.toObject(message.kafka, options); - if (message.activemq != null && message.hasOwnProperty("activemq")) - object.activemq = $root.protos.args.ActiveMQWriteArgs.toObject(message.activemq, options); - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) - object.awsSqs = $root.protos.args.AWSSQSWriteArgs.toObject(message.awsSqs, options); - if (message.awsSns != null && message.hasOwnProperty("awsSns")) - object.awsSns = $root.protos.args.AWSSNSWriteArgs.toObject(message.awsSns, options); - if (message.nats != null && message.hasOwnProperty("nats")) - object.nats = $root.protos.args.NatsWriteArgs.toObject(message.nats, options); - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) - object.natsStreaming = $root.protos.args.NatsStreamingWriteArgs.toObject(message.natsStreaming, options); - if (message.nsq != null && message.hasOwnProperty("nsq")) - object.nsq = $root.protos.args.NSQWriteArgs.toObject(message.nsq, options); - if (message.rabbit != null && message.hasOwnProperty("rabbit")) - object.rabbit = $root.protos.args.RabbitWriteArgs.toObject(message.rabbit, options); - if (message.mqtt != null && message.hasOwnProperty("mqtt")) - object.mqtt = $root.protos.args.MQTTWriteArgs.toObject(message.mqtt, options); - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) - object.azureServiceBus = $root.protos.args.AzureServiceBusWriteArgs.toObject(message.azureServiceBus, options); - if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) - object.azureEventHub = $root.protos.args.AzureEventHubWriteArgs.toObject(message.azureEventHub, options); - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) - object.gcpPubsub = $root.protos.args.GCPPubSubWriteArgs.toObject(message.gcpPubsub, options); - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) - object.kubemqQueue = $root.protos.args.KubeMQQueueWriteArgs.toObject(message.kubemqQueue, options); - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) - object.redisPubsub = $root.protos.args.RedisPubSubWriteArgs.toObject(message.redisPubsub, options); - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) - object.redisStreams = $root.protos.args.RedisStreamsWriteArgs.toObject(message.redisStreams, options); - if (message.pulsar != null && message.hasOwnProperty("pulsar")) - object.pulsar = $root.protos.args.PulsarWriteArgs.toObject(message.pulsar, options); - if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) - object.rabbitStreams = $root.protos.args.RabbitStreamsWriteArgs.toObject(message.rabbitStreams, options); - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) - object.natsJetstream = $root.protos.args.NatsJetstreamWriteArgs.toObject(message.natsJetstream, options); - if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) - object.awsKinesis = $root.protos.args.AWSKinesisWriteArgs.toObject(message.awsKinesis, options); - if (message.memphis != null && message.hasOwnProperty("memphis")) - object.memphis = $root.protos.args.MemphisWriteArgs.toObject(message.memphis, options); + if (message.protobufRootMessage != null && message.hasOwnProperty("protobufRootMessage")) + object.protobufRootMessage = message.protobufRootMessage; + if (message.protobufDirs && message.protobufDirs.length) { + object.protobufDirs = []; + for (var j = 0; j < message.protobufDirs.length; ++j) + object.protobufDirs[j] = message.protobufDirs[j]; + } + if (message._protobufRootDir != null && message.hasOwnProperty("_protobufRootDir")) + object._protobufRootDir = message._protobufRootDir; + if (message.archive != null && message.hasOwnProperty("archive")) + object.archive = options.bytes === String ? $util.base64.encode(message.archive, 0, message.archive.length) : options.bytes === Array ? Array.prototype.slice.call(message.archive) : message.archive; + if (message._messageDescriptor != null && message.hasOwnProperty("_messageDescriptor")) + object._messageDescriptor = options.bytes === String ? $util.base64.encode(message._messageDescriptor, 0, message._messageDescriptor.length) : options.bytes === Array ? Array.prototype.slice.call(message._messageDescriptor) : message._messageDescriptor; + if (message.protobufEnvelopeType != null && message.hasOwnProperty("protobufEnvelopeType")) + object.protobufEnvelopeType = options.enums === String ? $root.protos.encoding.EnvelopeType[message.protobufEnvelopeType] : message.protobufEnvelopeType; + if (message.shallowEnvelopeMessage != null && message.hasOwnProperty("shallowEnvelopeMessage")) + object.shallowEnvelopeMessage = message.shallowEnvelopeMessage; + if (message.shallowEnvelopeFieldNumber != null && message.hasOwnProperty("shallowEnvelopeFieldNumber")) + object.shallowEnvelopeFieldNumber = message.shallowEnvelopeFieldNumber; + if (message._shallowEnvelopeMessageDescriptor != null && message.hasOwnProperty("_shallowEnvelopeMessageDescriptor")) + object._shallowEnvelopeMessageDescriptor = options.bytes === String ? $util.base64.encode(message._shallowEnvelopeMessageDescriptor, 0, message._shallowEnvelopeMessageDescriptor.length) : options.bytes === Array ? Array.prototype.slice.call(message._shallowEnvelopeMessageDescriptor) : message._shallowEnvelopeMessageDescriptor; + if (message.protobufDescriptorSet != null && message.hasOwnProperty("protobufDescriptorSet")) + object.protobufDescriptorSet = message.protobufDescriptorSet; return object; }; /** - * Converts this CreateTunnelOptions to JSON. + * Converts this ProtobufSettings to JSON. * @function toJSON - * @memberof protos.opts.CreateTunnelOptions + * @memberof protos.encoding.ProtobufSettings * @instance * @returns {Object.} JSON object */ - CreateTunnelOptions.prototype.toJSON = function toJSON() { + ProtobufSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateTunnelOptions; + return ProtobufSettings; })(); - opts.DeleteTunnelOptions = (function() { + encoding.AvroSettings = (function() { /** - * Properties of a DeleteTunnelOptions. - * @memberof protos.opts - * @interface IDeleteTunnelOptions - * @property {string|null} [id] DeleteTunnelOptions id + * Properties of an AvroSettings. + * @memberof protos.encoding + * @interface IAvroSettings + * @property {string|null} [avroSchemaFile] AvroSettings avroSchemaFile + * @property {Uint8Array|null} [schema] AvroSettings schema */ /** - * Constructs a new DeleteTunnelOptions. - * @memberof protos.opts - * @classdesc Represents a DeleteTunnelOptions. - * @implements IDeleteTunnelOptions + * Constructs a new AvroSettings. + * @memberof protos.encoding + * @classdesc Represents an AvroSettings. + * @implements IAvroSettings * @constructor - * @param {protos.opts.IDeleteTunnelOptions=} [properties] Properties to set + * @param {protos.encoding.IAvroSettings=} [properties] Properties to set */ - function DeleteTunnelOptions(properties) { + function AvroSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22364,75 +20449,88 @@ $root.protos = (function() { } /** - * DeleteTunnelOptions id. - * @member {string} id - * @memberof protos.opts.DeleteTunnelOptions + * AvroSettings avroSchemaFile. + * @member {string} avroSchemaFile + * @memberof protos.encoding.AvroSettings + * @instance + */ + AvroSettings.prototype.avroSchemaFile = ""; + + /** + * AvroSettings schema. + * @member {Uint8Array} schema + * @memberof protos.encoding.AvroSettings * @instance */ - DeleteTunnelOptions.prototype.id = ""; + AvroSettings.prototype.schema = $util.newBuffer([]); /** - * Creates a new DeleteTunnelOptions instance using the specified properties. + * Creates a new AvroSettings instance using the specified properties. * @function create - * @memberof protos.opts.DeleteTunnelOptions + * @memberof protos.encoding.AvroSettings * @static - * @param {protos.opts.IDeleteTunnelOptions=} [properties] Properties to set - * @returns {protos.opts.DeleteTunnelOptions} DeleteTunnelOptions instance + * @param {protos.encoding.IAvroSettings=} [properties] Properties to set + * @returns {protos.encoding.AvroSettings} AvroSettings instance */ - DeleteTunnelOptions.create = function create(properties) { - return new DeleteTunnelOptions(properties); + AvroSettings.create = function create(properties) { + return new AvroSettings(properties); }; /** - * Encodes the specified DeleteTunnelOptions message. Does not implicitly {@link protos.opts.DeleteTunnelOptions.verify|verify} messages. + * Encodes the specified AvroSettings message. Does not implicitly {@link protos.encoding.AvroSettings.verify|verify} messages. * @function encode - * @memberof protos.opts.DeleteTunnelOptions + * @memberof protos.encoding.AvroSettings * @static - * @param {protos.opts.IDeleteTunnelOptions} message DeleteTunnelOptions message or plain object to encode + * @param {protos.encoding.IAvroSettings} message AvroSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTunnelOptions.encode = function encode(message, writer) { + AvroSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.avroSchemaFile != null && Object.hasOwnProperty.call(message, "avroSchemaFile")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.avroSchemaFile); + if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.schema); return writer; }; /** - * Encodes the specified DeleteTunnelOptions message, length delimited. Does not implicitly {@link protos.opts.DeleteTunnelOptions.verify|verify} messages. + * Encodes the specified AvroSettings message, length delimited. Does not implicitly {@link protos.encoding.AvroSettings.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.DeleteTunnelOptions + * @memberof protos.encoding.AvroSettings * @static - * @param {protos.opts.IDeleteTunnelOptions} message DeleteTunnelOptions message or plain object to encode + * @param {protos.encoding.IAvroSettings} message AvroSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteTunnelOptions.encodeDelimited = function encodeDelimited(message, writer) { + AvroSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTunnelOptions message from the specified reader or buffer. + * Decodes an AvroSettings message from the specified reader or buffer. * @function decode - * @memberof protos.opts.DeleteTunnelOptions + * @memberof protos.encoding.AvroSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.DeleteTunnelOptions} DeleteTunnelOptions + * @returns {protos.encoding.AvroSettings} AvroSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTunnelOptions.decode = function decode(reader, length) { + AvroSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.DeleteTunnelOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.AvroSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message.avroSchemaFile = reader.string(); + break; + case 2: + message.schema = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -22443,107 +20541,127 @@ $root.protos = (function() { }; /** - * Decodes a DeleteTunnelOptions message from the specified reader or buffer, length delimited. + * Decodes an AvroSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.DeleteTunnelOptions + * @memberof protos.encoding.AvroSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.DeleteTunnelOptions} DeleteTunnelOptions + * @returns {protos.encoding.AvroSettings} AvroSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteTunnelOptions.decodeDelimited = function decodeDelimited(reader) { + AvroSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteTunnelOptions message. + * Verifies an AvroSettings message. * @function verify - * @memberof protos.opts.DeleteTunnelOptions + * @memberof protos.encoding.AvroSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteTunnelOptions.verify = function verify(message) { + AvroSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; + if (message.avroSchemaFile != null && message.hasOwnProperty("avroSchemaFile")) + if (!$util.isString(message.avroSchemaFile)) + return "avroSchemaFile: string expected"; + if (message.schema != null && message.hasOwnProperty("schema")) + if (!(message.schema && typeof message.schema.length === "number" || $util.isString(message.schema))) + return "schema: buffer expected"; return null; }; /** - * Creates a DeleteTunnelOptions message from a plain object. Also converts values to their respective internal types. + * Creates an AvroSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.DeleteTunnelOptions + * @memberof protos.encoding.AvroSettings * @static * @param {Object.} object Plain object - * @returns {protos.opts.DeleteTunnelOptions} DeleteTunnelOptions + * @returns {protos.encoding.AvroSettings} AvroSettings */ - DeleteTunnelOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.DeleteTunnelOptions) + AvroSettings.fromObject = function fromObject(object) { + if (object instanceof $root.protos.encoding.AvroSettings) return object; - var message = new $root.protos.opts.DeleteTunnelOptions(); - if (object.id != null) - message.id = String(object.id); + var message = new $root.protos.encoding.AvroSettings(); + if (object.avroSchemaFile != null) + message.avroSchemaFile = String(object.avroSchemaFile); + if (object.schema != null) + if (typeof object.schema === "string") + $util.base64.decode(object.schema, message.schema = $util.newBuffer($util.base64.length(object.schema)), 0); + else if (object.schema.length) + message.schema = object.schema; return message; }; /** - * Creates a plain object from a DeleteTunnelOptions message. Also converts values to other types if specified. + * Creates a plain object from an AvroSettings message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.DeleteTunnelOptions + * @memberof protos.encoding.AvroSettings * @static - * @param {protos.opts.DeleteTunnelOptions} message DeleteTunnelOptions + * @param {protos.encoding.AvroSettings} message AvroSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTunnelOptions.toObject = function toObject(message, options) { + AvroSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + if (options.defaults) { + object.avroSchemaFile = ""; + if (options.bytes === String) + object.schema = ""; + else { + object.schema = []; + if (options.bytes !== Array) + object.schema = $util.newBuffer(object.schema); + } + } + if (message.avroSchemaFile != null && message.hasOwnProperty("avroSchemaFile")) + object.avroSchemaFile = message.avroSchemaFile; + if (message.schema != null && message.hasOwnProperty("schema")) + object.schema = options.bytes === String ? $util.base64.encode(message.schema, 0, message.schema.length) : options.bytes === Array ? Array.prototype.slice.call(message.schema) : message.schema; return object; }; /** - * Converts this DeleteTunnelOptions to JSON. + * Converts this AvroSettings to JSON. * @function toJSON - * @memberof protos.opts.DeleteTunnelOptions + * @memberof protos.encoding.AvroSettings * @instance * @returns {Object.} JSON object */ - DeleteTunnelOptions.prototype.toJSON = function toJSON() { + AvroSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteTunnelOptions; + return AvroSettings; })(); - opts.StopTunnelOptions = (function() { + encoding.ThriftSettings = (function() { /** - * Properties of a StopTunnelOptions. - * @memberof protos.opts - * @interface IStopTunnelOptions - * @property {string|null} [id] StopTunnelOptions id + * Properties of a ThriftSettings. + * @memberof protos.encoding + * @interface IThriftSettings + * @property {Array.|null} [thriftDirs] ThriftSettings thriftDirs + * @property {string|null} [thriftStruct] ThriftSettings thriftStruct */ /** - * Constructs a new StopTunnelOptions. - * @memberof protos.opts - * @classdesc Represents a StopTunnelOptions. - * @implements IStopTunnelOptions + * Constructs a new ThriftSettings. + * @memberof protos.encoding + * @classdesc Represents a ThriftSettings. + * @implements IThriftSettings * @constructor - * @param {protos.opts.IStopTunnelOptions=} [properties] Properties to set + * @param {protos.encoding.IThriftSettings=} [properties] Properties to set */ - function StopTunnelOptions(properties) { + function ThriftSettings(properties) { + this.thriftDirs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22551,75 +20669,91 @@ $root.protos = (function() { } /** - * StopTunnelOptions id. - * @member {string} id - * @memberof protos.opts.StopTunnelOptions + * ThriftSettings thriftDirs. + * @member {Array.} thriftDirs + * @memberof protos.encoding.ThriftSettings + * @instance + */ + ThriftSettings.prototype.thriftDirs = $util.emptyArray; + + /** + * ThriftSettings thriftStruct. + * @member {string} thriftStruct + * @memberof protos.encoding.ThriftSettings * @instance */ - StopTunnelOptions.prototype.id = ""; + ThriftSettings.prototype.thriftStruct = ""; /** - * Creates a new StopTunnelOptions instance using the specified properties. + * Creates a new ThriftSettings instance using the specified properties. * @function create - * @memberof protos.opts.StopTunnelOptions + * @memberof protos.encoding.ThriftSettings * @static - * @param {protos.opts.IStopTunnelOptions=} [properties] Properties to set - * @returns {protos.opts.StopTunnelOptions} StopTunnelOptions instance + * @param {protos.encoding.IThriftSettings=} [properties] Properties to set + * @returns {protos.encoding.ThriftSettings} ThriftSettings instance */ - StopTunnelOptions.create = function create(properties) { - return new StopTunnelOptions(properties); + ThriftSettings.create = function create(properties) { + return new ThriftSettings(properties); }; /** - * Encodes the specified StopTunnelOptions message. Does not implicitly {@link protos.opts.StopTunnelOptions.verify|verify} messages. + * Encodes the specified ThriftSettings message. Does not implicitly {@link protos.encoding.ThriftSettings.verify|verify} messages. * @function encode - * @memberof protos.opts.StopTunnelOptions + * @memberof protos.encoding.ThriftSettings * @static - * @param {protos.opts.IStopTunnelOptions} message StopTunnelOptions message or plain object to encode + * @param {protos.encoding.IThriftSettings} message ThriftSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopTunnelOptions.encode = function encode(message, writer) { + ThriftSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.thriftDirs != null && message.thriftDirs.length) + for (var i = 0; i < message.thriftDirs.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.thriftDirs[i]); + if (message.thriftStruct != null && Object.hasOwnProperty.call(message, "thriftStruct")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.thriftStruct); return writer; }; /** - * Encodes the specified StopTunnelOptions message, length delimited. Does not implicitly {@link protos.opts.StopTunnelOptions.verify|verify} messages. + * Encodes the specified ThriftSettings message, length delimited. Does not implicitly {@link protos.encoding.ThriftSettings.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.StopTunnelOptions + * @memberof protos.encoding.ThriftSettings * @static - * @param {protos.opts.IStopTunnelOptions} message StopTunnelOptions message or plain object to encode + * @param {protos.encoding.IThriftSettings} message ThriftSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StopTunnelOptions.encodeDelimited = function encodeDelimited(message, writer) { + ThriftSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopTunnelOptions message from the specified reader or buffer. + * Decodes a ThriftSettings message from the specified reader or buffer. * @function decode - * @memberof protos.opts.StopTunnelOptions + * @memberof protos.encoding.ThriftSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.StopTunnelOptions} StopTunnelOptions + * @returns {protos.encoding.ThriftSettings} ThriftSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopTunnelOptions.decode = function decode(reader, length) { + ThriftSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.StopTunnelOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.ThriftSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + if (!(message.thriftDirs && message.thriftDirs.length)) + message.thriftDirs = []; + message.thriftDirs.push(reader.string()); + break; + case 2: + message.thriftStruct = reader.string(); break; default: reader.skipType(tag & 7); @@ -22630,107 +20764,128 @@ $root.protos = (function() { }; /** - * Decodes a StopTunnelOptions message from the specified reader or buffer, length delimited. + * Decodes a ThriftSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.StopTunnelOptions + * @memberof protos.encoding.ThriftSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.StopTunnelOptions} StopTunnelOptions + * @returns {protos.encoding.ThriftSettings} ThriftSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StopTunnelOptions.decodeDelimited = function decodeDelimited(reader) { + ThriftSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StopTunnelOptions message. + * Verifies a ThriftSettings message. * @function verify - * @memberof protos.opts.StopTunnelOptions + * @memberof protos.encoding.ThriftSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StopTunnelOptions.verify = function verify(message) { + ThriftSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; + if (message.thriftDirs != null && message.hasOwnProperty("thriftDirs")) { + if (!Array.isArray(message.thriftDirs)) + return "thriftDirs: array expected"; + for (var i = 0; i < message.thriftDirs.length; ++i) + if (!$util.isString(message.thriftDirs[i])) + return "thriftDirs: string[] expected"; + } + if (message.thriftStruct != null && message.hasOwnProperty("thriftStruct")) + if (!$util.isString(message.thriftStruct)) + return "thriftStruct: string expected"; return null; }; /** - * Creates a StopTunnelOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ThriftSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.StopTunnelOptions + * @memberof protos.encoding.ThriftSettings * @static * @param {Object.} object Plain object - * @returns {protos.opts.StopTunnelOptions} StopTunnelOptions + * @returns {protos.encoding.ThriftSettings} ThriftSettings */ - StopTunnelOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.StopTunnelOptions) + ThriftSettings.fromObject = function fromObject(object) { + if (object instanceof $root.protos.encoding.ThriftSettings) return object; - var message = new $root.protos.opts.StopTunnelOptions(); - if (object.id != null) - message.id = String(object.id); + var message = new $root.protos.encoding.ThriftSettings(); + if (object.thriftDirs) { + if (!Array.isArray(object.thriftDirs)) + throw TypeError(".protos.encoding.ThriftSettings.thriftDirs: array expected"); + message.thriftDirs = []; + for (var i = 0; i < object.thriftDirs.length; ++i) + message.thriftDirs[i] = String(object.thriftDirs[i]); + } + if (object.thriftStruct != null) + message.thriftStruct = String(object.thriftStruct); return message; }; /** - * Creates a plain object from a StopTunnelOptions message. Also converts values to other types if specified. + * Creates a plain object from a ThriftSettings message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.StopTunnelOptions + * @memberof protos.encoding.ThriftSettings * @static - * @param {protos.opts.StopTunnelOptions} message StopTunnelOptions + * @param {protos.encoding.ThriftSettings} message ThriftSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopTunnelOptions.toObject = function toObject(message, options) { + ThriftSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.thriftDirs = []; if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + object.thriftStruct = ""; + if (message.thriftDirs && message.thriftDirs.length) { + object.thriftDirs = []; + for (var j = 0; j < message.thriftDirs.length; ++j) + object.thriftDirs[j] = message.thriftDirs[j]; + } + if (message.thriftStruct != null && message.hasOwnProperty("thriftStruct")) + object.thriftStruct = message.thriftStruct; return object; }; /** - * Converts this StopTunnelOptions to JSON. + * Converts this ThriftSettings to JSON. * @function toJSON - * @memberof protos.opts.StopTunnelOptions + * @memberof protos.encoding.ThriftSettings * @instance * @returns {Object.} JSON object */ - StopTunnelOptions.prototype.toJSON = function toJSON() { + ThriftSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StopTunnelOptions; + return ThriftSettings; })(); - opts.ResumeTunnelOptions = (function() { + encoding.JSONSchemaSettings = (function() { /** - * Properties of a ResumeTunnelOptions. - * @memberof protos.opts - * @interface IResumeTunnelOptions - * @property {string|null} [id] ResumeTunnelOptions id + * Properties of a JSONSchemaSettings. + * @memberof protos.encoding + * @interface IJSONSchemaSettings + * @property {Uint8Array|null} [schema] JSONSchemaSettings schema */ /** - * Constructs a new ResumeTunnelOptions. - * @memberof protos.opts - * @classdesc Represents a ResumeTunnelOptions. - * @implements IResumeTunnelOptions + * Constructs a new JSONSchemaSettings. + * @memberof protos.encoding + * @classdesc Represents a JSONSchemaSettings. + * @implements IJSONSchemaSettings * @constructor - * @param {protos.opts.IResumeTunnelOptions=} [properties] Properties to set + * @param {protos.encoding.IJSONSchemaSettings=} [properties] Properties to set */ - function ResumeTunnelOptions(properties) { + function JSONSchemaSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22738,75 +20893,75 @@ $root.protos = (function() { } /** - * ResumeTunnelOptions id. - * @member {string} id - * @memberof protos.opts.ResumeTunnelOptions + * JSONSchemaSettings schema. + * @member {Uint8Array} schema + * @memberof protos.encoding.JSONSchemaSettings * @instance */ - ResumeTunnelOptions.prototype.id = ""; + JSONSchemaSettings.prototype.schema = $util.newBuffer([]); /** - * Creates a new ResumeTunnelOptions instance using the specified properties. + * Creates a new JSONSchemaSettings instance using the specified properties. * @function create - * @memberof protos.opts.ResumeTunnelOptions + * @memberof protos.encoding.JSONSchemaSettings * @static - * @param {protos.opts.IResumeTunnelOptions=} [properties] Properties to set - * @returns {protos.opts.ResumeTunnelOptions} ResumeTunnelOptions instance + * @param {protos.encoding.IJSONSchemaSettings=} [properties] Properties to set + * @returns {protos.encoding.JSONSchemaSettings} JSONSchemaSettings instance */ - ResumeTunnelOptions.create = function create(properties) { - return new ResumeTunnelOptions(properties); + JSONSchemaSettings.create = function create(properties) { + return new JSONSchemaSettings(properties); }; /** - * Encodes the specified ResumeTunnelOptions message. Does not implicitly {@link protos.opts.ResumeTunnelOptions.verify|verify} messages. + * Encodes the specified JSONSchemaSettings message. Does not implicitly {@link protos.encoding.JSONSchemaSettings.verify|verify} messages. * @function encode - * @memberof protos.opts.ResumeTunnelOptions + * @memberof protos.encoding.JSONSchemaSettings * @static - * @param {protos.opts.IResumeTunnelOptions} message ResumeTunnelOptions message or plain object to encode + * @param {protos.encoding.IJSONSchemaSettings} message JSONSchemaSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeTunnelOptions.encode = function encode(message, writer) { + JSONSchemaSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.schema); return writer; }; /** - * Encodes the specified ResumeTunnelOptions message, length delimited. Does not implicitly {@link protos.opts.ResumeTunnelOptions.verify|verify} messages. + * Encodes the specified JSONSchemaSettings message, length delimited. Does not implicitly {@link protos.encoding.JSONSchemaSettings.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ResumeTunnelOptions + * @memberof protos.encoding.JSONSchemaSettings * @static - * @param {protos.opts.IResumeTunnelOptions} message ResumeTunnelOptions message or plain object to encode + * @param {protos.encoding.IJSONSchemaSettings} message JSONSchemaSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeTunnelOptions.encodeDelimited = function encodeDelimited(message, writer) { + JSONSchemaSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResumeTunnelOptions message from the specified reader or buffer. + * Decodes a JSONSchemaSettings message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ResumeTunnelOptions + * @memberof protos.encoding.JSONSchemaSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ResumeTunnelOptions} ResumeTunnelOptions + * @returns {protos.encoding.JSONSchemaSettings} JSONSchemaSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeTunnelOptions.decode = function decode(reader, length) { + JSONSchemaSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ResumeTunnelOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.JSONSchemaSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message.schema = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -22817,125 +20972,122 @@ $root.protos = (function() { }; /** - * Decodes a ResumeTunnelOptions message from the specified reader or buffer, length delimited. + * Decodes a JSONSchemaSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ResumeTunnelOptions + * @memberof protos.encoding.JSONSchemaSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ResumeTunnelOptions} ResumeTunnelOptions + * @returns {protos.encoding.JSONSchemaSettings} JSONSchemaSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeTunnelOptions.decodeDelimited = function decodeDelimited(reader) { + JSONSchemaSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResumeTunnelOptions message. + * Verifies a JSONSchemaSettings message. * @function verify - * @memberof protos.opts.ResumeTunnelOptions + * @memberof protos.encoding.JSONSchemaSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResumeTunnelOptions.verify = function verify(message) { + JSONSchemaSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; + if (message.schema != null && message.hasOwnProperty("schema")) + if (!(message.schema && typeof message.schema.length === "number" || $util.isString(message.schema))) + return "schema: buffer expected"; return null; }; /** - * Creates a ResumeTunnelOptions message from a plain object. Also converts values to their respective internal types. + * Creates a JSONSchemaSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ResumeTunnelOptions + * @memberof protos.encoding.JSONSchemaSettings * @static * @param {Object.} object Plain object - * @returns {protos.opts.ResumeTunnelOptions} ResumeTunnelOptions + * @returns {protos.encoding.JSONSchemaSettings} JSONSchemaSettings */ - ResumeTunnelOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ResumeTunnelOptions) + JSONSchemaSettings.fromObject = function fromObject(object) { + if (object instanceof $root.protos.encoding.JSONSchemaSettings) return object; - var message = new $root.protos.opts.ResumeTunnelOptions(); - if (object.id != null) - message.id = String(object.id); + var message = new $root.protos.encoding.JSONSchemaSettings(); + if (object.schema != null) + if (typeof object.schema === "string") + $util.base64.decode(object.schema, message.schema = $util.newBuffer($util.base64.length(object.schema)), 0); + else if (object.schema.length) + message.schema = object.schema; return message; }; /** - * Creates a plain object from a ResumeTunnelOptions message. Also converts values to other types if specified. + * Creates a plain object from a JSONSchemaSettings message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ResumeTunnelOptions + * @memberof protos.encoding.JSONSchemaSettings * @static - * @param {protos.opts.ResumeTunnelOptions} message ResumeTunnelOptions + * @param {protos.encoding.JSONSchemaSettings} message JSONSchemaSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResumeTunnelOptions.toObject = function toObject(message, options) { + JSONSchemaSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + if (options.bytes === String) + object.schema = ""; + else { + object.schema = []; + if (options.bytes !== Array) + object.schema = $util.newBuffer(object.schema); + } + if (message.schema != null && message.hasOwnProperty("schema")) + object.schema = options.bytes === String ? $util.base64.encode(message.schema, 0, message.schema.length) : options.bytes === Array ? Array.prototype.slice.call(message.schema) : message.schema; return object; }; /** - * Converts this ResumeTunnelOptions to JSON. + * Converts this JSONSchemaSettings to JSON. * @function toJSON - * @memberof protos.opts.ResumeTunnelOptions + * @memberof protos.encoding.JSONSchemaSettings * @instance * @returns {Object.} JSON object */ - ResumeTunnelOptions.prototype.toJSON = function toJSON() { + JSONSchemaSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResumeTunnelOptions; - })(); - - /** - * ConvertOption enum. - * @name protos.opts.ConvertOption - * @enum {number} - * @property {number} CONVERT_OPTION_UNSET=0 CONVERT_OPTION_UNSET value - * @property {number} CONVERT_OPTION_BASE64=1 CONVERT_OPTION_BASE64 value - * @property {number} CONVERT_OPTION_GZIP=2 CONVERT_OPTION_GZIP value - */ - opts.ConvertOption = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CONVERT_OPTION_UNSET"] = 0; - values[valuesById[1] = "CONVERT_OPTION_BASE64"] = 1; - values[valuesById[2] = "CONVERT_OPTION_GZIP"] = 2; - return values; + return JSONSchemaSettings; })(); - opts.ReadCLIOptions = (function() { + encoding.CloudEventSettings = (function() { /** - * Properties of a ReadCLIOptions. - * @memberof protos.opts - * @interface IReadCLIOptions - * @property {boolean|null} [verboseOutput] ReadCLIOptions verboseOutput - * @property {boolean|null} [pretty] ReadCLIOptions pretty - * @property {boolean|null} [json] ReadCLIOptions json + * Properties of a CloudEventSettings. + * @memberof protos.encoding + * @interface ICloudEventSettings + * @property {string|null} [ceId] CloudEventSettings ceId + * @property {string|null} [ceSource] CloudEventSettings ceSource + * @property {string|null} [ceType] CloudEventSettings ceType + * @property {string|null} [ceSubject] CloudEventSettings ceSubject + * @property {string|null} [ceSpecVersion] CloudEventSettings ceSpecVersion + * @property {string|null} [ceDataContentType] CloudEventSettings ceDataContentType + * @property {string|null} [ceDataSchema] CloudEventSettings ceDataSchema */ /** - * Constructs a new ReadCLIOptions. - * @memberof protos.opts - * @classdesc Represents a ReadCLIOptions. - * @implements IReadCLIOptions + * Constructs a new CloudEventSettings. + * @memberof protos.encoding + * @classdesc Represents a CloudEventSettings. + * @implements ICloudEventSettings * @constructor - * @param {protos.opts.IReadCLIOptions=} [properties] Properties to set + * @param {protos.encoding.ICloudEventSettings=} [properties] Properties to set */ - function ReadCLIOptions(properties) { + function CloudEventSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22943,101 +21095,153 @@ $root.protos = (function() { } /** - * ReadCLIOptions verboseOutput. - * @member {boolean} verboseOutput - * @memberof protos.opts.ReadCLIOptions + * CloudEventSettings ceId. + * @member {string} ceId + * @memberof protos.encoding.CloudEventSettings * @instance */ - ReadCLIOptions.prototype.verboseOutput = false; + CloudEventSettings.prototype.ceId = ""; /** - * ReadCLIOptions pretty. - * @member {boolean} pretty - * @memberof protos.opts.ReadCLIOptions + * CloudEventSettings ceSource. + * @member {string} ceSource + * @memberof protos.encoding.CloudEventSettings * @instance */ - ReadCLIOptions.prototype.pretty = false; + CloudEventSettings.prototype.ceSource = ""; /** - * ReadCLIOptions json. - * @member {boolean} json - * @memberof protos.opts.ReadCLIOptions + * CloudEventSettings ceType. + * @member {string} ceType + * @memberof protos.encoding.CloudEventSettings * @instance */ - ReadCLIOptions.prototype.json = false; + CloudEventSettings.prototype.ceType = ""; /** - * Creates a new ReadCLIOptions instance using the specified properties. + * CloudEventSettings ceSubject. + * @member {string} ceSubject + * @memberof protos.encoding.CloudEventSettings + * @instance + */ + CloudEventSettings.prototype.ceSubject = ""; + + /** + * CloudEventSettings ceSpecVersion. + * @member {string} ceSpecVersion + * @memberof protos.encoding.CloudEventSettings + * @instance + */ + CloudEventSettings.prototype.ceSpecVersion = ""; + + /** + * CloudEventSettings ceDataContentType. + * @member {string} ceDataContentType + * @memberof protos.encoding.CloudEventSettings + * @instance + */ + CloudEventSettings.prototype.ceDataContentType = ""; + + /** + * CloudEventSettings ceDataSchema. + * @member {string} ceDataSchema + * @memberof protos.encoding.CloudEventSettings + * @instance + */ + CloudEventSettings.prototype.ceDataSchema = ""; + + /** + * Creates a new CloudEventSettings instance using the specified properties. * @function create - * @memberof protos.opts.ReadCLIOptions + * @memberof protos.encoding.CloudEventSettings * @static - * @param {protos.opts.IReadCLIOptions=} [properties] Properties to set - * @returns {protos.opts.ReadCLIOptions} ReadCLIOptions instance + * @param {protos.encoding.ICloudEventSettings=} [properties] Properties to set + * @returns {protos.encoding.CloudEventSettings} CloudEventSettings instance */ - ReadCLIOptions.create = function create(properties) { - return new ReadCLIOptions(properties); + CloudEventSettings.create = function create(properties) { + return new CloudEventSettings(properties); }; /** - * Encodes the specified ReadCLIOptions message. Does not implicitly {@link protos.opts.ReadCLIOptions.verify|verify} messages. + * Encodes the specified CloudEventSettings message. Does not implicitly {@link protos.encoding.CloudEventSettings.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadCLIOptions + * @memberof protos.encoding.CloudEventSettings * @static - * @param {protos.opts.IReadCLIOptions} message ReadCLIOptions message or plain object to encode + * @param {protos.encoding.ICloudEventSettings} message CloudEventSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadCLIOptions.encode = function encode(message, writer) { + CloudEventSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.verboseOutput != null && Object.hasOwnProperty.call(message, "verboseOutput")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.verboseOutput); - if (message.pretty != null && Object.hasOwnProperty.call(message, "pretty")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.pretty); - if (message.json != null && Object.hasOwnProperty.call(message, "json")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.json); + if (message.ceId != null && Object.hasOwnProperty.call(message, "ceId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.ceId); + if (message.ceSource != null && Object.hasOwnProperty.call(message, "ceSource")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.ceSource); + if (message.ceType != null && Object.hasOwnProperty.call(message, "ceType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.ceType); + if (message.ceSubject != null && Object.hasOwnProperty.call(message, "ceSubject")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.ceSubject); + if (message.ceSpecVersion != null && Object.hasOwnProperty.call(message, "ceSpecVersion")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.ceSpecVersion); + if (message.ceDataContentType != null && Object.hasOwnProperty.call(message, "ceDataContentType")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.ceDataContentType); + if (message.ceDataSchema != null && Object.hasOwnProperty.call(message, "ceDataSchema")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.ceDataSchema); return writer; }; /** - * Encodes the specified ReadCLIOptions message, length delimited. Does not implicitly {@link protos.opts.ReadCLIOptions.verify|verify} messages. + * Encodes the specified CloudEventSettings message, length delimited. Does not implicitly {@link protos.encoding.CloudEventSettings.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadCLIOptions + * @memberof protos.encoding.CloudEventSettings * @static - * @param {protos.opts.IReadCLIOptions} message ReadCLIOptions message or plain object to encode + * @param {protos.encoding.ICloudEventSettings} message CloudEventSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadCLIOptions.encodeDelimited = function encodeDelimited(message, writer) { + CloudEventSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadCLIOptions message from the specified reader or buffer. + * Decodes a CloudEventSettings message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadCLIOptions + * @memberof protos.encoding.CloudEventSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadCLIOptions} ReadCLIOptions + * @returns {protos.encoding.CloudEventSettings} CloudEventSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadCLIOptions.decode = function decode(reader, length) { + CloudEventSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadCLIOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.CloudEventSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.verboseOutput = reader.bool(); + message.ceId = reader.string(); break; case 2: - message.pretty = reader.bool(); + message.ceSource = reader.string(); break; case 3: - message.json = reader.bool(); + message.ceType = reader.string(); + break; + case 4: + message.ceSubject = reader.string(); + break; + case 5: + message.ceSpecVersion = reader.string(); + break; + case 6: + message.ceDataContentType = reader.string(); + break; + case 7: + message.ceDataSchema = reader.string(); break; default: reader.skipType(tag & 7); @@ -23048,125 +21252,160 @@ $root.protos = (function() { }; /** - * Decodes a ReadCLIOptions message from the specified reader or buffer, length delimited. + * Decodes a CloudEventSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadCLIOptions + * @memberof protos.encoding.CloudEventSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadCLIOptions} ReadCLIOptions + * @returns {protos.encoding.CloudEventSettings} CloudEventSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadCLIOptions.decodeDelimited = function decodeDelimited(reader) { + CloudEventSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadCLIOptions message. + * Verifies a CloudEventSettings message. * @function verify - * @memberof protos.opts.ReadCLIOptions + * @memberof protos.encoding.CloudEventSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadCLIOptions.verify = function verify(message) { + CloudEventSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.verboseOutput != null && message.hasOwnProperty("verboseOutput")) - if (typeof message.verboseOutput !== "boolean") - return "verboseOutput: boolean expected"; - if (message.pretty != null && message.hasOwnProperty("pretty")) - if (typeof message.pretty !== "boolean") - return "pretty: boolean expected"; - if (message.json != null && message.hasOwnProperty("json")) - if (typeof message.json !== "boolean") - return "json: boolean expected"; + if (message.ceId != null && message.hasOwnProperty("ceId")) + if (!$util.isString(message.ceId)) + return "ceId: string expected"; + if (message.ceSource != null && message.hasOwnProperty("ceSource")) + if (!$util.isString(message.ceSource)) + return "ceSource: string expected"; + if (message.ceType != null && message.hasOwnProperty("ceType")) + if (!$util.isString(message.ceType)) + return "ceType: string expected"; + if (message.ceSubject != null && message.hasOwnProperty("ceSubject")) + if (!$util.isString(message.ceSubject)) + return "ceSubject: string expected"; + if (message.ceSpecVersion != null && message.hasOwnProperty("ceSpecVersion")) + if (!$util.isString(message.ceSpecVersion)) + return "ceSpecVersion: string expected"; + if (message.ceDataContentType != null && message.hasOwnProperty("ceDataContentType")) + if (!$util.isString(message.ceDataContentType)) + return "ceDataContentType: string expected"; + if (message.ceDataSchema != null && message.hasOwnProperty("ceDataSchema")) + if (!$util.isString(message.ceDataSchema)) + return "ceDataSchema: string expected"; return null; }; /** - * Creates a ReadCLIOptions message from a plain object. Also converts values to their respective internal types. + * Creates a CloudEventSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadCLIOptions + * @memberof protos.encoding.CloudEventSettings * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadCLIOptions} ReadCLIOptions + * @returns {protos.encoding.CloudEventSettings} CloudEventSettings */ - ReadCLIOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadCLIOptions) + CloudEventSettings.fromObject = function fromObject(object) { + if (object instanceof $root.protos.encoding.CloudEventSettings) return object; - var message = new $root.protos.opts.ReadCLIOptions(); - if (object.verboseOutput != null) - message.verboseOutput = Boolean(object.verboseOutput); - if (object.pretty != null) - message.pretty = Boolean(object.pretty); - if (object.json != null) - message.json = Boolean(object.json); + var message = new $root.protos.encoding.CloudEventSettings(); + if (object.ceId != null) + message.ceId = String(object.ceId); + if (object.ceSource != null) + message.ceSource = String(object.ceSource); + if (object.ceType != null) + message.ceType = String(object.ceType); + if (object.ceSubject != null) + message.ceSubject = String(object.ceSubject); + if (object.ceSpecVersion != null) + message.ceSpecVersion = String(object.ceSpecVersion); + if (object.ceDataContentType != null) + message.ceDataContentType = String(object.ceDataContentType); + if (object.ceDataSchema != null) + message.ceDataSchema = String(object.ceDataSchema); return message; }; /** - * Creates a plain object from a ReadCLIOptions message. Also converts values to other types if specified. + * Creates a plain object from a CloudEventSettings message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadCLIOptions + * @memberof protos.encoding.CloudEventSettings * @static - * @param {protos.opts.ReadCLIOptions} message ReadCLIOptions + * @param {protos.encoding.CloudEventSettings} message CloudEventSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadCLIOptions.toObject = function toObject(message, options) { + CloudEventSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.verboseOutput = false; - object.pretty = false; - object.json = false; + object.ceId = ""; + object.ceSource = ""; + object.ceType = ""; + object.ceSubject = ""; + object.ceSpecVersion = ""; + object.ceDataContentType = ""; + object.ceDataSchema = ""; } - if (message.verboseOutput != null && message.hasOwnProperty("verboseOutput")) - object.verboseOutput = message.verboseOutput; - if (message.pretty != null && message.hasOwnProperty("pretty")) - object.pretty = message.pretty; - if (message.json != null && message.hasOwnProperty("json")) - object.json = message.json; + if (message.ceId != null && message.hasOwnProperty("ceId")) + object.ceId = message.ceId; + if (message.ceSource != null && message.hasOwnProperty("ceSource")) + object.ceSource = message.ceSource; + if (message.ceType != null && message.hasOwnProperty("ceType")) + object.ceType = message.ceType; + if (message.ceSubject != null && message.hasOwnProperty("ceSubject")) + object.ceSubject = message.ceSubject; + if (message.ceSpecVersion != null && message.hasOwnProperty("ceSpecVersion")) + object.ceSpecVersion = message.ceSpecVersion; + if (message.ceDataContentType != null && message.hasOwnProperty("ceDataContentType")) + object.ceDataContentType = message.ceDataContentType; + if (message.ceDataSchema != null && message.hasOwnProperty("ceDataSchema")) + object.ceDataSchema = message.ceDataSchema; return object; }; /** - * Converts this ReadCLIOptions to JSON. + * Converts this CloudEventSettings to JSON. * @function toJSON - * @memberof protos.opts.ReadCLIOptions + * @memberof protos.encoding.CloudEventSettings * @instance * @returns {Object.} JSON object */ - ReadCLIOptions.prototype.toJSON = function toJSON() { + CloudEventSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadCLIOptions; + return CloudEventSettings; })(); - opts.ReadSampleOptions = (function() { + encoding.EncodeOptions = (function() { /** - * Properties of a ReadSampleOptions. - * @memberof protos.opts - * @interface IReadSampleOptions - * @property {number|null} [sampleRate] ReadSampleOptions sampleRate - * @property {number|null} [sampleIntervalSeconds] ReadSampleOptions sampleIntervalSeconds + * Properties of an EncodeOptions. + * @memberof protos.encoding + * @interface IEncodeOptions + * @property {string|null} [schemaId] EncodeOptions schemaId + * @property {protos.encoding.EncodeType|null} [encodeType] EncodeOptions encodeType + * @property {protos.encoding.IProtobufSettings|null} [protobufSettings] EncodeOptions protobufSettings + * @property {protos.encoding.IAvroSettings|null} [avroSettings] EncodeOptions avroSettings + * @property {protos.encoding.ICloudEventSettings|null} [cloudeventSettings] EncodeOptions cloudeventSettings */ /** - * Constructs a new ReadSampleOptions. - * @memberof protos.opts - * @classdesc Represents a ReadSampleOptions. - * @implements IReadSampleOptions + * Constructs a new EncodeOptions. + * @memberof protos.encoding + * @classdesc Represents an EncodeOptions. + * @implements IEncodeOptions * @constructor - * @param {protos.opts.IReadSampleOptions=} [properties] Properties to set + * @param {protos.encoding.IEncodeOptions=} [properties] Properties to set */ - function ReadSampleOptions(properties) { + function EncodeOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23174,88 +21413,127 @@ $root.protos = (function() { } /** - * ReadSampleOptions sampleRate. - * @member {number} sampleRate - * @memberof protos.opts.ReadSampleOptions + * EncodeOptions schemaId. + * @member {string} schemaId + * @memberof protos.encoding.EncodeOptions * @instance */ - ReadSampleOptions.prototype.sampleRate = 0; + EncodeOptions.prototype.schemaId = ""; /** - * ReadSampleOptions sampleIntervalSeconds. - * @member {number} sampleIntervalSeconds - * @memberof protos.opts.ReadSampleOptions + * EncodeOptions encodeType. + * @member {protos.encoding.EncodeType} encodeType + * @memberof protos.encoding.EncodeOptions * @instance */ - ReadSampleOptions.prototype.sampleIntervalSeconds = 0; + EncodeOptions.prototype.encodeType = 0; /** - * Creates a new ReadSampleOptions instance using the specified properties. + * EncodeOptions protobufSettings. + * @member {protos.encoding.IProtobufSettings|null|undefined} protobufSettings + * @memberof protos.encoding.EncodeOptions + * @instance + */ + EncodeOptions.prototype.protobufSettings = null; + + /** + * EncodeOptions avroSettings. + * @member {protos.encoding.IAvroSettings|null|undefined} avroSettings + * @memberof protos.encoding.EncodeOptions + * @instance + */ + EncodeOptions.prototype.avroSettings = null; + + /** + * EncodeOptions cloudeventSettings. + * @member {protos.encoding.ICloudEventSettings|null|undefined} cloudeventSettings + * @memberof protos.encoding.EncodeOptions + * @instance + */ + EncodeOptions.prototype.cloudeventSettings = null; + + /** + * Creates a new EncodeOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadSampleOptions + * @memberof protos.encoding.EncodeOptions * @static - * @param {protos.opts.IReadSampleOptions=} [properties] Properties to set - * @returns {protos.opts.ReadSampleOptions} ReadSampleOptions instance + * @param {protos.encoding.IEncodeOptions=} [properties] Properties to set + * @returns {protos.encoding.EncodeOptions} EncodeOptions instance */ - ReadSampleOptions.create = function create(properties) { - return new ReadSampleOptions(properties); + EncodeOptions.create = function create(properties) { + return new EncodeOptions(properties); }; /** - * Encodes the specified ReadSampleOptions message. Does not implicitly {@link protos.opts.ReadSampleOptions.verify|verify} messages. + * Encodes the specified EncodeOptions message. Does not implicitly {@link protos.encoding.EncodeOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadSampleOptions + * @memberof protos.encoding.EncodeOptions * @static - * @param {protos.opts.IReadSampleOptions} message ReadSampleOptions message or plain object to encode + * @param {protos.encoding.IEncodeOptions} message EncodeOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadSampleOptions.encode = function encode(message, writer) { + EncodeOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.sampleRate); - if (message.sampleIntervalSeconds != null && Object.hasOwnProperty.call(message, "sampleIntervalSeconds")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.sampleIntervalSeconds); + if (message.schemaId != null && Object.hasOwnProperty.call(message, "schemaId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.schemaId); + if (message.encodeType != null && Object.hasOwnProperty.call(message, "encodeType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.encodeType); + if (message.protobufSettings != null && Object.hasOwnProperty.call(message, "protobufSettings")) + $root.protos.encoding.ProtobufSettings.encode(message.protobufSettings, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.avroSettings != null && Object.hasOwnProperty.call(message, "avroSettings")) + $root.protos.encoding.AvroSettings.encode(message.avroSettings, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.cloudeventSettings != null && Object.hasOwnProperty.call(message, "cloudeventSettings")) + $root.protos.encoding.CloudEventSettings.encode(message.cloudeventSettings, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadSampleOptions message, length delimited. Does not implicitly {@link protos.opts.ReadSampleOptions.verify|verify} messages. + * Encodes the specified EncodeOptions message, length delimited. Does not implicitly {@link protos.encoding.EncodeOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadSampleOptions + * @memberof protos.encoding.EncodeOptions * @static - * @param {protos.opts.IReadSampleOptions} message ReadSampleOptions message or plain object to encode + * @param {protos.encoding.IEncodeOptions} message EncodeOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadSampleOptions.encodeDelimited = function encodeDelimited(message, writer) { + EncodeOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadSampleOptions message from the specified reader or buffer. + * Decodes an EncodeOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadSampleOptions + * @memberof protos.encoding.EncodeOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadSampleOptions} ReadSampleOptions + * @returns {protos.encoding.EncodeOptions} EncodeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadSampleOptions.decode = function decode(reader, length) { + EncodeOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadSampleOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.EncodeOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sampleRate = reader.uint32(); + message.schemaId = reader.string(); break; case 2: - message.sampleIntervalSeconds = reader.uint32(); + message.encodeType = reader.int32(); + break; + case 3: + message.protobufSettings = $root.protos.encoding.ProtobufSettings.decode(reader, reader.uint32()); + break; + case 4: + message.avroSettings = $root.protos.encoding.AvroSettings.decode(reader, reader.uint32()); + break; + case 5: + message.cloudeventSettings = $root.protos.encoding.CloudEventSettings.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -23266,116 +21544,182 @@ $root.protos = (function() { }; /** - * Decodes a ReadSampleOptions message from the specified reader or buffer, length delimited. + * Decodes an EncodeOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadSampleOptions + * @memberof protos.encoding.EncodeOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadSampleOptions} ReadSampleOptions + * @returns {protos.encoding.EncodeOptions} EncodeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadSampleOptions.decodeDelimited = function decodeDelimited(reader) { + EncodeOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadSampleOptions message. + * Verifies an EncodeOptions message. * @function verify - * @memberof protos.opts.ReadSampleOptions + * @memberof protos.encoding.EncodeOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadSampleOptions.verify = function verify(message) { + EncodeOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) - if (!$util.isInteger(message.sampleRate)) - return "sampleRate: integer expected"; - if (message.sampleIntervalSeconds != null && message.hasOwnProperty("sampleIntervalSeconds")) - if (!$util.isInteger(message.sampleIntervalSeconds)) - return "sampleIntervalSeconds: integer expected"; + if (message.schemaId != null && message.hasOwnProperty("schemaId")) + if (!$util.isString(message.schemaId)) + return "schemaId: string expected"; + if (message.encodeType != null && message.hasOwnProperty("encodeType")) + switch (message.encodeType) { + default: + return "encodeType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.protobufSettings != null && message.hasOwnProperty("protobufSettings")) { + var error = $root.protos.encoding.ProtobufSettings.verify(message.protobufSettings); + if (error) + return "protobufSettings." + error; + } + if (message.avroSettings != null && message.hasOwnProperty("avroSettings")) { + var error = $root.protos.encoding.AvroSettings.verify(message.avroSettings); + if (error) + return "avroSettings." + error; + } + if (message.cloudeventSettings != null && message.hasOwnProperty("cloudeventSettings")) { + var error = $root.protos.encoding.CloudEventSettings.verify(message.cloudeventSettings); + if (error) + return "cloudeventSettings." + error; + } return null; }; /** - * Creates a ReadSampleOptions message from a plain object. Also converts values to their respective internal types. + * Creates an EncodeOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadSampleOptions + * @memberof protos.encoding.EncodeOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadSampleOptions} ReadSampleOptions + * @returns {protos.encoding.EncodeOptions} EncodeOptions */ - ReadSampleOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadSampleOptions) + EncodeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.encoding.EncodeOptions) return object; - var message = new $root.protos.opts.ReadSampleOptions(); - if (object.sampleRate != null) - message.sampleRate = object.sampleRate >>> 0; - if (object.sampleIntervalSeconds != null) - message.sampleIntervalSeconds = object.sampleIntervalSeconds >>> 0; + var message = new $root.protos.encoding.EncodeOptions(); + if (object.schemaId != null) + message.schemaId = String(object.schemaId); + switch (object.encodeType) { + case "ENCODE_TYPE_UNSET": + case 0: + message.encodeType = 0; + break; + case "ENCODE_TYPE_JSONPB": + case 1: + message.encodeType = 1; + break; + case "ENCODE_TYPE_AVRO": + case 2: + message.encodeType = 2; + break; + case "ENCODE_TYPE_CLOUDEVENT": + case 3: + message.encodeType = 3; + break; + } + if (object.protobufSettings != null) { + if (typeof object.protobufSettings !== "object") + throw TypeError(".protos.encoding.EncodeOptions.protobufSettings: object expected"); + message.protobufSettings = $root.protos.encoding.ProtobufSettings.fromObject(object.protobufSettings); + } + if (object.avroSettings != null) { + if (typeof object.avroSettings !== "object") + throw TypeError(".protos.encoding.EncodeOptions.avroSettings: object expected"); + message.avroSettings = $root.protos.encoding.AvroSettings.fromObject(object.avroSettings); + } + if (object.cloudeventSettings != null) { + if (typeof object.cloudeventSettings !== "object") + throw TypeError(".protos.encoding.EncodeOptions.cloudeventSettings: object expected"); + message.cloudeventSettings = $root.protos.encoding.CloudEventSettings.fromObject(object.cloudeventSettings); + } return message; }; /** - * Creates a plain object from a ReadSampleOptions message. Also converts values to other types if specified. + * Creates a plain object from an EncodeOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadSampleOptions + * @memberof protos.encoding.EncodeOptions * @static - * @param {protos.opts.ReadSampleOptions} message ReadSampleOptions + * @param {protos.encoding.EncodeOptions} message EncodeOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadSampleOptions.toObject = function toObject(message, options) { + EncodeOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.sampleRate = 0; - object.sampleIntervalSeconds = 0; + object.schemaId = ""; + object.encodeType = options.enums === String ? "ENCODE_TYPE_UNSET" : 0; + object.protobufSettings = null; + object.avroSettings = null; + object.cloudeventSettings = null; } - if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) - object.sampleRate = message.sampleRate; - if (message.sampleIntervalSeconds != null && message.hasOwnProperty("sampleIntervalSeconds")) - object.sampleIntervalSeconds = message.sampleIntervalSeconds; + if (message.schemaId != null && message.hasOwnProperty("schemaId")) + object.schemaId = message.schemaId; + if (message.encodeType != null && message.hasOwnProperty("encodeType")) + object.encodeType = options.enums === String ? $root.protos.encoding.EncodeType[message.encodeType] : message.encodeType; + if (message.protobufSettings != null && message.hasOwnProperty("protobufSettings")) + object.protobufSettings = $root.protos.encoding.ProtobufSettings.toObject(message.protobufSettings, options); + if (message.avroSettings != null && message.hasOwnProperty("avroSettings")) + object.avroSettings = $root.protos.encoding.AvroSettings.toObject(message.avroSettings, options); + if (message.cloudeventSettings != null && message.hasOwnProperty("cloudeventSettings")) + object.cloudeventSettings = $root.protos.encoding.CloudEventSettings.toObject(message.cloudeventSettings, options); return object; }; /** - * Converts this ReadSampleOptions to JSON. + * Converts this EncodeOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadSampleOptions + * @memberof protos.encoding.EncodeOptions * @instance * @returns {Object.} JSON object */ - ReadSampleOptions.prototype.toJSON = function toJSON() { + EncodeOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadSampleOptions; + return EncodeOptions; })(); - opts.ReadFilterOptions = (function() { + encoding.DecodeOptions = (function() { /** - * Properties of a ReadFilterOptions. - * @memberof protos.opts - * @interface IReadFilterOptions - * @property {string|null} [query] ReadFilterOptions query + * Properties of a DecodeOptions. + * @memberof protos.encoding + * @interface IDecodeOptions + * @property {string|null} [schemaId] DecodeOptions schemaId + * @property {protos.encoding.DecodeType|null} [decodeType] DecodeOptions decodeType + * @property {protos.encoding.IProtobufSettings|null} [protobufSettings] DecodeOptions protobufSettings + * @property {protos.encoding.IAvroSettings|null} [avroSettings] DecodeOptions avroSettings + * @property {protos.encoding.IThriftSettings|null} [thriftSettings] DecodeOptions thriftSettings */ /** - * Constructs a new ReadFilterOptions. - * @memberof protos.opts - * @classdesc Represents a ReadFilterOptions. - * @implements IReadFilterOptions + * Constructs a new DecodeOptions. + * @memberof protos.encoding + * @classdesc Represents a DecodeOptions. + * @implements IDecodeOptions * @constructor - * @param {protos.opts.IReadFilterOptions=} [properties] Properties to set + * @param {protos.encoding.IDecodeOptions=} [properties] Properties to set */ - function ReadFilterOptions(properties) { + function DecodeOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23383,75 +21727,127 @@ $root.protos = (function() { } /** - * ReadFilterOptions query. - * @member {string} query - * @memberof protos.opts.ReadFilterOptions + * DecodeOptions schemaId. + * @member {string} schemaId + * @memberof protos.encoding.DecodeOptions * @instance */ - ReadFilterOptions.prototype.query = ""; + DecodeOptions.prototype.schemaId = ""; /** - * Creates a new ReadFilterOptions instance using the specified properties. + * DecodeOptions decodeType. + * @member {protos.encoding.DecodeType} decodeType + * @memberof protos.encoding.DecodeOptions + * @instance + */ + DecodeOptions.prototype.decodeType = 0; + + /** + * DecodeOptions protobufSettings. + * @member {protos.encoding.IProtobufSettings|null|undefined} protobufSettings + * @memberof protos.encoding.DecodeOptions + * @instance + */ + DecodeOptions.prototype.protobufSettings = null; + + /** + * DecodeOptions avroSettings. + * @member {protos.encoding.IAvroSettings|null|undefined} avroSettings + * @memberof protos.encoding.DecodeOptions + * @instance + */ + DecodeOptions.prototype.avroSettings = null; + + /** + * DecodeOptions thriftSettings. + * @member {protos.encoding.IThriftSettings|null|undefined} thriftSettings + * @memberof protos.encoding.DecodeOptions + * @instance + */ + DecodeOptions.prototype.thriftSettings = null; + + /** + * Creates a new DecodeOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadFilterOptions + * @memberof protos.encoding.DecodeOptions * @static - * @param {protos.opts.IReadFilterOptions=} [properties] Properties to set - * @returns {protos.opts.ReadFilterOptions} ReadFilterOptions instance + * @param {protos.encoding.IDecodeOptions=} [properties] Properties to set + * @returns {protos.encoding.DecodeOptions} DecodeOptions instance */ - ReadFilterOptions.create = function create(properties) { - return new ReadFilterOptions(properties); + DecodeOptions.create = function create(properties) { + return new DecodeOptions(properties); }; /** - * Encodes the specified ReadFilterOptions message. Does not implicitly {@link protos.opts.ReadFilterOptions.verify|verify} messages. + * Encodes the specified DecodeOptions message. Does not implicitly {@link protos.encoding.DecodeOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadFilterOptions + * @memberof protos.encoding.DecodeOptions * @static - * @param {protos.opts.IReadFilterOptions} message ReadFilterOptions message or plain object to encode + * @param {protos.encoding.IDecodeOptions} message DecodeOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFilterOptions.encode = function encode(message, writer) { + DecodeOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.query); + if (message.schemaId != null && Object.hasOwnProperty.call(message, "schemaId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.schemaId); + if (message.decodeType != null && Object.hasOwnProperty.call(message, "decodeType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.decodeType); + if (message.protobufSettings != null && Object.hasOwnProperty.call(message, "protobufSettings")) + $root.protos.encoding.ProtobufSettings.encode(message.protobufSettings, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.avroSettings != null && Object.hasOwnProperty.call(message, "avroSettings")) + $root.protos.encoding.AvroSettings.encode(message.avroSettings, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.thriftSettings != null && Object.hasOwnProperty.call(message, "thriftSettings")) + $root.protos.encoding.ThriftSettings.encode(message.thriftSettings, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadFilterOptions message, length delimited. Does not implicitly {@link protos.opts.ReadFilterOptions.verify|verify} messages. + * Encodes the specified DecodeOptions message, length delimited. Does not implicitly {@link protos.encoding.DecodeOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadFilterOptions + * @memberof protos.encoding.DecodeOptions * @static - * @param {protos.opts.IReadFilterOptions} message ReadFilterOptions message or plain object to encode + * @param {protos.encoding.IDecodeOptions} message DecodeOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFilterOptions.encodeDelimited = function encodeDelimited(message, writer) { + DecodeOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadFilterOptions message from the specified reader or buffer. + * Decodes a DecodeOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadFilterOptions + * @memberof protos.encoding.DecodeOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadFilterOptions} ReadFilterOptions + * @returns {protos.encoding.DecodeOptions} DecodeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFilterOptions.decode = function decode(reader, length) { + DecodeOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadFilterOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.DecodeOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.query = reader.string(); + message.schemaId = reader.string(); + break; + case 2: + message.decodeType = reader.int32(); + break; + case 3: + message.protobufSettings = $root.protos.encoding.ProtobufSettings.decode(reader, reader.uint32()); + break; + case 4: + message.avroSettings = $root.protos.encoding.AvroSettings.decode(reader, reader.uint32()); + break; + case 5: + message.thriftSettings = $root.protos.encoding.ThriftSettings.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -23462,138 +21858,202 @@ $root.protos = (function() { }; /** - * Decodes a ReadFilterOptions message from the specified reader or buffer, length delimited. + * Decodes a DecodeOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadFilterOptions + * @memberof protos.encoding.DecodeOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadFilterOptions} ReadFilterOptions + * @returns {protos.encoding.DecodeOptions} DecodeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFilterOptions.decodeDelimited = function decodeDelimited(reader) { + DecodeOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadFilterOptions message. + * Verifies a DecodeOptions message. * @function verify - * @memberof protos.opts.ReadFilterOptions + * @memberof protos.encoding.DecodeOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadFilterOptions.verify = function verify(message) { + DecodeOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.query != null && message.hasOwnProperty("query")) - if (!$util.isString(message.query)) - return "query: string expected"; + if (message.schemaId != null && message.hasOwnProperty("schemaId")) + if (!$util.isString(message.schemaId)) + return "schemaId: string expected"; + if (message.decodeType != null && message.hasOwnProperty("decodeType")) + switch (message.decodeType) { + default: + return "decodeType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.protobufSettings != null && message.hasOwnProperty("protobufSettings")) { + var error = $root.protos.encoding.ProtobufSettings.verify(message.protobufSettings); + if (error) + return "protobufSettings." + error; + } + if (message.avroSettings != null && message.hasOwnProperty("avroSettings")) { + var error = $root.protos.encoding.AvroSettings.verify(message.avroSettings); + if (error) + return "avroSettings." + error; + } + if (message.thriftSettings != null && message.hasOwnProperty("thriftSettings")) { + var error = $root.protos.encoding.ThriftSettings.verify(message.thriftSettings); + if (error) + return "thriftSettings." + error; + } return null; }; /** - * Creates a ReadFilterOptions message from a plain object. Also converts values to their respective internal types. + * Creates a DecodeOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadFilterOptions + * @memberof protos.encoding.DecodeOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadFilterOptions} ReadFilterOptions + * @returns {protos.encoding.DecodeOptions} DecodeOptions */ - ReadFilterOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadFilterOptions) + DecodeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.encoding.DecodeOptions) return object; - var message = new $root.protos.opts.ReadFilterOptions(); - if (object.query != null) - message.query = String(object.query); + var message = new $root.protos.encoding.DecodeOptions(); + if (object.schemaId != null) + message.schemaId = String(object.schemaId); + switch (object.decodeType) { + case "DECODE_TYPE_UNSET": + case 0: + message.decodeType = 0; + break; + case "DECODE_TYPE_PROTOBUF": + case 1: + message.decodeType = 1; + break; + case "DECODE_TYPE_AVRO": + case 2: + message.decodeType = 2; + break; + case "DECODE_TYPE_THRIFT": + case 3: + message.decodeType = 3; + break; + case "DECODE_TYPE_FLATBUFFER": + case 4: + message.decodeType = 4; + break; + } + if (object.protobufSettings != null) { + if (typeof object.protobufSettings !== "object") + throw TypeError(".protos.encoding.DecodeOptions.protobufSettings: object expected"); + message.protobufSettings = $root.protos.encoding.ProtobufSettings.fromObject(object.protobufSettings); + } + if (object.avroSettings != null) { + if (typeof object.avroSettings !== "object") + throw TypeError(".protos.encoding.DecodeOptions.avroSettings: object expected"); + message.avroSettings = $root.protos.encoding.AvroSettings.fromObject(object.avroSettings); + } + if (object.thriftSettings != null) { + if (typeof object.thriftSettings !== "object") + throw TypeError(".protos.encoding.DecodeOptions.thriftSettings: object expected"); + message.thriftSettings = $root.protos.encoding.ThriftSettings.fromObject(object.thriftSettings); + } return message; }; /** - * Creates a plain object from a ReadFilterOptions message. Also converts values to other types if specified. + * Creates a plain object from a DecodeOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadFilterOptions + * @memberof protos.encoding.DecodeOptions * @static - * @param {protos.opts.ReadFilterOptions} message ReadFilterOptions + * @param {protos.encoding.DecodeOptions} message DecodeOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadFilterOptions.toObject = function toObject(message, options) { + DecodeOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.query = ""; - if (message.query != null && message.hasOwnProperty("query")) - object.query = message.query; + if (options.defaults) { + object.schemaId = ""; + object.decodeType = options.enums === String ? "DECODE_TYPE_UNSET" : 0; + object.protobufSettings = null; + object.avroSettings = null; + object.thriftSettings = null; + } + if (message.schemaId != null && message.hasOwnProperty("schemaId")) + object.schemaId = message.schemaId; + if (message.decodeType != null && message.hasOwnProperty("decodeType")) + object.decodeType = options.enums === String ? $root.protos.encoding.DecodeType[message.decodeType] : message.decodeType; + if (message.protobufSettings != null && message.hasOwnProperty("protobufSettings")) + object.protobufSettings = $root.protos.encoding.ProtobufSettings.toObject(message.protobufSettings, options); + if (message.avroSettings != null && message.hasOwnProperty("avroSettings")) + object.avroSettings = $root.protos.encoding.AvroSettings.toObject(message.avroSettings, options); + if (message.thriftSettings != null && message.hasOwnProperty("thriftSettings")) + object.thriftSettings = $root.protos.encoding.ThriftSettings.toObject(message.thriftSettings, options); return object; }; /** - * Converts this ReadFilterOptions to JSON. + * Converts this DecodeOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadFilterOptions + * @memberof protos.encoding.DecodeOptions * @instance * @returns {Object.} JSON object */ - ReadFilterOptions.prototype.toJSON = function toJSON() { + DecodeOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadFilterOptions; + return DecodeOptions; })(); - opts.ReadOptions = (function() { + return encoding; + })(); + + protos.opts = (function() { + + /** + * Namespace opts. + * @memberof protos + * @namespace + */ + var opts = {}; + + opts.GlobalCLIOptions = (function() { /** - * Properties of a ReadOptions. + * Properties of a GlobalCLIOptions. * @memberof protos.opts - * @interface IReadOptions - * @property {string|null} [name] ReadOptions name - * @property {string|null} [connectionId] ReadOptions connectionId - * @property {boolean|null} [continuous] ReadOptions continuous - * @property {protos.opts.IReadSampleOptions|null} [sampleOptions] ReadOptions sampleOptions - * @property {protos.encoding.IDecodeOptions|null} [decodeOptions] ReadOptions decodeOptions - * @property {protos.opts.ConvertOption|null} [convertOutput] ReadOptions convertOutput - * @property {protos.opts.IReadFilterOptions|null} [filter] ReadOptions filter - * @property {protos.opts.IInferSchemaOptions|null} [inferSchemaOptions] ReadOptions inferSchemaOptions - * @property {string|null} [_id] ReadOptions _id - * @property {boolean|null} [_active] ReadOptions _active - * @property {protos.opts.IReadCLIOptions|null} [_cliOptions] ReadOptions _cliOptions - * @property {protos.opts.IReadGroupKafkaOptions|null} [kafka] ReadOptions kafka - * @property {protos.opts.IReadGroupActiveMQOptions|null} [activemq] ReadOptions activemq - * @property {protos.opts.IReadGroupAWSSQSOptions|null} [awsSqs] ReadOptions awsSqs - * @property {protos.opts.IReadGroupMongoOptions|null} [mongo] ReadOptions mongo - * @property {protos.opts.IReadGroupNatsOptions|null} [nats] ReadOptions nats - * @property {protos.opts.IReadGroupNatsStreamingOptions|null} [natsStreaming] ReadOptions natsStreaming - * @property {protos.opts.IReadGroupNSQOptions|null} [nsq] ReadOptions nsq - * @property {protos.opts.IReadGroupPulsarOptions|null} [pulsar] ReadOptions pulsar - * @property {protos.opts.IReadGroupRabbitOptions|null} [rabbit] ReadOptions rabbit - * @property {protos.opts.IReadGroupRabbitStreamsOptions|null} [rabbitStreams] ReadOptions rabbitStreams - * @property {protos.opts.IReadGroupMQTTOptions|null} [mqtt] ReadOptions mqtt - * @property {protos.opts.IReadGroupAzureServiceBusOptions|null} [azureServiceBus] ReadOptions azureServiceBus - * @property {protos.opts.IReadGroupAzureEventHubOptions|null} [azureEventHub] ReadOptions azureEventHub - * @property {protos.opts.IReadGroupGCPPubSubOptions|null} [gcpPubsub] ReadOptions gcpPubsub - * @property {protos.opts.IReadGroupKubeMQQueueOptions|null} [kubemqQueue] ReadOptions kubemqQueue - * @property {protos.opts.IReadGroupRedisPubSubOptions|null} [redisPubsub] ReadOptions redisPubsub - * @property {protos.opts.IReadGroupRedisStreamsOptions|null} [redisStreams] ReadOptions redisStreams - * @property {protos.opts.IReadGroupPostgresOptions|null} [postgres] ReadOptions postgres - * @property {protos.opts.IReadGroupNatsJetstreamOptions|null} [natsJetstream] ReadOptions natsJetstream - * @property {protos.opts.IReadGroupAWSKinesisOptions|null} [awsKinesis] ReadOptions awsKinesis - * @property {protos.opts.IReadGroupMemphisOptions|null} [memphis] ReadOptions memphis + * @interface IGlobalCLIOptions + * @property {boolean|null} [debug] GlobalCLIOptions debug + * @property {boolean|null} [quiet] GlobalCLIOptions quiet + * @property {boolean|null} [version] GlobalCLIOptions version + * @property {string|null} [_fullCommand] GlobalCLIOptions _fullCommand + * @property {string|null} [_action] GlobalCLIOptions _action + * @property {string|null} [_backend] GlobalCLIOptions _backend + * @property {Array.|null} [_commands] GlobalCLIOptions _commands */ /** - * Constructs a new ReadOptions. + * Constructs a new GlobalCLIOptions. * @memberof protos.opts - * @classdesc Represents a ReadOptions. - * @implements IReadOptions + * @classdesc Represents a GlobalCLIOptions. + * @implements IGlobalCLIOptions * @constructor - * @param {protos.opts.IReadOptions=} [properties] Properties to set + * @param {protos.opts.IGlobalCLIOptions=} [properties] Properties to set */ - function ReadOptions(properties) { + function GlobalCLIOptions(properties) { + this._commands = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23601,481 +22061,436 @@ $root.protos = (function() { } /** - * ReadOptions name. - * @member {string} name - * @memberof protos.opts.ReadOptions - * @instance - */ - ReadOptions.prototype.name = ""; - - /** - * ReadOptions connectionId. - * @member {string} connectionId - * @memberof protos.opts.ReadOptions + * GlobalCLIOptions debug. + * @member {boolean} debug + * @memberof protos.opts.GlobalCLIOptions * @instance */ - ReadOptions.prototype.connectionId = ""; + GlobalCLIOptions.prototype.debug = false; /** - * ReadOptions continuous. - * @member {boolean} continuous - * @memberof protos.opts.ReadOptions + * GlobalCLIOptions quiet. + * @member {boolean} quiet + * @memberof protos.opts.GlobalCLIOptions * @instance */ - ReadOptions.prototype.continuous = false; + GlobalCLIOptions.prototype.quiet = false; /** - * ReadOptions sampleOptions. - * @member {protos.opts.IReadSampleOptions|null|undefined} sampleOptions - * @memberof protos.opts.ReadOptions + * GlobalCLIOptions version. + * @member {boolean} version + * @memberof protos.opts.GlobalCLIOptions * @instance */ - ReadOptions.prototype.sampleOptions = null; + GlobalCLIOptions.prototype.version = false; /** - * ReadOptions decodeOptions. - * @member {protos.encoding.IDecodeOptions|null|undefined} decodeOptions - * @memberof protos.opts.ReadOptions + * GlobalCLIOptions _fullCommand. + * @member {string} _fullCommand + * @memberof protos.opts.GlobalCLIOptions * @instance */ - ReadOptions.prototype.decodeOptions = null; + GlobalCLIOptions.prototype._fullCommand = ""; /** - * ReadOptions convertOutput. - * @member {protos.opts.ConvertOption} convertOutput - * @memberof protos.opts.ReadOptions + * GlobalCLIOptions _action. + * @member {string} _action + * @memberof protos.opts.GlobalCLIOptions * @instance */ - ReadOptions.prototype.convertOutput = 0; + GlobalCLIOptions.prototype._action = ""; /** - * ReadOptions filter. - * @member {protos.opts.IReadFilterOptions|null|undefined} filter - * @memberof protos.opts.ReadOptions + * GlobalCLIOptions _backend. + * @member {string} _backend + * @memberof protos.opts.GlobalCLIOptions * @instance */ - ReadOptions.prototype.filter = null; + GlobalCLIOptions.prototype._backend = ""; /** - * ReadOptions inferSchemaOptions. - * @member {protos.opts.IInferSchemaOptions|null|undefined} inferSchemaOptions - * @memberof protos.opts.ReadOptions + * GlobalCLIOptions _commands. + * @member {Array.} _commands + * @memberof protos.opts.GlobalCLIOptions * @instance */ - ReadOptions.prototype.inferSchemaOptions = null; + GlobalCLIOptions.prototype._commands = $util.emptyArray; /** - * ReadOptions _id. - * @member {string} _id - * @memberof protos.opts.ReadOptions - * @instance + * Creates a new GlobalCLIOptions instance using the specified properties. + * @function create + * @memberof protos.opts.GlobalCLIOptions + * @static + * @param {protos.opts.IGlobalCLIOptions=} [properties] Properties to set + * @returns {protos.opts.GlobalCLIOptions} GlobalCLIOptions instance */ - ReadOptions.prototype._id = ""; + GlobalCLIOptions.create = function create(properties) { + return new GlobalCLIOptions(properties); + }; /** - * ReadOptions _active. - * @member {boolean} _active - * @memberof protos.opts.ReadOptions - * @instance + * Encodes the specified GlobalCLIOptions message. Does not implicitly {@link protos.opts.GlobalCLIOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.GlobalCLIOptions + * @static + * @param {protos.opts.IGlobalCLIOptions} message GlobalCLIOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ReadOptions.prototype._active = false; + GlobalCLIOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.debug != null && Object.hasOwnProperty.call(message, "debug")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.debug); + if (message.quiet != null && Object.hasOwnProperty.call(message, "quiet")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.quiet); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.version); + if (message._fullCommand != null && Object.hasOwnProperty.call(message, "_fullCommand")) + writer.uint32(/* id 1000, wireType 2 =*/8002).string(message._fullCommand); + if (message._action != null && Object.hasOwnProperty.call(message, "_action")) + writer.uint32(/* id 1001, wireType 2 =*/8010).string(message._action); + if (message._backend != null && Object.hasOwnProperty.call(message, "_backend")) + writer.uint32(/* id 1002, wireType 2 =*/8018).string(message._backend); + if (message._commands != null && message._commands.length) + for (var i = 0; i < message._commands.length; ++i) + writer.uint32(/* id 1003, wireType 2 =*/8026).string(message._commands[i]); + return writer; + }; /** - * ReadOptions _cliOptions. - * @member {protos.opts.IReadCLIOptions|null|undefined} _cliOptions - * @memberof protos.opts.ReadOptions - * @instance + * Encodes the specified GlobalCLIOptions message, length delimited. Does not implicitly {@link protos.opts.GlobalCLIOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.GlobalCLIOptions + * @static + * @param {protos.opts.IGlobalCLIOptions} message GlobalCLIOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ReadOptions.prototype._cliOptions = null; + GlobalCLIOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * ReadOptions kafka. - * @member {protos.opts.IReadGroupKafkaOptions|null|undefined} kafka - * @memberof protos.opts.ReadOptions - * @instance + * Decodes a GlobalCLIOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.GlobalCLIOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.GlobalCLIOptions} GlobalCLIOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadOptions.prototype.kafka = null; - - /** - * ReadOptions activemq. - * @member {protos.opts.IReadGroupActiveMQOptions|null|undefined} activemq - * @memberof protos.opts.ReadOptions - * @instance - */ - ReadOptions.prototype.activemq = null; - - /** - * ReadOptions awsSqs. - * @member {protos.opts.IReadGroupAWSSQSOptions|null|undefined} awsSqs - * @memberof protos.opts.ReadOptions - * @instance - */ - ReadOptions.prototype.awsSqs = null; - - /** - * ReadOptions mongo. - * @member {protos.opts.IReadGroupMongoOptions|null|undefined} mongo - * @memberof protos.opts.ReadOptions - * @instance - */ - ReadOptions.prototype.mongo = null; - - /** - * ReadOptions nats. - * @member {protos.opts.IReadGroupNatsOptions|null|undefined} nats - * @memberof protos.opts.ReadOptions - * @instance - */ - ReadOptions.prototype.nats = null; - - /** - * ReadOptions natsStreaming. - * @member {protos.opts.IReadGroupNatsStreamingOptions|null|undefined} natsStreaming - * @memberof protos.opts.ReadOptions - * @instance - */ - ReadOptions.prototype.natsStreaming = null; - - /** - * ReadOptions nsq. - * @member {protos.opts.IReadGroupNSQOptions|null|undefined} nsq - * @memberof protos.opts.ReadOptions - * @instance - */ - ReadOptions.prototype.nsq = null; - - /** - * ReadOptions pulsar. - * @member {protos.opts.IReadGroupPulsarOptions|null|undefined} pulsar - * @memberof protos.opts.ReadOptions - * @instance - */ - ReadOptions.prototype.pulsar = null; - - /** - * ReadOptions rabbit. - * @member {protos.opts.IReadGroupRabbitOptions|null|undefined} rabbit - * @memberof protos.opts.ReadOptions - * @instance - */ - ReadOptions.prototype.rabbit = null; + GlobalCLIOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.GlobalCLIOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.debug = reader.bool(); + break; + case 2: + message.quiet = reader.bool(); + break; + case 3: + message.version = reader.bool(); + break; + case 1000: + message._fullCommand = reader.string(); + break; + case 1001: + message._action = reader.string(); + break; + case 1002: + message._backend = reader.string(); + break; + case 1003: + if (!(message._commands && message._commands.length)) + message._commands = []; + message._commands.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * ReadOptions rabbitStreams. - * @member {protos.opts.IReadGroupRabbitStreamsOptions|null|undefined} rabbitStreams - * @memberof protos.opts.ReadOptions - * @instance + * Decodes a GlobalCLIOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.GlobalCLIOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.GlobalCLIOptions} GlobalCLIOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadOptions.prototype.rabbitStreams = null; + GlobalCLIOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * ReadOptions mqtt. - * @member {protos.opts.IReadGroupMQTTOptions|null|undefined} mqtt - * @memberof protos.opts.ReadOptions - * @instance + * Verifies a GlobalCLIOptions message. + * @function verify + * @memberof protos.opts.GlobalCLIOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadOptions.prototype.mqtt = null; + GlobalCLIOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.debug != null && message.hasOwnProperty("debug")) + if (typeof message.debug !== "boolean") + return "debug: boolean expected"; + if (message.quiet != null && message.hasOwnProperty("quiet")) + if (typeof message.quiet !== "boolean") + return "quiet: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (typeof message.version !== "boolean") + return "version: boolean expected"; + if (message._fullCommand != null && message.hasOwnProperty("_fullCommand")) + if (!$util.isString(message._fullCommand)) + return "_fullCommand: string expected"; + if (message._action != null && message.hasOwnProperty("_action")) + if (!$util.isString(message._action)) + return "_action: string expected"; + if (message._backend != null && message.hasOwnProperty("_backend")) + if (!$util.isString(message._backend)) + return "_backend: string expected"; + if (message._commands != null && message.hasOwnProperty("_commands")) { + if (!Array.isArray(message._commands)) + return "_commands: array expected"; + for (var i = 0; i < message._commands.length; ++i) + if (!$util.isString(message._commands[i])) + return "_commands: string[] expected"; + } + return null; + }; /** - * ReadOptions azureServiceBus. - * @member {protos.opts.IReadGroupAzureServiceBusOptions|null|undefined} azureServiceBus - * @memberof protos.opts.ReadOptions - * @instance + * Creates a GlobalCLIOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.GlobalCLIOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.GlobalCLIOptions} GlobalCLIOptions */ - ReadOptions.prototype.azureServiceBus = null; + GlobalCLIOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.GlobalCLIOptions) + return object; + var message = new $root.protos.opts.GlobalCLIOptions(); + if (object.debug != null) + message.debug = Boolean(object.debug); + if (object.quiet != null) + message.quiet = Boolean(object.quiet); + if (object.version != null) + message.version = Boolean(object.version); + if (object._fullCommand != null) + message._fullCommand = String(object._fullCommand); + if (object._action != null) + message._action = String(object._action); + if (object._backend != null) + message._backend = String(object._backend); + if (object._commands) { + if (!Array.isArray(object._commands)) + throw TypeError(".protos.opts.GlobalCLIOptions._commands: array expected"); + message._commands = []; + for (var i = 0; i < object._commands.length; ++i) + message._commands[i] = String(object._commands[i]); + } + return message; + }; /** - * ReadOptions azureEventHub. - * @member {protos.opts.IReadGroupAzureEventHubOptions|null|undefined} azureEventHub - * @memberof protos.opts.ReadOptions - * @instance + * Creates a plain object from a GlobalCLIOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.GlobalCLIOptions + * @static + * @param {protos.opts.GlobalCLIOptions} message GlobalCLIOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ReadOptions.prototype.azureEventHub = null; + GlobalCLIOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object._commands = []; + if (options.defaults) { + object.debug = false; + object.quiet = false; + object.version = false; + object._fullCommand = ""; + object._action = ""; + object._backend = ""; + } + if (message.debug != null && message.hasOwnProperty("debug")) + object.debug = message.debug; + if (message.quiet != null && message.hasOwnProperty("quiet")) + object.quiet = message.quiet; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message._fullCommand != null && message.hasOwnProperty("_fullCommand")) + object._fullCommand = message._fullCommand; + if (message._action != null && message.hasOwnProperty("_action")) + object._action = message._action; + if (message._backend != null && message.hasOwnProperty("_backend")) + object._backend = message._backend; + if (message._commands && message._commands.length) { + object._commands = []; + for (var j = 0; j < message._commands.length; ++j) + object._commands[j] = message._commands[j]; + } + return object; + }; /** - * ReadOptions gcpPubsub. - * @member {protos.opts.IReadGroupGCPPubSubOptions|null|undefined} gcpPubsub - * @memberof protos.opts.ReadOptions + * Converts this GlobalCLIOptions to JSON. + * @function toJSON + * @memberof protos.opts.GlobalCLIOptions * @instance + * @returns {Object.} JSON object */ - ReadOptions.prototype.gcpPubsub = null; + GlobalCLIOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ReadOptions kubemqQueue. - * @member {protos.opts.IReadGroupKubeMQQueueOptions|null|undefined} kubemqQueue - * @memberof protos.opts.ReadOptions - * @instance - */ - ReadOptions.prototype.kubemqQueue = null; + return GlobalCLIOptions; + })(); - /** - * ReadOptions redisPubsub. - * @member {protos.opts.IReadGroupRedisPubSubOptions|null|undefined} redisPubsub - * @memberof protos.opts.ReadOptions - * @instance - */ - ReadOptions.prototype.redisPubsub = null; + opts.CLIOptions = (function() { /** - * ReadOptions redisStreams. - * @member {protos.opts.IReadGroupRedisStreamsOptions|null|undefined} redisStreams - * @memberof protos.opts.ReadOptions - * @instance + * Properties of a CLIOptions. + * @memberof protos.opts + * @interface ICLIOptions + * @property {protos.opts.IGlobalCLIOptions|null} [global] CLIOptions global + * @property {protos.opts.IReadOptions|null} [read] CLIOptions read + * @property {protos.opts.IWriteOptions|null} [write] CLIOptions write */ - ReadOptions.prototype.redisStreams = null; /** - * ReadOptions postgres. - * @member {protos.opts.IReadGroupPostgresOptions|null|undefined} postgres - * @memberof protos.opts.ReadOptions - * @instance + * Constructs a new CLIOptions. + * @memberof protos.opts + * @classdesc Represents a CLIOptions. + * @implements ICLIOptions + * @constructor + * @param {protos.opts.ICLIOptions=} [properties] Properties to set */ - ReadOptions.prototype.postgres = null; + function CLIOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ReadOptions natsJetstream. - * @member {protos.opts.IReadGroupNatsJetstreamOptions|null|undefined} natsJetstream - * @memberof protos.opts.ReadOptions + * CLIOptions global. + * @member {protos.opts.IGlobalCLIOptions|null|undefined} global + * @memberof protos.opts.CLIOptions * @instance */ - ReadOptions.prototype.natsJetstream = null; + CLIOptions.prototype.global = null; /** - * ReadOptions awsKinesis. - * @member {protos.opts.IReadGroupAWSKinesisOptions|null|undefined} awsKinesis - * @memberof protos.opts.ReadOptions + * CLIOptions read. + * @member {protos.opts.IReadOptions|null|undefined} read + * @memberof protos.opts.CLIOptions * @instance */ - ReadOptions.prototype.awsKinesis = null; + CLIOptions.prototype.read = null; /** - * ReadOptions memphis. - * @member {protos.opts.IReadGroupMemphisOptions|null|undefined} memphis - * @memberof protos.opts.ReadOptions + * CLIOptions write. + * @member {protos.opts.IWriteOptions|null|undefined} write + * @memberof protos.opts.CLIOptions * @instance */ - ReadOptions.prototype.memphis = null; + CLIOptions.prototype.write = null; /** - * Creates a new ReadOptions instance using the specified properties. + * Creates a new CLIOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadOptions + * @memberof protos.opts.CLIOptions * @static - * @param {protos.opts.IReadOptions=} [properties] Properties to set - * @returns {protos.opts.ReadOptions} ReadOptions instance + * @param {protos.opts.ICLIOptions=} [properties] Properties to set + * @returns {protos.opts.CLIOptions} CLIOptions instance */ - ReadOptions.create = function create(properties) { - return new ReadOptions(properties); + CLIOptions.create = function create(properties) { + return new CLIOptions(properties); }; /** - * Encodes the specified ReadOptions message. Does not implicitly {@link protos.opts.ReadOptions.verify|verify} messages. + * Encodes the specified CLIOptions message. Does not implicitly {@link protos.opts.CLIOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadOptions + * @memberof protos.opts.CLIOptions * @static - * @param {protos.opts.IReadOptions} message ReadOptions message or plain object to encode + * @param {protos.opts.ICLIOptions} message CLIOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadOptions.encode = function encode(message, writer) { + CLIOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.connectionId); - if (message.continuous != null && Object.hasOwnProperty.call(message, "continuous")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.continuous); - if (message.sampleOptions != null && Object.hasOwnProperty.call(message, "sampleOptions")) - $root.protos.opts.ReadSampleOptions.encode(message.sampleOptions, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.decodeOptions != null && Object.hasOwnProperty.call(message, "decodeOptions")) - $root.protos.encoding.DecodeOptions.encode(message.decodeOptions, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.convertOutput != null && Object.hasOwnProperty.call(message, "convertOutput")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.convertOutput); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - $root.protos.opts.ReadFilterOptions.encode(message.filter, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.inferSchemaOptions != null && Object.hasOwnProperty.call(message, "inferSchemaOptions")) - $root.protos.opts.InferSchemaOptions.encode(message.inferSchemaOptions, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.kafka != null && Object.hasOwnProperty.call(message, "kafka")) - $root.protos.opts.ReadGroupKafkaOptions.encode(message.kafka, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); - if (message.activemq != null && Object.hasOwnProperty.call(message, "activemq")) - $root.protos.opts.ReadGroupActiveMQOptions.encode(message.activemq, writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); - if (message.awsSqs != null && Object.hasOwnProperty.call(message, "awsSqs")) - $root.protos.opts.ReadGroupAWSSQSOptions.encode(message.awsSqs, writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim(); - if (message.mongo != null && Object.hasOwnProperty.call(message, "mongo")) - $root.protos.opts.ReadGroupMongoOptions.encode(message.mongo, writer.uint32(/* id 103, wireType 2 =*/826).fork()).ldelim(); - if (message.nats != null && Object.hasOwnProperty.call(message, "nats")) - $root.protos.opts.ReadGroupNatsOptions.encode(message.nats, writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim(); - if (message.natsStreaming != null && Object.hasOwnProperty.call(message, "natsStreaming")) - $root.protos.opts.ReadGroupNatsStreamingOptions.encode(message.natsStreaming, writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); - if (message.nsq != null && Object.hasOwnProperty.call(message, "nsq")) - $root.protos.opts.ReadGroupNSQOptions.encode(message.nsq, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim(); - if (message.pulsar != null && Object.hasOwnProperty.call(message, "pulsar")) - $root.protos.opts.ReadGroupPulsarOptions.encode(message.pulsar, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); - if (message.rabbit != null && Object.hasOwnProperty.call(message, "rabbit")) - $root.protos.opts.ReadGroupRabbitOptions.encode(message.rabbit, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim(); - if (message.rabbitStreams != null && Object.hasOwnProperty.call(message, "rabbitStreams")) - $root.protos.opts.ReadGroupRabbitStreamsOptions.encode(message.rabbitStreams, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); - if (message.mqtt != null && Object.hasOwnProperty.call(message, "mqtt")) - $root.protos.opts.ReadGroupMQTTOptions.encode(message.mqtt, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); - if (message.azureServiceBus != null && Object.hasOwnProperty.call(message, "azureServiceBus")) - $root.protos.opts.ReadGroupAzureServiceBusOptions.encode(message.azureServiceBus, writer.uint32(/* id 111, wireType 2 =*/890).fork()).ldelim(); - if (message.azureEventHub != null && Object.hasOwnProperty.call(message, "azureEventHub")) - $root.protos.opts.ReadGroupAzureEventHubOptions.encode(message.azureEventHub, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim(); - if (message.gcpPubsub != null && Object.hasOwnProperty.call(message, "gcpPubsub")) - $root.protos.opts.ReadGroupGCPPubSubOptions.encode(message.gcpPubsub, writer.uint32(/* id 113, wireType 2 =*/906).fork()).ldelim(); - if (message.kubemqQueue != null && Object.hasOwnProperty.call(message, "kubemqQueue")) - $root.protos.opts.ReadGroupKubeMQQueueOptions.encode(message.kubemqQueue, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); - if (message.redisPubsub != null && Object.hasOwnProperty.call(message, "redisPubsub")) - $root.protos.opts.ReadGroupRedisPubSubOptions.encode(message.redisPubsub, writer.uint32(/* id 115, wireType 2 =*/922).fork()).ldelim(); - if (message.redisStreams != null && Object.hasOwnProperty.call(message, "redisStreams")) - $root.protos.opts.ReadGroupRedisStreamsOptions.encode(message.redisStreams, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); - if (message.postgres != null && Object.hasOwnProperty.call(message, "postgres")) - $root.protos.opts.ReadGroupPostgresOptions.encode(message.postgres, writer.uint32(/* id 117, wireType 2 =*/938).fork()).ldelim(); - if (message.natsJetstream != null && Object.hasOwnProperty.call(message, "natsJetstream")) - $root.protos.opts.ReadGroupNatsJetstreamOptions.encode(message.natsJetstream, writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim(); - if (message.awsKinesis != null && Object.hasOwnProperty.call(message, "awsKinesis")) - $root.protos.opts.ReadGroupAWSKinesisOptions.encode(message.awsKinesis, writer.uint32(/* id 119, wireType 2 =*/954).fork()).ldelim(); - if (message.memphis != null && Object.hasOwnProperty.call(message, "memphis")) - $root.protos.opts.ReadGroupMemphisOptions.encode(message.memphis, writer.uint32(/* id 120, wireType 2 =*/962).fork()).ldelim(); - if (message._id != null && Object.hasOwnProperty.call(message, "_id")) - writer.uint32(/* id 1000, wireType 2 =*/8002).string(message._id); - if (message._active != null && Object.hasOwnProperty.call(message, "_active")) - writer.uint32(/* id 1001, wireType 0 =*/8008).bool(message._active); - if (message._cliOptions != null && Object.hasOwnProperty.call(message, "_cliOptions")) - $root.protos.opts.ReadCLIOptions.encode(message._cliOptions, writer.uint32(/* id 1002, wireType 2 =*/8018).fork()).ldelim(); + if (message.global != null && Object.hasOwnProperty.call(message, "global")) + $root.protos.opts.GlobalCLIOptions.encode(message.global, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.read != null && Object.hasOwnProperty.call(message, "read")) + $root.protos.opts.ReadOptions.encode(message.read, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.write != null && Object.hasOwnProperty.call(message, "write")) + $root.protos.opts.WriteOptions.encode(message.write, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadOptions message, length delimited. Does not implicitly {@link protos.opts.ReadOptions.verify|verify} messages. + * Encodes the specified CLIOptions message, length delimited. Does not implicitly {@link protos.opts.CLIOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadOptions + * @memberof protos.opts.CLIOptions * @static - * @param {protos.opts.IReadOptions} message ReadOptions message or plain object to encode + * @param {protos.opts.ICLIOptions} message CLIOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadOptions.encodeDelimited = function encodeDelimited(message, writer) { + CLIOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadOptions message from the specified reader or buffer. + * Decodes a CLIOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadOptions + * @memberof protos.opts.CLIOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadOptions} ReadOptions + * @returns {protos.opts.CLIOptions} CLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadOptions.decode = function decode(reader, length) { + CLIOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.CLIOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.global = $root.protos.opts.GlobalCLIOptions.decode(reader, reader.uint32()); break; case 2: - message.connectionId = reader.string(); + message.read = $root.protos.opts.ReadOptions.decode(reader, reader.uint32()); break; case 3: - message.continuous = reader.bool(); - break; - case 4: - message.sampleOptions = $root.protos.opts.ReadSampleOptions.decode(reader, reader.uint32()); - break; - case 5: - message.decodeOptions = $root.protos.encoding.DecodeOptions.decode(reader, reader.uint32()); - break; - case 6: - message.convertOutput = reader.int32(); - break; - case 7: - message.filter = $root.protos.opts.ReadFilterOptions.decode(reader, reader.uint32()); - break; - case 8: - message.inferSchemaOptions = $root.protos.opts.InferSchemaOptions.decode(reader, reader.uint32()); - break; - case 1000: - message._id = reader.string(); - break; - case 1001: - message._active = reader.bool(); - break; - case 1002: - message._cliOptions = $root.protos.opts.ReadCLIOptions.decode(reader, reader.uint32()); - break; - case 100: - message.kafka = $root.protos.opts.ReadGroupKafkaOptions.decode(reader, reader.uint32()); - break; - case 101: - message.activemq = $root.protos.opts.ReadGroupActiveMQOptions.decode(reader, reader.uint32()); - break; - case 102: - message.awsSqs = $root.protos.opts.ReadGroupAWSSQSOptions.decode(reader, reader.uint32()); - break; - case 103: - message.mongo = $root.protos.opts.ReadGroupMongoOptions.decode(reader, reader.uint32()); - break; - case 104: - message.nats = $root.protos.opts.ReadGroupNatsOptions.decode(reader, reader.uint32()); - break; - case 105: - message.natsStreaming = $root.protos.opts.ReadGroupNatsStreamingOptions.decode(reader, reader.uint32()); - break; - case 106: - message.nsq = $root.protos.opts.ReadGroupNSQOptions.decode(reader, reader.uint32()); - break; - case 107: - message.pulsar = $root.protos.opts.ReadGroupPulsarOptions.decode(reader, reader.uint32()); - break; - case 108: - message.rabbit = $root.protos.opts.ReadGroupRabbitOptions.decode(reader, reader.uint32()); - break; - case 109: - message.rabbitStreams = $root.protos.opts.ReadGroupRabbitStreamsOptions.decode(reader, reader.uint32()); - break; - case 110: - message.mqtt = $root.protos.opts.ReadGroupMQTTOptions.decode(reader, reader.uint32()); - break; - case 111: - message.azureServiceBus = $root.protos.opts.ReadGroupAzureServiceBusOptions.decode(reader, reader.uint32()); - break; - case 112: - message.azureEventHub = $root.protos.opts.ReadGroupAzureEventHubOptions.decode(reader, reader.uint32()); - break; - case 113: - message.gcpPubsub = $root.protos.opts.ReadGroupGCPPubSubOptions.decode(reader, reader.uint32()); - break; - case 114: - message.kubemqQueue = $root.protos.opts.ReadGroupKubeMQQueueOptions.decode(reader, reader.uint32()); - break; - case 115: - message.redisPubsub = $root.protos.opts.ReadGroupRedisPubSubOptions.decode(reader, reader.uint32()); - break; - case 116: - message.redisStreams = $root.protos.opts.ReadGroupRedisStreamsOptions.decode(reader, reader.uint32()); + message.write = $root.protos.opts.WriteOptions.decode(reader, reader.uint32()); break; - case 117: - message.postgres = $root.protos.opts.ReadGroupPostgresOptions.decode(reader, reader.uint32()); - break; - case 118: - message.natsJetstream = $root.protos.opts.ReadGroupNatsJetstreamOptions.decode(reader, reader.uint32()); - break; - case 119: - message.awsKinesis = $root.protos.opts.ReadGroupAWSKinesisOptions.decode(reader, reader.uint32()); - break; - case 120: - message.memphis = $root.protos.opts.ReadGroupMemphisOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); + default: + reader.skipType(tag & 7); break; } } @@ -24083,505 +22498,157 @@ $root.protos = (function() { }; /** - * Decodes a ReadOptions message from the specified reader or buffer, length delimited. + * Decodes a CLIOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadOptions + * @memberof protos.opts.CLIOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadOptions} ReadOptions + * @returns {protos.opts.CLIOptions} CLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadOptions.decodeDelimited = function decodeDelimited(reader) { + CLIOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadOptions message. + * Verifies a CLIOptions message. * @function verify - * @memberof protos.opts.ReadOptions + * @memberof protos.opts.CLIOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadOptions.verify = function verify(message) { + CLIOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - if (!$util.isString(message.connectionId)) - return "connectionId: string expected"; - if (message.continuous != null && message.hasOwnProperty("continuous")) - if (typeof message.continuous !== "boolean") - return "continuous: boolean expected"; - if (message.sampleOptions != null && message.hasOwnProperty("sampleOptions")) { - var error = $root.protos.opts.ReadSampleOptions.verify(message.sampleOptions); - if (error) - return "sampleOptions." + error; - } - if (message.decodeOptions != null && message.hasOwnProperty("decodeOptions")) { - var error = $root.protos.encoding.DecodeOptions.verify(message.decodeOptions); - if (error) - return "decodeOptions." + error; - } - if (message.convertOutput != null && message.hasOwnProperty("convertOutput")) - switch (message.convertOutput) { - default: - return "convertOutput: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.filter != null && message.hasOwnProperty("filter")) { - var error = $root.protos.opts.ReadFilterOptions.verify(message.filter); - if (error) - return "filter." + error; - } - if (message.inferSchemaOptions != null && message.hasOwnProperty("inferSchemaOptions")) { - var error = $root.protos.opts.InferSchemaOptions.verify(message.inferSchemaOptions); - if (error) - return "inferSchemaOptions." + error; - } - if (message._id != null && message.hasOwnProperty("_id")) - if (!$util.isString(message._id)) - return "_id: string expected"; - if (message._active != null && message.hasOwnProperty("_active")) - if (typeof message._active !== "boolean") - return "_active: boolean expected"; - if (message._cliOptions != null && message.hasOwnProperty("_cliOptions")) { - var error = $root.protos.opts.ReadCLIOptions.verify(message._cliOptions); - if (error) - return "_cliOptions." + error; - } - if (message.kafka != null && message.hasOwnProperty("kafka")) { - var error = $root.protos.opts.ReadGroupKafkaOptions.verify(message.kafka); - if (error) - return "kafka." + error; - } - if (message.activemq != null && message.hasOwnProperty("activemq")) { - var error = $root.protos.opts.ReadGroupActiveMQOptions.verify(message.activemq); - if (error) - return "activemq." + error; - } - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) { - var error = $root.protos.opts.ReadGroupAWSSQSOptions.verify(message.awsSqs); - if (error) - return "awsSqs." + error; - } - if (message.mongo != null && message.hasOwnProperty("mongo")) { - var error = $root.protos.opts.ReadGroupMongoOptions.verify(message.mongo); - if (error) - return "mongo." + error; - } - if (message.nats != null && message.hasOwnProperty("nats")) { - var error = $root.protos.opts.ReadGroupNatsOptions.verify(message.nats); - if (error) - return "nats." + error; - } - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) { - var error = $root.protos.opts.ReadGroupNatsStreamingOptions.verify(message.natsStreaming); - if (error) - return "natsStreaming." + error; - } - if (message.nsq != null && message.hasOwnProperty("nsq")) { - var error = $root.protos.opts.ReadGroupNSQOptions.verify(message.nsq); - if (error) - return "nsq." + error; - } - if (message.pulsar != null && message.hasOwnProperty("pulsar")) { - var error = $root.protos.opts.ReadGroupPulsarOptions.verify(message.pulsar); - if (error) - return "pulsar." + error; - } - if (message.rabbit != null && message.hasOwnProperty("rabbit")) { - var error = $root.protos.opts.ReadGroupRabbitOptions.verify(message.rabbit); - if (error) - return "rabbit." + error; - } - if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) { - var error = $root.protos.opts.ReadGroupRabbitStreamsOptions.verify(message.rabbitStreams); - if (error) - return "rabbitStreams." + error; - } - if (message.mqtt != null && message.hasOwnProperty("mqtt")) { - var error = $root.protos.opts.ReadGroupMQTTOptions.verify(message.mqtt); - if (error) - return "mqtt." + error; - } - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) { - var error = $root.protos.opts.ReadGroupAzureServiceBusOptions.verify(message.azureServiceBus); - if (error) - return "azureServiceBus." + error; - } - if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) { - var error = $root.protos.opts.ReadGroupAzureEventHubOptions.verify(message.azureEventHub); - if (error) - return "azureEventHub." + error; - } - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) { - var error = $root.protos.opts.ReadGroupGCPPubSubOptions.verify(message.gcpPubsub); - if (error) - return "gcpPubsub." + error; - } - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) { - var error = $root.protos.opts.ReadGroupKubeMQQueueOptions.verify(message.kubemqQueue); - if (error) - return "kubemqQueue." + error; - } - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) { - var error = $root.protos.opts.ReadGroupRedisPubSubOptions.verify(message.redisPubsub); - if (error) - return "redisPubsub." + error; - } - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) { - var error = $root.protos.opts.ReadGroupRedisStreamsOptions.verify(message.redisStreams); - if (error) - return "redisStreams." + error; - } - if (message.postgres != null && message.hasOwnProperty("postgres")) { - var error = $root.protos.opts.ReadGroupPostgresOptions.verify(message.postgres); - if (error) - return "postgres." + error; - } - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) { - var error = $root.protos.opts.ReadGroupNatsJetstreamOptions.verify(message.natsJetstream); + if (message.global != null && message.hasOwnProperty("global")) { + var error = $root.protos.opts.GlobalCLIOptions.verify(message.global); if (error) - return "natsJetstream." + error; + return "global." + error; } - if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) { - var error = $root.protos.opts.ReadGroupAWSKinesisOptions.verify(message.awsKinesis); + if (message.read != null && message.hasOwnProperty("read")) { + var error = $root.protos.opts.ReadOptions.verify(message.read); if (error) - return "awsKinesis." + error; + return "read." + error; } - if (message.memphis != null && message.hasOwnProperty("memphis")) { - var error = $root.protos.opts.ReadGroupMemphisOptions.verify(message.memphis); + if (message.write != null && message.hasOwnProperty("write")) { + var error = $root.protos.opts.WriteOptions.verify(message.write); if (error) - return "memphis." + error; + return "write." + error; } return null; }; /** - * Creates a ReadOptions message from a plain object. Also converts values to their respective internal types. + * Creates a CLIOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadOptions + * @memberof protos.opts.CLIOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadOptions} ReadOptions + * @returns {protos.opts.CLIOptions} CLIOptions */ - ReadOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadOptions) + CLIOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.CLIOptions) return object; - var message = new $root.protos.opts.ReadOptions(); - if (object.name != null) - message.name = String(object.name); - if (object.connectionId != null) - message.connectionId = String(object.connectionId); - if (object.continuous != null) - message.continuous = Boolean(object.continuous); - if (object.sampleOptions != null) { - if (typeof object.sampleOptions !== "object") - throw TypeError(".protos.opts.ReadOptions.sampleOptions: object expected"); - message.sampleOptions = $root.protos.opts.ReadSampleOptions.fromObject(object.sampleOptions); - } - if (object.decodeOptions != null) { - if (typeof object.decodeOptions !== "object") - throw TypeError(".protos.opts.ReadOptions.decodeOptions: object expected"); - message.decodeOptions = $root.protos.encoding.DecodeOptions.fromObject(object.decodeOptions); - } - switch (object.convertOutput) { - case "CONVERT_OPTION_UNSET": - case 0: - message.convertOutput = 0; - break; - case "CONVERT_OPTION_BASE64": - case 1: - message.convertOutput = 1; - break; - case "CONVERT_OPTION_GZIP": - case 2: - message.convertOutput = 2; - break; - } - if (object.filter != null) { - if (typeof object.filter !== "object") - throw TypeError(".protos.opts.ReadOptions.filter: object expected"); - message.filter = $root.protos.opts.ReadFilterOptions.fromObject(object.filter); - } - if (object.inferSchemaOptions != null) { - if (typeof object.inferSchemaOptions !== "object") - throw TypeError(".protos.opts.ReadOptions.inferSchemaOptions: object expected"); - message.inferSchemaOptions = $root.protos.opts.InferSchemaOptions.fromObject(object.inferSchemaOptions); - } - if (object._id != null) - message._id = String(object._id); - if (object._active != null) - message._active = Boolean(object._active); - if (object._cliOptions != null) { - if (typeof object._cliOptions !== "object") - throw TypeError(".protos.opts.ReadOptions._cliOptions: object expected"); - message._cliOptions = $root.protos.opts.ReadCLIOptions.fromObject(object._cliOptions); - } - if (object.kafka != null) { - if (typeof object.kafka !== "object") - throw TypeError(".protos.opts.ReadOptions.kafka: object expected"); - message.kafka = $root.protos.opts.ReadGroupKafkaOptions.fromObject(object.kafka); - } - if (object.activemq != null) { - if (typeof object.activemq !== "object") - throw TypeError(".protos.opts.ReadOptions.activemq: object expected"); - message.activemq = $root.protos.opts.ReadGroupActiveMQOptions.fromObject(object.activemq); - } - if (object.awsSqs != null) { - if (typeof object.awsSqs !== "object") - throw TypeError(".protos.opts.ReadOptions.awsSqs: object expected"); - message.awsSqs = $root.protos.opts.ReadGroupAWSSQSOptions.fromObject(object.awsSqs); - } - if (object.mongo != null) { - if (typeof object.mongo !== "object") - throw TypeError(".protos.opts.ReadOptions.mongo: object expected"); - message.mongo = $root.protos.opts.ReadGroupMongoOptions.fromObject(object.mongo); - } - if (object.nats != null) { - if (typeof object.nats !== "object") - throw TypeError(".protos.opts.ReadOptions.nats: object expected"); - message.nats = $root.protos.opts.ReadGroupNatsOptions.fromObject(object.nats); - } - if (object.natsStreaming != null) { - if (typeof object.natsStreaming !== "object") - throw TypeError(".protos.opts.ReadOptions.natsStreaming: object expected"); - message.natsStreaming = $root.protos.opts.ReadGroupNatsStreamingOptions.fromObject(object.natsStreaming); - } - if (object.nsq != null) { - if (typeof object.nsq !== "object") - throw TypeError(".protos.opts.ReadOptions.nsq: object expected"); - message.nsq = $root.protos.opts.ReadGroupNSQOptions.fromObject(object.nsq); - } - if (object.pulsar != null) { - if (typeof object.pulsar !== "object") - throw TypeError(".protos.opts.ReadOptions.pulsar: object expected"); - message.pulsar = $root.protos.opts.ReadGroupPulsarOptions.fromObject(object.pulsar); - } - if (object.rabbit != null) { - if (typeof object.rabbit !== "object") - throw TypeError(".protos.opts.ReadOptions.rabbit: object expected"); - message.rabbit = $root.protos.opts.ReadGroupRabbitOptions.fromObject(object.rabbit); - } - if (object.rabbitStreams != null) { - if (typeof object.rabbitStreams !== "object") - throw TypeError(".protos.opts.ReadOptions.rabbitStreams: object expected"); - message.rabbitStreams = $root.protos.opts.ReadGroupRabbitStreamsOptions.fromObject(object.rabbitStreams); - } - if (object.mqtt != null) { - if (typeof object.mqtt !== "object") - throw TypeError(".protos.opts.ReadOptions.mqtt: object expected"); - message.mqtt = $root.protos.opts.ReadGroupMQTTOptions.fromObject(object.mqtt); - } - if (object.azureServiceBus != null) { - if (typeof object.azureServiceBus !== "object") - throw TypeError(".protos.opts.ReadOptions.azureServiceBus: object expected"); - message.azureServiceBus = $root.protos.opts.ReadGroupAzureServiceBusOptions.fromObject(object.azureServiceBus); - } - if (object.azureEventHub != null) { - if (typeof object.azureEventHub !== "object") - throw TypeError(".protos.opts.ReadOptions.azureEventHub: object expected"); - message.azureEventHub = $root.protos.opts.ReadGroupAzureEventHubOptions.fromObject(object.azureEventHub); - } - if (object.gcpPubsub != null) { - if (typeof object.gcpPubsub !== "object") - throw TypeError(".protos.opts.ReadOptions.gcpPubsub: object expected"); - message.gcpPubsub = $root.protos.opts.ReadGroupGCPPubSubOptions.fromObject(object.gcpPubsub); - } - if (object.kubemqQueue != null) { - if (typeof object.kubemqQueue !== "object") - throw TypeError(".protos.opts.ReadOptions.kubemqQueue: object expected"); - message.kubemqQueue = $root.protos.opts.ReadGroupKubeMQQueueOptions.fromObject(object.kubemqQueue); - } - if (object.redisPubsub != null) { - if (typeof object.redisPubsub !== "object") - throw TypeError(".protos.opts.ReadOptions.redisPubsub: object expected"); - message.redisPubsub = $root.protos.opts.ReadGroupRedisPubSubOptions.fromObject(object.redisPubsub); - } - if (object.redisStreams != null) { - if (typeof object.redisStreams !== "object") - throw TypeError(".protos.opts.ReadOptions.redisStreams: object expected"); - message.redisStreams = $root.protos.opts.ReadGroupRedisStreamsOptions.fromObject(object.redisStreams); - } - if (object.postgres != null) { - if (typeof object.postgres !== "object") - throw TypeError(".protos.opts.ReadOptions.postgres: object expected"); - message.postgres = $root.protos.opts.ReadGroupPostgresOptions.fromObject(object.postgres); - } - if (object.natsJetstream != null) { - if (typeof object.natsJetstream !== "object") - throw TypeError(".protos.opts.ReadOptions.natsJetstream: object expected"); - message.natsJetstream = $root.protos.opts.ReadGroupNatsJetstreamOptions.fromObject(object.natsJetstream); + var message = new $root.protos.opts.CLIOptions(); + if (object.global != null) { + if (typeof object.global !== "object") + throw TypeError(".protos.opts.CLIOptions.global: object expected"); + message.global = $root.protos.opts.GlobalCLIOptions.fromObject(object.global); } - if (object.awsKinesis != null) { - if (typeof object.awsKinesis !== "object") - throw TypeError(".protos.opts.ReadOptions.awsKinesis: object expected"); - message.awsKinesis = $root.protos.opts.ReadGroupAWSKinesisOptions.fromObject(object.awsKinesis); + if (object.read != null) { + if (typeof object.read !== "object") + throw TypeError(".protos.opts.CLIOptions.read: object expected"); + message.read = $root.protos.opts.ReadOptions.fromObject(object.read); } - if (object.memphis != null) { - if (typeof object.memphis !== "object") - throw TypeError(".protos.opts.ReadOptions.memphis: object expected"); - message.memphis = $root.protos.opts.ReadGroupMemphisOptions.fromObject(object.memphis); + if (object.write != null) { + if (typeof object.write !== "object") + throw TypeError(".protos.opts.CLIOptions.write: object expected"); + message.write = $root.protos.opts.WriteOptions.fromObject(object.write); } return message; }; /** - * Creates a plain object from a ReadOptions message. Also converts values to other types if specified. + * Creates a plain object from a CLIOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadOptions + * @memberof protos.opts.CLIOptions * @static - * @param {protos.opts.ReadOptions} message ReadOptions + * @param {protos.opts.CLIOptions} message CLIOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadOptions.toObject = function toObject(message, options) { + CLIOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.connectionId = ""; - object.continuous = false; - object.sampleOptions = null; - object.decodeOptions = null; - object.convertOutput = options.enums === String ? "CONVERT_OPTION_UNSET" : 0; - object.filter = null; - object.inferSchemaOptions = null; - object.kafka = null; - object.activemq = null; - object.awsSqs = null; - object.mongo = null; - object.nats = null; - object.natsStreaming = null; - object.nsq = null; - object.pulsar = null; - object.rabbit = null; - object.rabbitStreams = null; - object.mqtt = null; - object.azureServiceBus = null; - object.azureEventHub = null; - object.gcpPubsub = null; - object.kubemqQueue = null; - object.redisPubsub = null; - object.redisStreams = null; - object.postgres = null; - object.natsJetstream = null; - object.awsKinesis = null; - object.memphis = null; - object._id = ""; - object._active = false; - object._cliOptions = null; + object.global = null; + object.read = null; + object.write = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - object.connectionId = message.connectionId; - if (message.continuous != null && message.hasOwnProperty("continuous")) - object.continuous = message.continuous; - if (message.sampleOptions != null && message.hasOwnProperty("sampleOptions")) - object.sampleOptions = $root.protos.opts.ReadSampleOptions.toObject(message.sampleOptions, options); - if (message.decodeOptions != null && message.hasOwnProperty("decodeOptions")) - object.decodeOptions = $root.protos.encoding.DecodeOptions.toObject(message.decodeOptions, options); - if (message.convertOutput != null && message.hasOwnProperty("convertOutput")) - object.convertOutput = options.enums === String ? $root.protos.opts.ConvertOption[message.convertOutput] : message.convertOutput; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = $root.protos.opts.ReadFilterOptions.toObject(message.filter, options); - if (message.inferSchemaOptions != null && message.hasOwnProperty("inferSchemaOptions")) - object.inferSchemaOptions = $root.protos.opts.InferSchemaOptions.toObject(message.inferSchemaOptions, options); - if (message.kafka != null && message.hasOwnProperty("kafka")) - object.kafka = $root.protos.opts.ReadGroupKafkaOptions.toObject(message.kafka, options); - if (message.activemq != null && message.hasOwnProperty("activemq")) - object.activemq = $root.protos.opts.ReadGroupActiveMQOptions.toObject(message.activemq, options); - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) - object.awsSqs = $root.protos.opts.ReadGroupAWSSQSOptions.toObject(message.awsSqs, options); - if (message.mongo != null && message.hasOwnProperty("mongo")) - object.mongo = $root.protos.opts.ReadGroupMongoOptions.toObject(message.mongo, options); - if (message.nats != null && message.hasOwnProperty("nats")) - object.nats = $root.protos.opts.ReadGroupNatsOptions.toObject(message.nats, options); - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) - object.natsStreaming = $root.protos.opts.ReadGroupNatsStreamingOptions.toObject(message.natsStreaming, options); - if (message.nsq != null && message.hasOwnProperty("nsq")) - object.nsq = $root.protos.opts.ReadGroupNSQOptions.toObject(message.nsq, options); - if (message.pulsar != null && message.hasOwnProperty("pulsar")) - object.pulsar = $root.protos.opts.ReadGroupPulsarOptions.toObject(message.pulsar, options); - if (message.rabbit != null && message.hasOwnProperty("rabbit")) - object.rabbit = $root.protos.opts.ReadGroupRabbitOptions.toObject(message.rabbit, options); - if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) - object.rabbitStreams = $root.protos.opts.ReadGroupRabbitStreamsOptions.toObject(message.rabbitStreams, options); - if (message.mqtt != null && message.hasOwnProperty("mqtt")) - object.mqtt = $root.protos.opts.ReadGroupMQTTOptions.toObject(message.mqtt, options); - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) - object.azureServiceBus = $root.protos.opts.ReadGroupAzureServiceBusOptions.toObject(message.azureServiceBus, options); - if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) - object.azureEventHub = $root.protos.opts.ReadGroupAzureEventHubOptions.toObject(message.azureEventHub, options); - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) - object.gcpPubsub = $root.protos.opts.ReadGroupGCPPubSubOptions.toObject(message.gcpPubsub, options); - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) - object.kubemqQueue = $root.protos.opts.ReadGroupKubeMQQueueOptions.toObject(message.kubemqQueue, options); - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) - object.redisPubsub = $root.protos.opts.ReadGroupRedisPubSubOptions.toObject(message.redisPubsub, options); - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) - object.redisStreams = $root.protos.opts.ReadGroupRedisStreamsOptions.toObject(message.redisStreams, options); - if (message.postgres != null && message.hasOwnProperty("postgres")) - object.postgres = $root.protos.opts.ReadGroupPostgresOptions.toObject(message.postgres, options); - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) - object.natsJetstream = $root.protos.opts.ReadGroupNatsJetstreamOptions.toObject(message.natsJetstream, options); - if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) - object.awsKinesis = $root.protos.opts.ReadGroupAWSKinesisOptions.toObject(message.awsKinesis, options); - if (message.memphis != null && message.hasOwnProperty("memphis")) - object.memphis = $root.protos.opts.ReadGroupMemphisOptions.toObject(message.memphis, options); - if (message._id != null && message.hasOwnProperty("_id")) - object._id = message._id; - if (message._active != null && message.hasOwnProperty("_active")) - object._active = message._active; - if (message._cliOptions != null && message.hasOwnProperty("_cliOptions")) - object._cliOptions = $root.protos.opts.ReadCLIOptions.toObject(message._cliOptions, options); + if (message.global != null && message.hasOwnProperty("global")) + object.global = $root.protos.opts.GlobalCLIOptions.toObject(message.global, options); + if (message.read != null && message.hasOwnProperty("read")) + object.read = $root.protos.opts.ReadOptions.toObject(message.read, options); + if (message.write != null && message.hasOwnProperty("write")) + object.write = $root.protos.opts.WriteOptions.toObject(message.write, options); return object; }; /** - * Converts this ReadOptions to JSON. + * Converts this CLIOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadOptions + * @memberof protos.opts.CLIOptions * @instance * @returns {Object.} JSON object */ - ReadOptions.prototype.toJSON = function toJSON() { + CLIOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadOptions; + return CLIOptions; })(); - opts.ReadGroupKafkaOptions = (function() { + /** + * ConvertOption enum. + * @name protos.opts.ConvertOption + * @enum {number} + * @property {number} CONVERT_OPTION_UNSET=0 CONVERT_OPTION_UNSET value + * @property {number} CONVERT_OPTION_BASE64=1 CONVERT_OPTION_BASE64 value + * @property {number} CONVERT_OPTION_GZIP=2 CONVERT_OPTION_GZIP value + */ + opts.ConvertOption = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CONVERT_OPTION_UNSET"] = 0; + values[valuesById[1] = "CONVERT_OPTION_BASE64"] = 1; + values[valuesById[2] = "CONVERT_OPTION_GZIP"] = 2; + return values; + })(); + + opts.ReadCLIOptions = (function() { /** - * Properties of a ReadGroupKafkaOptions. + * Properties of a ReadCLIOptions. * @memberof protos.opts - * @interface IReadGroupKafkaOptions - * @property {protos.args.IKafkaConn|null} [_conn] ReadGroupKafkaOptions _conn - * @property {protos.args.IKafkaReadArgs|null} [args] ReadGroupKafkaOptions args + * @interface IReadCLIOptions + * @property {boolean|null} [verboseOutput] ReadCLIOptions verboseOutput + * @property {boolean|null} [pretty] ReadCLIOptions pretty + * @property {boolean|null} [json] ReadCLIOptions json */ /** - * Constructs a new ReadGroupKafkaOptions. + * Constructs a new ReadCLIOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupKafkaOptions. - * @implements IReadGroupKafkaOptions + * @classdesc Represents a ReadCLIOptions. + * @implements IReadCLIOptions * @constructor - * @param {protos.opts.IReadGroupKafkaOptions=} [properties] Properties to set + * @param {protos.opts.IReadCLIOptions=} [properties] Properties to set */ - function ReadGroupKafkaOptions(properties) { + function ReadCLIOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24589,88 +22656,101 @@ $root.protos = (function() { } /** - * ReadGroupKafkaOptions _conn. - * @member {protos.args.IKafkaConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupKafkaOptions + * ReadCLIOptions verboseOutput. + * @member {boolean} verboseOutput + * @memberof protos.opts.ReadCLIOptions * @instance */ - ReadGroupKafkaOptions.prototype._conn = null; + ReadCLIOptions.prototype.verboseOutput = false; /** - * ReadGroupKafkaOptions args. - * @member {protos.args.IKafkaReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupKafkaOptions + * ReadCLIOptions pretty. + * @member {boolean} pretty + * @memberof protos.opts.ReadCLIOptions * @instance */ - ReadGroupKafkaOptions.prototype.args = null; + ReadCLIOptions.prototype.pretty = false; /** - * Creates a new ReadGroupKafkaOptions instance using the specified properties. + * ReadCLIOptions json. + * @member {boolean} json + * @memberof protos.opts.ReadCLIOptions + * @instance + */ + ReadCLIOptions.prototype.json = false; + + /** + * Creates a new ReadCLIOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupKafkaOptions + * @memberof protos.opts.ReadCLIOptions * @static - * @param {protos.opts.IReadGroupKafkaOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupKafkaOptions} ReadGroupKafkaOptions instance + * @param {protos.opts.IReadCLIOptions=} [properties] Properties to set + * @returns {protos.opts.ReadCLIOptions} ReadCLIOptions instance */ - ReadGroupKafkaOptions.create = function create(properties) { - return new ReadGroupKafkaOptions(properties); + ReadCLIOptions.create = function create(properties) { + return new ReadCLIOptions(properties); }; /** - * Encodes the specified ReadGroupKafkaOptions message. Does not implicitly {@link protos.opts.ReadGroupKafkaOptions.verify|verify} messages. + * Encodes the specified ReadCLIOptions message. Does not implicitly {@link protos.opts.ReadCLIOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupKafkaOptions + * @memberof protos.opts.ReadCLIOptions * @static - * @param {protos.opts.IReadGroupKafkaOptions} message ReadGroupKafkaOptions message or plain object to encode + * @param {protos.opts.IReadCLIOptions} message ReadCLIOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupKafkaOptions.encode = function encode(message, writer) { + ReadCLIOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.KafkaConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.KafkaReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.verboseOutput != null && Object.hasOwnProperty.call(message, "verboseOutput")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.verboseOutput); + if (message.pretty != null && Object.hasOwnProperty.call(message, "pretty")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.pretty); + if (message.json != null && Object.hasOwnProperty.call(message, "json")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.json); return writer; }; /** - * Encodes the specified ReadGroupKafkaOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupKafkaOptions.verify|verify} messages. + * Encodes the specified ReadCLIOptions message, length delimited. Does not implicitly {@link protos.opts.ReadCLIOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupKafkaOptions + * @memberof protos.opts.ReadCLIOptions * @static - * @param {protos.opts.IReadGroupKafkaOptions} message ReadGroupKafkaOptions message or plain object to encode + * @param {protos.opts.IReadCLIOptions} message ReadCLIOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupKafkaOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadCLIOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupKafkaOptions message from the specified reader or buffer. + * Decodes a ReadCLIOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupKafkaOptions + * @memberof protos.opts.ReadCLIOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupKafkaOptions} ReadGroupKafkaOptions + * @returns {protos.opts.ReadCLIOptions} ReadCLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupKafkaOptions.decode = function decode(reader, length) { + ReadCLIOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupKafkaOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadCLIOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.KafkaConn.decode(reader, reader.uint32()); + message.verboseOutput = reader.bool(); break; case 2: - message.args = $root.protos.args.KafkaReadArgs.decode(reader, reader.uint32()); + message.pretty = reader.bool(); + break; + case 3: + message.json = reader.bool(); break; default: reader.skipType(tag & 7); @@ -24681,127 +22761,125 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupKafkaOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadCLIOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupKafkaOptions + * @memberof protos.opts.ReadCLIOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupKafkaOptions} ReadGroupKafkaOptions + * @returns {protos.opts.ReadCLIOptions} ReadCLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupKafkaOptions.decodeDelimited = function decodeDelimited(reader) { + ReadCLIOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupKafkaOptions message. + * Verifies a ReadCLIOptions message. * @function verify - * @memberof protos.opts.ReadGroupKafkaOptions + * @memberof protos.opts.ReadCLIOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupKafkaOptions.verify = function verify(message) { + ReadCLIOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.KafkaConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.KafkaReadArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.verboseOutput != null && message.hasOwnProperty("verboseOutput")) + if (typeof message.verboseOutput !== "boolean") + return "verboseOutput: boolean expected"; + if (message.pretty != null && message.hasOwnProperty("pretty")) + if (typeof message.pretty !== "boolean") + return "pretty: boolean expected"; + if (message.json != null && message.hasOwnProperty("json")) + if (typeof message.json !== "boolean") + return "json: boolean expected"; return null; }; /** - * Creates a ReadGroupKafkaOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadCLIOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupKafkaOptions + * @memberof protos.opts.ReadCLIOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupKafkaOptions} ReadGroupKafkaOptions + * @returns {protos.opts.ReadCLIOptions} ReadCLIOptions */ - ReadGroupKafkaOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupKafkaOptions) + ReadCLIOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadCLIOptions) return object; - var message = new $root.protos.opts.ReadGroupKafkaOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupKafkaOptions._conn: object expected"); - message._conn = $root.protos.args.KafkaConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupKafkaOptions.args: object expected"); - message.args = $root.protos.args.KafkaReadArgs.fromObject(object.args); - } + var message = new $root.protos.opts.ReadCLIOptions(); + if (object.verboseOutput != null) + message.verboseOutput = Boolean(object.verboseOutput); + if (object.pretty != null) + message.pretty = Boolean(object.pretty); + if (object.json != null) + message.json = Boolean(object.json); return message; }; /** - * Creates a plain object from a ReadGroupKafkaOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadCLIOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupKafkaOptions + * @memberof protos.opts.ReadCLIOptions * @static - * @param {protos.opts.ReadGroupKafkaOptions} message ReadGroupKafkaOptions + * @param {protos.opts.ReadCLIOptions} message ReadCLIOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupKafkaOptions.toObject = function toObject(message, options) { + ReadCLIOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.verboseOutput = false; + object.pretty = false; + object.json = false; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.KafkaConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.KafkaReadArgs.toObject(message.args, options); + if (message.verboseOutput != null && message.hasOwnProperty("verboseOutput")) + object.verboseOutput = message.verboseOutput; + if (message.pretty != null && message.hasOwnProperty("pretty")) + object.pretty = message.pretty; + if (message.json != null && message.hasOwnProperty("json")) + object.json = message.json; return object; }; /** - * Converts this ReadGroupKafkaOptions to JSON. + * Converts this ReadCLIOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupKafkaOptions + * @memberof protos.opts.ReadCLIOptions * @instance * @returns {Object.} JSON object */ - ReadGroupKafkaOptions.prototype.toJSON = function toJSON() { + ReadCLIOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupKafkaOptions; + return ReadCLIOptions; })(); - opts.ReadGroupActiveMQOptions = (function() { + opts.ReadSampleOptions = (function() { /** - * Properties of a ReadGroupActiveMQOptions. + * Properties of a ReadSampleOptions. * @memberof protos.opts - * @interface IReadGroupActiveMQOptions - * @property {protos.args.IActiveMQConn|null} [_conn] ReadGroupActiveMQOptions _conn - * @property {protos.args.IActiveMQReadArgs|null} [args] ReadGroupActiveMQOptions args + * @interface IReadSampleOptions + * @property {number|null} [sampleRate] ReadSampleOptions sampleRate + * @property {number|null} [sampleIntervalSeconds] ReadSampleOptions sampleIntervalSeconds */ /** - * Constructs a new ReadGroupActiveMQOptions. + * Constructs a new ReadSampleOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupActiveMQOptions. - * @implements IReadGroupActiveMQOptions + * @classdesc Represents a ReadSampleOptions. + * @implements IReadSampleOptions * @constructor - * @param {protos.opts.IReadGroupActiveMQOptions=} [properties] Properties to set + * @param {protos.opts.IReadSampleOptions=} [properties] Properties to set */ - function ReadGroupActiveMQOptions(properties) { + function ReadSampleOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24809,88 +22887,88 @@ $root.protos = (function() { } /** - * ReadGroupActiveMQOptions _conn. - * @member {protos.args.IActiveMQConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupActiveMQOptions + * ReadSampleOptions sampleRate. + * @member {number} sampleRate + * @memberof protos.opts.ReadSampleOptions * @instance */ - ReadGroupActiveMQOptions.prototype._conn = null; + ReadSampleOptions.prototype.sampleRate = 0; /** - * ReadGroupActiveMQOptions args. - * @member {protos.args.IActiveMQReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupActiveMQOptions + * ReadSampleOptions sampleIntervalSeconds. + * @member {number} sampleIntervalSeconds + * @memberof protos.opts.ReadSampleOptions * @instance */ - ReadGroupActiveMQOptions.prototype.args = null; + ReadSampleOptions.prototype.sampleIntervalSeconds = 0; /** - * Creates a new ReadGroupActiveMQOptions instance using the specified properties. + * Creates a new ReadSampleOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupActiveMQOptions + * @memberof protos.opts.ReadSampleOptions * @static - * @param {protos.opts.IReadGroupActiveMQOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupActiveMQOptions} ReadGroupActiveMQOptions instance + * @param {protos.opts.IReadSampleOptions=} [properties] Properties to set + * @returns {protos.opts.ReadSampleOptions} ReadSampleOptions instance */ - ReadGroupActiveMQOptions.create = function create(properties) { - return new ReadGroupActiveMQOptions(properties); + ReadSampleOptions.create = function create(properties) { + return new ReadSampleOptions(properties); }; /** - * Encodes the specified ReadGroupActiveMQOptions message. Does not implicitly {@link protos.opts.ReadGroupActiveMQOptions.verify|verify} messages. + * Encodes the specified ReadSampleOptions message. Does not implicitly {@link protos.opts.ReadSampleOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupActiveMQOptions + * @memberof protos.opts.ReadSampleOptions * @static - * @param {protos.opts.IReadGroupActiveMQOptions} message ReadGroupActiveMQOptions message or plain object to encode + * @param {protos.opts.IReadSampleOptions} message ReadSampleOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupActiveMQOptions.encode = function encode(message, writer) { + ReadSampleOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.ActiveMQConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.ActiveMQReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.sampleRate); + if (message.sampleIntervalSeconds != null && Object.hasOwnProperty.call(message, "sampleIntervalSeconds")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.sampleIntervalSeconds); return writer; }; /** - * Encodes the specified ReadGroupActiveMQOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupActiveMQOptions.verify|verify} messages. + * Encodes the specified ReadSampleOptions message, length delimited. Does not implicitly {@link protos.opts.ReadSampleOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupActiveMQOptions + * @memberof protos.opts.ReadSampleOptions * @static - * @param {protos.opts.IReadGroupActiveMQOptions} message ReadGroupActiveMQOptions message or plain object to encode + * @param {protos.opts.IReadSampleOptions} message ReadSampleOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupActiveMQOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadSampleOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupActiveMQOptions message from the specified reader or buffer. + * Decodes a ReadSampleOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupActiveMQOptions + * @memberof protos.opts.ReadSampleOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupActiveMQOptions} ReadGroupActiveMQOptions + * @returns {protos.opts.ReadSampleOptions} ReadSampleOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupActiveMQOptions.decode = function decode(reader, length) { + ReadSampleOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupActiveMQOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadSampleOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.ActiveMQConn.decode(reader, reader.uint32()); + message.sampleRate = reader.uint32(); break; case 2: - message.args = $root.protos.args.ActiveMQReadArgs.decode(reader, reader.uint32()); + message.sampleIntervalSeconds = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -24901,127 +22979,116 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupActiveMQOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadSampleOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupActiveMQOptions + * @memberof protos.opts.ReadSampleOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupActiveMQOptions} ReadGroupActiveMQOptions + * @returns {protos.opts.ReadSampleOptions} ReadSampleOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupActiveMQOptions.decodeDelimited = function decodeDelimited(reader) { + ReadSampleOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupActiveMQOptions message. + * Verifies a ReadSampleOptions message. * @function verify - * @memberof protos.opts.ReadGroupActiveMQOptions + * @memberof protos.opts.ReadSampleOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupActiveMQOptions.verify = function verify(message) { + ReadSampleOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.ActiveMQConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.ActiveMQReadArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) + if (!$util.isInteger(message.sampleRate)) + return "sampleRate: integer expected"; + if (message.sampleIntervalSeconds != null && message.hasOwnProperty("sampleIntervalSeconds")) + if (!$util.isInteger(message.sampleIntervalSeconds)) + return "sampleIntervalSeconds: integer expected"; return null; }; /** - * Creates a ReadGroupActiveMQOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadSampleOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupActiveMQOptions + * @memberof protos.opts.ReadSampleOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupActiveMQOptions} ReadGroupActiveMQOptions + * @returns {protos.opts.ReadSampleOptions} ReadSampleOptions */ - ReadGroupActiveMQOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupActiveMQOptions) + ReadSampleOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadSampleOptions) return object; - var message = new $root.protos.opts.ReadGroupActiveMQOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupActiveMQOptions._conn: object expected"); - message._conn = $root.protos.args.ActiveMQConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupActiveMQOptions.args: object expected"); - message.args = $root.protos.args.ActiveMQReadArgs.fromObject(object.args); - } + var message = new $root.protos.opts.ReadSampleOptions(); + if (object.sampleRate != null) + message.sampleRate = object.sampleRate >>> 0; + if (object.sampleIntervalSeconds != null) + message.sampleIntervalSeconds = object.sampleIntervalSeconds >>> 0; return message; }; /** - * Creates a plain object from a ReadGroupActiveMQOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadSampleOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupActiveMQOptions + * @memberof protos.opts.ReadSampleOptions * @static - * @param {protos.opts.ReadGroupActiveMQOptions} message ReadGroupActiveMQOptions + * @param {protos.opts.ReadSampleOptions} message ReadSampleOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupActiveMQOptions.toObject = function toObject(message, options) { + ReadSampleOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.sampleRate = 0; + object.sampleIntervalSeconds = 0; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.ActiveMQConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.ActiveMQReadArgs.toObject(message.args, options); + if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) + object.sampleRate = message.sampleRate; + if (message.sampleIntervalSeconds != null && message.hasOwnProperty("sampleIntervalSeconds")) + object.sampleIntervalSeconds = message.sampleIntervalSeconds; return object; }; /** - * Converts this ReadGroupActiveMQOptions to JSON. + * Converts this ReadSampleOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupActiveMQOptions + * @memberof protos.opts.ReadSampleOptions * @instance * @returns {Object.} JSON object */ - ReadGroupActiveMQOptions.prototype.toJSON = function toJSON() { + ReadSampleOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupActiveMQOptions; + return ReadSampleOptions; })(); - opts.ReadGroupAWSSQSOptions = (function() { + opts.ReadFilterOptions = (function() { /** - * Properties of a ReadGroupAWSSQSOptions. + * Properties of a ReadFilterOptions. * @memberof protos.opts - * @interface IReadGroupAWSSQSOptions - * @property {protos.args.IAWSSQSConn|null} [_conn] ReadGroupAWSSQSOptions _conn - * @property {protos.args.IAWSSQSReadArgs|null} [args] ReadGroupAWSSQSOptions args + * @interface IReadFilterOptions + * @property {string|null} [query] ReadFilterOptions query */ /** - * Constructs a new ReadGroupAWSSQSOptions. + * Constructs a new ReadFilterOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupAWSSQSOptions. - * @implements IReadGroupAWSSQSOptions + * @classdesc Represents a ReadFilterOptions. + * @implements IReadFilterOptions * @constructor - * @param {protos.opts.IReadGroupAWSSQSOptions=} [properties] Properties to set + * @param {protos.opts.IReadFilterOptions=} [properties] Properties to set */ - function ReadGroupAWSSQSOptions(properties) { + function ReadFilterOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25029,88 +23096,75 @@ $root.protos = (function() { } /** - * ReadGroupAWSSQSOptions _conn. - * @member {protos.args.IAWSSQSConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupAWSSQSOptions - * @instance - */ - ReadGroupAWSSQSOptions.prototype._conn = null; - - /** - * ReadGroupAWSSQSOptions args. - * @member {protos.args.IAWSSQSReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupAWSSQSOptions + * ReadFilterOptions query. + * @member {string} query + * @memberof protos.opts.ReadFilterOptions * @instance */ - ReadGroupAWSSQSOptions.prototype.args = null; + ReadFilterOptions.prototype.query = ""; /** - * Creates a new ReadGroupAWSSQSOptions instance using the specified properties. + * Creates a new ReadFilterOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupAWSSQSOptions + * @memberof protos.opts.ReadFilterOptions * @static - * @param {protos.opts.IReadGroupAWSSQSOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupAWSSQSOptions} ReadGroupAWSSQSOptions instance + * @param {protos.opts.IReadFilterOptions=} [properties] Properties to set + * @returns {protos.opts.ReadFilterOptions} ReadFilterOptions instance */ - ReadGroupAWSSQSOptions.create = function create(properties) { - return new ReadGroupAWSSQSOptions(properties); + ReadFilterOptions.create = function create(properties) { + return new ReadFilterOptions(properties); }; /** - * Encodes the specified ReadGroupAWSSQSOptions message. Does not implicitly {@link protos.opts.ReadGroupAWSSQSOptions.verify|verify} messages. + * Encodes the specified ReadFilterOptions message. Does not implicitly {@link protos.opts.ReadFilterOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupAWSSQSOptions + * @memberof protos.opts.ReadFilterOptions * @static - * @param {protos.opts.IReadGroupAWSSQSOptions} message ReadGroupAWSSQSOptions message or plain object to encode + * @param {protos.opts.IReadFilterOptions} message ReadFilterOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupAWSSQSOptions.encode = function encode(message, writer) { + ReadFilterOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AWSSQSConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AWSSQSReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.query); return writer; }; /** - * Encodes the specified ReadGroupAWSSQSOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAWSSQSOptions.verify|verify} messages. + * Encodes the specified ReadFilterOptions message, length delimited. Does not implicitly {@link protos.opts.ReadFilterOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupAWSSQSOptions + * @memberof protos.opts.ReadFilterOptions * @static - * @param {protos.opts.IReadGroupAWSSQSOptions} message ReadGroupAWSSQSOptions message or plain object to encode + * @param {protos.opts.IReadFilterOptions} message ReadFilterOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupAWSSQSOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadFilterOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupAWSSQSOptions message from the specified reader or buffer. + * Decodes a ReadFilterOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupAWSSQSOptions + * @memberof protos.opts.ReadFilterOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupAWSSQSOptions} ReadGroupAWSSQSOptions + * @returns {protos.opts.ReadFilterOptions} ReadFilterOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupAWSSQSOptions.decode = function decode(reader, length) { + ReadFilterOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupAWSSQSOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadFilterOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.AWSSQSConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.AWSSQSReadArgs.decode(reader, reader.uint32()); + message.query = reader.string(); break; default: reader.skipType(tag & 7); @@ -25121,127 +23175,138 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupAWSSQSOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadFilterOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupAWSSQSOptions + * @memberof protos.opts.ReadFilterOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupAWSSQSOptions} ReadGroupAWSSQSOptions + * @returns {protos.opts.ReadFilterOptions} ReadFilterOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupAWSSQSOptions.decodeDelimited = function decodeDelimited(reader) { + ReadFilterOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupAWSSQSOptions message. + * Verifies a ReadFilterOptions message. * @function verify - * @memberof protos.opts.ReadGroupAWSSQSOptions + * @memberof protos.opts.ReadFilterOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupAWSSQSOptions.verify = function verify(message) { + ReadFilterOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AWSSQSConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AWSSQSReadArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.query != null && message.hasOwnProperty("query")) + if (!$util.isString(message.query)) + return "query: string expected"; return null; }; /** - * Creates a ReadGroupAWSSQSOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFilterOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupAWSSQSOptions + * @memberof protos.opts.ReadFilterOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupAWSSQSOptions} ReadGroupAWSSQSOptions + * @returns {protos.opts.ReadFilterOptions} ReadFilterOptions */ - ReadGroupAWSSQSOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupAWSSQSOptions) + ReadFilterOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadFilterOptions) return object; - var message = new $root.protos.opts.ReadGroupAWSSQSOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupAWSSQSOptions._conn: object expected"); - message._conn = $root.protos.args.AWSSQSConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupAWSSQSOptions.args: object expected"); - message.args = $root.protos.args.AWSSQSReadArgs.fromObject(object.args); - } + var message = new $root.protos.opts.ReadFilterOptions(); + if (object.query != null) + message.query = String(object.query); return message; }; /** - * Creates a plain object from a ReadGroupAWSSQSOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadFilterOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupAWSSQSOptions + * @memberof protos.opts.ReadFilterOptions * @static - * @param {protos.opts.ReadGroupAWSSQSOptions} message ReadGroupAWSSQSOptions + * @param {protos.opts.ReadFilterOptions} message ReadFilterOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupAWSSQSOptions.toObject = function toObject(message, options) { + ReadFilterOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AWSSQSConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AWSSQSReadArgs.toObject(message.args, options); + if (options.defaults) + object.query = ""; + if (message.query != null && message.hasOwnProperty("query")) + object.query = message.query; return object; }; /** - * Converts this ReadGroupAWSSQSOptions to JSON. + * Converts this ReadFilterOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupAWSSQSOptions + * @memberof protos.opts.ReadFilterOptions * @instance * @returns {Object.} JSON object */ - ReadGroupAWSSQSOptions.prototype.toJSON = function toJSON() { + ReadFilterOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupAWSSQSOptions; + return ReadFilterOptions; })(); - opts.ReadGroupMongoOptions = (function() { + opts.ReadOptions = (function() { /** - * Properties of a ReadGroupMongoOptions. + * Properties of a ReadOptions. * @memberof protos.opts - * @interface IReadGroupMongoOptions - * @property {protos.args.IMongoConn|null} [_conn] ReadGroupMongoOptions _conn - * @property {protos.args.IMongoReadArgs|null} [args] ReadGroupMongoOptions args + * @interface IReadOptions + * @property {string|null} [name] ReadOptions name + * @property {string|null} [connectionId] ReadOptions connectionId + * @property {boolean|null} [continuous] ReadOptions continuous + * @property {protos.opts.IReadSampleOptions|null} [sampleOptions] ReadOptions sampleOptions + * @property {protos.encoding.IDecodeOptions|null} [decodeOptions] ReadOptions decodeOptions + * @property {protos.opts.ConvertOption|null} [convertOutput] ReadOptions convertOutput + * @property {protos.opts.IReadFilterOptions|null} [filter] ReadOptions filter + * @property {protos.opts.IInferSchemaOptions|null} [inferSchemaOptions] ReadOptions inferSchemaOptions + * @property {string|null} [_id] ReadOptions _id + * @property {boolean|null} [_active] ReadOptions _active + * @property {protos.opts.IReadCLIOptions|null} [_cliOptions] ReadOptions _cliOptions + * @property {protos.opts.IReadGroupKafkaOptions|null} [kafka] ReadOptions kafka + * @property {protos.opts.IReadGroupActiveMQOptions|null} [activemq] ReadOptions activemq + * @property {protos.opts.IReadGroupAWSSQSOptions|null} [awsSqs] ReadOptions awsSqs + * @property {protos.opts.IReadGroupMongoOptions|null} [mongo] ReadOptions mongo + * @property {protos.opts.IReadGroupNatsOptions|null} [nats] ReadOptions nats + * @property {protos.opts.IReadGroupNatsStreamingOptions|null} [natsStreaming] ReadOptions natsStreaming + * @property {protos.opts.IReadGroupNSQOptions|null} [nsq] ReadOptions nsq + * @property {protos.opts.IReadGroupPulsarOptions|null} [pulsar] ReadOptions pulsar + * @property {protos.opts.IReadGroupRabbitOptions|null} [rabbit] ReadOptions rabbit + * @property {protos.opts.IReadGroupRabbitStreamsOptions|null} [rabbitStreams] ReadOptions rabbitStreams + * @property {protos.opts.IReadGroupMQTTOptions|null} [mqtt] ReadOptions mqtt + * @property {protos.opts.IReadGroupAzureServiceBusOptions|null} [azureServiceBus] ReadOptions azureServiceBus + * @property {protos.opts.IReadGroupAzureEventHubOptions|null} [azureEventHub] ReadOptions azureEventHub + * @property {protos.opts.IReadGroupGCPPubSubOptions|null} [gcpPubsub] ReadOptions gcpPubsub + * @property {protos.opts.IReadGroupKubeMQQueueOptions|null} [kubemqQueue] ReadOptions kubemqQueue + * @property {protos.opts.IReadGroupRedisPubSubOptions|null} [redisPubsub] ReadOptions redisPubsub + * @property {protos.opts.IReadGroupRedisStreamsOptions|null} [redisStreams] ReadOptions redisStreams + * @property {protos.opts.IReadGroupPostgresOptions|null} [postgres] ReadOptions postgres + * @property {protos.opts.IReadGroupNatsJetstreamOptions|null} [natsJetstream] ReadOptions natsJetstream + * @property {protos.opts.IReadGroupAWSKinesisOptions|null} [awsKinesis] ReadOptions awsKinesis + * @property {protos.opts.IReadGroupMemphisOptions|null} [memphis] ReadOptions memphis */ /** - * Constructs a new ReadGroupMongoOptions. + * Constructs a new ReadOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupMongoOptions. - * @implements IReadGroupMongoOptions + * @classdesc Represents a ReadOptions. + * @implements IReadOptions * @constructor - * @param {protos.opts.IReadGroupMongoOptions=} [properties] Properties to set + * @param {protos.opts.IReadOptions=} [properties] Properties to set */ - function ReadGroupMongoOptions(properties) { + function ReadOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25249,748 +23314,478 @@ $root.protos = (function() { } /** - * ReadGroupMongoOptions _conn. - * @member {protos.args.IMongoConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupMongoOptions + * ReadOptions name. + * @member {string} name + * @memberof protos.opts.ReadOptions * @instance */ - ReadGroupMongoOptions.prototype._conn = null; + ReadOptions.prototype.name = ""; /** - * ReadGroupMongoOptions args. - * @member {protos.args.IMongoReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupMongoOptions + * ReadOptions connectionId. + * @member {string} connectionId + * @memberof protos.opts.ReadOptions * @instance */ - ReadGroupMongoOptions.prototype.args = null; + ReadOptions.prototype.connectionId = ""; /** - * Creates a new ReadGroupMongoOptions instance using the specified properties. - * @function create - * @memberof protos.opts.ReadGroupMongoOptions - * @static - * @param {protos.opts.IReadGroupMongoOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupMongoOptions} ReadGroupMongoOptions instance + * ReadOptions continuous. + * @member {boolean} continuous + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupMongoOptions.create = function create(properties) { - return new ReadGroupMongoOptions(properties); - }; + ReadOptions.prototype.continuous = false; /** - * Encodes the specified ReadGroupMongoOptions message. Does not implicitly {@link protos.opts.ReadGroupMongoOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.ReadGroupMongoOptions - * @static - * @param {protos.opts.IReadGroupMongoOptions} message ReadGroupMongoOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ReadOptions sampleOptions. + * @member {protos.opts.IReadSampleOptions|null|undefined} sampleOptions + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupMongoOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.MongoConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.MongoReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + ReadOptions.prototype.sampleOptions = null; /** - * Encodes the specified ReadGroupMongoOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupMongoOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.ReadGroupMongoOptions - * @static - * @param {protos.opts.IReadGroupMongoOptions} message ReadGroupMongoOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ReadOptions decodeOptions. + * @member {protos.encoding.IDecodeOptions|null|undefined} decodeOptions + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupMongoOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + ReadOptions.prototype.decodeOptions = null; /** - * Decodes a ReadGroupMongoOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.ReadGroupMongoOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupMongoOptions} ReadGroupMongoOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * ReadOptions convertOutput. + * @member {protos.opts.ConvertOption} convertOutput + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupMongoOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupMongoOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.MongoConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.MongoReadArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + ReadOptions.prototype.convertOutput = 0; /** - * Decodes a ReadGroupMongoOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.ReadGroupMongoOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupMongoOptions} ReadGroupMongoOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * ReadOptions filter. + * @member {protos.opts.IReadFilterOptions|null|undefined} filter + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupMongoOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + ReadOptions.prototype.filter = null; /** - * Verifies a ReadGroupMongoOptions message. - * @function verify - * @memberof protos.opts.ReadGroupMongoOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * ReadOptions inferSchemaOptions. + * @member {protos.opts.IInferSchemaOptions|null|undefined} inferSchemaOptions + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupMongoOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.MongoConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.MongoReadArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; + ReadOptions.prototype.inferSchemaOptions = null; /** - * Creates a ReadGroupMongoOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.ReadGroupMongoOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupMongoOptions} ReadGroupMongoOptions + * ReadOptions _id. + * @member {string} _id + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupMongoOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupMongoOptions) - return object; - var message = new $root.protos.opts.ReadGroupMongoOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupMongoOptions._conn: object expected"); - message._conn = $root.protos.args.MongoConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupMongoOptions.args: object expected"); - message.args = $root.protos.args.MongoReadArgs.fromObject(object.args); - } - return message; - }; + ReadOptions.prototype._id = ""; /** - * Creates a plain object from a ReadGroupMongoOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.ReadGroupMongoOptions - * @static - * @param {protos.opts.ReadGroupMongoOptions} message ReadGroupMongoOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * ReadOptions _active. + * @member {boolean} _active + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupMongoOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.MongoConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.MongoReadArgs.toObject(message.args, options); - return object; - }; + ReadOptions.prototype._active = false; /** - * Converts this ReadGroupMongoOptions to JSON. - * @function toJSON - * @memberof protos.opts.ReadGroupMongoOptions + * ReadOptions _cliOptions. + * @member {protos.opts.IReadCLIOptions|null|undefined} _cliOptions + * @memberof protos.opts.ReadOptions * @instance - * @returns {Object.} JSON object */ - ReadGroupMongoOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ReadGroupMongoOptions; - })(); - - opts.ReadGroupNatsOptions = (function() { + ReadOptions.prototype._cliOptions = null; /** - * Properties of a ReadGroupNatsOptions. - * @memberof protos.opts - * @interface IReadGroupNatsOptions - * @property {protos.args.INatsConn|null} [_conn] ReadGroupNatsOptions _conn - * @property {protos.args.INatsReadArgs|null} [args] ReadGroupNatsOptions args + * ReadOptions kafka. + * @member {protos.opts.IReadGroupKafkaOptions|null|undefined} kafka + * @memberof protos.opts.ReadOptions + * @instance */ + ReadOptions.prototype.kafka = null; /** - * Constructs a new ReadGroupNatsOptions. - * @memberof protos.opts - * @classdesc Represents a ReadGroupNatsOptions. - * @implements IReadGroupNatsOptions - * @constructor - * @param {protos.opts.IReadGroupNatsOptions=} [properties] Properties to set + * ReadOptions activemq. + * @member {protos.opts.IReadGroupActiveMQOptions|null|undefined} activemq + * @memberof protos.opts.ReadOptions + * @instance */ - function ReadGroupNatsOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ReadOptions.prototype.activemq = null; /** - * ReadGroupNatsOptions _conn. - * @member {protos.args.INatsConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupNatsOptions + * ReadOptions awsSqs. + * @member {protos.opts.IReadGroupAWSSQSOptions|null|undefined} awsSqs + * @memberof protos.opts.ReadOptions * @instance */ - ReadGroupNatsOptions.prototype._conn = null; + ReadOptions.prototype.awsSqs = null; /** - * ReadGroupNatsOptions args. - * @member {protos.args.INatsReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupNatsOptions + * ReadOptions mongo. + * @member {protos.opts.IReadGroupMongoOptions|null|undefined} mongo + * @memberof protos.opts.ReadOptions * @instance */ - ReadGroupNatsOptions.prototype.args = null; + ReadOptions.prototype.mongo = null; /** - * Creates a new ReadGroupNatsOptions instance using the specified properties. - * @function create - * @memberof protos.opts.ReadGroupNatsOptions - * @static - * @param {protos.opts.IReadGroupNatsOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupNatsOptions} ReadGroupNatsOptions instance + * ReadOptions nats. + * @member {protos.opts.IReadGroupNatsOptions|null|undefined} nats + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupNatsOptions.create = function create(properties) { - return new ReadGroupNatsOptions(properties); - }; + ReadOptions.prototype.nats = null; /** - * Encodes the specified ReadGroupNatsOptions message. Does not implicitly {@link protos.opts.ReadGroupNatsOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.ReadGroupNatsOptions - * @static - * @param {protos.opts.IReadGroupNatsOptions} message ReadGroupNatsOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ReadOptions natsStreaming. + * @member {protos.opts.IReadGroupNatsStreamingOptions|null|undefined} natsStreaming + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupNatsOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NatsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NatsReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + ReadOptions.prototype.natsStreaming = null; /** - * Encodes the specified ReadGroupNatsOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNatsOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.ReadGroupNatsOptions - * @static - * @param {protos.opts.IReadGroupNatsOptions} message ReadGroupNatsOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ReadOptions nsq. + * @member {protos.opts.IReadGroupNSQOptions|null|undefined} nsq + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupNatsOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + ReadOptions.prototype.nsq = null; /** - * Decodes a ReadGroupNatsOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.ReadGroupNatsOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupNatsOptions} ReadGroupNatsOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * ReadOptions pulsar. + * @member {protos.opts.IReadGroupPulsarOptions|null|undefined} pulsar + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupNatsOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupNatsOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.NatsConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.NatsReadArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + ReadOptions.prototype.pulsar = null; /** - * Decodes a ReadGroupNatsOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.ReadGroupNatsOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupNatsOptions} ReadGroupNatsOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * ReadOptions rabbit. + * @member {protos.opts.IReadGroupRabbitOptions|null|undefined} rabbit + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupNatsOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + ReadOptions.prototype.rabbit = null; /** - * Verifies a ReadGroupNatsOptions message. - * @function verify - * @memberof protos.opts.ReadGroupNatsOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * ReadOptions rabbitStreams. + * @member {protos.opts.IReadGroupRabbitStreamsOptions|null|undefined} rabbitStreams + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupNatsOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NatsConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NatsReadArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; + ReadOptions.prototype.rabbitStreams = null; /** - * Creates a ReadGroupNatsOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.ReadGroupNatsOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupNatsOptions} ReadGroupNatsOptions + * ReadOptions mqtt. + * @member {protos.opts.IReadGroupMQTTOptions|null|undefined} mqtt + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupNatsOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupNatsOptions) - return object; - var message = new $root.protos.opts.ReadGroupNatsOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupNatsOptions._conn: object expected"); - message._conn = $root.protos.args.NatsConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupNatsOptions.args: object expected"); - message.args = $root.protos.args.NatsReadArgs.fromObject(object.args); - } - return message; - }; + ReadOptions.prototype.mqtt = null; /** - * Creates a plain object from a ReadGroupNatsOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.ReadGroupNatsOptions - * @static - * @param {protos.opts.ReadGroupNatsOptions} message ReadGroupNatsOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * ReadOptions azureServiceBus. + * @member {protos.opts.IReadGroupAzureServiceBusOptions|null|undefined} azureServiceBus + * @memberof protos.opts.ReadOptions + * @instance */ - ReadGroupNatsOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NatsConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NatsReadArgs.toObject(message.args, options); - return object; - }; + ReadOptions.prototype.azureServiceBus = null; /** - * Converts this ReadGroupNatsOptions to JSON. - * @function toJSON - * @memberof protos.opts.ReadGroupNatsOptions + * ReadOptions azureEventHub. + * @member {protos.opts.IReadGroupAzureEventHubOptions|null|undefined} azureEventHub + * @memberof protos.opts.ReadOptions * @instance - * @returns {Object.} JSON object */ - ReadGroupNatsOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ReadGroupNatsOptions; - })(); - - opts.ReadGroupNatsStreamingOptions = (function() { + ReadOptions.prototype.azureEventHub = null; /** - * Properties of a ReadGroupNatsStreamingOptions. - * @memberof protos.opts - * @interface IReadGroupNatsStreamingOptions - * @property {protos.args.INatsStreamingConn|null} [_conn] ReadGroupNatsStreamingOptions _conn - * @property {protos.args.INatsStreamingReadArgs|null} [args] ReadGroupNatsStreamingOptions args + * ReadOptions gcpPubsub. + * @member {protos.opts.IReadGroupGCPPubSubOptions|null|undefined} gcpPubsub + * @memberof protos.opts.ReadOptions + * @instance */ + ReadOptions.prototype.gcpPubsub = null; /** - * Constructs a new ReadGroupNatsStreamingOptions. - * @memberof protos.opts - * @classdesc Represents a ReadGroupNatsStreamingOptions. - * @implements IReadGroupNatsStreamingOptions - * @constructor - * @param {protos.opts.IReadGroupNatsStreamingOptions=} [properties] Properties to set - */ - function ReadGroupNatsStreamingOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ReadGroupNatsStreamingOptions _conn. - * @member {protos.args.INatsStreamingConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupNatsStreamingOptions + * ReadOptions kubemqQueue. + * @member {protos.opts.IReadGroupKubeMQQueueOptions|null|undefined} kubemqQueue + * @memberof protos.opts.ReadOptions * @instance */ - ReadGroupNatsStreamingOptions.prototype._conn = null; + ReadOptions.prototype.kubemqQueue = null; /** - * ReadGroupNatsStreamingOptions args. - * @member {protos.args.INatsStreamingReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupNatsStreamingOptions + * ReadOptions redisPubsub. + * @member {protos.opts.IReadGroupRedisPubSubOptions|null|undefined} redisPubsub + * @memberof protos.opts.ReadOptions * @instance */ - ReadGroupNatsStreamingOptions.prototype.args = null; - - /** - * Creates a new ReadGroupNatsStreamingOptions instance using the specified properties. - * @function create - * @memberof protos.opts.ReadGroupNatsStreamingOptions - * @static - * @param {protos.opts.IReadGroupNatsStreamingOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupNatsStreamingOptions} ReadGroupNatsStreamingOptions instance - */ - ReadGroupNatsStreamingOptions.create = function create(properties) { - return new ReadGroupNatsStreamingOptions(properties); - }; - - /** - * Encodes the specified ReadGroupNatsStreamingOptions message. Does not implicitly {@link protos.opts.ReadGroupNatsStreamingOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.ReadGroupNatsStreamingOptions - * @static - * @param {protos.opts.IReadGroupNatsStreamingOptions} message ReadGroupNatsStreamingOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReadGroupNatsStreamingOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NatsStreamingConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NatsStreamingReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ReadGroupNatsStreamingOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNatsStreamingOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.ReadGroupNatsStreamingOptions - * @static - * @param {protos.opts.IReadGroupNatsStreamingOptions} message ReadGroupNatsStreamingOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReadGroupNatsStreamingOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ReadGroupNatsStreamingOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.ReadGroupNatsStreamingOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupNatsStreamingOptions} ReadGroupNatsStreamingOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReadGroupNatsStreamingOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupNatsStreamingOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.NatsStreamingConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.NatsStreamingReadArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ReadGroupNatsStreamingOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.ReadGroupNatsStreamingOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupNatsStreamingOptions} ReadGroupNatsStreamingOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReadGroupNatsStreamingOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReadGroupNatsStreamingOptions message. - * @function verify - * @memberof protos.opts.ReadGroupNatsStreamingOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReadGroupNatsStreamingOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NatsStreamingConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NatsStreamingReadArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a ReadGroupNatsStreamingOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.ReadGroupNatsStreamingOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupNatsStreamingOptions} ReadGroupNatsStreamingOptions - */ - ReadGroupNatsStreamingOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupNatsStreamingOptions) - return object; - var message = new $root.protos.opts.ReadGroupNatsStreamingOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupNatsStreamingOptions._conn: object expected"); - message._conn = $root.protos.args.NatsStreamingConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupNatsStreamingOptions.args: object expected"); - message.args = $root.protos.args.NatsStreamingReadArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a ReadGroupNatsStreamingOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.ReadGroupNatsStreamingOptions - * @static - * @param {protos.opts.ReadGroupNatsStreamingOptions} message ReadGroupNatsStreamingOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ReadGroupNatsStreamingOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NatsStreamingConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NatsStreamingReadArgs.toObject(message.args, options); - return object; - }; + ReadOptions.prototype.redisPubsub = null; /** - * Converts this ReadGroupNatsStreamingOptions to JSON. - * @function toJSON - * @memberof protos.opts.ReadGroupNatsStreamingOptions + * ReadOptions redisStreams. + * @member {protos.opts.IReadGroupRedisStreamsOptions|null|undefined} redisStreams + * @memberof protos.opts.ReadOptions * @instance - * @returns {Object.} JSON object */ - ReadGroupNatsStreamingOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ReadGroupNatsStreamingOptions; - })(); - - opts.ReadGroupNatsJetstreamOptions = (function() { + ReadOptions.prototype.redisStreams = null; /** - * Properties of a ReadGroupNatsJetstreamOptions. - * @memberof protos.opts - * @interface IReadGroupNatsJetstreamOptions - * @property {protos.args.INatsJetstreamConn|null} [_conn] ReadGroupNatsJetstreamOptions _conn - * @property {protos.args.INatsJetstreamReadArgs|null} [args] ReadGroupNatsJetstreamOptions args + * ReadOptions postgres. + * @member {protos.opts.IReadGroupPostgresOptions|null|undefined} postgres + * @memberof protos.opts.ReadOptions + * @instance */ + ReadOptions.prototype.postgres = null; /** - * Constructs a new ReadGroupNatsJetstreamOptions. - * @memberof protos.opts - * @classdesc Represents a ReadGroupNatsJetstreamOptions. - * @implements IReadGroupNatsJetstreamOptions - * @constructor - * @param {protos.opts.IReadGroupNatsJetstreamOptions=} [properties] Properties to set + * ReadOptions natsJetstream. + * @member {protos.opts.IReadGroupNatsJetstreamOptions|null|undefined} natsJetstream + * @memberof protos.opts.ReadOptions + * @instance */ - function ReadGroupNatsJetstreamOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ReadOptions.prototype.natsJetstream = null; /** - * ReadGroupNatsJetstreamOptions _conn. - * @member {protos.args.INatsJetstreamConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupNatsJetstreamOptions + * ReadOptions awsKinesis. + * @member {protos.opts.IReadGroupAWSKinesisOptions|null|undefined} awsKinesis + * @memberof protos.opts.ReadOptions * @instance */ - ReadGroupNatsJetstreamOptions.prototype._conn = null; + ReadOptions.prototype.awsKinesis = null; /** - * ReadGroupNatsJetstreamOptions args. - * @member {protos.args.INatsJetstreamReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupNatsJetstreamOptions + * ReadOptions memphis. + * @member {protos.opts.IReadGroupMemphisOptions|null|undefined} memphis + * @memberof protos.opts.ReadOptions * @instance */ - ReadGroupNatsJetstreamOptions.prototype.args = null; + ReadOptions.prototype.memphis = null; /** - * Creates a new ReadGroupNatsJetstreamOptions instance using the specified properties. + * Creates a new ReadOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupNatsJetstreamOptions + * @memberof protos.opts.ReadOptions * @static - * @param {protos.opts.IReadGroupNatsJetstreamOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupNatsJetstreamOptions} ReadGroupNatsJetstreamOptions instance + * @param {protos.opts.IReadOptions=} [properties] Properties to set + * @returns {protos.opts.ReadOptions} ReadOptions instance */ - ReadGroupNatsJetstreamOptions.create = function create(properties) { - return new ReadGroupNatsJetstreamOptions(properties); + ReadOptions.create = function create(properties) { + return new ReadOptions(properties); }; /** - * Encodes the specified ReadGroupNatsJetstreamOptions message. Does not implicitly {@link protos.opts.ReadGroupNatsJetstreamOptions.verify|verify} messages. + * Encodes the specified ReadOptions message. Does not implicitly {@link protos.opts.ReadOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupNatsJetstreamOptions + * @memberof protos.opts.ReadOptions * @static - * @param {protos.opts.IReadGroupNatsJetstreamOptions} message ReadGroupNatsJetstreamOptions message or plain object to encode + * @param {protos.opts.IReadOptions} message ReadOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupNatsJetstreamOptions.encode = function encode(message, writer) { + ReadOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NatsJetstreamConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NatsJetstreamReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.connectionId); + if (message.continuous != null && Object.hasOwnProperty.call(message, "continuous")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.continuous); + if (message.sampleOptions != null && Object.hasOwnProperty.call(message, "sampleOptions")) + $root.protos.opts.ReadSampleOptions.encode(message.sampleOptions, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.decodeOptions != null && Object.hasOwnProperty.call(message, "decodeOptions")) + $root.protos.encoding.DecodeOptions.encode(message.decodeOptions, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.convertOutput != null && Object.hasOwnProperty.call(message, "convertOutput")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.convertOutput); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + $root.protos.opts.ReadFilterOptions.encode(message.filter, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.inferSchemaOptions != null && Object.hasOwnProperty.call(message, "inferSchemaOptions")) + $root.protos.opts.InferSchemaOptions.encode(message.inferSchemaOptions, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.kafka != null && Object.hasOwnProperty.call(message, "kafka")) + $root.protos.opts.ReadGroupKafkaOptions.encode(message.kafka, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); + if (message.activemq != null && Object.hasOwnProperty.call(message, "activemq")) + $root.protos.opts.ReadGroupActiveMQOptions.encode(message.activemq, writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); + if (message.awsSqs != null && Object.hasOwnProperty.call(message, "awsSqs")) + $root.protos.opts.ReadGroupAWSSQSOptions.encode(message.awsSqs, writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim(); + if (message.mongo != null && Object.hasOwnProperty.call(message, "mongo")) + $root.protos.opts.ReadGroupMongoOptions.encode(message.mongo, writer.uint32(/* id 103, wireType 2 =*/826).fork()).ldelim(); + if (message.nats != null && Object.hasOwnProperty.call(message, "nats")) + $root.protos.opts.ReadGroupNatsOptions.encode(message.nats, writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim(); + if (message.natsStreaming != null && Object.hasOwnProperty.call(message, "natsStreaming")) + $root.protos.opts.ReadGroupNatsStreamingOptions.encode(message.natsStreaming, writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); + if (message.nsq != null && Object.hasOwnProperty.call(message, "nsq")) + $root.protos.opts.ReadGroupNSQOptions.encode(message.nsq, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim(); + if (message.pulsar != null && Object.hasOwnProperty.call(message, "pulsar")) + $root.protos.opts.ReadGroupPulsarOptions.encode(message.pulsar, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); + if (message.rabbit != null && Object.hasOwnProperty.call(message, "rabbit")) + $root.protos.opts.ReadGroupRabbitOptions.encode(message.rabbit, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim(); + if (message.rabbitStreams != null && Object.hasOwnProperty.call(message, "rabbitStreams")) + $root.protos.opts.ReadGroupRabbitStreamsOptions.encode(message.rabbitStreams, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); + if (message.mqtt != null && Object.hasOwnProperty.call(message, "mqtt")) + $root.protos.opts.ReadGroupMQTTOptions.encode(message.mqtt, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); + if (message.azureServiceBus != null && Object.hasOwnProperty.call(message, "azureServiceBus")) + $root.protos.opts.ReadGroupAzureServiceBusOptions.encode(message.azureServiceBus, writer.uint32(/* id 111, wireType 2 =*/890).fork()).ldelim(); + if (message.azureEventHub != null && Object.hasOwnProperty.call(message, "azureEventHub")) + $root.protos.opts.ReadGroupAzureEventHubOptions.encode(message.azureEventHub, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim(); + if (message.gcpPubsub != null && Object.hasOwnProperty.call(message, "gcpPubsub")) + $root.protos.opts.ReadGroupGCPPubSubOptions.encode(message.gcpPubsub, writer.uint32(/* id 113, wireType 2 =*/906).fork()).ldelim(); + if (message.kubemqQueue != null && Object.hasOwnProperty.call(message, "kubemqQueue")) + $root.protos.opts.ReadGroupKubeMQQueueOptions.encode(message.kubemqQueue, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); + if (message.redisPubsub != null && Object.hasOwnProperty.call(message, "redisPubsub")) + $root.protos.opts.ReadGroupRedisPubSubOptions.encode(message.redisPubsub, writer.uint32(/* id 115, wireType 2 =*/922).fork()).ldelim(); + if (message.redisStreams != null && Object.hasOwnProperty.call(message, "redisStreams")) + $root.protos.opts.ReadGroupRedisStreamsOptions.encode(message.redisStreams, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); + if (message.postgres != null && Object.hasOwnProperty.call(message, "postgres")) + $root.protos.opts.ReadGroupPostgresOptions.encode(message.postgres, writer.uint32(/* id 117, wireType 2 =*/938).fork()).ldelim(); + if (message.natsJetstream != null && Object.hasOwnProperty.call(message, "natsJetstream")) + $root.protos.opts.ReadGroupNatsJetstreamOptions.encode(message.natsJetstream, writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim(); + if (message.awsKinesis != null && Object.hasOwnProperty.call(message, "awsKinesis")) + $root.protos.opts.ReadGroupAWSKinesisOptions.encode(message.awsKinesis, writer.uint32(/* id 119, wireType 2 =*/954).fork()).ldelim(); + if (message.memphis != null && Object.hasOwnProperty.call(message, "memphis")) + $root.protos.opts.ReadGroupMemphisOptions.encode(message.memphis, writer.uint32(/* id 120, wireType 2 =*/962).fork()).ldelim(); + if (message._id != null && Object.hasOwnProperty.call(message, "_id")) + writer.uint32(/* id 1000, wireType 2 =*/8002).string(message._id); + if (message._active != null && Object.hasOwnProperty.call(message, "_active")) + writer.uint32(/* id 1001, wireType 0 =*/8008).bool(message._active); + if (message._cliOptions != null && Object.hasOwnProperty.call(message, "_cliOptions")) + $root.protos.opts.ReadCLIOptions.encode(message._cliOptions, writer.uint32(/* id 1002, wireType 2 =*/8018).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupNatsJetstreamOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNatsJetstreamOptions.verify|verify} messages. + * Encodes the specified ReadOptions message, length delimited. Does not implicitly {@link protos.opts.ReadOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupNatsJetstreamOptions + * @memberof protos.opts.ReadOptions * @static - * @param {protos.opts.IReadGroupNatsJetstreamOptions} message ReadGroupNatsJetstreamOptions message or plain object to encode + * @param {protos.opts.IReadOptions} message ReadOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupNatsJetstreamOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupNatsJetstreamOptions message from the specified reader or buffer. + * Decodes a ReadOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupNatsJetstreamOptions + * @memberof protos.opts.ReadOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupNatsJetstreamOptions} ReadGroupNatsJetstreamOptions + * @returns {protos.opts.ReadOptions} ReadOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupNatsJetstreamOptions.decode = function decode(reader, length) { + ReadOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupNatsJetstreamOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.NatsJetstreamConn.decode(reader, reader.uint32()); + message.name = reader.string(); break; case 2: - message.args = $root.protos.args.NatsJetstreamReadArgs.decode(reader, reader.uint32()); + message.connectionId = reader.string(); + break; + case 3: + message.continuous = reader.bool(); + break; + case 4: + message.sampleOptions = $root.protos.opts.ReadSampleOptions.decode(reader, reader.uint32()); + break; + case 5: + message.decodeOptions = $root.protos.encoding.DecodeOptions.decode(reader, reader.uint32()); + break; + case 6: + message.convertOutput = reader.int32(); + break; + case 7: + message.filter = $root.protos.opts.ReadFilterOptions.decode(reader, reader.uint32()); + break; + case 8: + message.inferSchemaOptions = $root.protos.opts.InferSchemaOptions.decode(reader, reader.uint32()); + break; + case 1000: + message._id = reader.string(); + break; + case 1001: + message._active = reader.bool(); + break; + case 1002: + message._cliOptions = $root.protos.opts.ReadCLIOptions.decode(reader, reader.uint32()); + break; + case 100: + message.kafka = $root.protos.opts.ReadGroupKafkaOptions.decode(reader, reader.uint32()); + break; + case 101: + message.activemq = $root.protos.opts.ReadGroupActiveMQOptions.decode(reader, reader.uint32()); + break; + case 102: + message.awsSqs = $root.protos.opts.ReadGroupAWSSQSOptions.decode(reader, reader.uint32()); + break; + case 103: + message.mongo = $root.protos.opts.ReadGroupMongoOptions.decode(reader, reader.uint32()); + break; + case 104: + message.nats = $root.protos.opts.ReadGroupNatsOptions.decode(reader, reader.uint32()); + break; + case 105: + message.natsStreaming = $root.protos.opts.ReadGroupNatsStreamingOptions.decode(reader, reader.uint32()); + break; + case 106: + message.nsq = $root.protos.opts.ReadGroupNSQOptions.decode(reader, reader.uint32()); + break; + case 107: + message.pulsar = $root.protos.opts.ReadGroupPulsarOptions.decode(reader, reader.uint32()); + break; + case 108: + message.rabbit = $root.protos.opts.ReadGroupRabbitOptions.decode(reader, reader.uint32()); + break; + case 109: + message.rabbitStreams = $root.protos.opts.ReadGroupRabbitStreamsOptions.decode(reader, reader.uint32()); + break; + case 110: + message.mqtt = $root.protos.opts.ReadGroupMQTTOptions.decode(reader, reader.uint32()); + break; + case 111: + message.azureServiceBus = $root.protos.opts.ReadGroupAzureServiceBusOptions.decode(reader, reader.uint32()); + break; + case 112: + message.azureEventHub = $root.protos.opts.ReadGroupAzureEventHubOptions.decode(reader, reader.uint32()); + break; + case 113: + message.gcpPubsub = $root.protos.opts.ReadGroupGCPPubSubOptions.decode(reader, reader.uint32()); + break; + case 114: + message.kubemqQueue = $root.protos.opts.ReadGroupKubeMQQueueOptions.decode(reader, reader.uint32()); + break; + case 115: + message.redisPubsub = $root.protos.opts.ReadGroupRedisPubSubOptions.decode(reader, reader.uint32()); + break; + case 116: + message.redisStreams = $root.protos.opts.ReadGroupRedisStreamsOptions.decode(reader, reader.uint32()); + break; + case 117: + message.postgres = $root.protos.opts.ReadGroupPostgresOptions.decode(reader, reader.uint32()); + break; + case 118: + message.natsJetstream = $root.protos.opts.ReadGroupNatsJetstreamOptions.decode(reader, reader.uint32()); + break; + case 119: + message.awsKinesis = $root.protos.opts.ReadGroupAWSKinesisOptions.decode(reader, reader.uint32()); + break; + case 120: + message.memphis = $root.protos.opts.ReadGroupMemphisOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -26001,127 +23796,505 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupNatsJetstreamOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupNatsJetstreamOptions + * @memberof protos.opts.ReadOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupNatsJetstreamOptions} ReadGroupNatsJetstreamOptions + * @returns {protos.opts.ReadOptions} ReadOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupNatsJetstreamOptions.decodeDelimited = function decodeDelimited(reader) { + ReadOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupNatsJetstreamOptions message. + * Verifies a ReadOptions message. * @function verify - * @memberof protos.opts.ReadGroupNatsJetstreamOptions + * @memberof protos.opts.ReadOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupNatsJetstreamOptions.verify = function verify(message) { + ReadOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NatsJetstreamConn.verify(message._conn); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.connectionId != null && message.hasOwnProperty("connectionId")) + if (!$util.isString(message.connectionId)) + return "connectionId: string expected"; + if (message.continuous != null && message.hasOwnProperty("continuous")) + if (typeof message.continuous !== "boolean") + return "continuous: boolean expected"; + if (message.sampleOptions != null && message.hasOwnProperty("sampleOptions")) { + var error = $root.protos.opts.ReadSampleOptions.verify(message.sampleOptions); if (error) - return "_conn." + error; + return "sampleOptions." + error; } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NatsJetstreamReadArgs.verify(message.args); + if (message.decodeOptions != null && message.hasOwnProperty("decodeOptions")) { + var error = $root.protos.encoding.DecodeOptions.verify(message.decodeOptions); if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a ReadGroupNatsJetstreamOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.ReadGroupNatsJetstreamOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupNatsJetstreamOptions} ReadGroupNatsJetstreamOptions - */ - ReadGroupNatsJetstreamOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupNatsJetstreamOptions) - return object; - var message = new $root.protos.opts.ReadGroupNatsJetstreamOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupNatsJetstreamOptions._conn: object expected"); - message._conn = $root.protos.args.NatsJetstreamConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupNatsJetstreamOptions.args: object expected"); - message.args = $root.protos.args.NatsJetstreamReadArgs.fromObject(object.args); + return "decodeOptions." + error; } - return message; + if (message.convertOutput != null && message.hasOwnProperty("convertOutput")) + switch (message.convertOutput) { + default: + return "convertOutput: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.filter != null && message.hasOwnProperty("filter")) { + var error = $root.protos.opts.ReadFilterOptions.verify(message.filter); + if (error) + return "filter." + error; + } + if (message.inferSchemaOptions != null && message.hasOwnProperty("inferSchemaOptions")) { + var error = $root.protos.opts.InferSchemaOptions.verify(message.inferSchemaOptions); + if (error) + return "inferSchemaOptions." + error; + } + if (message._id != null && message.hasOwnProperty("_id")) + if (!$util.isString(message._id)) + return "_id: string expected"; + if (message._active != null && message.hasOwnProperty("_active")) + if (typeof message._active !== "boolean") + return "_active: boolean expected"; + if (message._cliOptions != null && message.hasOwnProperty("_cliOptions")) { + var error = $root.protos.opts.ReadCLIOptions.verify(message._cliOptions); + if (error) + return "_cliOptions." + error; + } + if (message.kafka != null && message.hasOwnProperty("kafka")) { + var error = $root.protos.opts.ReadGroupKafkaOptions.verify(message.kafka); + if (error) + return "kafka." + error; + } + if (message.activemq != null && message.hasOwnProperty("activemq")) { + var error = $root.protos.opts.ReadGroupActiveMQOptions.verify(message.activemq); + if (error) + return "activemq." + error; + } + if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) { + var error = $root.protos.opts.ReadGroupAWSSQSOptions.verify(message.awsSqs); + if (error) + return "awsSqs." + error; + } + if (message.mongo != null && message.hasOwnProperty("mongo")) { + var error = $root.protos.opts.ReadGroupMongoOptions.verify(message.mongo); + if (error) + return "mongo." + error; + } + if (message.nats != null && message.hasOwnProperty("nats")) { + var error = $root.protos.opts.ReadGroupNatsOptions.verify(message.nats); + if (error) + return "nats." + error; + } + if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) { + var error = $root.protos.opts.ReadGroupNatsStreamingOptions.verify(message.natsStreaming); + if (error) + return "natsStreaming." + error; + } + if (message.nsq != null && message.hasOwnProperty("nsq")) { + var error = $root.protos.opts.ReadGroupNSQOptions.verify(message.nsq); + if (error) + return "nsq." + error; + } + if (message.pulsar != null && message.hasOwnProperty("pulsar")) { + var error = $root.protos.opts.ReadGroupPulsarOptions.verify(message.pulsar); + if (error) + return "pulsar." + error; + } + if (message.rabbit != null && message.hasOwnProperty("rabbit")) { + var error = $root.protos.opts.ReadGroupRabbitOptions.verify(message.rabbit); + if (error) + return "rabbit." + error; + } + if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) { + var error = $root.protos.opts.ReadGroupRabbitStreamsOptions.verify(message.rabbitStreams); + if (error) + return "rabbitStreams." + error; + } + if (message.mqtt != null && message.hasOwnProperty("mqtt")) { + var error = $root.protos.opts.ReadGroupMQTTOptions.verify(message.mqtt); + if (error) + return "mqtt." + error; + } + if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) { + var error = $root.protos.opts.ReadGroupAzureServiceBusOptions.verify(message.azureServiceBus); + if (error) + return "azureServiceBus." + error; + } + if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) { + var error = $root.protos.opts.ReadGroupAzureEventHubOptions.verify(message.azureEventHub); + if (error) + return "azureEventHub." + error; + } + if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) { + var error = $root.protos.opts.ReadGroupGCPPubSubOptions.verify(message.gcpPubsub); + if (error) + return "gcpPubsub." + error; + } + if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) { + var error = $root.protos.opts.ReadGroupKubeMQQueueOptions.verify(message.kubemqQueue); + if (error) + return "kubemqQueue." + error; + } + if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) { + var error = $root.protos.opts.ReadGroupRedisPubSubOptions.verify(message.redisPubsub); + if (error) + return "redisPubsub." + error; + } + if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) { + var error = $root.protos.opts.ReadGroupRedisStreamsOptions.verify(message.redisStreams); + if (error) + return "redisStreams." + error; + } + if (message.postgres != null && message.hasOwnProperty("postgres")) { + var error = $root.protos.opts.ReadGroupPostgresOptions.verify(message.postgres); + if (error) + return "postgres." + error; + } + if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) { + var error = $root.protos.opts.ReadGroupNatsJetstreamOptions.verify(message.natsJetstream); + if (error) + return "natsJetstream." + error; + } + if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) { + var error = $root.protos.opts.ReadGroupAWSKinesisOptions.verify(message.awsKinesis); + if (error) + return "awsKinesis." + error; + } + if (message.memphis != null && message.hasOwnProperty("memphis")) { + var error = $root.protos.opts.ReadGroupMemphisOptions.verify(message.memphis); + if (error) + return "memphis." + error; + } + return null; }; /** - * Creates a plain object from a ReadGroupNatsJetstreamOptions message. Also converts values to other types if specified. + * Creates a ReadOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.ReadOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.ReadOptions} ReadOptions + */ + ReadOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadOptions) + return object; + var message = new $root.protos.opts.ReadOptions(); + if (object.name != null) + message.name = String(object.name); + if (object.connectionId != null) + message.connectionId = String(object.connectionId); + if (object.continuous != null) + message.continuous = Boolean(object.continuous); + if (object.sampleOptions != null) { + if (typeof object.sampleOptions !== "object") + throw TypeError(".protos.opts.ReadOptions.sampleOptions: object expected"); + message.sampleOptions = $root.protos.opts.ReadSampleOptions.fromObject(object.sampleOptions); + } + if (object.decodeOptions != null) { + if (typeof object.decodeOptions !== "object") + throw TypeError(".protos.opts.ReadOptions.decodeOptions: object expected"); + message.decodeOptions = $root.protos.encoding.DecodeOptions.fromObject(object.decodeOptions); + } + switch (object.convertOutput) { + case "CONVERT_OPTION_UNSET": + case 0: + message.convertOutput = 0; + break; + case "CONVERT_OPTION_BASE64": + case 1: + message.convertOutput = 1; + break; + case "CONVERT_OPTION_GZIP": + case 2: + message.convertOutput = 2; + break; + } + if (object.filter != null) { + if (typeof object.filter !== "object") + throw TypeError(".protos.opts.ReadOptions.filter: object expected"); + message.filter = $root.protos.opts.ReadFilterOptions.fromObject(object.filter); + } + if (object.inferSchemaOptions != null) { + if (typeof object.inferSchemaOptions !== "object") + throw TypeError(".protos.opts.ReadOptions.inferSchemaOptions: object expected"); + message.inferSchemaOptions = $root.protos.opts.InferSchemaOptions.fromObject(object.inferSchemaOptions); + } + if (object._id != null) + message._id = String(object._id); + if (object._active != null) + message._active = Boolean(object._active); + if (object._cliOptions != null) { + if (typeof object._cliOptions !== "object") + throw TypeError(".protos.opts.ReadOptions._cliOptions: object expected"); + message._cliOptions = $root.protos.opts.ReadCLIOptions.fromObject(object._cliOptions); + } + if (object.kafka != null) { + if (typeof object.kafka !== "object") + throw TypeError(".protos.opts.ReadOptions.kafka: object expected"); + message.kafka = $root.protos.opts.ReadGroupKafkaOptions.fromObject(object.kafka); + } + if (object.activemq != null) { + if (typeof object.activemq !== "object") + throw TypeError(".protos.opts.ReadOptions.activemq: object expected"); + message.activemq = $root.protos.opts.ReadGroupActiveMQOptions.fromObject(object.activemq); + } + if (object.awsSqs != null) { + if (typeof object.awsSqs !== "object") + throw TypeError(".protos.opts.ReadOptions.awsSqs: object expected"); + message.awsSqs = $root.protos.opts.ReadGroupAWSSQSOptions.fromObject(object.awsSqs); + } + if (object.mongo != null) { + if (typeof object.mongo !== "object") + throw TypeError(".protos.opts.ReadOptions.mongo: object expected"); + message.mongo = $root.protos.opts.ReadGroupMongoOptions.fromObject(object.mongo); + } + if (object.nats != null) { + if (typeof object.nats !== "object") + throw TypeError(".protos.opts.ReadOptions.nats: object expected"); + message.nats = $root.protos.opts.ReadGroupNatsOptions.fromObject(object.nats); + } + if (object.natsStreaming != null) { + if (typeof object.natsStreaming !== "object") + throw TypeError(".protos.opts.ReadOptions.natsStreaming: object expected"); + message.natsStreaming = $root.protos.opts.ReadGroupNatsStreamingOptions.fromObject(object.natsStreaming); + } + if (object.nsq != null) { + if (typeof object.nsq !== "object") + throw TypeError(".protos.opts.ReadOptions.nsq: object expected"); + message.nsq = $root.protos.opts.ReadGroupNSQOptions.fromObject(object.nsq); + } + if (object.pulsar != null) { + if (typeof object.pulsar !== "object") + throw TypeError(".protos.opts.ReadOptions.pulsar: object expected"); + message.pulsar = $root.protos.opts.ReadGroupPulsarOptions.fromObject(object.pulsar); + } + if (object.rabbit != null) { + if (typeof object.rabbit !== "object") + throw TypeError(".protos.opts.ReadOptions.rabbit: object expected"); + message.rabbit = $root.protos.opts.ReadGroupRabbitOptions.fromObject(object.rabbit); + } + if (object.rabbitStreams != null) { + if (typeof object.rabbitStreams !== "object") + throw TypeError(".protos.opts.ReadOptions.rabbitStreams: object expected"); + message.rabbitStreams = $root.protos.opts.ReadGroupRabbitStreamsOptions.fromObject(object.rabbitStreams); + } + if (object.mqtt != null) { + if (typeof object.mqtt !== "object") + throw TypeError(".protos.opts.ReadOptions.mqtt: object expected"); + message.mqtt = $root.protos.opts.ReadGroupMQTTOptions.fromObject(object.mqtt); + } + if (object.azureServiceBus != null) { + if (typeof object.azureServiceBus !== "object") + throw TypeError(".protos.opts.ReadOptions.azureServiceBus: object expected"); + message.azureServiceBus = $root.protos.opts.ReadGroupAzureServiceBusOptions.fromObject(object.azureServiceBus); + } + if (object.azureEventHub != null) { + if (typeof object.azureEventHub !== "object") + throw TypeError(".protos.opts.ReadOptions.azureEventHub: object expected"); + message.azureEventHub = $root.protos.opts.ReadGroupAzureEventHubOptions.fromObject(object.azureEventHub); + } + if (object.gcpPubsub != null) { + if (typeof object.gcpPubsub !== "object") + throw TypeError(".protos.opts.ReadOptions.gcpPubsub: object expected"); + message.gcpPubsub = $root.protos.opts.ReadGroupGCPPubSubOptions.fromObject(object.gcpPubsub); + } + if (object.kubemqQueue != null) { + if (typeof object.kubemqQueue !== "object") + throw TypeError(".protos.opts.ReadOptions.kubemqQueue: object expected"); + message.kubemqQueue = $root.protos.opts.ReadGroupKubeMQQueueOptions.fromObject(object.kubemqQueue); + } + if (object.redisPubsub != null) { + if (typeof object.redisPubsub !== "object") + throw TypeError(".protos.opts.ReadOptions.redisPubsub: object expected"); + message.redisPubsub = $root.protos.opts.ReadGroupRedisPubSubOptions.fromObject(object.redisPubsub); + } + if (object.redisStreams != null) { + if (typeof object.redisStreams !== "object") + throw TypeError(".protos.opts.ReadOptions.redisStreams: object expected"); + message.redisStreams = $root.protos.opts.ReadGroupRedisStreamsOptions.fromObject(object.redisStreams); + } + if (object.postgres != null) { + if (typeof object.postgres !== "object") + throw TypeError(".protos.opts.ReadOptions.postgres: object expected"); + message.postgres = $root.protos.opts.ReadGroupPostgresOptions.fromObject(object.postgres); + } + if (object.natsJetstream != null) { + if (typeof object.natsJetstream !== "object") + throw TypeError(".protos.opts.ReadOptions.natsJetstream: object expected"); + message.natsJetstream = $root.protos.opts.ReadGroupNatsJetstreamOptions.fromObject(object.natsJetstream); + } + if (object.awsKinesis != null) { + if (typeof object.awsKinesis !== "object") + throw TypeError(".protos.opts.ReadOptions.awsKinesis: object expected"); + message.awsKinesis = $root.protos.opts.ReadGroupAWSKinesisOptions.fromObject(object.awsKinesis); + } + if (object.memphis != null) { + if (typeof object.memphis !== "object") + throw TypeError(".protos.opts.ReadOptions.memphis: object expected"); + message.memphis = $root.protos.opts.ReadGroupMemphisOptions.fromObject(object.memphis); + } + return message; + }; + + /** + * Creates a plain object from a ReadOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupNatsJetstreamOptions + * @memberof protos.opts.ReadOptions * @static - * @param {protos.opts.ReadGroupNatsJetstreamOptions} message ReadGroupNatsJetstreamOptions + * @param {protos.opts.ReadOptions} message ReadOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupNatsJetstreamOptions.toObject = function toObject(message, options) { + ReadOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.name = ""; + object.connectionId = ""; + object.continuous = false; + object.sampleOptions = null; + object.decodeOptions = null; + object.convertOutput = options.enums === String ? "CONVERT_OPTION_UNSET" : 0; + object.filter = null; + object.inferSchemaOptions = null; + object.kafka = null; + object.activemq = null; + object.awsSqs = null; + object.mongo = null; + object.nats = null; + object.natsStreaming = null; + object.nsq = null; + object.pulsar = null; + object.rabbit = null; + object.rabbitStreams = null; + object.mqtt = null; + object.azureServiceBus = null; + object.azureEventHub = null; + object.gcpPubsub = null; + object.kubemqQueue = null; + object.redisPubsub = null; + object.redisStreams = null; + object.postgres = null; + object.natsJetstream = null; + object.awsKinesis = null; + object.memphis = null; + object._id = ""; + object._active = false; + object._cliOptions = null; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NatsJetstreamConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NatsJetstreamReadArgs.toObject(message.args, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.connectionId != null && message.hasOwnProperty("connectionId")) + object.connectionId = message.connectionId; + if (message.continuous != null && message.hasOwnProperty("continuous")) + object.continuous = message.continuous; + if (message.sampleOptions != null && message.hasOwnProperty("sampleOptions")) + object.sampleOptions = $root.protos.opts.ReadSampleOptions.toObject(message.sampleOptions, options); + if (message.decodeOptions != null && message.hasOwnProperty("decodeOptions")) + object.decodeOptions = $root.protos.encoding.DecodeOptions.toObject(message.decodeOptions, options); + if (message.convertOutput != null && message.hasOwnProperty("convertOutput")) + object.convertOutput = options.enums === String ? $root.protos.opts.ConvertOption[message.convertOutput] : message.convertOutput; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = $root.protos.opts.ReadFilterOptions.toObject(message.filter, options); + if (message.inferSchemaOptions != null && message.hasOwnProperty("inferSchemaOptions")) + object.inferSchemaOptions = $root.protos.opts.InferSchemaOptions.toObject(message.inferSchemaOptions, options); + if (message.kafka != null && message.hasOwnProperty("kafka")) + object.kafka = $root.protos.opts.ReadGroupKafkaOptions.toObject(message.kafka, options); + if (message.activemq != null && message.hasOwnProperty("activemq")) + object.activemq = $root.protos.opts.ReadGroupActiveMQOptions.toObject(message.activemq, options); + if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) + object.awsSqs = $root.protos.opts.ReadGroupAWSSQSOptions.toObject(message.awsSqs, options); + if (message.mongo != null && message.hasOwnProperty("mongo")) + object.mongo = $root.protos.opts.ReadGroupMongoOptions.toObject(message.mongo, options); + if (message.nats != null && message.hasOwnProperty("nats")) + object.nats = $root.protos.opts.ReadGroupNatsOptions.toObject(message.nats, options); + if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) + object.natsStreaming = $root.protos.opts.ReadGroupNatsStreamingOptions.toObject(message.natsStreaming, options); + if (message.nsq != null && message.hasOwnProperty("nsq")) + object.nsq = $root.protos.opts.ReadGroupNSQOptions.toObject(message.nsq, options); + if (message.pulsar != null && message.hasOwnProperty("pulsar")) + object.pulsar = $root.protos.opts.ReadGroupPulsarOptions.toObject(message.pulsar, options); + if (message.rabbit != null && message.hasOwnProperty("rabbit")) + object.rabbit = $root.protos.opts.ReadGroupRabbitOptions.toObject(message.rabbit, options); + if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) + object.rabbitStreams = $root.protos.opts.ReadGroupRabbitStreamsOptions.toObject(message.rabbitStreams, options); + if (message.mqtt != null && message.hasOwnProperty("mqtt")) + object.mqtt = $root.protos.opts.ReadGroupMQTTOptions.toObject(message.mqtt, options); + if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) + object.azureServiceBus = $root.protos.opts.ReadGroupAzureServiceBusOptions.toObject(message.azureServiceBus, options); + if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) + object.azureEventHub = $root.protos.opts.ReadGroupAzureEventHubOptions.toObject(message.azureEventHub, options); + if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) + object.gcpPubsub = $root.protos.opts.ReadGroupGCPPubSubOptions.toObject(message.gcpPubsub, options); + if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) + object.kubemqQueue = $root.protos.opts.ReadGroupKubeMQQueueOptions.toObject(message.kubemqQueue, options); + if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) + object.redisPubsub = $root.protos.opts.ReadGroupRedisPubSubOptions.toObject(message.redisPubsub, options); + if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) + object.redisStreams = $root.protos.opts.ReadGroupRedisStreamsOptions.toObject(message.redisStreams, options); + if (message.postgres != null && message.hasOwnProperty("postgres")) + object.postgres = $root.protos.opts.ReadGroupPostgresOptions.toObject(message.postgres, options); + if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) + object.natsJetstream = $root.protos.opts.ReadGroupNatsJetstreamOptions.toObject(message.natsJetstream, options); + if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) + object.awsKinesis = $root.protos.opts.ReadGroupAWSKinesisOptions.toObject(message.awsKinesis, options); + if (message.memphis != null && message.hasOwnProperty("memphis")) + object.memphis = $root.protos.opts.ReadGroupMemphisOptions.toObject(message.memphis, options); + if (message._id != null && message.hasOwnProperty("_id")) + object._id = message._id; + if (message._active != null && message.hasOwnProperty("_active")) + object._active = message._active; + if (message._cliOptions != null && message.hasOwnProperty("_cliOptions")) + object._cliOptions = $root.protos.opts.ReadCLIOptions.toObject(message._cliOptions, options); return object; }; /** - * Converts this ReadGroupNatsJetstreamOptions to JSON. + * Converts this ReadOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupNatsJetstreamOptions + * @memberof protos.opts.ReadOptions * @instance * @returns {Object.} JSON object */ - ReadGroupNatsJetstreamOptions.prototype.toJSON = function toJSON() { + ReadOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupNatsJetstreamOptions; + return ReadOptions; })(); - opts.ReadGroupNSQOptions = (function() { + opts.ReadGroupKafkaOptions = (function() { /** - * Properties of a ReadGroupNSQOptions. + * Properties of a ReadGroupKafkaOptions. * @memberof protos.opts - * @interface IReadGroupNSQOptions - * @property {protos.args.INSQConn|null} [_conn] ReadGroupNSQOptions _conn - * @property {protos.args.INSQReadArgs|null} [args] ReadGroupNSQOptions args + * @interface IReadGroupKafkaOptions + * @property {protos.args.IKafkaConn|null} [_conn] ReadGroupKafkaOptions _conn + * @property {protos.args.IKafkaReadArgs|null} [args] ReadGroupKafkaOptions args */ /** - * Constructs a new ReadGroupNSQOptions. + * Constructs a new ReadGroupKafkaOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupNSQOptions. - * @implements IReadGroupNSQOptions + * @classdesc Represents a ReadGroupKafkaOptions. + * @implements IReadGroupKafkaOptions * @constructor - * @param {protos.opts.IReadGroupNSQOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupKafkaOptions=} [properties] Properties to set */ - function ReadGroupNSQOptions(properties) { + function ReadGroupKafkaOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26129,88 +24302,88 @@ $root.protos = (function() { } /** - * ReadGroupNSQOptions _conn. - * @member {protos.args.INSQConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupNSQOptions + * ReadGroupKafkaOptions _conn. + * @member {protos.args.IKafkaConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupKafkaOptions * @instance */ - ReadGroupNSQOptions.prototype._conn = null; + ReadGroupKafkaOptions.prototype._conn = null; /** - * ReadGroupNSQOptions args. - * @member {protos.args.INSQReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupNSQOptions + * ReadGroupKafkaOptions args. + * @member {protos.args.IKafkaReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupKafkaOptions * @instance */ - ReadGroupNSQOptions.prototype.args = null; + ReadGroupKafkaOptions.prototype.args = null; /** - * Creates a new ReadGroupNSQOptions instance using the specified properties. + * Creates a new ReadGroupKafkaOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupNSQOptions + * @memberof protos.opts.ReadGroupKafkaOptions * @static - * @param {protos.opts.IReadGroupNSQOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupNSQOptions} ReadGroupNSQOptions instance + * @param {protos.opts.IReadGroupKafkaOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupKafkaOptions} ReadGroupKafkaOptions instance */ - ReadGroupNSQOptions.create = function create(properties) { - return new ReadGroupNSQOptions(properties); + ReadGroupKafkaOptions.create = function create(properties) { + return new ReadGroupKafkaOptions(properties); }; /** - * Encodes the specified ReadGroupNSQOptions message. Does not implicitly {@link protos.opts.ReadGroupNSQOptions.verify|verify} messages. + * Encodes the specified ReadGroupKafkaOptions message. Does not implicitly {@link protos.opts.ReadGroupKafkaOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupNSQOptions + * @memberof protos.opts.ReadGroupKafkaOptions * @static - * @param {protos.opts.IReadGroupNSQOptions} message ReadGroupNSQOptions message or plain object to encode + * @param {protos.opts.IReadGroupKafkaOptions} message ReadGroupKafkaOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupNSQOptions.encode = function encode(message, writer) { + ReadGroupKafkaOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NSQConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.KafkaConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NSQReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.KafkaReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupNSQOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNSQOptions.verify|verify} messages. + * Encodes the specified ReadGroupKafkaOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupKafkaOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupNSQOptions + * @memberof protos.opts.ReadGroupKafkaOptions * @static - * @param {protos.opts.IReadGroupNSQOptions} message ReadGroupNSQOptions message or plain object to encode + * @param {protos.opts.IReadGroupKafkaOptions} message ReadGroupKafkaOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupNSQOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupKafkaOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupNSQOptions message from the specified reader or buffer. + * Decodes a ReadGroupKafkaOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupNSQOptions + * @memberof protos.opts.ReadGroupKafkaOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupNSQOptions} ReadGroupNSQOptions + * @returns {protos.opts.ReadGroupKafkaOptions} ReadGroupKafkaOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupNSQOptions.decode = function decode(reader, length) { + ReadGroupKafkaOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupNSQOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupKafkaOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.NSQConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.KafkaConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.NSQReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.KafkaReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -26221,39 +24394,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupNSQOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupKafkaOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupNSQOptions + * @memberof protos.opts.ReadGroupKafkaOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupNSQOptions} ReadGroupNSQOptions + * @returns {protos.opts.ReadGroupKafkaOptions} ReadGroupKafkaOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupNSQOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupKafkaOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupNSQOptions message. + * Verifies a ReadGroupKafkaOptions message. * @function verify - * @memberof protos.opts.ReadGroupNSQOptions + * @memberof protos.opts.ReadGroupKafkaOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupNSQOptions.verify = function verify(message) { + ReadGroupKafkaOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NSQConn.verify(message._conn); + var error = $root.protos.args.KafkaConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NSQReadArgs.verify(message.args); + var error = $root.protos.args.KafkaReadArgs.verify(message.args); if (error) return "args." + error; } @@ -26261,40 +24434,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupNSQOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupKafkaOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupNSQOptions + * @memberof protos.opts.ReadGroupKafkaOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupNSQOptions} ReadGroupNSQOptions + * @returns {protos.opts.ReadGroupKafkaOptions} ReadGroupKafkaOptions */ - ReadGroupNSQOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupNSQOptions) + ReadGroupKafkaOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupKafkaOptions) return object; - var message = new $root.protos.opts.ReadGroupNSQOptions(); + var message = new $root.protos.opts.ReadGroupKafkaOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupNSQOptions._conn: object expected"); - message._conn = $root.protos.args.NSQConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupKafkaOptions._conn: object expected"); + message._conn = $root.protos.args.KafkaConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupNSQOptions.args: object expected"); - message.args = $root.protos.args.NSQReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupKafkaOptions.args: object expected"); + message.args = $root.protos.args.KafkaReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupNSQOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupKafkaOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupNSQOptions + * @memberof protos.opts.ReadGroupKafkaOptions * @static - * @param {protos.opts.ReadGroupNSQOptions} message ReadGroupNSQOptions + * @param {protos.opts.ReadGroupKafkaOptions} message ReadGroupKafkaOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupNSQOptions.toObject = function toObject(message, options) { + ReadGroupKafkaOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26303,45 +24476,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NSQConn.toObject(message._conn, options); + object._conn = $root.protos.args.KafkaConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NSQReadArgs.toObject(message.args, options); + object.args = $root.protos.args.KafkaReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupNSQOptions to JSON. + * Converts this ReadGroupKafkaOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupNSQOptions + * @memberof protos.opts.ReadGroupKafkaOptions * @instance * @returns {Object.} JSON object */ - ReadGroupNSQOptions.prototype.toJSON = function toJSON() { + ReadGroupKafkaOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupNSQOptions; + return ReadGroupKafkaOptions; })(); - opts.ReadGroupPostgresOptions = (function() { + opts.ReadGroupActiveMQOptions = (function() { /** - * Properties of a ReadGroupPostgresOptions. + * Properties of a ReadGroupActiveMQOptions. * @memberof protos.opts - * @interface IReadGroupPostgresOptions - * @property {protos.args.IPostgresConn|null} [_conn] ReadGroupPostgresOptions _conn - * @property {protos.args.IPostgresReadArgs|null} [args] ReadGroupPostgresOptions args + * @interface IReadGroupActiveMQOptions + * @property {protos.args.IActiveMQConn|null} [_conn] ReadGroupActiveMQOptions _conn + * @property {protos.args.IActiveMQReadArgs|null} [args] ReadGroupActiveMQOptions args */ /** - * Constructs a new ReadGroupPostgresOptions. + * Constructs a new ReadGroupActiveMQOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupPostgresOptions. - * @implements IReadGroupPostgresOptions + * @classdesc Represents a ReadGroupActiveMQOptions. + * @implements IReadGroupActiveMQOptions * @constructor - * @param {protos.opts.IReadGroupPostgresOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupActiveMQOptions=} [properties] Properties to set */ - function ReadGroupPostgresOptions(properties) { + function ReadGroupActiveMQOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26349,88 +24522,88 @@ $root.protos = (function() { } /** - * ReadGroupPostgresOptions _conn. - * @member {protos.args.IPostgresConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupPostgresOptions + * ReadGroupActiveMQOptions _conn. + * @member {protos.args.IActiveMQConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupActiveMQOptions * @instance */ - ReadGroupPostgresOptions.prototype._conn = null; + ReadGroupActiveMQOptions.prototype._conn = null; /** - * ReadGroupPostgresOptions args. - * @member {protos.args.IPostgresReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupPostgresOptions + * ReadGroupActiveMQOptions args. + * @member {protos.args.IActiveMQReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupActiveMQOptions * @instance */ - ReadGroupPostgresOptions.prototype.args = null; + ReadGroupActiveMQOptions.prototype.args = null; /** - * Creates a new ReadGroupPostgresOptions instance using the specified properties. + * Creates a new ReadGroupActiveMQOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupPostgresOptions + * @memberof protos.opts.ReadGroupActiveMQOptions * @static - * @param {protos.opts.IReadGroupPostgresOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupPostgresOptions} ReadGroupPostgresOptions instance + * @param {protos.opts.IReadGroupActiveMQOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupActiveMQOptions} ReadGroupActiveMQOptions instance */ - ReadGroupPostgresOptions.create = function create(properties) { - return new ReadGroupPostgresOptions(properties); + ReadGroupActiveMQOptions.create = function create(properties) { + return new ReadGroupActiveMQOptions(properties); }; /** - * Encodes the specified ReadGroupPostgresOptions message. Does not implicitly {@link protos.opts.ReadGroupPostgresOptions.verify|verify} messages. + * Encodes the specified ReadGroupActiveMQOptions message. Does not implicitly {@link protos.opts.ReadGroupActiveMQOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupPostgresOptions + * @memberof protos.opts.ReadGroupActiveMQOptions * @static - * @param {protos.opts.IReadGroupPostgresOptions} message ReadGroupPostgresOptions message or plain object to encode + * @param {protos.opts.IReadGroupActiveMQOptions} message ReadGroupActiveMQOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupPostgresOptions.encode = function encode(message, writer) { + ReadGroupActiveMQOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.PostgresConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.ActiveMQConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.PostgresReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.ActiveMQReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupPostgresOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupPostgresOptions.verify|verify} messages. + * Encodes the specified ReadGroupActiveMQOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupActiveMQOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupPostgresOptions + * @memberof protos.opts.ReadGroupActiveMQOptions * @static - * @param {protos.opts.IReadGroupPostgresOptions} message ReadGroupPostgresOptions message or plain object to encode + * @param {protos.opts.IReadGroupActiveMQOptions} message ReadGroupActiveMQOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupPostgresOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupActiveMQOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupPostgresOptions message from the specified reader or buffer. + * Decodes a ReadGroupActiveMQOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupPostgresOptions + * @memberof protos.opts.ReadGroupActiveMQOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupPostgresOptions} ReadGroupPostgresOptions + * @returns {protos.opts.ReadGroupActiveMQOptions} ReadGroupActiveMQOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupPostgresOptions.decode = function decode(reader, length) { + ReadGroupActiveMQOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupPostgresOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupActiveMQOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.PostgresConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.ActiveMQConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.PostgresReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.ActiveMQReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -26441,39 +24614,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupPostgresOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupActiveMQOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupPostgresOptions + * @memberof protos.opts.ReadGroupActiveMQOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupPostgresOptions} ReadGroupPostgresOptions + * @returns {protos.opts.ReadGroupActiveMQOptions} ReadGroupActiveMQOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupPostgresOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupActiveMQOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupPostgresOptions message. + * Verifies a ReadGroupActiveMQOptions message. * @function verify - * @memberof protos.opts.ReadGroupPostgresOptions + * @memberof protos.opts.ReadGroupActiveMQOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupPostgresOptions.verify = function verify(message) { + ReadGroupActiveMQOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.PostgresConn.verify(message._conn); + var error = $root.protos.args.ActiveMQConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.PostgresReadArgs.verify(message.args); + var error = $root.protos.args.ActiveMQReadArgs.verify(message.args); if (error) return "args." + error; } @@ -26481,40 +24654,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupPostgresOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupActiveMQOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupPostgresOptions + * @memberof protos.opts.ReadGroupActiveMQOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupPostgresOptions} ReadGroupPostgresOptions + * @returns {protos.opts.ReadGroupActiveMQOptions} ReadGroupActiveMQOptions */ - ReadGroupPostgresOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupPostgresOptions) + ReadGroupActiveMQOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupActiveMQOptions) return object; - var message = new $root.protos.opts.ReadGroupPostgresOptions(); + var message = new $root.protos.opts.ReadGroupActiveMQOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupPostgresOptions._conn: object expected"); - message._conn = $root.protos.args.PostgresConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupActiveMQOptions._conn: object expected"); + message._conn = $root.protos.args.ActiveMQConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupPostgresOptions.args: object expected"); - message.args = $root.protos.args.PostgresReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupActiveMQOptions.args: object expected"); + message.args = $root.protos.args.ActiveMQReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupPostgresOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupActiveMQOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupPostgresOptions + * @memberof protos.opts.ReadGroupActiveMQOptions * @static - * @param {protos.opts.ReadGroupPostgresOptions} message ReadGroupPostgresOptions + * @param {protos.opts.ReadGroupActiveMQOptions} message ReadGroupActiveMQOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupPostgresOptions.toObject = function toObject(message, options) { + ReadGroupActiveMQOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26523,45 +24696,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.PostgresConn.toObject(message._conn, options); + object._conn = $root.protos.args.ActiveMQConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.PostgresReadArgs.toObject(message.args, options); + object.args = $root.protos.args.ActiveMQReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupPostgresOptions to JSON. + * Converts this ReadGroupActiveMQOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupPostgresOptions + * @memberof protos.opts.ReadGroupActiveMQOptions * @instance * @returns {Object.} JSON object */ - ReadGroupPostgresOptions.prototype.toJSON = function toJSON() { + ReadGroupActiveMQOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupPostgresOptions; + return ReadGroupActiveMQOptions; })(); - opts.ReadGroupPulsarOptions = (function() { + opts.ReadGroupAWSSQSOptions = (function() { /** - * Properties of a ReadGroupPulsarOptions. + * Properties of a ReadGroupAWSSQSOptions. * @memberof protos.opts - * @interface IReadGroupPulsarOptions - * @property {protos.args.IPulsarConn|null} [_conn] ReadGroupPulsarOptions _conn - * @property {protos.args.IPulsarReadArgs|null} [args] ReadGroupPulsarOptions args + * @interface IReadGroupAWSSQSOptions + * @property {protos.args.IAWSSQSConn|null} [_conn] ReadGroupAWSSQSOptions _conn + * @property {protos.args.IAWSSQSReadArgs|null} [args] ReadGroupAWSSQSOptions args */ /** - * Constructs a new ReadGroupPulsarOptions. + * Constructs a new ReadGroupAWSSQSOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupPulsarOptions. - * @implements IReadGroupPulsarOptions + * @classdesc Represents a ReadGroupAWSSQSOptions. + * @implements IReadGroupAWSSQSOptions * @constructor - * @param {protos.opts.IReadGroupPulsarOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupAWSSQSOptions=} [properties] Properties to set */ - function ReadGroupPulsarOptions(properties) { + function ReadGroupAWSSQSOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26569,88 +24742,88 @@ $root.protos = (function() { } /** - * ReadGroupPulsarOptions _conn. - * @member {protos.args.IPulsarConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupPulsarOptions + * ReadGroupAWSSQSOptions _conn. + * @member {protos.args.IAWSSQSConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupAWSSQSOptions * @instance */ - ReadGroupPulsarOptions.prototype._conn = null; + ReadGroupAWSSQSOptions.prototype._conn = null; /** - * ReadGroupPulsarOptions args. - * @member {protos.args.IPulsarReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupPulsarOptions + * ReadGroupAWSSQSOptions args. + * @member {protos.args.IAWSSQSReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupAWSSQSOptions * @instance */ - ReadGroupPulsarOptions.prototype.args = null; + ReadGroupAWSSQSOptions.prototype.args = null; /** - * Creates a new ReadGroupPulsarOptions instance using the specified properties. + * Creates a new ReadGroupAWSSQSOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupPulsarOptions + * @memberof protos.opts.ReadGroupAWSSQSOptions * @static - * @param {protos.opts.IReadGroupPulsarOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupPulsarOptions} ReadGroupPulsarOptions instance + * @param {protos.opts.IReadGroupAWSSQSOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupAWSSQSOptions} ReadGroupAWSSQSOptions instance */ - ReadGroupPulsarOptions.create = function create(properties) { - return new ReadGroupPulsarOptions(properties); + ReadGroupAWSSQSOptions.create = function create(properties) { + return new ReadGroupAWSSQSOptions(properties); }; /** - * Encodes the specified ReadGroupPulsarOptions message. Does not implicitly {@link protos.opts.ReadGroupPulsarOptions.verify|verify} messages. + * Encodes the specified ReadGroupAWSSQSOptions message. Does not implicitly {@link protos.opts.ReadGroupAWSSQSOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupPulsarOptions + * @memberof protos.opts.ReadGroupAWSSQSOptions * @static - * @param {protos.opts.IReadGroupPulsarOptions} message ReadGroupPulsarOptions message or plain object to encode + * @param {protos.opts.IReadGroupAWSSQSOptions} message ReadGroupAWSSQSOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupPulsarOptions.encode = function encode(message, writer) { + ReadGroupAWSSQSOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.PulsarConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.AWSSQSConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.PulsarReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.AWSSQSReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupPulsarOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupPulsarOptions.verify|verify} messages. + * Encodes the specified ReadGroupAWSSQSOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAWSSQSOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupPulsarOptions + * @memberof protos.opts.ReadGroupAWSSQSOptions * @static - * @param {protos.opts.IReadGroupPulsarOptions} message ReadGroupPulsarOptions message or plain object to encode + * @param {protos.opts.IReadGroupAWSSQSOptions} message ReadGroupAWSSQSOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupPulsarOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupAWSSQSOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupPulsarOptions message from the specified reader or buffer. + * Decodes a ReadGroupAWSSQSOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupPulsarOptions + * @memberof protos.opts.ReadGroupAWSSQSOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupPulsarOptions} ReadGroupPulsarOptions + * @returns {protos.opts.ReadGroupAWSSQSOptions} ReadGroupAWSSQSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupPulsarOptions.decode = function decode(reader, length) { + ReadGroupAWSSQSOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupPulsarOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupAWSSQSOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.PulsarConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.AWSSQSConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.PulsarReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.AWSSQSReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -26661,39 +24834,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupPulsarOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupAWSSQSOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupPulsarOptions + * @memberof protos.opts.ReadGroupAWSSQSOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupPulsarOptions} ReadGroupPulsarOptions + * @returns {protos.opts.ReadGroupAWSSQSOptions} ReadGroupAWSSQSOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupPulsarOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupAWSSQSOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupPulsarOptions message. + * Verifies a ReadGroupAWSSQSOptions message. * @function verify - * @memberof protos.opts.ReadGroupPulsarOptions + * @memberof protos.opts.ReadGroupAWSSQSOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupPulsarOptions.verify = function verify(message) { + ReadGroupAWSSQSOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.PulsarConn.verify(message._conn); + var error = $root.protos.args.AWSSQSConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.PulsarReadArgs.verify(message.args); + var error = $root.protos.args.AWSSQSReadArgs.verify(message.args); if (error) return "args." + error; } @@ -26701,40 +24874,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupPulsarOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupAWSSQSOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupPulsarOptions + * @memberof protos.opts.ReadGroupAWSSQSOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupPulsarOptions} ReadGroupPulsarOptions + * @returns {protos.opts.ReadGroupAWSSQSOptions} ReadGroupAWSSQSOptions */ - ReadGroupPulsarOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupPulsarOptions) + ReadGroupAWSSQSOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupAWSSQSOptions) return object; - var message = new $root.protos.opts.ReadGroupPulsarOptions(); + var message = new $root.protos.opts.ReadGroupAWSSQSOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupPulsarOptions._conn: object expected"); - message._conn = $root.protos.args.PulsarConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupAWSSQSOptions._conn: object expected"); + message._conn = $root.protos.args.AWSSQSConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupPulsarOptions.args: object expected"); - message.args = $root.protos.args.PulsarReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupAWSSQSOptions.args: object expected"); + message.args = $root.protos.args.AWSSQSReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupPulsarOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupAWSSQSOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupPulsarOptions + * @memberof protos.opts.ReadGroupAWSSQSOptions * @static - * @param {protos.opts.ReadGroupPulsarOptions} message ReadGroupPulsarOptions + * @param {protos.opts.ReadGroupAWSSQSOptions} message ReadGroupAWSSQSOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupPulsarOptions.toObject = function toObject(message, options) { + ReadGroupAWSSQSOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26743,45 +24916,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.PulsarConn.toObject(message._conn, options); + object._conn = $root.protos.args.AWSSQSConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.PulsarReadArgs.toObject(message.args, options); + object.args = $root.protos.args.AWSSQSReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupPulsarOptions to JSON. + * Converts this ReadGroupAWSSQSOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupPulsarOptions + * @memberof protos.opts.ReadGroupAWSSQSOptions * @instance * @returns {Object.} JSON object */ - ReadGroupPulsarOptions.prototype.toJSON = function toJSON() { + ReadGroupAWSSQSOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupPulsarOptions; + return ReadGroupAWSSQSOptions; })(); - opts.ReadGroupRabbitOptions = (function() { + opts.ReadGroupMongoOptions = (function() { /** - * Properties of a ReadGroupRabbitOptions. + * Properties of a ReadGroupMongoOptions. * @memberof protos.opts - * @interface IReadGroupRabbitOptions - * @property {protos.args.IRabbitConn|null} [_conn] ReadGroupRabbitOptions _conn - * @property {protos.args.IRabbitReadArgs|null} [args] ReadGroupRabbitOptions args + * @interface IReadGroupMongoOptions + * @property {protos.args.IMongoConn|null} [_conn] ReadGroupMongoOptions _conn + * @property {protos.args.IMongoReadArgs|null} [args] ReadGroupMongoOptions args */ /** - * Constructs a new ReadGroupRabbitOptions. + * Constructs a new ReadGroupMongoOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupRabbitOptions. - * @implements IReadGroupRabbitOptions + * @classdesc Represents a ReadGroupMongoOptions. + * @implements IReadGroupMongoOptions * @constructor - * @param {protos.opts.IReadGroupRabbitOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupMongoOptions=} [properties] Properties to set */ - function ReadGroupRabbitOptions(properties) { + function ReadGroupMongoOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26789,88 +24962,88 @@ $root.protos = (function() { } /** - * ReadGroupRabbitOptions _conn. - * @member {protos.args.IRabbitConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupRabbitOptions + * ReadGroupMongoOptions _conn. + * @member {protos.args.IMongoConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupMongoOptions * @instance */ - ReadGroupRabbitOptions.prototype._conn = null; + ReadGroupMongoOptions.prototype._conn = null; /** - * ReadGroupRabbitOptions args. - * @member {protos.args.IRabbitReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupRabbitOptions + * ReadGroupMongoOptions args. + * @member {protos.args.IMongoReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupMongoOptions * @instance */ - ReadGroupRabbitOptions.prototype.args = null; + ReadGroupMongoOptions.prototype.args = null; /** - * Creates a new ReadGroupRabbitOptions instance using the specified properties. + * Creates a new ReadGroupMongoOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupRabbitOptions + * @memberof protos.opts.ReadGroupMongoOptions * @static - * @param {protos.opts.IReadGroupRabbitOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupRabbitOptions} ReadGroupRabbitOptions instance + * @param {protos.opts.IReadGroupMongoOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupMongoOptions} ReadGroupMongoOptions instance */ - ReadGroupRabbitOptions.create = function create(properties) { - return new ReadGroupRabbitOptions(properties); + ReadGroupMongoOptions.create = function create(properties) { + return new ReadGroupMongoOptions(properties); }; /** - * Encodes the specified ReadGroupRabbitOptions message. Does not implicitly {@link protos.opts.ReadGroupRabbitOptions.verify|verify} messages. + * Encodes the specified ReadGroupMongoOptions message. Does not implicitly {@link protos.opts.ReadGroupMongoOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupRabbitOptions + * @memberof protos.opts.ReadGroupMongoOptions * @static - * @param {protos.opts.IReadGroupRabbitOptions} message ReadGroupRabbitOptions message or plain object to encode + * @param {protos.opts.IReadGroupMongoOptions} message ReadGroupMongoOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupRabbitOptions.encode = function encode(message, writer) { + ReadGroupMongoOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RabbitConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.MongoConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RabbitReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.MongoReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupRabbitOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRabbitOptions.verify|verify} messages. + * Encodes the specified ReadGroupMongoOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupMongoOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupRabbitOptions + * @memberof protos.opts.ReadGroupMongoOptions * @static - * @param {protos.opts.IReadGroupRabbitOptions} message ReadGroupRabbitOptions message or plain object to encode + * @param {protos.opts.IReadGroupMongoOptions} message ReadGroupMongoOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupRabbitOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupMongoOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupRabbitOptions message from the specified reader or buffer. + * Decodes a ReadGroupMongoOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupRabbitOptions + * @memberof protos.opts.ReadGroupMongoOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupRabbitOptions} ReadGroupRabbitOptions + * @returns {protos.opts.ReadGroupMongoOptions} ReadGroupMongoOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupRabbitOptions.decode = function decode(reader, length) { + ReadGroupMongoOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupRabbitOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupMongoOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.RabbitConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.MongoConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.RabbitReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.MongoReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -26881,39 +25054,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupRabbitOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupMongoOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupRabbitOptions + * @memberof protos.opts.ReadGroupMongoOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupRabbitOptions} ReadGroupRabbitOptions + * @returns {protos.opts.ReadGroupMongoOptions} ReadGroupMongoOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupRabbitOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupMongoOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupRabbitOptions message. + * Verifies a ReadGroupMongoOptions message. * @function verify - * @memberof protos.opts.ReadGroupRabbitOptions + * @memberof protos.opts.ReadGroupMongoOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupRabbitOptions.verify = function verify(message) { + ReadGroupMongoOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RabbitConn.verify(message._conn); + var error = $root.protos.args.MongoConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RabbitReadArgs.verify(message.args); + var error = $root.protos.args.MongoReadArgs.verify(message.args); if (error) return "args." + error; } @@ -26921,40 +25094,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupRabbitOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupMongoOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupRabbitOptions + * @memberof protos.opts.ReadGroupMongoOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupRabbitOptions} ReadGroupRabbitOptions + * @returns {protos.opts.ReadGroupMongoOptions} ReadGroupMongoOptions */ - ReadGroupRabbitOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupRabbitOptions) + ReadGroupMongoOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupMongoOptions) return object; - var message = new $root.protos.opts.ReadGroupRabbitOptions(); + var message = new $root.protos.opts.ReadGroupMongoOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupRabbitOptions._conn: object expected"); - message._conn = $root.protos.args.RabbitConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupMongoOptions._conn: object expected"); + message._conn = $root.protos.args.MongoConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupRabbitOptions.args: object expected"); - message.args = $root.protos.args.RabbitReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupMongoOptions.args: object expected"); + message.args = $root.protos.args.MongoReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupRabbitOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupMongoOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupRabbitOptions + * @memberof protos.opts.ReadGroupMongoOptions * @static - * @param {protos.opts.ReadGroupRabbitOptions} message ReadGroupRabbitOptions + * @param {protos.opts.ReadGroupMongoOptions} message ReadGroupMongoOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupRabbitOptions.toObject = function toObject(message, options) { + ReadGroupMongoOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26963,45 +25136,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RabbitConn.toObject(message._conn, options); + object._conn = $root.protos.args.MongoConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RabbitReadArgs.toObject(message.args, options); + object.args = $root.protos.args.MongoReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupRabbitOptions to JSON. + * Converts this ReadGroupMongoOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupRabbitOptions + * @memberof protos.opts.ReadGroupMongoOptions * @instance * @returns {Object.} JSON object */ - ReadGroupRabbitOptions.prototype.toJSON = function toJSON() { + ReadGroupMongoOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupRabbitOptions; + return ReadGroupMongoOptions; })(); - opts.ReadGroupRabbitStreamsOptions = (function() { + opts.ReadGroupNatsOptions = (function() { /** - * Properties of a ReadGroupRabbitStreamsOptions. + * Properties of a ReadGroupNatsOptions. * @memberof protos.opts - * @interface IReadGroupRabbitStreamsOptions - * @property {protos.args.IRabbitStreamsConn|null} [_conn] ReadGroupRabbitStreamsOptions _conn - * @property {protos.args.IRabbitStreamsReadArgs|null} [args] ReadGroupRabbitStreamsOptions args + * @interface IReadGroupNatsOptions + * @property {protos.args.INatsConn|null} [_conn] ReadGroupNatsOptions _conn + * @property {protos.args.INatsReadArgs|null} [args] ReadGroupNatsOptions args */ /** - * Constructs a new ReadGroupRabbitStreamsOptions. + * Constructs a new ReadGroupNatsOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupRabbitStreamsOptions. - * @implements IReadGroupRabbitStreamsOptions + * @classdesc Represents a ReadGroupNatsOptions. + * @implements IReadGroupNatsOptions * @constructor - * @param {protos.opts.IReadGroupRabbitStreamsOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupNatsOptions=} [properties] Properties to set */ - function ReadGroupRabbitStreamsOptions(properties) { + function ReadGroupNatsOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27009,88 +25182,88 @@ $root.protos = (function() { } /** - * ReadGroupRabbitStreamsOptions _conn. - * @member {protos.args.IRabbitStreamsConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupRabbitStreamsOptions + * ReadGroupNatsOptions _conn. + * @member {protos.args.INatsConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupNatsOptions * @instance */ - ReadGroupRabbitStreamsOptions.prototype._conn = null; + ReadGroupNatsOptions.prototype._conn = null; /** - * ReadGroupRabbitStreamsOptions args. - * @member {protos.args.IRabbitStreamsReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupRabbitStreamsOptions + * ReadGroupNatsOptions args. + * @member {protos.args.INatsReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupNatsOptions * @instance */ - ReadGroupRabbitStreamsOptions.prototype.args = null; + ReadGroupNatsOptions.prototype.args = null; /** - * Creates a new ReadGroupRabbitStreamsOptions instance using the specified properties. + * Creates a new ReadGroupNatsOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupRabbitStreamsOptions + * @memberof protos.opts.ReadGroupNatsOptions * @static - * @param {protos.opts.IReadGroupRabbitStreamsOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupRabbitStreamsOptions} ReadGroupRabbitStreamsOptions instance + * @param {protos.opts.IReadGroupNatsOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupNatsOptions} ReadGroupNatsOptions instance */ - ReadGroupRabbitStreamsOptions.create = function create(properties) { - return new ReadGroupRabbitStreamsOptions(properties); + ReadGroupNatsOptions.create = function create(properties) { + return new ReadGroupNatsOptions(properties); }; /** - * Encodes the specified ReadGroupRabbitStreamsOptions message. Does not implicitly {@link protos.opts.ReadGroupRabbitStreamsOptions.verify|verify} messages. + * Encodes the specified ReadGroupNatsOptions message. Does not implicitly {@link protos.opts.ReadGroupNatsOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupRabbitStreamsOptions + * @memberof protos.opts.ReadGroupNatsOptions * @static - * @param {protos.opts.IReadGroupRabbitStreamsOptions} message ReadGroupRabbitStreamsOptions message or plain object to encode + * @param {protos.opts.IReadGroupNatsOptions} message ReadGroupNatsOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupRabbitStreamsOptions.encode = function encode(message, writer) { + ReadGroupNatsOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RabbitStreamsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.NatsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RabbitStreamsReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.NatsReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupRabbitStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRabbitStreamsOptions.verify|verify} messages. + * Encodes the specified ReadGroupNatsOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNatsOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupRabbitStreamsOptions + * @memberof protos.opts.ReadGroupNatsOptions * @static - * @param {protos.opts.IReadGroupRabbitStreamsOptions} message ReadGroupRabbitStreamsOptions message or plain object to encode + * @param {protos.opts.IReadGroupNatsOptions} message ReadGroupNatsOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupRabbitStreamsOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupNatsOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupRabbitStreamsOptions message from the specified reader or buffer. + * Decodes a ReadGroupNatsOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupRabbitStreamsOptions + * @memberof protos.opts.ReadGroupNatsOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupRabbitStreamsOptions} ReadGroupRabbitStreamsOptions + * @returns {protos.opts.ReadGroupNatsOptions} ReadGroupNatsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupRabbitStreamsOptions.decode = function decode(reader, length) { + ReadGroupNatsOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupRabbitStreamsOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupNatsOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.RabbitStreamsConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.NatsConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.RabbitStreamsReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.NatsReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -27101,39 +25274,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupRabbitStreamsOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupNatsOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupRabbitStreamsOptions + * @memberof protos.opts.ReadGroupNatsOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupRabbitStreamsOptions} ReadGroupRabbitStreamsOptions + * @returns {protos.opts.ReadGroupNatsOptions} ReadGroupNatsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupRabbitStreamsOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupNatsOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupRabbitStreamsOptions message. + * Verifies a ReadGroupNatsOptions message. * @function verify - * @memberof protos.opts.ReadGroupRabbitStreamsOptions + * @memberof protos.opts.ReadGroupNatsOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupRabbitStreamsOptions.verify = function verify(message) { + ReadGroupNatsOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RabbitStreamsConn.verify(message._conn); + var error = $root.protos.args.NatsConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RabbitStreamsReadArgs.verify(message.args); + var error = $root.protos.args.NatsReadArgs.verify(message.args); if (error) return "args." + error; } @@ -27141,40 +25314,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupRabbitStreamsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupNatsOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupRabbitStreamsOptions + * @memberof protos.opts.ReadGroupNatsOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupRabbitStreamsOptions} ReadGroupRabbitStreamsOptions + * @returns {protos.opts.ReadGroupNatsOptions} ReadGroupNatsOptions */ - ReadGroupRabbitStreamsOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupRabbitStreamsOptions) + ReadGroupNatsOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupNatsOptions) return object; - var message = new $root.protos.opts.ReadGroupRabbitStreamsOptions(); + var message = new $root.protos.opts.ReadGroupNatsOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupRabbitStreamsOptions._conn: object expected"); - message._conn = $root.protos.args.RabbitStreamsConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupNatsOptions._conn: object expected"); + message._conn = $root.protos.args.NatsConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupRabbitStreamsOptions.args: object expected"); - message.args = $root.protos.args.RabbitStreamsReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupNatsOptions.args: object expected"); + message.args = $root.protos.args.NatsReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupRabbitStreamsOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupNatsOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupRabbitStreamsOptions + * @memberof protos.opts.ReadGroupNatsOptions * @static - * @param {protos.opts.ReadGroupRabbitStreamsOptions} message ReadGroupRabbitStreamsOptions + * @param {protos.opts.ReadGroupNatsOptions} message ReadGroupNatsOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupRabbitStreamsOptions.toObject = function toObject(message, options) { + ReadGroupNatsOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27183,45 +25356,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RabbitStreamsConn.toObject(message._conn, options); + object._conn = $root.protos.args.NatsConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RabbitStreamsReadArgs.toObject(message.args, options); + object.args = $root.protos.args.NatsReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupRabbitStreamsOptions to JSON. + * Converts this ReadGroupNatsOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupRabbitStreamsOptions + * @memberof protos.opts.ReadGroupNatsOptions * @instance * @returns {Object.} JSON object */ - ReadGroupRabbitStreamsOptions.prototype.toJSON = function toJSON() { + ReadGroupNatsOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupRabbitStreamsOptions; + return ReadGroupNatsOptions; })(); - opts.ReadGroupRedisPubSubOptions = (function() { + opts.ReadGroupNatsStreamingOptions = (function() { /** - * Properties of a ReadGroupRedisPubSubOptions. + * Properties of a ReadGroupNatsStreamingOptions. * @memberof protos.opts - * @interface IReadGroupRedisPubSubOptions - * @property {protos.args.IRedisPubSubConn|null} [_conn] ReadGroupRedisPubSubOptions _conn - * @property {protos.args.IRedisPubSubReadArgs|null} [args] ReadGroupRedisPubSubOptions args + * @interface IReadGroupNatsStreamingOptions + * @property {protos.args.INatsStreamingConn|null} [_conn] ReadGroupNatsStreamingOptions _conn + * @property {protos.args.INatsStreamingReadArgs|null} [args] ReadGroupNatsStreamingOptions args */ /** - * Constructs a new ReadGroupRedisPubSubOptions. + * Constructs a new ReadGroupNatsStreamingOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupRedisPubSubOptions. - * @implements IReadGroupRedisPubSubOptions + * @classdesc Represents a ReadGroupNatsStreamingOptions. + * @implements IReadGroupNatsStreamingOptions * @constructor - * @param {protos.opts.IReadGroupRedisPubSubOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupNatsStreamingOptions=} [properties] Properties to set */ - function ReadGroupRedisPubSubOptions(properties) { + function ReadGroupNatsStreamingOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27229,88 +25402,88 @@ $root.protos = (function() { } /** - * ReadGroupRedisPubSubOptions _conn. - * @member {protos.args.IRedisPubSubConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupRedisPubSubOptions + * ReadGroupNatsStreamingOptions _conn. + * @member {protos.args.INatsStreamingConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupNatsStreamingOptions * @instance */ - ReadGroupRedisPubSubOptions.prototype._conn = null; + ReadGroupNatsStreamingOptions.prototype._conn = null; /** - * ReadGroupRedisPubSubOptions args. - * @member {protos.args.IRedisPubSubReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupRedisPubSubOptions + * ReadGroupNatsStreamingOptions args. + * @member {protos.args.INatsStreamingReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupNatsStreamingOptions * @instance */ - ReadGroupRedisPubSubOptions.prototype.args = null; + ReadGroupNatsStreamingOptions.prototype.args = null; /** - * Creates a new ReadGroupRedisPubSubOptions instance using the specified properties. + * Creates a new ReadGroupNatsStreamingOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupRedisPubSubOptions + * @memberof protos.opts.ReadGroupNatsStreamingOptions * @static - * @param {protos.opts.IReadGroupRedisPubSubOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupRedisPubSubOptions} ReadGroupRedisPubSubOptions instance + * @param {protos.opts.IReadGroupNatsStreamingOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupNatsStreamingOptions} ReadGroupNatsStreamingOptions instance */ - ReadGroupRedisPubSubOptions.create = function create(properties) { - return new ReadGroupRedisPubSubOptions(properties); + ReadGroupNatsStreamingOptions.create = function create(properties) { + return new ReadGroupNatsStreamingOptions(properties); }; /** - * Encodes the specified ReadGroupRedisPubSubOptions message. Does not implicitly {@link protos.opts.ReadGroupRedisPubSubOptions.verify|verify} messages. + * Encodes the specified ReadGroupNatsStreamingOptions message. Does not implicitly {@link protos.opts.ReadGroupNatsStreamingOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupRedisPubSubOptions + * @memberof protos.opts.ReadGroupNatsStreamingOptions * @static - * @param {protos.opts.IReadGroupRedisPubSubOptions} message ReadGroupRedisPubSubOptions message or plain object to encode + * @param {protos.opts.IReadGroupNatsStreamingOptions} message ReadGroupNatsStreamingOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupRedisPubSubOptions.encode = function encode(message, writer) { + ReadGroupNatsStreamingOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RedisPubSubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.NatsStreamingConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RedisPubSubReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.NatsStreamingReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupRedisPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRedisPubSubOptions.verify|verify} messages. + * Encodes the specified ReadGroupNatsStreamingOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNatsStreamingOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupRedisPubSubOptions + * @memberof protos.opts.ReadGroupNatsStreamingOptions * @static - * @param {protos.opts.IReadGroupRedisPubSubOptions} message ReadGroupRedisPubSubOptions message or plain object to encode + * @param {protos.opts.IReadGroupNatsStreamingOptions} message ReadGroupNatsStreamingOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupRedisPubSubOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupNatsStreamingOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupRedisPubSubOptions message from the specified reader or buffer. + * Decodes a ReadGroupNatsStreamingOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupRedisPubSubOptions + * @memberof protos.opts.ReadGroupNatsStreamingOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupRedisPubSubOptions} ReadGroupRedisPubSubOptions + * @returns {protos.opts.ReadGroupNatsStreamingOptions} ReadGroupNatsStreamingOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupRedisPubSubOptions.decode = function decode(reader, length) { + ReadGroupNatsStreamingOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupRedisPubSubOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupNatsStreamingOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.RedisPubSubConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.NatsStreamingConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.RedisPubSubReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.NatsStreamingReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -27321,39 +25494,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupRedisPubSubOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupNatsStreamingOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupRedisPubSubOptions + * @memberof protos.opts.ReadGroupNatsStreamingOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupRedisPubSubOptions} ReadGroupRedisPubSubOptions + * @returns {protos.opts.ReadGroupNatsStreamingOptions} ReadGroupNatsStreamingOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupRedisPubSubOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupNatsStreamingOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupRedisPubSubOptions message. + * Verifies a ReadGroupNatsStreamingOptions message. * @function verify - * @memberof protos.opts.ReadGroupRedisPubSubOptions + * @memberof protos.opts.ReadGroupNatsStreamingOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupRedisPubSubOptions.verify = function verify(message) { + ReadGroupNatsStreamingOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RedisPubSubConn.verify(message._conn); + var error = $root.protos.args.NatsStreamingConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RedisPubSubReadArgs.verify(message.args); + var error = $root.protos.args.NatsStreamingReadArgs.verify(message.args); if (error) return "args." + error; } @@ -27361,40 +25534,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupRedisPubSubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupNatsStreamingOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupRedisPubSubOptions + * @memberof protos.opts.ReadGroupNatsStreamingOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupRedisPubSubOptions} ReadGroupRedisPubSubOptions + * @returns {protos.opts.ReadGroupNatsStreamingOptions} ReadGroupNatsStreamingOptions */ - ReadGroupRedisPubSubOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupRedisPubSubOptions) + ReadGroupNatsStreamingOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupNatsStreamingOptions) return object; - var message = new $root.protos.opts.ReadGroupRedisPubSubOptions(); + var message = new $root.protos.opts.ReadGroupNatsStreamingOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupRedisPubSubOptions._conn: object expected"); - message._conn = $root.protos.args.RedisPubSubConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupNatsStreamingOptions._conn: object expected"); + message._conn = $root.protos.args.NatsStreamingConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupRedisPubSubOptions.args: object expected"); - message.args = $root.protos.args.RedisPubSubReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupNatsStreamingOptions.args: object expected"); + message.args = $root.protos.args.NatsStreamingReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupRedisPubSubOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupNatsStreamingOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupRedisPubSubOptions + * @memberof protos.opts.ReadGroupNatsStreamingOptions * @static - * @param {protos.opts.ReadGroupRedisPubSubOptions} message ReadGroupRedisPubSubOptions + * @param {protos.opts.ReadGroupNatsStreamingOptions} message ReadGroupNatsStreamingOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupRedisPubSubOptions.toObject = function toObject(message, options) { + ReadGroupNatsStreamingOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27403,45 +25576,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RedisPubSubConn.toObject(message._conn, options); + object._conn = $root.protos.args.NatsStreamingConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RedisPubSubReadArgs.toObject(message.args, options); + object.args = $root.protos.args.NatsStreamingReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupRedisPubSubOptions to JSON. + * Converts this ReadGroupNatsStreamingOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupRedisPubSubOptions + * @memberof protos.opts.ReadGroupNatsStreamingOptions * @instance * @returns {Object.} JSON object */ - ReadGroupRedisPubSubOptions.prototype.toJSON = function toJSON() { + ReadGroupNatsStreamingOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupRedisPubSubOptions; + return ReadGroupNatsStreamingOptions; })(); - opts.ReadGroupRedisStreamsOptions = (function() { + opts.ReadGroupNatsJetstreamOptions = (function() { /** - * Properties of a ReadGroupRedisStreamsOptions. + * Properties of a ReadGroupNatsJetstreamOptions. * @memberof protos.opts - * @interface IReadGroupRedisStreamsOptions - * @property {protos.args.IRedisStreamsConn|null} [_conn] ReadGroupRedisStreamsOptions _conn - * @property {protos.args.IRedisStreamsReadArgs|null} [args] ReadGroupRedisStreamsOptions args + * @interface IReadGroupNatsJetstreamOptions + * @property {protos.args.INatsJetstreamConn|null} [_conn] ReadGroupNatsJetstreamOptions _conn + * @property {protos.args.INatsJetstreamReadArgs|null} [args] ReadGroupNatsJetstreamOptions args */ /** - * Constructs a new ReadGroupRedisStreamsOptions. + * Constructs a new ReadGroupNatsJetstreamOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupRedisStreamsOptions. - * @implements IReadGroupRedisStreamsOptions + * @classdesc Represents a ReadGroupNatsJetstreamOptions. + * @implements IReadGroupNatsJetstreamOptions * @constructor - * @param {protos.opts.IReadGroupRedisStreamsOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupNatsJetstreamOptions=} [properties] Properties to set */ - function ReadGroupRedisStreamsOptions(properties) { + function ReadGroupNatsJetstreamOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27449,88 +25622,88 @@ $root.protos = (function() { } /** - * ReadGroupRedisStreamsOptions _conn. - * @member {protos.args.IRedisStreamsConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupRedisStreamsOptions + * ReadGroupNatsJetstreamOptions _conn. + * @member {protos.args.INatsJetstreamConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupNatsJetstreamOptions * @instance */ - ReadGroupRedisStreamsOptions.prototype._conn = null; + ReadGroupNatsJetstreamOptions.prototype._conn = null; /** - * ReadGroupRedisStreamsOptions args. - * @member {protos.args.IRedisStreamsReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupRedisStreamsOptions + * ReadGroupNatsJetstreamOptions args. + * @member {protos.args.INatsJetstreamReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupNatsJetstreamOptions * @instance */ - ReadGroupRedisStreamsOptions.prototype.args = null; + ReadGroupNatsJetstreamOptions.prototype.args = null; /** - * Creates a new ReadGroupRedisStreamsOptions instance using the specified properties. + * Creates a new ReadGroupNatsJetstreamOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupRedisStreamsOptions + * @memberof protos.opts.ReadGroupNatsJetstreamOptions * @static - * @param {protos.opts.IReadGroupRedisStreamsOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupRedisStreamsOptions} ReadGroupRedisStreamsOptions instance + * @param {protos.opts.IReadGroupNatsJetstreamOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupNatsJetstreamOptions} ReadGroupNatsJetstreamOptions instance */ - ReadGroupRedisStreamsOptions.create = function create(properties) { - return new ReadGroupRedisStreamsOptions(properties); + ReadGroupNatsJetstreamOptions.create = function create(properties) { + return new ReadGroupNatsJetstreamOptions(properties); }; /** - * Encodes the specified ReadGroupRedisStreamsOptions message. Does not implicitly {@link protos.opts.ReadGroupRedisStreamsOptions.verify|verify} messages. + * Encodes the specified ReadGroupNatsJetstreamOptions message. Does not implicitly {@link protos.opts.ReadGroupNatsJetstreamOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupRedisStreamsOptions + * @memberof protos.opts.ReadGroupNatsJetstreamOptions * @static - * @param {protos.opts.IReadGroupRedisStreamsOptions} message ReadGroupRedisStreamsOptions message or plain object to encode + * @param {protos.opts.IReadGroupNatsJetstreamOptions} message ReadGroupNatsJetstreamOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupRedisStreamsOptions.encode = function encode(message, writer) { + ReadGroupNatsJetstreamOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RedisStreamsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.NatsJetstreamConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RedisStreamsReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.NatsJetstreamReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupRedisStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRedisStreamsOptions.verify|verify} messages. + * Encodes the specified ReadGroupNatsJetstreamOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNatsJetstreamOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupRedisStreamsOptions + * @memberof protos.opts.ReadGroupNatsJetstreamOptions * @static - * @param {protos.opts.IReadGroupRedisStreamsOptions} message ReadGroupRedisStreamsOptions message or plain object to encode + * @param {protos.opts.IReadGroupNatsJetstreamOptions} message ReadGroupNatsJetstreamOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupRedisStreamsOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupNatsJetstreamOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupRedisStreamsOptions message from the specified reader or buffer. + * Decodes a ReadGroupNatsJetstreamOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupRedisStreamsOptions + * @memberof protos.opts.ReadGroupNatsJetstreamOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupRedisStreamsOptions} ReadGroupRedisStreamsOptions + * @returns {protos.opts.ReadGroupNatsJetstreamOptions} ReadGroupNatsJetstreamOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupRedisStreamsOptions.decode = function decode(reader, length) { + ReadGroupNatsJetstreamOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupRedisStreamsOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupNatsJetstreamOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.RedisStreamsConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.NatsJetstreamConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.RedisStreamsReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.NatsJetstreamReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -27541,39 +25714,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupRedisStreamsOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupNatsJetstreamOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupRedisStreamsOptions + * @memberof protos.opts.ReadGroupNatsJetstreamOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupRedisStreamsOptions} ReadGroupRedisStreamsOptions + * @returns {protos.opts.ReadGroupNatsJetstreamOptions} ReadGroupNatsJetstreamOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupRedisStreamsOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupNatsJetstreamOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupRedisStreamsOptions message. + * Verifies a ReadGroupNatsJetstreamOptions message. * @function verify - * @memberof protos.opts.ReadGroupRedisStreamsOptions + * @memberof protos.opts.ReadGroupNatsJetstreamOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupRedisStreamsOptions.verify = function verify(message) { + ReadGroupNatsJetstreamOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RedisStreamsConn.verify(message._conn); + var error = $root.protos.args.NatsJetstreamConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RedisStreamsReadArgs.verify(message.args); + var error = $root.protos.args.NatsJetstreamReadArgs.verify(message.args); if (error) return "args." + error; } @@ -27581,40 +25754,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupRedisStreamsOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupNatsJetstreamOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupRedisStreamsOptions + * @memberof protos.opts.ReadGroupNatsJetstreamOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupRedisStreamsOptions} ReadGroupRedisStreamsOptions + * @returns {protos.opts.ReadGroupNatsJetstreamOptions} ReadGroupNatsJetstreamOptions */ - ReadGroupRedisStreamsOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupRedisStreamsOptions) + ReadGroupNatsJetstreamOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupNatsJetstreamOptions) return object; - var message = new $root.protos.opts.ReadGroupRedisStreamsOptions(); + var message = new $root.protos.opts.ReadGroupNatsJetstreamOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupRedisStreamsOptions._conn: object expected"); - message._conn = $root.protos.args.RedisStreamsConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupNatsJetstreamOptions._conn: object expected"); + message._conn = $root.protos.args.NatsJetstreamConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupRedisStreamsOptions.args: object expected"); - message.args = $root.protos.args.RedisStreamsReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupNatsJetstreamOptions.args: object expected"); + message.args = $root.protos.args.NatsJetstreamReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupRedisStreamsOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupNatsJetstreamOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupRedisStreamsOptions + * @memberof protos.opts.ReadGroupNatsJetstreamOptions * @static - * @param {protos.opts.ReadGroupRedisStreamsOptions} message ReadGroupRedisStreamsOptions + * @param {protos.opts.ReadGroupNatsJetstreamOptions} message ReadGroupNatsJetstreamOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupRedisStreamsOptions.toObject = function toObject(message, options) { + ReadGroupNatsJetstreamOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27623,45 +25796,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RedisStreamsConn.toObject(message._conn, options); + object._conn = $root.protos.args.NatsJetstreamConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RedisStreamsReadArgs.toObject(message.args, options); + object.args = $root.protos.args.NatsJetstreamReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupRedisStreamsOptions to JSON. + * Converts this ReadGroupNatsJetstreamOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupRedisStreamsOptions + * @memberof protos.opts.ReadGroupNatsJetstreamOptions * @instance * @returns {Object.} JSON object */ - ReadGroupRedisStreamsOptions.prototype.toJSON = function toJSON() { + ReadGroupNatsJetstreamOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupRedisStreamsOptions; + return ReadGroupNatsJetstreamOptions; })(); - opts.ReadGroupAzureEventHubOptions = (function() { + opts.ReadGroupNSQOptions = (function() { /** - * Properties of a ReadGroupAzureEventHubOptions. + * Properties of a ReadGroupNSQOptions. * @memberof protos.opts - * @interface IReadGroupAzureEventHubOptions - * @property {protos.args.IAzureEventHubConn|null} [_conn] ReadGroupAzureEventHubOptions _conn - * @property {protos.args.IAzureEventHubReadArgs|null} [args] ReadGroupAzureEventHubOptions args + * @interface IReadGroupNSQOptions + * @property {protos.args.INSQConn|null} [_conn] ReadGroupNSQOptions _conn + * @property {protos.args.INSQReadArgs|null} [args] ReadGroupNSQOptions args */ /** - * Constructs a new ReadGroupAzureEventHubOptions. + * Constructs a new ReadGroupNSQOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupAzureEventHubOptions. - * @implements IReadGroupAzureEventHubOptions + * @classdesc Represents a ReadGroupNSQOptions. + * @implements IReadGroupNSQOptions * @constructor - * @param {protos.opts.IReadGroupAzureEventHubOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupNSQOptions=} [properties] Properties to set */ - function ReadGroupAzureEventHubOptions(properties) { + function ReadGroupNSQOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27669,88 +25842,88 @@ $root.protos = (function() { } /** - * ReadGroupAzureEventHubOptions _conn. - * @member {protos.args.IAzureEventHubConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupAzureEventHubOptions + * ReadGroupNSQOptions _conn. + * @member {protos.args.INSQConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupNSQOptions * @instance */ - ReadGroupAzureEventHubOptions.prototype._conn = null; + ReadGroupNSQOptions.prototype._conn = null; /** - * ReadGroupAzureEventHubOptions args. - * @member {protos.args.IAzureEventHubReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupAzureEventHubOptions + * ReadGroupNSQOptions args. + * @member {protos.args.INSQReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupNSQOptions * @instance */ - ReadGroupAzureEventHubOptions.prototype.args = null; + ReadGroupNSQOptions.prototype.args = null; /** - * Creates a new ReadGroupAzureEventHubOptions instance using the specified properties. + * Creates a new ReadGroupNSQOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupAzureEventHubOptions + * @memberof protos.opts.ReadGroupNSQOptions * @static - * @param {protos.opts.IReadGroupAzureEventHubOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupAzureEventHubOptions} ReadGroupAzureEventHubOptions instance + * @param {protos.opts.IReadGroupNSQOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupNSQOptions} ReadGroupNSQOptions instance */ - ReadGroupAzureEventHubOptions.create = function create(properties) { - return new ReadGroupAzureEventHubOptions(properties); + ReadGroupNSQOptions.create = function create(properties) { + return new ReadGroupNSQOptions(properties); }; /** - * Encodes the specified ReadGroupAzureEventHubOptions message. Does not implicitly {@link protos.opts.ReadGroupAzureEventHubOptions.verify|verify} messages. + * Encodes the specified ReadGroupNSQOptions message. Does not implicitly {@link protos.opts.ReadGroupNSQOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupAzureEventHubOptions + * @memberof protos.opts.ReadGroupNSQOptions * @static - * @param {protos.opts.IReadGroupAzureEventHubOptions} message ReadGroupAzureEventHubOptions message or plain object to encode + * @param {protos.opts.IReadGroupNSQOptions} message ReadGroupNSQOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupAzureEventHubOptions.encode = function encode(message, writer) { + ReadGroupNSQOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AzureEventHubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.NSQConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AzureEventHubReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.NSQReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupAzureEventHubOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAzureEventHubOptions.verify|verify} messages. + * Encodes the specified ReadGroupNSQOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupNSQOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupAzureEventHubOptions + * @memberof protos.opts.ReadGroupNSQOptions * @static - * @param {protos.opts.IReadGroupAzureEventHubOptions} message ReadGroupAzureEventHubOptions message or plain object to encode + * @param {protos.opts.IReadGroupNSQOptions} message ReadGroupNSQOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupAzureEventHubOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupNSQOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupAzureEventHubOptions message from the specified reader or buffer. + * Decodes a ReadGroupNSQOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupAzureEventHubOptions + * @memberof protos.opts.ReadGroupNSQOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupAzureEventHubOptions} ReadGroupAzureEventHubOptions + * @returns {protos.opts.ReadGroupNSQOptions} ReadGroupNSQOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupAzureEventHubOptions.decode = function decode(reader, length) { + ReadGroupNSQOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupAzureEventHubOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupNSQOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.AzureEventHubConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.NSQConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.AzureEventHubReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.NSQReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -27761,39 +25934,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupAzureEventHubOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupNSQOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupAzureEventHubOptions + * @memberof protos.opts.ReadGroupNSQOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupAzureEventHubOptions} ReadGroupAzureEventHubOptions + * @returns {protos.opts.ReadGroupNSQOptions} ReadGroupNSQOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupAzureEventHubOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupNSQOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupAzureEventHubOptions message. + * Verifies a ReadGroupNSQOptions message. * @function verify - * @memberof protos.opts.ReadGroupAzureEventHubOptions + * @memberof protos.opts.ReadGroupNSQOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupAzureEventHubOptions.verify = function verify(message) { + ReadGroupNSQOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AzureEventHubConn.verify(message._conn); + var error = $root.protos.args.NSQConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AzureEventHubReadArgs.verify(message.args); + var error = $root.protos.args.NSQReadArgs.verify(message.args); if (error) return "args." + error; } @@ -27801,40 +25974,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupAzureEventHubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupNSQOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupAzureEventHubOptions + * @memberof protos.opts.ReadGroupNSQOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupAzureEventHubOptions} ReadGroupAzureEventHubOptions + * @returns {protos.opts.ReadGroupNSQOptions} ReadGroupNSQOptions */ - ReadGroupAzureEventHubOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupAzureEventHubOptions) + ReadGroupNSQOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupNSQOptions) return object; - var message = new $root.protos.opts.ReadGroupAzureEventHubOptions(); + var message = new $root.protos.opts.ReadGroupNSQOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupAzureEventHubOptions._conn: object expected"); - message._conn = $root.protos.args.AzureEventHubConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupNSQOptions._conn: object expected"); + message._conn = $root.protos.args.NSQConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupAzureEventHubOptions.args: object expected"); - message.args = $root.protos.args.AzureEventHubReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupNSQOptions.args: object expected"); + message.args = $root.protos.args.NSQReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupAzureEventHubOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupNSQOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupAzureEventHubOptions + * @memberof protos.opts.ReadGroupNSQOptions * @static - * @param {protos.opts.ReadGroupAzureEventHubOptions} message ReadGroupAzureEventHubOptions + * @param {protos.opts.ReadGroupNSQOptions} message ReadGroupNSQOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupAzureEventHubOptions.toObject = function toObject(message, options) { + ReadGroupNSQOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27843,45 +26016,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AzureEventHubConn.toObject(message._conn, options); + object._conn = $root.protos.args.NSQConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AzureEventHubReadArgs.toObject(message.args, options); + object.args = $root.protos.args.NSQReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupAzureEventHubOptions to JSON. + * Converts this ReadGroupNSQOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupAzureEventHubOptions + * @memberof protos.opts.ReadGroupNSQOptions * @instance * @returns {Object.} JSON object */ - ReadGroupAzureEventHubOptions.prototype.toJSON = function toJSON() { + ReadGroupNSQOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupAzureEventHubOptions; + return ReadGroupNSQOptions; })(); - opts.ReadGroupAzureServiceBusOptions = (function() { + opts.ReadGroupPostgresOptions = (function() { /** - * Properties of a ReadGroupAzureServiceBusOptions. + * Properties of a ReadGroupPostgresOptions. * @memberof protos.opts - * @interface IReadGroupAzureServiceBusOptions - * @property {protos.args.IAzureServiceBusConn|null} [_conn] ReadGroupAzureServiceBusOptions _conn - * @property {protos.args.IAzureServiceBusReadArgs|null} [args] ReadGroupAzureServiceBusOptions args + * @interface IReadGroupPostgresOptions + * @property {protos.args.IPostgresConn|null} [_conn] ReadGroupPostgresOptions _conn + * @property {protos.args.IPostgresReadArgs|null} [args] ReadGroupPostgresOptions args */ /** - * Constructs a new ReadGroupAzureServiceBusOptions. + * Constructs a new ReadGroupPostgresOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupAzureServiceBusOptions. - * @implements IReadGroupAzureServiceBusOptions + * @classdesc Represents a ReadGroupPostgresOptions. + * @implements IReadGroupPostgresOptions * @constructor - * @param {protos.opts.IReadGroupAzureServiceBusOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupPostgresOptions=} [properties] Properties to set */ - function ReadGroupAzureServiceBusOptions(properties) { + function ReadGroupPostgresOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27889,88 +26062,88 @@ $root.protos = (function() { } /** - * ReadGroupAzureServiceBusOptions _conn. - * @member {protos.args.IAzureServiceBusConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupAzureServiceBusOptions + * ReadGroupPostgresOptions _conn. + * @member {protos.args.IPostgresConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupPostgresOptions * @instance */ - ReadGroupAzureServiceBusOptions.prototype._conn = null; + ReadGroupPostgresOptions.prototype._conn = null; /** - * ReadGroupAzureServiceBusOptions args. - * @member {protos.args.IAzureServiceBusReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupAzureServiceBusOptions + * ReadGroupPostgresOptions args. + * @member {protos.args.IPostgresReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupPostgresOptions * @instance */ - ReadGroupAzureServiceBusOptions.prototype.args = null; + ReadGroupPostgresOptions.prototype.args = null; /** - * Creates a new ReadGroupAzureServiceBusOptions instance using the specified properties. + * Creates a new ReadGroupPostgresOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupAzureServiceBusOptions + * @memberof protos.opts.ReadGroupPostgresOptions * @static - * @param {protos.opts.IReadGroupAzureServiceBusOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupAzureServiceBusOptions} ReadGroupAzureServiceBusOptions instance + * @param {protos.opts.IReadGroupPostgresOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupPostgresOptions} ReadGroupPostgresOptions instance */ - ReadGroupAzureServiceBusOptions.create = function create(properties) { - return new ReadGroupAzureServiceBusOptions(properties); + ReadGroupPostgresOptions.create = function create(properties) { + return new ReadGroupPostgresOptions(properties); }; /** - * Encodes the specified ReadGroupAzureServiceBusOptions message. Does not implicitly {@link protos.opts.ReadGroupAzureServiceBusOptions.verify|verify} messages. + * Encodes the specified ReadGroupPostgresOptions message. Does not implicitly {@link protos.opts.ReadGroupPostgresOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupAzureServiceBusOptions + * @memberof protos.opts.ReadGroupPostgresOptions * @static - * @param {protos.opts.IReadGroupAzureServiceBusOptions} message ReadGroupAzureServiceBusOptions message or plain object to encode + * @param {protos.opts.IReadGroupPostgresOptions} message ReadGroupPostgresOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupAzureServiceBusOptions.encode = function encode(message, writer) { + ReadGroupPostgresOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AzureServiceBusConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.PostgresConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AzureServiceBusReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.PostgresReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupAzureServiceBusOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAzureServiceBusOptions.verify|verify} messages. + * Encodes the specified ReadGroupPostgresOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupPostgresOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupAzureServiceBusOptions + * @memberof protos.opts.ReadGroupPostgresOptions * @static - * @param {protos.opts.IReadGroupAzureServiceBusOptions} message ReadGroupAzureServiceBusOptions message or plain object to encode + * @param {protos.opts.IReadGroupPostgresOptions} message ReadGroupPostgresOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupAzureServiceBusOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupPostgresOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupAzureServiceBusOptions message from the specified reader or buffer. + * Decodes a ReadGroupPostgresOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupAzureServiceBusOptions + * @memberof protos.opts.ReadGroupPostgresOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupAzureServiceBusOptions} ReadGroupAzureServiceBusOptions + * @returns {protos.opts.ReadGroupPostgresOptions} ReadGroupPostgresOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupAzureServiceBusOptions.decode = function decode(reader, length) { + ReadGroupPostgresOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupAzureServiceBusOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupPostgresOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.AzureServiceBusConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.PostgresConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.AzureServiceBusReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.PostgresReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -27981,39 +26154,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupAzureServiceBusOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupPostgresOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupAzureServiceBusOptions + * @memberof protos.opts.ReadGroupPostgresOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupAzureServiceBusOptions} ReadGroupAzureServiceBusOptions + * @returns {protos.opts.ReadGroupPostgresOptions} ReadGroupPostgresOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupAzureServiceBusOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupPostgresOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupAzureServiceBusOptions message. + * Verifies a ReadGroupPostgresOptions message. * @function verify - * @memberof protos.opts.ReadGroupAzureServiceBusOptions + * @memberof protos.opts.ReadGroupPostgresOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupAzureServiceBusOptions.verify = function verify(message) { + ReadGroupPostgresOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AzureServiceBusConn.verify(message._conn); + var error = $root.protos.args.PostgresConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AzureServiceBusReadArgs.verify(message.args); + var error = $root.protos.args.PostgresReadArgs.verify(message.args); if (error) return "args." + error; } @@ -28021,40 +26194,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupAzureServiceBusOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupPostgresOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupAzureServiceBusOptions + * @memberof protos.opts.ReadGroupPostgresOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupAzureServiceBusOptions} ReadGroupAzureServiceBusOptions + * @returns {protos.opts.ReadGroupPostgresOptions} ReadGroupPostgresOptions */ - ReadGroupAzureServiceBusOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupAzureServiceBusOptions) + ReadGroupPostgresOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupPostgresOptions) return object; - var message = new $root.protos.opts.ReadGroupAzureServiceBusOptions(); + var message = new $root.protos.opts.ReadGroupPostgresOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupAzureServiceBusOptions._conn: object expected"); - message._conn = $root.protos.args.AzureServiceBusConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupPostgresOptions._conn: object expected"); + message._conn = $root.protos.args.PostgresConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupAzureServiceBusOptions.args: object expected"); - message.args = $root.protos.args.AzureServiceBusReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupPostgresOptions.args: object expected"); + message.args = $root.protos.args.PostgresReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupAzureServiceBusOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupPostgresOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupAzureServiceBusOptions + * @memberof protos.opts.ReadGroupPostgresOptions * @static - * @param {protos.opts.ReadGroupAzureServiceBusOptions} message ReadGroupAzureServiceBusOptions + * @param {protos.opts.ReadGroupPostgresOptions} message ReadGroupPostgresOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupAzureServiceBusOptions.toObject = function toObject(message, options) { + ReadGroupPostgresOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28063,45 +26236,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AzureServiceBusConn.toObject(message._conn, options); + object._conn = $root.protos.args.PostgresConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AzureServiceBusReadArgs.toObject(message.args, options); + object.args = $root.protos.args.PostgresReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupAzureServiceBusOptions to JSON. + * Converts this ReadGroupPostgresOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupAzureServiceBusOptions + * @memberof protos.opts.ReadGroupPostgresOptions * @instance * @returns {Object.} JSON object */ - ReadGroupAzureServiceBusOptions.prototype.toJSON = function toJSON() { + ReadGroupPostgresOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupAzureServiceBusOptions; + return ReadGroupPostgresOptions; })(); - opts.ReadGroupMQTTOptions = (function() { + opts.ReadGroupPulsarOptions = (function() { /** - * Properties of a ReadGroupMQTTOptions. + * Properties of a ReadGroupPulsarOptions. * @memberof protos.opts - * @interface IReadGroupMQTTOptions - * @property {protos.args.IMQTTConn|null} [_conn] ReadGroupMQTTOptions _conn - * @property {protos.args.IMQTTReadArgs|null} [args] ReadGroupMQTTOptions args + * @interface IReadGroupPulsarOptions + * @property {protos.args.IPulsarConn|null} [_conn] ReadGroupPulsarOptions _conn + * @property {protos.args.IPulsarReadArgs|null} [args] ReadGroupPulsarOptions args */ /** - * Constructs a new ReadGroupMQTTOptions. + * Constructs a new ReadGroupPulsarOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupMQTTOptions. - * @implements IReadGroupMQTTOptions + * @classdesc Represents a ReadGroupPulsarOptions. + * @implements IReadGroupPulsarOptions * @constructor - * @param {protos.opts.IReadGroupMQTTOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupPulsarOptions=} [properties] Properties to set */ - function ReadGroupMQTTOptions(properties) { + function ReadGroupPulsarOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28109,88 +26282,88 @@ $root.protos = (function() { } /** - * ReadGroupMQTTOptions _conn. - * @member {protos.args.IMQTTConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupMQTTOptions + * ReadGroupPulsarOptions _conn. + * @member {protos.args.IPulsarConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupPulsarOptions * @instance */ - ReadGroupMQTTOptions.prototype._conn = null; + ReadGroupPulsarOptions.prototype._conn = null; /** - * ReadGroupMQTTOptions args. - * @member {protos.args.IMQTTReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupMQTTOptions + * ReadGroupPulsarOptions args. + * @member {protos.args.IPulsarReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupPulsarOptions * @instance */ - ReadGroupMQTTOptions.prototype.args = null; + ReadGroupPulsarOptions.prototype.args = null; /** - * Creates a new ReadGroupMQTTOptions instance using the specified properties. + * Creates a new ReadGroupPulsarOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupMQTTOptions + * @memberof protos.opts.ReadGroupPulsarOptions * @static - * @param {protos.opts.IReadGroupMQTTOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupMQTTOptions} ReadGroupMQTTOptions instance + * @param {protos.opts.IReadGroupPulsarOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupPulsarOptions} ReadGroupPulsarOptions instance */ - ReadGroupMQTTOptions.create = function create(properties) { - return new ReadGroupMQTTOptions(properties); + ReadGroupPulsarOptions.create = function create(properties) { + return new ReadGroupPulsarOptions(properties); }; /** - * Encodes the specified ReadGroupMQTTOptions message. Does not implicitly {@link protos.opts.ReadGroupMQTTOptions.verify|verify} messages. + * Encodes the specified ReadGroupPulsarOptions message. Does not implicitly {@link protos.opts.ReadGroupPulsarOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupMQTTOptions + * @memberof protos.opts.ReadGroupPulsarOptions * @static - * @param {protos.opts.IReadGroupMQTTOptions} message ReadGroupMQTTOptions message or plain object to encode + * @param {protos.opts.IReadGroupPulsarOptions} message ReadGroupPulsarOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupMQTTOptions.encode = function encode(message, writer) { + ReadGroupPulsarOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.MQTTConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.PulsarConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.MQTTReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.PulsarReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupMQTTOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupMQTTOptions.verify|verify} messages. + * Encodes the specified ReadGroupPulsarOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupPulsarOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupMQTTOptions + * @memberof protos.opts.ReadGroupPulsarOptions * @static - * @param {protos.opts.IReadGroupMQTTOptions} message ReadGroupMQTTOptions message or plain object to encode + * @param {protos.opts.IReadGroupPulsarOptions} message ReadGroupPulsarOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupMQTTOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupPulsarOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupMQTTOptions message from the specified reader or buffer. + * Decodes a ReadGroupPulsarOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupMQTTOptions + * @memberof protos.opts.ReadGroupPulsarOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupMQTTOptions} ReadGroupMQTTOptions + * @returns {protos.opts.ReadGroupPulsarOptions} ReadGroupPulsarOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupMQTTOptions.decode = function decode(reader, length) { + ReadGroupPulsarOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupMQTTOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupPulsarOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.MQTTConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.PulsarConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.MQTTReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.PulsarReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -28201,39 +26374,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupMQTTOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupPulsarOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupMQTTOptions + * @memberof protos.opts.ReadGroupPulsarOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupMQTTOptions} ReadGroupMQTTOptions + * @returns {protos.opts.ReadGroupPulsarOptions} ReadGroupPulsarOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupMQTTOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupPulsarOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupMQTTOptions message. + * Verifies a ReadGroupPulsarOptions message. * @function verify - * @memberof protos.opts.ReadGroupMQTTOptions + * @memberof protos.opts.ReadGroupPulsarOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupMQTTOptions.verify = function verify(message) { + ReadGroupPulsarOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.MQTTConn.verify(message._conn); + var error = $root.protos.args.PulsarConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.MQTTReadArgs.verify(message.args); + var error = $root.protos.args.PulsarReadArgs.verify(message.args); if (error) return "args." + error; } @@ -28241,40 +26414,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupMQTTOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupPulsarOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupMQTTOptions + * @memberof protos.opts.ReadGroupPulsarOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupMQTTOptions} ReadGroupMQTTOptions + * @returns {protos.opts.ReadGroupPulsarOptions} ReadGroupPulsarOptions */ - ReadGroupMQTTOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupMQTTOptions) + ReadGroupPulsarOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupPulsarOptions) return object; - var message = new $root.protos.opts.ReadGroupMQTTOptions(); + var message = new $root.protos.opts.ReadGroupPulsarOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupMQTTOptions._conn: object expected"); - message._conn = $root.protos.args.MQTTConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupPulsarOptions._conn: object expected"); + message._conn = $root.protos.args.PulsarConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupMQTTOptions.args: object expected"); - message.args = $root.protos.args.MQTTReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupPulsarOptions.args: object expected"); + message.args = $root.protos.args.PulsarReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupMQTTOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupPulsarOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupMQTTOptions + * @memberof protos.opts.ReadGroupPulsarOptions * @static - * @param {protos.opts.ReadGroupMQTTOptions} message ReadGroupMQTTOptions + * @param {protos.opts.ReadGroupPulsarOptions} message ReadGroupPulsarOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupMQTTOptions.toObject = function toObject(message, options) { + ReadGroupPulsarOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28283,45 +26456,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.MQTTConn.toObject(message._conn, options); + object._conn = $root.protos.args.PulsarConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.MQTTReadArgs.toObject(message.args, options); + object.args = $root.protos.args.PulsarReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupMQTTOptions to JSON. + * Converts this ReadGroupPulsarOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupMQTTOptions + * @memberof protos.opts.ReadGroupPulsarOptions * @instance * @returns {Object.} JSON object */ - ReadGroupMQTTOptions.prototype.toJSON = function toJSON() { + ReadGroupPulsarOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupMQTTOptions; + return ReadGroupPulsarOptions; })(); - opts.ReadGroupGCPPubSubOptions = (function() { + opts.ReadGroupRabbitOptions = (function() { /** - * Properties of a ReadGroupGCPPubSubOptions. + * Properties of a ReadGroupRabbitOptions. * @memberof protos.opts - * @interface IReadGroupGCPPubSubOptions - * @property {protos.args.IGCPPubSubConn|null} [_conn] ReadGroupGCPPubSubOptions _conn - * @property {protos.args.IGCPPubSubReadArgs|null} [args] ReadGroupGCPPubSubOptions args + * @interface IReadGroupRabbitOptions + * @property {protos.args.IRabbitConn|null} [_conn] ReadGroupRabbitOptions _conn + * @property {protos.args.IRabbitReadArgs|null} [args] ReadGroupRabbitOptions args */ /** - * Constructs a new ReadGroupGCPPubSubOptions. + * Constructs a new ReadGroupRabbitOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupGCPPubSubOptions. - * @implements IReadGroupGCPPubSubOptions + * @classdesc Represents a ReadGroupRabbitOptions. + * @implements IReadGroupRabbitOptions * @constructor - * @param {protos.opts.IReadGroupGCPPubSubOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupRabbitOptions=} [properties] Properties to set */ - function ReadGroupGCPPubSubOptions(properties) { + function ReadGroupRabbitOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28329,88 +26502,88 @@ $root.protos = (function() { } /** - * ReadGroupGCPPubSubOptions _conn. - * @member {protos.args.IGCPPubSubConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupGCPPubSubOptions + * ReadGroupRabbitOptions _conn. + * @member {protos.args.IRabbitConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupRabbitOptions * @instance */ - ReadGroupGCPPubSubOptions.prototype._conn = null; + ReadGroupRabbitOptions.prototype._conn = null; /** - * ReadGroupGCPPubSubOptions args. - * @member {protos.args.IGCPPubSubReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupGCPPubSubOptions + * ReadGroupRabbitOptions args. + * @member {protos.args.IRabbitReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupRabbitOptions * @instance */ - ReadGroupGCPPubSubOptions.prototype.args = null; + ReadGroupRabbitOptions.prototype.args = null; /** - * Creates a new ReadGroupGCPPubSubOptions instance using the specified properties. + * Creates a new ReadGroupRabbitOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @memberof protos.opts.ReadGroupRabbitOptions * @static - * @param {protos.opts.IReadGroupGCPPubSubOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupGCPPubSubOptions} ReadGroupGCPPubSubOptions instance + * @param {protos.opts.IReadGroupRabbitOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupRabbitOptions} ReadGroupRabbitOptions instance */ - ReadGroupGCPPubSubOptions.create = function create(properties) { - return new ReadGroupGCPPubSubOptions(properties); + ReadGroupRabbitOptions.create = function create(properties) { + return new ReadGroupRabbitOptions(properties); }; /** - * Encodes the specified ReadGroupGCPPubSubOptions message. Does not implicitly {@link protos.opts.ReadGroupGCPPubSubOptions.verify|verify} messages. + * Encodes the specified ReadGroupRabbitOptions message. Does not implicitly {@link protos.opts.ReadGroupRabbitOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @memberof protos.opts.ReadGroupRabbitOptions * @static - * @param {protos.opts.IReadGroupGCPPubSubOptions} message ReadGroupGCPPubSubOptions message or plain object to encode + * @param {protos.opts.IReadGroupRabbitOptions} message ReadGroupRabbitOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupGCPPubSubOptions.encode = function encode(message, writer) { + ReadGroupRabbitOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.GCPPubSubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.RabbitConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.GCPPubSubReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.RabbitReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupGCPPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupGCPPubSubOptions.verify|verify} messages. + * Encodes the specified ReadGroupRabbitOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRabbitOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @memberof protos.opts.ReadGroupRabbitOptions * @static - * @param {protos.opts.IReadGroupGCPPubSubOptions} message ReadGroupGCPPubSubOptions message or plain object to encode + * @param {protos.opts.IReadGroupRabbitOptions} message ReadGroupRabbitOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupGCPPubSubOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupRabbitOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupGCPPubSubOptions message from the specified reader or buffer. + * Decodes a ReadGroupRabbitOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @memberof protos.opts.ReadGroupRabbitOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupGCPPubSubOptions} ReadGroupGCPPubSubOptions + * @returns {protos.opts.ReadGroupRabbitOptions} ReadGroupRabbitOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupGCPPubSubOptions.decode = function decode(reader, length) { + ReadGroupRabbitOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupGCPPubSubOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupRabbitOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.GCPPubSubConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.RabbitConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.GCPPubSubReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.RabbitReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -28421,39 +26594,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupGCPPubSubOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupRabbitOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @memberof protos.opts.ReadGroupRabbitOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupGCPPubSubOptions} ReadGroupGCPPubSubOptions + * @returns {protos.opts.ReadGroupRabbitOptions} ReadGroupRabbitOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupGCPPubSubOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupRabbitOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupGCPPubSubOptions message. + * Verifies a ReadGroupRabbitOptions message. * @function verify - * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @memberof protos.opts.ReadGroupRabbitOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupGCPPubSubOptions.verify = function verify(message) { + ReadGroupRabbitOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.GCPPubSubConn.verify(message._conn); + var error = $root.protos.args.RabbitConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.GCPPubSubReadArgs.verify(message.args); + var error = $root.protos.args.RabbitReadArgs.verify(message.args); if (error) return "args." + error; } @@ -28461,40 +26634,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupGCPPubSubOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupRabbitOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @memberof protos.opts.ReadGroupRabbitOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupGCPPubSubOptions} ReadGroupGCPPubSubOptions + * @returns {protos.opts.ReadGroupRabbitOptions} ReadGroupRabbitOptions */ - ReadGroupGCPPubSubOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupGCPPubSubOptions) + ReadGroupRabbitOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupRabbitOptions) return object; - var message = new $root.protos.opts.ReadGroupGCPPubSubOptions(); + var message = new $root.protos.opts.ReadGroupRabbitOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupGCPPubSubOptions._conn: object expected"); - message._conn = $root.protos.args.GCPPubSubConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupRabbitOptions._conn: object expected"); + message._conn = $root.protos.args.RabbitConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupGCPPubSubOptions.args: object expected"); - message.args = $root.protos.args.GCPPubSubReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupRabbitOptions.args: object expected"); + message.args = $root.protos.args.RabbitReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupGCPPubSubOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupRabbitOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @memberof protos.opts.ReadGroupRabbitOptions * @static - * @param {protos.opts.ReadGroupGCPPubSubOptions} message ReadGroupGCPPubSubOptions + * @param {protos.opts.ReadGroupRabbitOptions} message ReadGroupRabbitOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupGCPPubSubOptions.toObject = function toObject(message, options) { + ReadGroupRabbitOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28503,45 +26676,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.GCPPubSubConn.toObject(message._conn, options); + object._conn = $root.protos.args.RabbitConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.GCPPubSubReadArgs.toObject(message.args, options); + object.args = $root.protos.args.RabbitReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupGCPPubSubOptions to JSON. + * Converts this ReadGroupRabbitOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @memberof protos.opts.ReadGroupRabbitOptions * @instance * @returns {Object.} JSON object */ - ReadGroupGCPPubSubOptions.prototype.toJSON = function toJSON() { + ReadGroupRabbitOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupGCPPubSubOptions; + return ReadGroupRabbitOptions; })(); - opts.ReadGroupKubeMQQueueOptions = (function() { + opts.ReadGroupRabbitStreamsOptions = (function() { /** - * Properties of a ReadGroupKubeMQQueueOptions. + * Properties of a ReadGroupRabbitStreamsOptions. * @memberof protos.opts - * @interface IReadGroupKubeMQQueueOptions - * @property {protos.args.IKubeMQQueueConn|null} [_conn] ReadGroupKubeMQQueueOptions _conn - * @property {protos.args.IKubeMQQueueReadArgs|null} [args] ReadGroupKubeMQQueueOptions args + * @interface IReadGroupRabbitStreamsOptions + * @property {protos.args.IRabbitStreamsConn|null} [_conn] ReadGroupRabbitStreamsOptions _conn + * @property {protos.args.IRabbitStreamsReadArgs|null} [args] ReadGroupRabbitStreamsOptions args */ /** - * Constructs a new ReadGroupKubeMQQueueOptions. + * Constructs a new ReadGroupRabbitStreamsOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupKubeMQQueueOptions. - * @implements IReadGroupKubeMQQueueOptions + * @classdesc Represents a ReadGroupRabbitStreamsOptions. + * @implements IReadGroupRabbitStreamsOptions * @constructor - * @param {protos.opts.IReadGroupKubeMQQueueOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupRabbitStreamsOptions=} [properties] Properties to set */ - function ReadGroupKubeMQQueueOptions(properties) { + function ReadGroupRabbitStreamsOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28549,88 +26722,88 @@ $root.protos = (function() { } /** - * ReadGroupKubeMQQueueOptions _conn. - * @member {protos.args.IKubeMQQueueConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupKubeMQQueueOptions + * ReadGroupRabbitStreamsOptions _conn. + * @member {protos.args.IRabbitStreamsConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupRabbitStreamsOptions * @instance */ - ReadGroupKubeMQQueueOptions.prototype._conn = null; + ReadGroupRabbitStreamsOptions.prototype._conn = null; /** - * ReadGroupKubeMQQueueOptions args. - * @member {protos.args.IKubeMQQueueReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupKubeMQQueueOptions + * ReadGroupRabbitStreamsOptions args. + * @member {protos.args.IRabbitStreamsReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupRabbitStreamsOptions * @instance */ - ReadGroupKubeMQQueueOptions.prototype.args = null; + ReadGroupRabbitStreamsOptions.prototype.args = null; /** - * Creates a new ReadGroupKubeMQQueueOptions instance using the specified properties. + * Creates a new ReadGroupRabbitStreamsOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupKubeMQQueueOptions + * @memberof protos.opts.ReadGroupRabbitStreamsOptions * @static - * @param {protos.opts.IReadGroupKubeMQQueueOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupKubeMQQueueOptions} ReadGroupKubeMQQueueOptions instance + * @param {protos.opts.IReadGroupRabbitStreamsOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupRabbitStreamsOptions} ReadGroupRabbitStreamsOptions instance */ - ReadGroupKubeMQQueueOptions.create = function create(properties) { - return new ReadGroupKubeMQQueueOptions(properties); + ReadGroupRabbitStreamsOptions.create = function create(properties) { + return new ReadGroupRabbitStreamsOptions(properties); }; /** - * Encodes the specified ReadGroupKubeMQQueueOptions message. Does not implicitly {@link protos.opts.ReadGroupKubeMQQueueOptions.verify|verify} messages. + * Encodes the specified ReadGroupRabbitStreamsOptions message. Does not implicitly {@link protos.opts.ReadGroupRabbitStreamsOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupKubeMQQueueOptions + * @memberof protos.opts.ReadGroupRabbitStreamsOptions * @static - * @param {protos.opts.IReadGroupKubeMQQueueOptions} message ReadGroupKubeMQQueueOptions message or plain object to encode + * @param {protos.opts.IReadGroupRabbitStreamsOptions} message ReadGroupRabbitStreamsOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupKubeMQQueueOptions.encode = function encode(message, writer) { + ReadGroupRabbitStreamsOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.KubeMQQueueConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.RabbitStreamsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.KubeMQQueueReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.RabbitStreamsReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupKubeMQQueueOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupKubeMQQueueOptions.verify|verify} messages. + * Encodes the specified ReadGroupRabbitStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRabbitStreamsOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupKubeMQQueueOptions + * @memberof protos.opts.ReadGroupRabbitStreamsOptions * @static - * @param {protos.opts.IReadGroupKubeMQQueueOptions} message ReadGroupKubeMQQueueOptions message or plain object to encode + * @param {protos.opts.IReadGroupRabbitStreamsOptions} message ReadGroupRabbitStreamsOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupKubeMQQueueOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupRabbitStreamsOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupKubeMQQueueOptions message from the specified reader or buffer. + * Decodes a ReadGroupRabbitStreamsOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupKubeMQQueueOptions + * @memberof protos.opts.ReadGroupRabbitStreamsOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupKubeMQQueueOptions} ReadGroupKubeMQQueueOptions + * @returns {protos.opts.ReadGroupRabbitStreamsOptions} ReadGroupRabbitStreamsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupKubeMQQueueOptions.decode = function decode(reader, length) { + ReadGroupRabbitStreamsOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupKubeMQQueueOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupRabbitStreamsOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.KubeMQQueueConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.RabbitStreamsConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.KubeMQQueueReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.RabbitStreamsReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -28641,39 +26814,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupKubeMQQueueOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupRabbitStreamsOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupKubeMQQueueOptions + * @memberof protos.opts.ReadGroupRabbitStreamsOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupKubeMQQueueOptions} ReadGroupKubeMQQueueOptions + * @returns {protos.opts.ReadGroupRabbitStreamsOptions} ReadGroupRabbitStreamsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupKubeMQQueueOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupRabbitStreamsOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupKubeMQQueueOptions message. + * Verifies a ReadGroupRabbitStreamsOptions message. * @function verify - * @memberof protos.opts.ReadGroupKubeMQQueueOptions + * @memberof protos.opts.ReadGroupRabbitStreamsOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupKubeMQQueueOptions.verify = function verify(message) { + ReadGroupRabbitStreamsOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.KubeMQQueueConn.verify(message._conn); + var error = $root.protos.args.RabbitStreamsConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.KubeMQQueueReadArgs.verify(message.args); + var error = $root.protos.args.RabbitStreamsReadArgs.verify(message.args); if (error) return "args." + error; } @@ -28681,40 +26854,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupKubeMQQueueOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupRabbitStreamsOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupKubeMQQueueOptions + * @memberof protos.opts.ReadGroupRabbitStreamsOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupKubeMQQueueOptions} ReadGroupKubeMQQueueOptions + * @returns {protos.opts.ReadGroupRabbitStreamsOptions} ReadGroupRabbitStreamsOptions */ - ReadGroupKubeMQQueueOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupKubeMQQueueOptions) + ReadGroupRabbitStreamsOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupRabbitStreamsOptions) return object; - var message = new $root.protos.opts.ReadGroupKubeMQQueueOptions(); + var message = new $root.protos.opts.ReadGroupRabbitStreamsOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupKubeMQQueueOptions._conn: object expected"); - message._conn = $root.protos.args.KubeMQQueueConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupRabbitStreamsOptions._conn: object expected"); + message._conn = $root.protos.args.RabbitStreamsConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupKubeMQQueueOptions.args: object expected"); - message.args = $root.protos.args.KubeMQQueueReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupRabbitStreamsOptions.args: object expected"); + message.args = $root.protos.args.RabbitStreamsReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupKubeMQQueueOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupRabbitStreamsOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupKubeMQQueueOptions + * @memberof protos.opts.ReadGroupRabbitStreamsOptions * @static - * @param {protos.opts.ReadGroupKubeMQQueueOptions} message ReadGroupKubeMQQueueOptions + * @param {protos.opts.ReadGroupRabbitStreamsOptions} message ReadGroupRabbitStreamsOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupKubeMQQueueOptions.toObject = function toObject(message, options) { + ReadGroupRabbitStreamsOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28723,45 +26896,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.KubeMQQueueConn.toObject(message._conn, options); + object._conn = $root.protos.args.RabbitStreamsConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.KubeMQQueueReadArgs.toObject(message.args, options); + object.args = $root.protos.args.RabbitStreamsReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupKubeMQQueueOptions to JSON. + * Converts this ReadGroupRabbitStreamsOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupKubeMQQueueOptions + * @memberof protos.opts.ReadGroupRabbitStreamsOptions * @instance * @returns {Object.} JSON object */ - ReadGroupKubeMQQueueOptions.prototype.toJSON = function toJSON() { + ReadGroupRabbitStreamsOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupKubeMQQueueOptions; + return ReadGroupRabbitStreamsOptions; })(); - opts.ReadGroupAWSKinesisOptions = (function() { + opts.ReadGroupRedisPubSubOptions = (function() { /** - * Properties of a ReadGroupAWSKinesisOptions. + * Properties of a ReadGroupRedisPubSubOptions. * @memberof protos.opts - * @interface IReadGroupAWSKinesisOptions - * @property {protos.args.IAWSKinesisConn|null} [_conn] ReadGroupAWSKinesisOptions _conn - * @property {protos.args.IAWSKinesisReadArgs|null} [args] ReadGroupAWSKinesisOptions args + * @interface IReadGroupRedisPubSubOptions + * @property {protos.args.IRedisPubSubConn|null} [_conn] ReadGroupRedisPubSubOptions _conn + * @property {protos.args.IRedisPubSubReadArgs|null} [args] ReadGroupRedisPubSubOptions args */ /** - * Constructs a new ReadGroupAWSKinesisOptions. + * Constructs a new ReadGroupRedisPubSubOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupAWSKinesisOptions. - * @implements IReadGroupAWSKinesisOptions + * @classdesc Represents a ReadGroupRedisPubSubOptions. + * @implements IReadGroupRedisPubSubOptions * @constructor - * @param {protos.opts.IReadGroupAWSKinesisOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupRedisPubSubOptions=} [properties] Properties to set */ - function ReadGroupAWSKinesisOptions(properties) { + function ReadGroupRedisPubSubOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28769,88 +26942,88 @@ $root.protos = (function() { } /** - * ReadGroupAWSKinesisOptions _conn. - * @member {protos.args.IAWSKinesisConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupAWSKinesisOptions + * ReadGroupRedisPubSubOptions _conn. + * @member {protos.args.IRedisPubSubConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupRedisPubSubOptions * @instance */ - ReadGroupAWSKinesisOptions.prototype._conn = null; + ReadGroupRedisPubSubOptions.prototype._conn = null; /** - * ReadGroupAWSKinesisOptions args. - * @member {protos.args.IAWSKinesisReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupAWSKinesisOptions + * ReadGroupRedisPubSubOptions args. + * @member {protos.args.IRedisPubSubReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupRedisPubSubOptions * @instance */ - ReadGroupAWSKinesisOptions.prototype.args = null; + ReadGroupRedisPubSubOptions.prototype.args = null; /** - * Creates a new ReadGroupAWSKinesisOptions instance using the specified properties. + * Creates a new ReadGroupRedisPubSubOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupAWSKinesisOptions + * @memberof protos.opts.ReadGroupRedisPubSubOptions * @static - * @param {protos.opts.IReadGroupAWSKinesisOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupAWSKinesisOptions} ReadGroupAWSKinesisOptions instance + * @param {protos.opts.IReadGroupRedisPubSubOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupRedisPubSubOptions} ReadGroupRedisPubSubOptions instance */ - ReadGroupAWSKinesisOptions.create = function create(properties) { - return new ReadGroupAWSKinesisOptions(properties); + ReadGroupRedisPubSubOptions.create = function create(properties) { + return new ReadGroupRedisPubSubOptions(properties); }; /** - * Encodes the specified ReadGroupAWSKinesisOptions message. Does not implicitly {@link protos.opts.ReadGroupAWSKinesisOptions.verify|verify} messages. + * Encodes the specified ReadGroupRedisPubSubOptions message. Does not implicitly {@link protos.opts.ReadGroupRedisPubSubOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupAWSKinesisOptions + * @memberof protos.opts.ReadGroupRedisPubSubOptions * @static - * @param {protos.opts.IReadGroupAWSKinesisOptions} message ReadGroupAWSKinesisOptions message or plain object to encode + * @param {protos.opts.IReadGroupRedisPubSubOptions} message ReadGroupRedisPubSubOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupAWSKinesisOptions.encode = function encode(message, writer) { + ReadGroupRedisPubSubOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AWSKinesisConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.RedisPubSubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AWSKinesisReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.RedisPubSubReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupAWSKinesisOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAWSKinesisOptions.verify|verify} messages. + * Encodes the specified ReadGroupRedisPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRedisPubSubOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupAWSKinesisOptions + * @memberof protos.opts.ReadGroupRedisPubSubOptions * @static - * @param {protos.opts.IReadGroupAWSKinesisOptions} message ReadGroupAWSKinesisOptions message or plain object to encode + * @param {protos.opts.IReadGroupRedisPubSubOptions} message ReadGroupRedisPubSubOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupAWSKinesisOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupRedisPubSubOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupAWSKinesisOptions message from the specified reader or buffer. + * Decodes a ReadGroupRedisPubSubOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupAWSKinesisOptions + * @memberof protos.opts.ReadGroupRedisPubSubOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupAWSKinesisOptions} ReadGroupAWSKinesisOptions + * @returns {protos.opts.ReadGroupRedisPubSubOptions} ReadGroupRedisPubSubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupAWSKinesisOptions.decode = function decode(reader, length) { + ReadGroupRedisPubSubOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupAWSKinesisOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupRedisPubSubOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.AWSKinesisConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.RedisPubSubConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.AWSKinesisReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.RedisPubSubReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -28861,39 +27034,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupAWSKinesisOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupRedisPubSubOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupAWSKinesisOptions + * @memberof protos.opts.ReadGroupRedisPubSubOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupAWSKinesisOptions} ReadGroupAWSKinesisOptions + * @returns {protos.opts.ReadGroupRedisPubSubOptions} ReadGroupRedisPubSubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupAWSKinesisOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupRedisPubSubOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupAWSKinesisOptions message. + * Verifies a ReadGroupRedisPubSubOptions message. * @function verify - * @memberof protos.opts.ReadGroupAWSKinesisOptions + * @memberof protos.opts.ReadGroupRedisPubSubOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupAWSKinesisOptions.verify = function verify(message) { + ReadGroupRedisPubSubOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AWSKinesisConn.verify(message._conn); + var error = $root.protos.args.RedisPubSubConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AWSKinesisReadArgs.verify(message.args); + var error = $root.protos.args.RedisPubSubReadArgs.verify(message.args); if (error) return "args." + error; } @@ -28901,40 +27074,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupAWSKinesisOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupRedisPubSubOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupAWSKinesisOptions + * @memberof protos.opts.ReadGroupRedisPubSubOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupAWSKinesisOptions} ReadGroupAWSKinesisOptions + * @returns {protos.opts.ReadGroupRedisPubSubOptions} ReadGroupRedisPubSubOptions */ - ReadGroupAWSKinesisOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupAWSKinesisOptions) + ReadGroupRedisPubSubOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupRedisPubSubOptions) return object; - var message = new $root.protos.opts.ReadGroupAWSKinesisOptions(); + var message = new $root.protos.opts.ReadGroupRedisPubSubOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupAWSKinesisOptions._conn: object expected"); - message._conn = $root.protos.args.AWSKinesisConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupRedisPubSubOptions._conn: object expected"); + message._conn = $root.protos.args.RedisPubSubConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupAWSKinesisOptions.args: object expected"); - message.args = $root.protos.args.AWSKinesisReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupRedisPubSubOptions.args: object expected"); + message.args = $root.protos.args.RedisPubSubReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupAWSKinesisOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupRedisPubSubOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupAWSKinesisOptions + * @memberof protos.opts.ReadGroupRedisPubSubOptions * @static - * @param {protos.opts.ReadGroupAWSKinesisOptions} message ReadGroupAWSKinesisOptions + * @param {protos.opts.ReadGroupRedisPubSubOptions} message ReadGroupRedisPubSubOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupAWSKinesisOptions.toObject = function toObject(message, options) { + ReadGroupRedisPubSubOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -28943,45 +27116,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AWSKinesisConn.toObject(message._conn, options); + object._conn = $root.protos.args.RedisPubSubConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AWSKinesisReadArgs.toObject(message.args, options); + object.args = $root.protos.args.RedisPubSubReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupAWSKinesisOptions to JSON. + * Converts this ReadGroupRedisPubSubOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupAWSKinesisOptions + * @memberof protos.opts.ReadGroupRedisPubSubOptions * @instance * @returns {Object.} JSON object */ - ReadGroupAWSKinesisOptions.prototype.toJSON = function toJSON() { + ReadGroupRedisPubSubOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupAWSKinesisOptions; + return ReadGroupRedisPubSubOptions; })(); - opts.ReadGroupMemphisOptions = (function() { + opts.ReadGroupRedisStreamsOptions = (function() { /** - * Properties of a ReadGroupMemphisOptions. + * Properties of a ReadGroupRedisStreamsOptions. * @memberof protos.opts - * @interface IReadGroupMemphisOptions - * @property {protos.args.IMemphisConn|null} [_conn] ReadGroupMemphisOptions _conn - * @property {protos.args.IMemphisReadArgs|null} [args] ReadGroupMemphisOptions args + * @interface IReadGroupRedisStreamsOptions + * @property {protos.args.IRedisStreamsConn|null} [_conn] ReadGroupRedisStreamsOptions _conn + * @property {protos.args.IRedisStreamsReadArgs|null} [args] ReadGroupRedisStreamsOptions args */ /** - * Constructs a new ReadGroupMemphisOptions. + * Constructs a new ReadGroupRedisStreamsOptions. * @memberof protos.opts - * @classdesc Represents a ReadGroupMemphisOptions. - * @implements IReadGroupMemphisOptions + * @classdesc Represents a ReadGroupRedisStreamsOptions. + * @implements IReadGroupRedisStreamsOptions * @constructor - * @param {protos.opts.IReadGroupMemphisOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupRedisStreamsOptions=} [properties] Properties to set */ - function ReadGroupMemphisOptions(properties) { + function ReadGroupRedisStreamsOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -28989,88 +27162,88 @@ $root.protos = (function() { } /** - * ReadGroupMemphisOptions _conn. - * @member {protos.args.IMemphisConn|null|undefined} _conn - * @memberof protos.opts.ReadGroupMemphisOptions + * ReadGroupRedisStreamsOptions _conn. + * @member {protos.args.IRedisStreamsConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupRedisStreamsOptions * @instance */ - ReadGroupMemphisOptions.prototype._conn = null; + ReadGroupRedisStreamsOptions.prototype._conn = null; /** - * ReadGroupMemphisOptions args. - * @member {protos.args.IMemphisReadArgs|null|undefined} args - * @memberof protos.opts.ReadGroupMemphisOptions + * ReadGroupRedisStreamsOptions args. + * @member {protos.args.IRedisStreamsReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupRedisStreamsOptions * @instance */ - ReadGroupMemphisOptions.prototype.args = null; + ReadGroupRedisStreamsOptions.prototype.args = null; /** - * Creates a new ReadGroupMemphisOptions instance using the specified properties. + * Creates a new ReadGroupRedisStreamsOptions instance using the specified properties. * @function create - * @memberof protos.opts.ReadGroupMemphisOptions + * @memberof protos.opts.ReadGroupRedisStreamsOptions * @static - * @param {protos.opts.IReadGroupMemphisOptions=} [properties] Properties to set - * @returns {protos.opts.ReadGroupMemphisOptions} ReadGroupMemphisOptions instance + * @param {protos.opts.IReadGroupRedisStreamsOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupRedisStreamsOptions} ReadGroupRedisStreamsOptions instance */ - ReadGroupMemphisOptions.create = function create(properties) { - return new ReadGroupMemphisOptions(properties); + ReadGroupRedisStreamsOptions.create = function create(properties) { + return new ReadGroupRedisStreamsOptions(properties); }; /** - * Encodes the specified ReadGroupMemphisOptions message. Does not implicitly {@link protos.opts.ReadGroupMemphisOptions.verify|verify} messages. + * Encodes the specified ReadGroupRedisStreamsOptions message. Does not implicitly {@link protos.opts.ReadGroupRedisStreamsOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.ReadGroupMemphisOptions + * @memberof protos.opts.ReadGroupRedisStreamsOptions * @static - * @param {protos.opts.IReadGroupMemphisOptions} message ReadGroupMemphisOptions message or plain object to encode + * @param {protos.opts.IReadGroupRedisStreamsOptions} message ReadGroupRedisStreamsOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupMemphisOptions.encode = function encode(message, writer) { + ReadGroupRedisStreamsOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.MemphisConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.RedisStreamsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.MemphisReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.RedisStreamsReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ReadGroupMemphisOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupMemphisOptions.verify|verify} messages. + * Encodes the specified ReadGroupRedisStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupRedisStreamsOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.ReadGroupMemphisOptions + * @memberof protos.opts.ReadGroupRedisStreamsOptions * @static - * @param {protos.opts.IReadGroupMemphisOptions} message ReadGroupMemphisOptions message or plain object to encode + * @param {protos.opts.IReadGroupRedisStreamsOptions} message ReadGroupRedisStreamsOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadGroupMemphisOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupRedisStreamsOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadGroupMemphisOptions message from the specified reader or buffer. + * Decodes a ReadGroupRedisStreamsOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.ReadGroupMemphisOptions + * @memberof protos.opts.ReadGroupRedisStreamsOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.ReadGroupMemphisOptions} ReadGroupMemphisOptions + * @returns {protos.opts.ReadGroupRedisStreamsOptions} ReadGroupRedisStreamsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupMemphisOptions.decode = function decode(reader, length) { + ReadGroupRedisStreamsOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupMemphisOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupRedisStreamsOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.MemphisConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.RedisStreamsConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.MemphisReadArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.RedisStreamsReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -29081,39 +27254,39 @@ $root.protos = (function() { }; /** - * Decodes a ReadGroupMemphisOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupRedisStreamsOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.ReadGroupMemphisOptions + * @memberof protos.opts.ReadGroupRedisStreamsOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.ReadGroupMemphisOptions} ReadGroupMemphisOptions + * @returns {protos.opts.ReadGroupRedisStreamsOptions} ReadGroupRedisStreamsOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadGroupMemphisOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupRedisStreamsOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadGroupMemphisOptions message. + * Verifies a ReadGroupRedisStreamsOptions message. * @function verify - * @memberof protos.opts.ReadGroupMemphisOptions + * @memberof protos.opts.ReadGroupRedisStreamsOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadGroupMemphisOptions.verify = function verify(message) { + ReadGroupRedisStreamsOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.MemphisConn.verify(message._conn); + var error = $root.protos.args.RedisStreamsConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.MemphisReadArgs.verify(message.args); + var error = $root.protos.args.RedisStreamsReadArgs.verify(message.args); if (error) return "args." + error; } @@ -29121,40 +27294,40 @@ $root.protos = (function() { }; /** - * Creates a ReadGroupMemphisOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupRedisStreamsOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.ReadGroupMemphisOptions + * @memberof protos.opts.ReadGroupRedisStreamsOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.ReadGroupMemphisOptions} ReadGroupMemphisOptions + * @returns {protos.opts.ReadGroupRedisStreamsOptions} ReadGroupRedisStreamsOptions */ - ReadGroupMemphisOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.ReadGroupMemphisOptions) + ReadGroupRedisStreamsOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupRedisStreamsOptions) return object; - var message = new $root.protos.opts.ReadGroupMemphisOptions(); + var message = new $root.protos.opts.ReadGroupRedisStreamsOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.ReadGroupMemphisOptions._conn: object expected"); - message._conn = $root.protos.args.MemphisConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupRedisStreamsOptions._conn: object expected"); + message._conn = $root.protos.args.RedisStreamsConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.ReadGroupMemphisOptions.args: object expected"); - message.args = $root.protos.args.MemphisReadArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupRedisStreamsOptions.args: object expected"); + message.args = $root.protos.args.RedisStreamsReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a ReadGroupMemphisOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupRedisStreamsOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.ReadGroupMemphisOptions + * @memberof protos.opts.ReadGroupRedisStreamsOptions * @static - * @param {protos.opts.ReadGroupMemphisOptions} message ReadGroupMemphisOptions + * @param {protos.opts.ReadGroupRedisStreamsOptions} message ReadGroupRedisStreamsOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadGroupMemphisOptions.toObject = function toObject(message, options) { + ReadGroupRedisStreamsOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -29163,45 +27336,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.MemphisConn.toObject(message._conn, options); + object._conn = $root.protos.args.RedisStreamsConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.MemphisReadArgs.toObject(message.args, options); + object.args = $root.protos.args.RedisStreamsReadArgs.toObject(message.args, options); return object; }; /** - * Converts this ReadGroupMemphisOptions to JSON. + * Converts this ReadGroupRedisStreamsOptions to JSON. * @function toJSON - * @memberof protos.opts.ReadGroupMemphisOptions + * @memberof protos.opts.ReadGroupRedisStreamsOptions * @instance * @returns {Object.} JSON object */ - ReadGroupMemphisOptions.prototype.toJSON = function toJSON() { + ReadGroupRedisStreamsOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadGroupMemphisOptions; + return ReadGroupRedisStreamsOptions; })(); - opts.InferSchemaOptions = (function() { + opts.ReadGroupAzureEventHubOptions = (function() { /** - * Properties of an InferSchemaOptions. + * Properties of a ReadGroupAzureEventHubOptions. * @memberof protos.opts - * @interface IInferSchemaOptions - * @property {protos.opts.InferSchemaOptions.Type|null} [type] InferSchemaOptions type - * @property {string|null} [schemaId] InferSchemaOptions schemaId + * @interface IReadGroupAzureEventHubOptions + * @property {protos.args.IAzureEventHubConn|null} [_conn] ReadGroupAzureEventHubOptions _conn + * @property {protos.args.IAzureEventHubReadArgs|null} [args] ReadGroupAzureEventHubOptions args */ /** - * Constructs a new InferSchemaOptions. + * Constructs a new ReadGroupAzureEventHubOptions. * @memberof protos.opts - * @classdesc Represents an InferSchemaOptions. - * @implements IInferSchemaOptions + * @classdesc Represents a ReadGroupAzureEventHubOptions. + * @implements IReadGroupAzureEventHubOptions * @constructor - * @param {protos.opts.IInferSchemaOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupAzureEventHubOptions=} [properties] Properties to set */ - function InferSchemaOptions(properties) { + function ReadGroupAzureEventHubOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29209,88 +27382,88 @@ $root.protos = (function() { } /** - * InferSchemaOptions type. - * @member {protos.opts.InferSchemaOptions.Type} type - * @memberof protos.opts.InferSchemaOptions + * ReadGroupAzureEventHubOptions _conn. + * @member {protos.args.IAzureEventHubConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupAzureEventHubOptions * @instance */ - InferSchemaOptions.prototype.type = 0; + ReadGroupAzureEventHubOptions.prototype._conn = null; /** - * InferSchemaOptions schemaId. - * @member {string} schemaId - * @memberof protos.opts.InferSchemaOptions + * ReadGroupAzureEventHubOptions args. + * @member {protos.args.IAzureEventHubReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupAzureEventHubOptions * @instance */ - InferSchemaOptions.prototype.schemaId = ""; + ReadGroupAzureEventHubOptions.prototype.args = null; /** - * Creates a new InferSchemaOptions instance using the specified properties. + * Creates a new ReadGroupAzureEventHubOptions instance using the specified properties. * @function create - * @memberof protos.opts.InferSchemaOptions + * @memberof protos.opts.ReadGroupAzureEventHubOptions * @static - * @param {protos.opts.IInferSchemaOptions=} [properties] Properties to set - * @returns {protos.opts.InferSchemaOptions} InferSchemaOptions instance + * @param {protos.opts.IReadGroupAzureEventHubOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupAzureEventHubOptions} ReadGroupAzureEventHubOptions instance */ - InferSchemaOptions.create = function create(properties) { - return new InferSchemaOptions(properties); + ReadGroupAzureEventHubOptions.create = function create(properties) { + return new ReadGroupAzureEventHubOptions(properties); }; /** - * Encodes the specified InferSchemaOptions message. Does not implicitly {@link protos.opts.InferSchemaOptions.verify|verify} messages. + * Encodes the specified ReadGroupAzureEventHubOptions message. Does not implicitly {@link protos.opts.ReadGroupAzureEventHubOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.InferSchemaOptions + * @memberof protos.opts.ReadGroupAzureEventHubOptions * @static - * @param {protos.opts.IInferSchemaOptions} message InferSchemaOptions message or plain object to encode + * @param {protos.opts.IReadGroupAzureEventHubOptions} message ReadGroupAzureEventHubOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InferSchemaOptions.encode = function encode(message, writer) { + ReadGroupAzureEventHubOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.schemaId != null && Object.hasOwnProperty.call(message, "schemaId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaId); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.AzureEventHubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.AzureEventHubReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified InferSchemaOptions message, length delimited. Does not implicitly {@link protos.opts.InferSchemaOptions.verify|verify} messages. + * Encodes the specified ReadGroupAzureEventHubOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAzureEventHubOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.InferSchemaOptions + * @memberof protos.opts.ReadGroupAzureEventHubOptions * @static - * @param {protos.opts.IInferSchemaOptions} message InferSchemaOptions message or plain object to encode + * @param {protos.opts.IReadGroupAzureEventHubOptions} message ReadGroupAzureEventHubOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InferSchemaOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupAzureEventHubOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InferSchemaOptions message from the specified reader or buffer. + * Decodes a ReadGroupAzureEventHubOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.InferSchemaOptions + * @memberof protos.opts.ReadGroupAzureEventHubOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.InferSchemaOptions} InferSchemaOptions + * @returns {protos.opts.ReadGroupAzureEventHubOptions} ReadGroupAzureEventHubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InferSchemaOptions.decode = function decode(reader, length) { + ReadGroupAzureEventHubOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.InferSchemaOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupAzureEventHubOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.type = reader.int32(); + message._conn = $root.protos.args.AzureEventHubConn.decode(reader, reader.uint32()); break; case 2: - message.schemaId = reader.string(); + message.args = $root.protos.args.AzureEventHubReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -29301,146 +27474,127 @@ $root.protos = (function() { }; /** - * Decodes an InferSchemaOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupAzureEventHubOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.InferSchemaOptions + * @memberof protos.opts.ReadGroupAzureEventHubOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.InferSchemaOptions} InferSchemaOptions + * @returns {protos.opts.ReadGroupAzureEventHubOptions} ReadGroupAzureEventHubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InferSchemaOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupAzureEventHubOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InferSchemaOptions message. + * Verifies a ReadGroupAzureEventHubOptions message. * @function verify - * @memberof protos.opts.InferSchemaOptions + * @memberof protos.opts.ReadGroupAzureEventHubOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InferSchemaOptions.verify = function verify(message) { + ReadGroupAzureEventHubOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - break; - } - if (message.schemaId != null && message.hasOwnProperty("schemaId")) - if (!$util.isString(message.schemaId)) - return "schemaId: string expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.AzureEventHubConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.AzureEventHubReadArgs.verify(message.args); + if (error) + return "args." + error; + } return null; }; /** - * Creates an InferSchemaOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupAzureEventHubOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.InferSchemaOptions + * @memberof protos.opts.ReadGroupAzureEventHubOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.InferSchemaOptions} InferSchemaOptions + * @returns {protos.opts.ReadGroupAzureEventHubOptions} ReadGroupAzureEventHubOptions */ - InferSchemaOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.InferSchemaOptions) + ReadGroupAzureEventHubOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupAzureEventHubOptions) return object; - var message = new $root.protos.opts.InferSchemaOptions(); - switch (object.type) { - case "UNSET": - case 0: - message.type = 0; - break; - case "JSONSCHEMA": - case 1: - message.type = 1; - break; + var message = new $root.protos.opts.ReadGroupAzureEventHubOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.ReadGroupAzureEventHubOptions._conn: object expected"); + message._conn = $root.protos.args.AzureEventHubConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.ReadGroupAzureEventHubOptions.args: object expected"); + message.args = $root.protos.args.AzureEventHubReadArgs.fromObject(object.args); } - if (object.schemaId != null) - message.schemaId = String(object.schemaId); return message; }; /** - * Creates a plain object from an InferSchemaOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupAzureEventHubOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.InferSchemaOptions + * @memberof protos.opts.ReadGroupAzureEventHubOptions * @static - * @param {protos.opts.InferSchemaOptions} message InferSchemaOptions + * @param {protos.opts.ReadGroupAzureEventHubOptions} message ReadGroupAzureEventHubOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InferSchemaOptions.toObject = function toObject(message, options) { + ReadGroupAzureEventHubOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.type = options.enums === String ? "UNSET" : 0; - object.schemaId = ""; + object._conn = null; + object.args = null; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.protos.opts.InferSchemaOptions.Type[message.type] : message.type; - if (message.schemaId != null && message.hasOwnProperty("schemaId")) - object.schemaId = message.schemaId; + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.AzureEventHubConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.AzureEventHubReadArgs.toObject(message.args, options); return object; }; /** - * Converts this InferSchemaOptions to JSON. + * Converts this ReadGroupAzureEventHubOptions to JSON. * @function toJSON - * @memberof protos.opts.InferSchemaOptions + * @memberof protos.opts.ReadGroupAzureEventHubOptions * @instance * @returns {Object.} JSON object */ - InferSchemaOptions.prototype.toJSON = function toJSON() { + ReadGroupAzureEventHubOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Type enum. - * @name protos.opts.InferSchemaOptions.Type - * @enum {number} - * @property {number} UNSET=0 UNSET value - * @property {number} JSONSCHEMA=1 JSONSCHEMA value - */ - InferSchemaOptions.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNSET"] = 0; - values[valuesById[1] = "JSONSCHEMA"] = 1; - return values; - })(); - - return InferSchemaOptions; + return ReadGroupAzureEventHubOptions; })(); - opts.WriteCLIOptions = (function() { + opts.ReadGroupAzureServiceBusOptions = (function() { /** - * Properties of a WriteCLIOptions. + * Properties of a ReadGroupAzureServiceBusOptions. * @memberof protos.opts - * @interface IWriteCLIOptions - * @property {string|null} [inputFile] WriteCLIOptions inputFile - * @property {boolean|null} [inputAsJsonArray] WriteCLIOptions inputAsJsonArray - * @property {Array.|null} [inputStdin] WriteCLIOptions inputStdin + * @interface IReadGroupAzureServiceBusOptions + * @property {protos.args.IAzureServiceBusConn|null} [_conn] ReadGroupAzureServiceBusOptions _conn + * @property {protos.args.IAzureServiceBusReadArgs|null} [args] ReadGroupAzureServiceBusOptions args */ /** - * Constructs a new WriteCLIOptions. + * Constructs a new ReadGroupAzureServiceBusOptions. * @memberof protos.opts - * @classdesc Represents a WriteCLIOptions. - * @implements IWriteCLIOptions + * @classdesc Represents a ReadGroupAzureServiceBusOptions. + * @implements IReadGroupAzureServiceBusOptions * @constructor - * @param {protos.opts.IWriteCLIOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupAzureServiceBusOptions=} [properties] Properties to set */ - function WriteCLIOptions(properties) { - this.inputStdin = []; + function ReadGroupAzureServiceBusOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29448,104 +27602,88 @@ $root.protos = (function() { } /** - * WriteCLIOptions inputFile. - * @member {string} inputFile - * @memberof protos.opts.WriteCLIOptions - * @instance - */ - WriteCLIOptions.prototype.inputFile = ""; - - /** - * WriteCLIOptions inputAsJsonArray. - * @member {boolean} inputAsJsonArray - * @memberof protos.opts.WriteCLIOptions + * ReadGroupAzureServiceBusOptions _conn. + * @member {protos.args.IAzureServiceBusConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupAzureServiceBusOptions * @instance */ - WriteCLIOptions.prototype.inputAsJsonArray = false; + ReadGroupAzureServiceBusOptions.prototype._conn = null; /** - * WriteCLIOptions inputStdin. - * @member {Array.} inputStdin - * @memberof protos.opts.WriteCLIOptions + * ReadGroupAzureServiceBusOptions args. + * @member {protos.args.IAzureServiceBusReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupAzureServiceBusOptions * @instance */ - WriteCLIOptions.prototype.inputStdin = $util.emptyArray; + ReadGroupAzureServiceBusOptions.prototype.args = null; /** - * Creates a new WriteCLIOptions instance using the specified properties. + * Creates a new ReadGroupAzureServiceBusOptions instance using the specified properties. * @function create - * @memberof protos.opts.WriteCLIOptions + * @memberof protos.opts.ReadGroupAzureServiceBusOptions * @static - * @param {protos.opts.IWriteCLIOptions=} [properties] Properties to set - * @returns {protos.opts.WriteCLIOptions} WriteCLIOptions instance + * @param {protos.opts.IReadGroupAzureServiceBusOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupAzureServiceBusOptions} ReadGroupAzureServiceBusOptions instance */ - WriteCLIOptions.create = function create(properties) { - return new WriteCLIOptions(properties); + ReadGroupAzureServiceBusOptions.create = function create(properties) { + return new ReadGroupAzureServiceBusOptions(properties); }; /** - * Encodes the specified WriteCLIOptions message. Does not implicitly {@link protos.opts.WriteCLIOptions.verify|verify} messages. + * Encodes the specified ReadGroupAzureServiceBusOptions message. Does not implicitly {@link protos.opts.ReadGroupAzureServiceBusOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.WriteCLIOptions + * @memberof protos.opts.ReadGroupAzureServiceBusOptions * @static - * @param {protos.opts.IWriteCLIOptions} message WriteCLIOptions message or plain object to encode + * @param {protos.opts.IReadGroupAzureServiceBusOptions} message ReadGroupAzureServiceBusOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteCLIOptions.encode = function encode(message, writer) { + ReadGroupAzureServiceBusOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputFile != null && Object.hasOwnProperty.call(message, "inputFile")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputFile); - if (message.inputAsJsonArray != null && Object.hasOwnProperty.call(message, "inputAsJsonArray")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.inputAsJsonArray); - if (message.inputStdin != null && message.inputStdin.length) - for (var i = 0; i < message.inputStdin.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.inputStdin[i]); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.AzureServiceBusConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.AzureServiceBusReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified WriteCLIOptions message, length delimited. Does not implicitly {@link protos.opts.WriteCLIOptions.verify|verify} messages. + * Encodes the specified ReadGroupAzureServiceBusOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAzureServiceBusOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.WriteCLIOptions + * @memberof protos.opts.ReadGroupAzureServiceBusOptions * @static - * @param {protos.opts.IWriteCLIOptions} message WriteCLIOptions message or plain object to encode + * @param {protos.opts.IReadGroupAzureServiceBusOptions} message ReadGroupAzureServiceBusOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteCLIOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupAzureServiceBusOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WriteCLIOptions message from the specified reader or buffer. + * Decodes a ReadGroupAzureServiceBusOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.WriteCLIOptions + * @memberof protos.opts.ReadGroupAzureServiceBusOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteCLIOptions} WriteCLIOptions + * @returns {protos.opts.ReadGroupAzureServiceBusOptions} ReadGroupAzureServiceBusOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteCLIOptions.decode = function decode(reader, length) { + ReadGroupAzureServiceBusOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteCLIOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupAzureServiceBusOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.inputFile = reader.string(); + message._conn = $root.protos.args.AzureServiceBusConn.decode(reader, reader.uint32()); break; case 2: - message.inputAsJsonArray = reader.bool(); - break; - case 3: - if (!(message.inputStdin && message.inputStdin.length)) - message.inputStdin = []; - message.inputStdin.push(reader.string()); + message.args = $root.protos.args.AzureServiceBusReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -29556,160 +27694,127 @@ $root.protos = (function() { }; /** - * Decodes a WriteCLIOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupAzureServiceBusOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.WriteCLIOptions + * @memberof protos.opts.ReadGroupAzureServiceBusOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteCLIOptions} WriteCLIOptions + * @returns {protos.opts.ReadGroupAzureServiceBusOptions} ReadGroupAzureServiceBusOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteCLIOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupAzureServiceBusOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WriteCLIOptions message. + * Verifies a ReadGroupAzureServiceBusOptions message. * @function verify - * @memberof protos.opts.WriteCLIOptions + * @memberof protos.opts.ReadGroupAzureServiceBusOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteCLIOptions.verify = function verify(message) { + ReadGroupAzureServiceBusOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.inputFile != null && message.hasOwnProperty("inputFile")) - if (!$util.isString(message.inputFile)) - return "inputFile: string expected"; - if (message.inputAsJsonArray != null && message.hasOwnProperty("inputAsJsonArray")) - if (typeof message.inputAsJsonArray !== "boolean") - return "inputAsJsonArray: boolean expected"; - if (message.inputStdin != null && message.hasOwnProperty("inputStdin")) { - if (!Array.isArray(message.inputStdin)) - return "inputStdin: array expected"; - for (var i = 0; i < message.inputStdin.length; ++i) - if (!$util.isString(message.inputStdin[i])) - return "inputStdin: string[] expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.AzureServiceBusConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.AzureServiceBusReadArgs.verify(message.args); + if (error) + return "args." + error; } return null; }; /** - * Creates a WriteCLIOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupAzureServiceBusOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.WriteCLIOptions + * @memberof protos.opts.ReadGroupAzureServiceBusOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.WriteCLIOptions} WriteCLIOptions + * @returns {protos.opts.ReadGroupAzureServiceBusOptions} ReadGroupAzureServiceBusOptions */ - WriteCLIOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteCLIOptions) + ReadGroupAzureServiceBusOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupAzureServiceBusOptions) return object; - var message = new $root.protos.opts.WriteCLIOptions(); - if (object.inputFile != null) - message.inputFile = String(object.inputFile); - if (object.inputAsJsonArray != null) - message.inputAsJsonArray = Boolean(object.inputAsJsonArray); - if (object.inputStdin) { - if (!Array.isArray(object.inputStdin)) - throw TypeError(".protos.opts.WriteCLIOptions.inputStdin: array expected"); - message.inputStdin = []; - for (var i = 0; i < object.inputStdin.length; ++i) - message.inputStdin[i] = String(object.inputStdin[i]); + var message = new $root.protos.opts.ReadGroupAzureServiceBusOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.ReadGroupAzureServiceBusOptions._conn: object expected"); + message._conn = $root.protos.args.AzureServiceBusConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.ReadGroupAzureServiceBusOptions.args: object expected"); + message.args = $root.protos.args.AzureServiceBusReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a WriteCLIOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupAzureServiceBusOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.WriteCLIOptions + * @memberof protos.opts.ReadGroupAzureServiceBusOptions * @static - * @param {protos.opts.WriteCLIOptions} message WriteCLIOptions + * @param {protos.opts.ReadGroupAzureServiceBusOptions} message ReadGroupAzureServiceBusOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WriteCLIOptions.toObject = function toObject(message, options) { + ReadGroupAzureServiceBusOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.inputStdin = []; if (options.defaults) { - object.inputFile = ""; - object.inputAsJsonArray = false; - } - if (message.inputFile != null && message.hasOwnProperty("inputFile")) - object.inputFile = message.inputFile; - if (message.inputAsJsonArray != null && message.hasOwnProperty("inputAsJsonArray")) - object.inputAsJsonArray = message.inputAsJsonArray; - if (message.inputStdin && message.inputStdin.length) { - object.inputStdin = []; - for (var j = 0; j < message.inputStdin.length; ++j) - object.inputStdin[j] = message.inputStdin[j]; + object._conn = null; + object.args = null; } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.AzureServiceBusConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.AzureServiceBusReadArgs.toObject(message.args, options); return object; }; /** - * Converts this WriteCLIOptions to JSON. + * Converts this ReadGroupAzureServiceBusOptions to JSON. * @function toJSON - * @memberof protos.opts.WriteCLIOptions + * @memberof protos.opts.ReadGroupAzureServiceBusOptions * @instance * @returns {Object.} JSON object */ - WriteCLIOptions.prototype.toJSON = function toJSON() { + ReadGroupAzureServiceBusOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return WriteCLIOptions; + return ReadGroupAzureServiceBusOptions; })(); - opts.WriteOptions = (function() { + opts.ReadGroupMQTTOptions = (function() { /** - * Properties of a WriteOptions. + * Properties of a ReadGroupMQTTOptions. * @memberof protos.opts - * @interface IWriteOptions - * @property {string|null} [connectionId] WriteOptions connectionId - * @property {protos.records.IWriteRecord|null} [record] WriteOptions record - * @property {protos.encoding.IEncodeOptions|null} [encodeOptions] WriteOptions encodeOptions - * @property {protos.opts.IWriteCLIOptions|null} [_cliOptions] WriteOptions _cliOptions - * @property {protos.opts.IWriteGroupKafkaOptions|null} [kafka] WriteOptions kafka - * @property {protos.opts.IWriteGroupActiveMQOptions|null} [activemq] WriteOptions activemq - * @property {protos.opts.IWriteGroupAWSSQSOptions|null} [awsSqs] WriteOptions awsSqs - * @property {protos.opts.IWriteGroupAWSSNSOptions|null} [awsSns] WriteOptions awsSns - * @property {protos.opts.IWriteGroupNatsOptions|null} [nats] WriteOptions nats - * @property {protos.opts.IWriteGroupNatsStreamingOptions|null} [natsStreaming] WriteOptions natsStreaming - * @property {protos.opts.IWriteGroupNSQOptions|null} [nsq] WriteOptions nsq - * @property {protos.opts.IWriteGroupPulsarOptions|null} [pulsar] WriteOptions pulsar - * @property {protos.opts.IWriteGroupRabbitOptions|null} [rabbit] WriteOptions rabbit - * @property {protos.opts.IWriteGroupRabbitStreamsOptions|null} [rabbitStreams] WriteOptions rabbitStreams - * @property {protos.opts.IWriteGroupMQTTOptions|null} [mqtt] WriteOptions mqtt - * @property {protos.opts.IWriteGroupAzureServiceBusOptions|null} [azureServiceBus] WriteOptions azureServiceBus - * @property {protos.opts.IWriteGroupAzureEventHubOptions|null} [azureEventHub] WriteOptions azureEventHub - * @property {protos.opts.IWriteGroupGCPPubSubOptions|null} [gcpPubsub] WriteOptions gcpPubsub - * @property {protos.opts.IWriteGroupKubeMQQueueOptions|null} [kubemqQueue] WriteOptions kubemqQueue - * @property {protos.opts.IWriteGroupRedisPubSubOptions|null} [redisPubsub] WriteOptions redisPubsub - * @property {protos.opts.IWriteGroupRedisStreamsOptions|null} [redisStreams] WriteOptions redisStreams - * @property {protos.opts.IWriteGroupNatsJetstreamOptions|null} [natsJetstream] WriteOptions natsJetstream - * @property {protos.opts.IWriteGroupAWSKinesisOptions|null} [awsKinesis] WriteOptions awsKinesis - * @property {protos.opts.IWriteGroupMemphisOptions|null} [memphis] WriteOptions memphis + * @interface IReadGroupMQTTOptions + * @property {protos.args.IMQTTConn|null} [_conn] ReadGroupMQTTOptions _conn + * @property {protos.args.IMQTTReadArgs|null} [args] ReadGroupMQTTOptions args */ /** - * Constructs a new WriteOptions. + * Constructs a new ReadGroupMQTTOptions. * @memberof protos.opts - * @classdesc Represents a WriteOptions. - * @implements IWriteOptions + * @classdesc Represents a ReadGroupMQTTOptions. + * @implements IReadGroupMQTTOptions * @constructor - * @param {protos.opts.IWriteOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupMQTTOptions=} [properties] Properties to set */ - function WriteOptions(properties) { + function ReadGroupMQTTOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29717,374 +27822,528 @@ $root.protos = (function() { } /** - * WriteOptions connectionId. - * @member {string} connectionId - * @memberof protos.opts.WriteOptions + * ReadGroupMQTTOptions _conn. + * @member {protos.args.IMQTTConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupMQTTOptions * @instance */ - WriteOptions.prototype.connectionId = ""; + ReadGroupMQTTOptions.prototype._conn = null; /** - * WriteOptions record. - * @member {protos.records.IWriteRecord|null|undefined} record - * @memberof protos.opts.WriteOptions + * ReadGroupMQTTOptions args. + * @member {protos.args.IMQTTReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupMQTTOptions * @instance */ - WriteOptions.prototype.record = null; + ReadGroupMQTTOptions.prototype.args = null; /** - * WriteOptions encodeOptions. - * @member {protos.encoding.IEncodeOptions|null|undefined} encodeOptions - * @memberof protos.opts.WriteOptions - * @instance + * Creates a new ReadGroupMQTTOptions instance using the specified properties. + * @function create + * @memberof protos.opts.ReadGroupMQTTOptions + * @static + * @param {protos.opts.IReadGroupMQTTOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupMQTTOptions} ReadGroupMQTTOptions instance */ - WriteOptions.prototype.encodeOptions = null; + ReadGroupMQTTOptions.create = function create(properties) { + return new ReadGroupMQTTOptions(properties); + }; /** - * WriteOptions _cliOptions. - * @member {protos.opts.IWriteCLIOptions|null|undefined} _cliOptions - * @memberof protos.opts.WriteOptions - * @instance + * Encodes the specified ReadGroupMQTTOptions message. Does not implicitly {@link protos.opts.ReadGroupMQTTOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.ReadGroupMQTTOptions + * @static + * @param {protos.opts.IReadGroupMQTTOptions} message ReadGroupMQTTOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - WriteOptions.prototype._cliOptions = null; + ReadGroupMQTTOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.MQTTConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.MQTTReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * WriteOptions kafka. - * @member {protos.opts.IWriteGroupKafkaOptions|null|undefined} kafka - * @memberof protos.opts.WriteOptions - * @instance + * Encodes the specified ReadGroupMQTTOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupMQTTOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.ReadGroupMQTTOptions + * @static + * @param {protos.opts.IReadGroupMQTTOptions} message ReadGroupMQTTOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - WriteOptions.prototype.kafka = null; + ReadGroupMQTTOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * WriteOptions activemq. - * @member {protos.opts.IWriteGroupActiveMQOptions|null|undefined} activemq - * @memberof protos.opts.WriteOptions - * @instance + * Decodes a ReadGroupMQTTOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.ReadGroupMQTTOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.ReadGroupMQTTOptions} ReadGroupMQTTOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteOptions.prototype.activemq = null; + ReadGroupMQTTOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupMQTTOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.MQTTConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.MQTTReadArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * WriteOptions awsSqs. - * @member {protos.opts.IWriteGroupAWSSQSOptions|null|undefined} awsSqs - * @memberof protos.opts.WriteOptions - * @instance + * Decodes a ReadGroupMQTTOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.ReadGroupMQTTOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.ReadGroupMQTTOptions} ReadGroupMQTTOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteOptions.prototype.awsSqs = null; + ReadGroupMQTTOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * WriteOptions awsSns. - * @member {protos.opts.IWriteGroupAWSSNSOptions|null|undefined} awsSns - * @memberof protos.opts.WriteOptions - * @instance + * Verifies a ReadGroupMQTTOptions message. + * @function verify + * @memberof protos.opts.ReadGroupMQTTOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteOptions.prototype.awsSns = null; + ReadGroupMQTTOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.MQTTConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.MQTTReadArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; /** - * WriteOptions nats. - * @member {protos.opts.IWriteGroupNatsOptions|null|undefined} nats - * @memberof protos.opts.WriteOptions - * @instance + * Creates a ReadGroupMQTTOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.ReadGroupMQTTOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.ReadGroupMQTTOptions} ReadGroupMQTTOptions */ - WriteOptions.prototype.nats = null; + ReadGroupMQTTOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupMQTTOptions) + return object; + var message = new $root.protos.opts.ReadGroupMQTTOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.ReadGroupMQTTOptions._conn: object expected"); + message._conn = $root.protos.args.MQTTConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.ReadGroupMQTTOptions.args: object expected"); + message.args = $root.protos.args.MQTTReadArgs.fromObject(object.args); + } + return message; + }; /** - * WriteOptions natsStreaming. - * @member {protos.opts.IWriteGroupNatsStreamingOptions|null|undefined} natsStreaming - * @memberof protos.opts.WriteOptions - * @instance + * Creates a plain object from a ReadGroupMQTTOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.ReadGroupMQTTOptions + * @static + * @param {protos.opts.ReadGroupMQTTOptions} message ReadGroupMQTTOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - WriteOptions.prototype.natsStreaming = null; + ReadGroupMQTTOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.MQTTConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.MQTTReadArgs.toObject(message.args, options); + return object; + }; /** - * WriteOptions nsq. - * @member {protos.opts.IWriteGroupNSQOptions|null|undefined} nsq - * @memberof protos.opts.WriteOptions + * Converts this ReadGroupMQTTOptions to JSON. + * @function toJSON + * @memberof protos.opts.ReadGroupMQTTOptions * @instance + * @returns {Object.} JSON object */ - WriteOptions.prototype.nsq = null; + ReadGroupMQTTOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ReadGroupMQTTOptions; + })(); + + opts.ReadGroupGCPPubSubOptions = (function() { /** - * WriteOptions pulsar. - * @member {protos.opts.IWriteGroupPulsarOptions|null|undefined} pulsar - * @memberof protos.opts.WriteOptions - * @instance + * Properties of a ReadGroupGCPPubSubOptions. + * @memberof protos.opts + * @interface IReadGroupGCPPubSubOptions + * @property {protos.args.IGCPPubSubConn|null} [_conn] ReadGroupGCPPubSubOptions _conn + * @property {protos.args.IGCPPubSubReadArgs|null} [args] ReadGroupGCPPubSubOptions args */ - WriteOptions.prototype.pulsar = null; /** - * WriteOptions rabbit. - * @member {protos.opts.IWriteGroupRabbitOptions|null|undefined} rabbit - * @memberof protos.opts.WriteOptions - * @instance + * Constructs a new ReadGroupGCPPubSubOptions. + * @memberof protos.opts + * @classdesc Represents a ReadGroupGCPPubSubOptions. + * @implements IReadGroupGCPPubSubOptions + * @constructor + * @param {protos.opts.IReadGroupGCPPubSubOptions=} [properties] Properties to set */ - WriteOptions.prototype.rabbit = null; + function ReadGroupGCPPubSubOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * WriteOptions rabbitStreams. - * @member {protos.opts.IWriteGroupRabbitStreamsOptions|null|undefined} rabbitStreams - * @memberof protos.opts.WriteOptions + * ReadGroupGCPPubSubOptions _conn. + * @member {protos.args.IGCPPubSubConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupGCPPubSubOptions * @instance */ - WriteOptions.prototype.rabbitStreams = null; + ReadGroupGCPPubSubOptions.prototype._conn = null; /** - * WriteOptions mqtt. - * @member {protos.opts.IWriteGroupMQTTOptions|null|undefined} mqtt - * @memberof protos.opts.WriteOptions + * ReadGroupGCPPubSubOptions args. + * @member {protos.args.IGCPPubSubReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupGCPPubSubOptions * @instance */ - WriteOptions.prototype.mqtt = null; + ReadGroupGCPPubSubOptions.prototype.args = null; /** - * WriteOptions azureServiceBus. - * @member {protos.opts.IWriteGroupAzureServiceBusOptions|null|undefined} azureServiceBus - * @memberof protos.opts.WriteOptions - * @instance + * Creates a new ReadGroupGCPPubSubOptions instance using the specified properties. + * @function create + * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @static + * @param {protos.opts.IReadGroupGCPPubSubOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupGCPPubSubOptions} ReadGroupGCPPubSubOptions instance */ - WriteOptions.prototype.azureServiceBus = null; + ReadGroupGCPPubSubOptions.create = function create(properties) { + return new ReadGroupGCPPubSubOptions(properties); + }; /** - * WriteOptions azureEventHub. - * @member {protos.opts.IWriteGroupAzureEventHubOptions|null|undefined} azureEventHub - * @memberof protos.opts.WriteOptions - * @instance + * Encodes the specified ReadGroupGCPPubSubOptions message. Does not implicitly {@link protos.opts.ReadGroupGCPPubSubOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @static + * @param {protos.opts.IReadGroupGCPPubSubOptions} message ReadGroupGCPPubSubOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - WriteOptions.prototype.azureEventHub = null; + ReadGroupGCPPubSubOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.GCPPubSubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.GCPPubSubReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * WriteOptions gcpPubsub. - * @member {protos.opts.IWriteGroupGCPPubSubOptions|null|undefined} gcpPubsub - * @memberof protos.opts.WriteOptions - * @instance + * Encodes the specified ReadGroupGCPPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupGCPPubSubOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @static + * @param {protos.opts.IReadGroupGCPPubSubOptions} message ReadGroupGCPPubSubOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - WriteOptions.prototype.gcpPubsub = null; + ReadGroupGCPPubSubOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * WriteOptions kubemqQueue. - * @member {protos.opts.IWriteGroupKubeMQQueueOptions|null|undefined} kubemqQueue - * @memberof protos.opts.WriteOptions - * @instance + * Decodes a ReadGroupGCPPubSubOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.ReadGroupGCPPubSubOptions} ReadGroupGCPPubSubOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteOptions.prototype.kubemqQueue = null; + ReadGroupGCPPubSubOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupGCPPubSubOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.GCPPubSubConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.GCPPubSubReadArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * WriteOptions redisPubsub. - * @member {protos.opts.IWriteGroupRedisPubSubOptions|null|undefined} redisPubsub - * @memberof protos.opts.WriteOptions - * @instance + * Decodes a ReadGroupGCPPubSubOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.ReadGroupGCPPubSubOptions} ReadGroupGCPPubSubOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteOptions.prototype.redisPubsub = null; + ReadGroupGCPPubSubOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * WriteOptions redisStreams. - * @member {protos.opts.IWriteGroupRedisStreamsOptions|null|undefined} redisStreams - * @memberof protos.opts.WriteOptions - * @instance + * Verifies a ReadGroupGCPPubSubOptions message. + * @function verify + * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteOptions.prototype.redisStreams = null; + ReadGroupGCPPubSubOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.GCPPubSubConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.GCPPubSubReadArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; /** - * WriteOptions natsJetstream. - * @member {protos.opts.IWriteGroupNatsJetstreamOptions|null|undefined} natsJetstream - * @memberof protos.opts.WriteOptions + * Creates a ReadGroupGCPPubSubOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.ReadGroupGCPPubSubOptions} ReadGroupGCPPubSubOptions + */ + ReadGroupGCPPubSubOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupGCPPubSubOptions) + return object; + var message = new $root.protos.opts.ReadGroupGCPPubSubOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.ReadGroupGCPPubSubOptions._conn: object expected"); + message._conn = $root.protos.args.GCPPubSubConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.ReadGroupGCPPubSubOptions.args: object expected"); + message.args = $root.protos.args.GCPPubSubReadArgs.fromObject(object.args); + } + return message; + }; + + /** + * Creates a plain object from a ReadGroupGCPPubSubOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.ReadGroupGCPPubSubOptions + * @static + * @param {protos.opts.ReadGroupGCPPubSubOptions} message ReadGroupGCPPubSubOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReadGroupGCPPubSubOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.GCPPubSubConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.GCPPubSubReadArgs.toObject(message.args, options); + return object; + }; + + /** + * Converts this ReadGroupGCPPubSubOptions to JSON. + * @function toJSON + * @memberof protos.opts.ReadGroupGCPPubSubOptions * @instance + * @returns {Object.} JSON object */ - WriteOptions.prototype.natsJetstream = null; + ReadGroupGCPPubSubOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ReadGroupGCPPubSubOptions; + })(); + + opts.ReadGroupKubeMQQueueOptions = (function() { /** - * WriteOptions awsKinesis. - * @member {protos.opts.IWriteGroupAWSKinesisOptions|null|undefined} awsKinesis - * @memberof protos.opts.WriteOptions + * Properties of a ReadGroupKubeMQQueueOptions. + * @memberof protos.opts + * @interface IReadGroupKubeMQQueueOptions + * @property {protos.args.IKubeMQQueueConn|null} [_conn] ReadGroupKubeMQQueueOptions _conn + * @property {protos.args.IKubeMQQueueReadArgs|null} [args] ReadGroupKubeMQQueueOptions args + */ + + /** + * Constructs a new ReadGroupKubeMQQueueOptions. + * @memberof protos.opts + * @classdesc Represents a ReadGroupKubeMQQueueOptions. + * @implements IReadGroupKubeMQQueueOptions + * @constructor + * @param {protos.opts.IReadGroupKubeMQQueueOptions=} [properties] Properties to set + */ + function ReadGroupKubeMQQueueOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReadGroupKubeMQQueueOptions _conn. + * @member {protos.args.IKubeMQQueueConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupKubeMQQueueOptions * @instance */ - WriteOptions.prototype.awsKinesis = null; + ReadGroupKubeMQQueueOptions.prototype._conn = null; /** - * WriteOptions memphis. - * @member {protos.opts.IWriteGroupMemphisOptions|null|undefined} memphis - * @memberof protos.opts.WriteOptions + * ReadGroupKubeMQQueueOptions args. + * @member {protos.args.IKubeMQQueueReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupKubeMQQueueOptions * @instance */ - WriteOptions.prototype.memphis = null; + ReadGroupKubeMQQueueOptions.prototype.args = null; /** - * Creates a new WriteOptions instance using the specified properties. + * Creates a new ReadGroupKubeMQQueueOptions instance using the specified properties. * @function create - * @memberof protos.opts.WriteOptions + * @memberof protos.opts.ReadGroupKubeMQQueueOptions * @static - * @param {protos.opts.IWriteOptions=} [properties] Properties to set - * @returns {protos.opts.WriteOptions} WriteOptions instance + * @param {protos.opts.IReadGroupKubeMQQueueOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupKubeMQQueueOptions} ReadGroupKubeMQQueueOptions instance */ - WriteOptions.create = function create(properties) { - return new WriteOptions(properties); + ReadGroupKubeMQQueueOptions.create = function create(properties) { + return new ReadGroupKubeMQQueueOptions(properties); }; /** - * Encodes the specified WriteOptions message. Does not implicitly {@link protos.opts.WriteOptions.verify|verify} messages. + * Encodes the specified ReadGroupKubeMQQueueOptions message. Does not implicitly {@link protos.opts.ReadGroupKubeMQQueueOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.WriteOptions + * @memberof protos.opts.ReadGroupKubeMQQueueOptions * @static - * @param {protos.opts.IWriteOptions} message WriteOptions message or plain object to encode + * @param {protos.opts.IReadGroupKubeMQQueueOptions} message ReadGroupKubeMQQueueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteOptions.encode = function encode(message, writer) { + ReadGroupKubeMQQueueOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connectionId); - if (message.record != null && Object.hasOwnProperty.call(message, "record")) - $root.protos.records.WriteRecord.encode(message.record, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.encodeOptions != null && Object.hasOwnProperty.call(message, "encodeOptions")) - $root.protos.encoding.EncodeOptions.encode(message.encodeOptions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.kafka != null && Object.hasOwnProperty.call(message, "kafka")) - $root.protos.opts.WriteGroupKafkaOptions.encode(message.kafka, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); - if (message.activemq != null && Object.hasOwnProperty.call(message, "activemq")) - $root.protos.opts.WriteGroupActiveMQOptions.encode(message.activemq, writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); - if (message.awsSqs != null && Object.hasOwnProperty.call(message, "awsSqs")) - $root.protos.opts.WriteGroupAWSSQSOptions.encode(message.awsSqs, writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim(); - if (message.awsSns != null && Object.hasOwnProperty.call(message, "awsSns")) - $root.protos.opts.WriteGroupAWSSNSOptions.encode(message.awsSns, writer.uint32(/* id 103, wireType 2 =*/826).fork()).ldelim(); - if (message.nats != null && Object.hasOwnProperty.call(message, "nats")) - $root.protos.opts.WriteGroupNatsOptions.encode(message.nats, writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim(); - if (message.natsStreaming != null && Object.hasOwnProperty.call(message, "natsStreaming")) - $root.protos.opts.WriteGroupNatsStreamingOptions.encode(message.natsStreaming, writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); - if (message.nsq != null && Object.hasOwnProperty.call(message, "nsq")) - $root.protos.opts.WriteGroupNSQOptions.encode(message.nsq, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim(); - if (message.pulsar != null && Object.hasOwnProperty.call(message, "pulsar")) - $root.protos.opts.WriteGroupPulsarOptions.encode(message.pulsar, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); - if (message.rabbit != null && Object.hasOwnProperty.call(message, "rabbit")) - $root.protos.opts.WriteGroupRabbitOptions.encode(message.rabbit, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim(); - if (message.rabbitStreams != null && Object.hasOwnProperty.call(message, "rabbitStreams")) - $root.protos.opts.WriteGroupRabbitStreamsOptions.encode(message.rabbitStreams, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); - if (message.mqtt != null && Object.hasOwnProperty.call(message, "mqtt")) - $root.protos.opts.WriteGroupMQTTOptions.encode(message.mqtt, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); - if (message.azureServiceBus != null && Object.hasOwnProperty.call(message, "azureServiceBus")) - $root.protos.opts.WriteGroupAzureServiceBusOptions.encode(message.azureServiceBus, writer.uint32(/* id 111, wireType 2 =*/890).fork()).ldelim(); - if (message.azureEventHub != null && Object.hasOwnProperty.call(message, "azureEventHub")) - $root.protos.opts.WriteGroupAzureEventHubOptions.encode(message.azureEventHub, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim(); - if (message.gcpPubsub != null && Object.hasOwnProperty.call(message, "gcpPubsub")) - $root.protos.opts.WriteGroupGCPPubSubOptions.encode(message.gcpPubsub, writer.uint32(/* id 113, wireType 2 =*/906).fork()).ldelim(); - if (message.kubemqQueue != null && Object.hasOwnProperty.call(message, "kubemqQueue")) - $root.protos.opts.WriteGroupKubeMQQueueOptions.encode(message.kubemqQueue, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); - if (message.redisPubsub != null && Object.hasOwnProperty.call(message, "redisPubsub")) - $root.protos.opts.WriteGroupRedisPubSubOptions.encode(message.redisPubsub, writer.uint32(/* id 115, wireType 2 =*/922).fork()).ldelim(); - if (message.redisStreams != null && Object.hasOwnProperty.call(message, "redisStreams")) - $root.protos.opts.WriteGroupRedisStreamsOptions.encode(message.redisStreams, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); - if (message.natsJetstream != null && Object.hasOwnProperty.call(message, "natsJetstream")) - $root.protos.opts.WriteGroupNatsJetstreamOptions.encode(message.natsJetstream, writer.uint32(/* id 117, wireType 2 =*/938).fork()).ldelim(); - if (message.awsKinesis != null && Object.hasOwnProperty.call(message, "awsKinesis")) - $root.protos.opts.WriteGroupAWSKinesisOptions.encode(message.awsKinesis, writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim(); - if (message.memphis != null && Object.hasOwnProperty.call(message, "memphis")) - $root.protos.opts.WriteGroupMemphisOptions.encode(message.memphis, writer.uint32(/* id 119, wireType 2 =*/954).fork()).ldelim(); - if (message._cliOptions != null && Object.hasOwnProperty.call(message, "_cliOptions")) - $root.protos.opts.WriteCLIOptions.encode(message._cliOptions, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.KubeMQQueueConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.KubeMQQueueReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified WriteOptions message, length delimited. Does not implicitly {@link protos.opts.WriteOptions.verify|verify} messages. + * Encodes the specified ReadGroupKubeMQQueueOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupKubeMQQueueOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.WriteOptions + * @memberof protos.opts.ReadGroupKubeMQQueueOptions * @static - * @param {protos.opts.IWriteOptions} message WriteOptions message or plain object to encode + * @param {protos.opts.IReadGroupKubeMQQueueOptions} message ReadGroupKubeMQQueueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupKubeMQQueueOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WriteOptions message from the specified reader or buffer. + * Decodes a ReadGroupKubeMQQueueOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.WriteOptions + * @memberof protos.opts.ReadGroupKubeMQQueueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteOptions} WriteOptions + * @returns {protos.opts.ReadGroupKubeMQQueueOptions} ReadGroupKubeMQQueueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteOptions.decode = function decode(reader, length) { + ReadGroupKubeMQQueueOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupKubeMQQueueOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.connectionId = reader.string(); + message._conn = $root.protos.args.KubeMQQueueConn.decode(reader, reader.uint32()); break; case 2: - message.record = $root.protos.records.WriteRecord.decode(reader, reader.uint32()); - break; - case 3: - message.encodeOptions = $root.protos.encoding.EncodeOptions.decode(reader, reader.uint32()); - break; - case 1000: - message._cliOptions = $root.protos.opts.WriteCLIOptions.decode(reader, reader.uint32()); - break; - case 100: - message.kafka = $root.protos.opts.WriteGroupKafkaOptions.decode(reader, reader.uint32()); - break; - case 101: - message.activemq = $root.protos.opts.WriteGroupActiveMQOptions.decode(reader, reader.uint32()); - break; - case 102: - message.awsSqs = $root.protos.opts.WriteGroupAWSSQSOptions.decode(reader, reader.uint32()); - break; - case 103: - message.awsSns = $root.protos.opts.WriteGroupAWSSNSOptions.decode(reader, reader.uint32()); - break; - case 104: - message.nats = $root.protos.opts.WriteGroupNatsOptions.decode(reader, reader.uint32()); - break; - case 105: - message.natsStreaming = $root.protos.opts.WriteGroupNatsStreamingOptions.decode(reader, reader.uint32()); - break; - case 106: - message.nsq = $root.protos.opts.WriteGroupNSQOptions.decode(reader, reader.uint32()); - break; - case 107: - message.pulsar = $root.protos.opts.WriteGroupPulsarOptions.decode(reader, reader.uint32()); - break; - case 108: - message.rabbit = $root.protos.opts.WriteGroupRabbitOptions.decode(reader, reader.uint32()); - break; - case 109: - message.rabbitStreams = $root.protos.opts.WriteGroupRabbitStreamsOptions.decode(reader, reader.uint32()); - break; - case 110: - message.mqtt = $root.protos.opts.WriteGroupMQTTOptions.decode(reader, reader.uint32()); - break; - case 111: - message.azureServiceBus = $root.protos.opts.WriteGroupAzureServiceBusOptions.decode(reader, reader.uint32()); - break; - case 112: - message.azureEventHub = $root.protos.opts.WriteGroupAzureEventHubOptions.decode(reader, reader.uint32()); - break; - case 113: - message.gcpPubsub = $root.protos.opts.WriteGroupGCPPubSubOptions.decode(reader, reader.uint32()); - break; - case 114: - message.kubemqQueue = $root.protos.opts.WriteGroupKubeMQQueueOptions.decode(reader, reader.uint32()); - break; - case 115: - message.redisPubsub = $root.protos.opts.WriteGroupRedisPubSubOptions.decode(reader, reader.uint32()); - break; - case 116: - message.redisStreams = $root.protos.opts.WriteGroupRedisStreamsOptions.decode(reader, reader.uint32()); - break; - case 117: - message.natsJetstream = $root.protos.opts.WriteGroupNatsJetstreamOptions.decode(reader, reader.uint32()); - break; - case 118: - message.awsKinesis = $root.protos.opts.WriteGroupAWSKinesisOptions.decode(reader, reader.uint32()); - break; - case 119: - message.memphis = $root.protos.opts.WriteGroupMemphisOptions.decode(reader, reader.uint32()); + message.args = $root.protos.args.KubeMQQueueReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -30095,408 +28354,127 @@ $root.protos = (function() { }; /** - * Decodes a WriteOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupKubeMQQueueOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.WriteOptions + * @memberof protos.opts.ReadGroupKubeMQQueueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteOptions} WriteOptions + * @returns {protos.opts.ReadGroupKubeMQQueueOptions} ReadGroupKubeMQQueueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupKubeMQQueueOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WriteOptions message. + * Verifies a ReadGroupKubeMQQueueOptions message. * @function verify - * @memberof protos.opts.WriteOptions + * @memberof protos.opts.ReadGroupKubeMQQueueOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteOptions.verify = function verify(message) { + ReadGroupKubeMQQueueOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - if (!$util.isString(message.connectionId)) - return "connectionId: string expected"; - if (message.record != null && message.hasOwnProperty("record")) { - var error = $root.protos.records.WriteRecord.verify(message.record); - if (error) - return "record." + error; - } - if (message.encodeOptions != null && message.hasOwnProperty("encodeOptions")) { - var error = $root.protos.encoding.EncodeOptions.verify(message.encodeOptions); - if (error) - return "encodeOptions." + error; - } - if (message._cliOptions != null && message.hasOwnProperty("_cliOptions")) { - var error = $root.protos.opts.WriteCLIOptions.verify(message._cliOptions); - if (error) - return "_cliOptions." + error; - } - if (message.kafka != null && message.hasOwnProperty("kafka")) { - var error = $root.protos.opts.WriteGroupKafkaOptions.verify(message.kafka); - if (error) - return "kafka." + error; - } - if (message.activemq != null && message.hasOwnProperty("activemq")) { - var error = $root.protos.opts.WriteGroupActiveMQOptions.verify(message.activemq); - if (error) - return "activemq." + error; - } - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) { - var error = $root.protos.opts.WriteGroupAWSSQSOptions.verify(message.awsSqs); + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.KubeMQQueueConn.verify(message._conn); if (error) - return "awsSqs." + error; + return "_conn." + error; } - if (message.awsSns != null && message.hasOwnProperty("awsSns")) { - var error = $root.protos.opts.WriteGroupAWSSNSOptions.verify(message.awsSns); + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.KubeMQQueueReadArgs.verify(message.args); if (error) - return "awsSns." + error; + return "args." + error; } - if (message.nats != null && message.hasOwnProperty("nats")) { - var error = $root.protos.opts.WriteGroupNatsOptions.verify(message.nats); - if (error) - return "nats." + error; + return null; + }; + + /** + * Creates a ReadGroupKubeMQQueueOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.ReadGroupKubeMQQueueOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.ReadGroupKubeMQQueueOptions} ReadGroupKubeMQQueueOptions + */ + ReadGroupKubeMQQueueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupKubeMQQueueOptions) + return object; + var message = new $root.protos.opts.ReadGroupKubeMQQueueOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.ReadGroupKubeMQQueueOptions._conn: object expected"); + message._conn = $root.protos.args.KubeMQQueueConn.fromObject(object._conn); } - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) { - var error = $root.protos.opts.WriteGroupNatsStreamingOptions.verify(message.natsStreaming); - if (error) - return "natsStreaming." + error; + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.ReadGroupKubeMQQueueOptions.args: object expected"); + message.args = $root.protos.args.KubeMQQueueReadArgs.fromObject(object.args); } - if (message.nsq != null && message.hasOwnProperty("nsq")) { - var error = $root.protos.opts.WriteGroupNSQOptions.verify(message.nsq); - if (error) - return "nsq." + error; + return message; + }; + + /** + * Creates a plain object from a ReadGroupKubeMQQueueOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.ReadGroupKubeMQQueueOptions + * @static + * @param {protos.opts.ReadGroupKubeMQQueueOptions} message ReadGroupKubeMQQueueOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReadGroupKubeMQQueueOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; } - if (message.pulsar != null && message.hasOwnProperty("pulsar")) { - var error = $root.protos.opts.WriteGroupPulsarOptions.verify(message.pulsar); - if (error) - return "pulsar." + error; - } - if (message.rabbit != null && message.hasOwnProperty("rabbit")) { - var error = $root.protos.opts.WriteGroupRabbitOptions.verify(message.rabbit); - if (error) - return "rabbit." + error; - } - if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) { - var error = $root.protos.opts.WriteGroupRabbitStreamsOptions.verify(message.rabbitStreams); - if (error) - return "rabbitStreams." + error; - } - if (message.mqtt != null && message.hasOwnProperty("mqtt")) { - var error = $root.protos.opts.WriteGroupMQTTOptions.verify(message.mqtt); - if (error) - return "mqtt." + error; - } - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) { - var error = $root.protos.opts.WriteGroupAzureServiceBusOptions.verify(message.azureServiceBus); - if (error) - return "azureServiceBus." + error; - } - if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) { - var error = $root.protos.opts.WriteGroupAzureEventHubOptions.verify(message.azureEventHub); - if (error) - return "azureEventHub." + error; - } - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) { - var error = $root.protos.opts.WriteGroupGCPPubSubOptions.verify(message.gcpPubsub); - if (error) - return "gcpPubsub." + error; - } - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) { - var error = $root.protos.opts.WriteGroupKubeMQQueueOptions.verify(message.kubemqQueue); - if (error) - return "kubemqQueue." + error; - } - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) { - var error = $root.protos.opts.WriteGroupRedisPubSubOptions.verify(message.redisPubsub); - if (error) - return "redisPubsub." + error; - } - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) { - var error = $root.protos.opts.WriteGroupRedisStreamsOptions.verify(message.redisStreams); - if (error) - return "redisStreams." + error; - } - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) { - var error = $root.protos.opts.WriteGroupNatsJetstreamOptions.verify(message.natsJetstream); - if (error) - return "natsJetstream." + error; - } - if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) { - var error = $root.protos.opts.WriteGroupAWSKinesisOptions.verify(message.awsKinesis); - if (error) - return "awsKinesis." + error; - } - if (message.memphis != null && message.hasOwnProperty("memphis")) { - var error = $root.protos.opts.WriteGroupMemphisOptions.verify(message.memphis); - if (error) - return "memphis." + error; - } - return null; - }; - - /** - * Creates a WriteOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteOptions} WriteOptions - */ - WriteOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteOptions) - return object; - var message = new $root.protos.opts.WriteOptions(); - if (object.connectionId != null) - message.connectionId = String(object.connectionId); - if (object.record != null) { - if (typeof object.record !== "object") - throw TypeError(".protos.opts.WriteOptions.record: object expected"); - message.record = $root.protos.records.WriteRecord.fromObject(object.record); - } - if (object.encodeOptions != null) { - if (typeof object.encodeOptions !== "object") - throw TypeError(".protos.opts.WriteOptions.encodeOptions: object expected"); - message.encodeOptions = $root.protos.encoding.EncodeOptions.fromObject(object.encodeOptions); - } - if (object._cliOptions != null) { - if (typeof object._cliOptions !== "object") - throw TypeError(".protos.opts.WriteOptions._cliOptions: object expected"); - message._cliOptions = $root.protos.opts.WriteCLIOptions.fromObject(object._cliOptions); - } - if (object.kafka != null) { - if (typeof object.kafka !== "object") - throw TypeError(".protos.opts.WriteOptions.kafka: object expected"); - message.kafka = $root.protos.opts.WriteGroupKafkaOptions.fromObject(object.kafka); - } - if (object.activemq != null) { - if (typeof object.activemq !== "object") - throw TypeError(".protos.opts.WriteOptions.activemq: object expected"); - message.activemq = $root.protos.opts.WriteGroupActiveMQOptions.fromObject(object.activemq); - } - if (object.awsSqs != null) { - if (typeof object.awsSqs !== "object") - throw TypeError(".protos.opts.WriteOptions.awsSqs: object expected"); - message.awsSqs = $root.protos.opts.WriteGroupAWSSQSOptions.fromObject(object.awsSqs); - } - if (object.awsSns != null) { - if (typeof object.awsSns !== "object") - throw TypeError(".protos.opts.WriteOptions.awsSns: object expected"); - message.awsSns = $root.protos.opts.WriteGroupAWSSNSOptions.fromObject(object.awsSns); - } - if (object.nats != null) { - if (typeof object.nats !== "object") - throw TypeError(".protos.opts.WriteOptions.nats: object expected"); - message.nats = $root.protos.opts.WriteGroupNatsOptions.fromObject(object.nats); - } - if (object.natsStreaming != null) { - if (typeof object.natsStreaming !== "object") - throw TypeError(".protos.opts.WriteOptions.natsStreaming: object expected"); - message.natsStreaming = $root.protos.opts.WriteGroupNatsStreamingOptions.fromObject(object.natsStreaming); - } - if (object.nsq != null) { - if (typeof object.nsq !== "object") - throw TypeError(".protos.opts.WriteOptions.nsq: object expected"); - message.nsq = $root.protos.opts.WriteGroupNSQOptions.fromObject(object.nsq); - } - if (object.pulsar != null) { - if (typeof object.pulsar !== "object") - throw TypeError(".protos.opts.WriteOptions.pulsar: object expected"); - message.pulsar = $root.protos.opts.WriteGroupPulsarOptions.fromObject(object.pulsar); - } - if (object.rabbit != null) { - if (typeof object.rabbit !== "object") - throw TypeError(".protos.opts.WriteOptions.rabbit: object expected"); - message.rabbit = $root.protos.opts.WriteGroupRabbitOptions.fromObject(object.rabbit); - } - if (object.rabbitStreams != null) { - if (typeof object.rabbitStreams !== "object") - throw TypeError(".protos.opts.WriteOptions.rabbitStreams: object expected"); - message.rabbitStreams = $root.protos.opts.WriteGroupRabbitStreamsOptions.fromObject(object.rabbitStreams); - } - if (object.mqtt != null) { - if (typeof object.mqtt !== "object") - throw TypeError(".protos.opts.WriteOptions.mqtt: object expected"); - message.mqtt = $root.protos.opts.WriteGroupMQTTOptions.fromObject(object.mqtt); - } - if (object.azureServiceBus != null) { - if (typeof object.azureServiceBus !== "object") - throw TypeError(".protos.opts.WriteOptions.azureServiceBus: object expected"); - message.azureServiceBus = $root.protos.opts.WriteGroupAzureServiceBusOptions.fromObject(object.azureServiceBus); - } - if (object.azureEventHub != null) { - if (typeof object.azureEventHub !== "object") - throw TypeError(".protos.opts.WriteOptions.azureEventHub: object expected"); - message.azureEventHub = $root.protos.opts.WriteGroupAzureEventHubOptions.fromObject(object.azureEventHub); - } - if (object.gcpPubsub != null) { - if (typeof object.gcpPubsub !== "object") - throw TypeError(".protos.opts.WriteOptions.gcpPubsub: object expected"); - message.gcpPubsub = $root.protos.opts.WriteGroupGCPPubSubOptions.fromObject(object.gcpPubsub); - } - if (object.kubemqQueue != null) { - if (typeof object.kubemqQueue !== "object") - throw TypeError(".protos.opts.WriteOptions.kubemqQueue: object expected"); - message.kubemqQueue = $root.protos.opts.WriteGroupKubeMQQueueOptions.fromObject(object.kubemqQueue); - } - if (object.redisPubsub != null) { - if (typeof object.redisPubsub !== "object") - throw TypeError(".protos.opts.WriteOptions.redisPubsub: object expected"); - message.redisPubsub = $root.protos.opts.WriteGroupRedisPubSubOptions.fromObject(object.redisPubsub); - } - if (object.redisStreams != null) { - if (typeof object.redisStreams !== "object") - throw TypeError(".protos.opts.WriteOptions.redisStreams: object expected"); - message.redisStreams = $root.protos.opts.WriteGroupRedisStreamsOptions.fromObject(object.redisStreams); - } - if (object.natsJetstream != null) { - if (typeof object.natsJetstream !== "object") - throw TypeError(".protos.opts.WriteOptions.natsJetstream: object expected"); - message.natsJetstream = $root.protos.opts.WriteGroupNatsJetstreamOptions.fromObject(object.natsJetstream); - } - if (object.awsKinesis != null) { - if (typeof object.awsKinesis !== "object") - throw TypeError(".protos.opts.WriteOptions.awsKinesis: object expected"); - message.awsKinesis = $root.protos.opts.WriteGroupAWSKinesisOptions.fromObject(object.awsKinesis); - } - if (object.memphis != null) { - if (typeof object.memphis !== "object") - throw TypeError(".protos.opts.WriteOptions.memphis: object expected"); - message.memphis = $root.protos.opts.WriteGroupMemphisOptions.fromObject(object.memphis); - } - return message; - }; - - /** - * Creates a plain object from a WriteOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteOptions - * @static - * @param {protos.opts.WriteOptions} message WriteOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.connectionId = ""; - object.record = null; - object.encodeOptions = null; - object.kafka = null; - object.activemq = null; - object.awsSqs = null; - object.awsSns = null; - object.nats = null; - object.natsStreaming = null; - object.nsq = null; - object.pulsar = null; - object.rabbit = null; - object.rabbitStreams = null; - object.mqtt = null; - object.azureServiceBus = null; - object.azureEventHub = null; - object.gcpPubsub = null; - object.kubemqQueue = null; - object.redisPubsub = null; - object.redisStreams = null; - object.natsJetstream = null; - object.awsKinesis = null; - object.memphis = null; - object._cliOptions = null; - } - if (message.connectionId != null && message.hasOwnProperty("connectionId")) - object.connectionId = message.connectionId; - if (message.record != null && message.hasOwnProperty("record")) - object.record = $root.protos.records.WriteRecord.toObject(message.record, options); - if (message.encodeOptions != null && message.hasOwnProperty("encodeOptions")) - object.encodeOptions = $root.protos.encoding.EncodeOptions.toObject(message.encodeOptions, options); - if (message.kafka != null && message.hasOwnProperty("kafka")) - object.kafka = $root.protos.opts.WriteGroupKafkaOptions.toObject(message.kafka, options); - if (message.activemq != null && message.hasOwnProperty("activemq")) - object.activemq = $root.protos.opts.WriteGroupActiveMQOptions.toObject(message.activemq, options); - if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) - object.awsSqs = $root.protos.opts.WriteGroupAWSSQSOptions.toObject(message.awsSqs, options); - if (message.awsSns != null && message.hasOwnProperty("awsSns")) - object.awsSns = $root.protos.opts.WriteGroupAWSSNSOptions.toObject(message.awsSns, options); - if (message.nats != null && message.hasOwnProperty("nats")) - object.nats = $root.protos.opts.WriteGroupNatsOptions.toObject(message.nats, options); - if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) - object.natsStreaming = $root.protos.opts.WriteGroupNatsStreamingOptions.toObject(message.natsStreaming, options); - if (message.nsq != null && message.hasOwnProperty("nsq")) - object.nsq = $root.protos.opts.WriteGroupNSQOptions.toObject(message.nsq, options); - if (message.pulsar != null && message.hasOwnProperty("pulsar")) - object.pulsar = $root.protos.opts.WriteGroupPulsarOptions.toObject(message.pulsar, options); - if (message.rabbit != null && message.hasOwnProperty("rabbit")) - object.rabbit = $root.protos.opts.WriteGroupRabbitOptions.toObject(message.rabbit, options); - if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) - object.rabbitStreams = $root.protos.opts.WriteGroupRabbitStreamsOptions.toObject(message.rabbitStreams, options); - if (message.mqtt != null && message.hasOwnProperty("mqtt")) - object.mqtt = $root.protos.opts.WriteGroupMQTTOptions.toObject(message.mqtt, options); - if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) - object.azureServiceBus = $root.protos.opts.WriteGroupAzureServiceBusOptions.toObject(message.azureServiceBus, options); - if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) - object.azureEventHub = $root.protos.opts.WriteGroupAzureEventHubOptions.toObject(message.azureEventHub, options); - if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) - object.gcpPubsub = $root.protos.opts.WriteGroupGCPPubSubOptions.toObject(message.gcpPubsub, options); - if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) - object.kubemqQueue = $root.protos.opts.WriteGroupKubeMQQueueOptions.toObject(message.kubemqQueue, options); - if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) - object.redisPubsub = $root.protos.opts.WriteGroupRedisPubSubOptions.toObject(message.redisPubsub, options); - if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) - object.redisStreams = $root.protos.opts.WriteGroupRedisStreamsOptions.toObject(message.redisStreams, options); - if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) - object.natsJetstream = $root.protos.opts.WriteGroupNatsJetstreamOptions.toObject(message.natsJetstream, options); - if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) - object.awsKinesis = $root.protos.opts.WriteGroupAWSKinesisOptions.toObject(message.awsKinesis, options); - if (message.memphis != null && message.hasOwnProperty("memphis")) - object.memphis = $root.protos.opts.WriteGroupMemphisOptions.toObject(message.memphis, options); - if (message._cliOptions != null && message.hasOwnProperty("_cliOptions")) - object._cliOptions = $root.protos.opts.WriteCLIOptions.toObject(message._cliOptions, options); + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.KubeMQQueueConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.KubeMQQueueReadArgs.toObject(message.args, options); return object; }; /** - * Converts this WriteOptions to JSON. + * Converts this ReadGroupKubeMQQueueOptions to JSON. * @function toJSON - * @memberof protos.opts.WriteOptions + * @memberof protos.opts.ReadGroupKubeMQQueueOptions * @instance * @returns {Object.} JSON object */ - WriteOptions.prototype.toJSON = function toJSON() { + ReadGroupKubeMQQueueOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return WriteOptions; + return ReadGroupKubeMQQueueOptions; })(); - opts.WriteGroupKafkaOptions = (function() { + opts.ReadGroupAWSKinesisOptions = (function() { /** - * Properties of a WriteGroupKafkaOptions. + * Properties of a ReadGroupAWSKinesisOptions. * @memberof protos.opts - * @interface IWriteGroupKafkaOptions - * @property {protos.args.IKafkaConn|null} [_conn] WriteGroupKafkaOptions _conn - * @property {protos.args.IKafkaWriteArgs|null} [args] WriteGroupKafkaOptions args + * @interface IReadGroupAWSKinesisOptions + * @property {protos.args.IAWSKinesisConn|null} [_conn] ReadGroupAWSKinesisOptions _conn + * @property {protos.args.IAWSKinesisReadArgs|null} [args] ReadGroupAWSKinesisOptions args */ /** - * Constructs a new WriteGroupKafkaOptions. + * Constructs a new ReadGroupAWSKinesisOptions. * @memberof protos.opts - * @classdesc Represents a WriteGroupKafkaOptions. - * @implements IWriteGroupKafkaOptions + * @classdesc Represents a ReadGroupAWSKinesisOptions. + * @implements IReadGroupAWSKinesisOptions * @constructor - * @param {protos.opts.IWriteGroupKafkaOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupAWSKinesisOptions=} [properties] Properties to set */ - function WriteGroupKafkaOptions(properties) { + function ReadGroupAWSKinesisOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30504,88 +28482,88 @@ $root.protos = (function() { } /** - * WriteGroupKafkaOptions _conn. - * @member {protos.args.IKafkaConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupKafkaOptions + * ReadGroupAWSKinesisOptions _conn. + * @member {protos.args.IAWSKinesisConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupAWSKinesisOptions * @instance */ - WriteGroupKafkaOptions.prototype._conn = null; + ReadGroupAWSKinesisOptions.prototype._conn = null; /** - * WriteGroupKafkaOptions args. - * @member {protos.args.IKafkaWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupKafkaOptions + * ReadGroupAWSKinesisOptions args. + * @member {protos.args.IAWSKinesisReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupAWSKinesisOptions * @instance */ - WriteGroupKafkaOptions.prototype.args = null; + ReadGroupAWSKinesisOptions.prototype.args = null; /** - * Creates a new WriteGroupKafkaOptions instance using the specified properties. + * Creates a new ReadGroupAWSKinesisOptions instance using the specified properties. * @function create - * @memberof protos.opts.WriteGroupKafkaOptions + * @memberof protos.opts.ReadGroupAWSKinesisOptions * @static - * @param {protos.opts.IWriteGroupKafkaOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupKafkaOptions} WriteGroupKafkaOptions instance + * @param {protos.opts.IReadGroupAWSKinesisOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupAWSKinesisOptions} ReadGroupAWSKinesisOptions instance */ - WriteGroupKafkaOptions.create = function create(properties) { - return new WriteGroupKafkaOptions(properties); + ReadGroupAWSKinesisOptions.create = function create(properties) { + return new ReadGroupAWSKinesisOptions(properties); }; /** - * Encodes the specified WriteGroupKafkaOptions message. Does not implicitly {@link protos.opts.WriteGroupKafkaOptions.verify|verify} messages. + * Encodes the specified ReadGroupAWSKinesisOptions message. Does not implicitly {@link protos.opts.ReadGroupAWSKinesisOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.WriteGroupKafkaOptions + * @memberof protos.opts.ReadGroupAWSKinesisOptions * @static - * @param {protos.opts.IWriteGroupKafkaOptions} message WriteGroupKafkaOptions message or plain object to encode + * @param {protos.opts.IReadGroupAWSKinesisOptions} message ReadGroupAWSKinesisOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteGroupKafkaOptions.encode = function encode(message, writer) { + ReadGroupAWSKinesisOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.KafkaConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.AWSKinesisConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.KafkaWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.AWSKinesisReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified WriteGroupKafkaOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupKafkaOptions.verify|verify} messages. + * Encodes the specified ReadGroupAWSKinesisOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupAWSKinesisOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.WriteGroupKafkaOptions + * @memberof protos.opts.ReadGroupAWSKinesisOptions * @static - * @param {protos.opts.IWriteGroupKafkaOptions} message WriteGroupKafkaOptions message or plain object to encode + * @param {protos.opts.IReadGroupAWSKinesisOptions} message ReadGroupAWSKinesisOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteGroupKafkaOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupAWSKinesisOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WriteGroupKafkaOptions message from the specified reader or buffer. + * Decodes a ReadGroupAWSKinesisOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.WriteGroupKafkaOptions + * @memberof protos.opts.ReadGroupAWSKinesisOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupKafkaOptions} WriteGroupKafkaOptions + * @returns {protos.opts.ReadGroupAWSKinesisOptions} ReadGroupAWSKinesisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteGroupKafkaOptions.decode = function decode(reader, length) { + ReadGroupAWSKinesisOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupKafkaOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupAWSKinesisOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.KafkaConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.AWSKinesisConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.KafkaWriteArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.AWSKinesisReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -30596,39 +28574,39 @@ $root.protos = (function() { }; /** - * Decodes a WriteGroupKafkaOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupAWSKinesisOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.WriteGroupKafkaOptions + * @memberof protos.opts.ReadGroupAWSKinesisOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupKafkaOptions} WriteGroupKafkaOptions + * @returns {protos.opts.ReadGroupAWSKinesisOptions} ReadGroupAWSKinesisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteGroupKafkaOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupAWSKinesisOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WriteGroupKafkaOptions message. + * Verifies a ReadGroupAWSKinesisOptions message. * @function verify - * @memberof protos.opts.WriteGroupKafkaOptions + * @memberof protos.opts.ReadGroupAWSKinesisOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteGroupKafkaOptions.verify = function verify(message) { + ReadGroupAWSKinesisOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.KafkaConn.verify(message._conn); + var error = $root.protos.args.AWSKinesisConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.KafkaWriteArgs.verify(message.args); + var error = $root.protos.args.AWSKinesisReadArgs.verify(message.args); if (error) return "args." + error; } @@ -30636,40 +28614,40 @@ $root.protos = (function() { }; /** - * Creates a WriteGroupKafkaOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupAWSKinesisOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.WriteGroupKafkaOptions + * @memberof protos.opts.ReadGroupAWSKinesisOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupKafkaOptions} WriteGroupKafkaOptions + * @returns {protos.opts.ReadGroupAWSKinesisOptions} ReadGroupAWSKinesisOptions */ - WriteGroupKafkaOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupKafkaOptions) + ReadGroupAWSKinesisOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupAWSKinesisOptions) return object; - var message = new $root.protos.opts.WriteGroupKafkaOptions(); + var message = new $root.protos.opts.ReadGroupAWSKinesisOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupKafkaOptions._conn: object expected"); - message._conn = $root.protos.args.KafkaConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupAWSKinesisOptions._conn: object expected"); + message._conn = $root.protos.args.AWSKinesisConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupKafkaOptions.args: object expected"); - message.args = $root.protos.args.KafkaWriteArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupAWSKinesisOptions.args: object expected"); + message.args = $root.protos.args.AWSKinesisReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a WriteGroupKafkaOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupAWSKinesisOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.WriteGroupKafkaOptions + * @memberof protos.opts.ReadGroupAWSKinesisOptions * @static - * @param {protos.opts.WriteGroupKafkaOptions} message WriteGroupKafkaOptions + * @param {protos.opts.ReadGroupAWSKinesisOptions} message ReadGroupAWSKinesisOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WriteGroupKafkaOptions.toObject = function toObject(message, options) { + ReadGroupAWSKinesisOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -30678,45 +28656,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.KafkaConn.toObject(message._conn, options); + object._conn = $root.protos.args.AWSKinesisConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.KafkaWriteArgs.toObject(message.args, options); + object.args = $root.protos.args.AWSKinesisReadArgs.toObject(message.args, options); return object; }; /** - * Converts this WriteGroupKafkaOptions to JSON. + * Converts this ReadGroupAWSKinesisOptions to JSON. * @function toJSON - * @memberof protos.opts.WriteGroupKafkaOptions + * @memberof protos.opts.ReadGroupAWSKinesisOptions * @instance * @returns {Object.} JSON object */ - WriteGroupKafkaOptions.prototype.toJSON = function toJSON() { + ReadGroupAWSKinesisOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return WriteGroupKafkaOptions; + return ReadGroupAWSKinesisOptions; })(); - opts.WriteGroupActiveMQOptions = (function() { + opts.ReadGroupMemphisOptions = (function() { /** - * Properties of a WriteGroupActiveMQOptions. + * Properties of a ReadGroupMemphisOptions. * @memberof protos.opts - * @interface IWriteGroupActiveMQOptions - * @property {protos.args.IActiveMQConn|null} [_conn] WriteGroupActiveMQOptions _conn - * @property {protos.args.IActiveMQWriteArgs|null} [args] WriteGroupActiveMQOptions args + * @interface IReadGroupMemphisOptions + * @property {protos.args.IMemphisConn|null} [_conn] ReadGroupMemphisOptions _conn + * @property {protos.args.IMemphisReadArgs|null} [args] ReadGroupMemphisOptions args */ /** - * Constructs a new WriteGroupActiveMQOptions. + * Constructs a new ReadGroupMemphisOptions. * @memberof protos.opts - * @classdesc Represents a WriteGroupActiveMQOptions. - * @implements IWriteGroupActiveMQOptions + * @classdesc Represents a ReadGroupMemphisOptions. + * @implements IReadGroupMemphisOptions * @constructor - * @param {protos.opts.IWriteGroupActiveMQOptions=} [properties] Properties to set + * @param {protos.opts.IReadGroupMemphisOptions=} [properties] Properties to set */ - function WriteGroupActiveMQOptions(properties) { + function ReadGroupMemphisOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30724,88 +28702,88 @@ $root.protos = (function() { } /** - * WriteGroupActiveMQOptions _conn. - * @member {protos.args.IActiveMQConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupActiveMQOptions + * ReadGroupMemphisOptions _conn. + * @member {protos.args.IMemphisConn|null|undefined} _conn + * @memberof protos.opts.ReadGroupMemphisOptions * @instance */ - WriteGroupActiveMQOptions.prototype._conn = null; + ReadGroupMemphisOptions.prototype._conn = null; /** - * WriteGroupActiveMQOptions args. - * @member {protos.args.IActiveMQWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupActiveMQOptions + * ReadGroupMemphisOptions args. + * @member {protos.args.IMemphisReadArgs|null|undefined} args + * @memberof protos.opts.ReadGroupMemphisOptions * @instance */ - WriteGroupActiveMQOptions.prototype.args = null; + ReadGroupMemphisOptions.prototype.args = null; /** - * Creates a new WriteGroupActiveMQOptions instance using the specified properties. + * Creates a new ReadGroupMemphisOptions instance using the specified properties. * @function create - * @memberof protos.opts.WriteGroupActiveMQOptions + * @memberof protos.opts.ReadGroupMemphisOptions * @static - * @param {protos.opts.IWriteGroupActiveMQOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupActiveMQOptions} WriteGroupActiveMQOptions instance + * @param {protos.opts.IReadGroupMemphisOptions=} [properties] Properties to set + * @returns {protos.opts.ReadGroupMemphisOptions} ReadGroupMemphisOptions instance */ - WriteGroupActiveMQOptions.create = function create(properties) { - return new WriteGroupActiveMQOptions(properties); + ReadGroupMemphisOptions.create = function create(properties) { + return new ReadGroupMemphisOptions(properties); }; /** - * Encodes the specified WriteGroupActiveMQOptions message. Does not implicitly {@link protos.opts.WriteGroupActiveMQOptions.verify|verify} messages. + * Encodes the specified ReadGroupMemphisOptions message. Does not implicitly {@link protos.opts.ReadGroupMemphisOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.WriteGroupActiveMQOptions + * @memberof protos.opts.ReadGroupMemphisOptions * @static - * @param {protos.opts.IWriteGroupActiveMQOptions} message WriteGroupActiveMQOptions message or plain object to encode + * @param {protos.opts.IReadGroupMemphisOptions} message ReadGroupMemphisOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteGroupActiveMQOptions.encode = function encode(message, writer) { + ReadGroupMemphisOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.ActiveMQConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.protos.args.MemphisConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.ActiveMQWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.protos.args.MemphisReadArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified WriteGroupActiveMQOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupActiveMQOptions.verify|verify} messages. + * Encodes the specified ReadGroupMemphisOptions message, length delimited. Does not implicitly {@link protos.opts.ReadGroupMemphisOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.WriteGroupActiveMQOptions + * @memberof protos.opts.ReadGroupMemphisOptions * @static - * @param {protos.opts.IWriteGroupActiveMQOptions} message WriteGroupActiveMQOptions message or plain object to encode + * @param {protos.opts.IReadGroupMemphisOptions} message ReadGroupMemphisOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteGroupActiveMQOptions.encodeDelimited = function encodeDelimited(message, writer) { + ReadGroupMemphisOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WriteGroupActiveMQOptions message from the specified reader or buffer. + * Decodes a ReadGroupMemphisOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.WriteGroupActiveMQOptions + * @memberof protos.opts.ReadGroupMemphisOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupActiveMQOptions} WriteGroupActiveMQOptions + * @returns {protos.opts.ReadGroupMemphisOptions} ReadGroupMemphisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteGroupActiveMQOptions.decode = function decode(reader, length) { + ReadGroupMemphisOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupActiveMQOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ReadGroupMemphisOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.ActiveMQConn.decode(reader, reader.uint32()); + message._conn = $root.protos.args.MemphisConn.decode(reader, reader.uint32()); break; case 2: - message.args = $root.protos.args.ActiveMQWriteArgs.decode(reader, reader.uint32()); + message.args = $root.protos.args.MemphisReadArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -30816,39 +28794,39 @@ $root.protos = (function() { }; /** - * Decodes a WriteGroupActiveMQOptions message from the specified reader or buffer, length delimited. + * Decodes a ReadGroupMemphisOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.WriteGroupActiveMQOptions + * @memberof protos.opts.ReadGroupMemphisOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupActiveMQOptions} WriteGroupActiveMQOptions + * @returns {protos.opts.ReadGroupMemphisOptions} ReadGroupMemphisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteGroupActiveMQOptions.decodeDelimited = function decodeDelimited(reader) { + ReadGroupMemphisOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WriteGroupActiveMQOptions message. + * Verifies a ReadGroupMemphisOptions message. * @function verify - * @memberof protos.opts.WriteGroupActiveMQOptions + * @memberof protos.opts.ReadGroupMemphisOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteGroupActiveMQOptions.verify = function verify(message) { + ReadGroupMemphisOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.ActiveMQConn.verify(message._conn); + var error = $root.protos.args.MemphisConn.verify(message._conn); if (error) return "_conn." + error; } if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.ActiveMQWriteArgs.verify(message.args); + var error = $root.protos.args.MemphisReadArgs.verify(message.args); if (error) return "args." + error; } @@ -30856,40 +28834,40 @@ $root.protos = (function() { }; /** - * Creates a WriteGroupActiveMQOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ReadGroupMemphisOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.WriteGroupActiveMQOptions + * @memberof protos.opts.ReadGroupMemphisOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupActiveMQOptions} WriteGroupActiveMQOptions + * @returns {protos.opts.ReadGroupMemphisOptions} ReadGroupMemphisOptions */ - WriteGroupActiveMQOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupActiveMQOptions) + ReadGroupMemphisOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ReadGroupMemphisOptions) return object; - var message = new $root.protos.opts.WriteGroupActiveMQOptions(); + var message = new $root.protos.opts.ReadGroupMemphisOptions(); if (object._conn != null) { if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupActiveMQOptions._conn: object expected"); - message._conn = $root.protos.args.ActiveMQConn.fromObject(object._conn); + throw TypeError(".protos.opts.ReadGroupMemphisOptions._conn: object expected"); + message._conn = $root.protos.args.MemphisConn.fromObject(object._conn); } if (object.args != null) { if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupActiveMQOptions.args: object expected"); - message.args = $root.protos.args.ActiveMQWriteArgs.fromObject(object.args); + throw TypeError(".protos.opts.ReadGroupMemphisOptions.args: object expected"); + message.args = $root.protos.args.MemphisReadArgs.fromObject(object.args); } return message; }; /** - * Creates a plain object from a WriteGroupActiveMQOptions message. Also converts values to other types if specified. + * Creates a plain object from a ReadGroupMemphisOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.WriteGroupActiveMQOptions + * @memberof protos.opts.ReadGroupMemphisOptions * @static - * @param {protos.opts.WriteGroupActiveMQOptions} message WriteGroupActiveMQOptions + * @param {protos.opts.ReadGroupMemphisOptions} message ReadGroupMemphisOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WriteGroupActiveMQOptions.toObject = function toObject(message, options) { + ReadGroupMemphisOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -30898,45 +28876,45 @@ $root.protos = (function() { object.args = null; } if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.ActiveMQConn.toObject(message._conn, options); + object._conn = $root.protos.args.MemphisConn.toObject(message._conn, options); if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.ActiveMQWriteArgs.toObject(message.args, options); + object.args = $root.protos.args.MemphisReadArgs.toObject(message.args, options); return object; }; /** - * Converts this WriteGroupActiveMQOptions to JSON. + * Converts this ReadGroupMemphisOptions to JSON. * @function toJSON - * @memberof protos.opts.WriteGroupActiveMQOptions + * @memberof protos.opts.ReadGroupMemphisOptions * @instance * @returns {Object.} JSON object */ - WriteGroupActiveMQOptions.prototype.toJSON = function toJSON() { + ReadGroupMemphisOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return WriteGroupActiveMQOptions; + return ReadGroupMemphisOptions; })(); - opts.WriteGroupAWSSQSOptions = (function() { + opts.InferSchemaOptions = (function() { /** - * Properties of a WriteGroupAWSSQSOptions. + * Properties of an InferSchemaOptions. * @memberof protos.opts - * @interface IWriteGroupAWSSQSOptions - * @property {protos.args.IAWSSQSConn|null} [_conn] WriteGroupAWSSQSOptions _conn - * @property {protos.args.IAWSSQSWriteArgs|null} [args] WriteGroupAWSSQSOptions args + * @interface IInferSchemaOptions + * @property {protos.opts.InferSchemaOptions.Type|null} [type] InferSchemaOptions type + * @property {string|null} [schemaId] InferSchemaOptions schemaId */ /** - * Constructs a new WriteGroupAWSSQSOptions. + * Constructs a new InferSchemaOptions. * @memberof protos.opts - * @classdesc Represents a WriteGroupAWSSQSOptions. - * @implements IWriteGroupAWSSQSOptions + * @classdesc Represents an InferSchemaOptions. + * @implements IInferSchemaOptions * @constructor - * @param {protos.opts.IWriteGroupAWSSQSOptions=} [properties] Properties to set + * @param {protos.opts.IInferSchemaOptions=} [properties] Properties to set */ - function WriteGroupAWSSQSOptions(properties) { + function InferSchemaOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30944,88 +28922,88 @@ $root.protos = (function() { } /** - * WriteGroupAWSSQSOptions _conn. - * @member {protos.args.IAWSSQSConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupAWSSQSOptions + * InferSchemaOptions type. + * @member {protos.opts.InferSchemaOptions.Type} type + * @memberof protos.opts.InferSchemaOptions * @instance */ - WriteGroupAWSSQSOptions.prototype._conn = null; + InferSchemaOptions.prototype.type = 0; /** - * WriteGroupAWSSQSOptions args. - * @member {protos.args.IAWSSQSWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupAWSSQSOptions + * InferSchemaOptions schemaId. + * @member {string} schemaId + * @memberof protos.opts.InferSchemaOptions * @instance */ - WriteGroupAWSSQSOptions.prototype.args = null; + InferSchemaOptions.prototype.schemaId = ""; /** - * Creates a new WriteGroupAWSSQSOptions instance using the specified properties. + * Creates a new InferSchemaOptions instance using the specified properties. * @function create - * @memberof protos.opts.WriteGroupAWSSQSOptions + * @memberof protos.opts.InferSchemaOptions * @static - * @param {protos.opts.IWriteGroupAWSSQSOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupAWSSQSOptions} WriteGroupAWSSQSOptions instance + * @param {protos.opts.IInferSchemaOptions=} [properties] Properties to set + * @returns {protos.opts.InferSchemaOptions} InferSchemaOptions instance */ - WriteGroupAWSSQSOptions.create = function create(properties) { - return new WriteGroupAWSSQSOptions(properties); + InferSchemaOptions.create = function create(properties) { + return new InferSchemaOptions(properties); }; /** - * Encodes the specified WriteGroupAWSSQSOptions message. Does not implicitly {@link protos.opts.WriteGroupAWSSQSOptions.verify|verify} messages. + * Encodes the specified InferSchemaOptions message. Does not implicitly {@link protos.opts.InferSchemaOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.WriteGroupAWSSQSOptions + * @memberof protos.opts.InferSchemaOptions * @static - * @param {protos.opts.IWriteGroupAWSSQSOptions} message WriteGroupAWSSQSOptions message or plain object to encode + * @param {protos.opts.IInferSchemaOptions} message InferSchemaOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteGroupAWSSQSOptions.encode = function encode(message, writer) { + InferSchemaOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AWSSQSConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AWSSQSWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.schemaId != null && Object.hasOwnProperty.call(message, "schemaId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaId); return writer; }; /** - * Encodes the specified WriteGroupAWSSQSOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAWSSQSOptions.verify|verify} messages. + * Encodes the specified InferSchemaOptions message, length delimited. Does not implicitly {@link protos.opts.InferSchemaOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.WriteGroupAWSSQSOptions + * @memberof protos.opts.InferSchemaOptions * @static - * @param {protos.opts.IWriteGroupAWSSQSOptions} message WriteGroupAWSSQSOptions message or plain object to encode + * @param {protos.opts.IInferSchemaOptions} message InferSchemaOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteGroupAWSSQSOptions.encodeDelimited = function encodeDelimited(message, writer) { + InferSchemaOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WriteGroupAWSSQSOptions message from the specified reader or buffer. + * Decodes an InferSchemaOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.WriteGroupAWSSQSOptions + * @memberof protos.opts.InferSchemaOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupAWSSQSOptions} WriteGroupAWSSQSOptions + * @returns {protos.opts.InferSchemaOptions} InferSchemaOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteGroupAWSSQSOptions.decode = function decode(reader, length) { + InferSchemaOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupAWSSQSOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.InferSchemaOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.AWSSQSConn.decode(reader, reader.uint32()); + message.type = reader.int32(); break; case 2: - message.args = $root.protos.args.AWSSQSWriteArgs.decode(reader, reader.uint32()); + message.schemaId = reader.string(); break; default: reader.skipType(tag & 7); @@ -31036,127 +29014,146 @@ $root.protos = (function() { }; /** - * Decodes a WriteGroupAWSSQSOptions message from the specified reader or buffer, length delimited. + * Decodes an InferSchemaOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.WriteGroupAWSSQSOptions + * @memberof protos.opts.InferSchemaOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupAWSSQSOptions} WriteGroupAWSSQSOptions + * @returns {protos.opts.InferSchemaOptions} InferSchemaOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteGroupAWSSQSOptions.decodeDelimited = function decodeDelimited(reader) { + InferSchemaOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WriteGroupAWSSQSOptions message. + * Verifies an InferSchemaOptions message. * @function verify - * @memberof protos.opts.WriteGroupAWSSQSOptions + * @memberof protos.opts.InferSchemaOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteGroupAWSSQSOptions.verify = function verify(message) { + InferSchemaOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AWSSQSConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AWSSQSWriteArgs.verify(message.args); - if (error) - return "args." + error; - } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + break; + } + if (message.schemaId != null && message.hasOwnProperty("schemaId")) + if (!$util.isString(message.schemaId)) + return "schemaId: string expected"; return null; }; /** - * Creates a WriteGroupAWSSQSOptions message from a plain object. Also converts values to their respective internal types. + * Creates an InferSchemaOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.WriteGroupAWSSQSOptions + * @memberof protos.opts.InferSchemaOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupAWSSQSOptions} WriteGroupAWSSQSOptions + * @returns {protos.opts.InferSchemaOptions} InferSchemaOptions */ - WriteGroupAWSSQSOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupAWSSQSOptions) + InferSchemaOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.InferSchemaOptions) return object; - var message = new $root.protos.opts.WriteGroupAWSSQSOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupAWSSQSOptions._conn: object expected"); - message._conn = $root.protos.args.AWSSQSConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupAWSSQSOptions.args: object expected"); - message.args = $root.protos.args.AWSSQSWriteArgs.fromObject(object.args); + var message = new $root.protos.opts.InferSchemaOptions(); + switch (object.type) { + case "UNSET": + case 0: + message.type = 0; + break; + case "JSONSCHEMA": + case 1: + message.type = 1; + break; } + if (object.schemaId != null) + message.schemaId = String(object.schemaId); return message; }; /** - * Creates a plain object from a WriteGroupAWSSQSOptions message. Also converts values to other types if specified. + * Creates a plain object from an InferSchemaOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.WriteGroupAWSSQSOptions + * @memberof protos.opts.InferSchemaOptions * @static - * @param {protos.opts.WriteGroupAWSSQSOptions} message WriteGroupAWSSQSOptions + * @param {protos.opts.InferSchemaOptions} message InferSchemaOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WriteGroupAWSSQSOptions.toObject = function toObject(message, options) { + InferSchemaOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.type = options.enums === String ? "UNSET" : 0; + object.schemaId = ""; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AWSSQSConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AWSSQSWriteArgs.toObject(message.args, options); + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.protos.opts.InferSchemaOptions.Type[message.type] : message.type; + if (message.schemaId != null && message.hasOwnProperty("schemaId")) + object.schemaId = message.schemaId; return object; }; /** - * Converts this WriteGroupAWSSQSOptions to JSON. + * Converts this InferSchemaOptions to JSON. * @function toJSON - * @memberof protos.opts.WriteGroupAWSSQSOptions + * @memberof protos.opts.InferSchemaOptions * @instance * @returns {Object.} JSON object */ - WriteGroupAWSSQSOptions.prototype.toJSON = function toJSON() { + InferSchemaOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return WriteGroupAWSSQSOptions; + /** + * Type enum. + * @name protos.opts.InferSchemaOptions.Type + * @enum {number} + * @property {number} UNSET=0 UNSET value + * @property {number} JSONSCHEMA=1 JSONSCHEMA value + */ + InferSchemaOptions.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSET"] = 0; + values[valuesById[1] = "JSONSCHEMA"] = 1; + return values; + })(); + + return InferSchemaOptions; })(); - opts.WriteGroupAWSSNSOptions = (function() { + opts.WriteCLIOptions = (function() { /** - * Properties of a WriteGroupAWSSNSOptions. + * Properties of a WriteCLIOptions. * @memberof protos.opts - * @interface IWriteGroupAWSSNSOptions - * @property {protos.args.IAWSSNSConn|null} [_conn] WriteGroupAWSSNSOptions _conn - * @property {protos.args.IAWSSNSWriteArgs|null} [args] WriteGroupAWSSNSOptions args + * @interface IWriteCLIOptions + * @property {string|null} [inputFile] WriteCLIOptions inputFile + * @property {boolean|null} [inputAsJsonArray] WriteCLIOptions inputAsJsonArray + * @property {Array.|null} [inputStdin] WriteCLIOptions inputStdin */ /** - * Constructs a new WriteGroupAWSSNSOptions. + * Constructs a new WriteCLIOptions. * @memberof protos.opts - * @classdesc Represents a WriteGroupAWSSNSOptions. - * @implements IWriteGroupAWSSNSOptions + * @classdesc Represents a WriteCLIOptions. + * @implements IWriteCLIOptions * @constructor - * @param {protos.opts.IWriteGroupAWSSNSOptions=} [properties] Properties to set + * @param {protos.opts.IWriteCLIOptions=} [properties] Properties to set */ - function WriteGroupAWSSNSOptions(properties) { + function WriteCLIOptions(properties) { + this.inputStdin = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31164,88 +29161,104 @@ $root.protos = (function() { } /** - * WriteGroupAWSSNSOptions _conn. - * @member {protos.args.IAWSSNSConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupAWSSNSOptions + * WriteCLIOptions inputFile. + * @member {string} inputFile + * @memberof protos.opts.WriteCLIOptions * @instance */ - WriteGroupAWSSNSOptions.prototype._conn = null; + WriteCLIOptions.prototype.inputFile = ""; /** - * WriteGroupAWSSNSOptions args. - * @member {protos.args.IAWSSNSWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupAWSSNSOptions + * WriteCLIOptions inputAsJsonArray. + * @member {boolean} inputAsJsonArray + * @memberof protos.opts.WriteCLIOptions * @instance */ - WriteGroupAWSSNSOptions.prototype.args = null; + WriteCLIOptions.prototype.inputAsJsonArray = false; /** - * Creates a new WriteGroupAWSSNSOptions instance using the specified properties. + * WriteCLIOptions inputStdin. + * @member {Array.} inputStdin + * @memberof protos.opts.WriteCLIOptions + * @instance + */ + WriteCLIOptions.prototype.inputStdin = $util.emptyArray; + + /** + * Creates a new WriteCLIOptions instance using the specified properties. * @function create - * @memberof protos.opts.WriteGroupAWSSNSOptions + * @memberof protos.opts.WriteCLIOptions * @static - * @param {protos.opts.IWriteGroupAWSSNSOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupAWSSNSOptions} WriteGroupAWSSNSOptions instance + * @param {protos.opts.IWriteCLIOptions=} [properties] Properties to set + * @returns {protos.opts.WriteCLIOptions} WriteCLIOptions instance */ - WriteGroupAWSSNSOptions.create = function create(properties) { - return new WriteGroupAWSSNSOptions(properties); + WriteCLIOptions.create = function create(properties) { + return new WriteCLIOptions(properties); }; /** - * Encodes the specified WriteGroupAWSSNSOptions message. Does not implicitly {@link protos.opts.WriteGroupAWSSNSOptions.verify|verify} messages. + * Encodes the specified WriteCLIOptions message. Does not implicitly {@link protos.opts.WriteCLIOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.WriteGroupAWSSNSOptions + * @memberof protos.opts.WriteCLIOptions * @static - * @param {protos.opts.IWriteGroupAWSSNSOptions} message WriteGroupAWSSNSOptions message or plain object to encode + * @param {protos.opts.IWriteCLIOptions} message WriteCLIOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteGroupAWSSNSOptions.encode = function encode(message, writer) { + WriteCLIOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AWSSNSConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AWSSNSWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.inputFile != null && Object.hasOwnProperty.call(message, "inputFile")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputFile); + if (message.inputAsJsonArray != null && Object.hasOwnProperty.call(message, "inputAsJsonArray")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.inputAsJsonArray); + if (message.inputStdin != null && message.inputStdin.length) + for (var i = 0; i < message.inputStdin.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.inputStdin[i]); return writer; }; /** - * Encodes the specified WriteGroupAWSSNSOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAWSSNSOptions.verify|verify} messages. + * Encodes the specified WriteCLIOptions message, length delimited. Does not implicitly {@link protos.opts.WriteCLIOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.WriteGroupAWSSNSOptions + * @memberof protos.opts.WriteCLIOptions * @static - * @param {protos.opts.IWriteGroupAWSSNSOptions} message WriteGroupAWSSNSOptions message or plain object to encode + * @param {protos.opts.IWriteCLIOptions} message WriteCLIOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteGroupAWSSNSOptions.encodeDelimited = function encodeDelimited(message, writer) { + WriteCLIOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WriteGroupAWSSNSOptions message from the specified reader or buffer. + * Decodes a WriteCLIOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.WriteGroupAWSSNSOptions + * @memberof protos.opts.WriteCLIOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupAWSSNSOptions} WriteGroupAWSSNSOptions + * @returns {protos.opts.WriteCLIOptions} WriteCLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteGroupAWSSNSOptions.decode = function decode(reader, length) { + WriteCLIOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupAWSSNSOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteCLIOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.AWSSNSConn.decode(reader, reader.uint32()); + message.inputFile = reader.string(); break; case 2: - message.args = $root.protos.args.AWSSNSWriteArgs.decode(reader, reader.uint32()); + message.inputAsJsonArray = reader.bool(); + break; + case 3: + if (!(message.inputStdin && message.inputStdin.length)) + message.inputStdin = []; + message.inputStdin.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -31256,127 +29269,160 @@ $root.protos = (function() { }; /** - * Decodes a WriteGroupAWSSNSOptions message from the specified reader or buffer, length delimited. + * Decodes a WriteCLIOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.WriteGroupAWSSNSOptions + * @memberof protos.opts.WriteCLIOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupAWSSNSOptions} WriteGroupAWSSNSOptions + * @returns {protos.opts.WriteCLIOptions} WriteCLIOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteGroupAWSSNSOptions.decodeDelimited = function decodeDelimited(reader) { + WriteCLIOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WriteGroupAWSSNSOptions message. + * Verifies a WriteCLIOptions message. * @function verify - * @memberof protos.opts.WriteGroupAWSSNSOptions + * @memberof protos.opts.WriteCLIOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteGroupAWSSNSOptions.verify = function verify(message) { + WriteCLIOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AWSSNSConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AWSSNSWriteArgs.verify(message.args); - if (error) - return "args." + error; + if (message.inputFile != null && message.hasOwnProperty("inputFile")) + if (!$util.isString(message.inputFile)) + return "inputFile: string expected"; + if (message.inputAsJsonArray != null && message.hasOwnProperty("inputAsJsonArray")) + if (typeof message.inputAsJsonArray !== "boolean") + return "inputAsJsonArray: boolean expected"; + if (message.inputStdin != null && message.hasOwnProperty("inputStdin")) { + if (!Array.isArray(message.inputStdin)) + return "inputStdin: array expected"; + for (var i = 0; i < message.inputStdin.length; ++i) + if (!$util.isString(message.inputStdin[i])) + return "inputStdin: string[] expected"; } return null; }; /** - * Creates a WriteGroupAWSSNSOptions message from a plain object. Also converts values to their respective internal types. + * Creates a WriteCLIOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.WriteGroupAWSSNSOptions + * @memberof protos.opts.WriteCLIOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupAWSSNSOptions} WriteGroupAWSSNSOptions + * @returns {protos.opts.WriteCLIOptions} WriteCLIOptions */ - WriteGroupAWSSNSOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupAWSSNSOptions) + WriteCLIOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteCLIOptions) return object; - var message = new $root.protos.opts.WriteGroupAWSSNSOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupAWSSNSOptions._conn: object expected"); - message._conn = $root.protos.args.AWSSNSConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupAWSSNSOptions.args: object expected"); - message.args = $root.protos.args.AWSSNSWriteArgs.fromObject(object.args); + var message = new $root.protos.opts.WriteCLIOptions(); + if (object.inputFile != null) + message.inputFile = String(object.inputFile); + if (object.inputAsJsonArray != null) + message.inputAsJsonArray = Boolean(object.inputAsJsonArray); + if (object.inputStdin) { + if (!Array.isArray(object.inputStdin)) + throw TypeError(".protos.opts.WriteCLIOptions.inputStdin: array expected"); + message.inputStdin = []; + for (var i = 0; i < object.inputStdin.length; ++i) + message.inputStdin[i] = String(object.inputStdin[i]); } return message; }; /** - * Creates a plain object from a WriteGroupAWSSNSOptions message. Also converts values to other types if specified. + * Creates a plain object from a WriteCLIOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.WriteGroupAWSSNSOptions + * @memberof protos.opts.WriteCLIOptions * @static - * @param {protos.opts.WriteGroupAWSSNSOptions} message WriteGroupAWSSNSOptions + * @param {protos.opts.WriteCLIOptions} message WriteCLIOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WriteGroupAWSSNSOptions.toObject = function toObject(message, options) { + WriteCLIOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.inputStdin = []; if (options.defaults) { - object._conn = null; - object.args = null; + object.inputFile = ""; + object.inputAsJsonArray = false; + } + if (message.inputFile != null && message.hasOwnProperty("inputFile")) + object.inputFile = message.inputFile; + if (message.inputAsJsonArray != null && message.hasOwnProperty("inputAsJsonArray")) + object.inputAsJsonArray = message.inputAsJsonArray; + if (message.inputStdin && message.inputStdin.length) { + object.inputStdin = []; + for (var j = 0; j < message.inputStdin.length; ++j) + object.inputStdin[j] = message.inputStdin[j]; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AWSSNSConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AWSSNSWriteArgs.toObject(message.args, options); return object; }; /** - * Converts this WriteGroupAWSSNSOptions to JSON. + * Converts this WriteCLIOptions to JSON. * @function toJSON - * @memberof protos.opts.WriteGroupAWSSNSOptions + * @memberof protos.opts.WriteCLIOptions * @instance * @returns {Object.} JSON object */ - WriteGroupAWSSNSOptions.prototype.toJSON = function toJSON() { + WriteCLIOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return WriteGroupAWSSNSOptions; + return WriteCLIOptions; })(); - opts.WriteGroupNatsOptions = (function() { + opts.WriteOptions = (function() { /** - * Properties of a WriteGroupNatsOptions. + * Properties of a WriteOptions. * @memberof protos.opts - * @interface IWriteGroupNatsOptions - * @property {protos.args.INatsConn|null} [_conn] WriteGroupNatsOptions _conn - * @property {protos.args.INatsWriteArgs|null} [args] WriteGroupNatsOptions args + * @interface IWriteOptions + * @property {string|null} [connectionId] WriteOptions connectionId + * @property {protos.records.IWriteRecord|null} [record] WriteOptions record + * @property {protos.encoding.IEncodeOptions|null} [encodeOptions] WriteOptions encodeOptions + * @property {protos.opts.IWriteCLIOptions|null} [_cliOptions] WriteOptions _cliOptions + * @property {protos.opts.IWriteGroupKafkaOptions|null} [kafka] WriteOptions kafka + * @property {protos.opts.IWriteGroupActiveMQOptions|null} [activemq] WriteOptions activemq + * @property {protos.opts.IWriteGroupAWSSQSOptions|null} [awsSqs] WriteOptions awsSqs + * @property {protos.opts.IWriteGroupAWSSNSOptions|null} [awsSns] WriteOptions awsSns + * @property {protos.opts.IWriteGroupNatsOptions|null} [nats] WriteOptions nats + * @property {protos.opts.IWriteGroupNatsStreamingOptions|null} [natsStreaming] WriteOptions natsStreaming + * @property {protos.opts.IWriteGroupNSQOptions|null} [nsq] WriteOptions nsq + * @property {protos.opts.IWriteGroupPulsarOptions|null} [pulsar] WriteOptions pulsar + * @property {protos.opts.IWriteGroupRabbitOptions|null} [rabbit] WriteOptions rabbit + * @property {protos.opts.IWriteGroupRabbitStreamsOptions|null} [rabbitStreams] WriteOptions rabbitStreams + * @property {protos.opts.IWriteGroupMQTTOptions|null} [mqtt] WriteOptions mqtt + * @property {protos.opts.IWriteGroupAzureServiceBusOptions|null} [azureServiceBus] WriteOptions azureServiceBus + * @property {protos.opts.IWriteGroupAzureEventHubOptions|null} [azureEventHub] WriteOptions azureEventHub + * @property {protos.opts.IWriteGroupGCPPubSubOptions|null} [gcpPubsub] WriteOptions gcpPubsub + * @property {protos.opts.IWriteGroupKubeMQQueueOptions|null} [kubemqQueue] WriteOptions kubemqQueue + * @property {protos.opts.IWriteGroupRedisPubSubOptions|null} [redisPubsub] WriteOptions redisPubsub + * @property {protos.opts.IWriteGroupRedisStreamsOptions|null} [redisStreams] WriteOptions redisStreams + * @property {protos.opts.IWriteGroupNatsJetstreamOptions|null} [natsJetstream] WriteOptions natsJetstream + * @property {protos.opts.IWriteGroupAWSKinesisOptions|null} [awsKinesis] WriteOptions awsKinesis + * @property {protos.opts.IWriteGroupMemphisOptions|null} [memphis] WriteOptions memphis */ /** - * Constructs a new WriteGroupNatsOptions. + * Constructs a new WriteOptions. * @memberof protos.opts - * @classdesc Represents a WriteGroupNatsOptions. - * @implements IWriteGroupNatsOptions + * @classdesc Represents a WriteOptions. + * @implements IWriteOptions * @constructor - * @param {protos.opts.IWriteGroupNatsOptions=} [properties] Properties to set + * @param {protos.opts.IWriteOptions=} [properties] Properties to set */ - function WriteGroupNatsOptions(properties) { + function WriteOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31384,308 +29430,374 @@ $root.protos = (function() { } /** - * WriteGroupNatsOptions _conn. - * @member {protos.args.INatsConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupNatsOptions + * WriteOptions connectionId. + * @member {string} connectionId + * @memberof protos.opts.WriteOptions * @instance */ - WriteGroupNatsOptions.prototype._conn = null; + WriteOptions.prototype.connectionId = ""; /** - * WriteGroupNatsOptions args. - * @member {protos.args.INatsWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupNatsOptions + * WriteOptions record. + * @member {protos.records.IWriteRecord|null|undefined} record + * @memberof protos.opts.WriteOptions * @instance */ - WriteGroupNatsOptions.prototype.args = null; + WriteOptions.prototype.record = null; /** - * Creates a new WriteGroupNatsOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupNatsOptions - * @static - * @param {protos.opts.IWriteGroupNatsOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupNatsOptions} WriteGroupNatsOptions instance + * WriteOptions encodeOptions. + * @member {protos.encoding.IEncodeOptions|null|undefined} encodeOptions + * @memberof protos.opts.WriteOptions + * @instance */ - WriteGroupNatsOptions.create = function create(properties) { - return new WriteGroupNatsOptions(properties); - }; + WriteOptions.prototype.encodeOptions = null; /** - * Encodes the specified WriteGroupNatsOptions message. Does not implicitly {@link protos.opts.WriteGroupNatsOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupNatsOptions - * @static - * @param {protos.opts.IWriteGroupNatsOptions} message WriteGroupNatsOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * WriteOptions _cliOptions. + * @member {protos.opts.IWriteCLIOptions|null|undefined} _cliOptions + * @memberof protos.opts.WriteOptions + * @instance */ - WriteGroupNatsOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NatsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NatsWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + WriteOptions.prototype._cliOptions = null; /** - * Encodes the specified WriteGroupNatsOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNatsOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupNatsOptions - * @static - * @param {protos.opts.IWriteGroupNatsOptions} message WriteGroupNatsOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * WriteOptions kafka. + * @member {protos.opts.IWriteGroupKafkaOptions|null|undefined} kafka + * @memberof protos.opts.WriteOptions + * @instance */ - WriteGroupNatsOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + WriteOptions.prototype.kafka = null; /** - * Decodes a WriteGroupNatsOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupNatsOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupNatsOptions} WriteGroupNatsOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * WriteOptions activemq. + * @member {protos.opts.IWriteGroupActiveMQOptions|null|undefined} activemq + * @memberof protos.opts.WriteOptions + * @instance */ - WriteGroupNatsOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupNatsOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.NatsConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.NatsWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + WriteOptions.prototype.activemq = null; /** - * Decodes a WriteGroupNatsOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupNatsOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupNatsOptions} WriteGroupNatsOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * WriteOptions awsSqs. + * @member {protos.opts.IWriteGroupAWSSQSOptions|null|undefined} awsSqs + * @memberof protos.opts.WriteOptions + * @instance */ - WriteGroupNatsOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + WriteOptions.prototype.awsSqs = null; /** - * Verifies a WriteGroupNatsOptions message. - * @function verify - * @memberof protos.opts.WriteGroupNatsOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * WriteOptions awsSns. + * @member {protos.opts.IWriteGroupAWSSNSOptions|null|undefined} awsSns + * @memberof protos.opts.WriteOptions + * @instance */ - WriteGroupNatsOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NatsConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NatsWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; + WriteOptions.prototype.awsSns = null; /** - * Creates a WriteGroupNatsOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupNatsOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupNatsOptions} WriteGroupNatsOptions + * WriteOptions nats. + * @member {protos.opts.IWriteGroupNatsOptions|null|undefined} nats + * @memberof protos.opts.WriteOptions + * @instance */ - WriteGroupNatsOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupNatsOptions) - return object; - var message = new $root.protos.opts.WriteGroupNatsOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupNatsOptions._conn: object expected"); - message._conn = $root.protos.args.NatsConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupNatsOptions.args: object expected"); - message.args = $root.protos.args.NatsWriteArgs.fromObject(object.args); - } - return message; - }; + WriteOptions.prototype.nats = null; /** - * Creates a plain object from a WriteGroupNatsOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupNatsOptions - * @static - * @param {protos.opts.WriteGroupNatsOptions} message WriteGroupNatsOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * WriteOptions natsStreaming. + * @member {protos.opts.IWriteGroupNatsStreamingOptions|null|undefined} natsStreaming + * @memberof protos.opts.WriteOptions + * @instance */ - WriteGroupNatsOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NatsConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NatsWriteArgs.toObject(message.args, options); - return object; - }; + WriteOptions.prototype.natsStreaming = null; /** - * Converts this WriteGroupNatsOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupNatsOptions + * WriteOptions nsq. + * @member {protos.opts.IWriteGroupNSQOptions|null|undefined} nsq + * @memberof protos.opts.WriteOptions * @instance - * @returns {Object.} JSON object */ - WriteGroupNatsOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + WriteOptions.prototype.nsq = null; - return WriteGroupNatsOptions; - })(); + /** + * WriteOptions pulsar. + * @member {protos.opts.IWriteGroupPulsarOptions|null|undefined} pulsar + * @memberof protos.opts.WriteOptions + * @instance + */ + WriteOptions.prototype.pulsar = null; - opts.WriteGroupNatsJetstreamOptions = (function() { + /** + * WriteOptions rabbit. + * @member {protos.opts.IWriteGroupRabbitOptions|null|undefined} rabbit + * @memberof protos.opts.WriteOptions + * @instance + */ + WriteOptions.prototype.rabbit = null; /** - * Properties of a WriteGroupNatsJetstreamOptions. - * @memberof protos.opts - * @interface IWriteGroupNatsJetstreamOptions - * @property {protos.args.INatsJetstreamConn|null} [_conn] WriteGroupNatsJetstreamOptions _conn - * @property {protos.args.INatsJetstreamWriteArgs|null} [args] WriteGroupNatsJetstreamOptions args + * WriteOptions rabbitStreams. + * @member {protos.opts.IWriteGroupRabbitStreamsOptions|null|undefined} rabbitStreams + * @memberof protos.opts.WriteOptions + * @instance */ + WriteOptions.prototype.rabbitStreams = null; /** - * Constructs a new WriteGroupNatsJetstreamOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupNatsJetstreamOptions. - * @implements IWriteGroupNatsJetstreamOptions - * @constructor - * @param {protos.opts.IWriteGroupNatsJetstreamOptions=} [properties] Properties to set + * WriteOptions mqtt. + * @member {protos.opts.IWriteGroupMQTTOptions|null|undefined} mqtt + * @memberof protos.opts.WriteOptions + * @instance */ - function WriteGroupNatsJetstreamOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + WriteOptions.prototype.mqtt = null; /** - * WriteGroupNatsJetstreamOptions _conn. - * @member {protos.args.INatsJetstreamConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * WriteOptions azureServiceBus. + * @member {protos.opts.IWriteGroupAzureServiceBusOptions|null|undefined} azureServiceBus + * @memberof protos.opts.WriteOptions * @instance */ - WriteGroupNatsJetstreamOptions.prototype._conn = null; + WriteOptions.prototype.azureServiceBus = null; /** - * WriteGroupNatsJetstreamOptions args. - * @member {protos.args.INatsJetstreamWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * WriteOptions azureEventHub. + * @member {protos.opts.IWriteGroupAzureEventHubOptions|null|undefined} azureEventHub + * @memberof protos.opts.WriteOptions * @instance */ - WriteGroupNatsJetstreamOptions.prototype.args = null; + WriteOptions.prototype.azureEventHub = null; /** - * Creates a new WriteGroupNatsJetstreamOptions instance using the specified properties. + * WriteOptions gcpPubsub. + * @member {protos.opts.IWriteGroupGCPPubSubOptions|null|undefined} gcpPubsub + * @memberof protos.opts.WriteOptions + * @instance + */ + WriteOptions.prototype.gcpPubsub = null; + + /** + * WriteOptions kubemqQueue. + * @member {protos.opts.IWriteGroupKubeMQQueueOptions|null|undefined} kubemqQueue + * @memberof protos.opts.WriteOptions + * @instance + */ + WriteOptions.prototype.kubemqQueue = null; + + /** + * WriteOptions redisPubsub. + * @member {protos.opts.IWriteGroupRedisPubSubOptions|null|undefined} redisPubsub + * @memberof protos.opts.WriteOptions + * @instance + */ + WriteOptions.prototype.redisPubsub = null; + + /** + * WriteOptions redisStreams. + * @member {protos.opts.IWriteGroupRedisStreamsOptions|null|undefined} redisStreams + * @memberof protos.opts.WriteOptions + * @instance + */ + WriteOptions.prototype.redisStreams = null; + + /** + * WriteOptions natsJetstream. + * @member {protos.opts.IWriteGroupNatsJetstreamOptions|null|undefined} natsJetstream + * @memberof protos.opts.WriteOptions + * @instance + */ + WriteOptions.prototype.natsJetstream = null; + + /** + * WriteOptions awsKinesis. + * @member {protos.opts.IWriteGroupAWSKinesisOptions|null|undefined} awsKinesis + * @memberof protos.opts.WriteOptions + * @instance + */ + WriteOptions.prototype.awsKinesis = null; + + /** + * WriteOptions memphis. + * @member {protos.opts.IWriteGroupMemphisOptions|null|undefined} memphis + * @memberof protos.opts.WriteOptions + * @instance + */ + WriteOptions.prototype.memphis = null; + + /** + * Creates a new WriteOptions instance using the specified properties. * @function create - * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @memberof protos.opts.WriteOptions * @static - * @param {protos.opts.IWriteGroupNatsJetstreamOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupNatsJetstreamOptions} WriteGroupNatsJetstreamOptions instance + * @param {protos.opts.IWriteOptions=} [properties] Properties to set + * @returns {protos.opts.WriteOptions} WriteOptions instance */ - WriteGroupNatsJetstreamOptions.create = function create(properties) { - return new WriteGroupNatsJetstreamOptions(properties); + WriteOptions.create = function create(properties) { + return new WriteOptions(properties); }; /** - * Encodes the specified WriteGroupNatsJetstreamOptions message. Does not implicitly {@link protos.opts.WriteGroupNatsJetstreamOptions.verify|verify} messages. + * Encodes the specified WriteOptions message. Does not implicitly {@link protos.opts.WriteOptions.verify|verify} messages. * @function encode - * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @memberof protos.opts.WriteOptions * @static - * @param {protos.opts.IWriteGroupNatsJetstreamOptions} message WriteGroupNatsJetstreamOptions message or plain object to encode + * @param {protos.opts.IWriteOptions} message WriteOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteGroupNatsJetstreamOptions.encode = function encode(message, writer) { + WriteOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NatsJetstreamConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NatsJetstreamWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.connectionId != null && Object.hasOwnProperty.call(message, "connectionId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.connectionId); + if (message.record != null && Object.hasOwnProperty.call(message, "record")) + $root.protos.records.WriteRecord.encode(message.record, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.encodeOptions != null && Object.hasOwnProperty.call(message, "encodeOptions")) + $root.protos.encoding.EncodeOptions.encode(message.encodeOptions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.kafka != null && Object.hasOwnProperty.call(message, "kafka")) + $root.protos.opts.WriteGroupKafkaOptions.encode(message.kafka, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); + if (message.activemq != null && Object.hasOwnProperty.call(message, "activemq")) + $root.protos.opts.WriteGroupActiveMQOptions.encode(message.activemq, writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); + if (message.awsSqs != null && Object.hasOwnProperty.call(message, "awsSqs")) + $root.protos.opts.WriteGroupAWSSQSOptions.encode(message.awsSqs, writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim(); + if (message.awsSns != null && Object.hasOwnProperty.call(message, "awsSns")) + $root.protos.opts.WriteGroupAWSSNSOptions.encode(message.awsSns, writer.uint32(/* id 103, wireType 2 =*/826).fork()).ldelim(); + if (message.nats != null && Object.hasOwnProperty.call(message, "nats")) + $root.protos.opts.WriteGroupNatsOptions.encode(message.nats, writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim(); + if (message.natsStreaming != null && Object.hasOwnProperty.call(message, "natsStreaming")) + $root.protos.opts.WriteGroupNatsStreamingOptions.encode(message.natsStreaming, writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); + if (message.nsq != null && Object.hasOwnProperty.call(message, "nsq")) + $root.protos.opts.WriteGroupNSQOptions.encode(message.nsq, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim(); + if (message.pulsar != null && Object.hasOwnProperty.call(message, "pulsar")) + $root.protos.opts.WriteGroupPulsarOptions.encode(message.pulsar, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); + if (message.rabbit != null && Object.hasOwnProperty.call(message, "rabbit")) + $root.protos.opts.WriteGroupRabbitOptions.encode(message.rabbit, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim(); + if (message.rabbitStreams != null && Object.hasOwnProperty.call(message, "rabbitStreams")) + $root.protos.opts.WriteGroupRabbitStreamsOptions.encode(message.rabbitStreams, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); + if (message.mqtt != null && Object.hasOwnProperty.call(message, "mqtt")) + $root.protos.opts.WriteGroupMQTTOptions.encode(message.mqtt, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); + if (message.azureServiceBus != null && Object.hasOwnProperty.call(message, "azureServiceBus")) + $root.protos.opts.WriteGroupAzureServiceBusOptions.encode(message.azureServiceBus, writer.uint32(/* id 111, wireType 2 =*/890).fork()).ldelim(); + if (message.azureEventHub != null && Object.hasOwnProperty.call(message, "azureEventHub")) + $root.protos.opts.WriteGroupAzureEventHubOptions.encode(message.azureEventHub, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim(); + if (message.gcpPubsub != null && Object.hasOwnProperty.call(message, "gcpPubsub")) + $root.protos.opts.WriteGroupGCPPubSubOptions.encode(message.gcpPubsub, writer.uint32(/* id 113, wireType 2 =*/906).fork()).ldelim(); + if (message.kubemqQueue != null && Object.hasOwnProperty.call(message, "kubemqQueue")) + $root.protos.opts.WriteGroupKubeMQQueueOptions.encode(message.kubemqQueue, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); + if (message.redisPubsub != null && Object.hasOwnProperty.call(message, "redisPubsub")) + $root.protos.opts.WriteGroupRedisPubSubOptions.encode(message.redisPubsub, writer.uint32(/* id 115, wireType 2 =*/922).fork()).ldelim(); + if (message.redisStreams != null && Object.hasOwnProperty.call(message, "redisStreams")) + $root.protos.opts.WriteGroupRedisStreamsOptions.encode(message.redisStreams, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); + if (message.natsJetstream != null && Object.hasOwnProperty.call(message, "natsJetstream")) + $root.protos.opts.WriteGroupNatsJetstreamOptions.encode(message.natsJetstream, writer.uint32(/* id 117, wireType 2 =*/938).fork()).ldelim(); + if (message.awsKinesis != null && Object.hasOwnProperty.call(message, "awsKinesis")) + $root.protos.opts.WriteGroupAWSKinesisOptions.encode(message.awsKinesis, writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim(); + if (message.memphis != null && Object.hasOwnProperty.call(message, "memphis")) + $root.protos.opts.WriteGroupMemphisOptions.encode(message.memphis, writer.uint32(/* id 119, wireType 2 =*/954).fork()).ldelim(); + if (message._cliOptions != null && Object.hasOwnProperty.call(message, "_cliOptions")) + $root.protos.opts.WriteCLIOptions.encode(message._cliOptions, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); return writer; }; /** - * Encodes the specified WriteGroupNatsJetstreamOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNatsJetstreamOptions.verify|verify} messages. + * Encodes the specified WriteOptions message, length delimited. Does not implicitly {@link protos.opts.WriteOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @memberof protos.opts.WriteOptions * @static - * @param {protos.opts.IWriteGroupNatsJetstreamOptions} message WriteGroupNatsJetstreamOptions message or plain object to encode + * @param {protos.opts.IWriteOptions} message WriteOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WriteGroupNatsJetstreamOptions.encodeDelimited = function encodeDelimited(message, writer) { + WriteOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WriteGroupNatsJetstreamOptions message from the specified reader or buffer. + * Decodes a WriteOptions message from the specified reader or buffer. * @function decode - * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @memberof protos.opts.WriteOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupNatsJetstreamOptions} WriteGroupNatsJetstreamOptions + * @returns {protos.opts.WriteOptions} WriteOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteGroupNatsJetstreamOptions.decode = function decode(reader, length) { + WriteOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupNatsJetstreamOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message._conn = $root.protos.args.NatsJetstreamConn.decode(reader, reader.uint32()); + message.connectionId = reader.string(); break; case 2: - message.args = $root.protos.args.NatsJetstreamWriteArgs.decode(reader, reader.uint32()); + message.record = $root.protos.records.WriteRecord.decode(reader, reader.uint32()); + break; + case 3: + message.encodeOptions = $root.protos.encoding.EncodeOptions.decode(reader, reader.uint32()); + break; + case 1000: + message._cliOptions = $root.protos.opts.WriteCLIOptions.decode(reader, reader.uint32()); + break; + case 100: + message.kafka = $root.protos.opts.WriteGroupKafkaOptions.decode(reader, reader.uint32()); + break; + case 101: + message.activemq = $root.protos.opts.WriteGroupActiveMQOptions.decode(reader, reader.uint32()); + break; + case 102: + message.awsSqs = $root.protos.opts.WriteGroupAWSSQSOptions.decode(reader, reader.uint32()); + break; + case 103: + message.awsSns = $root.protos.opts.WriteGroupAWSSNSOptions.decode(reader, reader.uint32()); + break; + case 104: + message.nats = $root.protos.opts.WriteGroupNatsOptions.decode(reader, reader.uint32()); + break; + case 105: + message.natsStreaming = $root.protos.opts.WriteGroupNatsStreamingOptions.decode(reader, reader.uint32()); + break; + case 106: + message.nsq = $root.protos.opts.WriteGroupNSQOptions.decode(reader, reader.uint32()); + break; + case 107: + message.pulsar = $root.protos.opts.WriteGroupPulsarOptions.decode(reader, reader.uint32()); + break; + case 108: + message.rabbit = $root.protos.opts.WriteGroupRabbitOptions.decode(reader, reader.uint32()); + break; + case 109: + message.rabbitStreams = $root.protos.opts.WriteGroupRabbitStreamsOptions.decode(reader, reader.uint32()); + break; + case 110: + message.mqtt = $root.protos.opts.WriteGroupMQTTOptions.decode(reader, reader.uint32()); + break; + case 111: + message.azureServiceBus = $root.protos.opts.WriteGroupAzureServiceBusOptions.decode(reader, reader.uint32()); + break; + case 112: + message.azureEventHub = $root.protos.opts.WriteGroupAzureEventHubOptions.decode(reader, reader.uint32()); + break; + case 113: + message.gcpPubsub = $root.protos.opts.WriteGroupGCPPubSubOptions.decode(reader, reader.uint32()); + break; + case 114: + message.kubemqQueue = $root.protos.opts.WriteGroupKubeMQQueueOptions.decode(reader, reader.uint32()); + break; + case 115: + message.redisPubsub = $root.protos.opts.WriteGroupRedisPubSubOptions.decode(reader, reader.uint32()); + break; + case 116: + message.redisStreams = $root.protos.opts.WriteGroupRedisStreamsOptions.decode(reader, reader.uint32()); + break; + case 117: + message.natsJetstream = $root.protos.opts.WriteGroupNatsJetstreamOptions.decode(reader, reader.uint32()); + break; + case 118: + message.awsKinesis = $root.protos.opts.WriteGroupAWSKinesisOptions.decode(reader, reader.uint32()); + break; + case 119: + message.memphis = $root.protos.opts.WriteGroupMemphisOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -31696,29789 +29808,3488 @@ $root.protos = (function() { }; /** - * Decodes a WriteGroupNatsJetstreamOptions message from the specified reader or buffer, length delimited. + * Decodes a WriteOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @memberof protos.opts.WriteOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupNatsJetstreamOptions} WriteGroupNatsJetstreamOptions + * @returns {protos.opts.WriteOptions} WriteOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WriteGroupNatsJetstreamOptions.decodeDelimited = function decodeDelimited(reader) { + WriteOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WriteGroupNatsJetstreamOptions message. + * Verifies a WriteOptions message. * @function verify - * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @memberof protos.opts.WriteOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WriteGroupNatsJetstreamOptions.verify = function verify(message) { + WriteOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NatsJetstreamConn.verify(message._conn); + if (message.connectionId != null && message.hasOwnProperty("connectionId")) + if (!$util.isString(message.connectionId)) + return "connectionId: string expected"; + if (message.record != null && message.hasOwnProperty("record")) { + var error = $root.protos.records.WriteRecord.verify(message.record); if (error) - return "_conn." + error; + return "record." + error; } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NatsJetstreamWriteArgs.verify(message.args); + if (message.encodeOptions != null && message.hasOwnProperty("encodeOptions")) { + var error = $root.protos.encoding.EncodeOptions.verify(message.encodeOptions); if (error) - return "args." + error; + return "encodeOptions." + error; } - return null; - }; - - /** - * Creates a WriteGroupNatsJetstreamOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupNatsJetstreamOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupNatsJetstreamOptions} WriteGroupNatsJetstreamOptions - */ - WriteGroupNatsJetstreamOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupNatsJetstreamOptions) - return object; - var message = new $root.protos.opts.WriteGroupNatsJetstreamOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupNatsJetstreamOptions._conn: object expected"); - message._conn = $root.protos.args.NatsJetstreamConn.fromObject(object._conn); + if (message._cliOptions != null && message.hasOwnProperty("_cliOptions")) { + var error = $root.protos.opts.WriteCLIOptions.verify(message._cliOptions); + if (error) + return "_cliOptions." + error; } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupNatsJetstreamOptions.args: object expected"); - message.args = $root.protos.args.NatsJetstreamWriteArgs.fromObject(object.args); + if (message.kafka != null && message.hasOwnProperty("kafka")) { + var error = $root.protos.opts.WriteGroupKafkaOptions.verify(message.kafka); + if (error) + return "kafka." + error; } - return message; - }; - - /** - * Creates a plain object from a WriteGroupNatsJetstreamOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupNatsJetstreamOptions - * @static - * @param {protos.opts.WriteGroupNatsJetstreamOptions} message WriteGroupNatsJetstreamOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupNatsJetstreamOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; + if (message.activemq != null && message.hasOwnProperty("activemq")) { + var error = $root.protos.opts.WriteGroupActiveMQOptions.verify(message.activemq); + if (error) + return "activemq." + error; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NatsJetstreamConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NatsJetstreamWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupNatsJetstreamOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupNatsJetstreamOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupNatsJetstreamOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupNatsJetstreamOptions; - })(); - - opts.WriteGroupNatsStreamingOptions = (function() { - - /** - * Properties of a WriteGroupNatsStreamingOptions. - * @memberof protos.opts - * @interface IWriteGroupNatsStreamingOptions - * @property {protos.args.INatsStreamingConn|null} [_conn] WriteGroupNatsStreamingOptions _conn - * @property {protos.args.INatsStreamingWriteArgs|null} [args] WriteGroupNatsStreamingOptions args - */ - - /** - * Constructs a new WriteGroupNatsStreamingOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupNatsStreamingOptions. - * @implements IWriteGroupNatsStreamingOptions - * @constructor - * @param {protos.opts.IWriteGroupNatsStreamingOptions=} [properties] Properties to set - */ - function WriteGroupNatsStreamingOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupNatsStreamingOptions _conn. - * @member {protos.args.INatsStreamingConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupNatsStreamingOptions - * @instance - */ - WriteGroupNatsStreamingOptions.prototype._conn = null; - - /** - * WriteGroupNatsStreamingOptions args. - * @member {protos.args.INatsStreamingWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupNatsStreamingOptions - * @instance - */ - WriteGroupNatsStreamingOptions.prototype.args = null; - - /** - * Creates a new WriteGroupNatsStreamingOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupNatsStreamingOptions - * @static - * @param {protos.opts.IWriteGroupNatsStreamingOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupNatsStreamingOptions} WriteGroupNatsStreamingOptions instance - */ - WriteGroupNatsStreamingOptions.create = function create(properties) { - return new WriteGroupNatsStreamingOptions(properties); - }; - - /** - * Encodes the specified WriteGroupNatsStreamingOptions message. Does not implicitly {@link protos.opts.WriteGroupNatsStreamingOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupNatsStreamingOptions - * @static - * @param {protos.opts.IWriteGroupNatsStreamingOptions} message WriteGroupNatsStreamingOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupNatsStreamingOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NatsStreamingConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NatsStreamingWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupNatsStreamingOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNatsStreamingOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupNatsStreamingOptions - * @static - * @param {protos.opts.IWriteGroupNatsStreamingOptions} message WriteGroupNatsStreamingOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupNatsStreamingOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupNatsStreamingOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupNatsStreamingOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupNatsStreamingOptions} WriteGroupNatsStreamingOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupNatsStreamingOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupNatsStreamingOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.NatsStreamingConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.NatsStreamingWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } + if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) { + var error = $root.protos.opts.WriteGroupAWSSQSOptions.verify(message.awsSqs); + if (error) + return "awsSqs." + error; } - return message; - }; - - /** - * Decodes a WriteGroupNatsStreamingOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupNatsStreamingOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupNatsStreamingOptions} WriteGroupNatsStreamingOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupNatsStreamingOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupNatsStreamingOptions message. - * @function verify - * @memberof protos.opts.WriteGroupNatsStreamingOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupNatsStreamingOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NatsStreamingConn.verify(message._conn); + if (message.awsSns != null && message.hasOwnProperty("awsSns")) { + var error = $root.protos.opts.WriteGroupAWSSNSOptions.verify(message.awsSns); if (error) - return "_conn." + error; + return "awsSns." + error; } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NatsStreamingWriteArgs.verify(message.args); + if (message.nats != null && message.hasOwnProperty("nats")) { + var error = $root.protos.opts.WriteGroupNatsOptions.verify(message.nats); if (error) - return "args." + error; + return "nats." + error; + } + if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) { + var error = $root.protos.opts.WriteGroupNatsStreamingOptions.verify(message.natsStreaming); + if (error) + return "natsStreaming." + error; + } + if (message.nsq != null && message.hasOwnProperty("nsq")) { + var error = $root.protos.opts.WriteGroupNSQOptions.verify(message.nsq); + if (error) + return "nsq." + error; + } + if (message.pulsar != null && message.hasOwnProperty("pulsar")) { + var error = $root.protos.opts.WriteGroupPulsarOptions.verify(message.pulsar); + if (error) + return "pulsar." + error; + } + if (message.rabbit != null && message.hasOwnProperty("rabbit")) { + var error = $root.protos.opts.WriteGroupRabbitOptions.verify(message.rabbit); + if (error) + return "rabbit." + error; + } + if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) { + var error = $root.protos.opts.WriteGroupRabbitStreamsOptions.verify(message.rabbitStreams); + if (error) + return "rabbitStreams." + error; + } + if (message.mqtt != null && message.hasOwnProperty("mqtt")) { + var error = $root.protos.opts.WriteGroupMQTTOptions.verify(message.mqtt); + if (error) + return "mqtt." + error; + } + if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) { + var error = $root.protos.opts.WriteGroupAzureServiceBusOptions.verify(message.azureServiceBus); + if (error) + return "azureServiceBus." + error; + } + if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) { + var error = $root.protos.opts.WriteGroupAzureEventHubOptions.verify(message.azureEventHub); + if (error) + return "azureEventHub." + error; + } + if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) { + var error = $root.protos.opts.WriteGroupGCPPubSubOptions.verify(message.gcpPubsub); + if (error) + return "gcpPubsub." + error; + } + if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) { + var error = $root.protos.opts.WriteGroupKubeMQQueueOptions.verify(message.kubemqQueue); + if (error) + return "kubemqQueue." + error; + } + if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) { + var error = $root.protos.opts.WriteGroupRedisPubSubOptions.verify(message.redisPubsub); + if (error) + return "redisPubsub." + error; + } + if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) { + var error = $root.protos.opts.WriteGroupRedisStreamsOptions.verify(message.redisStreams); + if (error) + return "redisStreams." + error; + } + if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) { + var error = $root.protos.opts.WriteGroupNatsJetstreamOptions.verify(message.natsJetstream); + if (error) + return "natsJetstream." + error; + } + if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) { + var error = $root.protos.opts.WriteGroupAWSKinesisOptions.verify(message.awsKinesis); + if (error) + return "awsKinesis." + error; + } + if (message.memphis != null && message.hasOwnProperty("memphis")) { + var error = $root.protos.opts.WriteGroupMemphisOptions.verify(message.memphis); + if (error) + return "memphis." + error; } return null; }; /** - * Creates a WriteGroupNatsStreamingOptions message from a plain object. Also converts values to their respective internal types. + * Creates a WriteOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.opts.WriteGroupNatsStreamingOptions + * @memberof protos.opts.WriteOptions * @static * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupNatsStreamingOptions} WriteGroupNatsStreamingOptions + * @returns {protos.opts.WriteOptions} WriteOptions */ - WriteGroupNatsStreamingOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupNatsStreamingOptions) + WriteOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteOptions) return object; - var message = new $root.protos.opts.WriteGroupNatsStreamingOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupNatsStreamingOptions._conn: object expected"); - message._conn = $root.protos.args.NatsStreamingConn.fromObject(object._conn); + var message = new $root.protos.opts.WriteOptions(); + if (object.connectionId != null) + message.connectionId = String(object.connectionId); + if (object.record != null) { + if (typeof object.record !== "object") + throw TypeError(".protos.opts.WriteOptions.record: object expected"); + message.record = $root.protos.records.WriteRecord.fromObject(object.record); } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupNatsStreamingOptions.args: object expected"); - message.args = $root.protos.args.NatsStreamingWriteArgs.fromObject(object.args); + if (object.encodeOptions != null) { + if (typeof object.encodeOptions !== "object") + throw TypeError(".protos.opts.WriteOptions.encodeOptions: object expected"); + message.encodeOptions = $root.protos.encoding.EncodeOptions.fromObject(object.encodeOptions); + } + if (object._cliOptions != null) { + if (typeof object._cliOptions !== "object") + throw TypeError(".protos.opts.WriteOptions._cliOptions: object expected"); + message._cliOptions = $root.protos.opts.WriteCLIOptions.fromObject(object._cliOptions); + } + if (object.kafka != null) { + if (typeof object.kafka !== "object") + throw TypeError(".protos.opts.WriteOptions.kafka: object expected"); + message.kafka = $root.protos.opts.WriteGroupKafkaOptions.fromObject(object.kafka); + } + if (object.activemq != null) { + if (typeof object.activemq !== "object") + throw TypeError(".protos.opts.WriteOptions.activemq: object expected"); + message.activemq = $root.protos.opts.WriteGroupActiveMQOptions.fromObject(object.activemq); + } + if (object.awsSqs != null) { + if (typeof object.awsSqs !== "object") + throw TypeError(".protos.opts.WriteOptions.awsSqs: object expected"); + message.awsSqs = $root.protos.opts.WriteGroupAWSSQSOptions.fromObject(object.awsSqs); + } + if (object.awsSns != null) { + if (typeof object.awsSns !== "object") + throw TypeError(".protos.opts.WriteOptions.awsSns: object expected"); + message.awsSns = $root.protos.opts.WriteGroupAWSSNSOptions.fromObject(object.awsSns); + } + if (object.nats != null) { + if (typeof object.nats !== "object") + throw TypeError(".protos.opts.WriteOptions.nats: object expected"); + message.nats = $root.protos.opts.WriteGroupNatsOptions.fromObject(object.nats); + } + if (object.natsStreaming != null) { + if (typeof object.natsStreaming !== "object") + throw TypeError(".protos.opts.WriteOptions.natsStreaming: object expected"); + message.natsStreaming = $root.protos.opts.WriteGroupNatsStreamingOptions.fromObject(object.natsStreaming); + } + if (object.nsq != null) { + if (typeof object.nsq !== "object") + throw TypeError(".protos.opts.WriteOptions.nsq: object expected"); + message.nsq = $root.protos.opts.WriteGroupNSQOptions.fromObject(object.nsq); + } + if (object.pulsar != null) { + if (typeof object.pulsar !== "object") + throw TypeError(".protos.opts.WriteOptions.pulsar: object expected"); + message.pulsar = $root.protos.opts.WriteGroupPulsarOptions.fromObject(object.pulsar); + } + if (object.rabbit != null) { + if (typeof object.rabbit !== "object") + throw TypeError(".protos.opts.WriteOptions.rabbit: object expected"); + message.rabbit = $root.protos.opts.WriteGroupRabbitOptions.fromObject(object.rabbit); + } + if (object.rabbitStreams != null) { + if (typeof object.rabbitStreams !== "object") + throw TypeError(".protos.opts.WriteOptions.rabbitStreams: object expected"); + message.rabbitStreams = $root.protos.opts.WriteGroupRabbitStreamsOptions.fromObject(object.rabbitStreams); + } + if (object.mqtt != null) { + if (typeof object.mqtt !== "object") + throw TypeError(".protos.opts.WriteOptions.mqtt: object expected"); + message.mqtt = $root.protos.opts.WriteGroupMQTTOptions.fromObject(object.mqtt); + } + if (object.azureServiceBus != null) { + if (typeof object.azureServiceBus !== "object") + throw TypeError(".protos.opts.WriteOptions.azureServiceBus: object expected"); + message.azureServiceBus = $root.protos.opts.WriteGroupAzureServiceBusOptions.fromObject(object.azureServiceBus); + } + if (object.azureEventHub != null) { + if (typeof object.azureEventHub !== "object") + throw TypeError(".protos.opts.WriteOptions.azureEventHub: object expected"); + message.azureEventHub = $root.protos.opts.WriteGroupAzureEventHubOptions.fromObject(object.azureEventHub); + } + if (object.gcpPubsub != null) { + if (typeof object.gcpPubsub !== "object") + throw TypeError(".protos.opts.WriteOptions.gcpPubsub: object expected"); + message.gcpPubsub = $root.protos.opts.WriteGroupGCPPubSubOptions.fromObject(object.gcpPubsub); + } + if (object.kubemqQueue != null) { + if (typeof object.kubemqQueue !== "object") + throw TypeError(".protos.opts.WriteOptions.kubemqQueue: object expected"); + message.kubemqQueue = $root.protos.opts.WriteGroupKubeMQQueueOptions.fromObject(object.kubemqQueue); + } + if (object.redisPubsub != null) { + if (typeof object.redisPubsub !== "object") + throw TypeError(".protos.opts.WriteOptions.redisPubsub: object expected"); + message.redisPubsub = $root.protos.opts.WriteGroupRedisPubSubOptions.fromObject(object.redisPubsub); + } + if (object.redisStreams != null) { + if (typeof object.redisStreams !== "object") + throw TypeError(".protos.opts.WriteOptions.redisStreams: object expected"); + message.redisStreams = $root.protos.opts.WriteGroupRedisStreamsOptions.fromObject(object.redisStreams); + } + if (object.natsJetstream != null) { + if (typeof object.natsJetstream !== "object") + throw TypeError(".protos.opts.WriteOptions.natsJetstream: object expected"); + message.natsJetstream = $root.protos.opts.WriteGroupNatsJetstreamOptions.fromObject(object.natsJetstream); + } + if (object.awsKinesis != null) { + if (typeof object.awsKinesis !== "object") + throw TypeError(".protos.opts.WriteOptions.awsKinesis: object expected"); + message.awsKinesis = $root.protos.opts.WriteGroupAWSKinesisOptions.fromObject(object.awsKinesis); + } + if (object.memphis != null) { + if (typeof object.memphis !== "object") + throw TypeError(".protos.opts.WriteOptions.memphis: object expected"); + message.memphis = $root.protos.opts.WriteGroupMemphisOptions.fromObject(object.memphis); } return message; }; /** - * Creates a plain object from a WriteGroupNatsStreamingOptions message. Also converts values to other types if specified. + * Creates a plain object from a WriteOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.opts.WriteGroupNatsStreamingOptions + * @memberof protos.opts.WriteOptions * @static - * @param {protos.opts.WriteGroupNatsStreamingOptions} message WriteGroupNatsStreamingOptions + * @param {protos.opts.WriteOptions} message WriteOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WriteGroupNatsStreamingOptions.toObject = function toObject(message, options) { + WriteOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object._conn = null; - object.args = null; + object.connectionId = ""; + object.record = null; + object.encodeOptions = null; + object.kafka = null; + object.activemq = null; + object.awsSqs = null; + object.awsSns = null; + object.nats = null; + object.natsStreaming = null; + object.nsq = null; + object.pulsar = null; + object.rabbit = null; + object.rabbitStreams = null; + object.mqtt = null; + object.azureServiceBus = null; + object.azureEventHub = null; + object.gcpPubsub = null; + object.kubemqQueue = null; + object.redisPubsub = null; + object.redisStreams = null; + object.natsJetstream = null; + object.awsKinesis = null; + object.memphis = null; + object._cliOptions = null; } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NatsStreamingConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NatsStreamingWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupNatsStreamingOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupNatsStreamingOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupNatsStreamingOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupNatsStreamingOptions; - })(); - - opts.WriteGroupNSQOptions = (function() { - - /** - * Properties of a WriteGroupNSQOptions. - * @memberof protos.opts - * @interface IWriteGroupNSQOptions - * @property {protos.args.INSQConn|null} [_conn] WriteGroupNSQOptions _conn - * @property {protos.args.INSQWriteArgs|null} [args] WriteGroupNSQOptions args - */ - - /** - * Constructs a new WriteGroupNSQOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupNSQOptions. - * @implements IWriteGroupNSQOptions - * @constructor - * @param {protos.opts.IWriteGroupNSQOptions=} [properties] Properties to set - */ - function WriteGroupNSQOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupNSQOptions _conn. - * @member {protos.args.INSQConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupNSQOptions - * @instance - */ - WriteGroupNSQOptions.prototype._conn = null; - - /** - * WriteGroupNSQOptions args. - * @member {protos.args.INSQWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupNSQOptions - * @instance - */ - WriteGroupNSQOptions.prototype.args = null; - - /** - * Creates a new WriteGroupNSQOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupNSQOptions - * @static - * @param {protos.opts.IWriteGroupNSQOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupNSQOptions} WriteGroupNSQOptions instance - */ - WriteGroupNSQOptions.create = function create(properties) { - return new WriteGroupNSQOptions(properties); - }; - - /** - * Encodes the specified WriteGroupNSQOptions message. Does not implicitly {@link protos.opts.WriteGroupNSQOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupNSQOptions - * @static - * @param {protos.opts.IWriteGroupNSQOptions} message WriteGroupNSQOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupNSQOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.NSQConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.NSQWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupNSQOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNSQOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupNSQOptions - * @static - * @param {protos.opts.IWriteGroupNSQOptions} message WriteGroupNSQOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupNSQOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupNSQOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupNSQOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupNSQOptions} WriteGroupNSQOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupNSQOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupNSQOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.NSQConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.NSQWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a WriteGroupNSQOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupNSQOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupNSQOptions} WriteGroupNSQOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupNSQOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupNSQOptions message. - * @function verify - * @memberof protos.opts.WriteGroupNSQOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupNSQOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.NSQConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.NSQWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a WriteGroupNSQOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupNSQOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupNSQOptions} WriteGroupNSQOptions - */ - WriteGroupNSQOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupNSQOptions) - return object; - var message = new $root.protos.opts.WriteGroupNSQOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupNSQOptions._conn: object expected"); - message._conn = $root.protos.args.NSQConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupNSQOptions.args: object expected"); - message.args = $root.protos.args.NSQWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a WriteGroupNSQOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupNSQOptions - * @static - * @param {protos.opts.WriteGroupNSQOptions} message WriteGroupNSQOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupNSQOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.NSQConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.NSQWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupNSQOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupNSQOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupNSQOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupNSQOptions; - })(); - - opts.WriteGroupPulsarOptions = (function() { - - /** - * Properties of a WriteGroupPulsarOptions. - * @memberof protos.opts - * @interface IWriteGroupPulsarOptions - * @property {protos.args.IPulsarConn|null} [_conn] WriteGroupPulsarOptions _conn - * @property {protos.args.IPulsarWriteArgs|null} [args] WriteGroupPulsarOptions args - */ - - /** - * Constructs a new WriteGroupPulsarOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupPulsarOptions. - * @implements IWriteGroupPulsarOptions - * @constructor - * @param {protos.opts.IWriteGroupPulsarOptions=} [properties] Properties to set - */ - function WriteGroupPulsarOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupPulsarOptions _conn. - * @member {protos.args.IPulsarConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupPulsarOptions - * @instance - */ - WriteGroupPulsarOptions.prototype._conn = null; - - /** - * WriteGroupPulsarOptions args. - * @member {protos.args.IPulsarWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupPulsarOptions - * @instance - */ - WriteGroupPulsarOptions.prototype.args = null; - - /** - * Creates a new WriteGroupPulsarOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupPulsarOptions - * @static - * @param {protos.opts.IWriteGroupPulsarOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupPulsarOptions} WriteGroupPulsarOptions instance - */ - WriteGroupPulsarOptions.create = function create(properties) { - return new WriteGroupPulsarOptions(properties); - }; - - /** - * Encodes the specified WriteGroupPulsarOptions message. Does not implicitly {@link protos.opts.WriteGroupPulsarOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupPulsarOptions - * @static - * @param {protos.opts.IWriteGroupPulsarOptions} message WriteGroupPulsarOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupPulsarOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.PulsarConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.PulsarWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupPulsarOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupPulsarOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupPulsarOptions - * @static - * @param {protos.opts.IWriteGroupPulsarOptions} message WriteGroupPulsarOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupPulsarOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupPulsarOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupPulsarOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupPulsarOptions} WriteGroupPulsarOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupPulsarOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupPulsarOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.PulsarConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.PulsarWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a WriteGroupPulsarOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupPulsarOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupPulsarOptions} WriteGroupPulsarOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupPulsarOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupPulsarOptions message. - * @function verify - * @memberof protos.opts.WriteGroupPulsarOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupPulsarOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.PulsarConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.PulsarWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a WriteGroupPulsarOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupPulsarOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupPulsarOptions} WriteGroupPulsarOptions - */ - WriteGroupPulsarOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupPulsarOptions) - return object; - var message = new $root.protos.opts.WriteGroupPulsarOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupPulsarOptions._conn: object expected"); - message._conn = $root.protos.args.PulsarConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupPulsarOptions.args: object expected"); - message.args = $root.protos.args.PulsarWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a WriteGroupPulsarOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupPulsarOptions - * @static - * @param {protos.opts.WriteGroupPulsarOptions} message WriteGroupPulsarOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupPulsarOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.PulsarConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.PulsarWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupPulsarOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupPulsarOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupPulsarOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupPulsarOptions; - })(); - - opts.WriteGroupRabbitOptions = (function() { - - /** - * Properties of a WriteGroupRabbitOptions. - * @memberof protos.opts - * @interface IWriteGroupRabbitOptions - * @property {protos.args.IRabbitConn|null} [_conn] WriteGroupRabbitOptions _conn - * @property {protos.args.IRabbitWriteArgs|null} [args] WriteGroupRabbitOptions args - */ - - /** - * Constructs a new WriteGroupRabbitOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupRabbitOptions. - * @implements IWriteGroupRabbitOptions - * @constructor - * @param {protos.opts.IWriteGroupRabbitOptions=} [properties] Properties to set - */ - function WriteGroupRabbitOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupRabbitOptions _conn. - * @member {protos.args.IRabbitConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupRabbitOptions - * @instance - */ - WriteGroupRabbitOptions.prototype._conn = null; - - /** - * WriteGroupRabbitOptions args. - * @member {protos.args.IRabbitWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupRabbitOptions - * @instance - */ - WriteGroupRabbitOptions.prototype.args = null; - - /** - * Creates a new WriteGroupRabbitOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupRabbitOptions - * @static - * @param {protos.opts.IWriteGroupRabbitOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupRabbitOptions} WriteGroupRabbitOptions instance - */ - WriteGroupRabbitOptions.create = function create(properties) { - return new WriteGroupRabbitOptions(properties); - }; - - /** - * Encodes the specified WriteGroupRabbitOptions message. Does not implicitly {@link protos.opts.WriteGroupRabbitOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupRabbitOptions - * @static - * @param {protos.opts.IWriteGroupRabbitOptions} message WriteGroupRabbitOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupRabbitOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RabbitConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RabbitWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupRabbitOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRabbitOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupRabbitOptions - * @static - * @param {protos.opts.IWriteGroupRabbitOptions} message WriteGroupRabbitOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupRabbitOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupRabbitOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupRabbitOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupRabbitOptions} WriteGroupRabbitOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupRabbitOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupRabbitOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.RabbitConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.RabbitWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a WriteGroupRabbitOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupRabbitOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupRabbitOptions} WriteGroupRabbitOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupRabbitOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupRabbitOptions message. - * @function verify - * @memberof protos.opts.WriteGroupRabbitOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupRabbitOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RabbitConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RabbitWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a WriteGroupRabbitOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupRabbitOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupRabbitOptions} WriteGroupRabbitOptions - */ - WriteGroupRabbitOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupRabbitOptions) - return object; - var message = new $root.protos.opts.WriteGroupRabbitOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupRabbitOptions._conn: object expected"); - message._conn = $root.protos.args.RabbitConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupRabbitOptions.args: object expected"); - message.args = $root.protos.args.RabbitWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a WriteGroupRabbitOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupRabbitOptions - * @static - * @param {protos.opts.WriteGroupRabbitOptions} message WriteGroupRabbitOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupRabbitOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RabbitConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RabbitWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupRabbitOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupRabbitOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupRabbitOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupRabbitOptions; - })(); - - opts.WriteGroupRabbitStreamsOptions = (function() { - - /** - * Properties of a WriteGroupRabbitStreamsOptions. - * @memberof protos.opts - * @interface IWriteGroupRabbitStreamsOptions - * @property {protos.args.IRabbitStreamsConn|null} [_conn] WriteGroupRabbitStreamsOptions _conn - * @property {protos.args.IRabbitStreamsWriteArgs|null} [args] WriteGroupRabbitStreamsOptions args - */ - - /** - * Constructs a new WriteGroupRabbitStreamsOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupRabbitStreamsOptions. - * @implements IWriteGroupRabbitStreamsOptions - * @constructor - * @param {protos.opts.IWriteGroupRabbitStreamsOptions=} [properties] Properties to set - */ - function WriteGroupRabbitStreamsOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupRabbitStreamsOptions _conn. - * @member {protos.args.IRabbitStreamsConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupRabbitStreamsOptions - * @instance - */ - WriteGroupRabbitStreamsOptions.prototype._conn = null; - - /** - * WriteGroupRabbitStreamsOptions args. - * @member {protos.args.IRabbitStreamsWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupRabbitStreamsOptions - * @instance - */ - WriteGroupRabbitStreamsOptions.prototype.args = null; - - /** - * Creates a new WriteGroupRabbitStreamsOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupRabbitStreamsOptions - * @static - * @param {protos.opts.IWriteGroupRabbitStreamsOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupRabbitStreamsOptions} WriteGroupRabbitStreamsOptions instance - */ - WriteGroupRabbitStreamsOptions.create = function create(properties) { - return new WriteGroupRabbitStreamsOptions(properties); - }; - - /** - * Encodes the specified WriteGroupRabbitStreamsOptions message. Does not implicitly {@link protos.opts.WriteGroupRabbitStreamsOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupRabbitStreamsOptions - * @static - * @param {protos.opts.IWriteGroupRabbitStreamsOptions} message WriteGroupRabbitStreamsOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupRabbitStreamsOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RabbitStreamsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RabbitStreamsWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupRabbitStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRabbitStreamsOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupRabbitStreamsOptions - * @static - * @param {protos.opts.IWriteGroupRabbitStreamsOptions} message WriteGroupRabbitStreamsOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupRabbitStreamsOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupRabbitStreamsOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupRabbitStreamsOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupRabbitStreamsOptions} WriteGroupRabbitStreamsOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupRabbitStreamsOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupRabbitStreamsOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.RabbitStreamsConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.RabbitStreamsWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a WriteGroupRabbitStreamsOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupRabbitStreamsOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupRabbitStreamsOptions} WriteGroupRabbitStreamsOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupRabbitStreamsOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupRabbitStreamsOptions message. - * @function verify - * @memberof protos.opts.WriteGroupRabbitStreamsOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupRabbitStreamsOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RabbitStreamsConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RabbitStreamsWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a WriteGroupRabbitStreamsOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupRabbitStreamsOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupRabbitStreamsOptions} WriteGroupRabbitStreamsOptions - */ - WriteGroupRabbitStreamsOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupRabbitStreamsOptions) - return object; - var message = new $root.protos.opts.WriteGroupRabbitStreamsOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupRabbitStreamsOptions._conn: object expected"); - message._conn = $root.protos.args.RabbitStreamsConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupRabbitStreamsOptions.args: object expected"); - message.args = $root.protos.args.RabbitStreamsWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a WriteGroupRabbitStreamsOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupRabbitStreamsOptions - * @static - * @param {protos.opts.WriteGroupRabbitStreamsOptions} message WriteGroupRabbitStreamsOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupRabbitStreamsOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RabbitStreamsConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RabbitStreamsWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupRabbitStreamsOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupRabbitStreamsOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupRabbitStreamsOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupRabbitStreamsOptions; - })(); - - opts.WriteGroupRedisPubSubOptions = (function() { - - /** - * Properties of a WriteGroupRedisPubSubOptions. - * @memberof protos.opts - * @interface IWriteGroupRedisPubSubOptions - * @property {protos.args.IRedisPubSubConn|null} [_conn] WriteGroupRedisPubSubOptions _conn - * @property {protos.args.IRedisPubSubWriteArgs|null} [args] WriteGroupRedisPubSubOptions args - */ - - /** - * Constructs a new WriteGroupRedisPubSubOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupRedisPubSubOptions. - * @implements IWriteGroupRedisPubSubOptions - * @constructor - * @param {protos.opts.IWriteGroupRedisPubSubOptions=} [properties] Properties to set - */ - function WriteGroupRedisPubSubOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupRedisPubSubOptions _conn. - * @member {protos.args.IRedisPubSubConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupRedisPubSubOptions - * @instance - */ - WriteGroupRedisPubSubOptions.prototype._conn = null; - - /** - * WriteGroupRedisPubSubOptions args. - * @member {protos.args.IRedisPubSubWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupRedisPubSubOptions - * @instance - */ - WriteGroupRedisPubSubOptions.prototype.args = null; - - /** - * Creates a new WriteGroupRedisPubSubOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupRedisPubSubOptions - * @static - * @param {protos.opts.IWriteGroupRedisPubSubOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupRedisPubSubOptions} WriteGroupRedisPubSubOptions instance - */ - WriteGroupRedisPubSubOptions.create = function create(properties) { - return new WriteGroupRedisPubSubOptions(properties); - }; - - /** - * Encodes the specified WriteGroupRedisPubSubOptions message. Does not implicitly {@link protos.opts.WriteGroupRedisPubSubOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupRedisPubSubOptions - * @static - * @param {protos.opts.IWriteGroupRedisPubSubOptions} message WriteGroupRedisPubSubOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupRedisPubSubOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RedisPubSubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RedisPubSubWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupRedisPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRedisPubSubOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupRedisPubSubOptions - * @static - * @param {protos.opts.IWriteGroupRedisPubSubOptions} message WriteGroupRedisPubSubOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupRedisPubSubOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupRedisPubSubOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupRedisPubSubOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupRedisPubSubOptions} WriteGroupRedisPubSubOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupRedisPubSubOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupRedisPubSubOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.RedisPubSubConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.RedisPubSubWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a WriteGroupRedisPubSubOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupRedisPubSubOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupRedisPubSubOptions} WriteGroupRedisPubSubOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupRedisPubSubOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupRedisPubSubOptions message. - * @function verify - * @memberof protos.opts.WriteGroupRedisPubSubOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupRedisPubSubOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RedisPubSubConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RedisPubSubWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a WriteGroupRedisPubSubOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupRedisPubSubOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupRedisPubSubOptions} WriteGroupRedisPubSubOptions - */ - WriteGroupRedisPubSubOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupRedisPubSubOptions) - return object; - var message = new $root.protos.opts.WriteGroupRedisPubSubOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupRedisPubSubOptions._conn: object expected"); - message._conn = $root.protos.args.RedisPubSubConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupRedisPubSubOptions.args: object expected"); - message.args = $root.protos.args.RedisPubSubWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a WriteGroupRedisPubSubOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupRedisPubSubOptions - * @static - * @param {protos.opts.WriteGroupRedisPubSubOptions} message WriteGroupRedisPubSubOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupRedisPubSubOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RedisPubSubConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RedisPubSubWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupRedisPubSubOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupRedisPubSubOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupRedisPubSubOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupRedisPubSubOptions; - })(); - - opts.WriteGroupRedisStreamsOptions = (function() { - - /** - * Properties of a WriteGroupRedisStreamsOptions. - * @memberof protos.opts - * @interface IWriteGroupRedisStreamsOptions - * @property {protos.args.IRedisStreamsConn|null} [_conn] WriteGroupRedisStreamsOptions _conn - * @property {protos.args.IRedisStreamsWriteArgs|null} [args] WriteGroupRedisStreamsOptions args - */ - - /** - * Constructs a new WriteGroupRedisStreamsOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupRedisStreamsOptions. - * @implements IWriteGroupRedisStreamsOptions - * @constructor - * @param {protos.opts.IWriteGroupRedisStreamsOptions=} [properties] Properties to set - */ - function WriteGroupRedisStreamsOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupRedisStreamsOptions _conn. - * @member {protos.args.IRedisStreamsConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupRedisStreamsOptions - * @instance - */ - WriteGroupRedisStreamsOptions.prototype._conn = null; - - /** - * WriteGroupRedisStreamsOptions args. - * @member {protos.args.IRedisStreamsWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupRedisStreamsOptions - * @instance - */ - WriteGroupRedisStreamsOptions.prototype.args = null; - - /** - * Creates a new WriteGroupRedisStreamsOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupRedisStreamsOptions - * @static - * @param {protos.opts.IWriteGroupRedisStreamsOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupRedisStreamsOptions} WriteGroupRedisStreamsOptions instance - */ - WriteGroupRedisStreamsOptions.create = function create(properties) { - return new WriteGroupRedisStreamsOptions(properties); - }; - - /** - * Encodes the specified WriteGroupRedisStreamsOptions message. Does not implicitly {@link protos.opts.WriteGroupRedisStreamsOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupRedisStreamsOptions - * @static - * @param {protos.opts.IWriteGroupRedisStreamsOptions} message WriteGroupRedisStreamsOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupRedisStreamsOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.RedisStreamsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.RedisStreamsWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupRedisStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRedisStreamsOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupRedisStreamsOptions - * @static - * @param {protos.opts.IWriteGroupRedisStreamsOptions} message WriteGroupRedisStreamsOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupRedisStreamsOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupRedisStreamsOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupRedisStreamsOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupRedisStreamsOptions} WriteGroupRedisStreamsOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupRedisStreamsOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupRedisStreamsOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.RedisStreamsConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.RedisStreamsWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a WriteGroupRedisStreamsOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupRedisStreamsOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupRedisStreamsOptions} WriteGroupRedisStreamsOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupRedisStreamsOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupRedisStreamsOptions message. - * @function verify - * @memberof protos.opts.WriteGroupRedisStreamsOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupRedisStreamsOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.RedisStreamsConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.RedisStreamsWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a WriteGroupRedisStreamsOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupRedisStreamsOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupRedisStreamsOptions} WriteGroupRedisStreamsOptions - */ - WriteGroupRedisStreamsOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupRedisStreamsOptions) - return object; - var message = new $root.protos.opts.WriteGroupRedisStreamsOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupRedisStreamsOptions._conn: object expected"); - message._conn = $root.protos.args.RedisStreamsConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupRedisStreamsOptions.args: object expected"); - message.args = $root.protos.args.RedisStreamsWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a WriteGroupRedisStreamsOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupRedisStreamsOptions - * @static - * @param {protos.opts.WriteGroupRedisStreamsOptions} message WriteGroupRedisStreamsOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupRedisStreamsOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.RedisStreamsConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.RedisStreamsWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupRedisStreamsOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupRedisStreamsOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupRedisStreamsOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupRedisStreamsOptions; - })(); - - opts.WriteGroupAzureEventHubOptions = (function() { - - /** - * Properties of a WriteGroupAzureEventHubOptions. - * @memberof protos.opts - * @interface IWriteGroupAzureEventHubOptions - * @property {protos.args.IAzureEventHubConn|null} [_conn] WriteGroupAzureEventHubOptions _conn - * @property {protos.args.IAzureEventHubWriteArgs|null} [args] WriteGroupAzureEventHubOptions args - */ - - /** - * Constructs a new WriteGroupAzureEventHubOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupAzureEventHubOptions. - * @implements IWriteGroupAzureEventHubOptions - * @constructor - * @param {protos.opts.IWriteGroupAzureEventHubOptions=} [properties] Properties to set - */ - function WriteGroupAzureEventHubOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupAzureEventHubOptions _conn. - * @member {protos.args.IAzureEventHubConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupAzureEventHubOptions - * @instance - */ - WriteGroupAzureEventHubOptions.prototype._conn = null; - - /** - * WriteGroupAzureEventHubOptions args. - * @member {protos.args.IAzureEventHubWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupAzureEventHubOptions - * @instance - */ - WriteGroupAzureEventHubOptions.prototype.args = null; - - /** - * Creates a new WriteGroupAzureEventHubOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupAzureEventHubOptions - * @static - * @param {protos.opts.IWriteGroupAzureEventHubOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupAzureEventHubOptions} WriteGroupAzureEventHubOptions instance - */ - WriteGroupAzureEventHubOptions.create = function create(properties) { - return new WriteGroupAzureEventHubOptions(properties); - }; - - /** - * Encodes the specified WriteGroupAzureEventHubOptions message. Does not implicitly {@link protos.opts.WriteGroupAzureEventHubOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupAzureEventHubOptions - * @static - * @param {protos.opts.IWriteGroupAzureEventHubOptions} message WriteGroupAzureEventHubOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupAzureEventHubOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AzureEventHubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AzureEventHubWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupAzureEventHubOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAzureEventHubOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupAzureEventHubOptions - * @static - * @param {protos.opts.IWriteGroupAzureEventHubOptions} message WriteGroupAzureEventHubOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupAzureEventHubOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupAzureEventHubOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupAzureEventHubOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupAzureEventHubOptions} WriteGroupAzureEventHubOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupAzureEventHubOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupAzureEventHubOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.AzureEventHubConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.AzureEventHubWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a WriteGroupAzureEventHubOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupAzureEventHubOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupAzureEventHubOptions} WriteGroupAzureEventHubOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupAzureEventHubOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupAzureEventHubOptions message. - * @function verify - * @memberof protos.opts.WriteGroupAzureEventHubOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupAzureEventHubOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AzureEventHubConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AzureEventHubWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a WriteGroupAzureEventHubOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupAzureEventHubOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupAzureEventHubOptions} WriteGroupAzureEventHubOptions - */ - WriteGroupAzureEventHubOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupAzureEventHubOptions) - return object; - var message = new $root.protos.opts.WriteGroupAzureEventHubOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupAzureEventHubOptions._conn: object expected"); - message._conn = $root.protos.args.AzureEventHubConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupAzureEventHubOptions.args: object expected"); - message.args = $root.protos.args.AzureEventHubWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a WriteGroupAzureEventHubOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupAzureEventHubOptions - * @static - * @param {protos.opts.WriteGroupAzureEventHubOptions} message WriteGroupAzureEventHubOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupAzureEventHubOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AzureEventHubConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AzureEventHubWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupAzureEventHubOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupAzureEventHubOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupAzureEventHubOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupAzureEventHubOptions; - })(); - - opts.WriteGroupAzureServiceBusOptions = (function() { - - /** - * Properties of a WriteGroupAzureServiceBusOptions. - * @memberof protos.opts - * @interface IWriteGroupAzureServiceBusOptions - * @property {protos.args.IAzureServiceBusConn|null} [_conn] WriteGroupAzureServiceBusOptions _conn - * @property {protos.args.IAzureServiceBusWriteArgs|null} [args] WriteGroupAzureServiceBusOptions args - */ - - /** - * Constructs a new WriteGroupAzureServiceBusOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupAzureServiceBusOptions. - * @implements IWriteGroupAzureServiceBusOptions - * @constructor - * @param {protos.opts.IWriteGroupAzureServiceBusOptions=} [properties] Properties to set - */ - function WriteGroupAzureServiceBusOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupAzureServiceBusOptions _conn. - * @member {protos.args.IAzureServiceBusConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupAzureServiceBusOptions - * @instance - */ - WriteGroupAzureServiceBusOptions.prototype._conn = null; - - /** - * WriteGroupAzureServiceBusOptions args. - * @member {protos.args.IAzureServiceBusWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupAzureServiceBusOptions - * @instance - */ - WriteGroupAzureServiceBusOptions.prototype.args = null; - - /** - * Creates a new WriteGroupAzureServiceBusOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupAzureServiceBusOptions - * @static - * @param {protos.opts.IWriteGroupAzureServiceBusOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupAzureServiceBusOptions} WriteGroupAzureServiceBusOptions instance - */ - WriteGroupAzureServiceBusOptions.create = function create(properties) { - return new WriteGroupAzureServiceBusOptions(properties); - }; - - /** - * Encodes the specified WriteGroupAzureServiceBusOptions message. Does not implicitly {@link protos.opts.WriteGroupAzureServiceBusOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupAzureServiceBusOptions - * @static - * @param {protos.opts.IWriteGroupAzureServiceBusOptions} message WriteGroupAzureServiceBusOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupAzureServiceBusOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AzureServiceBusConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AzureServiceBusWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupAzureServiceBusOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAzureServiceBusOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupAzureServiceBusOptions - * @static - * @param {protos.opts.IWriteGroupAzureServiceBusOptions} message WriteGroupAzureServiceBusOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupAzureServiceBusOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupAzureServiceBusOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupAzureServiceBusOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupAzureServiceBusOptions} WriteGroupAzureServiceBusOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupAzureServiceBusOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupAzureServiceBusOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.AzureServiceBusConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.AzureServiceBusWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a WriteGroupAzureServiceBusOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupAzureServiceBusOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupAzureServiceBusOptions} WriteGroupAzureServiceBusOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupAzureServiceBusOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupAzureServiceBusOptions message. - * @function verify - * @memberof protos.opts.WriteGroupAzureServiceBusOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupAzureServiceBusOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AzureServiceBusConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AzureServiceBusWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a WriteGroupAzureServiceBusOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupAzureServiceBusOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupAzureServiceBusOptions} WriteGroupAzureServiceBusOptions - */ - WriteGroupAzureServiceBusOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupAzureServiceBusOptions) - return object; - var message = new $root.protos.opts.WriteGroupAzureServiceBusOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupAzureServiceBusOptions._conn: object expected"); - message._conn = $root.protos.args.AzureServiceBusConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupAzureServiceBusOptions.args: object expected"); - message.args = $root.protos.args.AzureServiceBusWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a WriteGroupAzureServiceBusOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupAzureServiceBusOptions - * @static - * @param {protos.opts.WriteGroupAzureServiceBusOptions} message WriteGroupAzureServiceBusOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupAzureServiceBusOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AzureServiceBusConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AzureServiceBusWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupAzureServiceBusOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupAzureServiceBusOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupAzureServiceBusOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupAzureServiceBusOptions; - })(); - - opts.WriteGroupMQTTOptions = (function() { - - /** - * Properties of a WriteGroupMQTTOptions. - * @memberof protos.opts - * @interface IWriteGroupMQTTOptions - * @property {protos.args.IMQTTConn|null} [_conn] WriteGroupMQTTOptions _conn - * @property {protos.args.IMQTTWriteArgs|null} [args] WriteGroupMQTTOptions args - */ - - /** - * Constructs a new WriteGroupMQTTOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupMQTTOptions. - * @implements IWriteGroupMQTTOptions - * @constructor - * @param {protos.opts.IWriteGroupMQTTOptions=} [properties] Properties to set - */ - function WriteGroupMQTTOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupMQTTOptions _conn. - * @member {protos.args.IMQTTConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupMQTTOptions - * @instance - */ - WriteGroupMQTTOptions.prototype._conn = null; - - /** - * WriteGroupMQTTOptions args. - * @member {protos.args.IMQTTWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupMQTTOptions - * @instance - */ - WriteGroupMQTTOptions.prototype.args = null; - - /** - * Creates a new WriteGroupMQTTOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupMQTTOptions - * @static - * @param {protos.opts.IWriteGroupMQTTOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupMQTTOptions} WriteGroupMQTTOptions instance - */ - WriteGroupMQTTOptions.create = function create(properties) { - return new WriteGroupMQTTOptions(properties); - }; - - /** - * Encodes the specified WriteGroupMQTTOptions message. Does not implicitly {@link protos.opts.WriteGroupMQTTOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupMQTTOptions - * @static - * @param {protos.opts.IWriteGroupMQTTOptions} message WriteGroupMQTTOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupMQTTOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.MQTTConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.MQTTWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupMQTTOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupMQTTOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupMQTTOptions - * @static - * @param {protos.opts.IWriteGroupMQTTOptions} message WriteGroupMQTTOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupMQTTOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupMQTTOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupMQTTOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupMQTTOptions} WriteGroupMQTTOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupMQTTOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupMQTTOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.MQTTConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.MQTTWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a WriteGroupMQTTOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupMQTTOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupMQTTOptions} WriteGroupMQTTOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupMQTTOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupMQTTOptions message. - * @function verify - * @memberof protos.opts.WriteGroupMQTTOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupMQTTOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.MQTTConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.MQTTWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a WriteGroupMQTTOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupMQTTOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupMQTTOptions} WriteGroupMQTTOptions - */ - WriteGroupMQTTOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupMQTTOptions) - return object; - var message = new $root.protos.opts.WriteGroupMQTTOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupMQTTOptions._conn: object expected"); - message._conn = $root.protos.args.MQTTConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupMQTTOptions.args: object expected"); - message.args = $root.protos.args.MQTTWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a WriteGroupMQTTOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupMQTTOptions - * @static - * @param {protos.opts.WriteGroupMQTTOptions} message WriteGroupMQTTOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupMQTTOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.MQTTConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.MQTTWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupMQTTOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupMQTTOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupMQTTOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupMQTTOptions; - })(); - - opts.WriteGroupGCPPubSubOptions = (function() { - - /** - * Properties of a WriteGroupGCPPubSubOptions. - * @memberof protos.opts - * @interface IWriteGroupGCPPubSubOptions - * @property {protos.args.IGCPPubSubConn|null} [_conn] WriteGroupGCPPubSubOptions _conn - * @property {protos.args.IGCPPubSubWriteArgs|null} [args] WriteGroupGCPPubSubOptions args - */ - - /** - * Constructs a new WriteGroupGCPPubSubOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupGCPPubSubOptions. - * @implements IWriteGroupGCPPubSubOptions - * @constructor - * @param {protos.opts.IWriteGroupGCPPubSubOptions=} [properties] Properties to set - */ - function WriteGroupGCPPubSubOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupGCPPubSubOptions _conn. - * @member {protos.args.IGCPPubSubConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupGCPPubSubOptions - * @instance - */ - WriteGroupGCPPubSubOptions.prototype._conn = null; - - /** - * WriteGroupGCPPubSubOptions args. - * @member {protos.args.IGCPPubSubWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupGCPPubSubOptions - * @instance - */ - WriteGroupGCPPubSubOptions.prototype.args = null; - - /** - * Creates a new WriteGroupGCPPubSubOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupGCPPubSubOptions - * @static - * @param {protos.opts.IWriteGroupGCPPubSubOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupGCPPubSubOptions} WriteGroupGCPPubSubOptions instance - */ - WriteGroupGCPPubSubOptions.create = function create(properties) { - return new WriteGroupGCPPubSubOptions(properties); - }; - - /** - * Encodes the specified WriteGroupGCPPubSubOptions message. Does not implicitly {@link protos.opts.WriteGroupGCPPubSubOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupGCPPubSubOptions - * @static - * @param {protos.opts.IWriteGroupGCPPubSubOptions} message WriteGroupGCPPubSubOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupGCPPubSubOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.GCPPubSubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.GCPPubSubWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupGCPPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupGCPPubSubOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupGCPPubSubOptions - * @static - * @param {protos.opts.IWriteGroupGCPPubSubOptions} message WriteGroupGCPPubSubOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupGCPPubSubOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupGCPPubSubOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupGCPPubSubOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupGCPPubSubOptions} WriteGroupGCPPubSubOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupGCPPubSubOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupGCPPubSubOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.GCPPubSubConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.GCPPubSubWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a WriteGroupGCPPubSubOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupGCPPubSubOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupGCPPubSubOptions} WriteGroupGCPPubSubOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupGCPPubSubOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupGCPPubSubOptions message. - * @function verify - * @memberof protos.opts.WriteGroupGCPPubSubOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupGCPPubSubOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.GCPPubSubConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.GCPPubSubWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a WriteGroupGCPPubSubOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupGCPPubSubOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupGCPPubSubOptions} WriteGroupGCPPubSubOptions - */ - WriteGroupGCPPubSubOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupGCPPubSubOptions) - return object; - var message = new $root.protos.opts.WriteGroupGCPPubSubOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupGCPPubSubOptions._conn: object expected"); - message._conn = $root.protos.args.GCPPubSubConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupGCPPubSubOptions.args: object expected"); - message.args = $root.protos.args.GCPPubSubWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a WriteGroupGCPPubSubOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupGCPPubSubOptions - * @static - * @param {protos.opts.WriteGroupGCPPubSubOptions} message WriteGroupGCPPubSubOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupGCPPubSubOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.GCPPubSubConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.GCPPubSubWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupGCPPubSubOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupGCPPubSubOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupGCPPubSubOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupGCPPubSubOptions; - })(); - - opts.WriteGroupKubeMQQueueOptions = (function() { - - /** - * Properties of a WriteGroupKubeMQQueueOptions. - * @memberof protos.opts - * @interface IWriteGroupKubeMQQueueOptions - * @property {protos.args.IKubeMQQueueConn|null} [_conn] WriteGroupKubeMQQueueOptions _conn - * @property {protos.args.IKubeMQQueueWriteArgs|null} [args] WriteGroupKubeMQQueueOptions args - */ - - /** - * Constructs a new WriteGroupKubeMQQueueOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupKubeMQQueueOptions. - * @implements IWriteGroupKubeMQQueueOptions - * @constructor - * @param {protos.opts.IWriteGroupKubeMQQueueOptions=} [properties] Properties to set - */ - function WriteGroupKubeMQQueueOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupKubeMQQueueOptions _conn. - * @member {protos.args.IKubeMQQueueConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupKubeMQQueueOptions - * @instance - */ - WriteGroupKubeMQQueueOptions.prototype._conn = null; - - /** - * WriteGroupKubeMQQueueOptions args. - * @member {protos.args.IKubeMQQueueWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupKubeMQQueueOptions - * @instance - */ - WriteGroupKubeMQQueueOptions.prototype.args = null; - - /** - * Creates a new WriteGroupKubeMQQueueOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupKubeMQQueueOptions - * @static - * @param {protos.opts.IWriteGroupKubeMQQueueOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupKubeMQQueueOptions} WriteGroupKubeMQQueueOptions instance - */ - WriteGroupKubeMQQueueOptions.create = function create(properties) { - return new WriteGroupKubeMQQueueOptions(properties); - }; - - /** - * Encodes the specified WriteGroupKubeMQQueueOptions message. Does not implicitly {@link protos.opts.WriteGroupKubeMQQueueOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupKubeMQQueueOptions - * @static - * @param {protos.opts.IWriteGroupKubeMQQueueOptions} message WriteGroupKubeMQQueueOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupKubeMQQueueOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.KubeMQQueueConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.KubeMQQueueWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupKubeMQQueueOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupKubeMQQueueOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupKubeMQQueueOptions - * @static - * @param {protos.opts.IWriteGroupKubeMQQueueOptions} message WriteGroupKubeMQQueueOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupKubeMQQueueOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupKubeMQQueueOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupKubeMQQueueOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupKubeMQQueueOptions} WriteGroupKubeMQQueueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupKubeMQQueueOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupKubeMQQueueOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.KubeMQQueueConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.KubeMQQueueWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a WriteGroupKubeMQQueueOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupKubeMQQueueOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupKubeMQQueueOptions} WriteGroupKubeMQQueueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupKubeMQQueueOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupKubeMQQueueOptions message. - * @function verify - * @memberof protos.opts.WriteGroupKubeMQQueueOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupKubeMQQueueOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.KubeMQQueueConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.KubeMQQueueWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a WriteGroupKubeMQQueueOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupKubeMQQueueOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupKubeMQQueueOptions} WriteGroupKubeMQQueueOptions - */ - WriteGroupKubeMQQueueOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupKubeMQQueueOptions) - return object; - var message = new $root.protos.opts.WriteGroupKubeMQQueueOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupKubeMQQueueOptions._conn: object expected"); - message._conn = $root.protos.args.KubeMQQueueConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupKubeMQQueueOptions.args: object expected"); - message.args = $root.protos.args.KubeMQQueueWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a WriteGroupKubeMQQueueOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupKubeMQQueueOptions - * @static - * @param {protos.opts.WriteGroupKubeMQQueueOptions} message WriteGroupKubeMQQueueOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupKubeMQQueueOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.KubeMQQueueConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.KubeMQQueueWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupKubeMQQueueOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupKubeMQQueueOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupKubeMQQueueOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupKubeMQQueueOptions; - })(); - - opts.WriteGroupAWSKinesisOptions = (function() { - - /** - * Properties of a WriteGroupAWSKinesisOptions. - * @memberof protos.opts - * @interface IWriteGroupAWSKinesisOptions - * @property {protos.args.IAWSKinesisConn|null} [_conn] WriteGroupAWSKinesisOptions _conn - * @property {protos.args.IAWSKinesisWriteArgs|null} [args] WriteGroupAWSKinesisOptions args - */ - - /** - * Constructs a new WriteGroupAWSKinesisOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupAWSKinesisOptions. - * @implements IWriteGroupAWSKinesisOptions - * @constructor - * @param {protos.opts.IWriteGroupAWSKinesisOptions=} [properties] Properties to set - */ - function WriteGroupAWSKinesisOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupAWSKinesisOptions _conn. - * @member {protos.args.IAWSKinesisConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupAWSKinesisOptions - * @instance - */ - WriteGroupAWSKinesisOptions.prototype._conn = null; - - /** - * WriteGroupAWSKinesisOptions args. - * @member {protos.args.IAWSKinesisWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupAWSKinesisOptions - * @instance - */ - WriteGroupAWSKinesisOptions.prototype.args = null; - - /** - * Creates a new WriteGroupAWSKinesisOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupAWSKinesisOptions - * @static - * @param {protos.opts.IWriteGroupAWSKinesisOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupAWSKinesisOptions} WriteGroupAWSKinesisOptions instance - */ - WriteGroupAWSKinesisOptions.create = function create(properties) { - return new WriteGroupAWSKinesisOptions(properties); - }; - - /** - * Encodes the specified WriteGroupAWSKinesisOptions message. Does not implicitly {@link protos.opts.WriteGroupAWSKinesisOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupAWSKinesisOptions - * @static - * @param {protos.opts.IWriteGroupAWSKinesisOptions} message WriteGroupAWSKinesisOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupAWSKinesisOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.AWSKinesisConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.AWSKinesisWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupAWSKinesisOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAWSKinesisOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupAWSKinesisOptions - * @static - * @param {protos.opts.IWriteGroupAWSKinesisOptions} message WriteGroupAWSKinesisOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupAWSKinesisOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupAWSKinesisOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupAWSKinesisOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupAWSKinesisOptions} WriteGroupAWSKinesisOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupAWSKinesisOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupAWSKinesisOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.AWSKinesisConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.AWSKinesisWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a WriteGroupAWSKinesisOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupAWSKinesisOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupAWSKinesisOptions} WriteGroupAWSKinesisOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupAWSKinesisOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupAWSKinesisOptions message. - * @function verify - * @memberof protos.opts.WriteGroupAWSKinesisOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupAWSKinesisOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.AWSKinesisConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.AWSKinesisWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a WriteGroupAWSKinesisOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupAWSKinesisOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupAWSKinesisOptions} WriteGroupAWSKinesisOptions - */ - WriteGroupAWSKinesisOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupAWSKinesisOptions) - return object; - var message = new $root.protos.opts.WriteGroupAWSKinesisOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupAWSKinesisOptions._conn: object expected"); - message._conn = $root.protos.args.AWSKinesisConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupAWSKinesisOptions.args: object expected"); - message.args = $root.protos.args.AWSKinesisWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a WriteGroupAWSKinesisOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupAWSKinesisOptions - * @static - * @param {protos.opts.WriteGroupAWSKinesisOptions} message WriteGroupAWSKinesisOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupAWSKinesisOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.AWSKinesisConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.AWSKinesisWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupAWSKinesisOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupAWSKinesisOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupAWSKinesisOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupAWSKinesisOptions; - })(); - - opts.WriteGroupMemphisOptions = (function() { - - /** - * Properties of a WriteGroupMemphisOptions. - * @memberof protos.opts - * @interface IWriteGroupMemphisOptions - * @property {protos.args.IMemphisConn|null} [_conn] WriteGroupMemphisOptions _conn - * @property {protos.args.IMemphisWriteArgs|null} [args] WriteGroupMemphisOptions args - */ - - /** - * Constructs a new WriteGroupMemphisOptions. - * @memberof protos.opts - * @classdesc Represents a WriteGroupMemphisOptions. - * @implements IWriteGroupMemphisOptions - * @constructor - * @param {protos.opts.IWriteGroupMemphisOptions=} [properties] Properties to set - */ - function WriteGroupMemphisOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WriteGroupMemphisOptions _conn. - * @member {protos.args.IMemphisConn|null|undefined} _conn - * @memberof protos.opts.WriteGroupMemphisOptions - * @instance - */ - WriteGroupMemphisOptions.prototype._conn = null; - - /** - * WriteGroupMemphisOptions args. - * @member {protos.args.IMemphisWriteArgs|null|undefined} args - * @memberof protos.opts.WriteGroupMemphisOptions - * @instance - */ - WriteGroupMemphisOptions.prototype.args = null; - - /** - * Creates a new WriteGroupMemphisOptions instance using the specified properties. - * @function create - * @memberof protos.opts.WriteGroupMemphisOptions - * @static - * @param {protos.opts.IWriteGroupMemphisOptions=} [properties] Properties to set - * @returns {protos.opts.WriteGroupMemphisOptions} WriteGroupMemphisOptions instance - */ - WriteGroupMemphisOptions.create = function create(properties) { - return new WriteGroupMemphisOptions(properties); - }; - - /** - * Encodes the specified WriteGroupMemphisOptions message. Does not implicitly {@link protos.opts.WriteGroupMemphisOptions.verify|verify} messages. - * @function encode - * @memberof protos.opts.WriteGroupMemphisOptions - * @static - * @param {protos.opts.IWriteGroupMemphisOptions} message WriteGroupMemphisOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupMemphisOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) - $root.protos.args.MemphisConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.args != null && Object.hasOwnProperty.call(message, "args")) - $root.protos.args.MemphisWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified WriteGroupMemphisOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupMemphisOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.opts.WriteGroupMemphisOptions - * @static - * @param {protos.opts.IWriteGroupMemphisOptions} message WriteGroupMemphisOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WriteGroupMemphisOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a WriteGroupMemphisOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.opts.WriteGroupMemphisOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.opts.WriteGroupMemphisOptions} WriteGroupMemphisOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupMemphisOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupMemphisOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message._conn = $root.protos.args.MemphisConn.decode(reader, reader.uint32()); - break; - case 2: - message.args = $root.protos.args.MemphisWriteArgs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a WriteGroupMemphisOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.opts.WriteGroupMemphisOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.opts.WriteGroupMemphisOptions} WriteGroupMemphisOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WriteGroupMemphisOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a WriteGroupMemphisOptions message. - * @function verify - * @memberof protos.opts.WriteGroupMemphisOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WriteGroupMemphisOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message._conn != null && message.hasOwnProperty("_conn")) { - var error = $root.protos.args.MemphisConn.verify(message._conn); - if (error) - return "_conn." + error; - } - if (message.args != null && message.hasOwnProperty("args")) { - var error = $root.protos.args.MemphisWriteArgs.verify(message.args); - if (error) - return "args." + error; - } - return null; - }; - - /** - * Creates a WriteGroupMemphisOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.opts.WriteGroupMemphisOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.opts.WriteGroupMemphisOptions} WriteGroupMemphisOptions - */ - WriteGroupMemphisOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.opts.WriteGroupMemphisOptions) - return object; - var message = new $root.protos.opts.WriteGroupMemphisOptions(); - if (object._conn != null) { - if (typeof object._conn !== "object") - throw TypeError(".protos.opts.WriteGroupMemphisOptions._conn: object expected"); - message._conn = $root.protos.args.MemphisConn.fromObject(object._conn); - } - if (object.args != null) { - if (typeof object.args !== "object") - throw TypeError(".protos.opts.WriteGroupMemphisOptions.args: object expected"); - message.args = $root.protos.args.MemphisWriteArgs.fromObject(object.args); - } - return message; - }; - - /** - * Creates a plain object from a WriteGroupMemphisOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.opts.WriteGroupMemphisOptions - * @static - * @param {protos.opts.WriteGroupMemphisOptions} message WriteGroupMemphisOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WriteGroupMemphisOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object._conn = null; - object.args = null; - } - if (message._conn != null && message.hasOwnProperty("_conn")) - object._conn = $root.protos.args.MemphisConn.toObject(message._conn, options); - if (message.args != null && message.hasOwnProperty("args")) - object.args = $root.protos.args.MemphisWriteArgs.toObject(message.args, options); - return object; - }; - - /** - * Converts this WriteGroupMemphisOptions to JSON. - * @function toJSON - * @memberof protos.opts.WriteGroupMemphisOptions - * @instance - * @returns {Object.} JSON object - */ - WriteGroupMemphisOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return WriteGroupMemphisOptions; - })(); - - return opts; - })(); - - protos.args = (function() { - - /** - * Namespace args. - * @memberof protos - * @namespace - */ - var args = {}; - - args.ActiveMQConn = (function() { - - /** - * Properties of an ActiveMQConn. - * @memberof protos.args - * @interface IActiveMQConn - * @property {string|null} [address] ActiveMQConn address - */ - - /** - * Constructs a new ActiveMQConn. - * @memberof protos.args - * @classdesc Represents an ActiveMQConn. - * @implements IActiveMQConn - * @constructor - * @param {protos.args.IActiveMQConn=} [properties] Properties to set - */ - function ActiveMQConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ActiveMQConn address. - * @member {string} address - * @memberof protos.args.ActiveMQConn - * @instance - */ - ActiveMQConn.prototype.address = ""; - - /** - * Creates a new ActiveMQConn instance using the specified properties. - * @function create - * @memberof protos.args.ActiveMQConn - * @static - * @param {protos.args.IActiveMQConn=} [properties] Properties to set - * @returns {protos.args.ActiveMQConn} ActiveMQConn instance - */ - ActiveMQConn.create = function create(properties) { - return new ActiveMQConn(properties); - }; - - /** - * Encodes the specified ActiveMQConn message. Does not implicitly {@link protos.args.ActiveMQConn.verify|verify} messages. - * @function encode - * @memberof protos.args.ActiveMQConn - * @static - * @param {protos.args.IActiveMQConn} message ActiveMQConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveMQConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - return writer; - }; - - /** - * Encodes the specified ActiveMQConn message, length delimited. Does not implicitly {@link protos.args.ActiveMQConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.ActiveMQConn - * @static - * @param {protos.args.IActiveMQConn} message ActiveMQConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveMQConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ActiveMQConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.ActiveMQConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.ActiveMQConn} ActiveMQConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveMQConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.ActiveMQConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ActiveMQConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.ActiveMQConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.ActiveMQConn} ActiveMQConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveMQConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ActiveMQConn message. - * @function verify - * @memberof protos.args.ActiveMQConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ActiveMQConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - return null; - }; - - /** - * Creates an ActiveMQConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.ActiveMQConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.ActiveMQConn} ActiveMQConn - */ - ActiveMQConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.ActiveMQConn) - return object; - var message = new $root.protos.args.ActiveMQConn(); - if (object.address != null) - message.address = String(object.address); - return message; - }; - - /** - * Creates a plain object from an ActiveMQConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.ActiveMQConn - * @static - * @param {protos.args.ActiveMQConn} message ActiveMQConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ActiveMQConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.address = ""; - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - return object; - }; - - /** - * Converts this ActiveMQConn to JSON. - * @function toJSON - * @memberof protos.args.ActiveMQConn - * @instance - * @returns {Object.} JSON object - */ - ActiveMQConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ActiveMQConn; - })(); - - args.ActiveMQReadArgs = (function() { - - /** - * Properties of an ActiveMQReadArgs. - * @memberof protos.args - * @interface IActiveMQReadArgs - * @property {string|null} [topic] ActiveMQReadArgs topic - * @property {string|null} [queue] ActiveMQReadArgs queue - */ - - /** - * Constructs a new ActiveMQReadArgs. - * @memberof protos.args - * @classdesc Represents an ActiveMQReadArgs. - * @implements IActiveMQReadArgs - * @constructor - * @param {protos.args.IActiveMQReadArgs=} [properties] Properties to set - */ - function ActiveMQReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ActiveMQReadArgs topic. - * @member {string} topic - * @memberof protos.args.ActiveMQReadArgs - * @instance - */ - ActiveMQReadArgs.prototype.topic = ""; - - /** - * ActiveMQReadArgs queue. - * @member {string} queue - * @memberof protos.args.ActiveMQReadArgs - * @instance - */ - ActiveMQReadArgs.prototype.queue = ""; - - /** - * Creates a new ActiveMQReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.ActiveMQReadArgs - * @static - * @param {protos.args.IActiveMQReadArgs=} [properties] Properties to set - * @returns {protos.args.ActiveMQReadArgs} ActiveMQReadArgs instance - */ - ActiveMQReadArgs.create = function create(properties) { - return new ActiveMQReadArgs(properties); - }; - - /** - * Encodes the specified ActiveMQReadArgs message. Does not implicitly {@link protos.args.ActiveMQReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.ActiveMQReadArgs - * @static - * @param {protos.args.IActiveMQReadArgs} message ActiveMQReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveMQReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); - if (message.queue != null && Object.hasOwnProperty.call(message, "queue")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.queue); - return writer; - }; - - /** - * Encodes the specified ActiveMQReadArgs message, length delimited. Does not implicitly {@link protos.args.ActiveMQReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.ActiveMQReadArgs - * @static - * @param {protos.args.IActiveMQReadArgs} message ActiveMQReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveMQReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ActiveMQReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.ActiveMQReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.ActiveMQReadArgs} ActiveMQReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveMQReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.ActiveMQReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.topic = reader.string(); - break; - case 2: - message.queue = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ActiveMQReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.ActiveMQReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.ActiveMQReadArgs} ActiveMQReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveMQReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ActiveMQReadArgs message. - * @function verify - * @memberof protos.args.ActiveMQReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ActiveMQReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.topic != null && message.hasOwnProperty("topic")) - if (!$util.isString(message.topic)) - return "topic: string expected"; - if (message.queue != null && message.hasOwnProperty("queue")) - if (!$util.isString(message.queue)) - return "queue: string expected"; - return null; - }; - - /** - * Creates an ActiveMQReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.ActiveMQReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.ActiveMQReadArgs} ActiveMQReadArgs - */ - ActiveMQReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.ActiveMQReadArgs) - return object; - var message = new $root.protos.args.ActiveMQReadArgs(); - if (object.topic != null) - message.topic = String(object.topic); - if (object.queue != null) - message.queue = String(object.queue); - return message; - }; - - /** - * Creates a plain object from an ActiveMQReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.ActiveMQReadArgs - * @static - * @param {protos.args.ActiveMQReadArgs} message ActiveMQReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ActiveMQReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.topic = ""; - object.queue = ""; - } - if (message.topic != null && message.hasOwnProperty("topic")) - object.topic = message.topic; - if (message.queue != null && message.hasOwnProperty("queue")) - object.queue = message.queue; - return object; - }; - - /** - * Converts this ActiveMQReadArgs to JSON. - * @function toJSON - * @memberof protos.args.ActiveMQReadArgs - * @instance - * @returns {Object.} JSON object - */ - ActiveMQReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ActiveMQReadArgs; - })(); - - args.ActiveMQWriteArgs = (function() { - - /** - * Properties of an ActiveMQWriteArgs. - * @memberof protos.args - * @interface IActiveMQWriteArgs - * @property {string|null} [topic] ActiveMQWriteArgs topic - * @property {string|null} [queue] ActiveMQWriteArgs queue - */ - - /** - * Constructs a new ActiveMQWriteArgs. - * @memberof protos.args - * @classdesc Represents an ActiveMQWriteArgs. - * @implements IActiveMQWriteArgs - * @constructor - * @param {protos.args.IActiveMQWriteArgs=} [properties] Properties to set - */ - function ActiveMQWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ActiveMQWriteArgs topic. - * @member {string} topic - * @memberof protos.args.ActiveMQWriteArgs - * @instance - */ - ActiveMQWriteArgs.prototype.topic = ""; - - /** - * ActiveMQWriteArgs queue. - * @member {string} queue - * @memberof protos.args.ActiveMQWriteArgs - * @instance - */ - ActiveMQWriteArgs.prototype.queue = ""; - - /** - * Creates a new ActiveMQWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.ActiveMQWriteArgs - * @static - * @param {protos.args.IActiveMQWriteArgs=} [properties] Properties to set - * @returns {protos.args.ActiveMQWriteArgs} ActiveMQWriteArgs instance - */ - ActiveMQWriteArgs.create = function create(properties) { - return new ActiveMQWriteArgs(properties); - }; - - /** - * Encodes the specified ActiveMQWriteArgs message. Does not implicitly {@link protos.args.ActiveMQWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.ActiveMQWriteArgs - * @static - * @param {protos.args.IActiveMQWriteArgs} message ActiveMQWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveMQWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); - if (message.queue != null && Object.hasOwnProperty.call(message, "queue")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.queue); - return writer; - }; - - /** - * Encodes the specified ActiveMQWriteArgs message, length delimited. Does not implicitly {@link protos.args.ActiveMQWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.ActiveMQWriteArgs - * @static - * @param {protos.args.IActiveMQWriteArgs} message ActiveMQWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveMQWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ActiveMQWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.ActiveMQWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.ActiveMQWriteArgs} ActiveMQWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveMQWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.ActiveMQWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.topic = reader.string(); - break; - case 2: - message.queue = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ActiveMQWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.ActiveMQWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.ActiveMQWriteArgs} ActiveMQWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveMQWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ActiveMQWriteArgs message. - * @function verify - * @memberof protos.args.ActiveMQWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ActiveMQWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.topic != null && message.hasOwnProperty("topic")) - if (!$util.isString(message.topic)) - return "topic: string expected"; - if (message.queue != null && message.hasOwnProperty("queue")) - if (!$util.isString(message.queue)) - return "queue: string expected"; - return null; - }; - - /** - * Creates an ActiveMQWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.ActiveMQWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.ActiveMQWriteArgs} ActiveMQWriteArgs - */ - ActiveMQWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.ActiveMQWriteArgs) - return object; - var message = new $root.protos.args.ActiveMQWriteArgs(); - if (object.topic != null) - message.topic = String(object.topic); - if (object.queue != null) - message.queue = String(object.queue); - return message; - }; - - /** - * Creates a plain object from an ActiveMQWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.ActiveMQWriteArgs - * @static - * @param {protos.args.ActiveMQWriteArgs} message ActiveMQWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ActiveMQWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.topic = ""; - object.queue = ""; - } - if (message.topic != null && message.hasOwnProperty("topic")) - object.topic = message.topic; - if (message.queue != null && message.hasOwnProperty("queue")) - object.queue = message.queue; - return object; - }; - - /** - * Converts this ActiveMQWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.ActiveMQWriteArgs - * @instance - * @returns {Object.} JSON object - */ - ActiveMQWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ActiveMQWriteArgs; - })(); - - args.AWSKinesisConn = (function() { - - /** - * Properties of a AWSKinesisConn. - * @memberof protos.args - * @interface IAWSKinesisConn - * @property {string|null} [awsRegion] AWSKinesisConn awsRegion - * @property {string|null} [awsAccessKeyId] AWSKinesisConn awsAccessKeyId - * @property {string|null} [awsSecretAccessKey] AWSKinesisConn awsSecretAccessKey - * @property {string|null} [awsProfile] AWSKinesisConn awsProfile - */ - - /** - * Constructs a new AWSKinesisConn. - * @memberof protos.args - * @classdesc Represents a AWSKinesisConn. - * @implements IAWSKinesisConn - * @constructor - * @param {protos.args.IAWSKinesisConn=} [properties] Properties to set - */ - function AWSKinesisConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AWSKinesisConn awsRegion. - * @member {string} awsRegion - * @memberof protos.args.AWSKinesisConn - * @instance - */ - AWSKinesisConn.prototype.awsRegion = ""; - - /** - * AWSKinesisConn awsAccessKeyId. - * @member {string} awsAccessKeyId - * @memberof protos.args.AWSKinesisConn - * @instance - */ - AWSKinesisConn.prototype.awsAccessKeyId = ""; - - /** - * AWSKinesisConn awsSecretAccessKey. - * @member {string} awsSecretAccessKey - * @memberof protos.args.AWSKinesisConn - * @instance - */ - AWSKinesisConn.prototype.awsSecretAccessKey = ""; - - /** - * AWSKinesisConn awsProfile. - * @member {string} awsProfile - * @memberof protos.args.AWSKinesisConn - * @instance - */ - AWSKinesisConn.prototype.awsProfile = ""; - - /** - * Creates a new AWSKinesisConn instance using the specified properties. - * @function create - * @memberof protos.args.AWSKinesisConn - * @static - * @param {protos.args.IAWSKinesisConn=} [properties] Properties to set - * @returns {protos.args.AWSKinesisConn} AWSKinesisConn instance - */ - AWSKinesisConn.create = function create(properties) { - return new AWSKinesisConn(properties); - }; - - /** - * Encodes the specified AWSKinesisConn message. Does not implicitly {@link protos.args.AWSKinesisConn.verify|verify} messages. - * @function encode - * @memberof protos.args.AWSKinesisConn - * @static - * @param {protos.args.IAWSKinesisConn} message AWSKinesisConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSKinesisConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.awsRegion != null && Object.hasOwnProperty.call(message, "awsRegion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.awsRegion); - if (message.awsAccessKeyId != null && Object.hasOwnProperty.call(message, "awsAccessKeyId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.awsAccessKeyId); - if (message.awsSecretAccessKey != null && Object.hasOwnProperty.call(message, "awsSecretAccessKey")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.awsSecretAccessKey); - if (message.awsProfile != null && Object.hasOwnProperty.call(message, "awsProfile")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.awsProfile); - return writer; - }; - - /** - * Encodes the specified AWSKinesisConn message, length delimited. Does not implicitly {@link protos.args.AWSKinesisConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AWSKinesisConn - * @static - * @param {protos.args.IAWSKinesisConn} message AWSKinesisConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSKinesisConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a AWSKinesisConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AWSKinesisConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AWSKinesisConn} AWSKinesisConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSKinesisConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSKinesisConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.awsRegion = reader.string(); - break; - case 2: - message.awsAccessKeyId = reader.string(); - break; - case 3: - message.awsSecretAccessKey = reader.string(); - break; - case 4: - message.awsProfile = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a AWSKinesisConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AWSKinesisConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AWSKinesisConn} AWSKinesisConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSKinesisConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a AWSKinesisConn message. - * @function verify - * @memberof protos.args.AWSKinesisConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AWSKinesisConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.awsRegion != null && message.hasOwnProperty("awsRegion")) - if (!$util.isString(message.awsRegion)) - return "awsRegion: string expected"; - if (message.awsAccessKeyId != null && message.hasOwnProperty("awsAccessKeyId")) - if (!$util.isString(message.awsAccessKeyId)) - return "awsAccessKeyId: string expected"; - if (message.awsSecretAccessKey != null && message.hasOwnProperty("awsSecretAccessKey")) - if (!$util.isString(message.awsSecretAccessKey)) - return "awsSecretAccessKey: string expected"; - if (message.awsProfile != null && message.hasOwnProperty("awsProfile")) - if (!$util.isString(message.awsProfile)) - return "awsProfile: string expected"; - return null; - }; - - /** - * Creates a AWSKinesisConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AWSKinesisConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AWSKinesisConn} AWSKinesisConn - */ - AWSKinesisConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AWSKinesisConn) - return object; - var message = new $root.protos.args.AWSKinesisConn(); - if (object.awsRegion != null) - message.awsRegion = String(object.awsRegion); - if (object.awsAccessKeyId != null) - message.awsAccessKeyId = String(object.awsAccessKeyId); - if (object.awsSecretAccessKey != null) - message.awsSecretAccessKey = String(object.awsSecretAccessKey); - if (object.awsProfile != null) - message.awsProfile = String(object.awsProfile); - return message; - }; - - /** - * Creates a plain object from a AWSKinesisConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AWSKinesisConn - * @static - * @param {protos.args.AWSKinesisConn} message AWSKinesisConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AWSKinesisConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.awsRegion = ""; - object.awsAccessKeyId = ""; - object.awsSecretAccessKey = ""; - object.awsProfile = ""; - } - if (message.awsRegion != null && message.hasOwnProperty("awsRegion")) - object.awsRegion = message.awsRegion; - if (message.awsAccessKeyId != null && message.hasOwnProperty("awsAccessKeyId")) - object.awsAccessKeyId = message.awsAccessKeyId; - if (message.awsSecretAccessKey != null && message.hasOwnProperty("awsSecretAccessKey")) - object.awsSecretAccessKey = message.awsSecretAccessKey; - if (message.awsProfile != null && message.hasOwnProperty("awsProfile")) - object.awsProfile = message.awsProfile; - return object; - }; - - /** - * Converts this AWSKinesisConn to JSON. - * @function toJSON - * @memberof protos.args.AWSKinesisConn - * @instance - * @returns {Object.} JSON object - */ - AWSKinesisConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AWSKinesisConn; - })(); - - args.AWSKinesisReadArgs = (function() { - - /** - * Properties of a AWSKinesisReadArgs. - * @memberof protos.args - * @interface IAWSKinesisReadArgs - * @property {string|null} [stream] AWSKinesisReadArgs stream - * @property {string|null} [shard] AWSKinesisReadArgs shard - * @property {number|Long|null} [maxRecords] AWSKinesisReadArgs maxRecords - * @property {number|Long|null} [readFromTimestamp] AWSKinesisReadArgs readFromTimestamp - * @property {string|null} [readSequenceNumber] AWSKinesisReadArgs readSequenceNumber - * @property {string|null} [readAfterSequenceNumber] AWSKinesisReadArgs readAfterSequenceNumber - * @property {boolean|null} [readTrimHorizon] AWSKinesisReadArgs readTrimHorizon - * @property {boolean|null} [readLatest] AWSKinesisReadArgs readLatest - */ - - /** - * Constructs a new AWSKinesisReadArgs. - * @memberof protos.args - * @classdesc Represents a AWSKinesisReadArgs. - * @implements IAWSKinesisReadArgs - * @constructor - * @param {protos.args.IAWSKinesisReadArgs=} [properties] Properties to set - */ - function AWSKinesisReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AWSKinesisReadArgs stream. - * @member {string} stream - * @memberof protos.args.AWSKinesisReadArgs - * @instance - */ - AWSKinesisReadArgs.prototype.stream = ""; - - /** - * AWSKinesisReadArgs shard. - * @member {string} shard - * @memberof protos.args.AWSKinesisReadArgs - * @instance - */ - AWSKinesisReadArgs.prototype.shard = ""; - - /** - * AWSKinesisReadArgs maxRecords. - * @member {number|Long} maxRecords - * @memberof protos.args.AWSKinesisReadArgs - * @instance - */ - AWSKinesisReadArgs.prototype.maxRecords = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * AWSKinesisReadArgs readFromTimestamp. - * @member {number|Long} readFromTimestamp - * @memberof protos.args.AWSKinesisReadArgs - * @instance - */ - AWSKinesisReadArgs.prototype.readFromTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * AWSKinesisReadArgs readSequenceNumber. - * @member {string} readSequenceNumber - * @memberof protos.args.AWSKinesisReadArgs - * @instance - */ - AWSKinesisReadArgs.prototype.readSequenceNumber = ""; - - /** - * AWSKinesisReadArgs readAfterSequenceNumber. - * @member {string} readAfterSequenceNumber - * @memberof protos.args.AWSKinesisReadArgs - * @instance - */ - AWSKinesisReadArgs.prototype.readAfterSequenceNumber = ""; - - /** - * AWSKinesisReadArgs readTrimHorizon. - * @member {boolean} readTrimHorizon - * @memberof protos.args.AWSKinesisReadArgs - * @instance - */ - AWSKinesisReadArgs.prototype.readTrimHorizon = false; - - /** - * AWSKinesisReadArgs readLatest. - * @member {boolean} readLatest - * @memberof protos.args.AWSKinesisReadArgs - * @instance - */ - AWSKinesisReadArgs.prototype.readLatest = false; - - /** - * Creates a new AWSKinesisReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.AWSKinesisReadArgs - * @static - * @param {protos.args.IAWSKinesisReadArgs=} [properties] Properties to set - * @returns {protos.args.AWSKinesisReadArgs} AWSKinesisReadArgs instance - */ - AWSKinesisReadArgs.create = function create(properties) { - return new AWSKinesisReadArgs(properties); - }; - - /** - * Encodes the specified AWSKinesisReadArgs message. Does not implicitly {@link protos.args.AWSKinesisReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.AWSKinesisReadArgs - * @static - * @param {protos.args.IAWSKinesisReadArgs} message AWSKinesisReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSKinesisReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stream != null && Object.hasOwnProperty.call(message, "stream")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stream); - if (message.shard != null && Object.hasOwnProperty.call(message, "shard")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shard); - if (message.maxRecords != null && Object.hasOwnProperty.call(message, "maxRecords")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maxRecords); - if (message.readFromTimestamp != null && Object.hasOwnProperty.call(message, "readFromTimestamp")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.readFromTimestamp); - if (message.readSequenceNumber != null && Object.hasOwnProperty.call(message, "readSequenceNumber")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.readSequenceNumber); - if (message.readAfterSequenceNumber != null && Object.hasOwnProperty.call(message, "readAfterSequenceNumber")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.readAfterSequenceNumber); - if (message.readTrimHorizon != null && Object.hasOwnProperty.call(message, "readTrimHorizon")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.readTrimHorizon); - if (message.readLatest != null && Object.hasOwnProperty.call(message, "readLatest")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.readLatest); - return writer; - }; - - /** - * Encodes the specified AWSKinesisReadArgs message, length delimited. Does not implicitly {@link protos.args.AWSKinesisReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AWSKinesisReadArgs - * @static - * @param {protos.args.IAWSKinesisReadArgs} message AWSKinesisReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSKinesisReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a AWSKinesisReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AWSKinesisReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AWSKinesisReadArgs} AWSKinesisReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSKinesisReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSKinesisReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stream = reader.string(); - break; - case 2: - message.shard = reader.string(); - break; - case 3: - message.maxRecords = reader.int64(); - break; - case 4: - message.readFromTimestamp = reader.int64(); - break; - case 5: - message.readSequenceNumber = reader.string(); - break; - case 6: - message.readAfterSequenceNumber = reader.string(); - break; - case 7: - message.readTrimHorizon = reader.bool(); - break; - case 8: - message.readLatest = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a AWSKinesisReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AWSKinesisReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AWSKinesisReadArgs} AWSKinesisReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSKinesisReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a AWSKinesisReadArgs message. - * @function verify - * @memberof protos.args.AWSKinesisReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AWSKinesisReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isString(message.stream)) - return "stream: string expected"; - if (message.shard != null && message.hasOwnProperty("shard")) - if (!$util.isString(message.shard)) - return "shard: string expected"; - if (message.maxRecords != null && message.hasOwnProperty("maxRecords")) - if (!$util.isInteger(message.maxRecords) && !(message.maxRecords && $util.isInteger(message.maxRecords.low) && $util.isInteger(message.maxRecords.high))) - return "maxRecords: integer|Long expected"; - if (message.readFromTimestamp != null && message.hasOwnProperty("readFromTimestamp")) - if (!$util.isInteger(message.readFromTimestamp) && !(message.readFromTimestamp && $util.isInteger(message.readFromTimestamp.low) && $util.isInteger(message.readFromTimestamp.high))) - return "readFromTimestamp: integer|Long expected"; - if (message.readSequenceNumber != null && message.hasOwnProperty("readSequenceNumber")) - if (!$util.isString(message.readSequenceNumber)) - return "readSequenceNumber: string expected"; - if (message.readAfterSequenceNumber != null && message.hasOwnProperty("readAfterSequenceNumber")) - if (!$util.isString(message.readAfterSequenceNumber)) - return "readAfterSequenceNumber: string expected"; - if (message.readTrimHorizon != null && message.hasOwnProperty("readTrimHorizon")) - if (typeof message.readTrimHorizon !== "boolean") - return "readTrimHorizon: boolean expected"; - if (message.readLatest != null && message.hasOwnProperty("readLatest")) - if (typeof message.readLatest !== "boolean") - return "readLatest: boolean expected"; - return null; - }; - - /** - * Creates a AWSKinesisReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AWSKinesisReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AWSKinesisReadArgs} AWSKinesisReadArgs - */ - AWSKinesisReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AWSKinesisReadArgs) - return object; - var message = new $root.protos.args.AWSKinesisReadArgs(); - if (object.stream != null) - message.stream = String(object.stream); - if (object.shard != null) - message.shard = String(object.shard); - if (object.maxRecords != null) - if ($util.Long) - (message.maxRecords = $util.Long.fromValue(object.maxRecords)).unsigned = false; - else if (typeof object.maxRecords === "string") - message.maxRecords = parseInt(object.maxRecords, 10); - else if (typeof object.maxRecords === "number") - message.maxRecords = object.maxRecords; - else if (typeof object.maxRecords === "object") - message.maxRecords = new $util.LongBits(object.maxRecords.low >>> 0, object.maxRecords.high >>> 0).toNumber(); - if (object.readFromTimestamp != null) - if ($util.Long) - (message.readFromTimestamp = $util.Long.fromValue(object.readFromTimestamp)).unsigned = false; - else if (typeof object.readFromTimestamp === "string") - message.readFromTimestamp = parseInt(object.readFromTimestamp, 10); - else if (typeof object.readFromTimestamp === "number") - message.readFromTimestamp = object.readFromTimestamp; - else if (typeof object.readFromTimestamp === "object") - message.readFromTimestamp = new $util.LongBits(object.readFromTimestamp.low >>> 0, object.readFromTimestamp.high >>> 0).toNumber(); - if (object.readSequenceNumber != null) - message.readSequenceNumber = String(object.readSequenceNumber); - if (object.readAfterSequenceNumber != null) - message.readAfterSequenceNumber = String(object.readAfterSequenceNumber); - if (object.readTrimHorizon != null) - message.readTrimHorizon = Boolean(object.readTrimHorizon); - if (object.readLatest != null) - message.readLatest = Boolean(object.readLatest); - return message; - }; - - /** - * Creates a plain object from a AWSKinesisReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AWSKinesisReadArgs - * @static - * @param {protos.args.AWSKinesisReadArgs} message AWSKinesisReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AWSKinesisReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.stream = ""; - object.shard = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maxRecords = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxRecords = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.readFromTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.readFromTimestamp = options.longs === String ? "0" : 0; - object.readSequenceNumber = ""; - object.readAfterSequenceNumber = ""; - object.readTrimHorizon = false; - object.readLatest = false; - } - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - if (message.shard != null && message.hasOwnProperty("shard")) - object.shard = message.shard; - if (message.maxRecords != null && message.hasOwnProperty("maxRecords")) - if (typeof message.maxRecords === "number") - object.maxRecords = options.longs === String ? String(message.maxRecords) : message.maxRecords; - else - object.maxRecords = options.longs === String ? $util.Long.prototype.toString.call(message.maxRecords) : options.longs === Number ? new $util.LongBits(message.maxRecords.low >>> 0, message.maxRecords.high >>> 0).toNumber() : message.maxRecords; - if (message.readFromTimestamp != null && message.hasOwnProperty("readFromTimestamp")) - if (typeof message.readFromTimestamp === "number") - object.readFromTimestamp = options.longs === String ? String(message.readFromTimestamp) : message.readFromTimestamp; - else - object.readFromTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.readFromTimestamp) : options.longs === Number ? new $util.LongBits(message.readFromTimestamp.low >>> 0, message.readFromTimestamp.high >>> 0).toNumber() : message.readFromTimestamp; - if (message.readSequenceNumber != null && message.hasOwnProperty("readSequenceNumber")) - object.readSequenceNumber = message.readSequenceNumber; - if (message.readAfterSequenceNumber != null && message.hasOwnProperty("readAfterSequenceNumber")) - object.readAfterSequenceNumber = message.readAfterSequenceNumber; - if (message.readTrimHorizon != null && message.hasOwnProperty("readTrimHorizon")) - object.readTrimHorizon = message.readTrimHorizon; - if (message.readLatest != null && message.hasOwnProperty("readLatest")) - object.readLatest = message.readLatest; - return object; - }; - - /** - * Converts this AWSKinesisReadArgs to JSON. - * @function toJSON - * @memberof protos.args.AWSKinesisReadArgs - * @instance - * @returns {Object.} JSON object - */ - AWSKinesisReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AWSKinesisReadArgs; - })(); - - args.AWSKinesisWriteArgs = (function() { - - /** - * Properties of a AWSKinesisWriteArgs. - * @memberof protos.args - * @interface IAWSKinesisWriteArgs - * @property {string|null} [stream] AWSKinesisWriteArgs stream - * @property {string|null} [partitionKey] AWSKinesisWriteArgs partitionKey - * @property {string|null} [sequenceNumber] AWSKinesisWriteArgs sequenceNumber - */ - - /** - * Constructs a new AWSKinesisWriteArgs. - * @memberof protos.args - * @classdesc Represents a AWSKinesisWriteArgs. - * @implements IAWSKinesisWriteArgs - * @constructor - * @param {protos.args.IAWSKinesisWriteArgs=} [properties] Properties to set - */ - function AWSKinesisWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AWSKinesisWriteArgs stream. - * @member {string} stream - * @memberof protos.args.AWSKinesisWriteArgs - * @instance - */ - AWSKinesisWriteArgs.prototype.stream = ""; - - /** - * AWSKinesisWriteArgs partitionKey. - * @member {string} partitionKey - * @memberof protos.args.AWSKinesisWriteArgs - * @instance - */ - AWSKinesisWriteArgs.prototype.partitionKey = ""; - - /** - * AWSKinesisWriteArgs sequenceNumber. - * @member {string} sequenceNumber - * @memberof protos.args.AWSKinesisWriteArgs - * @instance - */ - AWSKinesisWriteArgs.prototype.sequenceNumber = ""; - - /** - * Creates a new AWSKinesisWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.AWSKinesisWriteArgs - * @static - * @param {protos.args.IAWSKinesisWriteArgs=} [properties] Properties to set - * @returns {protos.args.AWSKinesisWriteArgs} AWSKinesisWriteArgs instance - */ - AWSKinesisWriteArgs.create = function create(properties) { - return new AWSKinesisWriteArgs(properties); - }; - - /** - * Encodes the specified AWSKinesisWriteArgs message. Does not implicitly {@link protos.args.AWSKinesisWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.AWSKinesisWriteArgs - * @static - * @param {protos.args.IAWSKinesisWriteArgs} message AWSKinesisWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSKinesisWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stream != null && Object.hasOwnProperty.call(message, "stream")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stream); - if (message.partitionKey != null && Object.hasOwnProperty.call(message, "partitionKey")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.partitionKey); - if (message.sequenceNumber != null && Object.hasOwnProperty.call(message, "sequenceNumber")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.sequenceNumber); - return writer; - }; - - /** - * Encodes the specified AWSKinesisWriteArgs message, length delimited. Does not implicitly {@link protos.args.AWSKinesisWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AWSKinesisWriteArgs - * @static - * @param {protos.args.IAWSKinesisWriteArgs} message AWSKinesisWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSKinesisWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a AWSKinesisWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AWSKinesisWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AWSKinesisWriteArgs} AWSKinesisWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSKinesisWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSKinesisWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stream = reader.string(); - break; - case 2: - message.partitionKey = reader.string(); - break; - case 3: - message.sequenceNumber = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a AWSKinesisWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AWSKinesisWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AWSKinesisWriteArgs} AWSKinesisWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSKinesisWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a AWSKinesisWriteArgs message. - * @function verify - * @memberof protos.args.AWSKinesisWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AWSKinesisWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isString(message.stream)) - return "stream: string expected"; - if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) - if (!$util.isString(message.partitionKey)) - return "partitionKey: string expected"; - if (message.sequenceNumber != null && message.hasOwnProperty("sequenceNumber")) - if (!$util.isString(message.sequenceNumber)) - return "sequenceNumber: string expected"; - return null; - }; - - /** - * Creates a AWSKinesisWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AWSKinesisWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AWSKinesisWriteArgs} AWSKinesisWriteArgs - */ - AWSKinesisWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AWSKinesisWriteArgs) - return object; - var message = new $root.protos.args.AWSKinesisWriteArgs(); - if (object.stream != null) - message.stream = String(object.stream); - if (object.partitionKey != null) - message.partitionKey = String(object.partitionKey); - if (object.sequenceNumber != null) - message.sequenceNumber = String(object.sequenceNumber); - return message; - }; - - /** - * Creates a plain object from a AWSKinesisWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AWSKinesisWriteArgs - * @static - * @param {protos.args.AWSKinesisWriteArgs} message AWSKinesisWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AWSKinesisWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.stream = ""; - object.partitionKey = ""; - object.sequenceNumber = ""; - } - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) - object.partitionKey = message.partitionKey; - if (message.sequenceNumber != null && message.hasOwnProperty("sequenceNumber")) - object.sequenceNumber = message.sequenceNumber; - return object; - }; - - /** - * Converts this AWSKinesisWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.AWSKinesisWriteArgs - * @instance - * @returns {Object.} JSON object - */ - AWSKinesisWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AWSKinesisWriteArgs; - })(); - - args.AWSSNSConn = (function() { - - /** - * Properties of a AWSSNSConn. - * @memberof protos.args - * @interface IAWSSNSConn - * @property {string|null} [awsRegion] AWSSNSConn awsRegion - * @property {string|null} [awsAccessKeyId] AWSSNSConn awsAccessKeyId - * @property {string|null} [awsSecretAccessKey] AWSSNSConn awsSecretAccessKey - * @property {string|null} [awsProfile] AWSSNSConn awsProfile - */ - - /** - * Constructs a new AWSSNSConn. - * @memberof protos.args - * @classdesc Represents a AWSSNSConn. - * @implements IAWSSNSConn - * @constructor - * @param {protos.args.IAWSSNSConn=} [properties] Properties to set - */ - function AWSSNSConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AWSSNSConn awsRegion. - * @member {string} awsRegion - * @memberof protos.args.AWSSNSConn - * @instance - */ - AWSSNSConn.prototype.awsRegion = ""; - - /** - * AWSSNSConn awsAccessKeyId. - * @member {string} awsAccessKeyId - * @memberof protos.args.AWSSNSConn - * @instance - */ - AWSSNSConn.prototype.awsAccessKeyId = ""; - - /** - * AWSSNSConn awsSecretAccessKey. - * @member {string} awsSecretAccessKey - * @memberof protos.args.AWSSNSConn - * @instance - */ - AWSSNSConn.prototype.awsSecretAccessKey = ""; - - /** - * AWSSNSConn awsProfile. - * @member {string} awsProfile - * @memberof protos.args.AWSSNSConn - * @instance - */ - AWSSNSConn.prototype.awsProfile = ""; - - /** - * Creates a new AWSSNSConn instance using the specified properties. - * @function create - * @memberof protos.args.AWSSNSConn - * @static - * @param {protos.args.IAWSSNSConn=} [properties] Properties to set - * @returns {protos.args.AWSSNSConn} AWSSNSConn instance - */ - AWSSNSConn.create = function create(properties) { - return new AWSSNSConn(properties); - }; - - /** - * Encodes the specified AWSSNSConn message. Does not implicitly {@link protos.args.AWSSNSConn.verify|verify} messages. - * @function encode - * @memberof protos.args.AWSSNSConn - * @static - * @param {protos.args.IAWSSNSConn} message AWSSNSConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSSNSConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.awsRegion != null && Object.hasOwnProperty.call(message, "awsRegion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.awsRegion); - if (message.awsAccessKeyId != null && Object.hasOwnProperty.call(message, "awsAccessKeyId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.awsAccessKeyId); - if (message.awsSecretAccessKey != null && Object.hasOwnProperty.call(message, "awsSecretAccessKey")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.awsSecretAccessKey); - if (message.awsProfile != null && Object.hasOwnProperty.call(message, "awsProfile")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.awsProfile); - return writer; - }; - - /** - * Encodes the specified AWSSNSConn message, length delimited. Does not implicitly {@link protos.args.AWSSNSConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AWSSNSConn - * @static - * @param {protos.args.IAWSSNSConn} message AWSSNSConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSSNSConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a AWSSNSConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AWSSNSConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AWSSNSConn} AWSSNSConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSSNSConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSSNSConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.awsRegion = reader.string(); - break; - case 2: - message.awsAccessKeyId = reader.string(); - break; - case 3: - message.awsSecretAccessKey = reader.string(); - break; - case 4: - message.awsProfile = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a AWSSNSConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AWSSNSConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AWSSNSConn} AWSSNSConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSSNSConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a AWSSNSConn message. - * @function verify - * @memberof protos.args.AWSSNSConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AWSSNSConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.awsRegion != null && message.hasOwnProperty("awsRegion")) - if (!$util.isString(message.awsRegion)) - return "awsRegion: string expected"; - if (message.awsAccessKeyId != null && message.hasOwnProperty("awsAccessKeyId")) - if (!$util.isString(message.awsAccessKeyId)) - return "awsAccessKeyId: string expected"; - if (message.awsSecretAccessKey != null && message.hasOwnProperty("awsSecretAccessKey")) - if (!$util.isString(message.awsSecretAccessKey)) - return "awsSecretAccessKey: string expected"; - if (message.awsProfile != null && message.hasOwnProperty("awsProfile")) - if (!$util.isString(message.awsProfile)) - return "awsProfile: string expected"; - return null; - }; - - /** - * Creates a AWSSNSConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AWSSNSConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AWSSNSConn} AWSSNSConn - */ - AWSSNSConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AWSSNSConn) - return object; - var message = new $root.protos.args.AWSSNSConn(); - if (object.awsRegion != null) - message.awsRegion = String(object.awsRegion); - if (object.awsAccessKeyId != null) - message.awsAccessKeyId = String(object.awsAccessKeyId); - if (object.awsSecretAccessKey != null) - message.awsSecretAccessKey = String(object.awsSecretAccessKey); - if (object.awsProfile != null) - message.awsProfile = String(object.awsProfile); - return message; - }; - - /** - * Creates a plain object from a AWSSNSConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AWSSNSConn - * @static - * @param {protos.args.AWSSNSConn} message AWSSNSConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AWSSNSConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.awsRegion = ""; - object.awsAccessKeyId = ""; - object.awsSecretAccessKey = ""; - object.awsProfile = ""; - } - if (message.awsRegion != null && message.hasOwnProperty("awsRegion")) - object.awsRegion = message.awsRegion; - if (message.awsAccessKeyId != null && message.hasOwnProperty("awsAccessKeyId")) - object.awsAccessKeyId = message.awsAccessKeyId; - if (message.awsSecretAccessKey != null && message.hasOwnProperty("awsSecretAccessKey")) - object.awsSecretAccessKey = message.awsSecretAccessKey; - if (message.awsProfile != null && message.hasOwnProperty("awsProfile")) - object.awsProfile = message.awsProfile; - return object; - }; - - /** - * Converts this AWSSNSConn to JSON. - * @function toJSON - * @memberof protos.args.AWSSNSConn - * @instance - * @returns {Object.} JSON object - */ - AWSSNSConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AWSSNSConn; - })(); - - args.AWSSNSWriteArgs = (function() { - - /** - * Properties of a AWSSNSWriteArgs. - * @memberof protos.args - * @interface IAWSSNSWriteArgs - * @property {string|null} [topic] AWSSNSWriteArgs topic - */ - - /** - * Constructs a new AWSSNSWriteArgs. - * @memberof protos.args - * @classdesc Represents a AWSSNSWriteArgs. - * @implements IAWSSNSWriteArgs - * @constructor - * @param {protos.args.IAWSSNSWriteArgs=} [properties] Properties to set - */ - function AWSSNSWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AWSSNSWriteArgs topic. - * @member {string} topic - * @memberof protos.args.AWSSNSWriteArgs - * @instance - */ - AWSSNSWriteArgs.prototype.topic = ""; - - /** - * Creates a new AWSSNSWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.AWSSNSWriteArgs - * @static - * @param {protos.args.IAWSSNSWriteArgs=} [properties] Properties to set - * @returns {protos.args.AWSSNSWriteArgs} AWSSNSWriteArgs instance - */ - AWSSNSWriteArgs.create = function create(properties) { - return new AWSSNSWriteArgs(properties); - }; - - /** - * Encodes the specified AWSSNSWriteArgs message. Does not implicitly {@link protos.args.AWSSNSWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.AWSSNSWriteArgs - * @static - * @param {protos.args.IAWSSNSWriteArgs} message AWSSNSWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSSNSWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); - return writer; - }; - - /** - * Encodes the specified AWSSNSWriteArgs message, length delimited. Does not implicitly {@link protos.args.AWSSNSWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AWSSNSWriteArgs - * @static - * @param {protos.args.IAWSSNSWriteArgs} message AWSSNSWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSSNSWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a AWSSNSWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AWSSNSWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AWSSNSWriteArgs} AWSSNSWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSSNSWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSSNSWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.topic = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a AWSSNSWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AWSSNSWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AWSSNSWriteArgs} AWSSNSWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSSNSWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a AWSSNSWriteArgs message. - * @function verify - * @memberof protos.args.AWSSNSWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AWSSNSWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.topic != null && message.hasOwnProperty("topic")) - if (!$util.isString(message.topic)) - return "topic: string expected"; - return null; - }; - - /** - * Creates a AWSSNSWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AWSSNSWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AWSSNSWriteArgs} AWSSNSWriteArgs - */ - AWSSNSWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AWSSNSWriteArgs) - return object; - var message = new $root.protos.args.AWSSNSWriteArgs(); - if (object.topic != null) - message.topic = String(object.topic); - return message; - }; - - /** - * Creates a plain object from a AWSSNSWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AWSSNSWriteArgs - * @static - * @param {protos.args.AWSSNSWriteArgs} message AWSSNSWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AWSSNSWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.topic = ""; - if (message.topic != null && message.hasOwnProperty("topic")) - object.topic = message.topic; - return object; - }; - - /** - * Converts this AWSSNSWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.AWSSNSWriteArgs - * @instance - * @returns {Object.} JSON object - */ - AWSSNSWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AWSSNSWriteArgs; - })(); - - args.AWSSQSConn = (function() { - - /** - * Properties of a AWSSQSConn. - * @memberof protos.args - * @interface IAWSSQSConn - * @property {string|null} [awsRegion] AWSSQSConn awsRegion - * @property {string|null} [awsAccessKeyId] AWSSQSConn awsAccessKeyId - * @property {string|null} [awsSecretAccessKey] AWSSQSConn awsSecretAccessKey - * @property {string|null} [awsProfile] AWSSQSConn awsProfile - */ - - /** - * Constructs a new AWSSQSConn. - * @memberof protos.args - * @classdesc Represents a AWSSQSConn. - * @implements IAWSSQSConn - * @constructor - * @param {protos.args.IAWSSQSConn=} [properties] Properties to set - */ - function AWSSQSConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AWSSQSConn awsRegion. - * @member {string} awsRegion - * @memberof protos.args.AWSSQSConn - * @instance - */ - AWSSQSConn.prototype.awsRegion = ""; - - /** - * AWSSQSConn awsAccessKeyId. - * @member {string} awsAccessKeyId - * @memberof protos.args.AWSSQSConn - * @instance - */ - AWSSQSConn.prototype.awsAccessKeyId = ""; - - /** - * AWSSQSConn awsSecretAccessKey. - * @member {string} awsSecretAccessKey - * @memberof protos.args.AWSSQSConn - * @instance - */ - AWSSQSConn.prototype.awsSecretAccessKey = ""; - - /** - * AWSSQSConn awsProfile. - * @member {string} awsProfile - * @memberof protos.args.AWSSQSConn - * @instance - */ - AWSSQSConn.prototype.awsProfile = ""; - - /** - * Creates a new AWSSQSConn instance using the specified properties. - * @function create - * @memberof protos.args.AWSSQSConn - * @static - * @param {protos.args.IAWSSQSConn=} [properties] Properties to set - * @returns {protos.args.AWSSQSConn} AWSSQSConn instance - */ - AWSSQSConn.create = function create(properties) { - return new AWSSQSConn(properties); - }; - - /** - * Encodes the specified AWSSQSConn message. Does not implicitly {@link protos.args.AWSSQSConn.verify|verify} messages. - * @function encode - * @memberof protos.args.AWSSQSConn - * @static - * @param {protos.args.IAWSSQSConn} message AWSSQSConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSSQSConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.awsRegion != null && Object.hasOwnProperty.call(message, "awsRegion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.awsRegion); - if (message.awsAccessKeyId != null && Object.hasOwnProperty.call(message, "awsAccessKeyId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.awsAccessKeyId); - if (message.awsSecretAccessKey != null && Object.hasOwnProperty.call(message, "awsSecretAccessKey")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.awsSecretAccessKey); - if (message.awsProfile != null && Object.hasOwnProperty.call(message, "awsProfile")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.awsProfile); - return writer; - }; - - /** - * Encodes the specified AWSSQSConn message, length delimited. Does not implicitly {@link protos.args.AWSSQSConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AWSSQSConn - * @static - * @param {protos.args.IAWSSQSConn} message AWSSQSConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSSQSConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a AWSSQSConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AWSSQSConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AWSSQSConn} AWSSQSConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSSQSConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSSQSConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.awsRegion = reader.string(); - break; - case 2: - message.awsAccessKeyId = reader.string(); - break; - case 3: - message.awsSecretAccessKey = reader.string(); - break; - case 4: - message.awsProfile = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a AWSSQSConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AWSSQSConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AWSSQSConn} AWSSQSConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSSQSConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a AWSSQSConn message. - * @function verify - * @memberof protos.args.AWSSQSConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AWSSQSConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.awsRegion != null && message.hasOwnProperty("awsRegion")) - if (!$util.isString(message.awsRegion)) - return "awsRegion: string expected"; - if (message.awsAccessKeyId != null && message.hasOwnProperty("awsAccessKeyId")) - if (!$util.isString(message.awsAccessKeyId)) - return "awsAccessKeyId: string expected"; - if (message.awsSecretAccessKey != null && message.hasOwnProperty("awsSecretAccessKey")) - if (!$util.isString(message.awsSecretAccessKey)) - return "awsSecretAccessKey: string expected"; - if (message.awsProfile != null && message.hasOwnProperty("awsProfile")) - if (!$util.isString(message.awsProfile)) - return "awsProfile: string expected"; - return null; - }; - - /** - * Creates a AWSSQSConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AWSSQSConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AWSSQSConn} AWSSQSConn - */ - AWSSQSConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AWSSQSConn) - return object; - var message = new $root.protos.args.AWSSQSConn(); - if (object.awsRegion != null) - message.awsRegion = String(object.awsRegion); - if (object.awsAccessKeyId != null) - message.awsAccessKeyId = String(object.awsAccessKeyId); - if (object.awsSecretAccessKey != null) - message.awsSecretAccessKey = String(object.awsSecretAccessKey); - if (object.awsProfile != null) - message.awsProfile = String(object.awsProfile); - return message; - }; - - /** - * Creates a plain object from a AWSSQSConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AWSSQSConn - * @static - * @param {protos.args.AWSSQSConn} message AWSSQSConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AWSSQSConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.awsRegion = ""; - object.awsAccessKeyId = ""; - object.awsSecretAccessKey = ""; - object.awsProfile = ""; - } - if (message.awsRegion != null && message.hasOwnProperty("awsRegion")) - object.awsRegion = message.awsRegion; - if (message.awsAccessKeyId != null && message.hasOwnProperty("awsAccessKeyId")) - object.awsAccessKeyId = message.awsAccessKeyId; - if (message.awsSecretAccessKey != null && message.hasOwnProperty("awsSecretAccessKey")) - object.awsSecretAccessKey = message.awsSecretAccessKey; - if (message.awsProfile != null && message.hasOwnProperty("awsProfile")) - object.awsProfile = message.awsProfile; - return object; - }; - - /** - * Converts this AWSSQSConn to JSON. - * @function toJSON - * @memberof protos.args.AWSSQSConn - * @instance - * @returns {Object.} JSON object - */ - AWSSQSConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AWSSQSConn; - })(); - - args.AWSSQSReadArgs = (function() { - - /** - * Properties of a AWSSQSReadArgs. - * @memberof protos.args - * @interface IAWSSQSReadArgs - * @property {string|null} [queueName] AWSSQSReadArgs queueName - * @property {string|null} [remoteAccountId] AWSSQSReadArgs remoteAccountId - * @property {number|Long|null} [maxNumMessages] AWSSQSReadArgs maxNumMessages - * @property {string|null} [receiveRequestAttemptId] AWSSQSReadArgs receiveRequestAttemptId - * @property {boolean|null} [autoDelete] AWSSQSReadArgs autoDelete - * @property {number|Long|null} [waitTimeSeconds] AWSSQSReadArgs waitTimeSeconds - */ - - /** - * Constructs a new AWSSQSReadArgs. - * @memberof protos.args - * @classdesc Represents a AWSSQSReadArgs. - * @implements IAWSSQSReadArgs - * @constructor - * @param {protos.args.IAWSSQSReadArgs=} [properties] Properties to set - */ - function AWSSQSReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AWSSQSReadArgs queueName. - * @member {string} queueName - * @memberof protos.args.AWSSQSReadArgs - * @instance - */ - AWSSQSReadArgs.prototype.queueName = ""; - - /** - * AWSSQSReadArgs remoteAccountId. - * @member {string} remoteAccountId - * @memberof protos.args.AWSSQSReadArgs - * @instance - */ - AWSSQSReadArgs.prototype.remoteAccountId = ""; - - /** - * AWSSQSReadArgs maxNumMessages. - * @member {number|Long} maxNumMessages - * @memberof protos.args.AWSSQSReadArgs - * @instance - */ - AWSSQSReadArgs.prototype.maxNumMessages = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * AWSSQSReadArgs receiveRequestAttemptId. - * @member {string} receiveRequestAttemptId - * @memberof protos.args.AWSSQSReadArgs - * @instance - */ - AWSSQSReadArgs.prototype.receiveRequestAttemptId = ""; - - /** - * AWSSQSReadArgs autoDelete. - * @member {boolean} autoDelete - * @memberof protos.args.AWSSQSReadArgs - * @instance - */ - AWSSQSReadArgs.prototype.autoDelete = false; - - /** - * AWSSQSReadArgs waitTimeSeconds. - * @member {number|Long} waitTimeSeconds - * @memberof protos.args.AWSSQSReadArgs - * @instance - */ - AWSSQSReadArgs.prototype.waitTimeSeconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new AWSSQSReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.AWSSQSReadArgs - * @static - * @param {protos.args.IAWSSQSReadArgs=} [properties] Properties to set - * @returns {protos.args.AWSSQSReadArgs} AWSSQSReadArgs instance - */ - AWSSQSReadArgs.create = function create(properties) { - return new AWSSQSReadArgs(properties); - }; - - /** - * Encodes the specified AWSSQSReadArgs message. Does not implicitly {@link protos.args.AWSSQSReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.AWSSQSReadArgs - * @static - * @param {protos.args.IAWSSQSReadArgs} message AWSSQSReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSSQSReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.queueName != null && Object.hasOwnProperty.call(message, "queueName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.queueName); - if (message.remoteAccountId != null && Object.hasOwnProperty.call(message, "remoteAccountId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.remoteAccountId); - if (message.maxNumMessages != null && Object.hasOwnProperty.call(message, "maxNumMessages")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maxNumMessages); - if (message.receiveRequestAttemptId != null && Object.hasOwnProperty.call(message, "receiveRequestAttemptId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.receiveRequestAttemptId); - if (message.autoDelete != null && Object.hasOwnProperty.call(message, "autoDelete")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.autoDelete); - if (message.waitTimeSeconds != null && Object.hasOwnProperty.call(message, "waitTimeSeconds")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.waitTimeSeconds); - return writer; - }; - - /** - * Encodes the specified AWSSQSReadArgs message, length delimited. Does not implicitly {@link protos.args.AWSSQSReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AWSSQSReadArgs - * @static - * @param {protos.args.IAWSSQSReadArgs} message AWSSQSReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSSQSReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a AWSSQSReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AWSSQSReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AWSSQSReadArgs} AWSSQSReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSSQSReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSSQSReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queueName = reader.string(); - break; - case 2: - message.remoteAccountId = reader.string(); - break; - case 3: - message.maxNumMessages = reader.int64(); - break; - case 4: - message.receiveRequestAttemptId = reader.string(); - break; - case 5: - message.autoDelete = reader.bool(); - break; - case 6: - message.waitTimeSeconds = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a AWSSQSReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AWSSQSReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AWSSQSReadArgs} AWSSQSReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSSQSReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a AWSSQSReadArgs message. - * @function verify - * @memberof protos.args.AWSSQSReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AWSSQSReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.queueName != null && message.hasOwnProperty("queueName")) - if (!$util.isString(message.queueName)) - return "queueName: string expected"; - if (message.remoteAccountId != null && message.hasOwnProperty("remoteAccountId")) - if (!$util.isString(message.remoteAccountId)) - return "remoteAccountId: string expected"; - if (message.maxNumMessages != null && message.hasOwnProperty("maxNumMessages")) - if (!$util.isInteger(message.maxNumMessages) && !(message.maxNumMessages && $util.isInteger(message.maxNumMessages.low) && $util.isInteger(message.maxNumMessages.high))) - return "maxNumMessages: integer|Long expected"; - if (message.receiveRequestAttemptId != null && message.hasOwnProperty("receiveRequestAttemptId")) - if (!$util.isString(message.receiveRequestAttemptId)) - return "receiveRequestAttemptId: string expected"; - if (message.autoDelete != null && message.hasOwnProperty("autoDelete")) - if (typeof message.autoDelete !== "boolean") - return "autoDelete: boolean expected"; - if (message.waitTimeSeconds != null && message.hasOwnProperty("waitTimeSeconds")) - if (!$util.isInteger(message.waitTimeSeconds) && !(message.waitTimeSeconds && $util.isInteger(message.waitTimeSeconds.low) && $util.isInteger(message.waitTimeSeconds.high))) - return "waitTimeSeconds: integer|Long expected"; - return null; - }; - - /** - * Creates a AWSSQSReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AWSSQSReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AWSSQSReadArgs} AWSSQSReadArgs - */ - AWSSQSReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AWSSQSReadArgs) - return object; - var message = new $root.protos.args.AWSSQSReadArgs(); - if (object.queueName != null) - message.queueName = String(object.queueName); - if (object.remoteAccountId != null) - message.remoteAccountId = String(object.remoteAccountId); - if (object.maxNumMessages != null) - if ($util.Long) - (message.maxNumMessages = $util.Long.fromValue(object.maxNumMessages)).unsigned = false; - else if (typeof object.maxNumMessages === "string") - message.maxNumMessages = parseInt(object.maxNumMessages, 10); - else if (typeof object.maxNumMessages === "number") - message.maxNumMessages = object.maxNumMessages; - else if (typeof object.maxNumMessages === "object") - message.maxNumMessages = new $util.LongBits(object.maxNumMessages.low >>> 0, object.maxNumMessages.high >>> 0).toNumber(); - if (object.receiveRequestAttemptId != null) - message.receiveRequestAttemptId = String(object.receiveRequestAttemptId); - if (object.autoDelete != null) - message.autoDelete = Boolean(object.autoDelete); - if (object.waitTimeSeconds != null) - if ($util.Long) - (message.waitTimeSeconds = $util.Long.fromValue(object.waitTimeSeconds)).unsigned = false; - else if (typeof object.waitTimeSeconds === "string") - message.waitTimeSeconds = parseInt(object.waitTimeSeconds, 10); - else if (typeof object.waitTimeSeconds === "number") - message.waitTimeSeconds = object.waitTimeSeconds; - else if (typeof object.waitTimeSeconds === "object") - message.waitTimeSeconds = new $util.LongBits(object.waitTimeSeconds.low >>> 0, object.waitTimeSeconds.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a AWSSQSReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AWSSQSReadArgs - * @static - * @param {protos.args.AWSSQSReadArgs} message AWSSQSReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AWSSQSReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.queueName = ""; - object.remoteAccountId = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maxNumMessages = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxNumMessages = options.longs === String ? "0" : 0; - object.receiveRequestAttemptId = ""; - object.autoDelete = false; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.waitTimeSeconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.waitTimeSeconds = options.longs === String ? "0" : 0; - } - if (message.queueName != null && message.hasOwnProperty("queueName")) - object.queueName = message.queueName; - if (message.remoteAccountId != null && message.hasOwnProperty("remoteAccountId")) - object.remoteAccountId = message.remoteAccountId; - if (message.maxNumMessages != null && message.hasOwnProperty("maxNumMessages")) - if (typeof message.maxNumMessages === "number") - object.maxNumMessages = options.longs === String ? String(message.maxNumMessages) : message.maxNumMessages; - else - object.maxNumMessages = options.longs === String ? $util.Long.prototype.toString.call(message.maxNumMessages) : options.longs === Number ? new $util.LongBits(message.maxNumMessages.low >>> 0, message.maxNumMessages.high >>> 0).toNumber() : message.maxNumMessages; - if (message.receiveRequestAttemptId != null && message.hasOwnProperty("receiveRequestAttemptId")) - object.receiveRequestAttemptId = message.receiveRequestAttemptId; - if (message.autoDelete != null && message.hasOwnProperty("autoDelete")) - object.autoDelete = message.autoDelete; - if (message.waitTimeSeconds != null && message.hasOwnProperty("waitTimeSeconds")) - if (typeof message.waitTimeSeconds === "number") - object.waitTimeSeconds = options.longs === String ? String(message.waitTimeSeconds) : message.waitTimeSeconds; - else - object.waitTimeSeconds = options.longs === String ? $util.Long.prototype.toString.call(message.waitTimeSeconds) : options.longs === Number ? new $util.LongBits(message.waitTimeSeconds.low >>> 0, message.waitTimeSeconds.high >>> 0).toNumber() : message.waitTimeSeconds; - return object; - }; - - /** - * Converts this AWSSQSReadArgs to JSON. - * @function toJSON - * @memberof protos.args.AWSSQSReadArgs - * @instance - * @returns {Object.} JSON object - */ - AWSSQSReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AWSSQSReadArgs; - })(); - - args.AWSSQSWriteArgs = (function() { - - /** - * Properties of a AWSSQSWriteArgs. - * @memberof protos.args - * @interface IAWSSQSWriteArgs - * @property {string|null} [queueName] AWSSQSWriteArgs queueName - * @property {string|null} [remoteAccountId] AWSSQSWriteArgs remoteAccountId - * @property {number|Long|null} [delaySeconds] AWSSQSWriteArgs delaySeconds - * @property {Object.|null} [attributes] AWSSQSWriteArgs attributes - * @property {string|null} [messageGroupId] AWSSQSWriteArgs messageGroupId - * @property {string|null} [messageDeduplicationId] AWSSQSWriteArgs messageDeduplicationId - */ - - /** - * Constructs a new AWSSQSWriteArgs. - * @memberof protos.args - * @classdesc Represents a AWSSQSWriteArgs. - * @implements IAWSSQSWriteArgs - * @constructor - * @param {protos.args.IAWSSQSWriteArgs=} [properties] Properties to set - */ - function AWSSQSWriteArgs(properties) { - this.attributes = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AWSSQSWriteArgs queueName. - * @member {string} queueName - * @memberof protos.args.AWSSQSWriteArgs - * @instance - */ - AWSSQSWriteArgs.prototype.queueName = ""; - - /** - * AWSSQSWriteArgs remoteAccountId. - * @member {string} remoteAccountId - * @memberof protos.args.AWSSQSWriteArgs - * @instance - */ - AWSSQSWriteArgs.prototype.remoteAccountId = ""; - - /** - * AWSSQSWriteArgs delaySeconds. - * @member {number|Long} delaySeconds - * @memberof protos.args.AWSSQSWriteArgs - * @instance - */ - AWSSQSWriteArgs.prototype.delaySeconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * AWSSQSWriteArgs attributes. - * @member {Object.} attributes - * @memberof protos.args.AWSSQSWriteArgs - * @instance - */ - AWSSQSWriteArgs.prototype.attributes = $util.emptyObject; - - /** - * AWSSQSWriteArgs messageGroupId. - * @member {string} messageGroupId - * @memberof protos.args.AWSSQSWriteArgs - * @instance - */ - AWSSQSWriteArgs.prototype.messageGroupId = ""; - - /** - * AWSSQSWriteArgs messageDeduplicationId. - * @member {string} messageDeduplicationId - * @memberof protos.args.AWSSQSWriteArgs - * @instance - */ - AWSSQSWriteArgs.prototype.messageDeduplicationId = ""; - - /** - * Creates a new AWSSQSWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.AWSSQSWriteArgs - * @static - * @param {protos.args.IAWSSQSWriteArgs=} [properties] Properties to set - * @returns {protos.args.AWSSQSWriteArgs} AWSSQSWriteArgs instance - */ - AWSSQSWriteArgs.create = function create(properties) { - return new AWSSQSWriteArgs(properties); - }; - - /** - * Encodes the specified AWSSQSWriteArgs message. Does not implicitly {@link protos.args.AWSSQSWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.AWSSQSWriteArgs - * @static - * @param {protos.args.IAWSSQSWriteArgs} message AWSSQSWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSSQSWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.queueName != null && Object.hasOwnProperty.call(message, "queueName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.queueName); - if (message.remoteAccountId != null && Object.hasOwnProperty.call(message, "remoteAccountId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.remoteAccountId); - if (message.delaySeconds != null && Object.hasOwnProperty.call(message, "delaySeconds")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.delaySeconds); - if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes")) - for (var keys = Object.keys(message.attributes), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.attributes[keys[i]]).ldelim(); - if (message.messageGroupId != null && Object.hasOwnProperty.call(message, "messageGroupId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.messageGroupId); - if (message.messageDeduplicationId != null && Object.hasOwnProperty.call(message, "messageDeduplicationId")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.messageDeduplicationId); - return writer; - }; - - /** - * Encodes the specified AWSSQSWriteArgs message, length delimited. Does not implicitly {@link protos.args.AWSSQSWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AWSSQSWriteArgs - * @static - * @param {protos.args.IAWSSQSWriteArgs} message AWSSQSWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSSQSWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a AWSSQSWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AWSSQSWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AWSSQSWriteArgs} AWSSQSWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSSQSWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSSQSWriteArgs(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queueName = reader.string(); - break; - case 2: - message.remoteAccountId = reader.string(); - break; - case 3: - message.delaySeconds = reader.int64(); - break; - case 4: - if (message.attributes === $util.emptyObject) - message.attributes = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.attributes[key] = value; - break; - case 5: - message.messageGroupId = reader.string(); - break; - case 6: - message.messageDeduplicationId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a AWSSQSWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AWSSQSWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AWSSQSWriteArgs} AWSSQSWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSSQSWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a AWSSQSWriteArgs message. - * @function verify - * @memberof protos.args.AWSSQSWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AWSSQSWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.queueName != null && message.hasOwnProperty("queueName")) - if (!$util.isString(message.queueName)) - return "queueName: string expected"; - if (message.remoteAccountId != null && message.hasOwnProperty("remoteAccountId")) - if (!$util.isString(message.remoteAccountId)) - return "remoteAccountId: string expected"; - if (message.delaySeconds != null && message.hasOwnProperty("delaySeconds")) - if (!$util.isInteger(message.delaySeconds) && !(message.delaySeconds && $util.isInteger(message.delaySeconds.low) && $util.isInteger(message.delaySeconds.high))) - return "delaySeconds: integer|Long expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - if (!$util.isObject(message.attributes)) - return "attributes: object expected"; - var key = Object.keys(message.attributes); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.attributes[key[i]])) - return "attributes: string{k:string} expected"; - } - if (message.messageGroupId != null && message.hasOwnProperty("messageGroupId")) - if (!$util.isString(message.messageGroupId)) - return "messageGroupId: string expected"; - if (message.messageDeduplicationId != null && message.hasOwnProperty("messageDeduplicationId")) - if (!$util.isString(message.messageDeduplicationId)) - return "messageDeduplicationId: string expected"; - return null; - }; - - /** - * Creates a AWSSQSWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AWSSQSWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AWSSQSWriteArgs} AWSSQSWriteArgs - */ - AWSSQSWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AWSSQSWriteArgs) - return object; - var message = new $root.protos.args.AWSSQSWriteArgs(); - if (object.queueName != null) - message.queueName = String(object.queueName); - if (object.remoteAccountId != null) - message.remoteAccountId = String(object.remoteAccountId); - if (object.delaySeconds != null) - if ($util.Long) - (message.delaySeconds = $util.Long.fromValue(object.delaySeconds)).unsigned = false; - else if (typeof object.delaySeconds === "string") - message.delaySeconds = parseInt(object.delaySeconds, 10); - else if (typeof object.delaySeconds === "number") - message.delaySeconds = object.delaySeconds; - else if (typeof object.delaySeconds === "object") - message.delaySeconds = new $util.LongBits(object.delaySeconds.low >>> 0, object.delaySeconds.high >>> 0).toNumber(); - if (object.attributes) { - if (typeof object.attributes !== "object") - throw TypeError(".protos.args.AWSSQSWriteArgs.attributes: object expected"); - message.attributes = {}; - for (var keys = Object.keys(object.attributes), i = 0; i < keys.length; ++i) - message.attributes[keys[i]] = String(object.attributes[keys[i]]); - } - if (object.messageGroupId != null) - message.messageGroupId = String(object.messageGroupId); - if (object.messageDeduplicationId != null) - message.messageDeduplicationId = String(object.messageDeduplicationId); - return message; - }; - - /** - * Creates a plain object from a AWSSQSWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AWSSQSWriteArgs - * @static - * @param {protos.args.AWSSQSWriteArgs} message AWSSQSWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AWSSQSWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.attributes = {}; - if (options.defaults) { - object.queueName = ""; - object.remoteAccountId = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.delaySeconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.delaySeconds = options.longs === String ? "0" : 0; - object.messageGroupId = ""; - object.messageDeduplicationId = ""; - } - if (message.queueName != null && message.hasOwnProperty("queueName")) - object.queueName = message.queueName; - if (message.remoteAccountId != null && message.hasOwnProperty("remoteAccountId")) - object.remoteAccountId = message.remoteAccountId; - if (message.delaySeconds != null && message.hasOwnProperty("delaySeconds")) - if (typeof message.delaySeconds === "number") - object.delaySeconds = options.longs === String ? String(message.delaySeconds) : message.delaySeconds; - else - object.delaySeconds = options.longs === String ? $util.Long.prototype.toString.call(message.delaySeconds) : options.longs === Number ? new $util.LongBits(message.delaySeconds.low >>> 0, message.delaySeconds.high >>> 0).toNumber() : message.delaySeconds; - var keys2; - if (message.attributes && (keys2 = Object.keys(message.attributes)).length) { - object.attributes = {}; - for (var j = 0; j < keys2.length; ++j) - object.attributes[keys2[j]] = message.attributes[keys2[j]]; - } - if (message.messageGroupId != null && message.hasOwnProperty("messageGroupId")) - object.messageGroupId = message.messageGroupId; - if (message.messageDeduplicationId != null && message.hasOwnProperty("messageDeduplicationId")) - object.messageDeduplicationId = message.messageDeduplicationId; - return object; - }; - - /** - * Converts this AWSSQSWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.AWSSQSWriteArgs - * @instance - * @returns {Object.} JSON object - */ - AWSSQSWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AWSSQSWriteArgs; - })(); - - args.AWSSQSRelayArgs = (function() { - - /** - * Properties of a AWSSQSRelayArgs. - * @memberof protos.args - * @interface IAWSSQSRelayArgs - * @property {string|null} [queueName] AWSSQSRelayArgs queueName - * @property {string|null} [remoteAccountId] AWSSQSRelayArgs remoteAccountId - * @property {number|Long|null} [maxNumMessages] AWSSQSRelayArgs maxNumMessages - * @property {string|null} [receiveRequestAttemptId] AWSSQSRelayArgs receiveRequestAttemptId - * @property {boolean|null} [autoDelete] AWSSQSRelayArgs autoDelete - * @property {number|Long|null} [waitTimeSeconds] AWSSQSRelayArgs waitTimeSeconds - */ - - /** - * Constructs a new AWSSQSRelayArgs. - * @memberof protos.args - * @classdesc Represents a AWSSQSRelayArgs. - * @implements IAWSSQSRelayArgs - * @constructor - * @param {protos.args.IAWSSQSRelayArgs=} [properties] Properties to set - */ - function AWSSQSRelayArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AWSSQSRelayArgs queueName. - * @member {string} queueName - * @memberof protos.args.AWSSQSRelayArgs - * @instance - */ - AWSSQSRelayArgs.prototype.queueName = ""; - - /** - * AWSSQSRelayArgs remoteAccountId. - * @member {string} remoteAccountId - * @memberof protos.args.AWSSQSRelayArgs - * @instance - */ - AWSSQSRelayArgs.prototype.remoteAccountId = ""; - - /** - * AWSSQSRelayArgs maxNumMessages. - * @member {number|Long} maxNumMessages - * @memberof protos.args.AWSSQSRelayArgs - * @instance - */ - AWSSQSRelayArgs.prototype.maxNumMessages = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * AWSSQSRelayArgs receiveRequestAttemptId. - * @member {string} receiveRequestAttemptId - * @memberof protos.args.AWSSQSRelayArgs - * @instance - */ - AWSSQSRelayArgs.prototype.receiveRequestAttemptId = ""; - - /** - * AWSSQSRelayArgs autoDelete. - * @member {boolean} autoDelete - * @memberof protos.args.AWSSQSRelayArgs - * @instance - */ - AWSSQSRelayArgs.prototype.autoDelete = false; - - /** - * AWSSQSRelayArgs waitTimeSeconds. - * @member {number|Long} waitTimeSeconds - * @memberof protos.args.AWSSQSRelayArgs - * @instance - */ - AWSSQSRelayArgs.prototype.waitTimeSeconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new AWSSQSRelayArgs instance using the specified properties. - * @function create - * @memberof protos.args.AWSSQSRelayArgs - * @static - * @param {protos.args.IAWSSQSRelayArgs=} [properties] Properties to set - * @returns {protos.args.AWSSQSRelayArgs} AWSSQSRelayArgs instance - */ - AWSSQSRelayArgs.create = function create(properties) { - return new AWSSQSRelayArgs(properties); - }; - - /** - * Encodes the specified AWSSQSRelayArgs message. Does not implicitly {@link protos.args.AWSSQSRelayArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.AWSSQSRelayArgs - * @static - * @param {protos.args.IAWSSQSRelayArgs} message AWSSQSRelayArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSSQSRelayArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.queueName != null && Object.hasOwnProperty.call(message, "queueName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.queueName); - if (message.remoteAccountId != null && Object.hasOwnProperty.call(message, "remoteAccountId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.remoteAccountId); - if (message.maxNumMessages != null && Object.hasOwnProperty.call(message, "maxNumMessages")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maxNumMessages); - if (message.receiveRequestAttemptId != null && Object.hasOwnProperty.call(message, "receiveRequestAttemptId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.receiveRequestAttemptId); - if (message.autoDelete != null && Object.hasOwnProperty.call(message, "autoDelete")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.autoDelete); - if (message.waitTimeSeconds != null && Object.hasOwnProperty.call(message, "waitTimeSeconds")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.waitTimeSeconds); - return writer; - }; - - /** - * Encodes the specified AWSSQSRelayArgs message, length delimited. Does not implicitly {@link protos.args.AWSSQSRelayArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AWSSQSRelayArgs - * @static - * @param {protos.args.IAWSSQSRelayArgs} message AWSSQSRelayArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AWSSQSRelayArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a AWSSQSRelayArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AWSSQSRelayArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AWSSQSRelayArgs} AWSSQSRelayArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSSQSRelayArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AWSSQSRelayArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queueName = reader.string(); - break; - case 2: - message.remoteAccountId = reader.string(); - break; - case 3: - message.maxNumMessages = reader.int64(); - break; - case 4: - message.receiveRequestAttemptId = reader.string(); - break; - case 5: - message.autoDelete = reader.bool(); - break; - case 6: - message.waitTimeSeconds = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a AWSSQSRelayArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AWSSQSRelayArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AWSSQSRelayArgs} AWSSQSRelayArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AWSSQSRelayArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a AWSSQSRelayArgs message. - * @function verify - * @memberof protos.args.AWSSQSRelayArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AWSSQSRelayArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.queueName != null && message.hasOwnProperty("queueName")) - if (!$util.isString(message.queueName)) - return "queueName: string expected"; - if (message.remoteAccountId != null && message.hasOwnProperty("remoteAccountId")) - if (!$util.isString(message.remoteAccountId)) - return "remoteAccountId: string expected"; - if (message.maxNumMessages != null && message.hasOwnProperty("maxNumMessages")) - if (!$util.isInteger(message.maxNumMessages) && !(message.maxNumMessages && $util.isInteger(message.maxNumMessages.low) && $util.isInteger(message.maxNumMessages.high))) - return "maxNumMessages: integer|Long expected"; - if (message.receiveRequestAttemptId != null && message.hasOwnProperty("receiveRequestAttemptId")) - if (!$util.isString(message.receiveRequestAttemptId)) - return "receiveRequestAttemptId: string expected"; - if (message.autoDelete != null && message.hasOwnProperty("autoDelete")) - if (typeof message.autoDelete !== "boolean") - return "autoDelete: boolean expected"; - if (message.waitTimeSeconds != null && message.hasOwnProperty("waitTimeSeconds")) - if (!$util.isInteger(message.waitTimeSeconds) && !(message.waitTimeSeconds && $util.isInteger(message.waitTimeSeconds.low) && $util.isInteger(message.waitTimeSeconds.high))) - return "waitTimeSeconds: integer|Long expected"; - return null; - }; - - /** - * Creates a AWSSQSRelayArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AWSSQSRelayArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AWSSQSRelayArgs} AWSSQSRelayArgs - */ - AWSSQSRelayArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AWSSQSRelayArgs) - return object; - var message = new $root.protos.args.AWSSQSRelayArgs(); - if (object.queueName != null) - message.queueName = String(object.queueName); - if (object.remoteAccountId != null) - message.remoteAccountId = String(object.remoteAccountId); - if (object.maxNumMessages != null) - if ($util.Long) - (message.maxNumMessages = $util.Long.fromValue(object.maxNumMessages)).unsigned = false; - else if (typeof object.maxNumMessages === "string") - message.maxNumMessages = parseInt(object.maxNumMessages, 10); - else if (typeof object.maxNumMessages === "number") - message.maxNumMessages = object.maxNumMessages; - else if (typeof object.maxNumMessages === "object") - message.maxNumMessages = new $util.LongBits(object.maxNumMessages.low >>> 0, object.maxNumMessages.high >>> 0).toNumber(); - if (object.receiveRequestAttemptId != null) - message.receiveRequestAttemptId = String(object.receiveRequestAttemptId); - if (object.autoDelete != null) - message.autoDelete = Boolean(object.autoDelete); - if (object.waitTimeSeconds != null) - if ($util.Long) - (message.waitTimeSeconds = $util.Long.fromValue(object.waitTimeSeconds)).unsigned = false; - else if (typeof object.waitTimeSeconds === "string") - message.waitTimeSeconds = parseInt(object.waitTimeSeconds, 10); - else if (typeof object.waitTimeSeconds === "number") - message.waitTimeSeconds = object.waitTimeSeconds; - else if (typeof object.waitTimeSeconds === "object") - message.waitTimeSeconds = new $util.LongBits(object.waitTimeSeconds.low >>> 0, object.waitTimeSeconds.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from a AWSSQSRelayArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AWSSQSRelayArgs - * @static - * @param {protos.args.AWSSQSRelayArgs} message AWSSQSRelayArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AWSSQSRelayArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.queueName = ""; - object.remoteAccountId = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maxNumMessages = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxNumMessages = options.longs === String ? "0" : 0; - object.receiveRequestAttemptId = ""; - object.autoDelete = false; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.waitTimeSeconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.waitTimeSeconds = options.longs === String ? "0" : 0; - } - if (message.queueName != null && message.hasOwnProperty("queueName")) - object.queueName = message.queueName; - if (message.remoteAccountId != null && message.hasOwnProperty("remoteAccountId")) - object.remoteAccountId = message.remoteAccountId; - if (message.maxNumMessages != null && message.hasOwnProperty("maxNumMessages")) - if (typeof message.maxNumMessages === "number") - object.maxNumMessages = options.longs === String ? String(message.maxNumMessages) : message.maxNumMessages; - else - object.maxNumMessages = options.longs === String ? $util.Long.prototype.toString.call(message.maxNumMessages) : options.longs === Number ? new $util.LongBits(message.maxNumMessages.low >>> 0, message.maxNumMessages.high >>> 0).toNumber() : message.maxNumMessages; - if (message.receiveRequestAttemptId != null && message.hasOwnProperty("receiveRequestAttemptId")) - object.receiveRequestAttemptId = message.receiveRequestAttemptId; - if (message.autoDelete != null && message.hasOwnProperty("autoDelete")) - object.autoDelete = message.autoDelete; - if (message.waitTimeSeconds != null && message.hasOwnProperty("waitTimeSeconds")) - if (typeof message.waitTimeSeconds === "number") - object.waitTimeSeconds = options.longs === String ? String(message.waitTimeSeconds) : message.waitTimeSeconds; - else - object.waitTimeSeconds = options.longs === String ? $util.Long.prototype.toString.call(message.waitTimeSeconds) : options.longs === Number ? new $util.LongBits(message.waitTimeSeconds.low >>> 0, message.waitTimeSeconds.high >>> 0).toNumber() : message.waitTimeSeconds; - return object; - }; - - /** - * Converts this AWSSQSRelayArgs to JSON. - * @function toJSON - * @memberof protos.args.AWSSQSRelayArgs - * @instance - * @returns {Object.} JSON object - */ - AWSSQSRelayArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AWSSQSRelayArgs; - })(); - - args.AzureEventHubConn = (function() { - - /** - * Properties of an AzureEventHubConn. - * @memberof protos.args - * @interface IAzureEventHubConn - * @property {string|null} [connectionString] AzureEventHubConn connectionString - */ - - /** - * Constructs a new AzureEventHubConn. - * @memberof protos.args - * @classdesc Represents an AzureEventHubConn. - * @implements IAzureEventHubConn - * @constructor - * @param {protos.args.IAzureEventHubConn=} [properties] Properties to set - */ - function AzureEventHubConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AzureEventHubConn connectionString. - * @member {string} connectionString - * @memberof protos.args.AzureEventHubConn - * @instance - */ - AzureEventHubConn.prototype.connectionString = ""; - - /** - * Creates a new AzureEventHubConn instance using the specified properties. - * @function create - * @memberof protos.args.AzureEventHubConn - * @static - * @param {protos.args.IAzureEventHubConn=} [properties] Properties to set - * @returns {protos.args.AzureEventHubConn} AzureEventHubConn instance - */ - AzureEventHubConn.create = function create(properties) { - return new AzureEventHubConn(properties); - }; - - /** - * Encodes the specified AzureEventHubConn message. Does not implicitly {@link protos.args.AzureEventHubConn.verify|verify} messages. - * @function encode - * @memberof protos.args.AzureEventHubConn - * @static - * @param {protos.args.IAzureEventHubConn} message AzureEventHubConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AzureEventHubConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.connectionString != null && Object.hasOwnProperty.call(message, "connectionString")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connectionString); - return writer; - }; - - /** - * Encodes the specified AzureEventHubConn message, length delimited. Does not implicitly {@link protos.args.AzureEventHubConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AzureEventHubConn - * @static - * @param {protos.args.IAzureEventHubConn} message AzureEventHubConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AzureEventHubConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AzureEventHubConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AzureEventHubConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AzureEventHubConn} AzureEventHubConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AzureEventHubConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AzureEventHubConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.connectionString = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AzureEventHubConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AzureEventHubConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AzureEventHubConn} AzureEventHubConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AzureEventHubConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AzureEventHubConn message. - * @function verify - * @memberof protos.args.AzureEventHubConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AzureEventHubConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.connectionString != null && message.hasOwnProperty("connectionString")) - if (!$util.isString(message.connectionString)) - return "connectionString: string expected"; - return null; - }; - - /** - * Creates an AzureEventHubConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AzureEventHubConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AzureEventHubConn} AzureEventHubConn - */ - AzureEventHubConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AzureEventHubConn) - return object; - var message = new $root.protos.args.AzureEventHubConn(); - if (object.connectionString != null) - message.connectionString = String(object.connectionString); - return message; - }; - - /** - * Creates a plain object from an AzureEventHubConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AzureEventHubConn - * @static - * @param {protos.args.AzureEventHubConn} message AzureEventHubConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AzureEventHubConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.connectionString = ""; - if (message.connectionString != null && message.hasOwnProperty("connectionString")) - object.connectionString = message.connectionString; - return object; - }; - - /** - * Converts this AzureEventHubConn to JSON. - * @function toJSON - * @memberof protos.args.AzureEventHubConn - * @instance - * @returns {Object.} JSON object - */ - AzureEventHubConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AzureEventHubConn; - })(); - - args.AzureEventHubReadArgs = (function() { - - /** - * Properties of an AzureEventHubReadArgs. - * @memberof protos.args - * @interface IAzureEventHubReadArgs - */ - - /** - * Constructs a new AzureEventHubReadArgs. - * @memberof protos.args - * @classdesc Represents an AzureEventHubReadArgs. - * @implements IAzureEventHubReadArgs - * @constructor - * @param {protos.args.IAzureEventHubReadArgs=} [properties] Properties to set - */ - function AzureEventHubReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new AzureEventHubReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.AzureEventHubReadArgs - * @static - * @param {protos.args.IAzureEventHubReadArgs=} [properties] Properties to set - * @returns {protos.args.AzureEventHubReadArgs} AzureEventHubReadArgs instance - */ - AzureEventHubReadArgs.create = function create(properties) { - return new AzureEventHubReadArgs(properties); - }; - - /** - * Encodes the specified AzureEventHubReadArgs message. Does not implicitly {@link protos.args.AzureEventHubReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.AzureEventHubReadArgs - * @static - * @param {protos.args.IAzureEventHubReadArgs} message AzureEventHubReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AzureEventHubReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified AzureEventHubReadArgs message, length delimited. Does not implicitly {@link protos.args.AzureEventHubReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AzureEventHubReadArgs - * @static - * @param {protos.args.IAzureEventHubReadArgs} message AzureEventHubReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AzureEventHubReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AzureEventHubReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AzureEventHubReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AzureEventHubReadArgs} AzureEventHubReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AzureEventHubReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AzureEventHubReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AzureEventHubReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AzureEventHubReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AzureEventHubReadArgs} AzureEventHubReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AzureEventHubReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AzureEventHubReadArgs message. - * @function verify - * @memberof protos.args.AzureEventHubReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AzureEventHubReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates an AzureEventHubReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AzureEventHubReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AzureEventHubReadArgs} AzureEventHubReadArgs - */ - AzureEventHubReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AzureEventHubReadArgs) - return object; - return new $root.protos.args.AzureEventHubReadArgs(); - }; - - /** - * Creates a plain object from an AzureEventHubReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AzureEventHubReadArgs - * @static - * @param {protos.args.AzureEventHubReadArgs} message AzureEventHubReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AzureEventHubReadArgs.toObject = function toObject() { - return {}; - }; - - /** - * Converts this AzureEventHubReadArgs to JSON. - * @function toJSON - * @memberof protos.args.AzureEventHubReadArgs - * @instance - * @returns {Object.} JSON object - */ - AzureEventHubReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AzureEventHubReadArgs; - })(); - - args.AzureEventHubWriteArgs = (function() { - - /** - * Properties of an AzureEventHubWriteArgs. - * @memberof protos.args - * @interface IAzureEventHubWriteArgs - * @property {string|null} [messageId] AzureEventHubWriteArgs messageId - * @property {string|null} [partitionKey] AzureEventHubWriteArgs partitionKey - */ - - /** - * Constructs a new AzureEventHubWriteArgs. - * @memberof protos.args - * @classdesc Represents an AzureEventHubWriteArgs. - * @implements IAzureEventHubWriteArgs - * @constructor - * @param {protos.args.IAzureEventHubWriteArgs=} [properties] Properties to set - */ - function AzureEventHubWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AzureEventHubWriteArgs messageId. - * @member {string} messageId - * @memberof protos.args.AzureEventHubWriteArgs - * @instance - */ - AzureEventHubWriteArgs.prototype.messageId = ""; - - /** - * AzureEventHubWriteArgs partitionKey. - * @member {string} partitionKey - * @memberof protos.args.AzureEventHubWriteArgs - * @instance - */ - AzureEventHubWriteArgs.prototype.partitionKey = ""; - - /** - * Creates a new AzureEventHubWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.AzureEventHubWriteArgs - * @static - * @param {protos.args.IAzureEventHubWriteArgs=} [properties] Properties to set - * @returns {protos.args.AzureEventHubWriteArgs} AzureEventHubWriteArgs instance - */ - AzureEventHubWriteArgs.create = function create(properties) { - return new AzureEventHubWriteArgs(properties); - }; - - /** - * Encodes the specified AzureEventHubWriteArgs message. Does not implicitly {@link protos.args.AzureEventHubWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.AzureEventHubWriteArgs - * @static - * @param {protos.args.IAzureEventHubWriteArgs} message AzureEventHubWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AzureEventHubWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageId != null && Object.hasOwnProperty.call(message, "messageId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.messageId); - if (message.partitionKey != null && Object.hasOwnProperty.call(message, "partitionKey")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.partitionKey); - return writer; - }; - - /** - * Encodes the specified AzureEventHubWriteArgs message, length delimited. Does not implicitly {@link protos.args.AzureEventHubWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AzureEventHubWriteArgs - * @static - * @param {protos.args.IAzureEventHubWriteArgs} message AzureEventHubWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AzureEventHubWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AzureEventHubWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AzureEventHubWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AzureEventHubWriteArgs} AzureEventHubWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AzureEventHubWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AzureEventHubWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messageId = reader.string(); - break; - case 2: - message.partitionKey = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AzureEventHubWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AzureEventHubWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AzureEventHubWriteArgs} AzureEventHubWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AzureEventHubWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AzureEventHubWriteArgs message. - * @function verify - * @memberof protos.args.AzureEventHubWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AzureEventHubWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageId != null && message.hasOwnProperty("messageId")) - if (!$util.isString(message.messageId)) - return "messageId: string expected"; - if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) - if (!$util.isString(message.partitionKey)) - return "partitionKey: string expected"; - return null; - }; - - /** - * Creates an AzureEventHubWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AzureEventHubWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AzureEventHubWriteArgs} AzureEventHubWriteArgs - */ - AzureEventHubWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AzureEventHubWriteArgs) - return object; - var message = new $root.protos.args.AzureEventHubWriteArgs(); - if (object.messageId != null) - message.messageId = String(object.messageId); - if (object.partitionKey != null) - message.partitionKey = String(object.partitionKey); - return message; - }; - - /** - * Creates a plain object from an AzureEventHubWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AzureEventHubWriteArgs - * @static - * @param {protos.args.AzureEventHubWriteArgs} message AzureEventHubWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AzureEventHubWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.messageId = ""; - object.partitionKey = ""; - } - if (message.messageId != null && message.hasOwnProperty("messageId")) - object.messageId = message.messageId; - if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) - object.partitionKey = message.partitionKey; - return object; - }; - - /** - * Converts this AzureEventHubWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.AzureEventHubWriteArgs - * @instance - * @returns {Object.} JSON object - */ - AzureEventHubWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AzureEventHubWriteArgs; - })(); - - args.AzureServiceBusConn = (function() { - - /** - * Properties of an AzureServiceBusConn. - * @memberof protos.args - * @interface IAzureServiceBusConn - * @property {string|null} [connectionString] AzureServiceBusConn connectionString - */ - - /** - * Constructs a new AzureServiceBusConn. - * @memberof protos.args - * @classdesc Represents an AzureServiceBusConn. - * @implements IAzureServiceBusConn - * @constructor - * @param {protos.args.IAzureServiceBusConn=} [properties] Properties to set - */ - function AzureServiceBusConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AzureServiceBusConn connectionString. - * @member {string} connectionString - * @memberof protos.args.AzureServiceBusConn - * @instance - */ - AzureServiceBusConn.prototype.connectionString = ""; - - /** - * Creates a new AzureServiceBusConn instance using the specified properties. - * @function create - * @memberof protos.args.AzureServiceBusConn - * @static - * @param {protos.args.IAzureServiceBusConn=} [properties] Properties to set - * @returns {protos.args.AzureServiceBusConn} AzureServiceBusConn instance - */ - AzureServiceBusConn.create = function create(properties) { - return new AzureServiceBusConn(properties); - }; - - /** - * Encodes the specified AzureServiceBusConn message. Does not implicitly {@link protos.args.AzureServiceBusConn.verify|verify} messages. - * @function encode - * @memberof protos.args.AzureServiceBusConn - * @static - * @param {protos.args.IAzureServiceBusConn} message AzureServiceBusConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AzureServiceBusConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.connectionString != null && Object.hasOwnProperty.call(message, "connectionString")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.connectionString); - return writer; - }; - - /** - * Encodes the specified AzureServiceBusConn message, length delimited. Does not implicitly {@link protos.args.AzureServiceBusConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AzureServiceBusConn - * @static - * @param {protos.args.IAzureServiceBusConn} message AzureServiceBusConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AzureServiceBusConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AzureServiceBusConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AzureServiceBusConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AzureServiceBusConn} AzureServiceBusConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AzureServiceBusConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AzureServiceBusConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.connectionString = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AzureServiceBusConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AzureServiceBusConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AzureServiceBusConn} AzureServiceBusConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AzureServiceBusConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AzureServiceBusConn message. - * @function verify - * @memberof protos.args.AzureServiceBusConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AzureServiceBusConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.connectionString != null && message.hasOwnProperty("connectionString")) - if (!$util.isString(message.connectionString)) - return "connectionString: string expected"; - return null; - }; - - /** - * Creates an AzureServiceBusConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AzureServiceBusConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AzureServiceBusConn} AzureServiceBusConn - */ - AzureServiceBusConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AzureServiceBusConn) - return object; - var message = new $root.protos.args.AzureServiceBusConn(); - if (object.connectionString != null) - message.connectionString = String(object.connectionString); - return message; - }; - - /** - * Creates a plain object from an AzureServiceBusConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AzureServiceBusConn - * @static - * @param {protos.args.AzureServiceBusConn} message AzureServiceBusConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AzureServiceBusConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.connectionString = ""; - if (message.connectionString != null && message.hasOwnProperty("connectionString")) - object.connectionString = message.connectionString; - return object; - }; - - /** - * Converts this AzureServiceBusConn to JSON. - * @function toJSON - * @memberof protos.args.AzureServiceBusConn - * @instance - * @returns {Object.} JSON object - */ - AzureServiceBusConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AzureServiceBusConn; - })(); - - args.AzureServiceBusReadArgs = (function() { - - /** - * Properties of an AzureServiceBusReadArgs. - * @memberof protos.args - * @interface IAzureServiceBusReadArgs - * @property {string|null} [queue] AzureServiceBusReadArgs queue - * @property {string|null} [topic] AzureServiceBusReadArgs topic - * @property {string|null} [subscriptionName] AzureServiceBusReadArgs subscriptionName - */ - - /** - * Constructs a new AzureServiceBusReadArgs. - * @memberof protos.args - * @classdesc Represents an AzureServiceBusReadArgs. - * @implements IAzureServiceBusReadArgs - * @constructor - * @param {protos.args.IAzureServiceBusReadArgs=} [properties] Properties to set - */ - function AzureServiceBusReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AzureServiceBusReadArgs queue. - * @member {string} queue - * @memberof protos.args.AzureServiceBusReadArgs - * @instance - */ - AzureServiceBusReadArgs.prototype.queue = ""; - - /** - * AzureServiceBusReadArgs topic. - * @member {string} topic - * @memberof protos.args.AzureServiceBusReadArgs - * @instance - */ - AzureServiceBusReadArgs.prototype.topic = ""; - - /** - * AzureServiceBusReadArgs subscriptionName. - * @member {string} subscriptionName - * @memberof protos.args.AzureServiceBusReadArgs - * @instance - */ - AzureServiceBusReadArgs.prototype.subscriptionName = ""; - - /** - * Creates a new AzureServiceBusReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.AzureServiceBusReadArgs - * @static - * @param {protos.args.IAzureServiceBusReadArgs=} [properties] Properties to set - * @returns {protos.args.AzureServiceBusReadArgs} AzureServiceBusReadArgs instance - */ - AzureServiceBusReadArgs.create = function create(properties) { - return new AzureServiceBusReadArgs(properties); - }; - - /** - * Encodes the specified AzureServiceBusReadArgs message. Does not implicitly {@link protos.args.AzureServiceBusReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.AzureServiceBusReadArgs - * @static - * @param {protos.args.IAzureServiceBusReadArgs} message AzureServiceBusReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AzureServiceBusReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.queue != null && Object.hasOwnProperty.call(message, "queue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.queue); - if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.topic); - if (message.subscriptionName != null && Object.hasOwnProperty.call(message, "subscriptionName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.subscriptionName); - return writer; - }; - - /** - * Encodes the specified AzureServiceBusReadArgs message, length delimited. Does not implicitly {@link protos.args.AzureServiceBusReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AzureServiceBusReadArgs - * @static - * @param {protos.args.IAzureServiceBusReadArgs} message AzureServiceBusReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AzureServiceBusReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AzureServiceBusReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AzureServiceBusReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AzureServiceBusReadArgs} AzureServiceBusReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AzureServiceBusReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AzureServiceBusReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queue = reader.string(); - break; - case 2: - message.topic = reader.string(); - break; - case 3: - message.subscriptionName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AzureServiceBusReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AzureServiceBusReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AzureServiceBusReadArgs} AzureServiceBusReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AzureServiceBusReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AzureServiceBusReadArgs message. - * @function verify - * @memberof protos.args.AzureServiceBusReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AzureServiceBusReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.queue != null && message.hasOwnProperty("queue")) - if (!$util.isString(message.queue)) - return "queue: string expected"; - if (message.topic != null && message.hasOwnProperty("topic")) - if (!$util.isString(message.topic)) - return "topic: string expected"; - if (message.subscriptionName != null && message.hasOwnProperty("subscriptionName")) - if (!$util.isString(message.subscriptionName)) - return "subscriptionName: string expected"; - return null; - }; - - /** - * Creates an AzureServiceBusReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AzureServiceBusReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AzureServiceBusReadArgs} AzureServiceBusReadArgs - */ - AzureServiceBusReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AzureServiceBusReadArgs) - return object; - var message = new $root.protos.args.AzureServiceBusReadArgs(); - if (object.queue != null) - message.queue = String(object.queue); - if (object.topic != null) - message.topic = String(object.topic); - if (object.subscriptionName != null) - message.subscriptionName = String(object.subscriptionName); - return message; - }; - - /** - * Creates a plain object from an AzureServiceBusReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AzureServiceBusReadArgs - * @static - * @param {protos.args.AzureServiceBusReadArgs} message AzureServiceBusReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AzureServiceBusReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.queue = ""; - object.topic = ""; - object.subscriptionName = ""; - } - if (message.queue != null && message.hasOwnProperty("queue")) - object.queue = message.queue; - if (message.topic != null && message.hasOwnProperty("topic")) - object.topic = message.topic; - if (message.subscriptionName != null && message.hasOwnProperty("subscriptionName")) - object.subscriptionName = message.subscriptionName; - return object; - }; - - /** - * Converts this AzureServiceBusReadArgs to JSON. - * @function toJSON - * @memberof protos.args.AzureServiceBusReadArgs - * @instance - * @returns {Object.} JSON object - */ - AzureServiceBusReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AzureServiceBusReadArgs; - })(); - - args.AzureServiceBusWriteArgs = (function() { - - /** - * Properties of an AzureServiceBusWriteArgs. - * @memberof protos.args - * @interface IAzureServiceBusWriteArgs - * @property {string|null} [queue] AzureServiceBusWriteArgs queue - * @property {string|null} [topic] AzureServiceBusWriteArgs topic - */ - - /** - * Constructs a new AzureServiceBusWriteArgs. - * @memberof protos.args - * @classdesc Represents an AzureServiceBusWriteArgs. - * @implements IAzureServiceBusWriteArgs - * @constructor - * @param {protos.args.IAzureServiceBusWriteArgs=} [properties] Properties to set - */ - function AzureServiceBusWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AzureServiceBusWriteArgs queue. - * @member {string} queue - * @memberof protos.args.AzureServiceBusWriteArgs - * @instance - */ - AzureServiceBusWriteArgs.prototype.queue = ""; - - /** - * AzureServiceBusWriteArgs topic. - * @member {string} topic - * @memberof protos.args.AzureServiceBusWriteArgs - * @instance - */ - AzureServiceBusWriteArgs.prototype.topic = ""; - - /** - * Creates a new AzureServiceBusWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.AzureServiceBusWriteArgs - * @static - * @param {protos.args.IAzureServiceBusWriteArgs=} [properties] Properties to set - * @returns {protos.args.AzureServiceBusWriteArgs} AzureServiceBusWriteArgs instance - */ - AzureServiceBusWriteArgs.create = function create(properties) { - return new AzureServiceBusWriteArgs(properties); - }; - - /** - * Encodes the specified AzureServiceBusWriteArgs message. Does not implicitly {@link protos.args.AzureServiceBusWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.AzureServiceBusWriteArgs - * @static - * @param {protos.args.IAzureServiceBusWriteArgs} message AzureServiceBusWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AzureServiceBusWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.queue != null && Object.hasOwnProperty.call(message, "queue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.queue); - if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.topic); - return writer; - }; - - /** - * Encodes the specified AzureServiceBusWriteArgs message, length delimited. Does not implicitly {@link protos.args.AzureServiceBusWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.AzureServiceBusWriteArgs - * @static - * @param {protos.args.IAzureServiceBusWriteArgs} message AzureServiceBusWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AzureServiceBusWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AzureServiceBusWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.AzureServiceBusWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.AzureServiceBusWriteArgs} AzureServiceBusWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AzureServiceBusWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.AzureServiceBusWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queue = reader.string(); - break; - case 2: - message.topic = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AzureServiceBusWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.AzureServiceBusWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.AzureServiceBusWriteArgs} AzureServiceBusWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AzureServiceBusWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AzureServiceBusWriteArgs message. - * @function verify - * @memberof protos.args.AzureServiceBusWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AzureServiceBusWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.queue != null && message.hasOwnProperty("queue")) - if (!$util.isString(message.queue)) - return "queue: string expected"; - if (message.topic != null && message.hasOwnProperty("topic")) - if (!$util.isString(message.topic)) - return "topic: string expected"; - return null; - }; - - /** - * Creates an AzureServiceBusWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.AzureServiceBusWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.AzureServiceBusWriteArgs} AzureServiceBusWriteArgs - */ - AzureServiceBusWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.AzureServiceBusWriteArgs) - return object; - var message = new $root.protos.args.AzureServiceBusWriteArgs(); - if (object.queue != null) - message.queue = String(object.queue); - if (object.topic != null) - message.topic = String(object.topic); - return message; - }; - - /** - * Creates a plain object from an AzureServiceBusWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.AzureServiceBusWriteArgs - * @static - * @param {protos.args.AzureServiceBusWriteArgs} message AzureServiceBusWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AzureServiceBusWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.queue = ""; - object.topic = ""; - } - if (message.queue != null && message.hasOwnProperty("queue")) - object.queue = message.queue; - if (message.topic != null && message.hasOwnProperty("topic")) - object.topic = message.topic; - return object; - }; - - /** - * Converts this AzureServiceBusWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.AzureServiceBusWriteArgs - * @instance - * @returns {Object.} JSON object - */ - AzureServiceBusWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return AzureServiceBusWriteArgs; - })(); - - args.GCPPubSubConn = (function() { - - /** - * Properties of a GCPPubSubConn. - * @memberof protos.args - * @interface IGCPPubSubConn - * @property {string|null} [projectId] GCPPubSubConn projectId - * @property {string|null} [credentialsJson] GCPPubSubConn credentialsJson - * @property {string|null} [credentialsFile] GCPPubSubConn credentialsFile - */ - - /** - * Constructs a new GCPPubSubConn. - * @memberof protos.args - * @classdesc Represents a GCPPubSubConn. - * @implements IGCPPubSubConn - * @constructor - * @param {protos.args.IGCPPubSubConn=} [properties] Properties to set - */ - function GCPPubSubConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GCPPubSubConn projectId. - * @member {string} projectId - * @memberof protos.args.GCPPubSubConn - * @instance - */ - GCPPubSubConn.prototype.projectId = ""; - - /** - * GCPPubSubConn credentialsJson. - * @member {string} credentialsJson - * @memberof protos.args.GCPPubSubConn - * @instance - */ - GCPPubSubConn.prototype.credentialsJson = ""; - - /** - * GCPPubSubConn credentialsFile. - * @member {string} credentialsFile - * @memberof protos.args.GCPPubSubConn - * @instance - */ - GCPPubSubConn.prototype.credentialsFile = ""; - - /** - * Creates a new GCPPubSubConn instance using the specified properties. - * @function create - * @memberof protos.args.GCPPubSubConn - * @static - * @param {protos.args.IGCPPubSubConn=} [properties] Properties to set - * @returns {protos.args.GCPPubSubConn} GCPPubSubConn instance - */ - GCPPubSubConn.create = function create(properties) { - return new GCPPubSubConn(properties); - }; - - /** - * Encodes the specified GCPPubSubConn message. Does not implicitly {@link protos.args.GCPPubSubConn.verify|verify} messages. - * @function encode - * @memberof protos.args.GCPPubSubConn - * @static - * @param {protos.args.IGCPPubSubConn} message GCPPubSubConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GCPPubSubConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.credentialsJson != null && Object.hasOwnProperty.call(message, "credentialsJson")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.credentialsJson); - if (message.credentialsFile != null && Object.hasOwnProperty.call(message, "credentialsFile")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.credentialsFile); - return writer; - }; - - /** - * Encodes the specified GCPPubSubConn message, length delimited. Does not implicitly {@link protos.args.GCPPubSubConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.GCPPubSubConn - * @static - * @param {protos.args.IGCPPubSubConn} message GCPPubSubConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GCPPubSubConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GCPPubSubConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.GCPPubSubConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.GCPPubSubConn} GCPPubSubConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GCPPubSubConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.GCPPubSubConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; - case 2: - message.credentialsJson = reader.string(); - break; - case 3: - message.credentialsFile = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GCPPubSubConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.GCPPubSubConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.GCPPubSubConn} GCPPubSubConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GCPPubSubConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GCPPubSubConn message. - * @function verify - * @memberof protos.args.GCPPubSubConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GCPPubSubConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.projectId != null && message.hasOwnProperty("projectId")) - if (!$util.isString(message.projectId)) - return "projectId: string expected"; - if (message.credentialsJson != null && message.hasOwnProperty("credentialsJson")) - if (!$util.isString(message.credentialsJson)) - return "credentialsJson: string expected"; - if (message.credentialsFile != null && message.hasOwnProperty("credentialsFile")) - if (!$util.isString(message.credentialsFile)) - return "credentialsFile: string expected"; - return null; - }; - - /** - * Creates a GCPPubSubConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.GCPPubSubConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.GCPPubSubConn} GCPPubSubConn - */ - GCPPubSubConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.GCPPubSubConn) - return object; - var message = new $root.protos.args.GCPPubSubConn(); - if (object.projectId != null) - message.projectId = String(object.projectId); - if (object.credentialsJson != null) - message.credentialsJson = String(object.credentialsJson); - if (object.credentialsFile != null) - message.credentialsFile = String(object.credentialsFile); - return message; - }; - - /** - * Creates a plain object from a GCPPubSubConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.GCPPubSubConn - * @static - * @param {protos.args.GCPPubSubConn} message GCPPubSubConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GCPPubSubConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.projectId = ""; - object.credentialsJson = ""; - object.credentialsFile = ""; - } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.credentialsJson != null && message.hasOwnProperty("credentialsJson")) - object.credentialsJson = message.credentialsJson; - if (message.credentialsFile != null && message.hasOwnProperty("credentialsFile")) - object.credentialsFile = message.credentialsFile; - return object; - }; - - /** - * Converts this GCPPubSubConn to JSON. - * @function toJSON - * @memberof protos.args.GCPPubSubConn - * @instance - * @returns {Object.} JSON object - */ - GCPPubSubConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GCPPubSubConn; - })(); - - args.GCPPubSubReadArgs = (function() { - - /** - * Properties of a GCPPubSubReadArgs. - * @memberof protos.args - * @interface IGCPPubSubReadArgs - * @property {string|null} [subscriptionId] GCPPubSubReadArgs subscriptionId - * @property {boolean|null} [ackMessages] GCPPubSubReadArgs ackMessages - */ - - /** - * Constructs a new GCPPubSubReadArgs. - * @memberof protos.args - * @classdesc Represents a GCPPubSubReadArgs. - * @implements IGCPPubSubReadArgs - * @constructor - * @param {protos.args.IGCPPubSubReadArgs=} [properties] Properties to set - */ - function GCPPubSubReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GCPPubSubReadArgs subscriptionId. - * @member {string} subscriptionId - * @memberof protos.args.GCPPubSubReadArgs - * @instance - */ - GCPPubSubReadArgs.prototype.subscriptionId = ""; - - /** - * GCPPubSubReadArgs ackMessages. - * @member {boolean} ackMessages - * @memberof protos.args.GCPPubSubReadArgs - * @instance - */ - GCPPubSubReadArgs.prototype.ackMessages = false; - - /** - * Creates a new GCPPubSubReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.GCPPubSubReadArgs - * @static - * @param {protos.args.IGCPPubSubReadArgs=} [properties] Properties to set - * @returns {protos.args.GCPPubSubReadArgs} GCPPubSubReadArgs instance - */ - GCPPubSubReadArgs.create = function create(properties) { - return new GCPPubSubReadArgs(properties); - }; - - /** - * Encodes the specified GCPPubSubReadArgs message. Does not implicitly {@link protos.args.GCPPubSubReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.GCPPubSubReadArgs - * @static - * @param {protos.args.IGCPPubSubReadArgs} message GCPPubSubReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GCPPubSubReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.subscriptionId != null && Object.hasOwnProperty.call(message, "subscriptionId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.subscriptionId); - if (message.ackMessages != null && Object.hasOwnProperty.call(message, "ackMessages")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.ackMessages); - return writer; - }; - - /** - * Encodes the specified GCPPubSubReadArgs message, length delimited. Does not implicitly {@link protos.args.GCPPubSubReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.GCPPubSubReadArgs - * @static - * @param {protos.args.IGCPPubSubReadArgs} message GCPPubSubReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GCPPubSubReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GCPPubSubReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.GCPPubSubReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.GCPPubSubReadArgs} GCPPubSubReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GCPPubSubReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.GCPPubSubReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subscriptionId = reader.string(); - break; - case 2: - message.ackMessages = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GCPPubSubReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.GCPPubSubReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.GCPPubSubReadArgs} GCPPubSubReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GCPPubSubReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GCPPubSubReadArgs message. - * @function verify - * @memberof protos.args.GCPPubSubReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GCPPubSubReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.subscriptionId != null && message.hasOwnProperty("subscriptionId")) - if (!$util.isString(message.subscriptionId)) - return "subscriptionId: string expected"; - if (message.ackMessages != null && message.hasOwnProperty("ackMessages")) - if (typeof message.ackMessages !== "boolean") - return "ackMessages: boolean expected"; - return null; - }; - - /** - * Creates a GCPPubSubReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.GCPPubSubReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.GCPPubSubReadArgs} GCPPubSubReadArgs - */ - GCPPubSubReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.GCPPubSubReadArgs) - return object; - var message = new $root.protos.args.GCPPubSubReadArgs(); - if (object.subscriptionId != null) - message.subscriptionId = String(object.subscriptionId); - if (object.ackMessages != null) - message.ackMessages = Boolean(object.ackMessages); - return message; - }; - - /** - * Creates a plain object from a GCPPubSubReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.GCPPubSubReadArgs - * @static - * @param {protos.args.GCPPubSubReadArgs} message GCPPubSubReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GCPPubSubReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.subscriptionId = ""; - object.ackMessages = false; - } - if (message.subscriptionId != null && message.hasOwnProperty("subscriptionId")) - object.subscriptionId = message.subscriptionId; - if (message.ackMessages != null && message.hasOwnProperty("ackMessages")) - object.ackMessages = message.ackMessages; - return object; - }; - - /** - * Converts this GCPPubSubReadArgs to JSON. - * @function toJSON - * @memberof protos.args.GCPPubSubReadArgs - * @instance - * @returns {Object.} JSON object - */ - GCPPubSubReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GCPPubSubReadArgs; - })(); - - args.GCPPubSubWriteArgs = (function() { - - /** - * Properties of a GCPPubSubWriteArgs. - * @memberof protos.args - * @interface IGCPPubSubWriteArgs - * @property {string|null} [topicId] GCPPubSubWriteArgs topicId - */ - - /** - * Constructs a new GCPPubSubWriteArgs. - * @memberof protos.args - * @classdesc Represents a GCPPubSubWriteArgs. - * @implements IGCPPubSubWriteArgs - * @constructor - * @param {protos.args.IGCPPubSubWriteArgs=} [properties] Properties to set - */ - function GCPPubSubWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GCPPubSubWriteArgs topicId. - * @member {string} topicId - * @memberof protos.args.GCPPubSubWriteArgs - * @instance - */ - GCPPubSubWriteArgs.prototype.topicId = ""; - - /** - * Creates a new GCPPubSubWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.GCPPubSubWriteArgs - * @static - * @param {protos.args.IGCPPubSubWriteArgs=} [properties] Properties to set - * @returns {protos.args.GCPPubSubWriteArgs} GCPPubSubWriteArgs instance - */ - GCPPubSubWriteArgs.create = function create(properties) { - return new GCPPubSubWriteArgs(properties); - }; - - /** - * Encodes the specified GCPPubSubWriteArgs message. Does not implicitly {@link protos.args.GCPPubSubWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.GCPPubSubWriteArgs - * @static - * @param {protos.args.IGCPPubSubWriteArgs} message GCPPubSubWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GCPPubSubWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.topicId != null && Object.hasOwnProperty.call(message, "topicId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topicId); - return writer; - }; - - /** - * Encodes the specified GCPPubSubWriteArgs message, length delimited. Does not implicitly {@link protos.args.GCPPubSubWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.GCPPubSubWriteArgs - * @static - * @param {protos.args.IGCPPubSubWriteArgs} message GCPPubSubWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GCPPubSubWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GCPPubSubWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.GCPPubSubWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.GCPPubSubWriteArgs} GCPPubSubWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GCPPubSubWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.GCPPubSubWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.topicId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GCPPubSubWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.GCPPubSubWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.GCPPubSubWriteArgs} GCPPubSubWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GCPPubSubWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GCPPubSubWriteArgs message. - * @function verify - * @memberof protos.args.GCPPubSubWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GCPPubSubWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.topicId != null && message.hasOwnProperty("topicId")) - if (!$util.isString(message.topicId)) - return "topicId: string expected"; - return null; - }; - - /** - * Creates a GCPPubSubWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.GCPPubSubWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.GCPPubSubWriteArgs} GCPPubSubWriteArgs - */ - GCPPubSubWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.GCPPubSubWriteArgs) - return object; - var message = new $root.protos.args.GCPPubSubWriteArgs(); - if (object.topicId != null) - message.topicId = String(object.topicId); - return message; - }; - - /** - * Creates a plain object from a GCPPubSubWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.GCPPubSubWriteArgs - * @static - * @param {protos.args.GCPPubSubWriteArgs} message GCPPubSubWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GCPPubSubWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.topicId = ""; - if (message.topicId != null && message.hasOwnProperty("topicId")) - object.topicId = message.topicId; - return object; - }; - - /** - * Converts this GCPPubSubWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.GCPPubSubWriteArgs - * @instance - * @returns {Object.} JSON object - */ - GCPPubSubWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GCPPubSubWriteArgs; - })(); - - /** - * SASLType enum. - * @name protos.args.SASLType - * @enum {number} - * @property {number} NONE=0 NONE value - * @property {number} PLAIN=1 PLAIN value - * @property {number} SCRAM=2 SCRAM value - */ - args.SASLType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NONE"] = 0; - values[valuesById[1] = "PLAIN"] = 1; - values[valuesById[2] = "SCRAM"] = 2; - return values; - })(); - - args.KafkaConn = (function() { - - /** - * Properties of a KafkaConn. - * @memberof protos.args - * @interface IKafkaConn - * @property {Array.|null} [address] KafkaConn address - * @property {number|null} [timeoutSeconds] KafkaConn timeoutSeconds - * @property {boolean|null} [useTls] KafkaConn useTls - * @property {boolean|null} [tlsSkipVerify] KafkaConn tlsSkipVerify - * @property {protos.args.SASLType|null} [saslType] KafkaConn saslType - * @property {string|null} [saslUsername] KafkaConn saslUsername - * @property {string|null} [saslPassword] KafkaConn saslPassword - */ - - /** - * Constructs a new KafkaConn. - * @memberof protos.args - * @classdesc Represents a KafkaConn. - * @implements IKafkaConn - * @constructor - * @param {protos.args.IKafkaConn=} [properties] Properties to set - */ - function KafkaConn(properties) { - this.address = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * KafkaConn address. - * @member {Array.} address - * @memberof protos.args.KafkaConn - * @instance - */ - KafkaConn.prototype.address = $util.emptyArray; - - /** - * KafkaConn timeoutSeconds. - * @member {number} timeoutSeconds - * @memberof protos.args.KafkaConn - * @instance - */ - KafkaConn.prototype.timeoutSeconds = 0; - - /** - * KafkaConn useTls. - * @member {boolean} useTls - * @memberof protos.args.KafkaConn - * @instance - */ - KafkaConn.prototype.useTls = false; - - /** - * KafkaConn tlsSkipVerify. - * @member {boolean} tlsSkipVerify - * @memberof protos.args.KafkaConn - * @instance - */ - KafkaConn.prototype.tlsSkipVerify = false; - - /** - * KafkaConn saslType. - * @member {protos.args.SASLType} saslType - * @memberof protos.args.KafkaConn - * @instance - */ - KafkaConn.prototype.saslType = 0; - - /** - * KafkaConn saslUsername. - * @member {string} saslUsername - * @memberof protos.args.KafkaConn - * @instance - */ - KafkaConn.prototype.saslUsername = ""; - - /** - * KafkaConn saslPassword. - * @member {string} saslPassword - * @memberof protos.args.KafkaConn - * @instance - */ - KafkaConn.prototype.saslPassword = ""; - - /** - * Creates a new KafkaConn instance using the specified properties. - * @function create - * @memberof protos.args.KafkaConn - * @static - * @param {protos.args.IKafkaConn=} [properties] Properties to set - * @returns {protos.args.KafkaConn} KafkaConn instance - */ - KafkaConn.create = function create(properties) { - return new KafkaConn(properties); - }; - - /** - * Encodes the specified KafkaConn message. Does not implicitly {@link protos.args.KafkaConn.verify|verify} messages. - * @function encode - * @memberof protos.args.KafkaConn - * @static - * @param {protos.args.IKafkaConn} message KafkaConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KafkaConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.address != null && message.address.length) - for (var i = 0; i < message.address.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address[i]); - if (message.timeoutSeconds != null && Object.hasOwnProperty.call(message, "timeoutSeconds")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.timeoutSeconds); - if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useTls); - if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.tlsSkipVerify); - if (message.saslType != null && Object.hasOwnProperty.call(message, "saslType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.saslType); - if (message.saslUsername != null && Object.hasOwnProperty.call(message, "saslUsername")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.saslUsername); - if (message.saslPassword != null && Object.hasOwnProperty.call(message, "saslPassword")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.saslPassword); - return writer; - }; - - /** - * Encodes the specified KafkaConn message, length delimited. Does not implicitly {@link protos.args.KafkaConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.KafkaConn - * @static - * @param {protos.args.IKafkaConn} message KafkaConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KafkaConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a KafkaConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.KafkaConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.KafkaConn} KafkaConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KafkaConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KafkaConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.address && message.address.length)) - message.address = []; - message.address.push(reader.string()); - break; - case 2: - message.timeoutSeconds = reader.int32(); - break; - case 3: - message.useTls = reader.bool(); - break; - case 4: - message.tlsSkipVerify = reader.bool(); - break; - case 5: - message.saslType = reader.int32(); - break; - case 6: - message.saslUsername = reader.string(); - break; - case 7: - message.saslPassword = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a KafkaConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.KafkaConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.KafkaConn} KafkaConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KafkaConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KafkaConn message. - * @function verify - * @memberof protos.args.KafkaConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KafkaConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) { - if (!Array.isArray(message.address)) - return "address: array expected"; - for (var i = 0; i < message.address.length; ++i) - if (!$util.isString(message.address[i])) - return "address: string[] expected"; - } - if (message.timeoutSeconds != null && message.hasOwnProperty("timeoutSeconds")) - if (!$util.isInteger(message.timeoutSeconds)) - return "timeoutSeconds: integer expected"; - if (message.useTls != null && message.hasOwnProperty("useTls")) - if (typeof message.useTls !== "boolean") - return "useTls: boolean expected"; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - if (typeof message.tlsSkipVerify !== "boolean") - return "tlsSkipVerify: boolean expected"; - if (message.saslType != null && message.hasOwnProperty("saslType")) - switch (message.saslType) { - default: - return "saslType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.saslUsername != null && message.hasOwnProperty("saslUsername")) - if (!$util.isString(message.saslUsername)) - return "saslUsername: string expected"; - if (message.saslPassword != null && message.hasOwnProperty("saslPassword")) - if (!$util.isString(message.saslPassword)) - return "saslPassword: string expected"; - return null; - }; - - /** - * Creates a KafkaConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.KafkaConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.KafkaConn} KafkaConn - */ - KafkaConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.KafkaConn) - return object; - var message = new $root.protos.args.KafkaConn(); - if (object.address) { - if (!Array.isArray(object.address)) - throw TypeError(".protos.args.KafkaConn.address: array expected"); - message.address = []; - for (var i = 0; i < object.address.length; ++i) - message.address[i] = String(object.address[i]); - } - if (object.timeoutSeconds != null) - message.timeoutSeconds = object.timeoutSeconds | 0; - if (object.useTls != null) - message.useTls = Boolean(object.useTls); - if (object.tlsSkipVerify != null) - message.tlsSkipVerify = Boolean(object.tlsSkipVerify); - switch (object.saslType) { - case "NONE": - case 0: - message.saslType = 0; - break; - case "PLAIN": - case 1: - message.saslType = 1; - break; - case "SCRAM": - case 2: - message.saslType = 2; - break; - } - if (object.saslUsername != null) - message.saslUsername = String(object.saslUsername); - if (object.saslPassword != null) - message.saslPassword = String(object.saslPassword); - return message; - }; - - /** - * Creates a plain object from a KafkaConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.KafkaConn - * @static - * @param {protos.args.KafkaConn} message KafkaConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KafkaConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.address = []; - if (options.defaults) { - object.timeoutSeconds = 0; - object.useTls = false; - object.tlsSkipVerify = false; - object.saslType = options.enums === String ? "NONE" : 0; - object.saslUsername = ""; - object.saslPassword = ""; - } - if (message.address && message.address.length) { - object.address = []; - for (var j = 0; j < message.address.length; ++j) - object.address[j] = message.address[j]; - } - if (message.timeoutSeconds != null && message.hasOwnProperty("timeoutSeconds")) - object.timeoutSeconds = message.timeoutSeconds; - if (message.useTls != null && message.hasOwnProperty("useTls")) - object.useTls = message.useTls; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - object.tlsSkipVerify = message.tlsSkipVerify; - if (message.saslType != null && message.hasOwnProperty("saslType")) - object.saslType = options.enums === String ? $root.protos.args.SASLType[message.saslType] : message.saslType; - if (message.saslUsername != null && message.hasOwnProperty("saslUsername")) - object.saslUsername = message.saslUsername; - if (message.saslPassword != null && message.hasOwnProperty("saslPassword")) - object.saslPassword = message.saslPassword; - return object; - }; - - /** - * Converts this KafkaConn to JSON. - * @function toJSON - * @memberof protos.args.KafkaConn - * @instance - * @returns {Object.} JSON object - */ - KafkaConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return KafkaConn; - })(); - - args.KafkaReadArgs = (function() { - - /** - * Properties of a KafkaReadArgs. - * @memberof protos.args - * @interface IKafkaReadArgs - * @property {Array.|null} [topics] KafkaReadArgs topics - * @property {number|Long|null} [readOffset] KafkaReadArgs readOffset - * @property {boolean|null} [useConsumerGroup] KafkaReadArgs useConsumerGroup - * @property {string|null} [consumerGroupName] KafkaReadArgs consumerGroupName - * @property {number|null} [maxWaitSeconds] KafkaReadArgs maxWaitSeconds - * @property {number|null} [minBytes] KafkaReadArgs minBytes - * @property {number|null} [maxBytes] KafkaReadArgs maxBytes - * @property {number|null} [commitIntervalSeconds] KafkaReadArgs commitIntervalSeconds - * @property {number|null} [rebalanceTimeoutSeconds] KafkaReadArgs rebalanceTimeoutSeconds - * @property {number|null} [queueCapacity] KafkaReadArgs queueCapacity - * @property {boolean|null} [includeOffsetInfo] KafkaReadArgs includeOffsetInfo - * @property {boolean|null} [lag] KafkaReadArgs lag - * @property {string|null} [lagConsumerGroup] KafkaReadArgs lagConsumerGroup - */ - - /** - * Constructs a new KafkaReadArgs. - * @memberof protos.args - * @classdesc Represents a KafkaReadArgs. - * @implements IKafkaReadArgs - * @constructor - * @param {protos.args.IKafkaReadArgs=} [properties] Properties to set - */ - function KafkaReadArgs(properties) { - this.topics = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * KafkaReadArgs topics. - * @member {Array.} topics - * @memberof protos.args.KafkaReadArgs - * @instance - */ - KafkaReadArgs.prototype.topics = $util.emptyArray; - - /** - * KafkaReadArgs readOffset. - * @member {number|Long} readOffset - * @memberof protos.args.KafkaReadArgs - * @instance - */ - KafkaReadArgs.prototype.readOffset = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * KafkaReadArgs useConsumerGroup. - * @member {boolean} useConsumerGroup - * @memberof protos.args.KafkaReadArgs - * @instance - */ - KafkaReadArgs.prototype.useConsumerGroup = false; - - /** - * KafkaReadArgs consumerGroupName. - * @member {string} consumerGroupName - * @memberof protos.args.KafkaReadArgs - * @instance - */ - KafkaReadArgs.prototype.consumerGroupName = ""; - - /** - * KafkaReadArgs maxWaitSeconds. - * @member {number} maxWaitSeconds - * @memberof protos.args.KafkaReadArgs - * @instance - */ - KafkaReadArgs.prototype.maxWaitSeconds = 0; - - /** - * KafkaReadArgs minBytes. - * @member {number} minBytes - * @memberof protos.args.KafkaReadArgs - * @instance - */ - KafkaReadArgs.prototype.minBytes = 0; - - /** - * KafkaReadArgs maxBytes. - * @member {number} maxBytes - * @memberof protos.args.KafkaReadArgs - * @instance - */ - KafkaReadArgs.prototype.maxBytes = 0; - - /** - * KafkaReadArgs commitIntervalSeconds. - * @member {number} commitIntervalSeconds - * @memberof protos.args.KafkaReadArgs - * @instance - */ - KafkaReadArgs.prototype.commitIntervalSeconds = 0; - - /** - * KafkaReadArgs rebalanceTimeoutSeconds. - * @member {number} rebalanceTimeoutSeconds - * @memberof protos.args.KafkaReadArgs - * @instance - */ - KafkaReadArgs.prototype.rebalanceTimeoutSeconds = 0; - - /** - * KafkaReadArgs queueCapacity. - * @member {number} queueCapacity - * @memberof protos.args.KafkaReadArgs - * @instance - */ - KafkaReadArgs.prototype.queueCapacity = 0; - - /** - * KafkaReadArgs includeOffsetInfo. - * @member {boolean} includeOffsetInfo - * @memberof protos.args.KafkaReadArgs - * @instance - */ - KafkaReadArgs.prototype.includeOffsetInfo = false; - - /** - * KafkaReadArgs lag. - * @member {boolean} lag - * @memberof protos.args.KafkaReadArgs - * @instance - */ - KafkaReadArgs.prototype.lag = false; - - /** - * KafkaReadArgs lagConsumerGroup. - * @member {string} lagConsumerGroup - * @memberof protos.args.KafkaReadArgs - * @instance - */ - KafkaReadArgs.prototype.lagConsumerGroup = ""; - - /** - * Creates a new KafkaReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.KafkaReadArgs - * @static - * @param {protos.args.IKafkaReadArgs=} [properties] Properties to set - * @returns {protos.args.KafkaReadArgs} KafkaReadArgs instance - */ - KafkaReadArgs.create = function create(properties) { - return new KafkaReadArgs(properties); - }; - - /** - * Encodes the specified KafkaReadArgs message. Does not implicitly {@link protos.args.KafkaReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.KafkaReadArgs - * @static - * @param {protos.args.IKafkaReadArgs} message KafkaReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KafkaReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.topics != null && message.topics.length) - for (var i = 0; i < message.topics.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topics[i]); - if (message.readOffset != null && Object.hasOwnProperty.call(message, "readOffset")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.readOffset); - if (message.useConsumerGroup != null && Object.hasOwnProperty.call(message, "useConsumerGroup")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useConsumerGroup); - if (message.consumerGroupName != null && Object.hasOwnProperty.call(message, "consumerGroupName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.consumerGroupName); - if (message.maxWaitSeconds != null && Object.hasOwnProperty.call(message, "maxWaitSeconds")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxWaitSeconds); - if (message.minBytes != null && Object.hasOwnProperty.call(message, "minBytes")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.minBytes); - if (message.maxBytes != null && Object.hasOwnProperty.call(message, "maxBytes")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.maxBytes); - if (message.commitIntervalSeconds != null && Object.hasOwnProperty.call(message, "commitIntervalSeconds")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.commitIntervalSeconds); - if (message.rebalanceTimeoutSeconds != null && Object.hasOwnProperty.call(message, "rebalanceTimeoutSeconds")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.rebalanceTimeoutSeconds); - if (message.queueCapacity != null && Object.hasOwnProperty.call(message, "queueCapacity")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.queueCapacity); - if (message.includeOffsetInfo != null && Object.hasOwnProperty.call(message, "includeOffsetInfo")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.includeOffsetInfo); - if (message.lag != null && Object.hasOwnProperty.call(message, "lag")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.lag); - if (message.lagConsumerGroup != null && Object.hasOwnProperty.call(message, "lagConsumerGroup")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.lagConsumerGroup); - return writer; - }; - - /** - * Encodes the specified KafkaReadArgs message, length delimited. Does not implicitly {@link protos.args.KafkaReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.KafkaReadArgs - * @static - * @param {protos.args.IKafkaReadArgs} message KafkaReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KafkaReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a KafkaReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.KafkaReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.KafkaReadArgs} KafkaReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KafkaReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KafkaReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.topics && message.topics.length)) - message.topics = []; - message.topics.push(reader.string()); - break; - case 2: - message.readOffset = reader.int64(); - break; - case 3: - message.useConsumerGroup = reader.bool(); - break; - case 4: - message.consumerGroupName = reader.string(); - break; - case 5: - message.maxWaitSeconds = reader.int32(); - break; - case 6: - message.minBytes = reader.int32(); - break; - case 7: - message.maxBytes = reader.int32(); - break; - case 8: - message.commitIntervalSeconds = reader.int32(); - break; - case 9: - message.rebalanceTimeoutSeconds = reader.int32(); - break; - case 10: - message.queueCapacity = reader.int32(); - break; - case 11: - message.includeOffsetInfo = reader.bool(); - break; - case 12: - message.lag = reader.bool(); - break; - case 13: - message.lagConsumerGroup = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a KafkaReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.KafkaReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.KafkaReadArgs} KafkaReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KafkaReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KafkaReadArgs message. - * @function verify - * @memberof protos.args.KafkaReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KafkaReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.topics != null && message.hasOwnProperty("topics")) { - if (!Array.isArray(message.topics)) - return "topics: array expected"; - for (var i = 0; i < message.topics.length; ++i) - if (!$util.isString(message.topics[i])) - return "topics: string[] expected"; - } - if (message.readOffset != null && message.hasOwnProperty("readOffset")) - if (!$util.isInteger(message.readOffset) && !(message.readOffset && $util.isInteger(message.readOffset.low) && $util.isInteger(message.readOffset.high))) - return "readOffset: integer|Long expected"; - if (message.useConsumerGroup != null && message.hasOwnProperty("useConsumerGroup")) - if (typeof message.useConsumerGroup !== "boolean") - return "useConsumerGroup: boolean expected"; - if (message.consumerGroupName != null && message.hasOwnProperty("consumerGroupName")) - if (!$util.isString(message.consumerGroupName)) - return "consumerGroupName: string expected"; - if (message.maxWaitSeconds != null && message.hasOwnProperty("maxWaitSeconds")) - if (!$util.isInteger(message.maxWaitSeconds)) - return "maxWaitSeconds: integer expected"; - if (message.minBytes != null && message.hasOwnProperty("minBytes")) - if (!$util.isInteger(message.minBytes)) - return "minBytes: integer expected"; - if (message.maxBytes != null && message.hasOwnProperty("maxBytes")) - if (!$util.isInteger(message.maxBytes)) - return "maxBytes: integer expected"; - if (message.commitIntervalSeconds != null && message.hasOwnProperty("commitIntervalSeconds")) - if (!$util.isInteger(message.commitIntervalSeconds)) - return "commitIntervalSeconds: integer expected"; - if (message.rebalanceTimeoutSeconds != null && message.hasOwnProperty("rebalanceTimeoutSeconds")) - if (!$util.isInteger(message.rebalanceTimeoutSeconds)) - return "rebalanceTimeoutSeconds: integer expected"; - if (message.queueCapacity != null && message.hasOwnProperty("queueCapacity")) - if (!$util.isInteger(message.queueCapacity)) - return "queueCapacity: integer expected"; - if (message.includeOffsetInfo != null && message.hasOwnProperty("includeOffsetInfo")) - if (typeof message.includeOffsetInfo !== "boolean") - return "includeOffsetInfo: boolean expected"; - if (message.lag != null && message.hasOwnProperty("lag")) - if (typeof message.lag !== "boolean") - return "lag: boolean expected"; - if (message.lagConsumerGroup != null && message.hasOwnProperty("lagConsumerGroup")) - if (!$util.isString(message.lagConsumerGroup)) - return "lagConsumerGroup: string expected"; - return null; - }; - - /** - * Creates a KafkaReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.KafkaReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.KafkaReadArgs} KafkaReadArgs - */ - KafkaReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.KafkaReadArgs) - return object; - var message = new $root.protos.args.KafkaReadArgs(); - if (object.topics) { - if (!Array.isArray(object.topics)) - throw TypeError(".protos.args.KafkaReadArgs.topics: array expected"); - message.topics = []; - for (var i = 0; i < object.topics.length; ++i) - message.topics[i] = String(object.topics[i]); - } - if (object.readOffset != null) - if ($util.Long) - (message.readOffset = $util.Long.fromValue(object.readOffset)).unsigned = false; - else if (typeof object.readOffset === "string") - message.readOffset = parseInt(object.readOffset, 10); - else if (typeof object.readOffset === "number") - message.readOffset = object.readOffset; - else if (typeof object.readOffset === "object") - message.readOffset = new $util.LongBits(object.readOffset.low >>> 0, object.readOffset.high >>> 0).toNumber(); - if (object.useConsumerGroup != null) - message.useConsumerGroup = Boolean(object.useConsumerGroup); - if (object.consumerGroupName != null) - message.consumerGroupName = String(object.consumerGroupName); - if (object.maxWaitSeconds != null) - message.maxWaitSeconds = object.maxWaitSeconds | 0; - if (object.minBytes != null) - message.minBytes = object.minBytes | 0; - if (object.maxBytes != null) - message.maxBytes = object.maxBytes | 0; - if (object.commitIntervalSeconds != null) - message.commitIntervalSeconds = object.commitIntervalSeconds | 0; - if (object.rebalanceTimeoutSeconds != null) - message.rebalanceTimeoutSeconds = object.rebalanceTimeoutSeconds | 0; - if (object.queueCapacity != null) - message.queueCapacity = object.queueCapacity | 0; - if (object.includeOffsetInfo != null) - message.includeOffsetInfo = Boolean(object.includeOffsetInfo); - if (object.lag != null) - message.lag = Boolean(object.lag); - if (object.lagConsumerGroup != null) - message.lagConsumerGroup = String(object.lagConsumerGroup); - return message; - }; - - /** - * Creates a plain object from a KafkaReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.KafkaReadArgs - * @static - * @param {protos.args.KafkaReadArgs} message KafkaReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KafkaReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.topics = []; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.readOffset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.readOffset = options.longs === String ? "0" : 0; - object.useConsumerGroup = false; - object.consumerGroupName = ""; - object.maxWaitSeconds = 0; - object.minBytes = 0; - object.maxBytes = 0; - object.commitIntervalSeconds = 0; - object.rebalanceTimeoutSeconds = 0; - object.queueCapacity = 0; - object.includeOffsetInfo = false; - object.lag = false; - object.lagConsumerGroup = ""; - } - if (message.topics && message.topics.length) { - object.topics = []; - for (var j = 0; j < message.topics.length; ++j) - object.topics[j] = message.topics[j]; - } - if (message.readOffset != null && message.hasOwnProperty("readOffset")) - if (typeof message.readOffset === "number") - object.readOffset = options.longs === String ? String(message.readOffset) : message.readOffset; - else - object.readOffset = options.longs === String ? $util.Long.prototype.toString.call(message.readOffset) : options.longs === Number ? new $util.LongBits(message.readOffset.low >>> 0, message.readOffset.high >>> 0).toNumber() : message.readOffset; - if (message.useConsumerGroup != null && message.hasOwnProperty("useConsumerGroup")) - object.useConsumerGroup = message.useConsumerGroup; - if (message.consumerGroupName != null && message.hasOwnProperty("consumerGroupName")) - object.consumerGroupName = message.consumerGroupName; - if (message.maxWaitSeconds != null && message.hasOwnProperty("maxWaitSeconds")) - object.maxWaitSeconds = message.maxWaitSeconds; - if (message.minBytes != null && message.hasOwnProperty("minBytes")) - object.minBytes = message.minBytes; - if (message.maxBytes != null && message.hasOwnProperty("maxBytes")) - object.maxBytes = message.maxBytes; - if (message.commitIntervalSeconds != null && message.hasOwnProperty("commitIntervalSeconds")) - object.commitIntervalSeconds = message.commitIntervalSeconds; - if (message.rebalanceTimeoutSeconds != null && message.hasOwnProperty("rebalanceTimeoutSeconds")) - object.rebalanceTimeoutSeconds = message.rebalanceTimeoutSeconds; - if (message.queueCapacity != null && message.hasOwnProperty("queueCapacity")) - object.queueCapacity = message.queueCapacity; - if (message.includeOffsetInfo != null && message.hasOwnProperty("includeOffsetInfo")) - object.includeOffsetInfo = message.includeOffsetInfo; - if (message.lag != null && message.hasOwnProperty("lag")) - object.lag = message.lag; - if (message.lagConsumerGroup != null && message.hasOwnProperty("lagConsumerGroup")) - object.lagConsumerGroup = message.lagConsumerGroup; - return object; - }; - - /** - * Converts this KafkaReadArgs to JSON. - * @function toJSON - * @memberof protos.args.KafkaReadArgs - * @instance - * @returns {Object.} JSON object - */ - KafkaReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return KafkaReadArgs; - })(); - - args.KafkaWriteArgs = (function() { - - /** - * Properties of a KafkaWriteArgs. - * @memberof protos.args - * @interface IKafkaWriteArgs - * @property {string|null} [key] KafkaWriteArgs key - * @property {Object.|null} [headers] KafkaWriteArgs headers - * @property {Array.|null} [topics] KafkaWriteArgs topics - */ - - /** - * Constructs a new KafkaWriteArgs. - * @memberof protos.args - * @classdesc Represents a KafkaWriteArgs. - * @implements IKafkaWriteArgs - * @constructor - * @param {protos.args.IKafkaWriteArgs=} [properties] Properties to set - */ - function KafkaWriteArgs(properties) { - this.headers = {}; - this.topics = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * KafkaWriteArgs key. - * @member {string} key - * @memberof protos.args.KafkaWriteArgs - * @instance - */ - KafkaWriteArgs.prototype.key = ""; - - /** - * KafkaWriteArgs headers. - * @member {Object.} headers - * @memberof protos.args.KafkaWriteArgs - * @instance - */ - KafkaWriteArgs.prototype.headers = $util.emptyObject; - - /** - * KafkaWriteArgs topics. - * @member {Array.} topics - * @memberof protos.args.KafkaWriteArgs - * @instance - */ - KafkaWriteArgs.prototype.topics = $util.emptyArray; - - /** - * Creates a new KafkaWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.KafkaWriteArgs - * @static - * @param {protos.args.IKafkaWriteArgs=} [properties] Properties to set - * @returns {protos.args.KafkaWriteArgs} KafkaWriteArgs instance - */ - KafkaWriteArgs.create = function create(properties) { - return new KafkaWriteArgs(properties); - }; - - /** - * Encodes the specified KafkaWriteArgs message. Does not implicitly {@link protos.args.KafkaWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.KafkaWriteArgs - * @static - * @param {protos.args.IKafkaWriteArgs} message KafkaWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KafkaWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.headers != null && Object.hasOwnProperty.call(message, "headers")) - for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.headers[keys[i]]).ldelim(); - if (message.topics != null && message.topics.length) - for (var i = 0; i < message.topics.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.topics[i]); - return writer; - }; - - /** - * Encodes the specified KafkaWriteArgs message, length delimited. Does not implicitly {@link protos.args.KafkaWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.KafkaWriteArgs - * @static - * @param {protos.args.IKafkaWriteArgs} message KafkaWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KafkaWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a KafkaWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.KafkaWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.KafkaWriteArgs} KafkaWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KafkaWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KafkaWriteArgs(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - if (message.headers === $util.emptyObject) - message.headers = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.headers[key] = value; - break; - case 3: - if (!(message.topics && message.topics.length)) - message.topics = []; - message.topics.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a KafkaWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.KafkaWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.KafkaWriteArgs} KafkaWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KafkaWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KafkaWriteArgs message. - * @function verify - * @memberof protos.args.KafkaWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KafkaWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.headers != null && message.hasOwnProperty("headers")) { - if (!$util.isObject(message.headers)) - return "headers: object expected"; - var key = Object.keys(message.headers); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.headers[key[i]])) - return "headers: string{k:string} expected"; - } - if (message.topics != null && message.hasOwnProperty("topics")) { - if (!Array.isArray(message.topics)) - return "topics: array expected"; - for (var i = 0; i < message.topics.length; ++i) - if (!$util.isString(message.topics[i])) - return "topics: string[] expected"; - } - return null; - }; - - /** - * Creates a KafkaWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.KafkaWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.KafkaWriteArgs} KafkaWriteArgs - */ - KafkaWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.KafkaWriteArgs) - return object; - var message = new $root.protos.args.KafkaWriteArgs(); - if (object.key != null) - message.key = String(object.key); - if (object.headers) { - if (typeof object.headers !== "object") - throw TypeError(".protos.args.KafkaWriteArgs.headers: object expected"); - message.headers = {}; - for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) - message.headers[keys[i]] = String(object.headers[keys[i]]); - } - if (object.topics) { - if (!Array.isArray(object.topics)) - throw TypeError(".protos.args.KafkaWriteArgs.topics: array expected"); - message.topics = []; - for (var i = 0; i < object.topics.length; ++i) - message.topics[i] = String(object.topics[i]); - } - return message; - }; - - /** - * Creates a plain object from a KafkaWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.KafkaWriteArgs - * @static - * @param {protos.args.KafkaWriteArgs} message KafkaWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KafkaWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.topics = []; - if (options.objects || options.defaults) - object.headers = {}; - if (options.defaults) - object.key = ""; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; - var keys2; - if (message.headers && (keys2 = Object.keys(message.headers)).length) { - object.headers = {}; - for (var j = 0; j < keys2.length; ++j) - object.headers[keys2[j]] = message.headers[keys2[j]]; - } - if (message.topics && message.topics.length) { - object.topics = []; - for (var j = 0; j < message.topics.length; ++j) - object.topics[j] = message.topics[j]; - } - return object; - }; - - /** - * Converts this KafkaWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.KafkaWriteArgs - * @instance - * @returns {Object.} JSON object - */ - KafkaWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return KafkaWriteArgs; - })(); - - args.KafkaRelayArgs = (function() { - - /** - * Properties of a KafkaRelayArgs. - * @memberof protos.args - * @interface IKafkaRelayArgs - * @property {Array.|null} [topics] KafkaRelayArgs topics - * @property {number|Long|null} [readOffset] KafkaRelayArgs readOffset - * @property {boolean|null} [useConsumerGroup] KafkaRelayArgs useConsumerGroup - * @property {string|null} [consumerGroupName] KafkaRelayArgs consumerGroupName - * @property {number|null} [maxWaitSeconds] KafkaRelayArgs maxWaitSeconds - * @property {number|null} [minBytes] KafkaRelayArgs minBytes - * @property {number|null} [maxBytes] KafkaRelayArgs maxBytes - * @property {number|null} [commitIntervalSeconds] KafkaRelayArgs commitIntervalSeconds - * @property {number|null} [rebalanceTimeoutSeconds] KafkaRelayArgs rebalanceTimeoutSeconds - * @property {number|null} [queueCapacity] KafkaRelayArgs queueCapacity - */ - - /** - * Constructs a new KafkaRelayArgs. - * @memberof protos.args - * @classdesc Represents a KafkaRelayArgs. - * @implements IKafkaRelayArgs - * @constructor - * @param {protos.args.IKafkaRelayArgs=} [properties] Properties to set - */ - function KafkaRelayArgs(properties) { - this.topics = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * KafkaRelayArgs topics. - * @member {Array.} topics - * @memberof protos.args.KafkaRelayArgs - * @instance - */ - KafkaRelayArgs.prototype.topics = $util.emptyArray; - - /** - * KafkaRelayArgs readOffset. - * @member {number|Long} readOffset - * @memberof protos.args.KafkaRelayArgs - * @instance - */ - KafkaRelayArgs.prototype.readOffset = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * KafkaRelayArgs useConsumerGroup. - * @member {boolean} useConsumerGroup - * @memberof protos.args.KafkaRelayArgs - * @instance - */ - KafkaRelayArgs.prototype.useConsumerGroup = false; - - /** - * KafkaRelayArgs consumerGroupName. - * @member {string} consumerGroupName - * @memberof protos.args.KafkaRelayArgs - * @instance - */ - KafkaRelayArgs.prototype.consumerGroupName = ""; - - /** - * KafkaRelayArgs maxWaitSeconds. - * @member {number} maxWaitSeconds - * @memberof protos.args.KafkaRelayArgs - * @instance - */ - KafkaRelayArgs.prototype.maxWaitSeconds = 0; - - /** - * KafkaRelayArgs minBytes. - * @member {number} minBytes - * @memberof protos.args.KafkaRelayArgs - * @instance - */ - KafkaRelayArgs.prototype.minBytes = 0; - - /** - * KafkaRelayArgs maxBytes. - * @member {number} maxBytes - * @memberof protos.args.KafkaRelayArgs - * @instance - */ - KafkaRelayArgs.prototype.maxBytes = 0; - - /** - * KafkaRelayArgs commitIntervalSeconds. - * @member {number} commitIntervalSeconds - * @memberof protos.args.KafkaRelayArgs - * @instance - */ - KafkaRelayArgs.prototype.commitIntervalSeconds = 0; - - /** - * KafkaRelayArgs rebalanceTimeoutSeconds. - * @member {number} rebalanceTimeoutSeconds - * @memberof protos.args.KafkaRelayArgs - * @instance - */ - KafkaRelayArgs.prototype.rebalanceTimeoutSeconds = 0; - - /** - * KafkaRelayArgs queueCapacity. - * @member {number} queueCapacity - * @memberof protos.args.KafkaRelayArgs - * @instance - */ - KafkaRelayArgs.prototype.queueCapacity = 0; - - /** - * Creates a new KafkaRelayArgs instance using the specified properties. - * @function create - * @memberof protos.args.KafkaRelayArgs - * @static - * @param {protos.args.IKafkaRelayArgs=} [properties] Properties to set - * @returns {protos.args.KafkaRelayArgs} KafkaRelayArgs instance - */ - KafkaRelayArgs.create = function create(properties) { - return new KafkaRelayArgs(properties); - }; - - /** - * Encodes the specified KafkaRelayArgs message. Does not implicitly {@link protos.args.KafkaRelayArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.KafkaRelayArgs - * @static - * @param {protos.args.IKafkaRelayArgs} message KafkaRelayArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KafkaRelayArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.topics != null && message.topics.length) - for (var i = 0; i < message.topics.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topics[i]); - if (message.readOffset != null && Object.hasOwnProperty.call(message, "readOffset")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.readOffset); - if (message.useConsumerGroup != null && Object.hasOwnProperty.call(message, "useConsumerGroup")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useConsumerGroup); - if (message.consumerGroupName != null && Object.hasOwnProperty.call(message, "consumerGroupName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.consumerGroupName); - if (message.maxWaitSeconds != null && Object.hasOwnProperty.call(message, "maxWaitSeconds")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxWaitSeconds); - if (message.minBytes != null && Object.hasOwnProperty.call(message, "minBytes")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.minBytes); - if (message.maxBytes != null && Object.hasOwnProperty.call(message, "maxBytes")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.maxBytes); - if (message.commitIntervalSeconds != null && Object.hasOwnProperty.call(message, "commitIntervalSeconds")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.commitIntervalSeconds); - if (message.rebalanceTimeoutSeconds != null && Object.hasOwnProperty.call(message, "rebalanceTimeoutSeconds")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.rebalanceTimeoutSeconds); - if (message.queueCapacity != null && Object.hasOwnProperty.call(message, "queueCapacity")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.queueCapacity); - return writer; - }; - - /** - * Encodes the specified KafkaRelayArgs message, length delimited. Does not implicitly {@link protos.args.KafkaRelayArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.KafkaRelayArgs - * @static - * @param {protos.args.IKafkaRelayArgs} message KafkaRelayArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KafkaRelayArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a KafkaRelayArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.KafkaRelayArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.KafkaRelayArgs} KafkaRelayArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KafkaRelayArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KafkaRelayArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.topics && message.topics.length)) - message.topics = []; - message.topics.push(reader.string()); - break; - case 2: - message.readOffset = reader.int64(); - break; - case 3: - message.useConsumerGroup = reader.bool(); - break; - case 4: - message.consumerGroupName = reader.string(); - break; - case 5: - message.maxWaitSeconds = reader.int32(); - break; - case 6: - message.minBytes = reader.int32(); - break; - case 7: - message.maxBytes = reader.int32(); - break; - case 8: - message.commitIntervalSeconds = reader.int32(); - break; - case 9: - message.rebalanceTimeoutSeconds = reader.int32(); - break; - case 10: - message.queueCapacity = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a KafkaRelayArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.KafkaRelayArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.KafkaRelayArgs} KafkaRelayArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KafkaRelayArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KafkaRelayArgs message. - * @function verify - * @memberof protos.args.KafkaRelayArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KafkaRelayArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.topics != null && message.hasOwnProperty("topics")) { - if (!Array.isArray(message.topics)) - return "topics: array expected"; - for (var i = 0; i < message.topics.length; ++i) - if (!$util.isString(message.topics[i])) - return "topics: string[] expected"; - } - if (message.readOffset != null && message.hasOwnProperty("readOffset")) - if (!$util.isInteger(message.readOffset) && !(message.readOffset && $util.isInteger(message.readOffset.low) && $util.isInteger(message.readOffset.high))) - return "readOffset: integer|Long expected"; - if (message.useConsumerGroup != null && message.hasOwnProperty("useConsumerGroup")) - if (typeof message.useConsumerGroup !== "boolean") - return "useConsumerGroup: boolean expected"; - if (message.consumerGroupName != null && message.hasOwnProperty("consumerGroupName")) - if (!$util.isString(message.consumerGroupName)) - return "consumerGroupName: string expected"; - if (message.maxWaitSeconds != null && message.hasOwnProperty("maxWaitSeconds")) - if (!$util.isInteger(message.maxWaitSeconds)) - return "maxWaitSeconds: integer expected"; - if (message.minBytes != null && message.hasOwnProperty("minBytes")) - if (!$util.isInteger(message.minBytes)) - return "minBytes: integer expected"; - if (message.maxBytes != null && message.hasOwnProperty("maxBytes")) - if (!$util.isInteger(message.maxBytes)) - return "maxBytes: integer expected"; - if (message.commitIntervalSeconds != null && message.hasOwnProperty("commitIntervalSeconds")) - if (!$util.isInteger(message.commitIntervalSeconds)) - return "commitIntervalSeconds: integer expected"; - if (message.rebalanceTimeoutSeconds != null && message.hasOwnProperty("rebalanceTimeoutSeconds")) - if (!$util.isInteger(message.rebalanceTimeoutSeconds)) - return "rebalanceTimeoutSeconds: integer expected"; - if (message.queueCapacity != null && message.hasOwnProperty("queueCapacity")) - if (!$util.isInteger(message.queueCapacity)) - return "queueCapacity: integer expected"; - return null; - }; - - /** - * Creates a KafkaRelayArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.KafkaRelayArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.KafkaRelayArgs} KafkaRelayArgs - */ - KafkaRelayArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.KafkaRelayArgs) - return object; - var message = new $root.protos.args.KafkaRelayArgs(); - if (object.topics) { - if (!Array.isArray(object.topics)) - throw TypeError(".protos.args.KafkaRelayArgs.topics: array expected"); - message.topics = []; - for (var i = 0; i < object.topics.length; ++i) - message.topics[i] = String(object.topics[i]); - } - if (object.readOffset != null) - if ($util.Long) - (message.readOffset = $util.Long.fromValue(object.readOffset)).unsigned = false; - else if (typeof object.readOffset === "string") - message.readOffset = parseInt(object.readOffset, 10); - else if (typeof object.readOffset === "number") - message.readOffset = object.readOffset; - else if (typeof object.readOffset === "object") - message.readOffset = new $util.LongBits(object.readOffset.low >>> 0, object.readOffset.high >>> 0).toNumber(); - if (object.useConsumerGroup != null) - message.useConsumerGroup = Boolean(object.useConsumerGroup); - if (object.consumerGroupName != null) - message.consumerGroupName = String(object.consumerGroupName); - if (object.maxWaitSeconds != null) - message.maxWaitSeconds = object.maxWaitSeconds | 0; - if (object.minBytes != null) - message.minBytes = object.minBytes | 0; - if (object.maxBytes != null) - message.maxBytes = object.maxBytes | 0; - if (object.commitIntervalSeconds != null) - message.commitIntervalSeconds = object.commitIntervalSeconds | 0; - if (object.rebalanceTimeoutSeconds != null) - message.rebalanceTimeoutSeconds = object.rebalanceTimeoutSeconds | 0; - if (object.queueCapacity != null) - message.queueCapacity = object.queueCapacity | 0; - return message; - }; - - /** - * Creates a plain object from a KafkaRelayArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.KafkaRelayArgs - * @static - * @param {protos.args.KafkaRelayArgs} message KafkaRelayArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KafkaRelayArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.topics = []; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.readOffset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.readOffset = options.longs === String ? "0" : 0; - object.useConsumerGroup = false; - object.consumerGroupName = ""; - object.maxWaitSeconds = 0; - object.minBytes = 0; - object.maxBytes = 0; - object.commitIntervalSeconds = 0; - object.rebalanceTimeoutSeconds = 0; - object.queueCapacity = 0; - } - if (message.topics && message.topics.length) { - object.topics = []; - for (var j = 0; j < message.topics.length; ++j) - object.topics[j] = message.topics[j]; - } - if (message.readOffset != null && message.hasOwnProperty("readOffset")) - if (typeof message.readOffset === "number") - object.readOffset = options.longs === String ? String(message.readOffset) : message.readOffset; - else - object.readOffset = options.longs === String ? $util.Long.prototype.toString.call(message.readOffset) : options.longs === Number ? new $util.LongBits(message.readOffset.low >>> 0, message.readOffset.high >>> 0).toNumber() : message.readOffset; - if (message.useConsumerGroup != null && message.hasOwnProperty("useConsumerGroup")) - object.useConsumerGroup = message.useConsumerGroup; - if (message.consumerGroupName != null && message.hasOwnProperty("consumerGroupName")) - object.consumerGroupName = message.consumerGroupName; - if (message.maxWaitSeconds != null && message.hasOwnProperty("maxWaitSeconds")) - object.maxWaitSeconds = message.maxWaitSeconds; - if (message.minBytes != null && message.hasOwnProperty("minBytes")) - object.minBytes = message.minBytes; - if (message.maxBytes != null && message.hasOwnProperty("maxBytes")) - object.maxBytes = message.maxBytes; - if (message.commitIntervalSeconds != null && message.hasOwnProperty("commitIntervalSeconds")) - object.commitIntervalSeconds = message.commitIntervalSeconds; - if (message.rebalanceTimeoutSeconds != null && message.hasOwnProperty("rebalanceTimeoutSeconds")) - object.rebalanceTimeoutSeconds = message.rebalanceTimeoutSeconds; - if (message.queueCapacity != null && message.hasOwnProperty("queueCapacity")) - object.queueCapacity = message.queueCapacity; - return object; - }; - - /** - * Converts this KafkaRelayArgs to JSON. - * @function toJSON - * @memberof protos.args.KafkaRelayArgs - * @instance - * @returns {Object.} JSON object - */ - KafkaRelayArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return KafkaRelayArgs; - })(); - - args.KubeMQQueueConn = (function() { - - /** - * Properties of a KubeMQQueueConn. - * @memberof protos.args - * @interface IKubeMQQueueConn - * @property {string|null} [address] KubeMQQueueConn address - * @property {string|null} [authToken] KubeMQQueueConn authToken - * @property {string|null} [tlsClientCert] KubeMQQueueConn tlsClientCert - * @property {string|null} [clientId] KubeMQQueueConn clientId - */ - - /** - * Constructs a new KubeMQQueueConn. - * @memberof protos.args - * @classdesc Represents a KubeMQQueueConn. - * @implements IKubeMQQueueConn - * @constructor - * @param {protos.args.IKubeMQQueueConn=} [properties] Properties to set - */ - function KubeMQQueueConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * KubeMQQueueConn address. - * @member {string} address - * @memberof protos.args.KubeMQQueueConn - * @instance - */ - KubeMQQueueConn.prototype.address = ""; - - /** - * KubeMQQueueConn authToken. - * @member {string} authToken - * @memberof protos.args.KubeMQQueueConn - * @instance - */ - KubeMQQueueConn.prototype.authToken = ""; - - /** - * KubeMQQueueConn tlsClientCert. - * @member {string} tlsClientCert - * @memberof protos.args.KubeMQQueueConn - * @instance - */ - KubeMQQueueConn.prototype.tlsClientCert = ""; - - /** - * KubeMQQueueConn clientId. - * @member {string} clientId - * @memberof protos.args.KubeMQQueueConn - * @instance - */ - KubeMQQueueConn.prototype.clientId = ""; - - /** - * Creates a new KubeMQQueueConn instance using the specified properties. - * @function create - * @memberof protos.args.KubeMQQueueConn - * @static - * @param {protos.args.IKubeMQQueueConn=} [properties] Properties to set - * @returns {protos.args.KubeMQQueueConn} KubeMQQueueConn instance - */ - KubeMQQueueConn.create = function create(properties) { - return new KubeMQQueueConn(properties); - }; - - /** - * Encodes the specified KubeMQQueueConn message. Does not implicitly {@link protos.args.KubeMQQueueConn.verify|verify} messages. - * @function encode - * @memberof protos.args.KubeMQQueueConn - * @static - * @param {protos.args.IKubeMQQueueConn} message KubeMQQueueConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KubeMQQueueConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - if (message.authToken != null && Object.hasOwnProperty.call(message, "authToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.authToken); - if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tlsClientCert); - if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.clientId); - return writer; - }; - - /** - * Encodes the specified KubeMQQueueConn message, length delimited. Does not implicitly {@link protos.args.KubeMQQueueConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.KubeMQQueueConn - * @static - * @param {protos.args.IKubeMQQueueConn} message KubeMQQueueConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KubeMQQueueConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a KubeMQQueueConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.KubeMQQueueConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.KubeMQQueueConn} KubeMQQueueConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KubeMQQueueConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KubeMQQueueConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.authToken = reader.string(); - break; - case 3: - message.tlsClientCert = reader.string(); - break; - case 4: - message.clientId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a KubeMQQueueConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.KubeMQQueueConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.KubeMQQueueConn} KubeMQQueueConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KubeMQQueueConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KubeMQQueueConn message. - * @function verify - * @memberof protos.args.KubeMQQueueConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KubeMQQueueConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - if (message.authToken != null && message.hasOwnProperty("authToken")) - if (!$util.isString(message.authToken)) - return "authToken: string expected"; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - if (!$util.isString(message.tlsClientCert)) - return "tlsClientCert: string expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!$util.isString(message.clientId)) - return "clientId: string expected"; - return null; - }; - - /** - * Creates a KubeMQQueueConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.KubeMQQueueConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.KubeMQQueueConn} KubeMQQueueConn - */ - KubeMQQueueConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.KubeMQQueueConn) - return object; - var message = new $root.protos.args.KubeMQQueueConn(); - if (object.address != null) - message.address = String(object.address); - if (object.authToken != null) - message.authToken = String(object.authToken); - if (object.tlsClientCert != null) - message.tlsClientCert = String(object.tlsClientCert); - if (object.clientId != null) - message.clientId = String(object.clientId); - return message; - }; - - /** - * Creates a plain object from a KubeMQQueueConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.KubeMQQueueConn - * @static - * @param {protos.args.KubeMQQueueConn} message KubeMQQueueConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KubeMQQueueConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.address = ""; - object.authToken = ""; - object.tlsClientCert = ""; - object.clientId = ""; - } - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.authToken != null && message.hasOwnProperty("authToken")) - object.authToken = message.authToken; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - object.tlsClientCert = message.tlsClientCert; - if (message.clientId != null && message.hasOwnProperty("clientId")) - object.clientId = message.clientId; - return object; - }; - - /** - * Converts this KubeMQQueueConn to JSON. - * @function toJSON - * @memberof protos.args.KubeMQQueueConn - * @instance - * @returns {Object.} JSON object - */ - KubeMQQueueConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return KubeMQQueueConn; - })(); - - args.KubeMQQueueReadArgs = (function() { - - /** - * Properties of a KubeMQQueueReadArgs. - * @memberof protos.args - * @interface IKubeMQQueueReadArgs - * @property {string|null} [queueName] KubeMQQueueReadArgs queueName - */ - - /** - * Constructs a new KubeMQQueueReadArgs. - * @memberof protos.args - * @classdesc Represents a KubeMQQueueReadArgs. - * @implements IKubeMQQueueReadArgs - * @constructor - * @param {protos.args.IKubeMQQueueReadArgs=} [properties] Properties to set - */ - function KubeMQQueueReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * KubeMQQueueReadArgs queueName. - * @member {string} queueName - * @memberof protos.args.KubeMQQueueReadArgs - * @instance - */ - KubeMQQueueReadArgs.prototype.queueName = ""; - - /** - * Creates a new KubeMQQueueReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.KubeMQQueueReadArgs - * @static - * @param {protos.args.IKubeMQQueueReadArgs=} [properties] Properties to set - * @returns {protos.args.KubeMQQueueReadArgs} KubeMQQueueReadArgs instance - */ - KubeMQQueueReadArgs.create = function create(properties) { - return new KubeMQQueueReadArgs(properties); - }; - - /** - * Encodes the specified KubeMQQueueReadArgs message. Does not implicitly {@link protos.args.KubeMQQueueReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.KubeMQQueueReadArgs - * @static - * @param {protos.args.IKubeMQQueueReadArgs} message KubeMQQueueReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KubeMQQueueReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.queueName != null && Object.hasOwnProperty.call(message, "queueName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.queueName); - return writer; - }; - - /** - * Encodes the specified KubeMQQueueReadArgs message, length delimited. Does not implicitly {@link protos.args.KubeMQQueueReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.KubeMQQueueReadArgs - * @static - * @param {protos.args.IKubeMQQueueReadArgs} message KubeMQQueueReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KubeMQQueueReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a KubeMQQueueReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.KubeMQQueueReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.KubeMQQueueReadArgs} KubeMQQueueReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KubeMQQueueReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KubeMQQueueReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queueName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a KubeMQQueueReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.KubeMQQueueReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.KubeMQQueueReadArgs} KubeMQQueueReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KubeMQQueueReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KubeMQQueueReadArgs message. - * @function verify - * @memberof protos.args.KubeMQQueueReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KubeMQQueueReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.queueName != null && message.hasOwnProperty("queueName")) - if (!$util.isString(message.queueName)) - return "queueName: string expected"; - return null; - }; - - /** - * Creates a KubeMQQueueReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.KubeMQQueueReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.KubeMQQueueReadArgs} KubeMQQueueReadArgs - */ - KubeMQQueueReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.KubeMQQueueReadArgs) - return object; - var message = new $root.protos.args.KubeMQQueueReadArgs(); - if (object.queueName != null) - message.queueName = String(object.queueName); - return message; - }; - - /** - * Creates a plain object from a KubeMQQueueReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.KubeMQQueueReadArgs - * @static - * @param {protos.args.KubeMQQueueReadArgs} message KubeMQQueueReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KubeMQQueueReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.queueName = ""; - if (message.queueName != null && message.hasOwnProperty("queueName")) - object.queueName = message.queueName; - return object; - }; - - /** - * Converts this KubeMQQueueReadArgs to JSON. - * @function toJSON - * @memberof protos.args.KubeMQQueueReadArgs - * @instance - * @returns {Object.} JSON object - */ - KubeMQQueueReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return KubeMQQueueReadArgs; - })(); - - args.KubeMQQueueWriteArgs = (function() { - - /** - * Properties of a KubeMQQueueWriteArgs. - * @memberof protos.args - * @interface IKubeMQQueueWriteArgs - * @property {string|null} [queueName] KubeMQQueueWriteArgs queueName - */ - - /** - * Constructs a new KubeMQQueueWriteArgs. - * @memberof protos.args - * @classdesc Represents a KubeMQQueueWriteArgs. - * @implements IKubeMQQueueWriteArgs - * @constructor - * @param {protos.args.IKubeMQQueueWriteArgs=} [properties] Properties to set - */ - function KubeMQQueueWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * KubeMQQueueWriteArgs queueName. - * @member {string} queueName - * @memberof protos.args.KubeMQQueueWriteArgs - * @instance - */ - KubeMQQueueWriteArgs.prototype.queueName = ""; - - /** - * Creates a new KubeMQQueueWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.KubeMQQueueWriteArgs - * @static - * @param {protos.args.IKubeMQQueueWriteArgs=} [properties] Properties to set - * @returns {protos.args.KubeMQQueueWriteArgs} KubeMQQueueWriteArgs instance - */ - KubeMQQueueWriteArgs.create = function create(properties) { - return new KubeMQQueueWriteArgs(properties); - }; - - /** - * Encodes the specified KubeMQQueueWriteArgs message. Does not implicitly {@link protos.args.KubeMQQueueWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.KubeMQQueueWriteArgs - * @static - * @param {protos.args.IKubeMQQueueWriteArgs} message KubeMQQueueWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KubeMQQueueWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.queueName != null && Object.hasOwnProperty.call(message, "queueName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.queueName); - return writer; - }; - - /** - * Encodes the specified KubeMQQueueWriteArgs message, length delimited. Does not implicitly {@link protos.args.KubeMQQueueWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.KubeMQQueueWriteArgs - * @static - * @param {protos.args.IKubeMQQueueWriteArgs} message KubeMQQueueWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KubeMQQueueWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a KubeMQQueueWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.KubeMQQueueWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.KubeMQQueueWriteArgs} KubeMQQueueWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KubeMQQueueWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.KubeMQQueueWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queueName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a KubeMQQueueWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.KubeMQQueueWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.KubeMQQueueWriteArgs} KubeMQQueueWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KubeMQQueueWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KubeMQQueueWriteArgs message. - * @function verify - * @memberof protos.args.KubeMQQueueWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KubeMQQueueWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.queueName != null && message.hasOwnProperty("queueName")) - if (!$util.isString(message.queueName)) - return "queueName: string expected"; - return null; - }; - - /** - * Creates a KubeMQQueueWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.KubeMQQueueWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.KubeMQQueueWriteArgs} KubeMQQueueWriteArgs - */ - KubeMQQueueWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.KubeMQQueueWriteArgs) - return object; - var message = new $root.protos.args.KubeMQQueueWriteArgs(); - if (object.queueName != null) - message.queueName = String(object.queueName); - return message; - }; - - /** - * Creates a plain object from a KubeMQQueueWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.KubeMQQueueWriteArgs - * @static - * @param {protos.args.KubeMQQueueWriteArgs} message KubeMQQueueWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KubeMQQueueWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.queueName = ""; - if (message.queueName != null && message.hasOwnProperty("queueName")) - object.queueName = message.queueName; - return object; - }; - - /** - * Converts this KubeMQQueueWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.KubeMQQueueWriteArgs - * @instance - * @returns {Object.} JSON object - */ - KubeMQQueueWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return KubeMQQueueWriteArgs; - })(); - - args.MemphisConn = (function() { - - /** - * Properties of a MemphisConn. - * @memberof protos.args - * @interface IMemphisConn - * @property {string|null} [address] MemphisConn address - * @property {string|null} [username] MemphisConn username - * @property {string|null} [brokerToken] MemphisConn brokerToken - */ - - /** - * Constructs a new MemphisConn. - * @memberof protos.args - * @classdesc Represents a MemphisConn. - * @implements IMemphisConn - * @constructor - * @param {protos.args.IMemphisConn=} [properties] Properties to set - */ - function MemphisConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MemphisConn address. - * @member {string} address - * @memberof protos.args.MemphisConn - * @instance - */ - MemphisConn.prototype.address = ""; - - /** - * MemphisConn username. - * @member {string} username - * @memberof protos.args.MemphisConn - * @instance - */ - MemphisConn.prototype.username = ""; - - /** - * MemphisConn brokerToken. - * @member {string} brokerToken - * @memberof protos.args.MemphisConn - * @instance - */ - MemphisConn.prototype.brokerToken = ""; - - /** - * Creates a new MemphisConn instance using the specified properties. - * @function create - * @memberof protos.args.MemphisConn - * @static - * @param {protos.args.IMemphisConn=} [properties] Properties to set - * @returns {protos.args.MemphisConn} MemphisConn instance - */ - MemphisConn.create = function create(properties) { - return new MemphisConn(properties); - }; - - /** - * Encodes the specified MemphisConn message. Does not implicitly {@link protos.args.MemphisConn.verify|verify} messages. - * @function encode - * @memberof protos.args.MemphisConn - * @static - * @param {protos.args.IMemphisConn} message MemphisConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MemphisConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.brokerToken != null && Object.hasOwnProperty.call(message, "brokerToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.brokerToken); - return writer; - }; - - /** - * Encodes the specified MemphisConn message, length delimited. Does not implicitly {@link protos.args.MemphisConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.MemphisConn - * @static - * @param {protos.args.IMemphisConn} message MemphisConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MemphisConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MemphisConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.MemphisConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.MemphisConn} MemphisConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MemphisConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MemphisConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.username = reader.string(); - break; - case 3: - message.brokerToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MemphisConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.MemphisConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.MemphisConn} MemphisConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MemphisConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MemphisConn message. - * @function verify - * @memberof protos.args.MemphisConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MemphisConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.brokerToken != null && message.hasOwnProperty("brokerToken")) - if (!$util.isString(message.brokerToken)) - return "brokerToken: string expected"; - return null; - }; - - /** - * Creates a MemphisConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.MemphisConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.MemphisConn} MemphisConn - */ - MemphisConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.MemphisConn) - return object; - var message = new $root.protos.args.MemphisConn(); - if (object.address != null) - message.address = String(object.address); - if (object.username != null) - message.username = String(object.username); - if (object.brokerToken != null) - message.brokerToken = String(object.brokerToken); - return message; - }; - - /** - * Creates a plain object from a MemphisConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.MemphisConn - * @static - * @param {protos.args.MemphisConn} message MemphisConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MemphisConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.address = ""; - object.username = ""; - object.brokerToken = ""; - } - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.brokerToken != null && message.hasOwnProperty("brokerToken")) - object.brokerToken = message.brokerToken; - return object; - }; - - /** - * Converts this MemphisConn to JSON. - * @function toJSON - * @memberof protos.args.MemphisConn - * @instance - * @returns {Object.} JSON object - */ - MemphisConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MemphisConn; - })(); - - args.MemphisReadArgs = (function() { - - /** - * Properties of a MemphisReadArgs. - * @memberof protos.args - * @interface IMemphisReadArgs - * @property {string|null} [station] MemphisReadArgs station - * @property {string|null} [consumerName] MemphisReadArgs consumerName - * @property {string|null} [consumerGroup] MemphisReadArgs consumerGroup - */ - - /** - * Constructs a new MemphisReadArgs. - * @memberof protos.args - * @classdesc Represents a MemphisReadArgs. - * @implements IMemphisReadArgs - * @constructor - * @param {protos.args.IMemphisReadArgs=} [properties] Properties to set - */ - function MemphisReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MemphisReadArgs station. - * @member {string} station - * @memberof protos.args.MemphisReadArgs - * @instance - */ - MemphisReadArgs.prototype.station = ""; - - /** - * MemphisReadArgs consumerName. - * @member {string} consumerName - * @memberof protos.args.MemphisReadArgs - * @instance - */ - MemphisReadArgs.prototype.consumerName = ""; - - /** - * MemphisReadArgs consumerGroup. - * @member {string} consumerGroup - * @memberof protos.args.MemphisReadArgs - * @instance - */ - MemphisReadArgs.prototype.consumerGroup = ""; - - /** - * Creates a new MemphisReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.MemphisReadArgs - * @static - * @param {protos.args.IMemphisReadArgs=} [properties] Properties to set - * @returns {protos.args.MemphisReadArgs} MemphisReadArgs instance - */ - MemphisReadArgs.create = function create(properties) { - return new MemphisReadArgs(properties); - }; - - /** - * Encodes the specified MemphisReadArgs message. Does not implicitly {@link protos.args.MemphisReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.MemphisReadArgs - * @static - * @param {protos.args.IMemphisReadArgs} message MemphisReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MemphisReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.station != null && Object.hasOwnProperty.call(message, "station")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.station); - if (message.consumerName != null && Object.hasOwnProperty.call(message, "consumerName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.consumerName); - if (message.consumerGroup != null && Object.hasOwnProperty.call(message, "consumerGroup")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.consumerGroup); - return writer; - }; - - /** - * Encodes the specified MemphisReadArgs message, length delimited. Does not implicitly {@link protos.args.MemphisReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.MemphisReadArgs - * @static - * @param {protos.args.IMemphisReadArgs} message MemphisReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MemphisReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MemphisReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.MemphisReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.MemphisReadArgs} MemphisReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MemphisReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MemphisReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.station = reader.string(); - break; - case 2: - message.consumerName = reader.string(); - break; - case 3: - message.consumerGroup = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MemphisReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.MemphisReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.MemphisReadArgs} MemphisReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MemphisReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MemphisReadArgs message. - * @function verify - * @memberof protos.args.MemphisReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MemphisReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.station != null && message.hasOwnProperty("station")) - if (!$util.isString(message.station)) - return "station: string expected"; - if (message.consumerName != null && message.hasOwnProperty("consumerName")) - if (!$util.isString(message.consumerName)) - return "consumerName: string expected"; - if (message.consumerGroup != null && message.hasOwnProperty("consumerGroup")) - if (!$util.isString(message.consumerGroup)) - return "consumerGroup: string expected"; - return null; - }; - - /** - * Creates a MemphisReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.MemphisReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.MemphisReadArgs} MemphisReadArgs - */ - MemphisReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.MemphisReadArgs) - return object; - var message = new $root.protos.args.MemphisReadArgs(); - if (object.station != null) - message.station = String(object.station); - if (object.consumerName != null) - message.consumerName = String(object.consumerName); - if (object.consumerGroup != null) - message.consumerGroup = String(object.consumerGroup); - return message; - }; - - /** - * Creates a plain object from a MemphisReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.MemphisReadArgs - * @static - * @param {protos.args.MemphisReadArgs} message MemphisReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MemphisReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.station = ""; - object.consumerName = ""; - object.consumerGroup = ""; - } - if (message.station != null && message.hasOwnProperty("station")) - object.station = message.station; - if (message.consumerName != null && message.hasOwnProperty("consumerName")) - object.consumerName = message.consumerName; - if (message.consumerGroup != null && message.hasOwnProperty("consumerGroup")) - object.consumerGroup = message.consumerGroup; - return object; - }; - - /** - * Converts this MemphisReadArgs to JSON. - * @function toJSON - * @memberof protos.args.MemphisReadArgs - * @instance - * @returns {Object.} JSON object - */ - MemphisReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MemphisReadArgs; - })(); - - args.MemphisWriteArgs = (function() { - - /** - * Properties of a MemphisWriteArgs. - * @memberof protos.args - * @interface IMemphisWriteArgs - * @property {string|null} [station] MemphisWriteArgs station - * @property {string|null} [producerName] MemphisWriteArgs producerName - * @property {Object.|null} [headers] MemphisWriteArgs headers - * @property {string|null} [messageId] MemphisWriteArgs messageId - */ - - /** - * Constructs a new MemphisWriteArgs. - * @memberof protos.args - * @classdesc Represents a MemphisWriteArgs. - * @implements IMemphisWriteArgs - * @constructor - * @param {protos.args.IMemphisWriteArgs=} [properties] Properties to set - */ - function MemphisWriteArgs(properties) { - this.headers = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MemphisWriteArgs station. - * @member {string} station - * @memberof protos.args.MemphisWriteArgs - * @instance - */ - MemphisWriteArgs.prototype.station = ""; - - /** - * MemphisWriteArgs producerName. - * @member {string} producerName - * @memberof protos.args.MemphisWriteArgs - * @instance - */ - MemphisWriteArgs.prototype.producerName = ""; - - /** - * MemphisWriteArgs headers. - * @member {Object.} headers - * @memberof protos.args.MemphisWriteArgs - * @instance - */ - MemphisWriteArgs.prototype.headers = $util.emptyObject; - - /** - * MemphisWriteArgs messageId. - * @member {string} messageId - * @memberof protos.args.MemphisWriteArgs - * @instance - */ - MemphisWriteArgs.prototype.messageId = ""; - - /** - * Creates a new MemphisWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.MemphisWriteArgs - * @static - * @param {protos.args.IMemphisWriteArgs=} [properties] Properties to set - * @returns {protos.args.MemphisWriteArgs} MemphisWriteArgs instance - */ - MemphisWriteArgs.create = function create(properties) { - return new MemphisWriteArgs(properties); - }; - - /** - * Encodes the specified MemphisWriteArgs message. Does not implicitly {@link protos.args.MemphisWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.MemphisWriteArgs - * @static - * @param {protos.args.IMemphisWriteArgs} message MemphisWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MemphisWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.station != null && Object.hasOwnProperty.call(message, "station")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.station); - if (message.producerName != null && Object.hasOwnProperty.call(message, "producerName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.producerName); - if (message.headers != null && Object.hasOwnProperty.call(message, "headers")) - for (var keys = Object.keys(message.headers), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.headers[keys[i]]).ldelim(); - if (message.messageId != null && Object.hasOwnProperty.call(message, "messageId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.messageId); - return writer; - }; - - /** - * Encodes the specified MemphisWriteArgs message, length delimited. Does not implicitly {@link protos.args.MemphisWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.MemphisWriteArgs - * @static - * @param {protos.args.IMemphisWriteArgs} message MemphisWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MemphisWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MemphisWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.MemphisWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.MemphisWriteArgs} MemphisWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MemphisWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MemphisWriteArgs(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.station = reader.string(); - break; - case 2: - message.producerName = reader.string(); - break; - case 3: - if (message.headers === $util.emptyObject) - message.headers = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.headers[key] = value; - break; - case 4: - message.messageId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MemphisWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.MemphisWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.MemphisWriteArgs} MemphisWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MemphisWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MemphisWriteArgs message. - * @function verify - * @memberof protos.args.MemphisWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MemphisWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.station != null && message.hasOwnProperty("station")) - if (!$util.isString(message.station)) - return "station: string expected"; - if (message.producerName != null && message.hasOwnProperty("producerName")) - if (!$util.isString(message.producerName)) - return "producerName: string expected"; - if (message.headers != null && message.hasOwnProperty("headers")) { - if (!$util.isObject(message.headers)) - return "headers: object expected"; - var key = Object.keys(message.headers); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.headers[key[i]])) - return "headers: string{k:string} expected"; - } - if (message.messageId != null && message.hasOwnProperty("messageId")) - if (!$util.isString(message.messageId)) - return "messageId: string expected"; - return null; - }; - - /** - * Creates a MemphisWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.MemphisWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.MemphisWriteArgs} MemphisWriteArgs - */ - MemphisWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.MemphisWriteArgs) - return object; - var message = new $root.protos.args.MemphisWriteArgs(); - if (object.station != null) - message.station = String(object.station); - if (object.producerName != null) - message.producerName = String(object.producerName); - if (object.headers) { - if (typeof object.headers !== "object") - throw TypeError(".protos.args.MemphisWriteArgs.headers: object expected"); - message.headers = {}; - for (var keys = Object.keys(object.headers), i = 0; i < keys.length; ++i) - message.headers[keys[i]] = String(object.headers[keys[i]]); - } - if (object.messageId != null) - message.messageId = String(object.messageId); - return message; - }; - - /** - * Creates a plain object from a MemphisWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.MemphisWriteArgs - * @static - * @param {protos.args.MemphisWriteArgs} message MemphisWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MemphisWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.headers = {}; - if (options.defaults) { - object.station = ""; - object.producerName = ""; - object.messageId = ""; - } - if (message.station != null && message.hasOwnProperty("station")) - object.station = message.station; - if (message.producerName != null && message.hasOwnProperty("producerName")) - object.producerName = message.producerName; - var keys2; - if (message.headers && (keys2 = Object.keys(message.headers)).length) { - object.headers = {}; - for (var j = 0; j < keys2.length; ++j) - object.headers[keys2[j]] = message.headers[keys2[j]]; - } - if (message.messageId != null && message.hasOwnProperty("messageId")) - object.messageId = message.messageId; - return object; - }; - - /** - * Converts this MemphisWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.MemphisWriteArgs - * @instance - * @returns {Object.} JSON object - */ - MemphisWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MemphisWriteArgs; - })(); - - args.MongoConn = (function() { - - /** - * Properties of a MongoConn. - * @memberof protos.args - * @interface IMongoConn - * @property {string|null} [dsn] MongoConn dsn - */ - - /** - * Constructs a new MongoConn. - * @memberof protos.args - * @classdesc Represents a MongoConn. - * @implements IMongoConn - * @constructor - * @param {protos.args.IMongoConn=} [properties] Properties to set - */ - function MongoConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MongoConn dsn. - * @member {string} dsn - * @memberof protos.args.MongoConn - * @instance - */ - MongoConn.prototype.dsn = ""; - - /** - * Creates a new MongoConn instance using the specified properties. - * @function create - * @memberof protos.args.MongoConn - * @static - * @param {protos.args.IMongoConn=} [properties] Properties to set - * @returns {protos.args.MongoConn} MongoConn instance - */ - MongoConn.create = function create(properties) { - return new MongoConn(properties); - }; - - /** - * Encodes the specified MongoConn message. Does not implicitly {@link protos.args.MongoConn.verify|verify} messages. - * @function encode - * @memberof protos.args.MongoConn - * @static - * @param {protos.args.IMongoConn} message MongoConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MongoConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dsn != null && Object.hasOwnProperty.call(message, "dsn")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dsn); - return writer; - }; - - /** - * Encodes the specified MongoConn message, length delimited. Does not implicitly {@link protos.args.MongoConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.MongoConn - * @static - * @param {protos.args.IMongoConn} message MongoConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MongoConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MongoConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.MongoConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.MongoConn} MongoConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MongoConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MongoConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.dsn = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MongoConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.MongoConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.MongoConn} MongoConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MongoConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MongoConn message. - * @function verify - * @memberof protos.args.MongoConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MongoConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dsn != null && message.hasOwnProperty("dsn")) - if (!$util.isString(message.dsn)) - return "dsn: string expected"; - return null; - }; - - /** - * Creates a MongoConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.MongoConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.MongoConn} MongoConn - */ - MongoConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.MongoConn) - return object; - var message = new $root.protos.args.MongoConn(); - if (object.dsn != null) - message.dsn = String(object.dsn); - return message; - }; - - /** - * Creates a plain object from a MongoConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.MongoConn - * @static - * @param {protos.args.MongoConn} message MongoConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MongoConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.dsn = ""; - if (message.dsn != null && message.hasOwnProperty("dsn")) - object.dsn = message.dsn; - return object; - }; - - /** - * Converts this MongoConn to JSON. - * @function toJSON - * @memberof protos.args.MongoConn - * @instance - * @returns {Object.} JSON object - */ - MongoConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MongoConn; - })(); - - args.MongoReadArgs = (function() { - - /** - * Properties of a MongoReadArgs. - * @memberof protos.args - * @interface IMongoReadArgs - * @property {string|null} [database] MongoReadArgs database - * @property {string|null} [collection] MongoReadArgs collection - * @property {boolean|null} [includeFullDocument] MongoReadArgs includeFullDocument - */ - - /** - * Constructs a new MongoReadArgs. - * @memberof protos.args - * @classdesc Represents a MongoReadArgs. - * @implements IMongoReadArgs - * @constructor - * @param {protos.args.IMongoReadArgs=} [properties] Properties to set - */ - function MongoReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MongoReadArgs database. - * @member {string} database - * @memberof protos.args.MongoReadArgs - * @instance - */ - MongoReadArgs.prototype.database = ""; - - /** - * MongoReadArgs collection. - * @member {string} collection - * @memberof protos.args.MongoReadArgs - * @instance - */ - MongoReadArgs.prototype.collection = ""; - - /** - * MongoReadArgs includeFullDocument. - * @member {boolean} includeFullDocument - * @memberof protos.args.MongoReadArgs - * @instance - */ - MongoReadArgs.prototype.includeFullDocument = false; - - /** - * Creates a new MongoReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.MongoReadArgs - * @static - * @param {protos.args.IMongoReadArgs=} [properties] Properties to set - * @returns {protos.args.MongoReadArgs} MongoReadArgs instance - */ - MongoReadArgs.create = function create(properties) { - return new MongoReadArgs(properties); - }; - - /** - * Encodes the specified MongoReadArgs message. Does not implicitly {@link protos.args.MongoReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.MongoReadArgs - * @static - * @param {protos.args.IMongoReadArgs} message MongoReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MongoReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.database != null && Object.hasOwnProperty.call(message, "database")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.database); - if (message.collection != null && Object.hasOwnProperty.call(message, "collection")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.collection); - if (message.includeFullDocument != null && Object.hasOwnProperty.call(message, "includeFullDocument")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.includeFullDocument); - return writer; - }; - - /** - * Encodes the specified MongoReadArgs message, length delimited. Does not implicitly {@link protos.args.MongoReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.MongoReadArgs - * @static - * @param {protos.args.IMongoReadArgs} message MongoReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MongoReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MongoReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.MongoReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.MongoReadArgs} MongoReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MongoReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MongoReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.database = reader.string(); - break; - case 2: - message.collection = reader.string(); - break; - case 3: - message.includeFullDocument = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MongoReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.MongoReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.MongoReadArgs} MongoReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MongoReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MongoReadArgs message. - * @function verify - * @memberof protos.args.MongoReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MongoReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.database != null && message.hasOwnProperty("database")) - if (!$util.isString(message.database)) - return "database: string expected"; - if (message.collection != null && message.hasOwnProperty("collection")) - if (!$util.isString(message.collection)) - return "collection: string expected"; - if (message.includeFullDocument != null && message.hasOwnProperty("includeFullDocument")) - if (typeof message.includeFullDocument !== "boolean") - return "includeFullDocument: boolean expected"; - return null; - }; - - /** - * Creates a MongoReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.MongoReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.MongoReadArgs} MongoReadArgs - */ - MongoReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.MongoReadArgs) - return object; - var message = new $root.protos.args.MongoReadArgs(); - if (object.database != null) - message.database = String(object.database); - if (object.collection != null) - message.collection = String(object.collection); - if (object.includeFullDocument != null) - message.includeFullDocument = Boolean(object.includeFullDocument); - return message; - }; - - /** - * Creates a plain object from a MongoReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.MongoReadArgs - * @static - * @param {protos.args.MongoReadArgs} message MongoReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MongoReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.database = ""; - object.collection = ""; - object.includeFullDocument = false; - } - if (message.database != null && message.hasOwnProperty("database")) - object.database = message.database; - if (message.collection != null && message.hasOwnProperty("collection")) - object.collection = message.collection; - if (message.includeFullDocument != null && message.hasOwnProperty("includeFullDocument")) - object.includeFullDocument = message.includeFullDocument; - return object; - }; - - /** - * Converts this MongoReadArgs to JSON. - * @function toJSON - * @memberof protos.args.MongoReadArgs - * @instance - * @returns {Object.} JSON object - */ - MongoReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MongoReadArgs; - })(); - - /** - * MQTTQoSLevel enum. - * @name protos.args.MQTTQoSLevel - * @enum {number} - * @property {number} MQTT_QOS_LEVEL_AT_MOST_ONCE=0 MQTT_QOS_LEVEL_AT_MOST_ONCE value - * @property {number} MQTT_QOS_LEVEL_AT_LEAST_ONCE=1 MQTT_QOS_LEVEL_AT_LEAST_ONCE value - * @property {number} MQTT_QOS_LEVEL_EXACTLY_ONCE=2 MQTT_QOS_LEVEL_EXACTLY_ONCE value - */ - args.MQTTQoSLevel = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MQTT_QOS_LEVEL_AT_MOST_ONCE"] = 0; - values[valuesById[1] = "MQTT_QOS_LEVEL_AT_LEAST_ONCE"] = 1; - values[valuesById[2] = "MQTT_QOS_LEVEL_EXACTLY_ONCE"] = 2; - return values; - })(); - - args.MQTTTLSOptions = (function() { - - /** - * Properties of a MQTTTLSOptions. - * @memberof protos.args - * @interface IMQTTTLSOptions - * @property {string|null} [tlsCaCert] MQTTTLSOptions tlsCaCert - * @property {string|null} [tlsClientCert] MQTTTLSOptions tlsClientCert - * @property {string|null} [tlsClientKey] MQTTTLSOptions tlsClientKey - * @property {boolean|null} [tlsSkipVerify] MQTTTLSOptions tlsSkipVerify - */ - - /** - * Constructs a new MQTTTLSOptions. - * @memberof protos.args - * @classdesc Represents a MQTTTLSOptions. - * @implements IMQTTTLSOptions - * @constructor - * @param {protos.args.IMQTTTLSOptions=} [properties] Properties to set - */ - function MQTTTLSOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MQTTTLSOptions tlsCaCert. - * @member {string} tlsCaCert - * @memberof protos.args.MQTTTLSOptions - * @instance - */ - MQTTTLSOptions.prototype.tlsCaCert = ""; - - /** - * MQTTTLSOptions tlsClientCert. - * @member {string} tlsClientCert - * @memberof protos.args.MQTTTLSOptions - * @instance - */ - MQTTTLSOptions.prototype.tlsClientCert = ""; - - /** - * MQTTTLSOptions tlsClientKey. - * @member {string} tlsClientKey - * @memberof protos.args.MQTTTLSOptions - * @instance - */ - MQTTTLSOptions.prototype.tlsClientKey = ""; - - /** - * MQTTTLSOptions tlsSkipVerify. - * @member {boolean} tlsSkipVerify - * @memberof protos.args.MQTTTLSOptions - * @instance - */ - MQTTTLSOptions.prototype.tlsSkipVerify = false; - - /** - * Creates a new MQTTTLSOptions instance using the specified properties. - * @function create - * @memberof protos.args.MQTTTLSOptions - * @static - * @param {protos.args.IMQTTTLSOptions=} [properties] Properties to set - * @returns {protos.args.MQTTTLSOptions} MQTTTLSOptions instance - */ - MQTTTLSOptions.create = function create(properties) { - return new MQTTTLSOptions(properties); - }; - - /** - * Encodes the specified MQTTTLSOptions message. Does not implicitly {@link protos.args.MQTTTLSOptions.verify|verify} messages. - * @function encode - * @memberof protos.args.MQTTTLSOptions - * @static - * @param {protos.args.IMQTTTLSOptions} message MQTTTLSOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MQTTTLSOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tlsCaCert != null && Object.hasOwnProperty.call(message, "tlsCaCert")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tlsCaCert); - if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tlsClientCert); - if (message.tlsClientKey != null && Object.hasOwnProperty.call(message, "tlsClientKey")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tlsClientKey); - if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.tlsSkipVerify); - return writer; - }; - - /** - * Encodes the specified MQTTTLSOptions message, length delimited. Does not implicitly {@link protos.args.MQTTTLSOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.MQTTTLSOptions - * @static - * @param {protos.args.IMQTTTLSOptions} message MQTTTLSOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MQTTTLSOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MQTTTLSOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.args.MQTTTLSOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.MQTTTLSOptions} MQTTTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MQTTTLSOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MQTTTLSOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tlsCaCert = reader.string(); - break; - case 2: - message.tlsClientCert = reader.string(); - break; - case 3: - message.tlsClientKey = reader.string(); - break; - case 4: - message.tlsSkipVerify = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MQTTTLSOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.MQTTTLSOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.MQTTTLSOptions} MQTTTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MQTTTLSOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MQTTTLSOptions message. - * @function verify - * @memberof protos.args.MQTTTLSOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MQTTTLSOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) - if (!$util.isString(message.tlsCaCert)) - return "tlsCaCert: string expected"; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - if (!$util.isString(message.tlsClientCert)) - return "tlsClientCert: string expected"; - if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) - if (!$util.isString(message.tlsClientKey)) - return "tlsClientKey: string expected"; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - if (typeof message.tlsSkipVerify !== "boolean") - return "tlsSkipVerify: boolean expected"; - return null; - }; - - /** - * Creates a MQTTTLSOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.MQTTTLSOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.args.MQTTTLSOptions} MQTTTLSOptions - */ - MQTTTLSOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.MQTTTLSOptions) - return object; - var message = new $root.protos.args.MQTTTLSOptions(); - if (object.tlsCaCert != null) - message.tlsCaCert = String(object.tlsCaCert); - if (object.tlsClientCert != null) - message.tlsClientCert = String(object.tlsClientCert); - if (object.tlsClientKey != null) - message.tlsClientKey = String(object.tlsClientKey); - if (object.tlsSkipVerify != null) - message.tlsSkipVerify = Boolean(object.tlsSkipVerify); - return message; - }; - - /** - * Creates a plain object from a MQTTTLSOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.MQTTTLSOptions - * @static - * @param {protos.args.MQTTTLSOptions} message MQTTTLSOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MQTTTLSOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.tlsCaCert = ""; - object.tlsClientCert = ""; - object.tlsClientKey = ""; - object.tlsSkipVerify = false; - } - if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) - object.tlsCaCert = message.tlsCaCert; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - object.tlsClientCert = message.tlsClientCert; - if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) - object.tlsClientKey = message.tlsClientKey; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - object.tlsSkipVerify = message.tlsSkipVerify; - return object; - }; - - /** - * Converts this MQTTTLSOptions to JSON. - * @function toJSON - * @memberof protos.args.MQTTTLSOptions - * @instance - * @returns {Object.} JSON object - */ - MQTTTLSOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MQTTTLSOptions; - })(); - - args.MQTTConn = (function() { - - /** - * Properties of a MQTTConn. - * @memberof protos.args - * @interface IMQTTConn - * @property {string|null} [address] MQTTConn address - * @property {number|null} [connTimeoutSeconds] MQTTConn connTimeoutSeconds - * @property {string|null} [clientId] MQTTConn clientId - * @property {protos.args.MQTTQoSLevel|null} [qosLevel] MQTTConn qosLevel - * @property {protos.args.IMQTTTLSOptions|null} [tlsOptions] MQTTConn tlsOptions - */ - - /** - * Constructs a new MQTTConn. - * @memberof protos.args - * @classdesc Represents a MQTTConn. - * @implements IMQTTConn - * @constructor - * @param {protos.args.IMQTTConn=} [properties] Properties to set - */ - function MQTTConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MQTTConn address. - * @member {string} address - * @memberof protos.args.MQTTConn - * @instance - */ - MQTTConn.prototype.address = ""; - - /** - * MQTTConn connTimeoutSeconds. - * @member {number} connTimeoutSeconds - * @memberof protos.args.MQTTConn - * @instance - */ - MQTTConn.prototype.connTimeoutSeconds = 0; - - /** - * MQTTConn clientId. - * @member {string} clientId - * @memberof protos.args.MQTTConn - * @instance - */ - MQTTConn.prototype.clientId = ""; - - /** - * MQTTConn qosLevel. - * @member {protos.args.MQTTQoSLevel} qosLevel - * @memberof protos.args.MQTTConn - * @instance - */ - MQTTConn.prototype.qosLevel = 0; - - /** - * MQTTConn tlsOptions. - * @member {protos.args.IMQTTTLSOptions|null|undefined} tlsOptions - * @memberof protos.args.MQTTConn - * @instance - */ - MQTTConn.prototype.tlsOptions = null; - - /** - * Creates a new MQTTConn instance using the specified properties. - * @function create - * @memberof protos.args.MQTTConn - * @static - * @param {protos.args.IMQTTConn=} [properties] Properties to set - * @returns {protos.args.MQTTConn} MQTTConn instance - */ - MQTTConn.create = function create(properties) { - return new MQTTConn(properties); - }; - - /** - * Encodes the specified MQTTConn message. Does not implicitly {@link protos.args.MQTTConn.verify|verify} messages. - * @function encode - * @memberof protos.args.MQTTConn - * @static - * @param {protos.args.IMQTTConn} message MQTTConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MQTTConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - if (message.connTimeoutSeconds != null && Object.hasOwnProperty.call(message, "connTimeoutSeconds")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.connTimeoutSeconds); - if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.clientId); - if (message.qosLevel != null && Object.hasOwnProperty.call(message, "qosLevel")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.qosLevel); - if (message.tlsOptions != null && Object.hasOwnProperty.call(message, "tlsOptions")) - $root.protos.args.MQTTTLSOptions.encode(message.tlsOptions, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified MQTTConn message, length delimited. Does not implicitly {@link protos.args.MQTTConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.MQTTConn - * @static - * @param {protos.args.IMQTTConn} message MQTTConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MQTTConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MQTTConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.MQTTConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.MQTTConn} MQTTConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MQTTConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MQTTConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 3: - message.connTimeoutSeconds = reader.uint32(); - break; - case 4: - message.clientId = reader.string(); - break; - case 5: - message.qosLevel = reader.int32(); - break; - case 6: - message.tlsOptions = $root.protos.args.MQTTTLSOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MQTTConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.MQTTConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.MQTTConn} MQTTConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MQTTConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MQTTConn message. - * @function verify - * @memberof protos.args.MQTTConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MQTTConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - if (message.connTimeoutSeconds != null && message.hasOwnProperty("connTimeoutSeconds")) - if (!$util.isInteger(message.connTimeoutSeconds)) - return "connTimeoutSeconds: integer expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!$util.isString(message.clientId)) - return "clientId: string expected"; - if (message.qosLevel != null && message.hasOwnProperty("qosLevel")) - switch (message.qosLevel) { - default: - return "qosLevel: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) { - var error = $root.protos.args.MQTTTLSOptions.verify(message.tlsOptions); - if (error) - return "tlsOptions." + error; - } - return null; - }; - - /** - * Creates a MQTTConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.MQTTConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.MQTTConn} MQTTConn - */ - MQTTConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.MQTTConn) - return object; - var message = new $root.protos.args.MQTTConn(); - if (object.address != null) - message.address = String(object.address); - if (object.connTimeoutSeconds != null) - message.connTimeoutSeconds = object.connTimeoutSeconds >>> 0; - if (object.clientId != null) - message.clientId = String(object.clientId); - switch (object.qosLevel) { - case "MQTT_QOS_LEVEL_AT_MOST_ONCE": - case 0: - message.qosLevel = 0; - break; - case "MQTT_QOS_LEVEL_AT_LEAST_ONCE": - case 1: - message.qosLevel = 1; - break; - case "MQTT_QOS_LEVEL_EXACTLY_ONCE": - case 2: - message.qosLevel = 2; - break; - } - if (object.tlsOptions != null) { - if (typeof object.tlsOptions !== "object") - throw TypeError(".protos.args.MQTTConn.tlsOptions: object expected"); - message.tlsOptions = $root.protos.args.MQTTTLSOptions.fromObject(object.tlsOptions); - } - return message; - }; - - /** - * Creates a plain object from a MQTTConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.MQTTConn - * @static - * @param {protos.args.MQTTConn} message MQTTConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MQTTConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.address = ""; - object.connTimeoutSeconds = 0; - object.clientId = ""; - object.qosLevel = options.enums === String ? "MQTT_QOS_LEVEL_AT_MOST_ONCE" : 0; - object.tlsOptions = null; - } - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.connTimeoutSeconds != null && message.hasOwnProperty("connTimeoutSeconds")) - object.connTimeoutSeconds = message.connTimeoutSeconds; - if (message.clientId != null && message.hasOwnProperty("clientId")) - object.clientId = message.clientId; - if (message.qosLevel != null && message.hasOwnProperty("qosLevel")) - object.qosLevel = options.enums === String ? $root.protos.args.MQTTQoSLevel[message.qosLevel] : message.qosLevel; - if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) - object.tlsOptions = $root.protos.args.MQTTTLSOptions.toObject(message.tlsOptions, options); - return object; - }; - - /** - * Converts this MQTTConn to JSON. - * @function toJSON - * @memberof protos.args.MQTTConn - * @instance - * @returns {Object.} JSON object - */ - MQTTConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MQTTConn; - })(); - - args.MQTTReadArgs = (function() { - - /** - * Properties of a MQTTReadArgs. - * @memberof protos.args - * @interface IMQTTReadArgs - * @property {string|null} [topic] MQTTReadArgs topic - * @property {number|null} [readTimeoutSeconds] MQTTReadArgs readTimeoutSeconds - */ - - /** - * Constructs a new MQTTReadArgs. - * @memberof protos.args - * @classdesc Represents a MQTTReadArgs. - * @implements IMQTTReadArgs - * @constructor - * @param {protos.args.IMQTTReadArgs=} [properties] Properties to set - */ - function MQTTReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MQTTReadArgs topic. - * @member {string} topic - * @memberof protos.args.MQTTReadArgs - * @instance - */ - MQTTReadArgs.prototype.topic = ""; - - /** - * MQTTReadArgs readTimeoutSeconds. - * @member {number} readTimeoutSeconds - * @memberof protos.args.MQTTReadArgs - * @instance - */ - MQTTReadArgs.prototype.readTimeoutSeconds = 0; - - /** - * Creates a new MQTTReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.MQTTReadArgs - * @static - * @param {protos.args.IMQTTReadArgs=} [properties] Properties to set - * @returns {protos.args.MQTTReadArgs} MQTTReadArgs instance - */ - MQTTReadArgs.create = function create(properties) { - return new MQTTReadArgs(properties); - }; - - /** - * Encodes the specified MQTTReadArgs message. Does not implicitly {@link protos.args.MQTTReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.MQTTReadArgs - * @static - * @param {protos.args.IMQTTReadArgs} message MQTTReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MQTTReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); - if (message.readTimeoutSeconds != null && Object.hasOwnProperty.call(message, "readTimeoutSeconds")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.readTimeoutSeconds); - return writer; - }; - - /** - * Encodes the specified MQTTReadArgs message, length delimited. Does not implicitly {@link protos.args.MQTTReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.MQTTReadArgs - * @static - * @param {protos.args.IMQTTReadArgs} message MQTTReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MQTTReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MQTTReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.MQTTReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.MQTTReadArgs} MQTTReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MQTTReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MQTTReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.topic = reader.string(); - break; - case 2: - message.readTimeoutSeconds = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MQTTReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.MQTTReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.MQTTReadArgs} MQTTReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MQTTReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MQTTReadArgs message. - * @function verify - * @memberof protos.args.MQTTReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MQTTReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.topic != null && message.hasOwnProperty("topic")) - if (!$util.isString(message.topic)) - return "topic: string expected"; - if (message.readTimeoutSeconds != null && message.hasOwnProperty("readTimeoutSeconds")) - if (!$util.isInteger(message.readTimeoutSeconds)) - return "readTimeoutSeconds: integer expected"; - return null; - }; - - /** - * Creates a MQTTReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.MQTTReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.MQTTReadArgs} MQTTReadArgs - */ - MQTTReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.MQTTReadArgs) - return object; - var message = new $root.protos.args.MQTTReadArgs(); - if (object.topic != null) - message.topic = String(object.topic); - if (object.readTimeoutSeconds != null) - message.readTimeoutSeconds = object.readTimeoutSeconds >>> 0; - return message; - }; - - /** - * Creates a plain object from a MQTTReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.MQTTReadArgs - * @static - * @param {protos.args.MQTTReadArgs} message MQTTReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MQTTReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.topic = ""; - object.readTimeoutSeconds = 0; - } - if (message.topic != null && message.hasOwnProperty("topic")) - object.topic = message.topic; - if (message.readTimeoutSeconds != null && message.hasOwnProperty("readTimeoutSeconds")) - object.readTimeoutSeconds = message.readTimeoutSeconds; - return object; - }; - - /** - * Converts this MQTTReadArgs to JSON. - * @function toJSON - * @memberof protos.args.MQTTReadArgs - * @instance - * @returns {Object.} JSON object - */ - MQTTReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MQTTReadArgs; - })(); - - args.MQTTWriteArgs = (function() { - - /** - * Properties of a MQTTWriteArgs. - * @memberof protos.args - * @interface IMQTTWriteArgs - * @property {string|null} [topic] MQTTWriteArgs topic - * @property {number|null} [writeTimeoutSeconds] MQTTWriteArgs writeTimeoutSeconds - */ - - /** - * Constructs a new MQTTWriteArgs. - * @memberof protos.args - * @classdesc Represents a MQTTWriteArgs. - * @implements IMQTTWriteArgs - * @constructor - * @param {protos.args.IMQTTWriteArgs=} [properties] Properties to set - */ - function MQTTWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MQTTWriteArgs topic. - * @member {string} topic - * @memberof protos.args.MQTTWriteArgs - * @instance - */ - MQTTWriteArgs.prototype.topic = ""; - - /** - * MQTTWriteArgs writeTimeoutSeconds. - * @member {number} writeTimeoutSeconds - * @memberof protos.args.MQTTWriteArgs - * @instance - */ - MQTTWriteArgs.prototype.writeTimeoutSeconds = 0; - - /** - * Creates a new MQTTWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.MQTTWriteArgs - * @static - * @param {protos.args.IMQTTWriteArgs=} [properties] Properties to set - * @returns {protos.args.MQTTWriteArgs} MQTTWriteArgs instance - */ - MQTTWriteArgs.create = function create(properties) { - return new MQTTWriteArgs(properties); - }; - - /** - * Encodes the specified MQTTWriteArgs message. Does not implicitly {@link protos.args.MQTTWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.MQTTWriteArgs - * @static - * @param {protos.args.IMQTTWriteArgs} message MQTTWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MQTTWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); - if (message.writeTimeoutSeconds != null && Object.hasOwnProperty.call(message, "writeTimeoutSeconds")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.writeTimeoutSeconds); - return writer; - }; - - /** - * Encodes the specified MQTTWriteArgs message, length delimited. Does not implicitly {@link protos.args.MQTTWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.MQTTWriteArgs - * @static - * @param {protos.args.IMQTTWriteArgs} message MQTTWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MQTTWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MQTTWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.MQTTWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.MQTTWriteArgs} MQTTWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MQTTWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.MQTTWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.topic = reader.string(); - break; - case 2: - message.writeTimeoutSeconds = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MQTTWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.MQTTWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.MQTTWriteArgs} MQTTWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MQTTWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MQTTWriteArgs message. - * @function verify - * @memberof protos.args.MQTTWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MQTTWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.topic != null && message.hasOwnProperty("topic")) - if (!$util.isString(message.topic)) - return "topic: string expected"; - if (message.writeTimeoutSeconds != null && message.hasOwnProperty("writeTimeoutSeconds")) - if (!$util.isInteger(message.writeTimeoutSeconds)) - return "writeTimeoutSeconds: integer expected"; - return null; - }; - - /** - * Creates a MQTTWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.MQTTWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.MQTTWriteArgs} MQTTWriteArgs - */ - MQTTWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.MQTTWriteArgs) - return object; - var message = new $root.protos.args.MQTTWriteArgs(); - if (object.topic != null) - message.topic = String(object.topic); - if (object.writeTimeoutSeconds != null) - message.writeTimeoutSeconds = object.writeTimeoutSeconds >>> 0; - return message; - }; - - /** - * Creates a plain object from a MQTTWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.MQTTWriteArgs - * @static - * @param {protos.args.MQTTWriteArgs} message MQTTWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MQTTWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.topic = ""; - object.writeTimeoutSeconds = 0; - } - if (message.topic != null && message.hasOwnProperty("topic")) - object.topic = message.topic; - if (message.writeTimeoutSeconds != null && message.hasOwnProperty("writeTimeoutSeconds")) - object.writeTimeoutSeconds = message.writeTimeoutSeconds; - return object; - }; - - /** - * Converts this MQTTWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.MQTTWriteArgs - * @instance - * @returns {Object.} JSON object - */ - MQTTWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return MQTTWriteArgs; - })(); - - args.NatsConn = (function() { - - /** - * Properties of a NatsConn. - * @memberof protos.args - * @interface INatsConn - * @property {string|null} [dsn] NatsConn dsn - * @property {string|null} [userCredentials] NatsConn userCredentials - * @property {protos.args.INatsTLSOptions|null} [tlsOptions] NatsConn tlsOptions - * @property {string|null} [nkey] NatsConn nkey - */ - - /** - * Constructs a new NatsConn. - * @memberof protos.args - * @classdesc Represents a NatsConn. - * @implements INatsConn - * @constructor - * @param {protos.args.INatsConn=} [properties] Properties to set - */ - function NatsConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NatsConn dsn. - * @member {string} dsn - * @memberof protos.args.NatsConn - * @instance - */ - NatsConn.prototype.dsn = ""; - - /** - * NatsConn userCredentials. - * @member {string} userCredentials - * @memberof protos.args.NatsConn - * @instance - */ - NatsConn.prototype.userCredentials = ""; - - /** - * NatsConn tlsOptions. - * @member {protos.args.INatsTLSOptions|null|undefined} tlsOptions - * @memberof protos.args.NatsConn - * @instance - */ - NatsConn.prototype.tlsOptions = null; - - /** - * NatsConn nkey. - * @member {string} nkey - * @memberof protos.args.NatsConn - * @instance - */ - NatsConn.prototype.nkey = ""; - - /** - * Creates a new NatsConn instance using the specified properties. - * @function create - * @memberof protos.args.NatsConn - * @static - * @param {protos.args.INatsConn=} [properties] Properties to set - * @returns {protos.args.NatsConn} NatsConn instance - */ - NatsConn.create = function create(properties) { - return new NatsConn(properties); - }; - - /** - * Encodes the specified NatsConn message. Does not implicitly {@link protos.args.NatsConn.verify|verify} messages. - * @function encode - * @memberof protos.args.NatsConn - * @static - * @param {protos.args.INatsConn} message NatsConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dsn != null && Object.hasOwnProperty.call(message, "dsn")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dsn); - if (message.userCredentials != null && Object.hasOwnProperty.call(message, "userCredentials")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.userCredentials); - if (message.tlsOptions != null && Object.hasOwnProperty.call(message, "tlsOptions")) - $root.protos.args.NatsTLSOptions.encode(message.tlsOptions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.nkey != null && Object.hasOwnProperty.call(message, "nkey")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nkey); - return writer; - }; - - /** - * Encodes the specified NatsConn message, length delimited. Does not implicitly {@link protos.args.NatsConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NatsConn - * @static - * @param {protos.args.INatsConn} message NatsConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NatsConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NatsConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NatsConn} NatsConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.dsn = reader.string(); - break; - case 2: - message.userCredentials = reader.string(); - break; - case 3: - message.tlsOptions = $root.protos.args.NatsTLSOptions.decode(reader, reader.uint32()); - break; - case 4: - message.nkey = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NatsConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NatsConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NatsConn} NatsConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NatsConn message. - * @function verify - * @memberof protos.args.NatsConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NatsConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dsn != null && message.hasOwnProperty("dsn")) - if (!$util.isString(message.dsn)) - return "dsn: string expected"; - if (message.userCredentials != null && message.hasOwnProperty("userCredentials")) - if (!$util.isString(message.userCredentials)) - return "userCredentials: string expected"; - if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) { - var error = $root.protos.args.NatsTLSOptions.verify(message.tlsOptions); - if (error) - return "tlsOptions." + error; - } - if (message.nkey != null && message.hasOwnProperty("nkey")) - if (!$util.isString(message.nkey)) - return "nkey: string expected"; - return null; - }; - - /** - * Creates a NatsConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NatsConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NatsConn} NatsConn - */ - NatsConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NatsConn) - return object; - var message = new $root.protos.args.NatsConn(); - if (object.dsn != null) - message.dsn = String(object.dsn); - if (object.userCredentials != null) - message.userCredentials = String(object.userCredentials); - if (object.tlsOptions != null) { - if (typeof object.tlsOptions !== "object") - throw TypeError(".protos.args.NatsConn.tlsOptions: object expected"); - message.tlsOptions = $root.protos.args.NatsTLSOptions.fromObject(object.tlsOptions); - } - if (object.nkey != null) - message.nkey = String(object.nkey); - return message; - }; - - /** - * Creates a plain object from a NatsConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NatsConn - * @static - * @param {protos.args.NatsConn} message NatsConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NatsConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.dsn = ""; - object.userCredentials = ""; - object.tlsOptions = null; - object.nkey = ""; - } - if (message.dsn != null && message.hasOwnProperty("dsn")) - object.dsn = message.dsn; - if (message.userCredentials != null && message.hasOwnProperty("userCredentials")) - object.userCredentials = message.userCredentials; - if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) - object.tlsOptions = $root.protos.args.NatsTLSOptions.toObject(message.tlsOptions, options); - if (message.nkey != null && message.hasOwnProperty("nkey")) - object.nkey = message.nkey; - return object; - }; - - /** - * Converts this NatsConn to JSON. - * @function toJSON - * @memberof protos.args.NatsConn - * @instance - * @returns {Object.} JSON object - */ - NatsConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NatsConn; - })(); - - args.NatsTLSOptions = (function() { - - /** - * Properties of a NatsTLSOptions. - * @memberof protos.args - * @interface INatsTLSOptions - * @property {boolean|null} [tlsSkipVerify] NatsTLSOptions tlsSkipVerify - * @property {string|null} [tlsCaCert] NatsTLSOptions tlsCaCert - * @property {string|null} [tlsClientCert] NatsTLSOptions tlsClientCert - * @property {string|null} [tlsClientKey] NatsTLSOptions tlsClientKey - * @property {boolean|null} [useTls] NatsTLSOptions useTls - */ - - /** - * Constructs a new NatsTLSOptions. - * @memberof protos.args - * @classdesc Represents a NatsTLSOptions. - * @implements INatsTLSOptions - * @constructor - * @param {protos.args.INatsTLSOptions=} [properties] Properties to set - */ - function NatsTLSOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NatsTLSOptions tlsSkipVerify. - * @member {boolean} tlsSkipVerify - * @memberof protos.args.NatsTLSOptions - * @instance - */ - NatsTLSOptions.prototype.tlsSkipVerify = false; - - /** - * NatsTLSOptions tlsCaCert. - * @member {string} tlsCaCert - * @memberof protos.args.NatsTLSOptions - * @instance - */ - NatsTLSOptions.prototype.tlsCaCert = ""; - - /** - * NatsTLSOptions tlsClientCert. - * @member {string} tlsClientCert - * @memberof protos.args.NatsTLSOptions - * @instance - */ - NatsTLSOptions.prototype.tlsClientCert = ""; - - /** - * NatsTLSOptions tlsClientKey. - * @member {string} tlsClientKey - * @memberof protos.args.NatsTLSOptions - * @instance - */ - NatsTLSOptions.prototype.tlsClientKey = ""; - - /** - * NatsTLSOptions useTls. - * @member {boolean} useTls - * @memberof protos.args.NatsTLSOptions - * @instance - */ - NatsTLSOptions.prototype.useTls = false; - - /** - * Creates a new NatsTLSOptions instance using the specified properties. - * @function create - * @memberof protos.args.NatsTLSOptions - * @static - * @param {protos.args.INatsTLSOptions=} [properties] Properties to set - * @returns {protos.args.NatsTLSOptions} NatsTLSOptions instance - */ - NatsTLSOptions.create = function create(properties) { - return new NatsTLSOptions(properties); - }; - - /** - * Encodes the specified NatsTLSOptions message. Does not implicitly {@link protos.args.NatsTLSOptions.verify|verify} messages. - * @function encode - * @memberof protos.args.NatsTLSOptions - * @static - * @param {protos.args.INatsTLSOptions} message NatsTLSOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsTLSOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.tlsSkipVerify); - if (message.tlsCaCert != null && Object.hasOwnProperty.call(message, "tlsCaCert")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tlsCaCert); - if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tlsClientCert); - if (message.tlsClientKey != null && Object.hasOwnProperty.call(message, "tlsClientKey")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.tlsClientKey); - if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useTls); - return writer; - }; - - /** - * Encodes the specified NatsTLSOptions message, length delimited. Does not implicitly {@link protos.args.NatsTLSOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NatsTLSOptions - * @static - * @param {protos.args.INatsTLSOptions} message NatsTLSOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsTLSOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NatsTLSOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NatsTLSOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NatsTLSOptions} NatsTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsTLSOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsTLSOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tlsSkipVerify = reader.bool(); - break; - case 2: - message.tlsCaCert = reader.string(); - break; - case 3: - message.tlsClientCert = reader.string(); - break; - case 4: - message.tlsClientKey = reader.string(); - break; - case 5: - message.useTls = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NatsTLSOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NatsTLSOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NatsTLSOptions} NatsTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsTLSOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NatsTLSOptions message. - * @function verify - * @memberof protos.args.NatsTLSOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NatsTLSOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - if (typeof message.tlsSkipVerify !== "boolean") - return "tlsSkipVerify: boolean expected"; - if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) - if (!$util.isString(message.tlsCaCert)) - return "tlsCaCert: string expected"; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - if (!$util.isString(message.tlsClientCert)) - return "tlsClientCert: string expected"; - if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) - if (!$util.isString(message.tlsClientKey)) - return "tlsClientKey: string expected"; - if (message.useTls != null && message.hasOwnProperty("useTls")) - if (typeof message.useTls !== "boolean") - return "useTls: boolean expected"; - return null; - }; - - /** - * Creates a NatsTLSOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NatsTLSOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NatsTLSOptions} NatsTLSOptions - */ - NatsTLSOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NatsTLSOptions) - return object; - var message = new $root.protos.args.NatsTLSOptions(); - if (object.tlsSkipVerify != null) - message.tlsSkipVerify = Boolean(object.tlsSkipVerify); - if (object.tlsCaCert != null) - message.tlsCaCert = String(object.tlsCaCert); - if (object.tlsClientCert != null) - message.tlsClientCert = String(object.tlsClientCert); - if (object.tlsClientKey != null) - message.tlsClientKey = String(object.tlsClientKey); - if (object.useTls != null) - message.useTls = Boolean(object.useTls); - return message; - }; - - /** - * Creates a plain object from a NatsTLSOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NatsTLSOptions - * @static - * @param {protos.args.NatsTLSOptions} message NatsTLSOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NatsTLSOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.tlsSkipVerify = false; - object.tlsCaCert = ""; - object.tlsClientCert = ""; - object.tlsClientKey = ""; - object.useTls = false; - } - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - object.tlsSkipVerify = message.tlsSkipVerify; - if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) - object.tlsCaCert = message.tlsCaCert; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - object.tlsClientCert = message.tlsClientCert; - if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) - object.tlsClientKey = message.tlsClientKey; - if (message.useTls != null && message.hasOwnProperty("useTls")) - object.useTls = message.useTls; - return object; - }; - - /** - * Converts this NatsTLSOptions to JSON. - * @function toJSON - * @memberof protos.args.NatsTLSOptions - * @instance - * @returns {Object.} JSON object - */ - NatsTLSOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NatsTLSOptions; - })(); - - args.NatsReadArgs = (function() { - - /** - * Properties of a NatsReadArgs. - * @memberof protos.args - * @interface INatsReadArgs - * @property {string|null} [subject] NatsReadArgs subject - */ - - /** - * Constructs a new NatsReadArgs. - * @memberof protos.args - * @classdesc Represents a NatsReadArgs. - * @implements INatsReadArgs - * @constructor - * @param {protos.args.INatsReadArgs=} [properties] Properties to set - */ - function NatsReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NatsReadArgs subject. - * @member {string} subject - * @memberof protos.args.NatsReadArgs - * @instance - */ - NatsReadArgs.prototype.subject = ""; - - /** - * Creates a new NatsReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.NatsReadArgs - * @static - * @param {protos.args.INatsReadArgs=} [properties] Properties to set - * @returns {protos.args.NatsReadArgs} NatsReadArgs instance - */ - NatsReadArgs.create = function create(properties) { - return new NatsReadArgs(properties); - }; - - /** - * Encodes the specified NatsReadArgs message. Does not implicitly {@link protos.args.NatsReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.NatsReadArgs - * @static - * @param {protos.args.INatsReadArgs} message NatsReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.subject != null && Object.hasOwnProperty.call(message, "subject")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.subject); - return writer; - }; - - /** - * Encodes the specified NatsReadArgs message, length delimited. Does not implicitly {@link protos.args.NatsReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NatsReadArgs - * @static - * @param {protos.args.INatsReadArgs} message NatsReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NatsReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NatsReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NatsReadArgs} NatsReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subject = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NatsReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NatsReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NatsReadArgs} NatsReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NatsReadArgs message. - * @function verify - * @memberof protos.args.NatsReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NatsReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.subject != null && message.hasOwnProperty("subject")) - if (!$util.isString(message.subject)) - return "subject: string expected"; - return null; - }; - - /** - * Creates a NatsReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NatsReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NatsReadArgs} NatsReadArgs - */ - NatsReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NatsReadArgs) - return object; - var message = new $root.protos.args.NatsReadArgs(); - if (object.subject != null) - message.subject = String(object.subject); - return message; - }; - - /** - * Creates a plain object from a NatsReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NatsReadArgs - * @static - * @param {protos.args.NatsReadArgs} message NatsReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NatsReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.subject = ""; - if (message.subject != null && message.hasOwnProperty("subject")) - object.subject = message.subject; - return object; - }; - - /** - * Converts this NatsReadArgs to JSON. - * @function toJSON - * @memberof protos.args.NatsReadArgs - * @instance - * @returns {Object.} JSON object - */ - NatsReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NatsReadArgs; - })(); - - args.NatsWriteArgs = (function() { - - /** - * Properties of a NatsWriteArgs. - * @memberof protos.args - * @interface INatsWriteArgs - * @property {string|null} [subject] NatsWriteArgs subject - */ - - /** - * Constructs a new NatsWriteArgs. - * @memberof protos.args - * @classdesc Represents a NatsWriteArgs. - * @implements INatsWriteArgs - * @constructor - * @param {protos.args.INatsWriteArgs=} [properties] Properties to set - */ - function NatsWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NatsWriteArgs subject. - * @member {string} subject - * @memberof protos.args.NatsWriteArgs - * @instance - */ - NatsWriteArgs.prototype.subject = ""; - - /** - * Creates a new NatsWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.NatsWriteArgs - * @static - * @param {protos.args.INatsWriteArgs=} [properties] Properties to set - * @returns {protos.args.NatsWriteArgs} NatsWriteArgs instance - */ - NatsWriteArgs.create = function create(properties) { - return new NatsWriteArgs(properties); - }; - - /** - * Encodes the specified NatsWriteArgs message. Does not implicitly {@link protos.args.NatsWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.NatsWriteArgs - * @static - * @param {protos.args.INatsWriteArgs} message NatsWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.subject != null && Object.hasOwnProperty.call(message, "subject")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.subject); - return writer; - }; - - /** - * Encodes the specified NatsWriteArgs message, length delimited. Does not implicitly {@link protos.args.NatsWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NatsWriteArgs - * @static - * @param {protos.args.INatsWriteArgs} message NatsWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NatsWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NatsWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NatsWriteArgs} NatsWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subject = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NatsWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NatsWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NatsWriteArgs} NatsWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NatsWriteArgs message. - * @function verify - * @memberof protos.args.NatsWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NatsWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.subject != null && message.hasOwnProperty("subject")) - if (!$util.isString(message.subject)) - return "subject: string expected"; - return null; - }; - - /** - * Creates a NatsWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NatsWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NatsWriteArgs} NatsWriteArgs - */ - NatsWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NatsWriteArgs) - return object; - var message = new $root.protos.args.NatsWriteArgs(); - if (object.subject != null) - message.subject = String(object.subject); - return message; - }; - - /** - * Creates a plain object from a NatsWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NatsWriteArgs - * @static - * @param {protos.args.NatsWriteArgs} message NatsWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NatsWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.subject = ""; - if (message.subject != null && message.hasOwnProperty("subject")) - object.subject = message.subject; - return object; - }; - - /** - * Converts this NatsWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.NatsWriteArgs - * @instance - * @returns {Object.} JSON object - */ - NatsWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NatsWriteArgs; - })(); - - args.NatsJetstreamTLSOptions = (function() { - - /** - * Properties of a NatsJetstreamTLSOptions. - * @memberof protos.args - * @interface INatsJetstreamTLSOptions - * @property {string|null} [tlsCaCert] NatsJetstreamTLSOptions tlsCaCert - * @property {string|null} [tlsClientCert] NatsJetstreamTLSOptions tlsClientCert - * @property {string|null} [tlsClientKey] NatsJetstreamTLSOptions tlsClientKey - * @property {boolean|null} [tlsSkipVerify] NatsJetstreamTLSOptions tlsSkipVerify - * @property {boolean|null} [useTls] NatsJetstreamTLSOptions useTls - */ - - /** - * Constructs a new NatsJetstreamTLSOptions. - * @memberof protos.args - * @classdesc Represents a NatsJetstreamTLSOptions. - * @implements INatsJetstreamTLSOptions - * @constructor - * @param {protos.args.INatsJetstreamTLSOptions=} [properties] Properties to set - */ - function NatsJetstreamTLSOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NatsJetstreamTLSOptions tlsCaCert. - * @member {string} tlsCaCert - * @memberof protos.args.NatsJetstreamTLSOptions - * @instance - */ - NatsJetstreamTLSOptions.prototype.tlsCaCert = ""; - - /** - * NatsJetstreamTLSOptions tlsClientCert. - * @member {string} tlsClientCert - * @memberof protos.args.NatsJetstreamTLSOptions - * @instance - */ - NatsJetstreamTLSOptions.prototype.tlsClientCert = ""; - - /** - * NatsJetstreamTLSOptions tlsClientKey. - * @member {string} tlsClientKey - * @memberof protos.args.NatsJetstreamTLSOptions - * @instance - */ - NatsJetstreamTLSOptions.prototype.tlsClientKey = ""; - - /** - * NatsJetstreamTLSOptions tlsSkipVerify. - * @member {boolean} tlsSkipVerify - * @memberof protos.args.NatsJetstreamTLSOptions - * @instance - */ - NatsJetstreamTLSOptions.prototype.tlsSkipVerify = false; - - /** - * NatsJetstreamTLSOptions useTls. - * @member {boolean} useTls - * @memberof protos.args.NatsJetstreamTLSOptions - * @instance - */ - NatsJetstreamTLSOptions.prototype.useTls = false; - - /** - * Creates a new NatsJetstreamTLSOptions instance using the specified properties. - * @function create - * @memberof protos.args.NatsJetstreamTLSOptions - * @static - * @param {protos.args.INatsJetstreamTLSOptions=} [properties] Properties to set - * @returns {protos.args.NatsJetstreamTLSOptions} NatsJetstreamTLSOptions instance - */ - NatsJetstreamTLSOptions.create = function create(properties) { - return new NatsJetstreamTLSOptions(properties); - }; - - /** - * Encodes the specified NatsJetstreamTLSOptions message. Does not implicitly {@link protos.args.NatsJetstreamTLSOptions.verify|verify} messages. - * @function encode - * @memberof protos.args.NatsJetstreamTLSOptions - * @static - * @param {protos.args.INatsJetstreamTLSOptions} message NatsJetstreamTLSOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsJetstreamTLSOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tlsCaCert != null && Object.hasOwnProperty.call(message, "tlsCaCert")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tlsCaCert); - if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tlsClientCert); - if (message.tlsClientKey != null && Object.hasOwnProperty.call(message, "tlsClientKey")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tlsClientKey); - if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.tlsSkipVerify); - if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useTls); - return writer; - }; - - /** - * Encodes the specified NatsJetstreamTLSOptions message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamTLSOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NatsJetstreamTLSOptions - * @static - * @param {protos.args.INatsJetstreamTLSOptions} message NatsJetstreamTLSOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsJetstreamTLSOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NatsJetstreamTLSOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NatsJetstreamTLSOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NatsJetstreamTLSOptions} NatsJetstreamTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsJetstreamTLSOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsJetstreamTLSOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tlsCaCert = reader.string(); - break; - case 2: - message.tlsClientCert = reader.string(); - break; - case 3: - message.tlsClientKey = reader.string(); - break; - case 4: - message.tlsSkipVerify = reader.bool(); - break; - case 5: - message.useTls = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NatsJetstreamTLSOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NatsJetstreamTLSOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NatsJetstreamTLSOptions} NatsJetstreamTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsJetstreamTLSOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NatsJetstreamTLSOptions message. - * @function verify - * @memberof protos.args.NatsJetstreamTLSOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NatsJetstreamTLSOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) - if (!$util.isString(message.tlsCaCert)) - return "tlsCaCert: string expected"; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - if (!$util.isString(message.tlsClientCert)) - return "tlsClientCert: string expected"; - if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) - if (!$util.isString(message.tlsClientKey)) - return "tlsClientKey: string expected"; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - if (typeof message.tlsSkipVerify !== "boolean") - return "tlsSkipVerify: boolean expected"; - if (message.useTls != null && message.hasOwnProperty("useTls")) - if (typeof message.useTls !== "boolean") - return "useTls: boolean expected"; - return null; - }; - - /** - * Creates a NatsJetstreamTLSOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NatsJetstreamTLSOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NatsJetstreamTLSOptions} NatsJetstreamTLSOptions - */ - NatsJetstreamTLSOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NatsJetstreamTLSOptions) - return object; - var message = new $root.protos.args.NatsJetstreamTLSOptions(); - if (object.tlsCaCert != null) - message.tlsCaCert = String(object.tlsCaCert); - if (object.tlsClientCert != null) - message.tlsClientCert = String(object.tlsClientCert); - if (object.tlsClientKey != null) - message.tlsClientKey = String(object.tlsClientKey); - if (object.tlsSkipVerify != null) - message.tlsSkipVerify = Boolean(object.tlsSkipVerify); - if (object.useTls != null) - message.useTls = Boolean(object.useTls); - return message; - }; - - /** - * Creates a plain object from a NatsJetstreamTLSOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NatsJetstreamTLSOptions - * @static - * @param {protos.args.NatsJetstreamTLSOptions} message NatsJetstreamTLSOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NatsJetstreamTLSOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.tlsCaCert = ""; - object.tlsClientCert = ""; - object.tlsClientKey = ""; - object.tlsSkipVerify = false; - object.useTls = false; - } - if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) - object.tlsCaCert = message.tlsCaCert; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - object.tlsClientCert = message.tlsClientCert; - if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) - object.tlsClientKey = message.tlsClientKey; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - object.tlsSkipVerify = message.tlsSkipVerify; - if (message.useTls != null && message.hasOwnProperty("useTls")) - object.useTls = message.useTls; - return object; - }; - - /** - * Converts this NatsJetstreamTLSOptions to JSON. - * @function toJSON - * @memberof protos.args.NatsJetstreamTLSOptions - * @instance - * @returns {Object.} JSON object - */ - NatsJetstreamTLSOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NatsJetstreamTLSOptions; - })(); - - args.NatsJetstreamConn = (function() { - - /** - * Properties of a NatsJetstreamConn. - * @memberof protos.args - * @interface INatsJetstreamConn - * @property {string|null} [dsn] NatsJetstreamConn dsn - * @property {string|null} [userCredentials] NatsJetstreamConn userCredentials - * @property {string|null} [clientId] NatsJetstreamConn clientId - * @property {protos.args.INatsJetstreamTLSOptions|null} [tlsOptions] NatsJetstreamConn tlsOptions - * @property {string|null} [nkey] NatsJetstreamConn nkey - */ - - /** - * Constructs a new NatsJetstreamConn. - * @memberof protos.args - * @classdesc Represents a NatsJetstreamConn. - * @implements INatsJetstreamConn - * @constructor - * @param {protos.args.INatsJetstreamConn=} [properties] Properties to set - */ - function NatsJetstreamConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NatsJetstreamConn dsn. - * @member {string} dsn - * @memberof protos.args.NatsJetstreamConn - * @instance - */ - NatsJetstreamConn.prototype.dsn = ""; - - /** - * NatsJetstreamConn userCredentials. - * @member {string} userCredentials - * @memberof protos.args.NatsJetstreamConn - * @instance - */ - NatsJetstreamConn.prototype.userCredentials = ""; - - /** - * NatsJetstreamConn clientId. - * @member {string} clientId - * @memberof protos.args.NatsJetstreamConn - * @instance - */ - NatsJetstreamConn.prototype.clientId = ""; - - /** - * NatsJetstreamConn tlsOptions. - * @member {protos.args.INatsJetstreamTLSOptions|null|undefined} tlsOptions - * @memberof protos.args.NatsJetstreamConn - * @instance - */ - NatsJetstreamConn.prototype.tlsOptions = null; - - /** - * NatsJetstreamConn nkey. - * @member {string} nkey - * @memberof protos.args.NatsJetstreamConn - * @instance - */ - NatsJetstreamConn.prototype.nkey = ""; - - /** - * Creates a new NatsJetstreamConn instance using the specified properties. - * @function create - * @memberof protos.args.NatsJetstreamConn - * @static - * @param {protos.args.INatsJetstreamConn=} [properties] Properties to set - * @returns {protos.args.NatsJetstreamConn} NatsJetstreamConn instance - */ - NatsJetstreamConn.create = function create(properties) { - return new NatsJetstreamConn(properties); - }; - - /** - * Encodes the specified NatsJetstreamConn message. Does not implicitly {@link protos.args.NatsJetstreamConn.verify|verify} messages. - * @function encode - * @memberof protos.args.NatsJetstreamConn - * @static - * @param {protos.args.INatsJetstreamConn} message NatsJetstreamConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsJetstreamConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dsn != null && Object.hasOwnProperty.call(message, "dsn")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dsn); - if (message.userCredentials != null && Object.hasOwnProperty.call(message, "userCredentials")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.userCredentials); - if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientId); - if (message.tlsOptions != null && Object.hasOwnProperty.call(message, "tlsOptions")) - $root.protos.args.NatsJetstreamTLSOptions.encode(message.tlsOptions, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.nkey != null && Object.hasOwnProperty.call(message, "nkey")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.nkey); - return writer; - }; - - /** - * Encodes the specified NatsJetstreamConn message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NatsJetstreamConn - * @static - * @param {protos.args.INatsJetstreamConn} message NatsJetstreamConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsJetstreamConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NatsJetstreamConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NatsJetstreamConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NatsJetstreamConn} NatsJetstreamConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsJetstreamConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsJetstreamConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.dsn = reader.string(); - break; - case 2: - message.userCredentials = reader.string(); - break; - case 3: - message.clientId = reader.string(); - break; - case 4: - message.tlsOptions = $root.protos.args.NatsJetstreamTLSOptions.decode(reader, reader.uint32()); - break; - case 5: - message.nkey = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NatsJetstreamConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NatsJetstreamConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NatsJetstreamConn} NatsJetstreamConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsJetstreamConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NatsJetstreamConn message. - * @function verify - * @memberof protos.args.NatsJetstreamConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NatsJetstreamConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dsn != null && message.hasOwnProperty("dsn")) - if (!$util.isString(message.dsn)) - return "dsn: string expected"; - if (message.userCredentials != null && message.hasOwnProperty("userCredentials")) - if (!$util.isString(message.userCredentials)) - return "userCredentials: string expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!$util.isString(message.clientId)) - return "clientId: string expected"; - if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) { - var error = $root.protos.args.NatsJetstreamTLSOptions.verify(message.tlsOptions); - if (error) - return "tlsOptions." + error; - } - if (message.nkey != null && message.hasOwnProperty("nkey")) - if (!$util.isString(message.nkey)) - return "nkey: string expected"; - return null; - }; - - /** - * Creates a NatsJetstreamConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NatsJetstreamConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NatsJetstreamConn} NatsJetstreamConn - */ - NatsJetstreamConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NatsJetstreamConn) - return object; - var message = new $root.protos.args.NatsJetstreamConn(); - if (object.dsn != null) - message.dsn = String(object.dsn); - if (object.userCredentials != null) - message.userCredentials = String(object.userCredentials); - if (object.clientId != null) - message.clientId = String(object.clientId); - if (object.tlsOptions != null) { - if (typeof object.tlsOptions !== "object") - throw TypeError(".protos.args.NatsJetstreamConn.tlsOptions: object expected"); - message.tlsOptions = $root.protos.args.NatsJetstreamTLSOptions.fromObject(object.tlsOptions); - } - if (object.nkey != null) - message.nkey = String(object.nkey); - return message; - }; - - /** - * Creates a plain object from a NatsJetstreamConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NatsJetstreamConn - * @static - * @param {protos.args.NatsJetstreamConn} message NatsJetstreamConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NatsJetstreamConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.dsn = ""; - object.userCredentials = ""; - object.clientId = ""; - object.tlsOptions = null; - object.nkey = ""; - } - if (message.dsn != null && message.hasOwnProperty("dsn")) - object.dsn = message.dsn; - if (message.userCredentials != null && message.hasOwnProperty("userCredentials")) - object.userCredentials = message.userCredentials; - if (message.clientId != null && message.hasOwnProperty("clientId")) - object.clientId = message.clientId; - if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) - object.tlsOptions = $root.protos.args.NatsJetstreamTLSOptions.toObject(message.tlsOptions, options); - if (message.nkey != null && message.hasOwnProperty("nkey")) - object.nkey = message.nkey; - return object; - }; - - /** - * Converts this NatsJetstreamConn to JSON. - * @function toJSON - * @memberof protos.args.NatsJetstreamConn - * @instance - * @returns {Object.} JSON object - */ - NatsJetstreamConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NatsJetstreamConn; - })(); - - args.NatsJetstreamReadArgs = (function() { - - /** - * Properties of a NatsJetstreamReadArgs. - * @memberof protos.args - * @interface INatsJetstreamReadArgs - * @property {string|null} [stream] NatsJetstreamReadArgs stream - * @property {string|null} [consumerName] NatsJetstreamReadArgs consumerName - * @property {boolean|null} [createDurableConsumer] NatsJetstreamReadArgs createDurableConsumer - * @property {boolean|null} [existingDurableConsumer] NatsJetstreamReadArgs existingDurableConsumer - * @property {boolean|null} [keepConsumer] NatsJetstreamReadArgs keepConsumer - * @property {number|Long|null} [consumerStartSequence] NatsJetstreamReadArgs consumerStartSequence - * @property {string|null} [consumerStartTime] NatsJetstreamReadArgs consumerStartTime - * @property {string|null} [consumerFilterSubject] NatsJetstreamReadArgs consumerFilterSubject - */ - - /** - * Constructs a new NatsJetstreamReadArgs. - * @memberof protos.args - * @classdesc Represents a NatsJetstreamReadArgs. - * @implements INatsJetstreamReadArgs - * @constructor - * @param {protos.args.INatsJetstreamReadArgs=} [properties] Properties to set - */ - function NatsJetstreamReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NatsJetstreamReadArgs stream. - * @member {string} stream - * @memberof protos.args.NatsJetstreamReadArgs - * @instance - */ - NatsJetstreamReadArgs.prototype.stream = ""; - - /** - * NatsJetstreamReadArgs consumerName. - * @member {string} consumerName - * @memberof protos.args.NatsJetstreamReadArgs - * @instance - */ - NatsJetstreamReadArgs.prototype.consumerName = ""; - - /** - * NatsJetstreamReadArgs createDurableConsumer. - * @member {boolean} createDurableConsumer - * @memberof protos.args.NatsJetstreamReadArgs - * @instance - */ - NatsJetstreamReadArgs.prototype.createDurableConsumer = false; - - /** - * NatsJetstreamReadArgs existingDurableConsumer. - * @member {boolean} existingDurableConsumer - * @memberof protos.args.NatsJetstreamReadArgs - * @instance - */ - NatsJetstreamReadArgs.prototype.existingDurableConsumer = false; - - /** - * NatsJetstreamReadArgs keepConsumer. - * @member {boolean} keepConsumer - * @memberof protos.args.NatsJetstreamReadArgs - * @instance - */ - NatsJetstreamReadArgs.prototype.keepConsumer = false; - - /** - * NatsJetstreamReadArgs consumerStartSequence. - * @member {number|Long} consumerStartSequence - * @memberof protos.args.NatsJetstreamReadArgs - * @instance - */ - NatsJetstreamReadArgs.prototype.consumerStartSequence = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * NatsJetstreamReadArgs consumerStartTime. - * @member {string} consumerStartTime - * @memberof protos.args.NatsJetstreamReadArgs - * @instance - */ - NatsJetstreamReadArgs.prototype.consumerStartTime = ""; - - /** - * NatsJetstreamReadArgs consumerFilterSubject. - * @member {string} consumerFilterSubject - * @memberof protos.args.NatsJetstreamReadArgs - * @instance - */ - NatsJetstreamReadArgs.prototype.consumerFilterSubject = ""; - - /** - * Creates a new NatsJetstreamReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.NatsJetstreamReadArgs - * @static - * @param {protos.args.INatsJetstreamReadArgs=} [properties] Properties to set - * @returns {protos.args.NatsJetstreamReadArgs} NatsJetstreamReadArgs instance - */ - NatsJetstreamReadArgs.create = function create(properties) { - return new NatsJetstreamReadArgs(properties); - }; - - /** - * Encodes the specified NatsJetstreamReadArgs message. Does not implicitly {@link protos.args.NatsJetstreamReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.NatsJetstreamReadArgs - * @static - * @param {protos.args.INatsJetstreamReadArgs} message NatsJetstreamReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsJetstreamReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stream != null && Object.hasOwnProperty.call(message, "stream")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stream); - if (message.consumerName != null && Object.hasOwnProperty.call(message, "consumerName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.consumerName); - if (message.createDurableConsumer != null && Object.hasOwnProperty.call(message, "createDurableConsumer")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.createDurableConsumer); - if (message.existingDurableConsumer != null && Object.hasOwnProperty.call(message, "existingDurableConsumer")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.existingDurableConsumer); - if (message.keepConsumer != null && Object.hasOwnProperty.call(message, "keepConsumer")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.keepConsumer); - if (message.consumerStartSequence != null && Object.hasOwnProperty.call(message, "consumerStartSequence")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.consumerStartSequence); - if (message.consumerStartTime != null && Object.hasOwnProperty.call(message, "consumerStartTime")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.consumerStartTime); - if (message.consumerFilterSubject != null && Object.hasOwnProperty.call(message, "consumerFilterSubject")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.consumerFilterSubject); - return writer; - }; - - /** - * Encodes the specified NatsJetstreamReadArgs message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NatsJetstreamReadArgs - * @static - * @param {protos.args.INatsJetstreamReadArgs} message NatsJetstreamReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsJetstreamReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NatsJetstreamReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NatsJetstreamReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NatsJetstreamReadArgs} NatsJetstreamReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsJetstreamReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsJetstreamReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stream = reader.string(); - break; - case 2: - message.consumerName = reader.string(); - break; - case 3: - message.createDurableConsumer = reader.bool(); - break; - case 4: - message.existingDurableConsumer = reader.bool(); - break; - case 5: - message.keepConsumer = reader.bool(); - break; - case 6: - message.consumerStartSequence = reader.int64(); - break; - case 7: - message.consumerStartTime = reader.string(); - break; - case 8: - message.consumerFilterSubject = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NatsJetstreamReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NatsJetstreamReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NatsJetstreamReadArgs} NatsJetstreamReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsJetstreamReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NatsJetstreamReadArgs message. - * @function verify - * @memberof protos.args.NatsJetstreamReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NatsJetstreamReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isString(message.stream)) - return "stream: string expected"; - if (message.consumerName != null && message.hasOwnProperty("consumerName")) - if (!$util.isString(message.consumerName)) - return "consumerName: string expected"; - if (message.createDurableConsumer != null && message.hasOwnProperty("createDurableConsumer")) - if (typeof message.createDurableConsumer !== "boolean") - return "createDurableConsumer: boolean expected"; - if (message.existingDurableConsumer != null && message.hasOwnProperty("existingDurableConsumer")) - if (typeof message.existingDurableConsumer !== "boolean") - return "existingDurableConsumer: boolean expected"; - if (message.keepConsumer != null && message.hasOwnProperty("keepConsumer")) - if (typeof message.keepConsumer !== "boolean") - return "keepConsumer: boolean expected"; - if (message.consumerStartSequence != null && message.hasOwnProperty("consumerStartSequence")) - if (!$util.isInteger(message.consumerStartSequence) && !(message.consumerStartSequence && $util.isInteger(message.consumerStartSequence.low) && $util.isInteger(message.consumerStartSequence.high))) - return "consumerStartSequence: integer|Long expected"; - if (message.consumerStartTime != null && message.hasOwnProperty("consumerStartTime")) - if (!$util.isString(message.consumerStartTime)) - return "consumerStartTime: string expected"; - if (message.consumerFilterSubject != null && message.hasOwnProperty("consumerFilterSubject")) - if (!$util.isString(message.consumerFilterSubject)) - return "consumerFilterSubject: string expected"; - return null; - }; - - /** - * Creates a NatsJetstreamReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NatsJetstreamReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NatsJetstreamReadArgs} NatsJetstreamReadArgs - */ - NatsJetstreamReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NatsJetstreamReadArgs) - return object; - var message = new $root.protos.args.NatsJetstreamReadArgs(); - if (object.stream != null) - message.stream = String(object.stream); - if (object.consumerName != null) - message.consumerName = String(object.consumerName); - if (object.createDurableConsumer != null) - message.createDurableConsumer = Boolean(object.createDurableConsumer); - if (object.existingDurableConsumer != null) - message.existingDurableConsumer = Boolean(object.existingDurableConsumer); - if (object.keepConsumer != null) - message.keepConsumer = Boolean(object.keepConsumer); - if (object.consumerStartSequence != null) - if ($util.Long) - (message.consumerStartSequence = $util.Long.fromValue(object.consumerStartSequence)).unsigned = false; - else if (typeof object.consumerStartSequence === "string") - message.consumerStartSequence = parseInt(object.consumerStartSequence, 10); - else if (typeof object.consumerStartSequence === "number") - message.consumerStartSequence = object.consumerStartSequence; - else if (typeof object.consumerStartSequence === "object") - message.consumerStartSequence = new $util.LongBits(object.consumerStartSequence.low >>> 0, object.consumerStartSequence.high >>> 0).toNumber(); - if (object.consumerStartTime != null) - message.consumerStartTime = String(object.consumerStartTime); - if (object.consumerFilterSubject != null) - message.consumerFilterSubject = String(object.consumerFilterSubject); - return message; - }; - - /** - * Creates a plain object from a NatsJetstreamReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NatsJetstreamReadArgs - * @static - * @param {protos.args.NatsJetstreamReadArgs} message NatsJetstreamReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NatsJetstreamReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.stream = ""; - object.consumerName = ""; - object.createDurableConsumer = false; - object.existingDurableConsumer = false; - object.keepConsumer = false; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.consumerStartSequence = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.consumerStartSequence = options.longs === String ? "0" : 0; - object.consumerStartTime = ""; - object.consumerFilterSubject = ""; - } - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - if (message.consumerName != null && message.hasOwnProperty("consumerName")) - object.consumerName = message.consumerName; - if (message.createDurableConsumer != null && message.hasOwnProperty("createDurableConsumer")) - object.createDurableConsumer = message.createDurableConsumer; - if (message.existingDurableConsumer != null && message.hasOwnProperty("existingDurableConsumer")) - object.existingDurableConsumer = message.existingDurableConsumer; - if (message.keepConsumer != null && message.hasOwnProperty("keepConsumer")) - object.keepConsumer = message.keepConsumer; - if (message.consumerStartSequence != null && message.hasOwnProperty("consumerStartSequence")) - if (typeof message.consumerStartSequence === "number") - object.consumerStartSequence = options.longs === String ? String(message.consumerStartSequence) : message.consumerStartSequence; - else - object.consumerStartSequence = options.longs === String ? $util.Long.prototype.toString.call(message.consumerStartSequence) : options.longs === Number ? new $util.LongBits(message.consumerStartSequence.low >>> 0, message.consumerStartSequence.high >>> 0).toNumber() : message.consumerStartSequence; - if (message.consumerStartTime != null && message.hasOwnProperty("consumerStartTime")) - object.consumerStartTime = message.consumerStartTime; - if (message.consumerFilterSubject != null && message.hasOwnProperty("consumerFilterSubject")) - object.consumerFilterSubject = message.consumerFilterSubject; - return object; - }; - - /** - * Converts this NatsJetstreamReadArgs to JSON. - * @function toJSON - * @memberof protos.args.NatsJetstreamReadArgs - * @instance - * @returns {Object.} JSON object - */ - NatsJetstreamReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NatsJetstreamReadArgs; - })(); - - args.NatsJetstreamWriteArgs = (function() { - - /** - * Properties of a NatsJetstreamWriteArgs. - * @memberof protos.args - * @interface INatsJetstreamWriteArgs - * @property {string|null} [subject] NatsJetstreamWriteArgs subject - */ - - /** - * Constructs a new NatsJetstreamWriteArgs. - * @memberof protos.args - * @classdesc Represents a NatsJetstreamWriteArgs. - * @implements INatsJetstreamWriteArgs - * @constructor - * @param {protos.args.INatsJetstreamWriteArgs=} [properties] Properties to set - */ - function NatsJetstreamWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NatsJetstreamWriteArgs subject. - * @member {string} subject - * @memberof protos.args.NatsJetstreamWriteArgs - * @instance - */ - NatsJetstreamWriteArgs.prototype.subject = ""; - - /** - * Creates a new NatsJetstreamWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.NatsJetstreamWriteArgs - * @static - * @param {protos.args.INatsJetstreamWriteArgs=} [properties] Properties to set - * @returns {protos.args.NatsJetstreamWriteArgs} NatsJetstreamWriteArgs instance - */ - NatsJetstreamWriteArgs.create = function create(properties) { - return new NatsJetstreamWriteArgs(properties); - }; - - /** - * Encodes the specified NatsJetstreamWriteArgs message. Does not implicitly {@link protos.args.NatsJetstreamWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.NatsJetstreamWriteArgs - * @static - * @param {protos.args.INatsJetstreamWriteArgs} message NatsJetstreamWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsJetstreamWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.subject != null && Object.hasOwnProperty.call(message, "subject")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.subject); - return writer; - }; - - /** - * Encodes the specified NatsJetstreamWriteArgs message, length delimited. Does not implicitly {@link protos.args.NatsJetstreamWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NatsJetstreamWriteArgs - * @static - * @param {protos.args.INatsJetstreamWriteArgs} message NatsJetstreamWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsJetstreamWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NatsJetstreamWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NatsJetstreamWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NatsJetstreamWriteArgs} NatsJetstreamWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsJetstreamWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsJetstreamWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subject = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NatsJetstreamWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NatsJetstreamWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NatsJetstreamWriteArgs} NatsJetstreamWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsJetstreamWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NatsJetstreamWriteArgs message. - * @function verify - * @memberof protos.args.NatsJetstreamWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NatsJetstreamWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.subject != null && message.hasOwnProperty("subject")) - if (!$util.isString(message.subject)) - return "subject: string expected"; - return null; - }; - - /** - * Creates a NatsJetstreamWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NatsJetstreamWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NatsJetstreamWriteArgs} NatsJetstreamWriteArgs - */ - NatsJetstreamWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NatsJetstreamWriteArgs) - return object; - var message = new $root.protos.args.NatsJetstreamWriteArgs(); - if (object.subject != null) - message.subject = String(object.subject); - return message; - }; - - /** - * Creates a plain object from a NatsJetstreamWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NatsJetstreamWriteArgs - * @static - * @param {protos.args.NatsJetstreamWriteArgs} message NatsJetstreamWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NatsJetstreamWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.subject = ""; - if (message.subject != null && message.hasOwnProperty("subject")) - object.subject = message.subject; - return object; - }; - - /** - * Converts this NatsJetstreamWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.NatsJetstreamWriteArgs - * @instance - * @returns {Object.} JSON object - */ - NatsJetstreamWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NatsJetstreamWriteArgs; - })(); - - args.NatsStreamingTLSOptions = (function() { - - /** - * Properties of a NatsStreamingTLSOptions. - * @memberof protos.args - * @interface INatsStreamingTLSOptions - * @property {string|null} [tlsCaCert] NatsStreamingTLSOptions tlsCaCert - * @property {string|null} [tlsClientCert] NatsStreamingTLSOptions tlsClientCert - * @property {string|null} [tlsClientKey] NatsStreamingTLSOptions tlsClientKey - * @property {boolean|null} [tlsSkipVerify] NatsStreamingTLSOptions tlsSkipVerify - * @property {boolean|null} [useTls] NatsStreamingTLSOptions useTls - */ - - /** - * Constructs a new NatsStreamingTLSOptions. - * @memberof protos.args - * @classdesc Represents a NatsStreamingTLSOptions. - * @implements INatsStreamingTLSOptions - * @constructor - * @param {protos.args.INatsStreamingTLSOptions=} [properties] Properties to set - */ - function NatsStreamingTLSOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NatsStreamingTLSOptions tlsCaCert. - * @member {string} tlsCaCert - * @memberof protos.args.NatsStreamingTLSOptions - * @instance - */ - NatsStreamingTLSOptions.prototype.tlsCaCert = ""; - - /** - * NatsStreamingTLSOptions tlsClientCert. - * @member {string} tlsClientCert - * @memberof protos.args.NatsStreamingTLSOptions - * @instance - */ - NatsStreamingTLSOptions.prototype.tlsClientCert = ""; - - /** - * NatsStreamingTLSOptions tlsClientKey. - * @member {string} tlsClientKey - * @memberof protos.args.NatsStreamingTLSOptions - * @instance - */ - NatsStreamingTLSOptions.prototype.tlsClientKey = ""; - - /** - * NatsStreamingTLSOptions tlsSkipVerify. - * @member {boolean} tlsSkipVerify - * @memberof protos.args.NatsStreamingTLSOptions - * @instance - */ - NatsStreamingTLSOptions.prototype.tlsSkipVerify = false; - - /** - * NatsStreamingTLSOptions useTls. - * @member {boolean} useTls - * @memberof protos.args.NatsStreamingTLSOptions - * @instance - */ - NatsStreamingTLSOptions.prototype.useTls = false; - - /** - * Creates a new NatsStreamingTLSOptions instance using the specified properties. - * @function create - * @memberof protos.args.NatsStreamingTLSOptions - * @static - * @param {protos.args.INatsStreamingTLSOptions=} [properties] Properties to set - * @returns {protos.args.NatsStreamingTLSOptions} NatsStreamingTLSOptions instance - */ - NatsStreamingTLSOptions.create = function create(properties) { - return new NatsStreamingTLSOptions(properties); - }; - - /** - * Encodes the specified NatsStreamingTLSOptions message. Does not implicitly {@link protos.args.NatsStreamingTLSOptions.verify|verify} messages. - * @function encode - * @memberof protos.args.NatsStreamingTLSOptions - * @static - * @param {protos.args.INatsStreamingTLSOptions} message NatsStreamingTLSOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsStreamingTLSOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tlsCaCert != null && Object.hasOwnProperty.call(message, "tlsCaCert")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tlsCaCert); - if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tlsClientCert); - if (message.tlsClientKey != null && Object.hasOwnProperty.call(message, "tlsClientKey")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tlsClientKey); - if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.tlsSkipVerify); - if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useTls); - return writer; - }; - - /** - * Encodes the specified NatsStreamingTLSOptions message, length delimited. Does not implicitly {@link protos.args.NatsStreamingTLSOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NatsStreamingTLSOptions - * @static - * @param {protos.args.INatsStreamingTLSOptions} message NatsStreamingTLSOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsStreamingTLSOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NatsStreamingTLSOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NatsStreamingTLSOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NatsStreamingTLSOptions} NatsStreamingTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsStreamingTLSOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsStreamingTLSOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tlsCaCert = reader.string(); - break; - case 2: - message.tlsClientCert = reader.string(); - break; - case 3: - message.tlsClientKey = reader.string(); - break; - case 4: - message.tlsSkipVerify = reader.bool(); - break; - case 5: - message.useTls = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NatsStreamingTLSOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NatsStreamingTLSOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NatsStreamingTLSOptions} NatsStreamingTLSOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsStreamingTLSOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NatsStreamingTLSOptions message. - * @function verify - * @memberof protos.args.NatsStreamingTLSOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NatsStreamingTLSOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) - if (!$util.isString(message.tlsCaCert)) - return "tlsCaCert: string expected"; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - if (!$util.isString(message.tlsClientCert)) - return "tlsClientCert: string expected"; - if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) - if (!$util.isString(message.tlsClientKey)) - return "tlsClientKey: string expected"; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - if (typeof message.tlsSkipVerify !== "boolean") - return "tlsSkipVerify: boolean expected"; - if (message.useTls != null && message.hasOwnProperty("useTls")) - if (typeof message.useTls !== "boolean") - return "useTls: boolean expected"; - return null; - }; - - /** - * Creates a NatsStreamingTLSOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NatsStreamingTLSOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NatsStreamingTLSOptions} NatsStreamingTLSOptions - */ - NatsStreamingTLSOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NatsStreamingTLSOptions) - return object; - var message = new $root.protos.args.NatsStreamingTLSOptions(); - if (object.tlsCaCert != null) - message.tlsCaCert = String(object.tlsCaCert); - if (object.tlsClientCert != null) - message.tlsClientCert = String(object.tlsClientCert); - if (object.tlsClientKey != null) - message.tlsClientKey = String(object.tlsClientKey); - if (object.tlsSkipVerify != null) - message.tlsSkipVerify = Boolean(object.tlsSkipVerify); - if (object.useTls != null) - message.useTls = Boolean(object.useTls); - return message; - }; - - /** - * Creates a plain object from a NatsStreamingTLSOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NatsStreamingTLSOptions - * @static - * @param {protos.args.NatsStreamingTLSOptions} message NatsStreamingTLSOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NatsStreamingTLSOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.tlsCaCert = ""; - object.tlsClientCert = ""; - object.tlsClientKey = ""; - object.tlsSkipVerify = false; - object.useTls = false; - } - if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) - object.tlsCaCert = message.tlsCaCert; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - object.tlsClientCert = message.tlsClientCert; - if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) - object.tlsClientKey = message.tlsClientKey; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - object.tlsSkipVerify = message.tlsSkipVerify; - if (message.useTls != null && message.hasOwnProperty("useTls")) - object.useTls = message.useTls; - return object; - }; - - /** - * Converts this NatsStreamingTLSOptions to JSON. - * @function toJSON - * @memberof protos.args.NatsStreamingTLSOptions - * @instance - * @returns {Object.} JSON object - */ - NatsStreamingTLSOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NatsStreamingTLSOptions; - })(); - - args.NatsStreamingConn = (function() { - - /** - * Properties of a NatsStreamingConn. - * @memberof protos.args - * @interface INatsStreamingConn - * @property {string|null} [dsn] NatsStreamingConn dsn - * @property {string|null} [userCredentials] NatsStreamingConn userCredentials - * @property {string|null} [clusterId] NatsStreamingConn clusterId - * @property {string|null} [clientId] NatsStreamingConn clientId - * @property {protos.args.INatsStreamingTLSOptions|null} [tlsOptions] NatsStreamingConn tlsOptions - */ - - /** - * Constructs a new NatsStreamingConn. - * @memberof protos.args - * @classdesc Represents a NatsStreamingConn. - * @implements INatsStreamingConn - * @constructor - * @param {protos.args.INatsStreamingConn=} [properties] Properties to set - */ - function NatsStreamingConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NatsStreamingConn dsn. - * @member {string} dsn - * @memberof protos.args.NatsStreamingConn - * @instance - */ - NatsStreamingConn.prototype.dsn = ""; - - /** - * NatsStreamingConn userCredentials. - * @member {string} userCredentials - * @memberof protos.args.NatsStreamingConn - * @instance - */ - NatsStreamingConn.prototype.userCredentials = ""; - - /** - * NatsStreamingConn clusterId. - * @member {string} clusterId - * @memberof protos.args.NatsStreamingConn - * @instance - */ - NatsStreamingConn.prototype.clusterId = ""; - - /** - * NatsStreamingConn clientId. - * @member {string} clientId - * @memberof protos.args.NatsStreamingConn - * @instance - */ - NatsStreamingConn.prototype.clientId = ""; - - /** - * NatsStreamingConn tlsOptions. - * @member {protos.args.INatsStreamingTLSOptions|null|undefined} tlsOptions - * @memberof protos.args.NatsStreamingConn - * @instance - */ - NatsStreamingConn.prototype.tlsOptions = null; - - /** - * Creates a new NatsStreamingConn instance using the specified properties. - * @function create - * @memberof protos.args.NatsStreamingConn - * @static - * @param {protos.args.INatsStreamingConn=} [properties] Properties to set - * @returns {protos.args.NatsStreamingConn} NatsStreamingConn instance - */ - NatsStreamingConn.create = function create(properties) { - return new NatsStreamingConn(properties); - }; - - /** - * Encodes the specified NatsStreamingConn message. Does not implicitly {@link protos.args.NatsStreamingConn.verify|verify} messages. - * @function encode - * @memberof protos.args.NatsStreamingConn - * @static - * @param {protos.args.INatsStreamingConn} message NatsStreamingConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsStreamingConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dsn != null && Object.hasOwnProperty.call(message, "dsn")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dsn); - if (message.userCredentials != null && Object.hasOwnProperty.call(message, "userCredentials")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.userCredentials); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.clientId); - if (message.tlsOptions != null && Object.hasOwnProperty.call(message, "tlsOptions")) - $root.protos.args.NatsStreamingTLSOptions.encode(message.tlsOptions, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified NatsStreamingConn message, length delimited. Does not implicitly {@link protos.args.NatsStreamingConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NatsStreamingConn - * @static - * @param {protos.args.INatsStreamingConn} message NatsStreamingConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsStreamingConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NatsStreamingConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NatsStreamingConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NatsStreamingConn} NatsStreamingConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsStreamingConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsStreamingConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.dsn = reader.string(); - break; - case 2: - message.userCredentials = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 4: - message.clientId = reader.string(); - break; - case 5: - message.tlsOptions = $root.protos.args.NatsStreamingTLSOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NatsStreamingConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NatsStreamingConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NatsStreamingConn} NatsStreamingConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsStreamingConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NatsStreamingConn message. - * @function verify - * @memberof protos.args.NatsStreamingConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NatsStreamingConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dsn != null && message.hasOwnProperty("dsn")) - if (!$util.isString(message.dsn)) - return "dsn: string expected"; - if (message.userCredentials != null && message.hasOwnProperty("userCredentials")) - if (!$util.isString(message.userCredentials)) - return "userCredentials: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!$util.isString(message.clientId)) - return "clientId: string expected"; - if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) { - var error = $root.protos.args.NatsStreamingTLSOptions.verify(message.tlsOptions); - if (error) - return "tlsOptions." + error; - } - return null; - }; - - /** - * Creates a NatsStreamingConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NatsStreamingConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NatsStreamingConn} NatsStreamingConn - */ - NatsStreamingConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NatsStreamingConn) - return object; - var message = new $root.protos.args.NatsStreamingConn(); - if (object.dsn != null) - message.dsn = String(object.dsn); - if (object.userCredentials != null) - message.userCredentials = String(object.userCredentials); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.clientId != null) - message.clientId = String(object.clientId); - if (object.tlsOptions != null) { - if (typeof object.tlsOptions !== "object") - throw TypeError(".protos.args.NatsStreamingConn.tlsOptions: object expected"); - message.tlsOptions = $root.protos.args.NatsStreamingTLSOptions.fromObject(object.tlsOptions); - } - return message; - }; - - /** - * Creates a plain object from a NatsStreamingConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NatsStreamingConn - * @static - * @param {protos.args.NatsStreamingConn} message NatsStreamingConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NatsStreamingConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.dsn = ""; - object.userCredentials = ""; - object.clusterId = ""; - object.clientId = ""; - object.tlsOptions = null; - } - if (message.dsn != null && message.hasOwnProperty("dsn")) - object.dsn = message.dsn; - if (message.userCredentials != null && message.hasOwnProperty("userCredentials")) - object.userCredentials = message.userCredentials; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.clientId != null && message.hasOwnProperty("clientId")) - object.clientId = message.clientId; - if (message.tlsOptions != null && message.hasOwnProperty("tlsOptions")) - object.tlsOptions = $root.protos.args.NatsStreamingTLSOptions.toObject(message.tlsOptions, options); - return object; - }; - - /** - * Converts this NatsStreamingConn to JSON. - * @function toJSON - * @memberof protos.args.NatsStreamingConn - * @instance - * @returns {Object.} JSON object - */ - NatsStreamingConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NatsStreamingConn; - })(); - - args.NatsStreamingReadArgs = (function() { - - /** - * Properties of a NatsStreamingReadArgs. - * @memberof protos.args - * @interface INatsStreamingReadArgs - * @property {string|null} [channel] NatsStreamingReadArgs channel - * @property {string|null} [durableName] NatsStreamingReadArgs durableName - * @property {boolean|null} [readLastAvailable] NatsStreamingReadArgs readLastAvailable - * @property {number|null} [readSequenceNumber] NatsStreamingReadArgs readSequenceNumber - * @property {string|null} [readSince] NatsStreamingReadArgs readSince - * @property {boolean|null} [readAll] NatsStreamingReadArgs readAll - */ - - /** - * Constructs a new NatsStreamingReadArgs. - * @memberof protos.args - * @classdesc Represents a NatsStreamingReadArgs. - * @implements INatsStreamingReadArgs - * @constructor - * @param {protos.args.INatsStreamingReadArgs=} [properties] Properties to set - */ - function NatsStreamingReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NatsStreamingReadArgs channel. - * @member {string} channel - * @memberof protos.args.NatsStreamingReadArgs - * @instance - */ - NatsStreamingReadArgs.prototype.channel = ""; - - /** - * NatsStreamingReadArgs durableName. - * @member {string} durableName - * @memberof protos.args.NatsStreamingReadArgs - * @instance - */ - NatsStreamingReadArgs.prototype.durableName = ""; - - /** - * NatsStreamingReadArgs readLastAvailable. - * @member {boolean} readLastAvailable - * @memberof protos.args.NatsStreamingReadArgs - * @instance - */ - NatsStreamingReadArgs.prototype.readLastAvailable = false; - - /** - * NatsStreamingReadArgs readSequenceNumber. - * @member {number} readSequenceNumber - * @memberof protos.args.NatsStreamingReadArgs - * @instance - */ - NatsStreamingReadArgs.prototype.readSequenceNumber = 0; - - /** - * NatsStreamingReadArgs readSince. - * @member {string} readSince - * @memberof protos.args.NatsStreamingReadArgs - * @instance - */ - NatsStreamingReadArgs.prototype.readSince = ""; - - /** - * NatsStreamingReadArgs readAll. - * @member {boolean} readAll - * @memberof protos.args.NatsStreamingReadArgs - * @instance - */ - NatsStreamingReadArgs.prototype.readAll = false; - - /** - * Creates a new NatsStreamingReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.NatsStreamingReadArgs - * @static - * @param {protos.args.INatsStreamingReadArgs=} [properties] Properties to set - * @returns {protos.args.NatsStreamingReadArgs} NatsStreamingReadArgs instance - */ - NatsStreamingReadArgs.create = function create(properties) { - return new NatsStreamingReadArgs(properties); - }; - - /** - * Encodes the specified NatsStreamingReadArgs message. Does not implicitly {@link protos.args.NatsStreamingReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.NatsStreamingReadArgs - * @static - * @param {protos.args.INatsStreamingReadArgs} message NatsStreamingReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsStreamingReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel); - if (message.durableName != null && Object.hasOwnProperty.call(message, "durableName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.durableName); - if (message.readLastAvailable != null && Object.hasOwnProperty.call(message, "readLastAvailable")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.readLastAvailable); - if (message.readSequenceNumber != null && Object.hasOwnProperty.call(message, "readSequenceNumber")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.readSequenceNumber); - if (message.readSince != null && Object.hasOwnProperty.call(message, "readSince")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.readSince); - if (message.readAll != null && Object.hasOwnProperty.call(message, "readAll")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.readAll); - return writer; - }; - - /** - * Encodes the specified NatsStreamingReadArgs message, length delimited. Does not implicitly {@link protos.args.NatsStreamingReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NatsStreamingReadArgs - * @static - * @param {protos.args.INatsStreamingReadArgs} message NatsStreamingReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsStreamingReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NatsStreamingReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NatsStreamingReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NatsStreamingReadArgs} NatsStreamingReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsStreamingReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsStreamingReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.channel = reader.string(); - break; - case 2: - message.durableName = reader.string(); - break; - case 3: - message.readLastAvailable = reader.bool(); - break; - case 4: - message.readSequenceNumber = reader.uint32(); - break; - case 5: - message.readSince = reader.string(); - break; - case 6: - message.readAll = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NatsStreamingReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NatsStreamingReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NatsStreamingReadArgs} NatsStreamingReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsStreamingReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NatsStreamingReadArgs message. - * @function verify - * @memberof protos.args.NatsStreamingReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NatsStreamingReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.channel != null && message.hasOwnProperty("channel")) - if (!$util.isString(message.channel)) - return "channel: string expected"; - if (message.durableName != null && message.hasOwnProperty("durableName")) - if (!$util.isString(message.durableName)) - return "durableName: string expected"; - if (message.readLastAvailable != null && message.hasOwnProperty("readLastAvailable")) - if (typeof message.readLastAvailable !== "boolean") - return "readLastAvailable: boolean expected"; - if (message.readSequenceNumber != null && message.hasOwnProperty("readSequenceNumber")) - if (!$util.isInteger(message.readSequenceNumber)) - return "readSequenceNumber: integer expected"; - if (message.readSince != null && message.hasOwnProperty("readSince")) - if (!$util.isString(message.readSince)) - return "readSince: string expected"; - if (message.readAll != null && message.hasOwnProperty("readAll")) - if (typeof message.readAll !== "boolean") - return "readAll: boolean expected"; - return null; - }; - - /** - * Creates a NatsStreamingReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NatsStreamingReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NatsStreamingReadArgs} NatsStreamingReadArgs - */ - NatsStreamingReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NatsStreamingReadArgs) - return object; - var message = new $root.protos.args.NatsStreamingReadArgs(); - if (object.channel != null) - message.channel = String(object.channel); - if (object.durableName != null) - message.durableName = String(object.durableName); - if (object.readLastAvailable != null) - message.readLastAvailable = Boolean(object.readLastAvailable); - if (object.readSequenceNumber != null) - message.readSequenceNumber = object.readSequenceNumber >>> 0; - if (object.readSince != null) - message.readSince = String(object.readSince); - if (object.readAll != null) - message.readAll = Boolean(object.readAll); - return message; - }; - - /** - * Creates a plain object from a NatsStreamingReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NatsStreamingReadArgs - * @static - * @param {protos.args.NatsStreamingReadArgs} message NatsStreamingReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NatsStreamingReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.channel = ""; - object.durableName = ""; - object.readLastAvailable = false; - object.readSequenceNumber = 0; - object.readSince = ""; - object.readAll = false; - } - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = message.channel; - if (message.durableName != null && message.hasOwnProperty("durableName")) - object.durableName = message.durableName; - if (message.readLastAvailable != null && message.hasOwnProperty("readLastAvailable")) - object.readLastAvailable = message.readLastAvailable; - if (message.readSequenceNumber != null && message.hasOwnProperty("readSequenceNumber")) - object.readSequenceNumber = message.readSequenceNumber; - if (message.readSince != null && message.hasOwnProperty("readSince")) - object.readSince = message.readSince; - if (message.readAll != null && message.hasOwnProperty("readAll")) - object.readAll = message.readAll; - return object; - }; - - /** - * Converts this NatsStreamingReadArgs to JSON. - * @function toJSON - * @memberof protos.args.NatsStreamingReadArgs - * @instance - * @returns {Object.} JSON object - */ - NatsStreamingReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NatsStreamingReadArgs; - })(); - - args.NatsStreamingWriteArgs = (function() { - - /** - * Properties of a NatsStreamingWriteArgs. - * @memberof protos.args - * @interface INatsStreamingWriteArgs - * @property {string|null} [channel] NatsStreamingWriteArgs channel - */ - - /** - * Constructs a new NatsStreamingWriteArgs. - * @memberof protos.args - * @classdesc Represents a NatsStreamingWriteArgs. - * @implements INatsStreamingWriteArgs - * @constructor - * @param {protos.args.INatsStreamingWriteArgs=} [properties] Properties to set - */ - function NatsStreamingWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NatsStreamingWriteArgs channel. - * @member {string} channel - * @memberof protos.args.NatsStreamingWriteArgs - * @instance - */ - NatsStreamingWriteArgs.prototype.channel = ""; - - /** - * Creates a new NatsStreamingWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.NatsStreamingWriteArgs - * @static - * @param {protos.args.INatsStreamingWriteArgs=} [properties] Properties to set - * @returns {protos.args.NatsStreamingWriteArgs} NatsStreamingWriteArgs instance - */ - NatsStreamingWriteArgs.create = function create(properties) { - return new NatsStreamingWriteArgs(properties); - }; - - /** - * Encodes the specified NatsStreamingWriteArgs message. Does not implicitly {@link protos.args.NatsStreamingWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.NatsStreamingWriteArgs - * @static - * @param {protos.args.INatsStreamingWriteArgs} message NatsStreamingWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsStreamingWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel); - return writer; - }; - - /** - * Encodes the specified NatsStreamingWriteArgs message, length delimited. Does not implicitly {@link protos.args.NatsStreamingWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NatsStreamingWriteArgs - * @static - * @param {protos.args.INatsStreamingWriteArgs} message NatsStreamingWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NatsStreamingWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NatsStreamingWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NatsStreamingWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NatsStreamingWriteArgs} NatsStreamingWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsStreamingWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NatsStreamingWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.channel = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NatsStreamingWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NatsStreamingWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NatsStreamingWriteArgs} NatsStreamingWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NatsStreamingWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NatsStreamingWriteArgs message. - * @function verify - * @memberof protos.args.NatsStreamingWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NatsStreamingWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.channel != null && message.hasOwnProperty("channel")) - if (!$util.isString(message.channel)) - return "channel: string expected"; - return null; - }; - - /** - * Creates a NatsStreamingWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NatsStreamingWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NatsStreamingWriteArgs} NatsStreamingWriteArgs - */ - NatsStreamingWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NatsStreamingWriteArgs) - return object; - var message = new $root.protos.args.NatsStreamingWriteArgs(); - if (object.channel != null) - message.channel = String(object.channel); - return message; - }; - - /** - * Creates a plain object from a NatsStreamingWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NatsStreamingWriteArgs - * @static - * @param {protos.args.NatsStreamingWriteArgs} message NatsStreamingWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NatsStreamingWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.channel = ""; - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = message.channel; - return object; - }; - - /** - * Converts this NatsStreamingWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.NatsStreamingWriteArgs - * @instance - * @returns {Object.} JSON object - */ - NatsStreamingWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NatsStreamingWriteArgs; - })(); - - args.NSQConn = (function() { - - /** - * Properties of a NSQConn. - * @memberof protos.args - * @interface INSQConn - * @property {string|null} [nsqdAddress] NSQConn nsqdAddress - * @property {string|null} [lookupdAddress] NSQConn lookupdAddress - * @property {boolean|null} [useTls] NSQConn useTls - * @property {boolean|null} [tlsSkipVerify] NSQConn tlsSkipVerify - * @property {string|null} [tlsCaCert] NSQConn tlsCaCert - * @property {string|null} [tlsClientCert] NSQConn tlsClientCert - * @property {string|null} [tlsClientKey] NSQConn tlsClientKey - * @property {string|null} [authSecret] NSQConn authSecret - * @property {string|null} [clientId] NSQConn clientId - */ - - /** - * Constructs a new NSQConn. - * @memberof protos.args - * @classdesc Represents a NSQConn. - * @implements INSQConn - * @constructor - * @param {protos.args.INSQConn=} [properties] Properties to set - */ - function NSQConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NSQConn nsqdAddress. - * @member {string} nsqdAddress - * @memberof protos.args.NSQConn - * @instance - */ - NSQConn.prototype.nsqdAddress = ""; - - /** - * NSQConn lookupdAddress. - * @member {string} lookupdAddress - * @memberof protos.args.NSQConn - * @instance - */ - NSQConn.prototype.lookupdAddress = ""; - - /** - * NSQConn useTls. - * @member {boolean} useTls - * @memberof protos.args.NSQConn - * @instance - */ - NSQConn.prototype.useTls = false; - - /** - * NSQConn tlsSkipVerify. - * @member {boolean} tlsSkipVerify - * @memberof protos.args.NSQConn - * @instance - */ - NSQConn.prototype.tlsSkipVerify = false; - - /** - * NSQConn tlsCaCert. - * @member {string} tlsCaCert - * @memberof protos.args.NSQConn - * @instance - */ - NSQConn.prototype.tlsCaCert = ""; - - /** - * NSQConn tlsClientCert. - * @member {string} tlsClientCert - * @memberof protos.args.NSQConn - * @instance - */ - NSQConn.prototype.tlsClientCert = ""; - - /** - * NSQConn tlsClientKey. - * @member {string} tlsClientKey - * @memberof protos.args.NSQConn - * @instance - */ - NSQConn.prototype.tlsClientKey = ""; - - /** - * NSQConn authSecret. - * @member {string} authSecret - * @memberof protos.args.NSQConn - * @instance - */ - NSQConn.prototype.authSecret = ""; - - /** - * NSQConn clientId. - * @member {string} clientId - * @memberof protos.args.NSQConn - * @instance - */ - NSQConn.prototype.clientId = ""; - - /** - * Creates a new NSQConn instance using the specified properties. - * @function create - * @memberof protos.args.NSQConn - * @static - * @param {protos.args.INSQConn=} [properties] Properties to set - * @returns {protos.args.NSQConn} NSQConn instance - */ - NSQConn.create = function create(properties) { - return new NSQConn(properties); - }; - - /** - * Encodes the specified NSQConn message. Does not implicitly {@link protos.args.NSQConn.verify|verify} messages. - * @function encode - * @memberof protos.args.NSQConn - * @static - * @param {protos.args.INSQConn} message NSQConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NSQConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nsqdAddress != null && Object.hasOwnProperty.call(message, "nsqdAddress")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.nsqdAddress); - if (message.lookupdAddress != null && Object.hasOwnProperty.call(message, "lookupdAddress")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.lookupdAddress); - if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useTls); - if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.tlsSkipVerify); - if (message.tlsCaCert != null && Object.hasOwnProperty.call(message, "tlsCaCert")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.tlsCaCert); - if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.tlsClientCert); - if (message.tlsClientKey != null && Object.hasOwnProperty.call(message, "tlsClientKey")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.tlsClientKey); - if (message.authSecret != null && Object.hasOwnProperty.call(message, "authSecret")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.authSecret); - if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.clientId); - return writer; - }; - - /** - * Encodes the specified NSQConn message, length delimited. Does not implicitly {@link protos.args.NSQConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NSQConn - * @static - * @param {protos.args.INSQConn} message NSQConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NSQConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NSQConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NSQConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NSQConn} NSQConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NSQConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NSQConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nsqdAddress = reader.string(); - break; - case 2: - message.lookupdAddress = reader.string(); - break; - case 3: - message.useTls = reader.bool(); - break; - case 4: - message.tlsSkipVerify = reader.bool(); - break; - case 5: - message.tlsCaCert = reader.string(); - break; - case 6: - message.tlsClientCert = reader.string(); - break; - case 7: - message.tlsClientKey = reader.string(); - break; - case 8: - message.authSecret = reader.string(); - break; - case 9: - message.clientId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NSQConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NSQConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NSQConn} NSQConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NSQConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NSQConn message. - * @function verify - * @memberof protos.args.NSQConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NSQConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nsqdAddress != null && message.hasOwnProperty("nsqdAddress")) - if (!$util.isString(message.nsqdAddress)) - return "nsqdAddress: string expected"; - if (message.lookupdAddress != null && message.hasOwnProperty("lookupdAddress")) - if (!$util.isString(message.lookupdAddress)) - return "lookupdAddress: string expected"; - if (message.useTls != null && message.hasOwnProperty("useTls")) - if (typeof message.useTls !== "boolean") - return "useTls: boolean expected"; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - if (typeof message.tlsSkipVerify !== "boolean") - return "tlsSkipVerify: boolean expected"; - if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) - if (!$util.isString(message.tlsCaCert)) - return "tlsCaCert: string expected"; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - if (!$util.isString(message.tlsClientCert)) - return "tlsClientCert: string expected"; - if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) - if (!$util.isString(message.tlsClientKey)) - return "tlsClientKey: string expected"; - if (message.authSecret != null && message.hasOwnProperty("authSecret")) - if (!$util.isString(message.authSecret)) - return "authSecret: string expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!$util.isString(message.clientId)) - return "clientId: string expected"; - return null; - }; - - /** - * Creates a NSQConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NSQConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NSQConn} NSQConn - */ - NSQConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NSQConn) - return object; - var message = new $root.protos.args.NSQConn(); - if (object.nsqdAddress != null) - message.nsqdAddress = String(object.nsqdAddress); - if (object.lookupdAddress != null) - message.lookupdAddress = String(object.lookupdAddress); - if (object.useTls != null) - message.useTls = Boolean(object.useTls); - if (object.tlsSkipVerify != null) - message.tlsSkipVerify = Boolean(object.tlsSkipVerify); - if (object.tlsCaCert != null) - message.tlsCaCert = String(object.tlsCaCert); - if (object.tlsClientCert != null) - message.tlsClientCert = String(object.tlsClientCert); - if (object.tlsClientKey != null) - message.tlsClientKey = String(object.tlsClientKey); - if (object.authSecret != null) - message.authSecret = String(object.authSecret); - if (object.clientId != null) - message.clientId = String(object.clientId); - return message; - }; - - /** - * Creates a plain object from a NSQConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NSQConn - * @static - * @param {protos.args.NSQConn} message NSQConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NSQConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.nsqdAddress = ""; - object.lookupdAddress = ""; - object.useTls = false; - object.tlsSkipVerify = false; - object.tlsCaCert = ""; - object.tlsClientCert = ""; - object.tlsClientKey = ""; - object.authSecret = ""; - object.clientId = ""; - } - if (message.nsqdAddress != null && message.hasOwnProperty("nsqdAddress")) - object.nsqdAddress = message.nsqdAddress; - if (message.lookupdAddress != null && message.hasOwnProperty("lookupdAddress")) - object.lookupdAddress = message.lookupdAddress; - if (message.useTls != null && message.hasOwnProperty("useTls")) - object.useTls = message.useTls; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - object.tlsSkipVerify = message.tlsSkipVerify; - if (message.tlsCaCert != null && message.hasOwnProperty("tlsCaCert")) - object.tlsCaCert = message.tlsCaCert; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - object.tlsClientCert = message.tlsClientCert; - if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) - object.tlsClientKey = message.tlsClientKey; - if (message.authSecret != null && message.hasOwnProperty("authSecret")) - object.authSecret = message.authSecret; - if (message.clientId != null && message.hasOwnProperty("clientId")) - object.clientId = message.clientId; - return object; - }; - - /** - * Converts this NSQConn to JSON. - * @function toJSON - * @memberof protos.args.NSQConn - * @instance - * @returns {Object.} JSON object - */ - NSQConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NSQConn; - })(); - - args.NSQReadArgs = (function() { - - /** - * Properties of a NSQReadArgs. - * @memberof protos.args - * @interface INSQReadArgs - * @property {string|null} [topic] NSQReadArgs topic - * @property {string|null} [channel] NSQReadArgs channel - */ - - /** - * Constructs a new NSQReadArgs. - * @memberof protos.args - * @classdesc Represents a NSQReadArgs. - * @implements INSQReadArgs - * @constructor - * @param {protos.args.INSQReadArgs=} [properties] Properties to set - */ - function NSQReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NSQReadArgs topic. - * @member {string} topic - * @memberof protos.args.NSQReadArgs - * @instance - */ - NSQReadArgs.prototype.topic = ""; - - /** - * NSQReadArgs channel. - * @member {string} channel - * @memberof protos.args.NSQReadArgs - * @instance - */ - NSQReadArgs.prototype.channel = ""; - - /** - * Creates a new NSQReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.NSQReadArgs - * @static - * @param {protos.args.INSQReadArgs=} [properties] Properties to set - * @returns {protos.args.NSQReadArgs} NSQReadArgs instance - */ - NSQReadArgs.create = function create(properties) { - return new NSQReadArgs(properties); - }; - - /** - * Encodes the specified NSQReadArgs message. Does not implicitly {@link protos.args.NSQReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.NSQReadArgs - * @static - * @param {protos.args.INSQReadArgs} message NSQReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NSQReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channel); - return writer; - }; - - /** - * Encodes the specified NSQReadArgs message, length delimited. Does not implicitly {@link protos.args.NSQReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NSQReadArgs - * @static - * @param {protos.args.INSQReadArgs} message NSQReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NSQReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NSQReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NSQReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NSQReadArgs} NSQReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NSQReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NSQReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.topic = reader.string(); - break; - case 2: - message.channel = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NSQReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NSQReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NSQReadArgs} NSQReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NSQReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NSQReadArgs message. - * @function verify - * @memberof protos.args.NSQReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NSQReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.topic != null && message.hasOwnProperty("topic")) - if (!$util.isString(message.topic)) - return "topic: string expected"; - if (message.channel != null && message.hasOwnProperty("channel")) - if (!$util.isString(message.channel)) - return "channel: string expected"; - return null; - }; - - /** - * Creates a NSQReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NSQReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NSQReadArgs} NSQReadArgs - */ - NSQReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NSQReadArgs) - return object; - var message = new $root.protos.args.NSQReadArgs(); - if (object.topic != null) - message.topic = String(object.topic); - if (object.channel != null) - message.channel = String(object.channel); - return message; - }; - - /** - * Creates a plain object from a NSQReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NSQReadArgs - * @static - * @param {protos.args.NSQReadArgs} message NSQReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NSQReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.topic = ""; - object.channel = ""; - } - if (message.topic != null && message.hasOwnProperty("topic")) - object.topic = message.topic; - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = message.channel; - return object; - }; - - /** - * Converts this NSQReadArgs to JSON. - * @function toJSON - * @memberof protos.args.NSQReadArgs - * @instance - * @returns {Object.} JSON object - */ - NSQReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NSQReadArgs; - })(); - - args.NSQWriteArgs = (function() { - - /** - * Properties of a NSQWriteArgs. - * @memberof protos.args - * @interface INSQWriteArgs - * @property {string|null} [topic] NSQWriteArgs topic - */ - - /** - * Constructs a new NSQWriteArgs. - * @memberof protos.args - * @classdesc Represents a NSQWriteArgs. - * @implements INSQWriteArgs - * @constructor - * @param {protos.args.INSQWriteArgs=} [properties] Properties to set - */ - function NSQWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NSQWriteArgs topic. - * @member {string} topic - * @memberof protos.args.NSQWriteArgs - * @instance - */ - NSQWriteArgs.prototype.topic = ""; - - /** - * Creates a new NSQWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.NSQWriteArgs - * @static - * @param {protos.args.INSQWriteArgs=} [properties] Properties to set - * @returns {protos.args.NSQWriteArgs} NSQWriteArgs instance - */ - NSQWriteArgs.create = function create(properties) { - return new NSQWriteArgs(properties); - }; - - /** - * Encodes the specified NSQWriteArgs message. Does not implicitly {@link protos.args.NSQWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.NSQWriteArgs - * @static - * @param {protos.args.INSQWriteArgs} message NSQWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NSQWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); - return writer; - }; - - /** - * Encodes the specified NSQWriteArgs message, length delimited. Does not implicitly {@link protos.args.NSQWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.NSQWriteArgs - * @static - * @param {protos.args.INSQWriteArgs} message NSQWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NSQWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NSQWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.NSQWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.NSQWriteArgs} NSQWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NSQWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.NSQWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.topic = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NSQWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.NSQWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.NSQWriteArgs} NSQWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NSQWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NSQWriteArgs message. - * @function verify - * @memberof protos.args.NSQWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NSQWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.topic != null && message.hasOwnProperty("topic")) - if (!$util.isString(message.topic)) - return "topic: string expected"; - return null; - }; - - /** - * Creates a NSQWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.NSQWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.NSQWriteArgs} NSQWriteArgs - */ - NSQWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.NSQWriteArgs) - return object; - var message = new $root.protos.args.NSQWriteArgs(); - if (object.topic != null) - message.topic = String(object.topic); - return message; - }; - - /** - * Creates a plain object from a NSQWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.NSQWriteArgs - * @static - * @param {protos.args.NSQWriteArgs} message NSQWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NSQWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.topic = ""; - if (message.topic != null && message.hasOwnProperty("topic")) - object.topic = message.topic; - return object; - }; - - /** - * Converts this NSQWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.NSQWriteArgs - * @instance - * @returns {Object.} JSON object - */ - NSQWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NSQWriteArgs; - })(); - - args.PostgresConn = (function() { - - /** - * Properties of a PostgresConn. - * @memberof protos.args - * @interface IPostgresConn - * @property {string|null} [address] PostgresConn address - * @property {number|null} [port] PostgresConn port - * @property {string|null} [username] PostgresConn username - * @property {string|null} [password] PostgresConn password - * @property {string|null} [database] PostgresConn database - * @property {boolean|null} [useTls] PostgresConn useTls - * @property {boolean|null} [tlsSkipVerify] PostgresConn tlsSkipVerify - */ - - /** - * Constructs a new PostgresConn. - * @memberof protos.args - * @classdesc Represents a PostgresConn. - * @implements IPostgresConn - * @constructor - * @param {protos.args.IPostgresConn=} [properties] Properties to set - */ - function PostgresConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PostgresConn address. - * @member {string} address - * @memberof protos.args.PostgresConn - * @instance - */ - PostgresConn.prototype.address = ""; - - /** - * PostgresConn port. - * @member {number} port - * @memberof protos.args.PostgresConn - * @instance - */ - PostgresConn.prototype.port = 0; - - /** - * PostgresConn username. - * @member {string} username - * @memberof protos.args.PostgresConn - * @instance - */ - PostgresConn.prototype.username = ""; - - /** - * PostgresConn password. - * @member {string} password - * @memberof protos.args.PostgresConn - * @instance - */ - PostgresConn.prototype.password = ""; - - /** - * PostgresConn database. - * @member {string} database - * @memberof protos.args.PostgresConn - * @instance - */ - PostgresConn.prototype.database = ""; - - /** - * PostgresConn useTls. - * @member {boolean} useTls - * @memberof protos.args.PostgresConn - * @instance - */ - PostgresConn.prototype.useTls = false; - - /** - * PostgresConn tlsSkipVerify. - * @member {boolean} tlsSkipVerify - * @memberof protos.args.PostgresConn - * @instance - */ - PostgresConn.prototype.tlsSkipVerify = false; - - /** - * Creates a new PostgresConn instance using the specified properties. - * @function create - * @memberof protos.args.PostgresConn - * @static - * @param {protos.args.IPostgresConn=} [properties] Properties to set - * @returns {protos.args.PostgresConn} PostgresConn instance - */ - PostgresConn.create = function create(properties) { - return new PostgresConn(properties); - }; - - /** - * Encodes the specified PostgresConn message. Does not implicitly {@link protos.args.PostgresConn.verify|verify} messages. - * @function encode - * @memberof protos.args.PostgresConn - * @static - * @param {protos.args.IPostgresConn} message PostgresConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PostgresConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - if (message.port != null && Object.hasOwnProperty.call(message, "port")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.port); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.password); - if (message.database != null && Object.hasOwnProperty.call(message, "database")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.database); - if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.useTls); - if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.tlsSkipVerify); - return writer; - }; - - /** - * Encodes the specified PostgresConn message, length delimited. Does not implicitly {@link protos.args.PostgresConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.PostgresConn - * @static - * @param {protos.args.IPostgresConn} message PostgresConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PostgresConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PostgresConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.PostgresConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.PostgresConn} PostgresConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PostgresConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.PostgresConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.port = reader.uint32(); - break; - case 3: - message.username = reader.string(); - break; - case 4: - message.password = reader.string(); - break; - case 5: - message.database = reader.string(); - break; - case 6: - message.useTls = reader.bool(); - break; - case 7: - message.tlsSkipVerify = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PostgresConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.PostgresConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.PostgresConn} PostgresConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PostgresConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PostgresConn message. - * @function verify - * @memberof protos.args.PostgresConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PostgresConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - if (message.port != null && message.hasOwnProperty("port")) - if (!$util.isInteger(message.port)) - return "port: integer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; - if (message.database != null && message.hasOwnProperty("database")) - if (!$util.isString(message.database)) - return "database: string expected"; - if (message.useTls != null && message.hasOwnProperty("useTls")) - if (typeof message.useTls !== "boolean") - return "useTls: boolean expected"; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - if (typeof message.tlsSkipVerify !== "boolean") - return "tlsSkipVerify: boolean expected"; - return null; - }; - - /** - * Creates a PostgresConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.PostgresConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.PostgresConn} PostgresConn - */ - PostgresConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.PostgresConn) - return object; - var message = new $root.protos.args.PostgresConn(); - if (object.address != null) - message.address = String(object.address); - if (object.port != null) - message.port = object.port >>> 0; - if (object.username != null) - message.username = String(object.username); - if (object.password != null) - message.password = String(object.password); - if (object.database != null) - message.database = String(object.database); - if (object.useTls != null) - message.useTls = Boolean(object.useTls); - if (object.tlsSkipVerify != null) - message.tlsSkipVerify = Boolean(object.tlsSkipVerify); - return message; - }; - - /** - * Creates a plain object from a PostgresConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.PostgresConn - * @static - * @param {protos.args.PostgresConn} message PostgresConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PostgresConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.address = ""; - object.port = 0; - object.username = ""; - object.password = ""; - object.database = ""; - object.useTls = false; - object.tlsSkipVerify = false; - } - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.port != null && message.hasOwnProperty("port")) - object.port = message.port; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; - if (message.database != null && message.hasOwnProperty("database")) - object.database = message.database; - if (message.useTls != null && message.hasOwnProperty("useTls")) - object.useTls = message.useTls; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - object.tlsSkipVerify = message.tlsSkipVerify; - return object; - }; - - /** - * Converts this PostgresConn to JSON. - * @function toJSON - * @memberof protos.args.PostgresConn - * @instance - * @returns {Object.} JSON object - */ - PostgresConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PostgresConn; - })(); - - args.PostgresReadArgs = (function() { - - /** - * Properties of a PostgresReadArgs. - * @memberof protos.args - * @interface IPostgresReadArgs - * @property {string|null} [replicationSlotName] PostgresReadArgs replicationSlotName - * @property {string|null} [publisherName] PostgresReadArgs publisherName - */ - - /** - * Constructs a new PostgresReadArgs. - * @memberof protos.args - * @classdesc Represents a PostgresReadArgs. - * @implements IPostgresReadArgs - * @constructor - * @param {protos.args.IPostgresReadArgs=} [properties] Properties to set - */ - function PostgresReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PostgresReadArgs replicationSlotName. - * @member {string} replicationSlotName - * @memberof protos.args.PostgresReadArgs - * @instance - */ - PostgresReadArgs.prototype.replicationSlotName = ""; - - /** - * PostgresReadArgs publisherName. - * @member {string} publisherName - * @memberof protos.args.PostgresReadArgs - * @instance - */ - PostgresReadArgs.prototype.publisherName = ""; - - /** - * Creates a new PostgresReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.PostgresReadArgs - * @static - * @param {protos.args.IPostgresReadArgs=} [properties] Properties to set - * @returns {protos.args.PostgresReadArgs} PostgresReadArgs instance - */ - PostgresReadArgs.create = function create(properties) { - return new PostgresReadArgs(properties); - }; - - /** - * Encodes the specified PostgresReadArgs message. Does not implicitly {@link protos.args.PostgresReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.PostgresReadArgs - * @static - * @param {protos.args.IPostgresReadArgs} message PostgresReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PostgresReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.replicationSlotName != null && Object.hasOwnProperty.call(message, "replicationSlotName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.replicationSlotName); - if (message.publisherName != null && Object.hasOwnProperty.call(message, "publisherName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.publisherName); - return writer; - }; - - /** - * Encodes the specified PostgresReadArgs message, length delimited. Does not implicitly {@link protos.args.PostgresReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.PostgresReadArgs - * @static - * @param {protos.args.IPostgresReadArgs} message PostgresReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PostgresReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PostgresReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.PostgresReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.PostgresReadArgs} PostgresReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PostgresReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.PostgresReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.replicationSlotName = reader.string(); - break; - case 3: - message.publisherName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PostgresReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.PostgresReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.PostgresReadArgs} PostgresReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PostgresReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PostgresReadArgs message. - * @function verify - * @memberof protos.args.PostgresReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PostgresReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.replicationSlotName != null && message.hasOwnProperty("replicationSlotName")) - if (!$util.isString(message.replicationSlotName)) - return "replicationSlotName: string expected"; - if (message.publisherName != null && message.hasOwnProperty("publisherName")) - if (!$util.isString(message.publisherName)) - return "publisherName: string expected"; - return null; - }; - - /** - * Creates a PostgresReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.PostgresReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.PostgresReadArgs} PostgresReadArgs - */ - PostgresReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.PostgresReadArgs) - return object; - var message = new $root.protos.args.PostgresReadArgs(); - if (object.replicationSlotName != null) - message.replicationSlotName = String(object.replicationSlotName); - if (object.publisherName != null) - message.publisherName = String(object.publisherName); - return message; - }; - - /** - * Creates a plain object from a PostgresReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.PostgresReadArgs - * @static - * @param {protos.args.PostgresReadArgs} message PostgresReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PostgresReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.replicationSlotName = ""; - object.publisherName = ""; - } - if (message.replicationSlotName != null && message.hasOwnProperty("replicationSlotName")) - object.replicationSlotName = message.replicationSlotName; - if (message.publisherName != null && message.hasOwnProperty("publisherName")) - object.publisherName = message.publisherName; - return object; - }; - - /** - * Converts this PostgresReadArgs to JSON. - * @function toJSON - * @memberof protos.args.PostgresReadArgs - * @instance - * @returns {Object.} JSON object - */ - PostgresReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PostgresReadArgs; - })(); - - /** - * SubscriptionType enum. - * @name protos.args.SubscriptionType - * @enum {number} - * @property {number} SHARED=0 SHARED value - * @property {number} EXCLUSIVE=1 EXCLUSIVE value - * @property {number} FAILOVER=2 FAILOVER value - * @property {number} KEYSHARED=3 KEYSHARED value - */ - args.SubscriptionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SHARED"] = 0; - values[valuesById[1] = "EXCLUSIVE"] = 1; - values[valuesById[2] = "FAILOVER"] = 2; - values[valuesById[3] = "KEYSHARED"] = 3; - return values; - })(); - - /** - * SubscriptionInitialPosition enum. - * @name protos.args.SubscriptionInitialPosition - * @enum {number} - * @property {number} PULSAR_LATEST=0 PULSAR_LATEST value - * @property {number} PULSAR_EARLIEST=1 PULSAR_EARLIEST value - */ - args.SubscriptionInitialPosition = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PULSAR_LATEST"] = 0; - values[valuesById[1] = "PULSAR_EARLIEST"] = 1; - return values; - })(); - - args.PulsarConn = (function() { - - /** - * Properties of a PulsarConn. - * @memberof protos.args - * @interface IPulsarConn - * @property {string|null} [dsn] PulsarConn dsn - * @property {number|null} [connectTimeoutSeconds] PulsarConn connectTimeoutSeconds - * @property {boolean|null} [tlsSkipVerify] PulsarConn tlsSkipVerify - * @property {string|null} [tlsClientCert] PulsarConn tlsClientCert - * @property {string|null} [tlsClientKey] PulsarConn tlsClientKey - * @property {string|null} [token] PulsarConn token - * @property {string|null} [listenerName] PulsarConn listenerName - */ - - /** - * Constructs a new PulsarConn. - * @memberof protos.args - * @classdesc Represents a PulsarConn. - * @implements IPulsarConn - * @constructor - * @param {protos.args.IPulsarConn=} [properties] Properties to set - */ - function PulsarConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PulsarConn dsn. - * @member {string} dsn - * @memberof protos.args.PulsarConn - * @instance - */ - PulsarConn.prototype.dsn = ""; - - /** - * PulsarConn connectTimeoutSeconds. - * @member {number} connectTimeoutSeconds - * @memberof protos.args.PulsarConn - * @instance - */ - PulsarConn.prototype.connectTimeoutSeconds = 0; - - /** - * PulsarConn tlsSkipVerify. - * @member {boolean} tlsSkipVerify - * @memberof protos.args.PulsarConn - * @instance - */ - PulsarConn.prototype.tlsSkipVerify = false; - - /** - * PulsarConn tlsClientCert. - * @member {string} tlsClientCert - * @memberof protos.args.PulsarConn - * @instance - */ - PulsarConn.prototype.tlsClientCert = ""; - - /** - * PulsarConn tlsClientKey. - * @member {string} tlsClientKey - * @memberof protos.args.PulsarConn - * @instance - */ - PulsarConn.prototype.tlsClientKey = ""; - - /** - * PulsarConn token. - * @member {string} token - * @memberof protos.args.PulsarConn - * @instance - */ - PulsarConn.prototype.token = ""; - - /** - * PulsarConn listenerName. - * @member {string} listenerName - * @memberof protos.args.PulsarConn - * @instance - */ - PulsarConn.prototype.listenerName = ""; - - /** - * Creates a new PulsarConn instance using the specified properties. - * @function create - * @memberof protos.args.PulsarConn - * @static - * @param {protos.args.IPulsarConn=} [properties] Properties to set - * @returns {protos.args.PulsarConn} PulsarConn instance - */ - PulsarConn.create = function create(properties) { - return new PulsarConn(properties); - }; - - /** - * Encodes the specified PulsarConn message. Does not implicitly {@link protos.args.PulsarConn.verify|verify} messages. - * @function encode - * @memberof protos.args.PulsarConn - * @static - * @param {protos.args.IPulsarConn} message PulsarConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PulsarConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dsn != null && Object.hasOwnProperty.call(message, "dsn")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dsn); - if (message.connectTimeoutSeconds != null && Object.hasOwnProperty.call(message, "connectTimeoutSeconds")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.connectTimeoutSeconds); - if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.tlsSkipVerify); - if (message.tlsClientCert != null && Object.hasOwnProperty.call(message, "tlsClientCert")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.tlsClientCert); - if (message.tlsClientKey != null && Object.hasOwnProperty.call(message, "tlsClientKey")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.tlsClientKey); - if (message.token != null && Object.hasOwnProperty.call(message, "token")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.token); - if (message.listenerName != null && Object.hasOwnProperty.call(message, "listenerName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.listenerName); - return writer; - }; - - /** - * Encodes the specified PulsarConn message, length delimited. Does not implicitly {@link protos.args.PulsarConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.PulsarConn - * @static - * @param {protos.args.IPulsarConn} message PulsarConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PulsarConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PulsarConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.PulsarConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.PulsarConn} PulsarConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PulsarConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.PulsarConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.dsn = reader.string(); - break; - case 2: - message.connectTimeoutSeconds = reader.uint32(); - break; - case 3: - message.tlsSkipVerify = reader.bool(); - break; - case 4: - message.tlsClientCert = reader.string(); - break; - case 5: - message.tlsClientKey = reader.string(); - break; - case 6: - message.token = reader.string(); - break; - case 7: - message.listenerName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PulsarConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.PulsarConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.PulsarConn} PulsarConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PulsarConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PulsarConn message. - * @function verify - * @memberof protos.args.PulsarConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PulsarConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dsn != null && message.hasOwnProperty("dsn")) - if (!$util.isString(message.dsn)) - return "dsn: string expected"; - if (message.connectTimeoutSeconds != null && message.hasOwnProperty("connectTimeoutSeconds")) - if (!$util.isInteger(message.connectTimeoutSeconds)) - return "connectTimeoutSeconds: integer expected"; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - if (typeof message.tlsSkipVerify !== "boolean") - return "tlsSkipVerify: boolean expected"; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - if (!$util.isString(message.tlsClientCert)) - return "tlsClientCert: string expected"; - if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) - if (!$util.isString(message.tlsClientKey)) - return "tlsClientKey: string expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.listenerName != null && message.hasOwnProperty("listenerName")) - if (!$util.isString(message.listenerName)) - return "listenerName: string expected"; - return null; - }; - - /** - * Creates a PulsarConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.PulsarConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.PulsarConn} PulsarConn - */ - PulsarConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.PulsarConn) - return object; - var message = new $root.protos.args.PulsarConn(); - if (object.dsn != null) - message.dsn = String(object.dsn); - if (object.connectTimeoutSeconds != null) - message.connectTimeoutSeconds = object.connectTimeoutSeconds >>> 0; - if (object.tlsSkipVerify != null) - message.tlsSkipVerify = Boolean(object.tlsSkipVerify); - if (object.tlsClientCert != null) - message.tlsClientCert = String(object.tlsClientCert); - if (object.tlsClientKey != null) - message.tlsClientKey = String(object.tlsClientKey); - if (object.token != null) - message.token = String(object.token); - if (object.listenerName != null) - message.listenerName = String(object.listenerName); - return message; - }; - - /** - * Creates a plain object from a PulsarConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.PulsarConn - * @static - * @param {protos.args.PulsarConn} message PulsarConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PulsarConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.dsn = ""; - object.connectTimeoutSeconds = 0; - object.tlsSkipVerify = false; - object.tlsClientCert = ""; - object.tlsClientKey = ""; - object.token = ""; - object.listenerName = ""; - } - if (message.dsn != null && message.hasOwnProperty("dsn")) - object.dsn = message.dsn; - if (message.connectTimeoutSeconds != null && message.hasOwnProperty("connectTimeoutSeconds")) - object.connectTimeoutSeconds = message.connectTimeoutSeconds; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - object.tlsSkipVerify = message.tlsSkipVerify; - if (message.tlsClientCert != null && message.hasOwnProperty("tlsClientCert")) - object.tlsClientCert = message.tlsClientCert; - if (message.tlsClientKey != null && message.hasOwnProperty("tlsClientKey")) - object.tlsClientKey = message.tlsClientKey; - if (message.token != null && message.hasOwnProperty("token")) - object.token = message.token; - if (message.listenerName != null && message.hasOwnProperty("listenerName")) - object.listenerName = message.listenerName; - return object; - }; - - /** - * Converts this PulsarConn to JSON. - * @function toJSON - * @memberof protos.args.PulsarConn - * @instance - * @returns {Object.} JSON object - */ - PulsarConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PulsarConn; - })(); - - args.PulsarReadArgs = (function() { - - /** - * Properties of a PulsarReadArgs. - * @memberof protos.args - * @interface IPulsarReadArgs - * @property {string|null} [topic] PulsarReadArgs topic - * @property {string|null} [subscriptionName] PulsarReadArgs subscriptionName - * @property {protos.args.SubscriptionType|null} [subscriptionType] PulsarReadArgs subscriptionType - * @property {protos.args.SubscriptionInitialPosition|null} [initialPosition] PulsarReadArgs initialPosition - */ - - /** - * Constructs a new PulsarReadArgs. - * @memberof protos.args - * @classdesc Represents a PulsarReadArgs. - * @implements IPulsarReadArgs - * @constructor - * @param {protos.args.IPulsarReadArgs=} [properties] Properties to set - */ - function PulsarReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PulsarReadArgs topic. - * @member {string} topic - * @memberof protos.args.PulsarReadArgs - * @instance - */ - PulsarReadArgs.prototype.topic = ""; - - /** - * PulsarReadArgs subscriptionName. - * @member {string} subscriptionName - * @memberof protos.args.PulsarReadArgs - * @instance - */ - PulsarReadArgs.prototype.subscriptionName = ""; - - /** - * PulsarReadArgs subscriptionType. - * @member {protos.args.SubscriptionType} subscriptionType - * @memberof protos.args.PulsarReadArgs - * @instance - */ - PulsarReadArgs.prototype.subscriptionType = 0; - - /** - * PulsarReadArgs initialPosition. - * @member {protos.args.SubscriptionInitialPosition} initialPosition - * @memberof protos.args.PulsarReadArgs - * @instance - */ - PulsarReadArgs.prototype.initialPosition = 0; - - /** - * Creates a new PulsarReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.PulsarReadArgs - * @static - * @param {protos.args.IPulsarReadArgs=} [properties] Properties to set - * @returns {protos.args.PulsarReadArgs} PulsarReadArgs instance - */ - PulsarReadArgs.create = function create(properties) { - return new PulsarReadArgs(properties); - }; - - /** - * Encodes the specified PulsarReadArgs message. Does not implicitly {@link protos.args.PulsarReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.PulsarReadArgs - * @static - * @param {protos.args.IPulsarReadArgs} message PulsarReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PulsarReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); - if (message.subscriptionName != null && Object.hasOwnProperty.call(message, "subscriptionName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.subscriptionName); - if (message.subscriptionType != null && Object.hasOwnProperty.call(message, "subscriptionType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.subscriptionType); - if (message.initialPosition != null && Object.hasOwnProperty.call(message, "initialPosition")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.initialPosition); - return writer; - }; - - /** - * Encodes the specified PulsarReadArgs message, length delimited. Does not implicitly {@link protos.args.PulsarReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.PulsarReadArgs - * @static - * @param {protos.args.IPulsarReadArgs} message PulsarReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PulsarReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PulsarReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.PulsarReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.PulsarReadArgs} PulsarReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PulsarReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.PulsarReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.topic = reader.string(); - break; - case 2: - message.subscriptionName = reader.string(); - break; - case 3: - message.subscriptionType = reader.int32(); - break; - case 4: - message.initialPosition = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PulsarReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.PulsarReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.PulsarReadArgs} PulsarReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PulsarReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PulsarReadArgs message. - * @function verify - * @memberof protos.args.PulsarReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PulsarReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.topic != null && message.hasOwnProperty("topic")) - if (!$util.isString(message.topic)) - return "topic: string expected"; - if (message.subscriptionName != null && message.hasOwnProperty("subscriptionName")) - if (!$util.isString(message.subscriptionName)) - return "subscriptionName: string expected"; - if (message.subscriptionType != null && message.hasOwnProperty("subscriptionType")) - switch (message.subscriptionType) { - default: - return "subscriptionType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.initialPosition != null && message.hasOwnProperty("initialPosition")) - switch (message.initialPosition) { - default: - return "initialPosition: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - /** - * Creates a PulsarReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.PulsarReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.PulsarReadArgs} PulsarReadArgs - */ - PulsarReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.PulsarReadArgs) - return object; - var message = new $root.protos.args.PulsarReadArgs(); - if (object.topic != null) - message.topic = String(object.topic); - if (object.subscriptionName != null) - message.subscriptionName = String(object.subscriptionName); - switch (object.subscriptionType) { - case "SHARED": - case 0: - message.subscriptionType = 0; - break; - case "EXCLUSIVE": - case 1: - message.subscriptionType = 1; - break; - case "FAILOVER": - case 2: - message.subscriptionType = 2; - break; - case "KEYSHARED": - case 3: - message.subscriptionType = 3; - break; - } - switch (object.initialPosition) { - case "PULSAR_LATEST": - case 0: - message.initialPosition = 0; - break; - case "PULSAR_EARLIEST": - case 1: - message.initialPosition = 1; - break; - } - return message; - }; - - /** - * Creates a plain object from a PulsarReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.PulsarReadArgs - * @static - * @param {protos.args.PulsarReadArgs} message PulsarReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PulsarReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.topic = ""; - object.subscriptionName = ""; - object.subscriptionType = options.enums === String ? "SHARED" : 0; - object.initialPosition = options.enums === String ? "PULSAR_LATEST" : 0; - } - if (message.topic != null && message.hasOwnProperty("topic")) - object.topic = message.topic; - if (message.subscriptionName != null && message.hasOwnProperty("subscriptionName")) - object.subscriptionName = message.subscriptionName; - if (message.subscriptionType != null && message.hasOwnProperty("subscriptionType")) - object.subscriptionType = options.enums === String ? $root.protos.args.SubscriptionType[message.subscriptionType] : message.subscriptionType; - if (message.initialPosition != null && message.hasOwnProperty("initialPosition")) - object.initialPosition = options.enums === String ? $root.protos.args.SubscriptionInitialPosition[message.initialPosition] : message.initialPosition; - return object; - }; - - /** - * Converts this PulsarReadArgs to JSON. - * @function toJSON - * @memberof protos.args.PulsarReadArgs - * @instance - * @returns {Object.} JSON object - */ - PulsarReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PulsarReadArgs; - })(); - - args.PulsarWriteArgs = (function() { - - /** - * Properties of a PulsarWriteArgs. - * @memberof protos.args - * @interface IPulsarWriteArgs - * @property {string|null} [topic] PulsarWriteArgs topic - */ - - /** - * Constructs a new PulsarWriteArgs. - * @memberof protos.args - * @classdesc Represents a PulsarWriteArgs. - * @implements IPulsarWriteArgs - * @constructor - * @param {protos.args.IPulsarWriteArgs=} [properties] Properties to set - */ - function PulsarWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PulsarWriteArgs topic. - * @member {string} topic - * @memberof protos.args.PulsarWriteArgs - * @instance - */ - PulsarWriteArgs.prototype.topic = ""; - - /** - * Creates a new PulsarWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.PulsarWriteArgs - * @static - * @param {protos.args.IPulsarWriteArgs=} [properties] Properties to set - * @returns {protos.args.PulsarWriteArgs} PulsarWriteArgs instance - */ - PulsarWriteArgs.create = function create(properties) { - return new PulsarWriteArgs(properties); - }; - - /** - * Encodes the specified PulsarWriteArgs message. Does not implicitly {@link protos.args.PulsarWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.PulsarWriteArgs - * @static - * @param {protos.args.IPulsarWriteArgs} message PulsarWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PulsarWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.topic != null && Object.hasOwnProperty.call(message, "topic")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.topic); - return writer; - }; - - /** - * Encodes the specified PulsarWriteArgs message, length delimited. Does not implicitly {@link protos.args.PulsarWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.PulsarWriteArgs - * @static - * @param {protos.args.IPulsarWriteArgs} message PulsarWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PulsarWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PulsarWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.PulsarWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.PulsarWriteArgs} PulsarWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PulsarWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.PulsarWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.topic = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PulsarWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.PulsarWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.PulsarWriteArgs} PulsarWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PulsarWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PulsarWriteArgs message. - * @function verify - * @memberof protos.args.PulsarWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PulsarWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.topic != null && message.hasOwnProperty("topic")) - if (!$util.isString(message.topic)) - return "topic: string expected"; - return null; - }; - - /** - * Creates a PulsarWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.PulsarWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.PulsarWriteArgs} PulsarWriteArgs - */ - PulsarWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.PulsarWriteArgs) - return object; - var message = new $root.protos.args.PulsarWriteArgs(); - if (object.topic != null) - message.topic = String(object.topic); - return message; - }; - - /** - * Creates a plain object from a PulsarWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.PulsarWriteArgs - * @static - * @param {protos.args.PulsarWriteArgs} message PulsarWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PulsarWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.topic = ""; - if (message.topic != null && message.hasOwnProperty("topic")) - object.topic = message.topic; - return object; - }; - - /** - * Converts this PulsarWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.PulsarWriteArgs - * @instance - * @returns {Object.} JSON object - */ - PulsarWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PulsarWriteArgs; - })(); - - args.RabbitConn = (function() { - - /** - * Properties of a RabbitConn. - * @memberof protos.args - * @interface IRabbitConn - * @property {string|null} [address] RabbitConn address - * @property {boolean|null} [useTls] RabbitConn useTls - * @property {boolean|null} [tlsSkipVerify] RabbitConn tlsSkipVerify - */ - - /** - * Constructs a new RabbitConn. - * @memberof protos.args - * @classdesc Represents a RabbitConn. - * @implements IRabbitConn - * @constructor - * @param {protos.args.IRabbitConn=} [properties] Properties to set - */ - function RabbitConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RabbitConn address. - * @member {string} address - * @memberof protos.args.RabbitConn - * @instance - */ - RabbitConn.prototype.address = ""; - - /** - * RabbitConn useTls. - * @member {boolean} useTls - * @memberof protos.args.RabbitConn - * @instance - */ - RabbitConn.prototype.useTls = false; - - /** - * RabbitConn tlsSkipVerify. - * @member {boolean} tlsSkipVerify - * @memberof protos.args.RabbitConn - * @instance - */ - RabbitConn.prototype.tlsSkipVerify = false; - - /** - * Creates a new RabbitConn instance using the specified properties. - * @function create - * @memberof protos.args.RabbitConn - * @static - * @param {protos.args.IRabbitConn=} [properties] Properties to set - * @returns {protos.args.RabbitConn} RabbitConn instance - */ - RabbitConn.create = function create(properties) { - return new RabbitConn(properties); - }; - - /** - * Encodes the specified RabbitConn message. Does not implicitly {@link protos.args.RabbitConn.verify|verify} messages. - * @function encode - * @memberof protos.args.RabbitConn - * @static - * @param {protos.args.IRabbitConn} message RabbitConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useTls); - if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.tlsSkipVerify); - return writer; - }; - - /** - * Encodes the specified RabbitConn message, length delimited. Does not implicitly {@link protos.args.RabbitConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.RabbitConn - * @static - * @param {protos.args.IRabbitConn} message RabbitConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RabbitConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.RabbitConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.RabbitConn} RabbitConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.useTls = reader.bool(); - break; - case 3: - message.tlsSkipVerify = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RabbitConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.RabbitConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.RabbitConn} RabbitConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RabbitConn message. - * @function verify - * @memberof protos.args.RabbitConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RabbitConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - if (message.useTls != null && message.hasOwnProperty("useTls")) - if (typeof message.useTls !== "boolean") - return "useTls: boolean expected"; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - if (typeof message.tlsSkipVerify !== "boolean") - return "tlsSkipVerify: boolean expected"; - return null; - }; - - /** - * Creates a RabbitConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.RabbitConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.RabbitConn} RabbitConn - */ - RabbitConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.RabbitConn) - return object; - var message = new $root.protos.args.RabbitConn(); - if (object.address != null) - message.address = String(object.address); - if (object.useTls != null) - message.useTls = Boolean(object.useTls); - if (object.tlsSkipVerify != null) - message.tlsSkipVerify = Boolean(object.tlsSkipVerify); - return message; - }; - - /** - * Creates a plain object from a RabbitConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.RabbitConn - * @static - * @param {protos.args.RabbitConn} message RabbitConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RabbitConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.address = ""; - object.useTls = false; - object.tlsSkipVerify = false; - } - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.useTls != null && message.hasOwnProperty("useTls")) - object.useTls = message.useTls; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - object.tlsSkipVerify = message.tlsSkipVerify; - return object; - }; - - /** - * Converts this RabbitConn to JSON. - * @function toJSON - * @memberof protos.args.RabbitConn - * @instance - * @returns {Object.} JSON object - */ - RabbitConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RabbitConn; - })(); - - args.RabbitReadArgs = (function() { - - /** - * Properties of a RabbitReadArgs. - * @memberof protos.args - * @interface IRabbitReadArgs - * @property {string|null} [exchangeName] RabbitReadArgs exchangeName - * @property {string|null} [queueName] RabbitReadArgs queueName - * @property {string|null} [bindingKey] RabbitReadArgs bindingKey - * @property {boolean|null} [queueExclusive] RabbitReadArgs queueExclusive - * @property {boolean|null} [queueDeclare] RabbitReadArgs queueDeclare - * @property {boolean|null} [queueDurable] RabbitReadArgs queueDurable - * @property {boolean|null} [autoAck] RabbitReadArgs autoAck - * @property {string|null} [consumerTag] RabbitReadArgs consumerTag - * @property {boolean|null} [queueDelete] RabbitReadArgs queueDelete - * @property {Object.|null} [queueArg] RabbitReadArgs queueArg - * @property {string|null} [excludeBindingKeyRegex] RabbitReadArgs excludeBindingKeyRegex - */ - - /** - * Constructs a new RabbitReadArgs. - * @memberof protos.args - * @classdesc Represents a RabbitReadArgs. - * @implements IRabbitReadArgs - * @constructor - * @param {protos.args.IRabbitReadArgs=} [properties] Properties to set - */ - function RabbitReadArgs(properties) { - this.queueArg = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RabbitReadArgs exchangeName. - * @member {string} exchangeName - * @memberof protos.args.RabbitReadArgs - * @instance - */ - RabbitReadArgs.prototype.exchangeName = ""; - - /** - * RabbitReadArgs queueName. - * @member {string} queueName - * @memberof protos.args.RabbitReadArgs - * @instance - */ - RabbitReadArgs.prototype.queueName = ""; - - /** - * RabbitReadArgs bindingKey. - * @member {string} bindingKey - * @memberof protos.args.RabbitReadArgs - * @instance - */ - RabbitReadArgs.prototype.bindingKey = ""; - - /** - * RabbitReadArgs queueExclusive. - * @member {boolean} queueExclusive - * @memberof protos.args.RabbitReadArgs - * @instance - */ - RabbitReadArgs.prototype.queueExclusive = false; - - /** - * RabbitReadArgs queueDeclare. - * @member {boolean} queueDeclare - * @memberof protos.args.RabbitReadArgs - * @instance - */ - RabbitReadArgs.prototype.queueDeclare = false; - - /** - * RabbitReadArgs queueDurable. - * @member {boolean} queueDurable - * @memberof protos.args.RabbitReadArgs - * @instance - */ - RabbitReadArgs.prototype.queueDurable = false; - - /** - * RabbitReadArgs autoAck. - * @member {boolean} autoAck - * @memberof protos.args.RabbitReadArgs - * @instance - */ - RabbitReadArgs.prototype.autoAck = false; - - /** - * RabbitReadArgs consumerTag. - * @member {string} consumerTag - * @memberof protos.args.RabbitReadArgs - * @instance - */ - RabbitReadArgs.prototype.consumerTag = ""; - - /** - * RabbitReadArgs queueDelete. - * @member {boolean} queueDelete - * @memberof protos.args.RabbitReadArgs - * @instance - */ - RabbitReadArgs.prototype.queueDelete = false; - - /** - * RabbitReadArgs queueArg. - * @member {Object.} queueArg - * @memberof protos.args.RabbitReadArgs - * @instance - */ - RabbitReadArgs.prototype.queueArg = $util.emptyObject; - - /** - * RabbitReadArgs excludeBindingKeyRegex. - * @member {string} excludeBindingKeyRegex - * @memberof protos.args.RabbitReadArgs - * @instance - */ - RabbitReadArgs.prototype.excludeBindingKeyRegex = ""; - - /** - * Creates a new RabbitReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.RabbitReadArgs - * @static - * @param {protos.args.IRabbitReadArgs=} [properties] Properties to set - * @returns {protos.args.RabbitReadArgs} RabbitReadArgs instance - */ - RabbitReadArgs.create = function create(properties) { - return new RabbitReadArgs(properties); - }; - - /** - * Encodes the specified RabbitReadArgs message. Does not implicitly {@link protos.args.RabbitReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.RabbitReadArgs - * @static - * @param {protos.args.IRabbitReadArgs} message RabbitReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exchangeName != null && Object.hasOwnProperty.call(message, "exchangeName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.exchangeName); - if (message.queueName != null && Object.hasOwnProperty.call(message, "queueName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.queueName); - if (message.bindingKey != null && Object.hasOwnProperty.call(message, "bindingKey")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.bindingKey); - if (message.queueExclusive != null && Object.hasOwnProperty.call(message, "queueExclusive")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.queueExclusive); - if (message.queueDeclare != null && Object.hasOwnProperty.call(message, "queueDeclare")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.queueDeclare); - if (message.queueDurable != null && Object.hasOwnProperty.call(message, "queueDurable")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.queueDurable); - if (message.autoAck != null && Object.hasOwnProperty.call(message, "autoAck")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.autoAck); - if (message.consumerTag != null && Object.hasOwnProperty.call(message, "consumerTag")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.consumerTag); - if (message.queueDelete != null && Object.hasOwnProperty.call(message, "queueDelete")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.queueDelete); - if (message.queueArg != null && Object.hasOwnProperty.call(message, "queueArg")) - for (var keys = Object.keys(message.queueArg), i = 0; i < keys.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.queueArg[keys[i]]).ldelim(); - if (message.excludeBindingKeyRegex != null && Object.hasOwnProperty.call(message, "excludeBindingKeyRegex")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.excludeBindingKeyRegex); - return writer; - }; - - /** - * Encodes the specified RabbitReadArgs message, length delimited. Does not implicitly {@link protos.args.RabbitReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.RabbitReadArgs - * @static - * @param {protos.args.IRabbitReadArgs} message RabbitReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RabbitReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.RabbitReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.RabbitReadArgs} RabbitReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitReadArgs(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.exchangeName = reader.string(); - break; - case 2: - message.queueName = reader.string(); - break; - case 3: - message.bindingKey = reader.string(); - break; - case 4: - message.queueExclusive = reader.bool(); - break; - case 5: - message.queueDeclare = reader.bool(); - break; - case 6: - message.queueDurable = reader.bool(); - break; - case 7: - message.autoAck = reader.bool(); - break; - case 8: - message.consumerTag = reader.string(); - break; - case 9: - message.queueDelete = reader.bool(); - break; - case 10: - if (message.queueArg === $util.emptyObject) - message.queueArg = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.queueArg[key] = value; - break; - case 11: - message.excludeBindingKeyRegex = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RabbitReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.RabbitReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.RabbitReadArgs} RabbitReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RabbitReadArgs message. - * @function verify - * @memberof protos.args.RabbitReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RabbitReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.exchangeName != null && message.hasOwnProperty("exchangeName")) - if (!$util.isString(message.exchangeName)) - return "exchangeName: string expected"; - if (message.queueName != null && message.hasOwnProperty("queueName")) - if (!$util.isString(message.queueName)) - return "queueName: string expected"; - if (message.bindingKey != null && message.hasOwnProperty("bindingKey")) - if (!$util.isString(message.bindingKey)) - return "bindingKey: string expected"; - if (message.queueExclusive != null && message.hasOwnProperty("queueExclusive")) - if (typeof message.queueExclusive !== "boolean") - return "queueExclusive: boolean expected"; - if (message.queueDeclare != null && message.hasOwnProperty("queueDeclare")) - if (typeof message.queueDeclare !== "boolean") - return "queueDeclare: boolean expected"; - if (message.queueDurable != null && message.hasOwnProperty("queueDurable")) - if (typeof message.queueDurable !== "boolean") - return "queueDurable: boolean expected"; - if (message.autoAck != null && message.hasOwnProperty("autoAck")) - if (typeof message.autoAck !== "boolean") - return "autoAck: boolean expected"; - if (message.consumerTag != null && message.hasOwnProperty("consumerTag")) - if (!$util.isString(message.consumerTag)) - return "consumerTag: string expected"; - if (message.queueDelete != null && message.hasOwnProperty("queueDelete")) - if (typeof message.queueDelete !== "boolean") - return "queueDelete: boolean expected"; - if (message.queueArg != null && message.hasOwnProperty("queueArg")) { - if (!$util.isObject(message.queueArg)) - return "queueArg: object expected"; - var key = Object.keys(message.queueArg); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.queueArg[key[i]])) - return "queueArg: string{k:string} expected"; - } - if (message.excludeBindingKeyRegex != null && message.hasOwnProperty("excludeBindingKeyRegex")) - if (!$util.isString(message.excludeBindingKeyRegex)) - return "excludeBindingKeyRegex: string expected"; - return null; - }; - - /** - * Creates a RabbitReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.RabbitReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.RabbitReadArgs} RabbitReadArgs - */ - RabbitReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.RabbitReadArgs) - return object; - var message = new $root.protos.args.RabbitReadArgs(); - if (object.exchangeName != null) - message.exchangeName = String(object.exchangeName); - if (object.queueName != null) - message.queueName = String(object.queueName); - if (object.bindingKey != null) - message.bindingKey = String(object.bindingKey); - if (object.queueExclusive != null) - message.queueExclusive = Boolean(object.queueExclusive); - if (object.queueDeclare != null) - message.queueDeclare = Boolean(object.queueDeclare); - if (object.queueDurable != null) - message.queueDurable = Boolean(object.queueDurable); - if (object.autoAck != null) - message.autoAck = Boolean(object.autoAck); - if (object.consumerTag != null) - message.consumerTag = String(object.consumerTag); - if (object.queueDelete != null) - message.queueDelete = Boolean(object.queueDelete); - if (object.queueArg) { - if (typeof object.queueArg !== "object") - throw TypeError(".protos.args.RabbitReadArgs.queueArg: object expected"); - message.queueArg = {}; - for (var keys = Object.keys(object.queueArg), i = 0; i < keys.length; ++i) - message.queueArg[keys[i]] = String(object.queueArg[keys[i]]); - } - if (object.excludeBindingKeyRegex != null) - message.excludeBindingKeyRegex = String(object.excludeBindingKeyRegex); - return message; - }; - - /** - * Creates a plain object from a RabbitReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.RabbitReadArgs - * @static - * @param {protos.args.RabbitReadArgs} message RabbitReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RabbitReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.queueArg = {}; - if (options.defaults) { - object.exchangeName = ""; - object.queueName = ""; - object.bindingKey = ""; - object.queueExclusive = false; - object.queueDeclare = false; - object.queueDurable = false; - object.autoAck = false; - object.consumerTag = ""; - object.queueDelete = false; - object.excludeBindingKeyRegex = ""; - } - if (message.exchangeName != null && message.hasOwnProperty("exchangeName")) - object.exchangeName = message.exchangeName; - if (message.queueName != null && message.hasOwnProperty("queueName")) - object.queueName = message.queueName; - if (message.bindingKey != null && message.hasOwnProperty("bindingKey")) - object.bindingKey = message.bindingKey; - if (message.queueExclusive != null && message.hasOwnProperty("queueExclusive")) - object.queueExclusive = message.queueExclusive; - if (message.queueDeclare != null && message.hasOwnProperty("queueDeclare")) - object.queueDeclare = message.queueDeclare; - if (message.queueDurable != null && message.hasOwnProperty("queueDurable")) - object.queueDurable = message.queueDurable; - if (message.autoAck != null && message.hasOwnProperty("autoAck")) - object.autoAck = message.autoAck; - if (message.consumerTag != null && message.hasOwnProperty("consumerTag")) - object.consumerTag = message.consumerTag; - if (message.queueDelete != null && message.hasOwnProperty("queueDelete")) - object.queueDelete = message.queueDelete; - var keys2; - if (message.queueArg && (keys2 = Object.keys(message.queueArg)).length) { - object.queueArg = {}; - for (var j = 0; j < keys2.length; ++j) - object.queueArg[keys2[j]] = message.queueArg[keys2[j]]; - } - if (message.excludeBindingKeyRegex != null && message.hasOwnProperty("excludeBindingKeyRegex")) - object.excludeBindingKeyRegex = message.excludeBindingKeyRegex; - return object; - }; - - /** - * Converts this RabbitReadArgs to JSON. - * @function toJSON - * @memberof protos.args.RabbitReadArgs - * @instance - * @returns {Object.} JSON object - */ - RabbitReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RabbitReadArgs; - })(); - - args.RabbitWriteArgs = (function() { - - /** - * Properties of a RabbitWriteArgs. - * @memberof protos.args - * @interface IRabbitWriteArgs - * @property {string|null} [exchangeName] RabbitWriteArgs exchangeName - * @property {string|null} [routingKey] RabbitWriteArgs routingKey - * @property {string|null} [appId] RabbitWriteArgs appId - * @property {string|null} [exchangeType] RabbitWriteArgs exchangeType - * @property {boolean|null} [exchangeDeclare] RabbitWriteArgs exchangeDeclare - * @property {boolean|null} [exchangeDurable] RabbitWriteArgs exchangeDurable - * @property {boolean|null} [exchangeAutoDelete] RabbitWriteArgs exchangeAutoDelete - */ - - /** - * Constructs a new RabbitWriteArgs. - * @memberof protos.args - * @classdesc Represents a RabbitWriteArgs. - * @implements IRabbitWriteArgs - * @constructor - * @param {protos.args.IRabbitWriteArgs=} [properties] Properties to set - */ - function RabbitWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RabbitWriteArgs exchangeName. - * @member {string} exchangeName - * @memberof protos.args.RabbitWriteArgs - * @instance - */ - RabbitWriteArgs.prototype.exchangeName = ""; - - /** - * RabbitWriteArgs routingKey. - * @member {string} routingKey - * @memberof protos.args.RabbitWriteArgs - * @instance - */ - RabbitWriteArgs.prototype.routingKey = ""; - - /** - * RabbitWriteArgs appId. - * @member {string} appId - * @memberof protos.args.RabbitWriteArgs - * @instance - */ - RabbitWriteArgs.prototype.appId = ""; - - /** - * RabbitWriteArgs exchangeType. - * @member {string} exchangeType - * @memberof protos.args.RabbitWriteArgs - * @instance - */ - RabbitWriteArgs.prototype.exchangeType = ""; - - /** - * RabbitWriteArgs exchangeDeclare. - * @member {boolean} exchangeDeclare - * @memberof protos.args.RabbitWriteArgs - * @instance - */ - RabbitWriteArgs.prototype.exchangeDeclare = false; - - /** - * RabbitWriteArgs exchangeDurable. - * @member {boolean} exchangeDurable - * @memberof protos.args.RabbitWriteArgs - * @instance - */ - RabbitWriteArgs.prototype.exchangeDurable = false; - - /** - * RabbitWriteArgs exchangeAutoDelete. - * @member {boolean} exchangeAutoDelete - * @memberof protos.args.RabbitWriteArgs - * @instance - */ - RabbitWriteArgs.prototype.exchangeAutoDelete = false; - - /** - * Creates a new RabbitWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.RabbitWriteArgs - * @static - * @param {protos.args.IRabbitWriteArgs=} [properties] Properties to set - * @returns {protos.args.RabbitWriteArgs} RabbitWriteArgs instance - */ - RabbitWriteArgs.create = function create(properties) { - return new RabbitWriteArgs(properties); - }; - - /** - * Encodes the specified RabbitWriteArgs message. Does not implicitly {@link protos.args.RabbitWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.RabbitWriteArgs - * @static - * @param {protos.args.IRabbitWriteArgs} message RabbitWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exchangeName != null && Object.hasOwnProperty.call(message, "exchangeName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.exchangeName); - if (message.routingKey != null && Object.hasOwnProperty.call(message, "routingKey")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.routingKey); - if (message.appId != null && Object.hasOwnProperty.call(message, "appId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.appId); - if (message.exchangeType != null && Object.hasOwnProperty.call(message, "exchangeType")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.exchangeType); - if (message.exchangeDeclare != null && Object.hasOwnProperty.call(message, "exchangeDeclare")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.exchangeDeclare); - if (message.exchangeDurable != null && Object.hasOwnProperty.call(message, "exchangeDurable")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.exchangeDurable); - if (message.exchangeAutoDelete != null && Object.hasOwnProperty.call(message, "exchangeAutoDelete")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.exchangeAutoDelete); - return writer; - }; - - /** - * Encodes the specified RabbitWriteArgs message, length delimited. Does not implicitly {@link protos.args.RabbitWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.RabbitWriteArgs - * @static - * @param {protos.args.IRabbitWriteArgs} message RabbitWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RabbitWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.RabbitWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.RabbitWriteArgs} RabbitWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.exchangeName = reader.string(); - break; - case 2: - message.routingKey = reader.string(); - break; - case 3: - message.appId = reader.string(); - break; - case 4: - message.exchangeType = reader.string(); - break; - case 5: - message.exchangeDeclare = reader.bool(); - break; - case 6: - message.exchangeDurable = reader.bool(); - break; - case 7: - message.exchangeAutoDelete = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RabbitWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.RabbitWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.RabbitWriteArgs} RabbitWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RabbitWriteArgs message. - * @function verify - * @memberof protos.args.RabbitWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RabbitWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.exchangeName != null && message.hasOwnProperty("exchangeName")) - if (!$util.isString(message.exchangeName)) - return "exchangeName: string expected"; - if (message.routingKey != null && message.hasOwnProperty("routingKey")) - if (!$util.isString(message.routingKey)) - return "routingKey: string expected"; - if (message.appId != null && message.hasOwnProperty("appId")) - if (!$util.isString(message.appId)) - return "appId: string expected"; - if (message.exchangeType != null && message.hasOwnProperty("exchangeType")) - if (!$util.isString(message.exchangeType)) - return "exchangeType: string expected"; - if (message.exchangeDeclare != null && message.hasOwnProperty("exchangeDeclare")) - if (typeof message.exchangeDeclare !== "boolean") - return "exchangeDeclare: boolean expected"; - if (message.exchangeDurable != null && message.hasOwnProperty("exchangeDurable")) - if (typeof message.exchangeDurable !== "boolean") - return "exchangeDurable: boolean expected"; - if (message.exchangeAutoDelete != null && message.hasOwnProperty("exchangeAutoDelete")) - if (typeof message.exchangeAutoDelete !== "boolean") - return "exchangeAutoDelete: boolean expected"; - return null; - }; - - /** - * Creates a RabbitWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.RabbitWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.RabbitWriteArgs} RabbitWriteArgs - */ - RabbitWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.RabbitWriteArgs) - return object; - var message = new $root.protos.args.RabbitWriteArgs(); - if (object.exchangeName != null) - message.exchangeName = String(object.exchangeName); - if (object.routingKey != null) - message.routingKey = String(object.routingKey); - if (object.appId != null) - message.appId = String(object.appId); - if (object.exchangeType != null) - message.exchangeType = String(object.exchangeType); - if (object.exchangeDeclare != null) - message.exchangeDeclare = Boolean(object.exchangeDeclare); - if (object.exchangeDurable != null) - message.exchangeDurable = Boolean(object.exchangeDurable); - if (object.exchangeAutoDelete != null) - message.exchangeAutoDelete = Boolean(object.exchangeAutoDelete); - return message; - }; - - /** - * Creates a plain object from a RabbitWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.RabbitWriteArgs - * @static - * @param {protos.args.RabbitWriteArgs} message RabbitWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RabbitWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.exchangeName = ""; - object.routingKey = ""; - object.appId = ""; - object.exchangeType = ""; - object.exchangeDeclare = false; - object.exchangeDurable = false; - object.exchangeAutoDelete = false; - } - if (message.exchangeName != null && message.hasOwnProperty("exchangeName")) - object.exchangeName = message.exchangeName; - if (message.routingKey != null && message.hasOwnProperty("routingKey")) - object.routingKey = message.routingKey; - if (message.appId != null && message.hasOwnProperty("appId")) - object.appId = message.appId; - if (message.exchangeType != null && message.hasOwnProperty("exchangeType")) - object.exchangeType = message.exchangeType; - if (message.exchangeDeclare != null && message.hasOwnProperty("exchangeDeclare")) - object.exchangeDeclare = message.exchangeDeclare; - if (message.exchangeDurable != null && message.hasOwnProperty("exchangeDurable")) - object.exchangeDurable = message.exchangeDurable; - if (message.exchangeAutoDelete != null && message.hasOwnProperty("exchangeAutoDelete")) - object.exchangeAutoDelete = message.exchangeAutoDelete; - return object; - }; - - /** - * Converts this RabbitWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.RabbitWriteArgs - * @instance - * @returns {Object.} JSON object - */ - RabbitWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RabbitWriteArgs; - })(); - - args.RabbitStreamsConn = (function() { - - /** - * Properties of a RabbitStreamsConn. - * @memberof protos.args - * @interface IRabbitStreamsConn - * @property {string|null} [dsn] RabbitStreamsConn dsn - * @property {boolean|null} [useTls] RabbitStreamsConn useTls - * @property {boolean|null} [tlsSkipVerify] RabbitStreamsConn tlsSkipVerify - * @property {string|null} [username] RabbitStreamsConn username - * @property {string|null} [password] RabbitStreamsConn password - * @property {string|null} [clientName] RabbitStreamsConn clientName - */ - - /** - * Constructs a new RabbitStreamsConn. - * @memberof protos.args - * @classdesc Represents a RabbitStreamsConn. - * @implements IRabbitStreamsConn - * @constructor - * @param {protos.args.IRabbitStreamsConn=} [properties] Properties to set - */ - function RabbitStreamsConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RabbitStreamsConn dsn. - * @member {string} dsn - * @memberof protos.args.RabbitStreamsConn - * @instance - */ - RabbitStreamsConn.prototype.dsn = ""; - - /** - * RabbitStreamsConn useTls. - * @member {boolean} useTls - * @memberof protos.args.RabbitStreamsConn - * @instance - */ - RabbitStreamsConn.prototype.useTls = false; - - /** - * RabbitStreamsConn tlsSkipVerify. - * @member {boolean} tlsSkipVerify - * @memberof protos.args.RabbitStreamsConn - * @instance - */ - RabbitStreamsConn.prototype.tlsSkipVerify = false; - - /** - * RabbitStreamsConn username. - * @member {string} username - * @memberof protos.args.RabbitStreamsConn - * @instance - */ - RabbitStreamsConn.prototype.username = ""; - - /** - * RabbitStreamsConn password. - * @member {string} password - * @memberof protos.args.RabbitStreamsConn - * @instance - */ - RabbitStreamsConn.prototype.password = ""; - - /** - * RabbitStreamsConn clientName. - * @member {string} clientName - * @memberof protos.args.RabbitStreamsConn - * @instance - */ - RabbitStreamsConn.prototype.clientName = ""; - - /** - * Creates a new RabbitStreamsConn instance using the specified properties. - * @function create - * @memberof protos.args.RabbitStreamsConn - * @static - * @param {protos.args.IRabbitStreamsConn=} [properties] Properties to set - * @returns {protos.args.RabbitStreamsConn} RabbitStreamsConn instance - */ - RabbitStreamsConn.create = function create(properties) { - return new RabbitStreamsConn(properties); - }; - - /** - * Encodes the specified RabbitStreamsConn message. Does not implicitly {@link protos.args.RabbitStreamsConn.verify|verify} messages. - * @function encode - * @memberof protos.args.RabbitStreamsConn - * @static - * @param {protos.args.IRabbitStreamsConn} message RabbitStreamsConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitStreamsConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dsn != null && Object.hasOwnProperty.call(message, "dsn")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dsn); - if (message.useTls != null && Object.hasOwnProperty.call(message, "useTls")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useTls); - if (message.tlsSkipVerify != null && Object.hasOwnProperty.call(message, "tlsSkipVerify")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.tlsSkipVerify); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.password); - if (message.clientName != null && Object.hasOwnProperty.call(message, "clientName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.clientName); - return writer; - }; - - /** - * Encodes the specified RabbitStreamsConn message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.RabbitStreamsConn - * @static - * @param {protos.args.IRabbitStreamsConn} message RabbitStreamsConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitStreamsConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RabbitStreamsConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.RabbitStreamsConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.RabbitStreamsConn} RabbitStreamsConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitStreamsConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitStreamsConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.dsn = reader.string(); - break; - case 2: - message.useTls = reader.bool(); - break; - case 3: - message.tlsSkipVerify = reader.bool(); - break; - case 4: - message.username = reader.string(); - break; - case 5: - message.password = reader.string(); - break; - case 6: - message.clientName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RabbitStreamsConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.RabbitStreamsConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.RabbitStreamsConn} RabbitStreamsConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitStreamsConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RabbitStreamsConn message. - * @function verify - * @memberof protos.args.RabbitStreamsConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RabbitStreamsConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dsn != null && message.hasOwnProperty("dsn")) - if (!$util.isString(message.dsn)) - return "dsn: string expected"; - if (message.useTls != null && message.hasOwnProperty("useTls")) - if (typeof message.useTls !== "boolean") - return "useTls: boolean expected"; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - if (typeof message.tlsSkipVerify !== "boolean") - return "tlsSkipVerify: boolean expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; - if (message.clientName != null && message.hasOwnProperty("clientName")) - if (!$util.isString(message.clientName)) - return "clientName: string expected"; - return null; - }; - - /** - * Creates a RabbitStreamsConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.RabbitStreamsConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.RabbitStreamsConn} RabbitStreamsConn - */ - RabbitStreamsConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.RabbitStreamsConn) - return object; - var message = new $root.protos.args.RabbitStreamsConn(); - if (object.dsn != null) - message.dsn = String(object.dsn); - if (object.useTls != null) - message.useTls = Boolean(object.useTls); - if (object.tlsSkipVerify != null) - message.tlsSkipVerify = Boolean(object.tlsSkipVerify); - if (object.username != null) - message.username = String(object.username); - if (object.password != null) - message.password = String(object.password); - if (object.clientName != null) - message.clientName = String(object.clientName); - return message; - }; - - /** - * Creates a plain object from a RabbitStreamsConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.RabbitStreamsConn - * @static - * @param {protos.args.RabbitStreamsConn} message RabbitStreamsConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RabbitStreamsConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.dsn = ""; - object.useTls = false; - object.tlsSkipVerify = false; - object.username = ""; - object.password = ""; - object.clientName = ""; - } - if (message.dsn != null && message.hasOwnProperty("dsn")) - object.dsn = message.dsn; - if (message.useTls != null && message.hasOwnProperty("useTls")) - object.useTls = message.useTls; - if (message.tlsSkipVerify != null && message.hasOwnProperty("tlsSkipVerify")) - object.tlsSkipVerify = message.tlsSkipVerify; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; - if (message.clientName != null && message.hasOwnProperty("clientName")) - object.clientName = message.clientName; - return object; - }; - - /** - * Converts this RabbitStreamsConn to JSON. - * @function toJSON - * @memberof protos.args.RabbitStreamsConn - * @instance - * @returns {Object.} JSON object - */ - RabbitStreamsConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RabbitStreamsConn; - })(); - - args.RabbitStreamsOffsetOptions = (function() { - - /** - * Properties of a RabbitStreamsOffsetOptions. - * @memberof protos.args - * @interface IRabbitStreamsOffsetOptions - * @property {number|Long|null} [specificOffset] RabbitStreamsOffsetOptions specificOffset - * @property {boolean|null} [lastOffset] RabbitStreamsOffsetOptions lastOffset - * @property {boolean|null} [lastConsumed] RabbitStreamsOffsetOptions lastConsumed - * @property {boolean|null} [firstOffset] RabbitStreamsOffsetOptions firstOffset - * @property {boolean|null} [nextOffset] RabbitStreamsOffsetOptions nextOffset - */ - - /** - * Constructs a new RabbitStreamsOffsetOptions. - * @memberof protos.args - * @classdesc Represents a RabbitStreamsOffsetOptions. - * @implements IRabbitStreamsOffsetOptions - * @constructor - * @param {protos.args.IRabbitStreamsOffsetOptions=} [properties] Properties to set - */ - function RabbitStreamsOffsetOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RabbitStreamsOffsetOptions specificOffset. - * @member {number|Long} specificOffset - * @memberof protos.args.RabbitStreamsOffsetOptions - * @instance - */ - RabbitStreamsOffsetOptions.prototype.specificOffset = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * RabbitStreamsOffsetOptions lastOffset. - * @member {boolean} lastOffset - * @memberof protos.args.RabbitStreamsOffsetOptions - * @instance - */ - RabbitStreamsOffsetOptions.prototype.lastOffset = false; - - /** - * RabbitStreamsOffsetOptions lastConsumed. - * @member {boolean} lastConsumed - * @memberof protos.args.RabbitStreamsOffsetOptions - * @instance - */ - RabbitStreamsOffsetOptions.prototype.lastConsumed = false; - - /** - * RabbitStreamsOffsetOptions firstOffset. - * @member {boolean} firstOffset - * @memberof protos.args.RabbitStreamsOffsetOptions - * @instance - */ - RabbitStreamsOffsetOptions.prototype.firstOffset = false; - - /** - * RabbitStreamsOffsetOptions nextOffset. - * @member {boolean} nextOffset - * @memberof protos.args.RabbitStreamsOffsetOptions - * @instance - */ - RabbitStreamsOffsetOptions.prototype.nextOffset = false; - - /** - * Creates a new RabbitStreamsOffsetOptions instance using the specified properties. - * @function create - * @memberof protos.args.RabbitStreamsOffsetOptions - * @static - * @param {protos.args.IRabbitStreamsOffsetOptions=} [properties] Properties to set - * @returns {protos.args.RabbitStreamsOffsetOptions} RabbitStreamsOffsetOptions instance - */ - RabbitStreamsOffsetOptions.create = function create(properties) { - return new RabbitStreamsOffsetOptions(properties); - }; - - /** - * Encodes the specified RabbitStreamsOffsetOptions message. Does not implicitly {@link protos.args.RabbitStreamsOffsetOptions.verify|verify} messages. - * @function encode - * @memberof protos.args.RabbitStreamsOffsetOptions - * @static - * @param {protos.args.IRabbitStreamsOffsetOptions} message RabbitStreamsOffsetOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitStreamsOffsetOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.specificOffset != null && Object.hasOwnProperty.call(message, "specificOffset")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.specificOffset); - if (message.lastOffset != null && Object.hasOwnProperty.call(message, "lastOffset")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.lastOffset); - if (message.lastConsumed != null && Object.hasOwnProperty.call(message, "lastConsumed")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.lastConsumed); - if (message.firstOffset != null && Object.hasOwnProperty.call(message, "firstOffset")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.firstOffset); - if (message.nextOffset != null && Object.hasOwnProperty.call(message, "nextOffset")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.nextOffset); - return writer; - }; - - /** - * Encodes the specified RabbitStreamsOffsetOptions message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsOffsetOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.RabbitStreamsOffsetOptions - * @static - * @param {protos.args.IRabbitStreamsOffsetOptions} message RabbitStreamsOffsetOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitStreamsOffsetOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RabbitStreamsOffsetOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.args.RabbitStreamsOffsetOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.RabbitStreamsOffsetOptions} RabbitStreamsOffsetOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitStreamsOffsetOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitStreamsOffsetOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.specificOffset = reader.int64(); - break; - case 2: - message.lastOffset = reader.bool(); - break; - case 3: - message.lastConsumed = reader.bool(); - break; - case 4: - message.firstOffset = reader.bool(); - break; - case 5: - message.nextOffset = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RabbitStreamsOffsetOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.RabbitStreamsOffsetOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.RabbitStreamsOffsetOptions} RabbitStreamsOffsetOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitStreamsOffsetOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RabbitStreamsOffsetOptions message. - * @function verify - * @memberof protos.args.RabbitStreamsOffsetOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RabbitStreamsOffsetOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.specificOffset != null && message.hasOwnProperty("specificOffset")) - if (!$util.isInteger(message.specificOffset) && !(message.specificOffset && $util.isInteger(message.specificOffset.low) && $util.isInteger(message.specificOffset.high))) - return "specificOffset: integer|Long expected"; - if (message.lastOffset != null && message.hasOwnProperty("lastOffset")) - if (typeof message.lastOffset !== "boolean") - return "lastOffset: boolean expected"; - if (message.lastConsumed != null && message.hasOwnProperty("lastConsumed")) - if (typeof message.lastConsumed !== "boolean") - return "lastConsumed: boolean expected"; - if (message.firstOffset != null && message.hasOwnProperty("firstOffset")) - if (typeof message.firstOffset !== "boolean") - return "firstOffset: boolean expected"; - if (message.nextOffset != null && message.hasOwnProperty("nextOffset")) - if (typeof message.nextOffset !== "boolean") - return "nextOffset: boolean expected"; - return null; - }; - - /** - * Creates a RabbitStreamsOffsetOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.RabbitStreamsOffsetOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.args.RabbitStreamsOffsetOptions} RabbitStreamsOffsetOptions - */ - RabbitStreamsOffsetOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.RabbitStreamsOffsetOptions) - return object; - var message = new $root.protos.args.RabbitStreamsOffsetOptions(); - if (object.specificOffset != null) - if ($util.Long) - (message.specificOffset = $util.Long.fromValue(object.specificOffset)).unsigned = false; - else if (typeof object.specificOffset === "string") - message.specificOffset = parseInt(object.specificOffset, 10); - else if (typeof object.specificOffset === "number") - message.specificOffset = object.specificOffset; - else if (typeof object.specificOffset === "object") - message.specificOffset = new $util.LongBits(object.specificOffset.low >>> 0, object.specificOffset.high >>> 0).toNumber(); - if (object.lastOffset != null) - message.lastOffset = Boolean(object.lastOffset); - if (object.lastConsumed != null) - message.lastConsumed = Boolean(object.lastConsumed); - if (object.firstOffset != null) - message.firstOffset = Boolean(object.firstOffset); - if (object.nextOffset != null) - message.nextOffset = Boolean(object.nextOffset); - return message; - }; - - /** - * Creates a plain object from a RabbitStreamsOffsetOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.RabbitStreamsOffsetOptions - * @static - * @param {protos.args.RabbitStreamsOffsetOptions} message RabbitStreamsOffsetOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RabbitStreamsOffsetOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.specificOffset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.specificOffset = options.longs === String ? "0" : 0; - object.lastOffset = false; - object.lastConsumed = false; - object.firstOffset = false; - object.nextOffset = false; - } - if (message.specificOffset != null && message.hasOwnProperty("specificOffset")) - if (typeof message.specificOffset === "number") - object.specificOffset = options.longs === String ? String(message.specificOffset) : message.specificOffset; - else - object.specificOffset = options.longs === String ? $util.Long.prototype.toString.call(message.specificOffset) : options.longs === Number ? new $util.LongBits(message.specificOffset.low >>> 0, message.specificOffset.high >>> 0).toNumber() : message.specificOffset; - if (message.lastOffset != null && message.hasOwnProperty("lastOffset")) - object.lastOffset = message.lastOffset; - if (message.lastConsumed != null && message.hasOwnProperty("lastConsumed")) - object.lastConsumed = message.lastConsumed; - if (message.firstOffset != null && message.hasOwnProperty("firstOffset")) - object.firstOffset = message.firstOffset; - if (message.nextOffset != null && message.hasOwnProperty("nextOffset")) - object.nextOffset = message.nextOffset; - return object; - }; - - /** - * Converts this RabbitStreamsOffsetOptions to JSON. - * @function toJSON - * @memberof protos.args.RabbitStreamsOffsetOptions - * @instance - * @returns {Object.} JSON object - */ - RabbitStreamsOffsetOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RabbitStreamsOffsetOptions; - })(); - - args.RabbitStreamsReadArgs = (function() { - - /** - * Properties of a RabbitStreamsReadArgs. - * @memberof protos.args - * @interface IRabbitStreamsReadArgs - * @property {string|null} [stream] RabbitStreamsReadArgs stream - * @property {boolean|null} [declareStream] RabbitStreamsReadArgs declareStream - * @property {string|null} [declareStreamSize] RabbitStreamsReadArgs declareStreamSize - * @property {protos.args.IRabbitStreamsOffsetOptions|null} [offsetOptions] RabbitStreamsReadArgs offsetOptions - */ - - /** - * Constructs a new RabbitStreamsReadArgs. - * @memberof protos.args - * @classdesc Represents a RabbitStreamsReadArgs. - * @implements IRabbitStreamsReadArgs - * @constructor - * @param {protos.args.IRabbitStreamsReadArgs=} [properties] Properties to set - */ - function RabbitStreamsReadArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RabbitStreamsReadArgs stream. - * @member {string} stream - * @memberof protos.args.RabbitStreamsReadArgs - * @instance - */ - RabbitStreamsReadArgs.prototype.stream = ""; - - /** - * RabbitStreamsReadArgs declareStream. - * @member {boolean} declareStream - * @memberof protos.args.RabbitStreamsReadArgs - * @instance - */ - RabbitStreamsReadArgs.prototype.declareStream = false; - - /** - * RabbitStreamsReadArgs declareStreamSize. - * @member {string} declareStreamSize - * @memberof protos.args.RabbitStreamsReadArgs - * @instance - */ - RabbitStreamsReadArgs.prototype.declareStreamSize = ""; - - /** - * RabbitStreamsReadArgs offsetOptions. - * @member {protos.args.IRabbitStreamsOffsetOptions|null|undefined} offsetOptions - * @memberof protos.args.RabbitStreamsReadArgs - * @instance - */ - RabbitStreamsReadArgs.prototype.offsetOptions = null; - - /** - * Creates a new RabbitStreamsReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.RabbitStreamsReadArgs - * @static - * @param {protos.args.IRabbitStreamsReadArgs=} [properties] Properties to set - * @returns {protos.args.RabbitStreamsReadArgs} RabbitStreamsReadArgs instance - */ - RabbitStreamsReadArgs.create = function create(properties) { - return new RabbitStreamsReadArgs(properties); - }; - - /** - * Encodes the specified RabbitStreamsReadArgs message. Does not implicitly {@link protos.args.RabbitStreamsReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.RabbitStreamsReadArgs - * @static - * @param {protos.args.IRabbitStreamsReadArgs} message RabbitStreamsReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitStreamsReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stream != null && Object.hasOwnProperty.call(message, "stream")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stream); - if (message.declareStream != null && Object.hasOwnProperty.call(message, "declareStream")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.declareStream); - if (message.declareStreamSize != null && Object.hasOwnProperty.call(message, "declareStreamSize")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.declareStreamSize); - if (message.offsetOptions != null && Object.hasOwnProperty.call(message, "offsetOptions")) - $root.protos.args.RabbitStreamsOffsetOptions.encode(message.offsetOptions, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified RabbitStreamsReadArgs message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.RabbitStreamsReadArgs - * @static - * @param {protos.args.IRabbitStreamsReadArgs} message RabbitStreamsReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitStreamsReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RabbitStreamsReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.RabbitStreamsReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.RabbitStreamsReadArgs} RabbitStreamsReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitStreamsReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitStreamsReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stream = reader.string(); - break; - case 2: - message.declareStream = reader.bool(); - break; - case 3: - message.declareStreamSize = reader.string(); - break; - case 4: - message.offsetOptions = $root.protos.args.RabbitStreamsOffsetOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RabbitStreamsReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.RabbitStreamsReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.RabbitStreamsReadArgs} RabbitStreamsReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitStreamsReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RabbitStreamsReadArgs message. - * @function verify - * @memberof protos.args.RabbitStreamsReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RabbitStreamsReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isString(message.stream)) - return "stream: string expected"; - if (message.declareStream != null && message.hasOwnProperty("declareStream")) - if (typeof message.declareStream !== "boolean") - return "declareStream: boolean expected"; - if (message.declareStreamSize != null && message.hasOwnProperty("declareStreamSize")) - if (!$util.isString(message.declareStreamSize)) - return "declareStreamSize: string expected"; - if (message.offsetOptions != null && message.hasOwnProperty("offsetOptions")) { - var error = $root.protos.args.RabbitStreamsOffsetOptions.verify(message.offsetOptions); - if (error) - return "offsetOptions." + error; - } - return null; - }; - - /** - * Creates a RabbitStreamsReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.RabbitStreamsReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.RabbitStreamsReadArgs} RabbitStreamsReadArgs - */ - RabbitStreamsReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.RabbitStreamsReadArgs) - return object; - var message = new $root.protos.args.RabbitStreamsReadArgs(); - if (object.stream != null) - message.stream = String(object.stream); - if (object.declareStream != null) - message.declareStream = Boolean(object.declareStream); - if (object.declareStreamSize != null) - message.declareStreamSize = String(object.declareStreamSize); - if (object.offsetOptions != null) { - if (typeof object.offsetOptions !== "object") - throw TypeError(".protos.args.RabbitStreamsReadArgs.offsetOptions: object expected"); - message.offsetOptions = $root.protos.args.RabbitStreamsOffsetOptions.fromObject(object.offsetOptions); - } - return message; - }; - - /** - * Creates a plain object from a RabbitStreamsReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.RabbitStreamsReadArgs - * @static - * @param {protos.args.RabbitStreamsReadArgs} message RabbitStreamsReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RabbitStreamsReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.stream = ""; - object.declareStream = false; - object.declareStreamSize = ""; - object.offsetOptions = null; - } - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - if (message.declareStream != null && message.hasOwnProperty("declareStream")) - object.declareStream = message.declareStream; - if (message.declareStreamSize != null && message.hasOwnProperty("declareStreamSize")) - object.declareStreamSize = message.declareStreamSize; - if (message.offsetOptions != null && message.hasOwnProperty("offsetOptions")) - object.offsetOptions = $root.protos.args.RabbitStreamsOffsetOptions.toObject(message.offsetOptions, options); - return object; - }; - - /** - * Converts this RabbitStreamsReadArgs to JSON. - * @function toJSON - * @memberof protos.args.RabbitStreamsReadArgs - * @instance - * @returns {Object.} JSON object - */ - RabbitStreamsReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RabbitStreamsReadArgs; - })(); - - args.RabbitStreamsWriteArgs = (function() { - - /** - * Properties of a RabbitStreamsWriteArgs. - * @memberof protos.args - * @interface IRabbitStreamsWriteArgs - * @property {string|null} [stream] RabbitStreamsWriteArgs stream - * @property {boolean|null} [declareStream] RabbitStreamsWriteArgs declareStream - * @property {string|null} [declareStreamSize] RabbitStreamsWriteArgs declareStreamSize - */ - - /** - * Constructs a new RabbitStreamsWriteArgs. - * @memberof protos.args - * @classdesc Represents a RabbitStreamsWriteArgs. - * @implements IRabbitStreamsWriteArgs - * @constructor - * @param {protos.args.IRabbitStreamsWriteArgs=} [properties] Properties to set - */ - function RabbitStreamsWriteArgs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RabbitStreamsWriteArgs stream. - * @member {string} stream - * @memberof protos.args.RabbitStreamsWriteArgs - * @instance - */ - RabbitStreamsWriteArgs.prototype.stream = ""; - - /** - * RabbitStreamsWriteArgs declareStream. - * @member {boolean} declareStream - * @memberof protos.args.RabbitStreamsWriteArgs - * @instance - */ - RabbitStreamsWriteArgs.prototype.declareStream = false; - - /** - * RabbitStreamsWriteArgs declareStreamSize. - * @member {string} declareStreamSize - * @memberof protos.args.RabbitStreamsWriteArgs - * @instance - */ - RabbitStreamsWriteArgs.prototype.declareStreamSize = ""; - - /** - * Creates a new RabbitStreamsWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.RabbitStreamsWriteArgs - * @static - * @param {protos.args.IRabbitStreamsWriteArgs=} [properties] Properties to set - * @returns {protos.args.RabbitStreamsWriteArgs} RabbitStreamsWriteArgs instance - */ - RabbitStreamsWriteArgs.create = function create(properties) { - return new RabbitStreamsWriteArgs(properties); - }; - - /** - * Encodes the specified RabbitStreamsWriteArgs message. Does not implicitly {@link protos.args.RabbitStreamsWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.RabbitStreamsWriteArgs - * @static - * @param {protos.args.IRabbitStreamsWriteArgs} message RabbitStreamsWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitStreamsWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stream != null && Object.hasOwnProperty.call(message, "stream")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stream); - if (message.declareStream != null && Object.hasOwnProperty.call(message, "declareStream")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.declareStream); - if (message.declareStreamSize != null && Object.hasOwnProperty.call(message, "declareStreamSize")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.declareStreamSize); - return writer; - }; - - /** - * Encodes the specified RabbitStreamsWriteArgs message, length delimited. Does not implicitly {@link protos.args.RabbitStreamsWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.RabbitStreamsWriteArgs - * @static - * @param {protos.args.IRabbitStreamsWriteArgs} message RabbitStreamsWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RabbitStreamsWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RabbitStreamsWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.RabbitStreamsWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.RabbitStreamsWriteArgs} RabbitStreamsWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitStreamsWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RabbitStreamsWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stream = reader.string(); - break; - case 2: - message.declareStream = reader.bool(); - break; - case 3: - message.declareStreamSize = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RabbitStreamsWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.RabbitStreamsWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.RabbitStreamsWriteArgs} RabbitStreamsWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RabbitStreamsWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RabbitStreamsWriteArgs message. - * @function verify - * @memberof protos.args.RabbitStreamsWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RabbitStreamsWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.stream != null && message.hasOwnProperty("stream")) - if (!$util.isString(message.stream)) - return "stream: string expected"; - if (message.declareStream != null && message.hasOwnProperty("declareStream")) - if (typeof message.declareStream !== "boolean") - return "declareStream: boolean expected"; - if (message.declareStreamSize != null && message.hasOwnProperty("declareStreamSize")) - if (!$util.isString(message.declareStreamSize)) - return "declareStreamSize: string expected"; - return null; - }; - - /** - * Creates a RabbitStreamsWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.RabbitStreamsWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.RabbitStreamsWriteArgs} RabbitStreamsWriteArgs - */ - RabbitStreamsWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.RabbitStreamsWriteArgs) - return object; - var message = new $root.protos.args.RabbitStreamsWriteArgs(); - if (object.stream != null) - message.stream = String(object.stream); - if (object.declareStream != null) - message.declareStream = Boolean(object.declareStream); - if (object.declareStreamSize != null) - message.declareStreamSize = String(object.declareStreamSize); - return message; - }; - - /** - * Creates a plain object from a RabbitStreamsWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.RabbitStreamsWriteArgs - * @static - * @param {protos.args.RabbitStreamsWriteArgs} message RabbitStreamsWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RabbitStreamsWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.stream = ""; - object.declareStream = false; - object.declareStreamSize = ""; - } - if (message.stream != null && message.hasOwnProperty("stream")) - object.stream = message.stream; - if (message.declareStream != null && message.hasOwnProperty("declareStream")) - object.declareStream = message.declareStream; - if (message.declareStreamSize != null && message.hasOwnProperty("declareStreamSize")) - object.declareStreamSize = message.declareStreamSize; - return object; - }; - - /** - * Converts this RabbitStreamsWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.RabbitStreamsWriteArgs - * @instance - * @returns {Object.} JSON object - */ - RabbitStreamsWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RabbitStreamsWriteArgs; - })(); - - args.RedisPubSubConn = (function() { - - /** - * Properties of a RedisPubSubConn. - * @memberof protos.args - * @interface IRedisPubSubConn - * @property {string|null} [address] RedisPubSubConn address - * @property {string|null} [username] RedisPubSubConn username - * @property {string|null} [password] RedisPubSubConn password - * @property {number|null} [database] RedisPubSubConn database - */ - - /** - * Constructs a new RedisPubSubConn. - * @memberof protos.args - * @classdesc Represents a RedisPubSubConn. - * @implements IRedisPubSubConn - * @constructor - * @param {protos.args.IRedisPubSubConn=} [properties] Properties to set - */ - function RedisPubSubConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RedisPubSubConn address. - * @member {string} address - * @memberof protos.args.RedisPubSubConn - * @instance - */ - RedisPubSubConn.prototype.address = ""; - - /** - * RedisPubSubConn username. - * @member {string} username - * @memberof protos.args.RedisPubSubConn - * @instance - */ - RedisPubSubConn.prototype.username = ""; - - /** - * RedisPubSubConn password. - * @member {string} password - * @memberof protos.args.RedisPubSubConn - * @instance - */ - RedisPubSubConn.prototype.password = ""; - - /** - * RedisPubSubConn database. - * @member {number} database - * @memberof protos.args.RedisPubSubConn - * @instance - */ - RedisPubSubConn.prototype.database = 0; - - /** - * Creates a new RedisPubSubConn instance using the specified properties. - * @function create - * @memberof protos.args.RedisPubSubConn - * @static - * @param {protos.args.IRedisPubSubConn=} [properties] Properties to set - * @returns {protos.args.RedisPubSubConn} RedisPubSubConn instance - */ - RedisPubSubConn.create = function create(properties) { - return new RedisPubSubConn(properties); - }; - - /** - * Encodes the specified RedisPubSubConn message. Does not implicitly {@link protos.args.RedisPubSubConn.verify|verify} messages. - * @function encode - * @memberof protos.args.RedisPubSubConn - * @static - * @param {protos.args.IRedisPubSubConn} message RedisPubSubConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RedisPubSubConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.password); - if (message.database != null && Object.hasOwnProperty.call(message, "database")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.database); - return writer; - }; - - /** - * Encodes the specified RedisPubSubConn message, length delimited. Does not implicitly {@link protos.args.RedisPubSubConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.RedisPubSubConn - * @static - * @param {protos.args.IRedisPubSubConn} message RedisPubSubConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RedisPubSubConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RedisPubSubConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.RedisPubSubConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.RedisPubSubConn} RedisPubSubConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RedisPubSubConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RedisPubSubConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.username = reader.string(); - break; - case 3: - message.password = reader.string(); - break; - case 4: - message.database = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RedisPubSubConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.RedisPubSubConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.RedisPubSubConn} RedisPubSubConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RedisPubSubConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RedisPubSubConn message. - * @function verify - * @memberof protos.args.RedisPubSubConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RedisPubSubConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; - if (message.database != null && message.hasOwnProperty("database")) - if (!$util.isInteger(message.database)) - return "database: integer expected"; - return null; - }; - - /** - * Creates a RedisPubSubConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.RedisPubSubConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.RedisPubSubConn} RedisPubSubConn - */ - RedisPubSubConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.RedisPubSubConn) - return object; - var message = new $root.protos.args.RedisPubSubConn(); - if (object.address != null) - message.address = String(object.address); - if (object.username != null) - message.username = String(object.username); - if (object.password != null) - message.password = String(object.password); - if (object.database != null) - message.database = object.database >>> 0; - return message; - }; - - /** - * Creates a plain object from a RedisPubSubConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.RedisPubSubConn - * @static - * @param {protos.args.RedisPubSubConn} message RedisPubSubConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RedisPubSubConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.address = ""; - object.username = ""; - object.password = ""; - object.database = 0; - } - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; - if (message.database != null && message.hasOwnProperty("database")) - object.database = message.database; - return object; - }; - - /** - * Converts this RedisPubSubConn to JSON. - * @function toJSON - * @memberof protos.args.RedisPubSubConn - * @instance - * @returns {Object.} JSON object - */ - RedisPubSubConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RedisPubSubConn; - })(); - - args.RedisPubSubReadArgs = (function() { - - /** - * Properties of a RedisPubSubReadArgs. - * @memberof protos.args - * @interface IRedisPubSubReadArgs - * @property {Array.|null} [channels] RedisPubSubReadArgs channels - */ - - /** - * Constructs a new RedisPubSubReadArgs. - * @memberof protos.args - * @classdesc Represents a RedisPubSubReadArgs. - * @implements IRedisPubSubReadArgs - * @constructor - * @param {protos.args.IRedisPubSubReadArgs=} [properties] Properties to set - */ - function RedisPubSubReadArgs(properties) { - this.channels = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RedisPubSubReadArgs channels. - * @member {Array.} channels - * @memberof protos.args.RedisPubSubReadArgs - * @instance - */ - RedisPubSubReadArgs.prototype.channels = $util.emptyArray; - - /** - * Creates a new RedisPubSubReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.RedisPubSubReadArgs - * @static - * @param {protos.args.IRedisPubSubReadArgs=} [properties] Properties to set - * @returns {protos.args.RedisPubSubReadArgs} RedisPubSubReadArgs instance - */ - RedisPubSubReadArgs.create = function create(properties) { - return new RedisPubSubReadArgs(properties); - }; - - /** - * Encodes the specified RedisPubSubReadArgs message. Does not implicitly {@link protos.args.RedisPubSubReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.RedisPubSubReadArgs - * @static - * @param {protos.args.IRedisPubSubReadArgs} message RedisPubSubReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RedisPubSubReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.channels != null && message.channels.length) - for (var i = 0; i < message.channels.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.channels[i]); - return writer; - }; - - /** - * Encodes the specified RedisPubSubReadArgs message, length delimited. Does not implicitly {@link protos.args.RedisPubSubReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.RedisPubSubReadArgs - * @static - * @param {protos.args.IRedisPubSubReadArgs} message RedisPubSubReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RedisPubSubReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RedisPubSubReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.RedisPubSubReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.RedisPubSubReadArgs} RedisPubSubReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RedisPubSubReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RedisPubSubReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.channels && message.channels.length)) - message.channels = []; - message.channels.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RedisPubSubReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.RedisPubSubReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.RedisPubSubReadArgs} RedisPubSubReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RedisPubSubReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RedisPubSubReadArgs message. - * @function verify - * @memberof protos.args.RedisPubSubReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RedisPubSubReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.channels != null && message.hasOwnProperty("channels")) { - if (!Array.isArray(message.channels)) - return "channels: array expected"; - for (var i = 0; i < message.channels.length; ++i) - if (!$util.isString(message.channels[i])) - return "channels: string[] expected"; - } - return null; - }; - - /** - * Creates a RedisPubSubReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.RedisPubSubReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.RedisPubSubReadArgs} RedisPubSubReadArgs - */ - RedisPubSubReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.RedisPubSubReadArgs) - return object; - var message = new $root.protos.args.RedisPubSubReadArgs(); - if (object.channels) { - if (!Array.isArray(object.channels)) - throw TypeError(".protos.args.RedisPubSubReadArgs.channels: array expected"); - message.channels = []; - for (var i = 0; i < object.channels.length; ++i) - message.channels[i] = String(object.channels[i]); - } - return message; - }; - - /** - * Creates a plain object from a RedisPubSubReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.RedisPubSubReadArgs - * @static - * @param {protos.args.RedisPubSubReadArgs} message RedisPubSubReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RedisPubSubReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.channels = []; - if (message.channels && message.channels.length) { - object.channels = []; - for (var j = 0; j < message.channels.length; ++j) - object.channels[j] = message.channels[j]; - } - return object; - }; - - /** - * Converts this RedisPubSubReadArgs to JSON. - * @function toJSON - * @memberof protos.args.RedisPubSubReadArgs - * @instance - * @returns {Object.} JSON object - */ - RedisPubSubReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RedisPubSubReadArgs; - })(); - - args.RedisPubSubWriteArgs = (function() { - - /** - * Properties of a RedisPubSubWriteArgs. - * @memberof protos.args - * @interface IRedisPubSubWriteArgs - * @property {Array.|null} [channels] RedisPubSubWriteArgs channels - */ - - /** - * Constructs a new RedisPubSubWriteArgs. - * @memberof protos.args - * @classdesc Represents a RedisPubSubWriteArgs. - * @implements IRedisPubSubWriteArgs - * @constructor - * @param {protos.args.IRedisPubSubWriteArgs=} [properties] Properties to set - */ - function RedisPubSubWriteArgs(properties) { - this.channels = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RedisPubSubWriteArgs channels. - * @member {Array.} channels - * @memberof protos.args.RedisPubSubWriteArgs - * @instance - */ - RedisPubSubWriteArgs.prototype.channels = $util.emptyArray; - - /** - * Creates a new RedisPubSubWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.RedisPubSubWriteArgs - * @static - * @param {protos.args.IRedisPubSubWriteArgs=} [properties] Properties to set - * @returns {protos.args.RedisPubSubWriteArgs} RedisPubSubWriteArgs instance - */ - RedisPubSubWriteArgs.create = function create(properties) { - return new RedisPubSubWriteArgs(properties); - }; - - /** - * Encodes the specified RedisPubSubWriteArgs message. Does not implicitly {@link protos.args.RedisPubSubWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.RedisPubSubWriteArgs - * @static - * @param {protos.args.IRedisPubSubWriteArgs} message RedisPubSubWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RedisPubSubWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.channels != null && message.channels.length) - for (var i = 0; i < message.channels.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.channels[i]); - return writer; - }; - - /** - * Encodes the specified RedisPubSubWriteArgs message, length delimited. Does not implicitly {@link protos.args.RedisPubSubWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.RedisPubSubWriteArgs - * @static - * @param {protos.args.IRedisPubSubWriteArgs} message RedisPubSubWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RedisPubSubWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RedisPubSubWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.RedisPubSubWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.RedisPubSubWriteArgs} RedisPubSubWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RedisPubSubWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RedisPubSubWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.channels && message.channels.length)) - message.channels = []; - message.channels.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RedisPubSubWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.RedisPubSubWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.RedisPubSubWriteArgs} RedisPubSubWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RedisPubSubWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RedisPubSubWriteArgs message. - * @function verify - * @memberof protos.args.RedisPubSubWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RedisPubSubWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.channels != null && message.hasOwnProperty("channels")) { - if (!Array.isArray(message.channels)) - return "channels: array expected"; - for (var i = 0; i < message.channels.length; ++i) - if (!$util.isString(message.channels[i])) - return "channels: string[] expected"; - } - return null; - }; - - /** - * Creates a RedisPubSubWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.RedisPubSubWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.RedisPubSubWriteArgs} RedisPubSubWriteArgs - */ - RedisPubSubWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.RedisPubSubWriteArgs) - return object; - var message = new $root.protos.args.RedisPubSubWriteArgs(); - if (object.channels) { - if (!Array.isArray(object.channels)) - throw TypeError(".protos.args.RedisPubSubWriteArgs.channels: array expected"); - message.channels = []; - for (var i = 0; i < object.channels.length; ++i) - message.channels[i] = String(object.channels[i]); - } - return message; - }; - - /** - * Creates a plain object from a RedisPubSubWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.RedisPubSubWriteArgs - * @static - * @param {protos.args.RedisPubSubWriteArgs} message RedisPubSubWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RedisPubSubWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.channels = []; - if (message.channels && message.channels.length) { - object.channels = []; - for (var j = 0; j < message.channels.length; ++j) - object.channels[j] = message.channels[j]; - } - return object; - }; - - /** - * Converts this RedisPubSubWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.RedisPubSubWriteArgs - * @instance - * @returns {Object.} JSON object - */ - RedisPubSubWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RedisPubSubWriteArgs; - })(); - - /** - * OffsetStart enum. - * @name protos.args.OffsetStart - * @enum {number} - * @property {number} LATEST=0 LATEST value - * @property {number} OLDEST=1 OLDEST value - */ - args.OffsetStart = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LATEST"] = 0; - values[valuesById[1] = "OLDEST"] = 1; - return values; - })(); - - args.RedisStreamsConn = (function() { - - /** - * Properties of a RedisStreamsConn. - * @memberof protos.args - * @interface IRedisStreamsConn - * @property {string|null} [address] RedisStreamsConn address - * @property {string|null} [username] RedisStreamsConn username - * @property {string|null} [password] RedisStreamsConn password - * @property {number|null} [database] RedisStreamsConn database - */ - - /** - * Constructs a new RedisStreamsConn. - * @memberof protos.args - * @classdesc Represents a RedisStreamsConn. - * @implements IRedisStreamsConn - * @constructor - * @param {protos.args.IRedisStreamsConn=} [properties] Properties to set - */ - function RedisStreamsConn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RedisStreamsConn address. - * @member {string} address - * @memberof protos.args.RedisStreamsConn - * @instance - */ - RedisStreamsConn.prototype.address = ""; - - /** - * RedisStreamsConn username. - * @member {string} username - * @memberof protos.args.RedisStreamsConn - * @instance - */ - RedisStreamsConn.prototype.username = ""; - - /** - * RedisStreamsConn password. - * @member {string} password - * @memberof protos.args.RedisStreamsConn - * @instance - */ - RedisStreamsConn.prototype.password = ""; - - /** - * RedisStreamsConn database. - * @member {number} database - * @memberof protos.args.RedisStreamsConn - * @instance - */ - RedisStreamsConn.prototype.database = 0; - - /** - * Creates a new RedisStreamsConn instance using the specified properties. - * @function create - * @memberof protos.args.RedisStreamsConn - * @static - * @param {protos.args.IRedisStreamsConn=} [properties] Properties to set - * @returns {protos.args.RedisStreamsConn} RedisStreamsConn instance - */ - RedisStreamsConn.create = function create(properties) { - return new RedisStreamsConn(properties); - }; - - /** - * Encodes the specified RedisStreamsConn message. Does not implicitly {@link protos.args.RedisStreamsConn.verify|verify} messages. - * @function encode - * @memberof protos.args.RedisStreamsConn - * @static - * @param {protos.args.IRedisStreamsConn} message RedisStreamsConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RedisStreamsConn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.address != null && Object.hasOwnProperty.call(message, "address")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.address); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.password); - if (message.database != null && Object.hasOwnProperty.call(message, "database")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.database); - return writer; - }; - - /** - * Encodes the specified RedisStreamsConn message, length delimited. Does not implicitly {@link protos.args.RedisStreamsConn.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.RedisStreamsConn - * @static - * @param {protos.args.IRedisStreamsConn} message RedisStreamsConn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RedisStreamsConn.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RedisStreamsConn message from the specified reader or buffer. - * @function decode - * @memberof protos.args.RedisStreamsConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.RedisStreamsConn} RedisStreamsConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RedisStreamsConn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RedisStreamsConn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.address = reader.string(); - break; - case 2: - message.username = reader.string(); - break; - case 3: - message.password = reader.string(); - break; - case 4: - message.database = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RedisStreamsConn message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.RedisStreamsConn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.RedisStreamsConn} RedisStreamsConn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RedisStreamsConn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RedisStreamsConn message. - * @function verify - * @memberof protos.args.RedisStreamsConn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RedisStreamsConn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.address != null && message.hasOwnProperty("address")) - if (!$util.isString(message.address)) - return "address: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; - if (message.database != null && message.hasOwnProperty("database")) - if (!$util.isInteger(message.database)) - return "database: integer expected"; - return null; - }; - - /** - * Creates a RedisStreamsConn message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.RedisStreamsConn - * @static - * @param {Object.} object Plain object - * @returns {protos.args.RedisStreamsConn} RedisStreamsConn - */ - RedisStreamsConn.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.RedisStreamsConn) - return object; - var message = new $root.protos.args.RedisStreamsConn(); - if (object.address != null) - message.address = String(object.address); - if (object.username != null) - message.username = String(object.username); - if (object.password != null) - message.password = String(object.password); - if (object.database != null) - message.database = object.database >>> 0; - return message; - }; - - /** - * Creates a plain object from a RedisStreamsConn message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.RedisStreamsConn - * @static - * @param {protos.args.RedisStreamsConn} message RedisStreamsConn - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RedisStreamsConn.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.address = ""; - object.username = ""; - object.password = ""; - object.database = 0; - } - if (message.address != null && message.hasOwnProperty("address")) - object.address = message.address; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; - if (message.database != null && message.hasOwnProperty("database")) - object.database = message.database; - return object; - }; - - /** - * Converts this RedisStreamsConn to JSON. - * @function toJSON - * @memberof protos.args.RedisStreamsConn - * @instance - * @returns {Object.} JSON object - */ - RedisStreamsConn.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RedisStreamsConn; - })(); - - args.CreateConsumerConfig = (function() { - - /** - * Properties of a CreateConsumerConfig. - * @memberof protos.args - * @interface ICreateConsumerConfig - * @property {boolean|null} [createStreams] CreateConsumerConfig createStreams - * @property {boolean|null} [recreateConsumerGroup] CreateConsumerConfig recreateConsumerGroup - * @property {protos.args.OffsetStart|null} [offsetStart] CreateConsumerConfig offsetStart - */ - - /** - * Constructs a new CreateConsumerConfig. - * @memberof protos.args - * @classdesc Represents a CreateConsumerConfig. - * @implements ICreateConsumerConfig - * @constructor - * @param {protos.args.ICreateConsumerConfig=} [properties] Properties to set - */ - function CreateConsumerConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateConsumerConfig createStreams. - * @member {boolean} createStreams - * @memberof protos.args.CreateConsumerConfig - * @instance - */ - CreateConsumerConfig.prototype.createStreams = false; - - /** - * CreateConsumerConfig recreateConsumerGroup. - * @member {boolean} recreateConsumerGroup - * @memberof protos.args.CreateConsumerConfig - * @instance - */ - CreateConsumerConfig.prototype.recreateConsumerGroup = false; - - /** - * CreateConsumerConfig offsetStart. - * @member {protos.args.OffsetStart} offsetStart - * @memberof protos.args.CreateConsumerConfig - * @instance - */ - CreateConsumerConfig.prototype.offsetStart = 0; - - /** - * Creates a new CreateConsumerConfig instance using the specified properties. - * @function create - * @memberof protos.args.CreateConsumerConfig - * @static - * @param {protos.args.ICreateConsumerConfig=} [properties] Properties to set - * @returns {protos.args.CreateConsumerConfig} CreateConsumerConfig instance - */ - CreateConsumerConfig.create = function create(properties) { - return new CreateConsumerConfig(properties); - }; - - /** - * Encodes the specified CreateConsumerConfig message. Does not implicitly {@link protos.args.CreateConsumerConfig.verify|verify} messages. - * @function encode - * @memberof protos.args.CreateConsumerConfig - * @static - * @param {protos.args.ICreateConsumerConfig} message CreateConsumerConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateConsumerConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.createStreams != null && Object.hasOwnProperty.call(message, "createStreams")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.createStreams); - if (message.recreateConsumerGroup != null && Object.hasOwnProperty.call(message, "recreateConsumerGroup")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.recreateConsumerGroup); - if (message.offsetStart != null && Object.hasOwnProperty.call(message, "offsetStart")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.offsetStart); - return writer; - }; - - /** - * Encodes the specified CreateConsumerConfig message, length delimited. Does not implicitly {@link protos.args.CreateConsumerConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.CreateConsumerConfig - * @static - * @param {protos.args.ICreateConsumerConfig} message CreateConsumerConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateConsumerConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateConsumerConfig message from the specified reader or buffer. - * @function decode - * @memberof protos.args.CreateConsumerConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.CreateConsumerConfig} CreateConsumerConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateConsumerConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.CreateConsumerConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.createStreams = reader.bool(); - break; - case 2: - message.recreateConsumerGroup = reader.bool(); - break; - case 3: - message.offsetStart = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateConsumerConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.CreateConsumerConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.CreateConsumerConfig} CreateConsumerConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateConsumerConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateConsumerConfig message. - * @function verify - * @memberof protos.args.CreateConsumerConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateConsumerConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.createStreams != null && message.hasOwnProperty("createStreams")) - if (typeof message.createStreams !== "boolean") - return "createStreams: boolean expected"; - if (message.recreateConsumerGroup != null && message.hasOwnProperty("recreateConsumerGroup")) - if (typeof message.recreateConsumerGroup !== "boolean") - return "recreateConsumerGroup: boolean expected"; - if (message.offsetStart != null && message.hasOwnProperty("offsetStart")) - switch (message.offsetStart) { - default: - return "offsetStart: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - /** - * Creates a CreateConsumerConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.CreateConsumerConfig - * @static - * @param {Object.} object Plain object - * @returns {protos.args.CreateConsumerConfig} CreateConsumerConfig - */ - CreateConsumerConfig.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.CreateConsumerConfig) - return object; - var message = new $root.protos.args.CreateConsumerConfig(); - if (object.createStreams != null) - message.createStreams = Boolean(object.createStreams); - if (object.recreateConsumerGroup != null) - message.recreateConsumerGroup = Boolean(object.recreateConsumerGroup); - switch (object.offsetStart) { - case "LATEST": - case 0: - message.offsetStart = 0; - break; - case "OLDEST": - case 1: - message.offsetStart = 1; - break; - } - return message; - }; - - /** - * Creates a plain object from a CreateConsumerConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.CreateConsumerConfig - * @static - * @param {protos.args.CreateConsumerConfig} message CreateConsumerConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateConsumerConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.createStreams = false; - object.recreateConsumerGroup = false; - object.offsetStart = options.enums === String ? "LATEST" : 0; - } - if (message.createStreams != null && message.hasOwnProperty("createStreams")) - object.createStreams = message.createStreams; - if (message.recreateConsumerGroup != null && message.hasOwnProperty("recreateConsumerGroup")) - object.recreateConsumerGroup = message.recreateConsumerGroup; - if (message.offsetStart != null && message.hasOwnProperty("offsetStart")) - object.offsetStart = options.enums === String ? $root.protos.args.OffsetStart[message.offsetStart] : message.offsetStart; - return object; - }; - - /** - * Converts this CreateConsumerConfig to JSON. - * @function toJSON - * @memberof protos.args.CreateConsumerConfig - * @instance - * @returns {Object.} JSON object - */ - CreateConsumerConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateConsumerConfig; - })(); - - args.RedisStreamsReadArgs = (function() { - - /** - * Properties of a RedisStreamsReadArgs. - * @memberof protos.args - * @interface IRedisStreamsReadArgs - * @property {Array.|null} [streams] RedisStreamsReadArgs streams - * @property {string|null} [consumerGroup] RedisStreamsReadArgs consumerGroup - * @property {string|null} [consumerName] RedisStreamsReadArgs consumerName - * @property {number|null} [count] RedisStreamsReadArgs count - * @property {protos.args.ICreateConsumerConfig|null} [createConsumerConfig] RedisStreamsReadArgs createConsumerConfig - */ - - /** - * Constructs a new RedisStreamsReadArgs. - * @memberof protos.args - * @classdesc Represents a RedisStreamsReadArgs. - * @implements IRedisStreamsReadArgs - * @constructor - * @param {protos.args.IRedisStreamsReadArgs=} [properties] Properties to set - */ - function RedisStreamsReadArgs(properties) { - this.streams = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RedisStreamsReadArgs streams. - * @member {Array.} streams - * @memberof protos.args.RedisStreamsReadArgs - * @instance - */ - RedisStreamsReadArgs.prototype.streams = $util.emptyArray; - - /** - * RedisStreamsReadArgs consumerGroup. - * @member {string} consumerGroup - * @memberof protos.args.RedisStreamsReadArgs - * @instance - */ - RedisStreamsReadArgs.prototype.consumerGroup = ""; - - /** - * RedisStreamsReadArgs consumerName. - * @member {string} consumerName - * @memberof protos.args.RedisStreamsReadArgs - * @instance - */ - RedisStreamsReadArgs.prototype.consumerName = ""; - - /** - * RedisStreamsReadArgs count. - * @member {number} count - * @memberof protos.args.RedisStreamsReadArgs - * @instance - */ - RedisStreamsReadArgs.prototype.count = 0; - - /** - * RedisStreamsReadArgs createConsumerConfig. - * @member {protos.args.ICreateConsumerConfig|null|undefined} createConsumerConfig - * @memberof protos.args.RedisStreamsReadArgs - * @instance - */ - RedisStreamsReadArgs.prototype.createConsumerConfig = null; - - /** - * Creates a new RedisStreamsReadArgs instance using the specified properties. - * @function create - * @memberof protos.args.RedisStreamsReadArgs - * @static - * @param {protos.args.IRedisStreamsReadArgs=} [properties] Properties to set - * @returns {protos.args.RedisStreamsReadArgs} RedisStreamsReadArgs instance - */ - RedisStreamsReadArgs.create = function create(properties) { - return new RedisStreamsReadArgs(properties); - }; - - /** - * Encodes the specified RedisStreamsReadArgs message. Does not implicitly {@link protos.args.RedisStreamsReadArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.RedisStreamsReadArgs - * @static - * @param {protos.args.IRedisStreamsReadArgs} message RedisStreamsReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RedisStreamsReadArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.streams != null && message.streams.length) - for (var i = 0; i < message.streams.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.streams[i]); - if (message.consumerGroup != null && Object.hasOwnProperty.call(message, "consumerGroup")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.consumerGroup); - if (message.consumerName != null && Object.hasOwnProperty.call(message, "consumerName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.consumerName); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.count); - if (message.createConsumerConfig != null && Object.hasOwnProperty.call(message, "createConsumerConfig")) - $root.protos.args.CreateConsumerConfig.encode(message.createConsumerConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified RedisStreamsReadArgs message, length delimited. Does not implicitly {@link protos.args.RedisStreamsReadArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.RedisStreamsReadArgs - * @static - * @param {protos.args.IRedisStreamsReadArgs} message RedisStreamsReadArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RedisStreamsReadArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RedisStreamsReadArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.RedisStreamsReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.RedisStreamsReadArgs} RedisStreamsReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RedisStreamsReadArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RedisStreamsReadArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.streams && message.streams.length)) - message.streams = []; - message.streams.push(reader.string()); - break; - case 2: - message.consumerGroup = reader.string(); - break; - case 3: - message.consumerName = reader.string(); - break; - case 4: - message.count = reader.uint32(); - break; - case 5: - message.createConsumerConfig = $root.protos.args.CreateConsumerConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RedisStreamsReadArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.RedisStreamsReadArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.RedisStreamsReadArgs} RedisStreamsReadArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RedisStreamsReadArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RedisStreamsReadArgs message. - * @function verify - * @memberof protos.args.RedisStreamsReadArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RedisStreamsReadArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.streams != null && message.hasOwnProperty("streams")) { - if (!Array.isArray(message.streams)) - return "streams: array expected"; - for (var i = 0; i < message.streams.length; ++i) - if (!$util.isString(message.streams[i])) - return "streams: string[] expected"; - } - if (message.consumerGroup != null && message.hasOwnProperty("consumerGroup")) - if (!$util.isString(message.consumerGroup)) - return "consumerGroup: string expected"; - if (message.consumerName != null && message.hasOwnProperty("consumerName")) - if (!$util.isString(message.consumerName)) - return "consumerName: string expected"; - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count)) - return "count: integer expected"; - if (message.createConsumerConfig != null && message.hasOwnProperty("createConsumerConfig")) { - var error = $root.protos.args.CreateConsumerConfig.verify(message.createConsumerConfig); - if (error) - return "createConsumerConfig." + error; - } - return null; - }; - - /** - * Creates a RedisStreamsReadArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.RedisStreamsReadArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.RedisStreamsReadArgs} RedisStreamsReadArgs - */ - RedisStreamsReadArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.RedisStreamsReadArgs) - return object; - var message = new $root.protos.args.RedisStreamsReadArgs(); - if (object.streams) { - if (!Array.isArray(object.streams)) - throw TypeError(".protos.args.RedisStreamsReadArgs.streams: array expected"); - message.streams = []; - for (var i = 0; i < object.streams.length; ++i) - message.streams[i] = String(object.streams[i]); - } - if (object.consumerGroup != null) - message.consumerGroup = String(object.consumerGroup); - if (object.consumerName != null) - message.consumerName = String(object.consumerName); - if (object.count != null) - message.count = object.count >>> 0; - if (object.createConsumerConfig != null) { - if (typeof object.createConsumerConfig !== "object") - throw TypeError(".protos.args.RedisStreamsReadArgs.createConsumerConfig: object expected"); - message.createConsumerConfig = $root.protos.args.CreateConsumerConfig.fromObject(object.createConsumerConfig); - } - return message; - }; - - /** - * Creates a plain object from a RedisStreamsReadArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.RedisStreamsReadArgs - * @static - * @param {protos.args.RedisStreamsReadArgs} message RedisStreamsReadArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RedisStreamsReadArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.streams = []; - if (options.defaults) { - object.consumerGroup = ""; - object.consumerName = ""; - object.count = 0; - object.createConsumerConfig = null; - } - if (message.streams && message.streams.length) { - object.streams = []; - for (var j = 0; j < message.streams.length; ++j) - object.streams[j] = message.streams[j]; - } - if (message.consumerGroup != null && message.hasOwnProperty("consumerGroup")) - object.consumerGroup = message.consumerGroup; - if (message.consumerName != null && message.hasOwnProperty("consumerName")) - object.consumerName = message.consumerName; - if (message.count != null && message.hasOwnProperty("count")) - object.count = message.count; - if (message.createConsumerConfig != null && message.hasOwnProperty("createConsumerConfig")) - object.createConsumerConfig = $root.protos.args.CreateConsumerConfig.toObject(message.createConsumerConfig, options); - return object; - }; - - /** - * Converts this RedisStreamsReadArgs to JSON. - * @function toJSON - * @memberof protos.args.RedisStreamsReadArgs - * @instance - * @returns {Object.} JSON object - */ - RedisStreamsReadArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RedisStreamsReadArgs; - })(); - - args.RedisStreamsWriteArgs = (function() { - - /** - * Properties of a RedisStreamsWriteArgs. - * @memberof protos.args - * @interface IRedisStreamsWriteArgs - * @property {string|null} [writeId] RedisStreamsWriteArgs writeId - * @property {Array.|null} [streams] RedisStreamsWriteArgs streams - * @property {string|null} [key] RedisStreamsWriteArgs key - */ - - /** - * Constructs a new RedisStreamsWriteArgs. - * @memberof protos.args - * @classdesc Represents a RedisStreamsWriteArgs. - * @implements IRedisStreamsWriteArgs - * @constructor - * @param {protos.args.IRedisStreamsWriteArgs=} [properties] Properties to set - */ - function RedisStreamsWriteArgs(properties) { - this.streams = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RedisStreamsWriteArgs writeId. - * @member {string} writeId - * @memberof protos.args.RedisStreamsWriteArgs - * @instance - */ - RedisStreamsWriteArgs.prototype.writeId = ""; - - /** - * RedisStreamsWriteArgs streams. - * @member {Array.} streams - * @memberof protos.args.RedisStreamsWriteArgs - * @instance - */ - RedisStreamsWriteArgs.prototype.streams = $util.emptyArray; - - /** - * RedisStreamsWriteArgs key. - * @member {string} key - * @memberof protos.args.RedisStreamsWriteArgs - * @instance - */ - RedisStreamsWriteArgs.prototype.key = ""; - - /** - * Creates a new RedisStreamsWriteArgs instance using the specified properties. - * @function create - * @memberof protos.args.RedisStreamsWriteArgs - * @static - * @param {protos.args.IRedisStreamsWriteArgs=} [properties] Properties to set - * @returns {protos.args.RedisStreamsWriteArgs} RedisStreamsWriteArgs instance - */ - RedisStreamsWriteArgs.create = function create(properties) { - return new RedisStreamsWriteArgs(properties); - }; - - /** - * Encodes the specified RedisStreamsWriteArgs message. Does not implicitly {@link protos.args.RedisStreamsWriteArgs.verify|verify} messages. - * @function encode - * @memberof protos.args.RedisStreamsWriteArgs - * @static - * @param {protos.args.IRedisStreamsWriteArgs} message RedisStreamsWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RedisStreamsWriteArgs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.writeId != null && Object.hasOwnProperty.call(message, "writeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.writeId); - if (message.streams != null && message.streams.length) - for (var i = 0; i < message.streams.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.streams[i]); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.key); - return writer; - }; - - /** - * Encodes the specified RedisStreamsWriteArgs message, length delimited. Does not implicitly {@link protos.args.RedisStreamsWriteArgs.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.args.RedisStreamsWriteArgs - * @static - * @param {protos.args.IRedisStreamsWriteArgs} message RedisStreamsWriteArgs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RedisStreamsWriteArgs.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RedisStreamsWriteArgs message from the specified reader or buffer. - * @function decode - * @memberof protos.args.RedisStreamsWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.args.RedisStreamsWriteArgs} RedisStreamsWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RedisStreamsWriteArgs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.args.RedisStreamsWriteArgs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.writeId = reader.string(); - break; - case 2: - if (!(message.streams && message.streams.length)) - message.streams = []; - message.streams.push(reader.string()); - break; - case 3: - message.key = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RedisStreamsWriteArgs message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.args.RedisStreamsWriteArgs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.args.RedisStreamsWriteArgs} RedisStreamsWriteArgs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RedisStreamsWriteArgs.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RedisStreamsWriteArgs message. - * @function verify - * @memberof protos.args.RedisStreamsWriteArgs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RedisStreamsWriteArgs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.writeId != null && message.hasOwnProperty("writeId")) - if (!$util.isString(message.writeId)) - return "writeId: string expected"; - if (message.streams != null && message.hasOwnProperty("streams")) { - if (!Array.isArray(message.streams)) - return "streams: array expected"; - for (var i = 0; i < message.streams.length; ++i) - if (!$util.isString(message.streams[i])) - return "streams: string[] expected"; - } - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - return null; - }; - - /** - * Creates a RedisStreamsWriteArgs message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.args.RedisStreamsWriteArgs - * @static - * @param {Object.} object Plain object - * @returns {protos.args.RedisStreamsWriteArgs} RedisStreamsWriteArgs - */ - RedisStreamsWriteArgs.fromObject = function fromObject(object) { - if (object instanceof $root.protos.args.RedisStreamsWriteArgs) - return object; - var message = new $root.protos.args.RedisStreamsWriteArgs(); - if (object.writeId != null) - message.writeId = String(object.writeId); - if (object.streams) { - if (!Array.isArray(object.streams)) - throw TypeError(".protos.args.RedisStreamsWriteArgs.streams: array expected"); - message.streams = []; - for (var i = 0; i < object.streams.length; ++i) - message.streams[i] = String(object.streams[i]); - } - if (object.key != null) - message.key = String(object.key); - return message; - }; - - /** - * Creates a plain object from a RedisStreamsWriteArgs message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.args.RedisStreamsWriteArgs - * @static - * @param {protos.args.RedisStreamsWriteArgs} message RedisStreamsWriteArgs - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RedisStreamsWriteArgs.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.streams = []; - if (options.defaults) { - object.writeId = ""; - object.key = ""; - } - if (message.writeId != null && message.hasOwnProperty("writeId")) - object.writeId = message.writeId; - if (message.streams && message.streams.length) { - object.streams = []; - for (var j = 0; j < message.streams.length; ++j) - object.streams[j] = message.streams[j]; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; - return object; - }; - - /** - * Converts this RedisStreamsWriteArgs to JSON. - * @function toJSON - * @memberof protos.args.RedisStreamsWriteArgs - * @instance - * @returns {Object.} JSON object - */ - RedisStreamsWriteArgs.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return RedisStreamsWriteArgs; - })(); - - return args; - })(); - - protos.GetAllRelaysRequest = (function() { - - /** - * Properties of a GetAllRelaysRequest. - * @memberof protos - * @interface IGetAllRelaysRequest - * @property {protos.common.IAuth|null} [auth] GetAllRelaysRequest auth - */ - - /** - * Constructs a new GetAllRelaysRequest. - * @memberof protos - * @classdesc Represents a GetAllRelaysRequest. - * @implements IGetAllRelaysRequest - * @constructor - * @param {protos.IGetAllRelaysRequest=} [properties] Properties to set - */ - function GetAllRelaysRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetAllRelaysRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.GetAllRelaysRequest - * @instance - */ - GetAllRelaysRequest.prototype.auth = null; - - /** - * Creates a new GetAllRelaysRequest instance using the specified properties. - * @function create - * @memberof protos.GetAllRelaysRequest - * @static - * @param {protos.IGetAllRelaysRequest=} [properties] Properties to set - * @returns {protos.GetAllRelaysRequest} GetAllRelaysRequest instance - */ - GetAllRelaysRequest.create = function create(properties) { - return new GetAllRelaysRequest(properties); - }; - - /** - * Encodes the specified GetAllRelaysRequest message. Does not implicitly {@link protos.GetAllRelaysRequest.verify|verify} messages. - * @function encode - * @memberof protos.GetAllRelaysRequest - * @static - * @param {protos.IGetAllRelaysRequest} message GetAllRelaysRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllRelaysRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetAllRelaysRequest message, length delimited. Does not implicitly {@link protos.GetAllRelaysRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetAllRelaysRequest - * @static - * @param {protos.IGetAllRelaysRequest} message GetAllRelaysRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllRelaysRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetAllRelaysRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.GetAllRelaysRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetAllRelaysRequest} GetAllRelaysRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllRelaysRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetAllRelaysRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetAllRelaysRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetAllRelaysRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetAllRelaysRequest} GetAllRelaysRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllRelaysRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetAllRelaysRequest message. - * @function verify - * @memberof protos.GetAllRelaysRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAllRelaysRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - return null; - }; - - /** - * Creates a GetAllRelaysRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetAllRelaysRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.GetAllRelaysRequest} GetAllRelaysRequest - */ - GetAllRelaysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetAllRelaysRequest) - return object; - var message = new $root.protos.GetAllRelaysRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.GetAllRelaysRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - return message; - }; - - /** - * Creates a plain object from a GetAllRelaysRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetAllRelaysRequest - * @static - * @param {protos.GetAllRelaysRequest} message GetAllRelaysRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetAllRelaysRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.auth = null; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this GetAllRelaysRequest to JSON. - * @function toJSON - * @memberof protos.GetAllRelaysRequest - * @instance - * @returns {Object.} JSON object - */ - GetAllRelaysRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetAllRelaysRequest; - })(); - - protos.GetAllRelaysResponse = (function() { - - /** - * Properties of a GetAllRelaysResponse. - * @memberof protos - * @interface IGetAllRelaysResponse - * @property {protos.common.IStatus|null} [status] GetAllRelaysResponse status - * @property {Array.|null} [opts] GetAllRelaysResponse opts - */ - - /** - * Constructs a new GetAllRelaysResponse. - * @memberof protos - * @classdesc Represents a GetAllRelaysResponse. - * @implements IGetAllRelaysResponse - * @constructor - * @param {protos.IGetAllRelaysResponse=} [properties] Properties to set - */ - function GetAllRelaysResponse(properties) { - this.opts = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetAllRelaysResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.GetAllRelaysResponse - * @instance - */ - GetAllRelaysResponse.prototype.status = null; - - /** - * GetAllRelaysResponse opts. - * @member {Array.} opts - * @memberof protos.GetAllRelaysResponse - * @instance - */ - GetAllRelaysResponse.prototype.opts = $util.emptyArray; - - /** - * Creates a new GetAllRelaysResponse instance using the specified properties. - * @function create - * @memberof protos.GetAllRelaysResponse - * @static - * @param {protos.IGetAllRelaysResponse=} [properties] Properties to set - * @returns {protos.GetAllRelaysResponse} GetAllRelaysResponse instance - */ - GetAllRelaysResponse.create = function create(properties) { - return new GetAllRelaysResponse(properties); - }; - - /** - * Encodes the specified GetAllRelaysResponse message. Does not implicitly {@link protos.GetAllRelaysResponse.verify|verify} messages. - * @function encode - * @memberof protos.GetAllRelaysResponse - * @static - * @param {protos.IGetAllRelaysResponse} message GetAllRelaysResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllRelaysResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.opts != null && message.opts.length) - for (var i = 0; i < message.opts.length; ++i) - $root.protos.opts.RelayOptions.encode(message.opts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetAllRelaysResponse message, length delimited. Does not implicitly {@link protos.GetAllRelaysResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetAllRelaysResponse - * @static - * @param {protos.IGetAllRelaysResponse} message GetAllRelaysResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllRelaysResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetAllRelaysResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.GetAllRelaysResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetAllRelaysResponse} GetAllRelaysResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllRelaysResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetAllRelaysResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - case 1: - if (!(message.opts && message.opts.length)) - message.opts = []; - message.opts.push($root.protos.opts.RelayOptions.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetAllRelaysResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetAllRelaysResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetAllRelaysResponse} GetAllRelaysResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllRelaysResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetAllRelaysResponse message. - * @function verify - * @memberof protos.GetAllRelaysResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAllRelaysResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - if (message.opts != null && message.hasOwnProperty("opts")) { - if (!Array.isArray(message.opts)) - return "opts: array expected"; - for (var i = 0; i < message.opts.length; ++i) { - var error = $root.protos.opts.RelayOptions.verify(message.opts[i]); - if (error) - return "opts." + error; - } - } - return null; - }; - - /** - * Creates a GetAllRelaysResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetAllRelaysResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.GetAllRelaysResponse} GetAllRelaysResponse - */ - GetAllRelaysResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetAllRelaysResponse) - return object; - var message = new $root.protos.GetAllRelaysResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.GetAllRelaysResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - if (object.opts) { - if (!Array.isArray(object.opts)) - throw TypeError(".protos.GetAllRelaysResponse.opts: array expected"); - message.opts = []; - for (var i = 0; i < object.opts.length; ++i) { - if (typeof object.opts[i] !== "object") - throw TypeError(".protos.GetAllRelaysResponse.opts: object expected"); - message.opts[i] = $root.protos.opts.RelayOptions.fromObject(object.opts[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a GetAllRelaysResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetAllRelaysResponse - * @static - * @param {protos.GetAllRelaysResponse} message GetAllRelaysResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetAllRelaysResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.opts = []; - if (options.defaults) - object.status = null; - if (message.opts && message.opts.length) { - object.opts = []; - for (var j = 0; j < message.opts.length; ++j) - object.opts[j] = $root.protos.opts.RelayOptions.toObject(message.opts[j], options); - } - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this GetAllRelaysResponse to JSON. - * @function toJSON - * @memberof protos.GetAllRelaysResponse - * @instance - * @returns {Object.} JSON object - */ - GetAllRelaysResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetAllRelaysResponse; - })(); - - protos.GetRelayRequest = (function() { - - /** - * Properties of a GetRelayRequest. - * @memberof protos - * @interface IGetRelayRequest - * @property {protos.common.IAuth|null} [auth] GetRelayRequest auth - * @property {string|null} [relayId] GetRelayRequest relayId - */ - - /** - * Constructs a new GetRelayRequest. - * @memberof protos - * @classdesc Represents a GetRelayRequest. - * @implements IGetRelayRequest - * @constructor - * @param {protos.IGetRelayRequest=} [properties] Properties to set - */ - function GetRelayRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRelayRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.GetRelayRequest - * @instance - */ - GetRelayRequest.prototype.auth = null; - - /** - * GetRelayRequest relayId. - * @member {string} relayId - * @memberof protos.GetRelayRequest - * @instance - */ - GetRelayRequest.prototype.relayId = ""; - - /** - * Creates a new GetRelayRequest instance using the specified properties. - * @function create - * @memberof protos.GetRelayRequest - * @static - * @param {protos.IGetRelayRequest=} [properties] Properties to set - * @returns {protos.GetRelayRequest} GetRelayRequest instance - */ - GetRelayRequest.create = function create(properties) { - return new GetRelayRequest(properties); - }; - - /** - * Encodes the specified GetRelayRequest message. Does not implicitly {@link protos.GetRelayRequest.verify|verify} messages. - * @function encode - * @memberof protos.GetRelayRequest - * @static - * @param {protos.IGetRelayRequest} message GetRelayRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRelayRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.relayId != null && Object.hasOwnProperty.call(message, "relayId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.relayId); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRelayRequest message, length delimited. Does not implicitly {@link protos.GetRelayRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetRelayRequest - * @static - * @param {protos.IGetRelayRequest} message GetRelayRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRelayRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRelayRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.GetRelayRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetRelayRequest} GetRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRelayRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetRelayRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.relayId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRelayRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetRelayRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetRelayRequest} GetRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRelayRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRelayRequest message. - * @function verify - * @memberof protos.GetRelayRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRelayRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.relayId != null && message.hasOwnProperty("relayId")) - if (!$util.isString(message.relayId)) - return "relayId: string expected"; - return null; - }; - - /** - * Creates a GetRelayRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetRelayRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.GetRelayRequest} GetRelayRequest - */ - GetRelayRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetRelayRequest) - return object; - var message = new $root.protos.GetRelayRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.GetRelayRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.relayId != null) - message.relayId = String(object.relayId); - return message; - }; - - /** - * Creates a plain object from a GetRelayRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetRelayRequest - * @static - * @param {protos.GetRelayRequest} message GetRelayRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRelayRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.relayId = ""; - object.auth = null; - } - if (message.relayId != null && message.hasOwnProperty("relayId")) - object.relayId = message.relayId; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this GetRelayRequest to JSON. - * @function toJSON - * @memberof protos.GetRelayRequest - * @instance - * @returns {Object.} JSON object - */ - GetRelayRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetRelayRequest; - })(); - - protos.GetRelayResponse = (function() { - - /** - * Properties of a GetRelayResponse. - * @memberof protos - * @interface IGetRelayResponse - * @property {protos.common.IStatus|null} [status] GetRelayResponse status - * @property {protos.opts.IRelayOptions|null} [opts] GetRelayResponse opts - */ - - /** - * Constructs a new GetRelayResponse. - * @memberof protos - * @classdesc Represents a GetRelayResponse. - * @implements IGetRelayResponse - * @constructor - * @param {protos.IGetRelayResponse=} [properties] Properties to set - */ - function GetRelayResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRelayResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.GetRelayResponse - * @instance - */ - GetRelayResponse.prototype.status = null; - - /** - * GetRelayResponse opts. - * @member {protos.opts.IRelayOptions|null|undefined} opts - * @memberof protos.GetRelayResponse - * @instance - */ - GetRelayResponse.prototype.opts = null; - - /** - * Creates a new GetRelayResponse instance using the specified properties. - * @function create - * @memberof protos.GetRelayResponse - * @static - * @param {protos.IGetRelayResponse=} [properties] Properties to set - * @returns {protos.GetRelayResponse} GetRelayResponse instance - */ - GetRelayResponse.create = function create(properties) { - return new GetRelayResponse(properties); - }; - - /** - * Encodes the specified GetRelayResponse message. Does not implicitly {@link protos.GetRelayResponse.verify|verify} messages. - * @function encode - * @memberof protos.GetRelayResponse - * @static - * @param {protos.IGetRelayResponse} message GetRelayResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRelayResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.opts != null && Object.hasOwnProperty.call(message, "opts")) - $root.protos.opts.RelayOptions.encode(message.opts, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRelayResponse message, length delimited. Does not implicitly {@link protos.GetRelayResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetRelayResponse - * @static - * @param {protos.IGetRelayResponse} message GetRelayResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRelayResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRelayResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.GetRelayResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetRelayResponse} GetRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRelayResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetRelayResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - case 1: - message.opts = $root.protos.opts.RelayOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRelayResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetRelayResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetRelayResponse} GetRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRelayResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRelayResponse message. - * @function verify - * @memberof protos.GetRelayResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRelayResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - if (message.opts != null && message.hasOwnProperty("opts")) { - var error = $root.protos.opts.RelayOptions.verify(message.opts); - if (error) - return "opts." + error; - } - return null; - }; - - /** - * Creates a GetRelayResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetRelayResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.GetRelayResponse} GetRelayResponse - */ - GetRelayResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetRelayResponse) - return object; - var message = new $root.protos.GetRelayResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.GetRelayResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - if (object.opts != null) { - if (typeof object.opts !== "object") - throw TypeError(".protos.GetRelayResponse.opts: object expected"); - message.opts = $root.protos.opts.RelayOptions.fromObject(object.opts); - } - return message; - }; - - /** - * Creates a plain object from a GetRelayResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetRelayResponse - * @static - * @param {protos.GetRelayResponse} message GetRelayResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRelayResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.opts = null; - object.status = null; - } - if (message.opts != null && message.hasOwnProperty("opts")) - object.opts = $root.protos.opts.RelayOptions.toObject(message.opts, options); - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this GetRelayResponse to JSON. - * @function toJSON - * @memberof protos.GetRelayResponse - * @instance - * @returns {Object.} JSON object - */ - GetRelayResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetRelayResponse; - })(); - - protos.CreateRelayRequest = (function() { - - /** - * Properties of a CreateRelayRequest. - * @memberof protos - * @interface ICreateRelayRequest - * @property {protos.common.IAuth|null} [auth] CreateRelayRequest auth - * @property {protos.opts.IRelayOptions|null} [opts] CreateRelayRequest opts - */ - - /** - * Constructs a new CreateRelayRequest. - * @memberof protos - * @classdesc Represents a CreateRelayRequest. - * @implements ICreateRelayRequest - * @constructor - * @param {protos.ICreateRelayRequest=} [properties] Properties to set - */ - function CreateRelayRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateRelayRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.CreateRelayRequest - * @instance - */ - CreateRelayRequest.prototype.auth = null; - - /** - * CreateRelayRequest opts. - * @member {protos.opts.IRelayOptions|null|undefined} opts - * @memberof protos.CreateRelayRequest - * @instance - */ - CreateRelayRequest.prototype.opts = null; - - /** - * Creates a new CreateRelayRequest instance using the specified properties. - * @function create - * @memberof protos.CreateRelayRequest - * @static - * @param {protos.ICreateRelayRequest=} [properties] Properties to set - * @returns {protos.CreateRelayRequest} CreateRelayRequest instance - */ - CreateRelayRequest.create = function create(properties) { - return new CreateRelayRequest(properties); - }; - - /** - * Encodes the specified CreateRelayRequest message. Does not implicitly {@link protos.CreateRelayRequest.verify|verify} messages. - * @function encode - * @memberof protos.CreateRelayRequest - * @static - * @param {protos.ICreateRelayRequest} message CreateRelayRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateRelayRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.opts != null && Object.hasOwnProperty.call(message, "opts")) - $root.protos.opts.RelayOptions.encode(message.opts, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CreateRelayRequest message, length delimited. Does not implicitly {@link protos.CreateRelayRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.CreateRelayRequest - * @static - * @param {protos.ICreateRelayRequest} message CreateRelayRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateRelayRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateRelayRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.CreateRelayRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.CreateRelayRequest} CreateRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateRelayRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.CreateRelayRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.opts = $root.protos.opts.RelayOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateRelayRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.CreateRelayRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.CreateRelayRequest} CreateRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateRelayRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateRelayRequest message. - * @function verify - * @memberof protos.CreateRelayRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateRelayRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.opts != null && message.hasOwnProperty("opts")) { - var error = $root.protos.opts.RelayOptions.verify(message.opts); - if (error) - return "opts." + error; - } - return null; - }; - - /** - * Creates a CreateRelayRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.CreateRelayRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.CreateRelayRequest} CreateRelayRequest - */ - CreateRelayRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.CreateRelayRequest) - return object; - var message = new $root.protos.CreateRelayRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.CreateRelayRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.opts != null) { - if (typeof object.opts !== "object") - throw TypeError(".protos.CreateRelayRequest.opts: object expected"); - message.opts = $root.protos.opts.RelayOptions.fromObject(object.opts); - } - return message; - }; - - /** - * Creates a plain object from a CreateRelayRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.CreateRelayRequest - * @static - * @param {protos.CreateRelayRequest} message CreateRelayRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateRelayRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.opts = null; - object.auth = null; - } - if (message.opts != null && message.hasOwnProperty("opts")) - object.opts = $root.protos.opts.RelayOptions.toObject(message.opts, options); - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this CreateRelayRequest to JSON. - * @function toJSON - * @memberof protos.CreateRelayRequest - * @instance - * @returns {Object.} JSON object - */ - CreateRelayRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateRelayRequest; - })(); - - protos.CreateRelayResponse = (function() { - - /** - * Properties of a CreateRelayResponse. - * @memberof protos - * @interface ICreateRelayResponse - * @property {protos.common.IStatus|null} [status] CreateRelayResponse status - * @property {string|null} [relayId] CreateRelayResponse relayId - */ - - /** - * Constructs a new CreateRelayResponse. - * @memberof protos - * @classdesc Represents a CreateRelayResponse. - * @implements ICreateRelayResponse - * @constructor - * @param {protos.ICreateRelayResponse=} [properties] Properties to set - */ - function CreateRelayResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateRelayResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.CreateRelayResponse - * @instance - */ - CreateRelayResponse.prototype.status = null; - - /** - * CreateRelayResponse relayId. - * @member {string} relayId - * @memberof protos.CreateRelayResponse - * @instance - */ - CreateRelayResponse.prototype.relayId = ""; - - /** - * Creates a new CreateRelayResponse instance using the specified properties. - * @function create - * @memberof protos.CreateRelayResponse - * @static - * @param {protos.ICreateRelayResponse=} [properties] Properties to set - * @returns {protos.CreateRelayResponse} CreateRelayResponse instance - */ - CreateRelayResponse.create = function create(properties) { - return new CreateRelayResponse(properties); - }; - - /** - * Encodes the specified CreateRelayResponse message. Does not implicitly {@link protos.CreateRelayResponse.verify|verify} messages. - * @function encode - * @memberof protos.CreateRelayResponse - * @static - * @param {protos.ICreateRelayResponse} message CreateRelayResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateRelayResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.relayId != null && Object.hasOwnProperty.call(message, "relayId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.relayId); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CreateRelayResponse message, length delimited. Does not implicitly {@link protos.CreateRelayResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.CreateRelayResponse - * @static - * @param {protos.ICreateRelayResponse} message CreateRelayResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateRelayResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateRelayResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.CreateRelayResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.CreateRelayResponse} CreateRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateRelayResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.CreateRelayResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - case 1: - message.relayId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateRelayResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.CreateRelayResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.CreateRelayResponse} CreateRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateRelayResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateRelayResponse message. - * @function verify - * @memberof protos.CreateRelayResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateRelayResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - if (message.relayId != null && message.hasOwnProperty("relayId")) - if (!$util.isString(message.relayId)) - return "relayId: string expected"; - return null; - }; - - /** - * Creates a CreateRelayResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.CreateRelayResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.CreateRelayResponse} CreateRelayResponse - */ - CreateRelayResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.CreateRelayResponse) - return object; - var message = new $root.protos.CreateRelayResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.CreateRelayResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - if (object.relayId != null) - message.relayId = String(object.relayId); - return message; - }; - - /** - * Creates a plain object from a CreateRelayResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.CreateRelayResponse - * @static - * @param {protos.CreateRelayResponse} message CreateRelayResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateRelayResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.relayId = ""; - object.status = null; - } - if (message.relayId != null && message.hasOwnProperty("relayId")) - object.relayId = message.relayId; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this CreateRelayResponse to JSON. - * @function toJSON - * @memberof protos.CreateRelayResponse - * @instance - * @returns {Object.} JSON object - */ - CreateRelayResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateRelayResponse; - })(); - - protos.UpdateRelayRequest = (function() { - - /** - * Properties of an UpdateRelayRequest. - * @memberof protos - * @interface IUpdateRelayRequest - * @property {protos.common.IAuth|null} [auth] UpdateRelayRequest auth - * @property {string|null} [relayId] UpdateRelayRequest relayId - * @property {protos.opts.IRelayOptions|null} [opts] UpdateRelayRequest opts - */ - - /** - * Constructs a new UpdateRelayRequest. - * @memberof protos - * @classdesc Represents an UpdateRelayRequest. - * @implements IUpdateRelayRequest - * @constructor - * @param {protos.IUpdateRelayRequest=} [properties] Properties to set - */ - function UpdateRelayRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UpdateRelayRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.UpdateRelayRequest - * @instance - */ - UpdateRelayRequest.prototype.auth = null; - - /** - * UpdateRelayRequest relayId. - * @member {string} relayId - * @memberof protos.UpdateRelayRequest - * @instance - */ - UpdateRelayRequest.prototype.relayId = ""; - - /** - * UpdateRelayRequest opts. - * @member {protos.opts.IRelayOptions|null|undefined} opts - * @memberof protos.UpdateRelayRequest - * @instance - */ - UpdateRelayRequest.prototype.opts = null; - - /** - * Creates a new UpdateRelayRequest instance using the specified properties. - * @function create - * @memberof protos.UpdateRelayRequest - * @static - * @param {protos.IUpdateRelayRequest=} [properties] Properties to set - * @returns {protos.UpdateRelayRequest} UpdateRelayRequest instance - */ - UpdateRelayRequest.create = function create(properties) { - return new UpdateRelayRequest(properties); - }; - - /** - * Encodes the specified UpdateRelayRequest message. Does not implicitly {@link protos.UpdateRelayRequest.verify|verify} messages. - * @function encode - * @memberof protos.UpdateRelayRequest - * @static - * @param {protos.IUpdateRelayRequest} message UpdateRelayRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateRelayRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.relayId != null && Object.hasOwnProperty.call(message, "relayId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.relayId); - if (message.opts != null && Object.hasOwnProperty.call(message, "opts")) - $root.protos.opts.RelayOptions.encode(message.opts, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UpdateRelayRequest message, length delimited. Does not implicitly {@link protos.UpdateRelayRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.UpdateRelayRequest - * @static - * @param {protos.IUpdateRelayRequest} message UpdateRelayRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateRelayRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateRelayRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.UpdateRelayRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.UpdateRelayRequest} UpdateRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateRelayRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.UpdateRelayRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.relayId = reader.string(); - break; - case 2: - message.opts = $root.protos.opts.RelayOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateRelayRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.UpdateRelayRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.UpdateRelayRequest} UpdateRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateRelayRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateRelayRequest message. - * @function verify - * @memberof protos.UpdateRelayRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateRelayRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.relayId != null && message.hasOwnProperty("relayId")) - if (!$util.isString(message.relayId)) - return "relayId: string expected"; - if (message.opts != null && message.hasOwnProperty("opts")) { - var error = $root.protos.opts.RelayOptions.verify(message.opts); - if (error) - return "opts." + error; - } - return null; - }; - - /** - * Creates an UpdateRelayRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.UpdateRelayRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.UpdateRelayRequest} UpdateRelayRequest - */ - UpdateRelayRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.UpdateRelayRequest) - return object; - var message = new $root.protos.UpdateRelayRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.UpdateRelayRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.relayId != null) - message.relayId = String(object.relayId); - if (object.opts != null) { - if (typeof object.opts !== "object") - throw TypeError(".protos.UpdateRelayRequest.opts: object expected"); - message.opts = $root.protos.opts.RelayOptions.fromObject(object.opts); - } - return message; - }; - - /** - * Creates a plain object from an UpdateRelayRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.UpdateRelayRequest - * @static - * @param {protos.UpdateRelayRequest} message UpdateRelayRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateRelayRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.relayId = ""; - object.opts = null; - object.auth = null; - } - if (message.relayId != null && message.hasOwnProperty("relayId")) - object.relayId = message.relayId; - if (message.opts != null && message.hasOwnProperty("opts")) - object.opts = $root.protos.opts.RelayOptions.toObject(message.opts, options); - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this UpdateRelayRequest to JSON. - * @function toJSON - * @memberof protos.UpdateRelayRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateRelayRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UpdateRelayRequest; - })(); - - protos.UpdateRelayResponse = (function() { - - /** - * Properties of an UpdateRelayResponse. - * @memberof protos - * @interface IUpdateRelayResponse - * @property {protos.common.IStatus|null} [status] UpdateRelayResponse status - */ - - /** - * Constructs a new UpdateRelayResponse. - * @memberof protos - * @classdesc Represents an UpdateRelayResponse. - * @implements IUpdateRelayResponse - * @constructor - * @param {protos.IUpdateRelayResponse=} [properties] Properties to set - */ - function UpdateRelayResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UpdateRelayResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.UpdateRelayResponse - * @instance - */ - UpdateRelayResponse.prototype.status = null; - - /** - * Creates a new UpdateRelayResponse instance using the specified properties. - * @function create - * @memberof protos.UpdateRelayResponse - * @static - * @param {protos.IUpdateRelayResponse=} [properties] Properties to set - * @returns {protos.UpdateRelayResponse} UpdateRelayResponse instance - */ - UpdateRelayResponse.create = function create(properties) { - return new UpdateRelayResponse(properties); - }; - - /** - * Encodes the specified UpdateRelayResponse message. Does not implicitly {@link protos.UpdateRelayResponse.verify|verify} messages. - * @function encode - * @memberof protos.UpdateRelayResponse - * @static - * @param {protos.IUpdateRelayResponse} message UpdateRelayResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateRelayResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UpdateRelayResponse message, length delimited. Does not implicitly {@link protos.UpdateRelayResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.UpdateRelayResponse - * @static - * @param {protos.IUpdateRelayResponse} message UpdateRelayResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateRelayResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateRelayResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.UpdateRelayResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.UpdateRelayResponse} UpdateRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateRelayResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.UpdateRelayResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateRelayResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.UpdateRelayResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.UpdateRelayResponse} UpdateRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateRelayResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateRelayResponse message. - * @function verify - * @memberof protos.UpdateRelayResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateRelayResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; - - /** - * Creates an UpdateRelayResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.UpdateRelayResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.UpdateRelayResponse} UpdateRelayResponse - */ - UpdateRelayResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.UpdateRelayResponse) - return object; - var message = new $root.protos.UpdateRelayResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.UpdateRelayResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - return message; - }; - - /** - * Creates a plain object from an UpdateRelayResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.UpdateRelayResponse - * @static - * @param {protos.UpdateRelayResponse} message UpdateRelayResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateRelayResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this UpdateRelayResponse to JSON. - * @function toJSON - * @memberof protos.UpdateRelayResponse - * @instance - * @returns {Object.} JSON object - */ - UpdateRelayResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UpdateRelayResponse; - })(); - - protos.ResumeRelayRequest = (function() { - - /** - * Properties of a ResumeRelayRequest. - * @memberof protos - * @interface IResumeRelayRequest - * @property {protos.common.IAuth|null} [auth] ResumeRelayRequest auth - * @property {string|null} [relayId] ResumeRelayRequest relayId - */ - - /** - * Constructs a new ResumeRelayRequest. - * @memberof protos - * @classdesc Represents a ResumeRelayRequest. - * @implements IResumeRelayRequest - * @constructor - * @param {protos.IResumeRelayRequest=} [properties] Properties to set - */ - function ResumeRelayRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResumeRelayRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.ResumeRelayRequest - * @instance - */ - ResumeRelayRequest.prototype.auth = null; - - /** - * ResumeRelayRequest relayId. - * @member {string} relayId - * @memberof protos.ResumeRelayRequest - * @instance - */ - ResumeRelayRequest.prototype.relayId = ""; - - /** - * Creates a new ResumeRelayRequest instance using the specified properties. - * @function create - * @memberof protos.ResumeRelayRequest - * @static - * @param {protos.IResumeRelayRequest=} [properties] Properties to set - * @returns {protos.ResumeRelayRequest} ResumeRelayRequest instance - */ - ResumeRelayRequest.create = function create(properties) { - return new ResumeRelayRequest(properties); - }; - - /** - * Encodes the specified ResumeRelayRequest message. Does not implicitly {@link protos.ResumeRelayRequest.verify|verify} messages. - * @function encode - * @memberof protos.ResumeRelayRequest - * @static - * @param {protos.IResumeRelayRequest} message ResumeRelayRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeRelayRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.relayId != null && Object.hasOwnProperty.call(message, "relayId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.relayId); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ResumeRelayRequest message, length delimited. Does not implicitly {@link protos.ResumeRelayRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.ResumeRelayRequest - * @static - * @param {protos.IResumeRelayRequest} message ResumeRelayRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeRelayRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ResumeRelayRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.ResumeRelayRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.ResumeRelayRequest} ResumeRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeRelayRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.ResumeRelayRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.relayId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ResumeRelayRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.ResumeRelayRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.ResumeRelayRequest} ResumeRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeRelayRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ResumeRelayRequest message. - * @function verify - * @memberof protos.ResumeRelayRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResumeRelayRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.relayId != null && message.hasOwnProperty("relayId")) - if (!$util.isString(message.relayId)) - return "relayId: string expected"; - return null; - }; - - /** - * Creates a ResumeRelayRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.ResumeRelayRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.ResumeRelayRequest} ResumeRelayRequest - */ - ResumeRelayRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.ResumeRelayRequest) - return object; - var message = new $root.protos.ResumeRelayRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.ResumeRelayRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.relayId != null) - message.relayId = String(object.relayId); - return message; - }; - - /** - * Creates a plain object from a ResumeRelayRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.ResumeRelayRequest - * @static - * @param {protos.ResumeRelayRequest} message ResumeRelayRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResumeRelayRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.relayId = ""; - object.auth = null; - } - if (message.relayId != null && message.hasOwnProperty("relayId")) - object.relayId = message.relayId; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this ResumeRelayRequest to JSON. - * @function toJSON - * @memberof protos.ResumeRelayRequest - * @instance - * @returns {Object.} JSON object - */ - ResumeRelayRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ResumeRelayRequest; - })(); - - protos.ResumeRelayResponse = (function() { - - /** - * Properties of a ResumeRelayResponse. - * @memberof protos - * @interface IResumeRelayResponse - * @property {protos.common.IStatus|null} [status] ResumeRelayResponse status - */ - - /** - * Constructs a new ResumeRelayResponse. - * @memberof protos - * @classdesc Represents a ResumeRelayResponse. - * @implements IResumeRelayResponse - * @constructor - * @param {protos.IResumeRelayResponse=} [properties] Properties to set - */ - function ResumeRelayResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResumeRelayResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.ResumeRelayResponse - * @instance - */ - ResumeRelayResponse.prototype.status = null; - - /** - * Creates a new ResumeRelayResponse instance using the specified properties. - * @function create - * @memberof protos.ResumeRelayResponse - * @static - * @param {protos.IResumeRelayResponse=} [properties] Properties to set - * @returns {protos.ResumeRelayResponse} ResumeRelayResponse instance - */ - ResumeRelayResponse.create = function create(properties) { - return new ResumeRelayResponse(properties); - }; - - /** - * Encodes the specified ResumeRelayResponse message. Does not implicitly {@link protos.ResumeRelayResponse.verify|verify} messages. - * @function encode - * @memberof protos.ResumeRelayResponse - * @static - * @param {protos.IResumeRelayResponse} message ResumeRelayResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeRelayResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ResumeRelayResponse message, length delimited. Does not implicitly {@link protos.ResumeRelayResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.ResumeRelayResponse - * @static - * @param {protos.IResumeRelayResponse} message ResumeRelayResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeRelayResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ResumeRelayResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.ResumeRelayResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.ResumeRelayResponse} ResumeRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeRelayResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.ResumeRelayResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ResumeRelayResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.ResumeRelayResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.ResumeRelayResponse} ResumeRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeRelayResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ResumeRelayResponse message. - * @function verify - * @memberof protos.ResumeRelayResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResumeRelayResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; - - /** - * Creates a ResumeRelayResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.ResumeRelayResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.ResumeRelayResponse} ResumeRelayResponse - */ - ResumeRelayResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.ResumeRelayResponse) - return object; - var message = new $root.protos.ResumeRelayResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.ResumeRelayResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - return message; - }; - - /** - * Creates a plain object from a ResumeRelayResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.ResumeRelayResponse - * @static - * @param {protos.ResumeRelayResponse} message ResumeRelayResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResumeRelayResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this ResumeRelayResponse to JSON. - * @function toJSON - * @memberof protos.ResumeRelayResponse - * @instance - * @returns {Object.} JSON object - */ - ResumeRelayResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ResumeRelayResponse; - })(); - - protos.StopRelayRequest = (function() { - - /** - * Properties of a StopRelayRequest. - * @memberof protos - * @interface IStopRelayRequest - * @property {protos.common.IAuth|null} [auth] StopRelayRequest auth - * @property {string|null} [relayId] StopRelayRequest relayId - */ - - /** - * Constructs a new StopRelayRequest. - * @memberof protos - * @classdesc Represents a StopRelayRequest. - * @implements IStopRelayRequest - * @constructor - * @param {protos.IStopRelayRequest=} [properties] Properties to set - */ - function StopRelayRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StopRelayRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.StopRelayRequest - * @instance - */ - StopRelayRequest.prototype.auth = null; - - /** - * StopRelayRequest relayId. - * @member {string} relayId - * @memberof protos.StopRelayRequest - * @instance - */ - StopRelayRequest.prototype.relayId = ""; - - /** - * Creates a new StopRelayRequest instance using the specified properties. - * @function create - * @memberof protos.StopRelayRequest - * @static - * @param {protos.IStopRelayRequest=} [properties] Properties to set - * @returns {protos.StopRelayRequest} StopRelayRequest instance - */ - StopRelayRequest.create = function create(properties) { - return new StopRelayRequest(properties); - }; - - /** - * Encodes the specified StopRelayRequest message. Does not implicitly {@link protos.StopRelayRequest.verify|verify} messages. - * @function encode - * @memberof protos.StopRelayRequest - * @static - * @param {protos.IStopRelayRequest} message StopRelayRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StopRelayRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.relayId != null && Object.hasOwnProperty.call(message, "relayId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.relayId); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified StopRelayRequest message, length delimited. Does not implicitly {@link protos.StopRelayRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.StopRelayRequest - * @static - * @param {protos.IStopRelayRequest} message StopRelayRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StopRelayRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StopRelayRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.StopRelayRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.StopRelayRequest} StopRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StopRelayRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.StopRelayRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.relayId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StopRelayRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.StopRelayRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.StopRelayRequest} StopRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StopRelayRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StopRelayRequest message. - * @function verify - * @memberof protos.StopRelayRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StopRelayRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.relayId != null && message.hasOwnProperty("relayId")) - if (!$util.isString(message.relayId)) - return "relayId: string expected"; - return null; - }; - - /** - * Creates a StopRelayRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.StopRelayRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.StopRelayRequest} StopRelayRequest - */ - StopRelayRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.StopRelayRequest) - return object; - var message = new $root.protos.StopRelayRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.StopRelayRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.relayId != null) - message.relayId = String(object.relayId); - return message; - }; - - /** - * Creates a plain object from a StopRelayRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.StopRelayRequest - * @static - * @param {protos.StopRelayRequest} message StopRelayRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StopRelayRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.relayId = ""; - object.auth = null; - } - if (message.relayId != null && message.hasOwnProperty("relayId")) - object.relayId = message.relayId; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this StopRelayRequest to JSON. - * @function toJSON - * @memberof protos.StopRelayRequest - * @instance - * @returns {Object.} JSON object - */ - StopRelayRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StopRelayRequest; - })(); - - protos.StopRelayResponse = (function() { - - /** - * Properties of a StopRelayResponse. - * @memberof protos - * @interface IStopRelayResponse - * @property {protos.common.IStatus|null} [status] StopRelayResponse status - */ - - /** - * Constructs a new StopRelayResponse. - * @memberof protos - * @classdesc Represents a StopRelayResponse. - * @implements IStopRelayResponse - * @constructor - * @param {protos.IStopRelayResponse=} [properties] Properties to set - */ - function StopRelayResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StopRelayResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.StopRelayResponse - * @instance - */ - StopRelayResponse.prototype.status = null; - - /** - * Creates a new StopRelayResponse instance using the specified properties. - * @function create - * @memberof protos.StopRelayResponse - * @static - * @param {protos.IStopRelayResponse=} [properties] Properties to set - * @returns {protos.StopRelayResponse} StopRelayResponse instance - */ - StopRelayResponse.create = function create(properties) { - return new StopRelayResponse(properties); - }; - - /** - * Encodes the specified StopRelayResponse message. Does not implicitly {@link protos.StopRelayResponse.verify|verify} messages. - * @function encode - * @memberof protos.StopRelayResponse - * @static - * @param {protos.IStopRelayResponse} message StopRelayResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StopRelayResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified StopRelayResponse message, length delimited. Does not implicitly {@link protos.StopRelayResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.StopRelayResponse - * @static - * @param {protos.IStopRelayResponse} message StopRelayResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StopRelayResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StopRelayResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.StopRelayResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.StopRelayResponse} StopRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StopRelayResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.StopRelayResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StopRelayResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.StopRelayResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.StopRelayResponse} StopRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StopRelayResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StopRelayResponse message. - * @function verify - * @memberof protos.StopRelayResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StopRelayResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; - - /** - * Creates a StopRelayResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.StopRelayResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.StopRelayResponse} StopRelayResponse - */ - StopRelayResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.StopRelayResponse) - return object; - var message = new $root.protos.StopRelayResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.StopRelayResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - return message; - }; - - /** - * Creates a plain object from a StopRelayResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.StopRelayResponse - * @static - * @param {protos.StopRelayResponse} message StopRelayResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StopRelayResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this StopRelayResponse to JSON. - * @function toJSON - * @memberof protos.StopRelayResponse - * @instance - * @returns {Object.} JSON object - */ - StopRelayResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StopRelayResponse; - })(); - - protos.DeleteRelayRequest = (function() { - - /** - * Properties of a DeleteRelayRequest. - * @memberof protos - * @interface IDeleteRelayRequest - * @property {protos.common.IAuth|null} [auth] DeleteRelayRequest auth - * @property {string|null} [relayId] DeleteRelayRequest relayId - */ - - /** - * Constructs a new DeleteRelayRequest. - * @memberof protos - * @classdesc Represents a DeleteRelayRequest. - * @implements IDeleteRelayRequest - * @constructor - * @param {protos.IDeleteRelayRequest=} [properties] Properties to set - */ - function DeleteRelayRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DeleteRelayRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.DeleteRelayRequest - * @instance - */ - DeleteRelayRequest.prototype.auth = null; - - /** - * DeleteRelayRequest relayId. - * @member {string} relayId - * @memberof protos.DeleteRelayRequest - * @instance - */ - DeleteRelayRequest.prototype.relayId = ""; - - /** - * Creates a new DeleteRelayRequest instance using the specified properties. - * @function create - * @memberof protos.DeleteRelayRequest - * @static - * @param {protos.IDeleteRelayRequest=} [properties] Properties to set - * @returns {protos.DeleteRelayRequest} DeleteRelayRequest instance - */ - DeleteRelayRequest.create = function create(properties) { - return new DeleteRelayRequest(properties); - }; - - /** - * Encodes the specified DeleteRelayRequest message. Does not implicitly {@link protos.DeleteRelayRequest.verify|verify} messages. - * @function encode - * @memberof protos.DeleteRelayRequest - * @static - * @param {protos.IDeleteRelayRequest} message DeleteRelayRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteRelayRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.relayId != null && Object.hasOwnProperty.call(message, "relayId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.relayId); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified DeleteRelayRequest message, length delimited. Does not implicitly {@link protos.DeleteRelayRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.DeleteRelayRequest - * @static - * @param {protos.IDeleteRelayRequest} message DeleteRelayRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteRelayRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteRelayRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.DeleteRelayRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.DeleteRelayRequest} DeleteRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteRelayRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.DeleteRelayRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.relayId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DeleteRelayRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.DeleteRelayRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.DeleteRelayRequest} DeleteRelayRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteRelayRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteRelayRequest message. - * @function verify - * @memberof protos.DeleteRelayRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteRelayRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.relayId != null && message.hasOwnProperty("relayId")) - if (!$util.isString(message.relayId)) - return "relayId: string expected"; - return null; - }; - - /** - * Creates a DeleteRelayRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.DeleteRelayRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.DeleteRelayRequest} DeleteRelayRequest - */ - DeleteRelayRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.DeleteRelayRequest) - return object; - var message = new $root.protos.DeleteRelayRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.DeleteRelayRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.relayId != null) - message.relayId = String(object.relayId); - return message; - }; - - /** - * Creates a plain object from a DeleteRelayRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.DeleteRelayRequest - * @static - * @param {protos.DeleteRelayRequest} message DeleteRelayRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteRelayRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.relayId = ""; - object.auth = null; - } - if (message.relayId != null && message.hasOwnProperty("relayId")) - object.relayId = message.relayId; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this DeleteRelayRequest to JSON. - * @function toJSON - * @memberof protos.DeleteRelayRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteRelayRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteRelayRequest; - })(); - - protos.DeleteRelayResponse = (function() { - - /** - * Properties of a DeleteRelayResponse. - * @memberof protos - * @interface IDeleteRelayResponse - * @property {protos.common.IStatus|null} [status] DeleteRelayResponse status - */ - - /** - * Constructs a new DeleteRelayResponse. - * @memberof protos - * @classdesc Represents a DeleteRelayResponse. - * @implements IDeleteRelayResponse - * @constructor - * @param {protos.IDeleteRelayResponse=} [properties] Properties to set - */ - function DeleteRelayResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DeleteRelayResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.DeleteRelayResponse - * @instance - */ - DeleteRelayResponse.prototype.status = null; - - /** - * Creates a new DeleteRelayResponse instance using the specified properties. - * @function create - * @memberof protos.DeleteRelayResponse - * @static - * @param {protos.IDeleteRelayResponse=} [properties] Properties to set - * @returns {protos.DeleteRelayResponse} DeleteRelayResponse instance - */ - DeleteRelayResponse.create = function create(properties) { - return new DeleteRelayResponse(properties); - }; - - /** - * Encodes the specified DeleteRelayResponse message. Does not implicitly {@link protos.DeleteRelayResponse.verify|verify} messages. - * @function encode - * @memberof protos.DeleteRelayResponse - * @static - * @param {protos.IDeleteRelayResponse} message DeleteRelayResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteRelayResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified DeleteRelayResponse message, length delimited. Does not implicitly {@link protos.DeleteRelayResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.DeleteRelayResponse - * @static - * @param {protos.IDeleteRelayResponse} message DeleteRelayResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteRelayResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteRelayResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.DeleteRelayResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.DeleteRelayResponse} DeleteRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteRelayResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.DeleteRelayResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DeleteRelayResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.DeleteRelayResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.DeleteRelayResponse} DeleteRelayResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteRelayResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteRelayResponse message. - * @function verify - * @memberof protos.DeleteRelayResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteRelayResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; - - /** - * Creates a DeleteRelayResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.DeleteRelayResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.DeleteRelayResponse} DeleteRelayResponse - */ - DeleteRelayResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.DeleteRelayResponse) - return object; - var message = new $root.protos.DeleteRelayResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.DeleteRelayResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - return message; - }; - - /** - * Creates a plain object from a DeleteRelayResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.DeleteRelayResponse - * @static - * @param {protos.DeleteRelayResponse} message DeleteRelayResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteRelayResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this DeleteRelayResponse to JSON. - * @function toJSON - * @memberof protos.DeleteRelayResponse - * @instance - * @returns {Object.} JSON object - */ - DeleteRelayResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteRelayResponse; - })(); - - protos.GetServerOptionsRequest = (function() { - - /** - * Properties of a GetServerOptionsRequest. - * @memberof protos - * @interface IGetServerOptionsRequest - * @property {protos.common.IAuth|null} [auth] GetServerOptionsRequest auth - */ - - /** - * Constructs a new GetServerOptionsRequest. - * @memberof protos - * @classdesc Represents a GetServerOptionsRequest. - * @implements IGetServerOptionsRequest - * @constructor - * @param {protos.IGetServerOptionsRequest=} [properties] Properties to set - */ - function GetServerOptionsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetServerOptionsRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.GetServerOptionsRequest - * @instance - */ - GetServerOptionsRequest.prototype.auth = null; - - /** - * Creates a new GetServerOptionsRequest instance using the specified properties. - * @function create - * @memberof protos.GetServerOptionsRequest - * @static - * @param {protos.IGetServerOptionsRequest=} [properties] Properties to set - * @returns {protos.GetServerOptionsRequest} GetServerOptionsRequest instance - */ - GetServerOptionsRequest.create = function create(properties) { - return new GetServerOptionsRequest(properties); - }; - - /** - * Encodes the specified GetServerOptionsRequest message. Does not implicitly {@link protos.GetServerOptionsRequest.verify|verify} messages. - * @function encode - * @memberof protos.GetServerOptionsRequest - * @static - * @param {protos.IGetServerOptionsRequest} message GetServerOptionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetServerOptionsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetServerOptionsRequest message, length delimited. Does not implicitly {@link protos.GetServerOptionsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetServerOptionsRequest - * @static - * @param {protos.IGetServerOptionsRequest} message GetServerOptionsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetServerOptionsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetServerOptionsRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.GetServerOptionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetServerOptionsRequest} GetServerOptionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetServerOptionsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetServerOptionsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetServerOptionsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetServerOptionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetServerOptionsRequest} GetServerOptionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetServerOptionsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetServerOptionsRequest message. - * @function verify - * @memberof protos.GetServerOptionsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetServerOptionsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - return null; - }; - - /** - * Creates a GetServerOptionsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetServerOptionsRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.GetServerOptionsRequest} GetServerOptionsRequest - */ - GetServerOptionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetServerOptionsRequest) - return object; - var message = new $root.protos.GetServerOptionsRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.GetServerOptionsRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - return message; - }; - - /** - * Creates a plain object from a GetServerOptionsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetServerOptionsRequest - * @static - * @param {protos.GetServerOptionsRequest} message GetServerOptionsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetServerOptionsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.auth = null; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this GetServerOptionsRequest to JSON. - * @function toJSON - * @memberof protos.GetServerOptionsRequest - * @instance - * @returns {Object.} JSON object - */ - GetServerOptionsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetServerOptionsRequest; - })(); - - protos.GetServerOptionsResponse = (function() { - - /** - * Properties of a GetServerOptionsResponse. - * @memberof protos - * @interface IGetServerOptionsResponse - * @property {protos.opts.IServerOptions|null} [serverOptions] GetServerOptionsResponse serverOptions - */ - - /** - * Constructs a new GetServerOptionsResponse. - * @memberof protos - * @classdesc Represents a GetServerOptionsResponse. - * @implements IGetServerOptionsResponse - * @constructor - * @param {protos.IGetServerOptionsResponse=} [properties] Properties to set - */ - function GetServerOptionsResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetServerOptionsResponse serverOptions. - * @member {protos.opts.IServerOptions|null|undefined} serverOptions - * @memberof protos.GetServerOptionsResponse - * @instance - */ - GetServerOptionsResponse.prototype.serverOptions = null; - - /** - * Creates a new GetServerOptionsResponse instance using the specified properties. - * @function create - * @memberof protos.GetServerOptionsResponse - * @static - * @param {protos.IGetServerOptionsResponse=} [properties] Properties to set - * @returns {protos.GetServerOptionsResponse} GetServerOptionsResponse instance - */ - GetServerOptionsResponse.create = function create(properties) { - return new GetServerOptionsResponse(properties); - }; - - /** - * Encodes the specified GetServerOptionsResponse message. Does not implicitly {@link protos.GetServerOptionsResponse.verify|verify} messages. - * @function encode - * @memberof protos.GetServerOptionsResponse - * @static - * @param {protos.IGetServerOptionsResponse} message GetServerOptionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetServerOptionsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.serverOptions != null && Object.hasOwnProperty.call(message, "serverOptions")) - $root.protos.opts.ServerOptions.encode(message.serverOptions, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetServerOptionsResponse message, length delimited. Does not implicitly {@link protos.GetServerOptionsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetServerOptionsResponse - * @static - * @param {protos.IGetServerOptionsResponse} message GetServerOptionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetServerOptionsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetServerOptionsResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.GetServerOptionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetServerOptionsResponse} GetServerOptionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetServerOptionsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetServerOptionsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.serverOptions = $root.protos.opts.ServerOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetServerOptionsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetServerOptionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetServerOptionsResponse} GetServerOptionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetServerOptionsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetServerOptionsResponse message. - * @function verify - * @memberof protos.GetServerOptionsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetServerOptionsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serverOptions != null && message.hasOwnProperty("serverOptions")) { - var error = $root.protos.opts.ServerOptions.verify(message.serverOptions); - if (error) - return "serverOptions." + error; - } - return null; - }; - - /** - * Creates a GetServerOptionsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetServerOptionsResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.GetServerOptionsResponse} GetServerOptionsResponse - */ - GetServerOptionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetServerOptionsResponse) - return object; - var message = new $root.protos.GetServerOptionsResponse(); - if (object.serverOptions != null) { - if (typeof object.serverOptions !== "object") - throw TypeError(".protos.GetServerOptionsResponse.serverOptions: object expected"); - message.serverOptions = $root.protos.opts.ServerOptions.fromObject(object.serverOptions); - } - return message; - }; - - /** - * Creates a plain object from a GetServerOptionsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetServerOptionsResponse - * @static - * @param {protos.GetServerOptionsResponse} message GetServerOptionsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetServerOptionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.serverOptions = null; - if (message.serverOptions != null && message.hasOwnProperty("serverOptions")) - object.serverOptions = $root.protos.opts.ServerOptions.toObject(message.serverOptions, options); - return object; - }; - - /** - * Converts this GetServerOptionsResponse to JSON. - * @function toJSON - * @memberof protos.GetServerOptionsResponse - * @instance - * @returns {Object.} JSON object - */ - GetServerOptionsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetServerOptionsResponse; - })(); - - protos.GetAllTunnelsRequest = (function() { - - /** - * Properties of a GetAllTunnelsRequest. - * @memberof protos - * @interface IGetAllTunnelsRequest - * @property {protos.common.IAuth|null} [auth] GetAllTunnelsRequest auth - */ - - /** - * Constructs a new GetAllTunnelsRequest. - * @memberof protos - * @classdesc Represents a GetAllTunnelsRequest. - * @implements IGetAllTunnelsRequest - * @constructor - * @param {protos.IGetAllTunnelsRequest=} [properties] Properties to set - */ - function GetAllTunnelsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetAllTunnelsRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.GetAllTunnelsRequest - * @instance - */ - GetAllTunnelsRequest.prototype.auth = null; - - /** - * Creates a new GetAllTunnelsRequest instance using the specified properties. - * @function create - * @memberof protos.GetAllTunnelsRequest - * @static - * @param {protos.IGetAllTunnelsRequest=} [properties] Properties to set - * @returns {protos.GetAllTunnelsRequest} GetAllTunnelsRequest instance - */ - GetAllTunnelsRequest.create = function create(properties) { - return new GetAllTunnelsRequest(properties); - }; - - /** - * Encodes the specified GetAllTunnelsRequest message. Does not implicitly {@link protos.GetAllTunnelsRequest.verify|verify} messages. - * @function encode - * @memberof protos.GetAllTunnelsRequest - * @static - * @param {protos.IGetAllTunnelsRequest} message GetAllTunnelsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllTunnelsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetAllTunnelsRequest message, length delimited. Does not implicitly {@link protos.GetAllTunnelsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetAllTunnelsRequest - * @static - * @param {protos.IGetAllTunnelsRequest} message GetAllTunnelsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllTunnelsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetAllTunnelsRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.GetAllTunnelsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetAllTunnelsRequest} GetAllTunnelsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllTunnelsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetAllTunnelsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetAllTunnelsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetAllTunnelsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetAllTunnelsRequest} GetAllTunnelsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllTunnelsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetAllTunnelsRequest message. - * @function verify - * @memberof protos.GetAllTunnelsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAllTunnelsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - return null; - }; - - /** - * Creates a GetAllTunnelsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetAllTunnelsRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.GetAllTunnelsRequest} GetAllTunnelsRequest - */ - GetAllTunnelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetAllTunnelsRequest) - return object; - var message = new $root.protos.GetAllTunnelsRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.GetAllTunnelsRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - return message; - }; - - /** - * Creates a plain object from a GetAllTunnelsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetAllTunnelsRequest - * @static - * @param {protos.GetAllTunnelsRequest} message GetAllTunnelsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetAllTunnelsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.auth = null; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this GetAllTunnelsRequest to JSON. - * @function toJSON - * @memberof protos.GetAllTunnelsRequest - * @instance - * @returns {Object.} JSON object - */ - GetAllTunnelsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetAllTunnelsRequest; - })(); - - protos.GetAllTunnelsResponse = (function() { - - /** - * Properties of a GetAllTunnelsResponse. - * @memberof protos - * @interface IGetAllTunnelsResponse - * @property {protos.common.IStatus|null} [status] GetAllTunnelsResponse status - * @property {Array.|null} [opts] GetAllTunnelsResponse opts - */ - - /** - * Constructs a new GetAllTunnelsResponse. - * @memberof protos - * @classdesc Represents a GetAllTunnelsResponse. - * @implements IGetAllTunnelsResponse - * @constructor - * @param {protos.IGetAllTunnelsResponse=} [properties] Properties to set - */ - function GetAllTunnelsResponse(properties) { - this.opts = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetAllTunnelsResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.GetAllTunnelsResponse - * @instance - */ - GetAllTunnelsResponse.prototype.status = null; - - /** - * GetAllTunnelsResponse opts. - * @member {Array.} opts - * @memberof protos.GetAllTunnelsResponse - * @instance - */ - GetAllTunnelsResponse.prototype.opts = $util.emptyArray; - - /** - * Creates a new GetAllTunnelsResponse instance using the specified properties. - * @function create - * @memberof protos.GetAllTunnelsResponse - * @static - * @param {protos.IGetAllTunnelsResponse=} [properties] Properties to set - * @returns {protos.GetAllTunnelsResponse} GetAllTunnelsResponse instance - */ - GetAllTunnelsResponse.create = function create(properties) { - return new GetAllTunnelsResponse(properties); - }; - - /** - * Encodes the specified GetAllTunnelsResponse message. Does not implicitly {@link protos.GetAllTunnelsResponse.verify|verify} messages. - * @function encode - * @memberof protos.GetAllTunnelsResponse - * @static - * @param {protos.IGetAllTunnelsResponse} message GetAllTunnelsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllTunnelsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.opts != null && message.opts.length) - for (var i = 0; i < message.opts.length; ++i) - $root.protos.opts.TunnelOptions.encode(message.opts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetAllTunnelsResponse message, length delimited. Does not implicitly {@link protos.GetAllTunnelsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetAllTunnelsResponse - * @static - * @param {protos.IGetAllTunnelsResponse} message GetAllTunnelsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAllTunnelsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetAllTunnelsResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.GetAllTunnelsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetAllTunnelsResponse} GetAllTunnelsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllTunnelsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetAllTunnelsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - case 1: - if (!(message.opts && message.opts.length)) - message.opts = []; - message.opts.push($root.protos.opts.TunnelOptions.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetAllTunnelsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetAllTunnelsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetAllTunnelsResponse} GetAllTunnelsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAllTunnelsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetAllTunnelsResponse message. - * @function verify - * @memberof protos.GetAllTunnelsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAllTunnelsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - if (message.opts != null && message.hasOwnProperty("opts")) { - if (!Array.isArray(message.opts)) - return "opts: array expected"; - for (var i = 0; i < message.opts.length; ++i) { - var error = $root.protos.opts.TunnelOptions.verify(message.opts[i]); - if (error) - return "opts." + error; - } - } - return null; - }; - - /** - * Creates a GetAllTunnelsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetAllTunnelsResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.GetAllTunnelsResponse} GetAllTunnelsResponse - */ - GetAllTunnelsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetAllTunnelsResponse) - return object; - var message = new $root.protos.GetAllTunnelsResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.GetAllTunnelsResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - if (object.opts) { - if (!Array.isArray(object.opts)) - throw TypeError(".protos.GetAllTunnelsResponse.opts: array expected"); - message.opts = []; - for (var i = 0; i < object.opts.length; ++i) { - if (typeof object.opts[i] !== "object") - throw TypeError(".protos.GetAllTunnelsResponse.opts: object expected"); - message.opts[i] = $root.protos.opts.TunnelOptions.fromObject(object.opts[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a GetAllTunnelsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetAllTunnelsResponse - * @static - * @param {protos.GetAllTunnelsResponse} message GetAllTunnelsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetAllTunnelsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.opts = []; - if (options.defaults) - object.status = null; - if (message.opts && message.opts.length) { - object.opts = []; - for (var j = 0; j < message.opts.length; ++j) - object.opts[j] = $root.protos.opts.TunnelOptions.toObject(message.opts[j], options); - } - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this GetAllTunnelsResponse to JSON. - * @function toJSON - * @memberof protos.GetAllTunnelsResponse - * @instance - * @returns {Object.} JSON object - */ - GetAllTunnelsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetAllTunnelsResponse; - })(); - - protos.GetTunnelRequest = (function() { - - /** - * Properties of a GetTunnelRequest. - * @memberof protos - * @interface IGetTunnelRequest - * @property {protos.common.IAuth|null} [auth] GetTunnelRequest auth - * @property {string|null} [tunnelId] GetTunnelRequest tunnelId - */ - - /** - * Constructs a new GetTunnelRequest. - * @memberof protos - * @classdesc Represents a GetTunnelRequest. - * @implements IGetTunnelRequest - * @constructor - * @param {protos.IGetTunnelRequest=} [properties] Properties to set - */ - function GetTunnelRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetTunnelRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.GetTunnelRequest - * @instance - */ - GetTunnelRequest.prototype.auth = null; - - /** - * GetTunnelRequest tunnelId. - * @member {string} tunnelId - * @memberof protos.GetTunnelRequest - * @instance - */ - GetTunnelRequest.prototype.tunnelId = ""; - - /** - * Creates a new GetTunnelRequest instance using the specified properties. - * @function create - * @memberof protos.GetTunnelRequest - * @static - * @param {protos.IGetTunnelRequest=} [properties] Properties to set - * @returns {protos.GetTunnelRequest} GetTunnelRequest instance - */ - GetTunnelRequest.create = function create(properties) { - return new GetTunnelRequest(properties); - }; - - /** - * Encodes the specified GetTunnelRequest message. Does not implicitly {@link protos.GetTunnelRequest.verify|verify} messages. - * @function encode - * @memberof protos.GetTunnelRequest - * @static - * @param {protos.IGetTunnelRequest} message GetTunnelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTunnelRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tunnelId != null && Object.hasOwnProperty.call(message, "tunnelId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tunnelId); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetTunnelRequest message, length delimited. Does not implicitly {@link protos.GetTunnelRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetTunnelRequest - * @static - * @param {protos.IGetTunnelRequest} message GetTunnelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTunnelRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetTunnelRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.GetTunnelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetTunnelRequest} GetTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTunnelRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetTunnelRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.tunnelId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetTunnelRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetTunnelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetTunnelRequest} GetTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTunnelRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetTunnelRequest message. - * @function verify - * @memberof protos.GetTunnelRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTunnelRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.tunnelId != null && message.hasOwnProperty("tunnelId")) - if (!$util.isString(message.tunnelId)) - return "tunnelId: string expected"; - return null; - }; - - /** - * Creates a GetTunnelRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetTunnelRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.GetTunnelRequest} GetTunnelRequest - */ - GetTunnelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetTunnelRequest) - return object; - var message = new $root.protos.GetTunnelRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.GetTunnelRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.tunnelId != null) - message.tunnelId = String(object.tunnelId); - return message; - }; - - /** - * Creates a plain object from a GetTunnelRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetTunnelRequest - * @static - * @param {protos.GetTunnelRequest} message GetTunnelRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetTunnelRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.tunnelId = ""; - object.auth = null; - } - if (message.tunnelId != null && message.hasOwnProperty("tunnelId")) - object.tunnelId = message.tunnelId; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this GetTunnelRequest to JSON. - * @function toJSON - * @memberof protos.GetTunnelRequest - * @instance - * @returns {Object.} JSON object - */ - GetTunnelRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetTunnelRequest; - })(); - - protos.GetTunnelResponse = (function() { - - /** - * Properties of a GetTunnelResponse. - * @memberof protos - * @interface IGetTunnelResponse - * @property {protos.common.IStatus|null} [status] GetTunnelResponse status - * @property {protos.opts.ITunnelOptions|null} [opts] GetTunnelResponse opts - */ - - /** - * Constructs a new GetTunnelResponse. - * @memberof protos - * @classdesc Represents a GetTunnelResponse. - * @implements IGetTunnelResponse - * @constructor - * @param {protos.IGetTunnelResponse=} [properties] Properties to set - */ - function GetTunnelResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetTunnelResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.GetTunnelResponse - * @instance - */ - GetTunnelResponse.prototype.status = null; - - /** - * GetTunnelResponse opts. - * @member {protos.opts.ITunnelOptions|null|undefined} opts - * @memberof protos.GetTunnelResponse - * @instance - */ - GetTunnelResponse.prototype.opts = null; - - /** - * Creates a new GetTunnelResponse instance using the specified properties. - * @function create - * @memberof protos.GetTunnelResponse - * @static - * @param {protos.IGetTunnelResponse=} [properties] Properties to set - * @returns {protos.GetTunnelResponse} GetTunnelResponse instance - */ - GetTunnelResponse.create = function create(properties) { - return new GetTunnelResponse(properties); - }; - - /** - * Encodes the specified GetTunnelResponse message. Does not implicitly {@link protos.GetTunnelResponse.verify|verify} messages. - * @function encode - * @memberof protos.GetTunnelResponse - * @static - * @param {protos.IGetTunnelResponse} message GetTunnelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTunnelResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.opts != null && Object.hasOwnProperty.call(message, "opts")) - $root.protos.opts.TunnelOptions.encode(message.opts, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetTunnelResponse message, length delimited. Does not implicitly {@link protos.GetTunnelResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.GetTunnelResponse - * @static - * @param {protos.IGetTunnelResponse} message GetTunnelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTunnelResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetTunnelResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.GetTunnelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.GetTunnelResponse} GetTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTunnelResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.GetTunnelResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - case 1: - message.opts = $root.protos.opts.TunnelOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetTunnelResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.GetTunnelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.GetTunnelResponse} GetTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTunnelResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetTunnelResponse message. - * @function verify - * @memberof protos.GetTunnelResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTunnelResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - if (message.opts != null && message.hasOwnProperty("opts")) { - var error = $root.protos.opts.TunnelOptions.verify(message.opts); - if (error) - return "opts." + error; - } - return null; - }; - - /** - * Creates a GetTunnelResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.GetTunnelResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.GetTunnelResponse} GetTunnelResponse - */ - GetTunnelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.GetTunnelResponse) - return object; - var message = new $root.protos.GetTunnelResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.GetTunnelResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - if (object.opts != null) { - if (typeof object.opts !== "object") - throw TypeError(".protos.GetTunnelResponse.opts: object expected"); - message.opts = $root.protos.opts.TunnelOptions.fromObject(object.opts); - } - return message; - }; - - /** - * Creates a plain object from a GetTunnelResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.GetTunnelResponse - * @static - * @param {protos.GetTunnelResponse} message GetTunnelResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetTunnelResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.opts = null; - object.status = null; - } - if (message.opts != null && message.hasOwnProperty("opts")) - object.opts = $root.protos.opts.TunnelOptions.toObject(message.opts, options); - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this GetTunnelResponse to JSON. - * @function toJSON - * @memberof protos.GetTunnelResponse - * @instance - * @returns {Object.} JSON object - */ - GetTunnelResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetTunnelResponse; - })(); - - protos.CreateTunnelRequest = (function() { - - /** - * Properties of a CreateTunnelRequest. - * @memberof protos - * @interface ICreateTunnelRequest - * @property {protos.common.IAuth|null} [auth] CreateTunnelRequest auth - * @property {protos.opts.ITunnelOptions|null} [opts] CreateTunnelRequest opts - */ - - /** - * Constructs a new CreateTunnelRequest. - * @memberof protos - * @classdesc Represents a CreateTunnelRequest. - * @implements ICreateTunnelRequest - * @constructor - * @param {protos.ICreateTunnelRequest=} [properties] Properties to set - */ - function CreateTunnelRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateTunnelRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.CreateTunnelRequest - * @instance - */ - CreateTunnelRequest.prototype.auth = null; - - /** - * CreateTunnelRequest opts. - * @member {protos.opts.ITunnelOptions|null|undefined} opts - * @memberof protos.CreateTunnelRequest - * @instance - */ - CreateTunnelRequest.prototype.opts = null; - - /** - * Creates a new CreateTunnelRequest instance using the specified properties. - * @function create - * @memberof protos.CreateTunnelRequest - * @static - * @param {protos.ICreateTunnelRequest=} [properties] Properties to set - * @returns {protos.CreateTunnelRequest} CreateTunnelRequest instance - */ - CreateTunnelRequest.create = function create(properties) { - return new CreateTunnelRequest(properties); - }; - - /** - * Encodes the specified CreateTunnelRequest message. Does not implicitly {@link protos.CreateTunnelRequest.verify|verify} messages. - * @function encode - * @memberof protos.CreateTunnelRequest - * @static - * @param {protos.ICreateTunnelRequest} message CreateTunnelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateTunnelRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.opts != null && Object.hasOwnProperty.call(message, "opts")) - $root.protos.opts.TunnelOptions.encode(message.opts, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CreateTunnelRequest message, length delimited. Does not implicitly {@link protos.CreateTunnelRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.CreateTunnelRequest - * @static - * @param {protos.ICreateTunnelRequest} message CreateTunnelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateTunnelRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateTunnelRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.CreateTunnelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.CreateTunnelRequest} CreateTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateTunnelRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.CreateTunnelRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.opts = $root.protos.opts.TunnelOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateTunnelRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.CreateTunnelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.CreateTunnelRequest} CreateTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateTunnelRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateTunnelRequest message. - * @function verify - * @memberof protos.CreateTunnelRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateTunnelRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.opts != null && message.hasOwnProperty("opts")) { - var error = $root.protos.opts.TunnelOptions.verify(message.opts); - if (error) - return "opts." + error; - } - return null; - }; - - /** - * Creates a CreateTunnelRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.CreateTunnelRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.CreateTunnelRequest} CreateTunnelRequest - */ - CreateTunnelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.CreateTunnelRequest) - return object; - var message = new $root.protos.CreateTunnelRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.CreateTunnelRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.opts != null) { - if (typeof object.opts !== "object") - throw TypeError(".protos.CreateTunnelRequest.opts: object expected"); - message.opts = $root.protos.opts.TunnelOptions.fromObject(object.opts); - } - return message; - }; - - /** - * Creates a plain object from a CreateTunnelRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.CreateTunnelRequest - * @static - * @param {protos.CreateTunnelRequest} message CreateTunnelRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateTunnelRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.opts = null; - object.auth = null; - } - if (message.opts != null && message.hasOwnProperty("opts")) - object.opts = $root.protos.opts.TunnelOptions.toObject(message.opts, options); - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this CreateTunnelRequest to JSON. - * @function toJSON - * @memberof protos.CreateTunnelRequest - * @instance - * @returns {Object.} JSON object - */ - CreateTunnelRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateTunnelRequest; - })(); - - protos.CreateTunnelResponse = (function() { - - /** - * Properties of a CreateTunnelResponse. - * @memberof protos - * @interface ICreateTunnelResponse - * @property {protos.common.IStatus|null} [status] CreateTunnelResponse status - * @property {string|null} [tunnelId] CreateTunnelResponse tunnelId - */ - - /** - * Constructs a new CreateTunnelResponse. - * @memberof protos - * @classdesc Represents a CreateTunnelResponse. - * @implements ICreateTunnelResponse - * @constructor - * @param {protos.ICreateTunnelResponse=} [properties] Properties to set - */ - function CreateTunnelResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateTunnelResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.CreateTunnelResponse - * @instance - */ - CreateTunnelResponse.prototype.status = null; - - /** - * CreateTunnelResponse tunnelId. - * @member {string} tunnelId - * @memberof protos.CreateTunnelResponse - * @instance - */ - CreateTunnelResponse.prototype.tunnelId = ""; - - /** - * Creates a new CreateTunnelResponse instance using the specified properties. - * @function create - * @memberof protos.CreateTunnelResponse - * @static - * @param {protos.ICreateTunnelResponse=} [properties] Properties to set - * @returns {protos.CreateTunnelResponse} CreateTunnelResponse instance - */ - CreateTunnelResponse.create = function create(properties) { - return new CreateTunnelResponse(properties); - }; - - /** - * Encodes the specified CreateTunnelResponse message. Does not implicitly {@link protos.CreateTunnelResponse.verify|verify} messages. - * @function encode - * @memberof protos.CreateTunnelResponse - * @static - * @param {protos.ICreateTunnelResponse} message CreateTunnelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateTunnelResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tunnelId != null && Object.hasOwnProperty.call(message, "tunnelId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tunnelId); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CreateTunnelResponse message, length delimited. Does not implicitly {@link protos.CreateTunnelResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.CreateTunnelResponse - * @static - * @param {protos.ICreateTunnelResponse} message CreateTunnelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateTunnelResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateTunnelResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.CreateTunnelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.CreateTunnelResponse} CreateTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateTunnelResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.CreateTunnelResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - case 1: - message.tunnelId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateTunnelResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.CreateTunnelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.CreateTunnelResponse} CreateTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateTunnelResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateTunnelResponse message. - * @function verify - * @memberof protos.CreateTunnelResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateTunnelResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - if (message.tunnelId != null && message.hasOwnProperty("tunnelId")) - if (!$util.isString(message.tunnelId)) - return "tunnelId: string expected"; - return null; - }; - - /** - * Creates a CreateTunnelResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.CreateTunnelResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.CreateTunnelResponse} CreateTunnelResponse - */ - CreateTunnelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.CreateTunnelResponse) - return object; - var message = new $root.protos.CreateTunnelResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.CreateTunnelResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - if (object.tunnelId != null) - message.tunnelId = String(object.tunnelId); - return message; - }; - - /** - * Creates a plain object from a CreateTunnelResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.CreateTunnelResponse - * @static - * @param {protos.CreateTunnelResponse} message CreateTunnelResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateTunnelResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.tunnelId = ""; - object.status = null; - } - if (message.tunnelId != null && message.hasOwnProperty("tunnelId")) - object.tunnelId = message.tunnelId; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this CreateTunnelResponse to JSON. - * @function toJSON - * @memberof protos.CreateTunnelResponse - * @instance - * @returns {Object.} JSON object - */ - CreateTunnelResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateTunnelResponse; - })(); - - protos.UpdateTunnelRequest = (function() { - - /** - * Properties of an UpdateTunnelRequest. - * @memberof protos - * @interface IUpdateTunnelRequest - * @property {protos.common.IAuth|null} [auth] UpdateTunnelRequest auth - * @property {string|null} [tunnelId] UpdateTunnelRequest tunnelId - * @property {protos.opts.ITunnelOptions|null} [opts] UpdateTunnelRequest opts - */ - - /** - * Constructs a new UpdateTunnelRequest. - * @memberof protos - * @classdesc Represents an UpdateTunnelRequest. - * @implements IUpdateTunnelRequest - * @constructor - * @param {protos.IUpdateTunnelRequest=} [properties] Properties to set - */ - function UpdateTunnelRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UpdateTunnelRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.UpdateTunnelRequest - * @instance - */ - UpdateTunnelRequest.prototype.auth = null; - - /** - * UpdateTunnelRequest tunnelId. - * @member {string} tunnelId - * @memberof protos.UpdateTunnelRequest - * @instance - */ - UpdateTunnelRequest.prototype.tunnelId = ""; - - /** - * UpdateTunnelRequest opts. - * @member {protos.opts.ITunnelOptions|null|undefined} opts - * @memberof protos.UpdateTunnelRequest - * @instance - */ - UpdateTunnelRequest.prototype.opts = null; - - /** - * Creates a new UpdateTunnelRequest instance using the specified properties. - * @function create - * @memberof protos.UpdateTunnelRequest - * @static - * @param {protos.IUpdateTunnelRequest=} [properties] Properties to set - * @returns {protos.UpdateTunnelRequest} UpdateTunnelRequest instance - */ - UpdateTunnelRequest.create = function create(properties) { - return new UpdateTunnelRequest(properties); - }; - - /** - * Encodes the specified UpdateTunnelRequest message. Does not implicitly {@link protos.UpdateTunnelRequest.verify|verify} messages. - * @function encode - * @memberof protos.UpdateTunnelRequest - * @static - * @param {protos.IUpdateTunnelRequest} message UpdateTunnelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateTunnelRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tunnelId != null && Object.hasOwnProperty.call(message, "tunnelId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tunnelId); - if (message.opts != null && Object.hasOwnProperty.call(message, "opts")) - $root.protos.opts.TunnelOptions.encode(message.opts, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UpdateTunnelRequest message, length delimited. Does not implicitly {@link protos.UpdateTunnelRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.UpdateTunnelRequest - * @static - * @param {protos.IUpdateTunnelRequest} message UpdateTunnelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateTunnelRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateTunnelRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.UpdateTunnelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.UpdateTunnelRequest} UpdateTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateTunnelRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.UpdateTunnelRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.tunnelId = reader.string(); - break; - case 2: - message.opts = $root.protos.opts.TunnelOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateTunnelRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.UpdateTunnelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.UpdateTunnelRequest} UpdateTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateTunnelRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateTunnelRequest message. - * @function verify - * @memberof protos.UpdateTunnelRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateTunnelRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.tunnelId != null && message.hasOwnProperty("tunnelId")) - if (!$util.isString(message.tunnelId)) - return "tunnelId: string expected"; - if (message.opts != null && message.hasOwnProperty("opts")) { - var error = $root.protos.opts.TunnelOptions.verify(message.opts); - if (error) - return "opts." + error; - } - return null; - }; - - /** - * Creates an UpdateTunnelRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.UpdateTunnelRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.UpdateTunnelRequest} UpdateTunnelRequest - */ - UpdateTunnelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.UpdateTunnelRequest) - return object; - var message = new $root.protos.UpdateTunnelRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.UpdateTunnelRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.tunnelId != null) - message.tunnelId = String(object.tunnelId); - if (object.opts != null) { - if (typeof object.opts !== "object") - throw TypeError(".protos.UpdateTunnelRequest.opts: object expected"); - message.opts = $root.protos.opts.TunnelOptions.fromObject(object.opts); - } - return message; - }; - - /** - * Creates a plain object from an UpdateTunnelRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.UpdateTunnelRequest - * @static - * @param {protos.UpdateTunnelRequest} message UpdateTunnelRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateTunnelRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.tunnelId = ""; - object.opts = null; - object.auth = null; - } - if (message.tunnelId != null && message.hasOwnProperty("tunnelId")) - object.tunnelId = message.tunnelId; - if (message.opts != null && message.hasOwnProperty("opts")) - object.opts = $root.protos.opts.TunnelOptions.toObject(message.opts, options); - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this UpdateTunnelRequest to JSON. - * @function toJSON - * @memberof protos.UpdateTunnelRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateTunnelRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UpdateTunnelRequest; - })(); - - protos.UpdateTunnelResponse = (function() { - - /** - * Properties of an UpdateTunnelResponse. - * @memberof protos - * @interface IUpdateTunnelResponse - * @property {protos.common.IStatus|null} [status] UpdateTunnelResponse status - */ - - /** - * Constructs a new UpdateTunnelResponse. - * @memberof protos - * @classdesc Represents an UpdateTunnelResponse. - * @implements IUpdateTunnelResponse - * @constructor - * @param {protos.IUpdateTunnelResponse=} [properties] Properties to set - */ - function UpdateTunnelResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UpdateTunnelResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.UpdateTunnelResponse - * @instance - */ - UpdateTunnelResponse.prototype.status = null; - - /** - * Creates a new UpdateTunnelResponse instance using the specified properties. - * @function create - * @memberof protos.UpdateTunnelResponse - * @static - * @param {protos.IUpdateTunnelResponse=} [properties] Properties to set - * @returns {protos.UpdateTunnelResponse} UpdateTunnelResponse instance - */ - UpdateTunnelResponse.create = function create(properties) { - return new UpdateTunnelResponse(properties); - }; - - /** - * Encodes the specified UpdateTunnelResponse message. Does not implicitly {@link protos.UpdateTunnelResponse.verify|verify} messages. - * @function encode - * @memberof protos.UpdateTunnelResponse - * @static - * @param {protos.IUpdateTunnelResponse} message UpdateTunnelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateTunnelResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UpdateTunnelResponse message, length delimited. Does not implicitly {@link protos.UpdateTunnelResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.UpdateTunnelResponse - * @static - * @param {protos.IUpdateTunnelResponse} message UpdateTunnelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateTunnelResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateTunnelResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.UpdateTunnelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.UpdateTunnelResponse} UpdateTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateTunnelResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.UpdateTunnelResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateTunnelResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.UpdateTunnelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.UpdateTunnelResponse} UpdateTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateTunnelResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateTunnelResponse message. - * @function verify - * @memberof protos.UpdateTunnelResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateTunnelResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; - - /** - * Creates an UpdateTunnelResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.UpdateTunnelResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.UpdateTunnelResponse} UpdateTunnelResponse - */ - UpdateTunnelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.UpdateTunnelResponse) - return object; - var message = new $root.protos.UpdateTunnelResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.UpdateTunnelResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - return message; - }; - - /** - * Creates a plain object from an UpdateTunnelResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.UpdateTunnelResponse - * @static - * @param {protos.UpdateTunnelResponse} message UpdateTunnelResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateTunnelResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this UpdateTunnelResponse to JSON. - * @function toJSON - * @memberof protos.UpdateTunnelResponse - * @instance - * @returns {Object.} JSON object - */ - UpdateTunnelResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return UpdateTunnelResponse; - })(); - - protos.ResumeTunnelRequest = (function() { - - /** - * Properties of a ResumeTunnelRequest. - * @memberof protos - * @interface IResumeTunnelRequest - * @property {protos.common.IAuth|null} [auth] ResumeTunnelRequest auth - * @property {string|null} [tunnelId] ResumeTunnelRequest tunnelId - */ - - /** - * Constructs a new ResumeTunnelRequest. - * @memberof protos - * @classdesc Represents a ResumeTunnelRequest. - * @implements IResumeTunnelRequest - * @constructor - * @param {protos.IResumeTunnelRequest=} [properties] Properties to set - */ - function ResumeTunnelRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResumeTunnelRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.ResumeTunnelRequest - * @instance - */ - ResumeTunnelRequest.prototype.auth = null; - - /** - * ResumeTunnelRequest tunnelId. - * @member {string} tunnelId - * @memberof protos.ResumeTunnelRequest - * @instance - */ - ResumeTunnelRequest.prototype.tunnelId = ""; - - /** - * Creates a new ResumeTunnelRequest instance using the specified properties. - * @function create - * @memberof protos.ResumeTunnelRequest - * @static - * @param {protos.IResumeTunnelRequest=} [properties] Properties to set - * @returns {protos.ResumeTunnelRequest} ResumeTunnelRequest instance - */ - ResumeTunnelRequest.create = function create(properties) { - return new ResumeTunnelRequest(properties); - }; - - /** - * Encodes the specified ResumeTunnelRequest message. Does not implicitly {@link protos.ResumeTunnelRequest.verify|verify} messages. - * @function encode - * @memberof protos.ResumeTunnelRequest - * @static - * @param {protos.IResumeTunnelRequest} message ResumeTunnelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeTunnelRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tunnelId != null && Object.hasOwnProperty.call(message, "tunnelId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tunnelId); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ResumeTunnelRequest message, length delimited. Does not implicitly {@link protos.ResumeTunnelRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.ResumeTunnelRequest - * @static - * @param {protos.IResumeTunnelRequest} message ResumeTunnelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeTunnelRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ResumeTunnelRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.ResumeTunnelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.ResumeTunnelRequest} ResumeTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeTunnelRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.ResumeTunnelRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.tunnelId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ResumeTunnelRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.ResumeTunnelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.ResumeTunnelRequest} ResumeTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeTunnelRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ResumeTunnelRequest message. - * @function verify - * @memberof protos.ResumeTunnelRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResumeTunnelRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.tunnelId != null && message.hasOwnProperty("tunnelId")) - if (!$util.isString(message.tunnelId)) - return "tunnelId: string expected"; - return null; - }; - - /** - * Creates a ResumeTunnelRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.ResumeTunnelRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.ResumeTunnelRequest} ResumeTunnelRequest - */ - ResumeTunnelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.ResumeTunnelRequest) - return object; - var message = new $root.protos.ResumeTunnelRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.ResumeTunnelRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.tunnelId != null) - message.tunnelId = String(object.tunnelId); - return message; - }; - - /** - * Creates a plain object from a ResumeTunnelRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.ResumeTunnelRequest - * @static - * @param {protos.ResumeTunnelRequest} message ResumeTunnelRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResumeTunnelRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.tunnelId = ""; - object.auth = null; - } - if (message.tunnelId != null && message.hasOwnProperty("tunnelId")) - object.tunnelId = message.tunnelId; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this ResumeTunnelRequest to JSON. - * @function toJSON - * @memberof protos.ResumeTunnelRequest - * @instance - * @returns {Object.} JSON object - */ - ResumeTunnelRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ResumeTunnelRequest; - })(); - - protos.ResumeTunnelResponse = (function() { - - /** - * Properties of a ResumeTunnelResponse. - * @memberof protos - * @interface IResumeTunnelResponse - * @property {protos.common.IStatus|null} [status] ResumeTunnelResponse status - */ - - /** - * Constructs a new ResumeTunnelResponse. - * @memberof protos - * @classdesc Represents a ResumeTunnelResponse. - * @implements IResumeTunnelResponse - * @constructor - * @param {protos.IResumeTunnelResponse=} [properties] Properties to set - */ - function ResumeTunnelResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResumeTunnelResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.ResumeTunnelResponse - * @instance - */ - ResumeTunnelResponse.prototype.status = null; - - /** - * Creates a new ResumeTunnelResponse instance using the specified properties. - * @function create - * @memberof protos.ResumeTunnelResponse - * @static - * @param {protos.IResumeTunnelResponse=} [properties] Properties to set - * @returns {protos.ResumeTunnelResponse} ResumeTunnelResponse instance - */ - ResumeTunnelResponse.create = function create(properties) { - return new ResumeTunnelResponse(properties); - }; - - /** - * Encodes the specified ResumeTunnelResponse message. Does not implicitly {@link protos.ResumeTunnelResponse.verify|verify} messages. - * @function encode - * @memberof protos.ResumeTunnelResponse - * @static - * @param {protos.IResumeTunnelResponse} message ResumeTunnelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeTunnelResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; + if (message.connectionId != null && message.hasOwnProperty("connectionId")) + object.connectionId = message.connectionId; + if (message.record != null && message.hasOwnProperty("record")) + object.record = $root.protos.records.WriteRecord.toObject(message.record, options); + if (message.encodeOptions != null && message.hasOwnProperty("encodeOptions")) + object.encodeOptions = $root.protos.encoding.EncodeOptions.toObject(message.encodeOptions, options); + if (message.kafka != null && message.hasOwnProperty("kafka")) + object.kafka = $root.protos.opts.WriteGroupKafkaOptions.toObject(message.kafka, options); + if (message.activemq != null && message.hasOwnProperty("activemq")) + object.activemq = $root.protos.opts.WriteGroupActiveMQOptions.toObject(message.activemq, options); + if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) + object.awsSqs = $root.protos.opts.WriteGroupAWSSQSOptions.toObject(message.awsSqs, options); + if (message.awsSns != null && message.hasOwnProperty("awsSns")) + object.awsSns = $root.protos.opts.WriteGroupAWSSNSOptions.toObject(message.awsSns, options); + if (message.nats != null && message.hasOwnProperty("nats")) + object.nats = $root.protos.opts.WriteGroupNatsOptions.toObject(message.nats, options); + if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) + object.natsStreaming = $root.protos.opts.WriteGroupNatsStreamingOptions.toObject(message.natsStreaming, options); + if (message.nsq != null && message.hasOwnProperty("nsq")) + object.nsq = $root.protos.opts.WriteGroupNSQOptions.toObject(message.nsq, options); + if (message.pulsar != null && message.hasOwnProperty("pulsar")) + object.pulsar = $root.protos.opts.WriteGroupPulsarOptions.toObject(message.pulsar, options); + if (message.rabbit != null && message.hasOwnProperty("rabbit")) + object.rabbit = $root.protos.opts.WriteGroupRabbitOptions.toObject(message.rabbit, options); + if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) + object.rabbitStreams = $root.protos.opts.WriteGroupRabbitStreamsOptions.toObject(message.rabbitStreams, options); + if (message.mqtt != null && message.hasOwnProperty("mqtt")) + object.mqtt = $root.protos.opts.WriteGroupMQTTOptions.toObject(message.mqtt, options); + if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) + object.azureServiceBus = $root.protos.opts.WriteGroupAzureServiceBusOptions.toObject(message.azureServiceBus, options); + if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) + object.azureEventHub = $root.protos.opts.WriteGroupAzureEventHubOptions.toObject(message.azureEventHub, options); + if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) + object.gcpPubsub = $root.protos.opts.WriteGroupGCPPubSubOptions.toObject(message.gcpPubsub, options); + if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) + object.kubemqQueue = $root.protos.opts.WriteGroupKubeMQQueueOptions.toObject(message.kubemqQueue, options); + if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) + object.redisPubsub = $root.protos.opts.WriteGroupRedisPubSubOptions.toObject(message.redisPubsub, options); + if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) + object.redisStreams = $root.protos.opts.WriteGroupRedisStreamsOptions.toObject(message.redisStreams, options); + if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) + object.natsJetstream = $root.protos.opts.WriteGroupNatsJetstreamOptions.toObject(message.natsJetstream, options); + if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) + object.awsKinesis = $root.protos.opts.WriteGroupAWSKinesisOptions.toObject(message.awsKinesis, options); + if (message.memphis != null && message.hasOwnProperty("memphis")) + object.memphis = $root.protos.opts.WriteGroupMemphisOptions.toObject(message.memphis, options); + if (message._cliOptions != null && message.hasOwnProperty("_cliOptions")) + object._cliOptions = $root.protos.opts.WriteCLIOptions.toObject(message._cliOptions, options); + return object; + }; - /** - * Encodes the specified ResumeTunnelResponse message, length delimited. Does not implicitly {@link protos.ResumeTunnelResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.ResumeTunnelResponse - * @static - * @param {protos.IResumeTunnelResponse} message ResumeTunnelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeTunnelResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Converts this WriteOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteOptions + * @instance + * @returns {Object.} JSON object + */ + WriteOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a ResumeTunnelResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.ResumeTunnelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.ResumeTunnelResponse} ResumeTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeTunnelResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.ResumeTunnelResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return WriteOptions; + })(); - /** - * Decodes a ResumeTunnelResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.ResumeTunnelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.ResumeTunnelResponse} ResumeTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeTunnelResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + opts.WriteGroupKafkaOptions = (function() { - /** - * Verifies a ResumeTunnelResponse message. - * @function verify - * @memberof protos.ResumeTunnelResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResumeTunnelResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; + /** + * Properties of a WriteGroupKafkaOptions. + * @memberof protos.opts + * @interface IWriteGroupKafkaOptions + * @property {protos.args.IKafkaConn|null} [_conn] WriteGroupKafkaOptions _conn + * @property {protos.args.IKafkaWriteArgs|null} [args] WriteGroupKafkaOptions args + */ - /** - * Creates a ResumeTunnelResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.ResumeTunnelResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.ResumeTunnelResponse} ResumeTunnelResponse - */ - ResumeTunnelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.ResumeTunnelResponse) - return object; - var message = new $root.protos.ResumeTunnelResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.ResumeTunnelResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); + /** + * Constructs a new WriteGroupKafkaOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupKafkaOptions. + * @implements IWriteGroupKafkaOptions + * @constructor + * @param {protos.opts.IWriteGroupKafkaOptions=} [properties] Properties to set + */ + function WriteGroupKafkaOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return message; - }; - - /** - * Creates a plain object from a ResumeTunnelResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.ResumeTunnelResponse - * @static - * @param {protos.ResumeTunnelResponse} message ResumeTunnelResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResumeTunnelResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; - /** - * Converts this ResumeTunnelResponse to JSON. - * @function toJSON - * @memberof protos.ResumeTunnelResponse - * @instance - * @returns {Object.} JSON object - */ - ResumeTunnelResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ResumeTunnelResponse; - })(); - - protos.StopTunnelRequest = (function() { - - /** - * Properties of a StopTunnelRequest. - * @memberof protos - * @interface IStopTunnelRequest - * @property {protos.common.IAuth|null} [auth] StopTunnelRequest auth - * @property {string|null} [tunnelId] StopTunnelRequest tunnelId - */ + /** + * WriteGroupKafkaOptions _conn. + * @member {protos.args.IKafkaConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupKafkaOptions + * @instance + */ + WriteGroupKafkaOptions.prototype._conn = null; - /** - * Constructs a new StopTunnelRequest. - * @memberof protos - * @classdesc Represents a StopTunnelRequest. - * @implements IStopTunnelRequest - * @constructor - * @param {protos.IStopTunnelRequest=} [properties] Properties to set - */ - function StopTunnelRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * WriteGroupKafkaOptions args. + * @member {protos.args.IKafkaWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupKafkaOptions + * @instance + */ + WriteGroupKafkaOptions.prototype.args = null; - /** - * StopTunnelRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.StopTunnelRequest - * @instance - */ - StopTunnelRequest.prototype.auth = null; + /** + * Creates a new WriteGroupKafkaOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupKafkaOptions + * @static + * @param {protos.opts.IWriteGroupKafkaOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupKafkaOptions} WriteGroupKafkaOptions instance + */ + WriteGroupKafkaOptions.create = function create(properties) { + return new WriteGroupKafkaOptions(properties); + }; - /** - * StopTunnelRequest tunnelId. - * @member {string} tunnelId - * @memberof protos.StopTunnelRequest - * @instance - */ - StopTunnelRequest.prototype.tunnelId = ""; + /** + * Encodes the specified WriteGroupKafkaOptions message. Does not implicitly {@link protos.opts.WriteGroupKafkaOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupKafkaOptions + * @static + * @param {protos.opts.IWriteGroupKafkaOptions} message WriteGroupKafkaOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupKafkaOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.KafkaConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.KafkaWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Creates a new StopTunnelRequest instance using the specified properties. - * @function create - * @memberof protos.StopTunnelRequest - * @static - * @param {protos.IStopTunnelRequest=} [properties] Properties to set - * @returns {protos.StopTunnelRequest} StopTunnelRequest instance - */ - StopTunnelRequest.create = function create(properties) { - return new StopTunnelRequest(properties); - }; + /** + * Encodes the specified WriteGroupKafkaOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupKafkaOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupKafkaOptions + * @static + * @param {protos.opts.IWriteGroupKafkaOptions} message WriteGroupKafkaOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupKafkaOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified StopTunnelRequest message. Does not implicitly {@link protos.StopTunnelRequest.verify|verify} messages. - * @function encode - * @memberof protos.StopTunnelRequest - * @static - * @param {protos.IStopTunnelRequest} message StopTunnelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StopTunnelRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tunnelId != null && Object.hasOwnProperty.call(message, "tunnelId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tunnelId); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; + /** + * Decodes a WriteGroupKafkaOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupKafkaOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupKafkaOptions} WriteGroupKafkaOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupKafkaOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupKafkaOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.KafkaConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.KafkaWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified StopTunnelRequest message, length delimited. Does not implicitly {@link protos.StopTunnelRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.StopTunnelRequest - * @static - * @param {protos.IStopTunnelRequest} message StopTunnelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StopTunnelRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a WriteGroupKafkaOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupKafkaOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupKafkaOptions} WriteGroupKafkaOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupKafkaOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a StopTunnelRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.StopTunnelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.StopTunnelRequest} StopTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StopTunnelRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.StopTunnelRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.tunnelId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Verifies a WriteGroupKafkaOptions message. + * @function verify + * @memberof protos.opts.WriteGroupKafkaOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupKafkaOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.KafkaConn.verify(message._conn); + if (error) + return "_conn." + error; } - } - return message; - }; - - /** - * Decodes a StopTunnelRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.StopTunnelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.StopTunnelRequest} StopTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StopTunnelRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.KafkaWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; - /** - * Verifies a StopTunnelRequest message. - * @function verify - * @memberof protos.StopTunnelRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StopTunnelRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.tunnelId != null && message.hasOwnProperty("tunnelId")) - if (!$util.isString(message.tunnelId)) - return "tunnelId: string expected"; - return null; - }; + /** + * Creates a WriteGroupKafkaOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupKafkaOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupKafkaOptions} WriteGroupKafkaOptions + */ + WriteGroupKafkaOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupKafkaOptions) + return object; + var message = new $root.protos.opts.WriteGroupKafkaOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupKafkaOptions._conn: object expected"); + message._conn = $root.protos.args.KafkaConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupKafkaOptions.args: object expected"); + message.args = $root.protos.args.KafkaWriteArgs.fromObject(object.args); + } + return message; + }; - /** - * Creates a StopTunnelRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.StopTunnelRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.StopTunnelRequest} StopTunnelRequest - */ - StopTunnelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.StopTunnelRequest) + /** + * Creates a plain object from a WriteGroupKafkaOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupKafkaOptions + * @static + * @param {protos.opts.WriteGroupKafkaOptions} message WriteGroupKafkaOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupKafkaOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.KafkaConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.KafkaWriteArgs.toObject(message.args, options); return object; - var message = new $root.protos.StopTunnelRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.StopTunnelRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.tunnelId != null) - message.tunnelId = String(object.tunnelId); - return message; - }; + }; - /** - * Creates a plain object from a StopTunnelRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.StopTunnelRequest - * @static - * @param {protos.StopTunnelRequest} message StopTunnelRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StopTunnelRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.tunnelId = ""; - object.auth = null; - } - if (message.tunnelId != null && message.hasOwnProperty("tunnelId")) - object.tunnelId = message.tunnelId; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; + /** + * Converts this WriteGroupKafkaOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupKafkaOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupKafkaOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this StopTunnelRequest to JSON. - * @function toJSON - * @memberof protos.StopTunnelRequest - * @instance - * @returns {Object.} JSON object - */ - StopTunnelRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return WriteGroupKafkaOptions; + })(); - return StopTunnelRequest; - })(); + opts.WriteGroupActiveMQOptions = (function() { - protos.StopTunnelResponse = (function() { + /** + * Properties of a WriteGroupActiveMQOptions. + * @memberof protos.opts + * @interface IWriteGroupActiveMQOptions + * @property {protos.args.IActiveMQConn|null} [_conn] WriteGroupActiveMQOptions _conn + * @property {protos.args.IActiveMQWriteArgs|null} [args] WriteGroupActiveMQOptions args + */ - /** - * Properties of a StopTunnelResponse. - * @memberof protos - * @interface IStopTunnelResponse - * @property {protos.common.IStatus|null} [status] StopTunnelResponse status - */ + /** + * Constructs a new WriteGroupActiveMQOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupActiveMQOptions. + * @implements IWriteGroupActiveMQOptions + * @constructor + * @param {protos.opts.IWriteGroupActiveMQOptions=} [properties] Properties to set + */ + function WriteGroupActiveMQOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new StopTunnelResponse. - * @memberof protos - * @classdesc Represents a StopTunnelResponse. - * @implements IStopTunnelResponse - * @constructor - * @param {protos.IStopTunnelResponse=} [properties] Properties to set - */ - function StopTunnelResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * WriteGroupActiveMQOptions _conn. + * @member {protos.args.IActiveMQConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupActiveMQOptions + * @instance + */ + WriteGroupActiveMQOptions.prototype._conn = null; - /** - * StopTunnelResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.StopTunnelResponse - * @instance - */ - StopTunnelResponse.prototype.status = null; + /** + * WriteGroupActiveMQOptions args. + * @member {protos.args.IActiveMQWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupActiveMQOptions + * @instance + */ + WriteGroupActiveMQOptions.prototype.args = null; - /** - * Creates a new StopTunnelResponse instance using the specified properties. - * @function create - * @memberof protos.StopTunnelResponse - * @static - * @param {protos.IStopTunnelResponse=} [properties] Properties to set - * @returns {protos.StopTunnelResponse} StopTunnelResponse instance - */ - StopTunnelResponse.create = function create(properties) { - return new StopTunnelResponse(properties); - }; + /** + * Creates a new WriteGroupActiveMQOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupActiveMQOptions + * @static + * @param {protos.opts.IWriteGroupActiveMQOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupActiveMQOptions} WriteGroupActiveMQOptions instance + */ + WriteGroupActiveMQOptions.create = function create(properties) { + return new WriteGroupActiveMQOptions(properties); + }; - /** - * Encodes the specified StopTunnelResponse message. Does not implicitly {@link protos.StopTunnelResponse.verify|verify} messages. - * @function encode - * @memberof protos.StopTunnelResponse - * @static - * @param {protos.IStopTunnelResponse} message StopTunnelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StopTunnelResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified WriteGroupActiveMQOptions message. Does not implicitly {@link protos.opts.WriteGroupActiveMQOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupActiveMQOptions + * @static + * @param {protos.opts.IWriteGroupActiveMQOptions} message WriteGroupActiveMQOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupActiveMQOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.ActiveMQConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.ActiveMQWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified StopTunnelResponse message, length delimited. Does not implicitly {@link protos.StopTunnelResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.StopTunnelResponse - * @static - * @param {protos.IStopTunnelResponse} message StopTunnelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StopTunnelResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified WriteGroupActiveMQOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupActiveMQOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupActiveMQOptions + * @static + * @param {protos.opts.IWriteGroupActiveMQOptions} message WriteGroupActiveMQOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupActiveMQOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a StopTunnelResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.StopTunnelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.StopTunnelResponse} StopTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StopTunnelResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.StopTunnelResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a WriteGroupActiveMQOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupActiveMQOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupActiveMQOptions} WriteGroupActiveMQOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupActiveMQOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupActiveMQOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.ActiveMQConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.ActiveMQWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a StopTunnelResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.StopTunnelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.StopTunnelResponse} StopTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StopTunnelResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a WriteGroupActiveMQOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupActiveMQOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupActiveMQOptions} WriteGroupActiveMQOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupActiveMQOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a StopTunnelResponse message. - * @function verify - * @memberof protos.StopTunnelResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StopTunnelResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; + /** + * Verifies a WriteGroupActiveMQOptions message. + * @function verify + * @memberof protos.opts.WriteGroupActiveMQOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupActiveMQOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.ActiveMQConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.ActiveMQWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; - /** - * Creates a StopTunnelResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.StopTunnelResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.StopTunnelResponse} StopTunnelResponse - */ - StopTunnelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.StopTunnelResponse) + /** + * Creates a WriteGroupActiveMQOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupActiveMQOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupActiveMQOptions} WriteGroupActiveMQOptions + */ + WriteGroupActiveMQOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupActiveMQOptions) + return object; + var message = new $root.protos.opts.WriteGroupActiveMQOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupActiveMQOptions._conn: object expected"); + message._conn = $root.protos.args.ActiveMQConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupActiveMQOptions.args: object expected"); + message.args = $root.protos.args.ActiveMQWriteArgs.fromObject(object.args); + } + return message; + }; + + /** + * Creates a plain object from a WriteGroupActiveMQOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupActiveMQOptions + * @static + * @param {protos.opts.WriteGroupActiveMQOptions} message WriteGroupActiveMQOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupActiveMQOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.ActiveMQConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.ActiveMQWriteArgs.toObject(message.args, options); return object; - var message = new $root.protos.StopTunnelResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.StopTunnelResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - return message; - }; + }; + + /** + * Converts this WriteGroupActiveMQOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupActiveMQOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupActiveMQOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from a StopTunnelResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.StopTunnelResponse - * @static - * @param {protos.StopTunnelResponse} message StopTunnelResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StopTunnelResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; + return WriteGroupActiveMQOptions; + })(); - /** - * Converts this StopTunnelResponse to JSON. - * @function toJSON - * @memberof protos.StopTunnelResponse - * @instance - * @returns {Object.} JSON object - */ - StopTunnelResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + opts.WriteGroupAWSSQSOptions = (function() { - return StopTunnelResponse; - })(); + /** + * Properties of a WriteGroupAWSSQSOptions. + * @memberof protos.opts + * @interface IWriteGroupAWSSQSOptions + * @property {protos.args.IAWSSQSConn|null} [_conn] WriteGroupAWSSQSOptions _conn + * @property {protos.args.IAWSSQSWriteArgs|null} [args] WriteGroupAWSSQSOptions args + */ - protos.DeleteTunnelRequest = (function() { + /** + * Constructs a new WriteGroupAWSSQSOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupAWSSQSOptions. + * @implements IWriteGroupAWSSQSOptions + * @constructor + * @param {protos.opts.IWriteGroupAWSSQSOptions=} [properties] Properties to set + */ + function WriteGroupAWSSQSOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a DeleteTunnelRequest. - * @memberof protos - * @interface IDeleteTunnelRequest - * @property {protos.common.IAuth|null} [auth] DeleteTunnelRequest auth - * @property {string|null} [tunnelId] DeleteTunnelRequest tunnelId - */ + /** + * WriteGroupAWSSQSOptions _conn. + * @member {protos.args.IAWSSQSConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupAWSSQSOptions + * @instance + */ + WriteGroupAWSSQSOptions.prototype._conn = null; - /** - * Constructs a new DeleteTunnelRequest. - * @memberof protos - * @classdesc Represents a DeleteTunnelRequest. - * @implements IDeleteTunnelRequest - * @constructor - * @param {protos.IDeleteTunnelRequest=} [properties] Properties to set - */ - function DeleteTunnelRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * WriteGroupAWSSQSOptions args. + * @member {protos.args.IAWSSQSWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupAWSSQSOptions + * @instance + */ + WriteGroupAWSSQSOptions.prototype.args = null; - /** - * DeleteTunnelRequest auth. - * @member {protos.common.IAuth|null|undefined} auth - * @memberof protos.DeleteTunnelRequest - * @instance - */ - DeleteTunnelRequest.prototype.auth = null; + /** + * Creates a new WriteGroupAWSSQSOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupAWSSQSOptions + * @static + * @param {protos.opts.IWriteGroupAWSSQSOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupAWSSQSOptions} WriteGroupAWSSQSOptions instance + */ + WriteGroupAWSSQSOptions.create = function create(properties) { + return new WriteGroupAWSSQSOptions(properties); + }; - /** - * DeleteTunnelRequest tunnelId. - * @member {string} tunnelId - * @memberof protos.DeleteTunnelRequest - * @instance - */ - DeleteTunnelRequest.prototype.tunnelId = ""; + /** + * Encodes the specified WriteGroupAWSSQSOptions message. Does not implicitly {@link protos.opts.WriteGroupAWSSQSOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupAWSSQSOptions + * @static + * @param {protos.opts.IWriteGroupAWSSQSOptions} message WriteGroupAWSSQSOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupAWSSQSOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.AWSSQSConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.AWSSQSWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Creates a new DeleteTunnelRequest instance using the specified properties. - * @function create - * @memberof protos.DeleteTunnelRequest - * @static - * @param {protos.IDeleteTunnelRequest=} [properties] Properties to set - * @returns {protos.DeleteTunnelRequest} DeleteTunnelRequest instance - */ - DeleteTunnelRequest.create = function create(properties) { - return new DeleteTunnelRequest(properties); - }; + /** + * Encodes the specified WriteGroupAWSSQSOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAWSSQSOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupAWSSQSOptions + * @static + * @param {protos.opts.IWriteGroupAWSSQSOptions} message WriteGroupAWSSQSOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupAWSSQSOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified DeleteTunnelRequest message. Does not implicitly {@link protos.DeleteTunnelRequest.verify|verify} messages. - * @function encode - * @memberof protos.DeleteTunnelRequest - * @static - * @param {protos.IDeleteTunnelRequest} message DeleteTunnelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTunnelRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tunnelId != null && Object.hasOwnProperty.call(message, "tunnelId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tunnelId); - if (message.auth != null && Object.hasOwnProperty.call(message, "auth")) - $root.protos.common.Auth.encode(message.auth, writer.uint32(/* id 9999, wireType 2 =*/79994).fork()).ldelim(); - return writer; - }; + /** + * Decodes a WriteGroupAWSSQSOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupAWSSQSOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupAWSSQSOptions} WriteGroupAWSSQSOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupAWSSQSOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupAWSSQSOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.AWSSQSConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.AWSSQSWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified DeleteTunnelRequest message, length delimited. Does not implicitly {@link protos.DeleteTunnelRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.DeleteTunnelRequest - * @static - * @param {protos.IDeleteTunnelRequest} message DeleteTunnelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTunnelRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a WriteGroupAWSSQSOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupAWSSQSOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupAWSSQSOptions} WriteGroupAWSSQSOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupAWSSQSOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a DeleteTunnelRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.DeleteTunnelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.DeleteTunnelRequest} DeleteTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTunnelRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.DeleteTunnelRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 9999: - message.auth = $root.protos.common.Auth.decode(reader, reader.uint32()); - break; - case 1: - message.tunnelId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Verifies a WriteGroupAWSSQSOptions message. + * @function verify + * @memberof protos.opts.WriteGroupAWSSQSOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupAWSSQSOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.AWSSQSConn.verify(message._conn); + if (error) + return "_conn." + error; } - } - return message; - }; - - /** - * Decodes a DeleteTunnelRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.DeleteTunnelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.DeleteTunnelRequest} DeleteTunnelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTunnelRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.AWSSQSWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; - /** - * Verifies a DeleteTunnelRequest message. - * @function verify - * @memberof protos.DeleteTunnelRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteTunnelRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.protos.common.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.tunnelId != null && message.hasOwnProperty("tunnelId")) - if (!$util.isString(message.tunnelId)) - return "tunnelId: string expected"; - return null; - }; + /** + * Creates a WriteGroupAWSSQSOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupAWSSQSOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupAWSSQSOptions} WriteGroupAWSSQSOptions + */ + WriteGroupAWSSQSOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupAWSSQSOptions) + return object; + var message = new $root.protos.opts.WriteGroupAWSSQSOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupAWSSQSOptions._conn: object expected"); + message._conn = $root.protos.args.AWSSQSConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupAWSSQSOptions.args: object expected"); + message.args = $root.protos.args.AWSSQSWriteArgs.fromObject(object.args); + } + return message; + }; - /** - * Creates a DeleteTunnelRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.DeleteTunnelRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.DeleteTunnelRequest} DeleteTunnelRequest - */ - DeleteTunnelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.DeleteTunnelRequest) + /** + * Creates a plain object from a WriteGroupAWSSQSOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupAWSSQSOptions + * @static + * @param {protos.opts.WriteGroupAWSSQSOptions} message WriteGroupAWSSQSOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupAWSSQSOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.AWSSQSConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.AWSSQSWriteArgs.toObject(message.args, options); return object; - var message = new $root.protos.DeleteTunnelRequest(); - if (object.auth != null) { - if (typeof object.auth !== "object") - throw TypeError(".protos.DeleteTunnelRequest.auth: object expected"); - message.auth = $root.protos.common.Auth.fromObject(object.auth); - } - if (object.tunnelId != null) - message.tunnelId = String(object.tunnelId); - return message; - }; - - /** - * Creates a plain object from a DeleteTunnelRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.DeleteTunnelRequest - * @static - * @param {protos.DeleteTunnelRequest} message DeleteTunnelRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteTunnelRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.tunnelId = ""; - object.auth = null; - } - if (message.tunnelId != null && message.hasOwnProperty("tunnelId")) - object.tunnelId = message.tunnelId; - if (message.auth != null && message.hasOwnProperty("auth")) - object.auth = $root.protos.common.Auth.toObject(message.auth, options); - return object; - }; - - /** - * Converts this DeleteTunnelRequest to JSON. - * @function toJSON - * @memberof protos.DeleteTunnelRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteTunnelRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteTunnelRequest; - })(); - - protos.DeleteTunnelResponse = (function() { - - /** - * Properties of a DeleteTunnelResponse. - * @memberof protos - * @interface IDeleteTunnelResponse - * @property {protos.common.IStatus|null} [status] DeleteTunnelResponse status - */ - - /** - * Constructs a new DeleteTunnelResponse. - * @memberof protos - * @classdesc Represents a DeleteTunnelResponse. - * @implements IDeleteTunnelResponse - * @constructor - * @param {protos.IDeleteTunnelResponse=} [properties] Properties to set - */ - function DeleteTunnelResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + }; - /** - * DeleteTunnelResponse status. - * @member {protos.common.IStatus|null|undefined} status - * @memberof protos.DeleteTunnelResponse - * @instance - */ - DeleteTunnelResponse.prototype.status = null; + /** + * Converts this WriteGroupAWSSQSOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupAWSSQSOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupAWSSQSOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a new DeleteTunnelResponse instance using the specified properties. - * @function create - * @memberof protos.DeleteTunnelResponse - * @static - * @param {protos.IDeleteTunnelResponse=} [properties] Properties to set - * @returns {protos.DeleteTunnelResponse} DeleteTunnelResponse instance - */ - DeleteTunnelResponse.create = function create(properties) { - return new DeleteTunnelResponse(properties); - }; + return WriteGroupAWSSQSOptions; + })(); - /** - * Encodes the specified DeleteTunnelResponse message. Does not implicitly {@link protos.DeleteTunnelResponse.verify|verify} messages. - * @function encode - * @memberof protos.DeleteTunnelResponse - * @static - * @param {protos.IDeleteTunnelResponse} message DeleteTunnelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTunnelResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.protos.common.Status.encode(message.status, writer.uint32(/* id 1000, wireType 2 =*/8002).fork()).ldelim(); - return writer; - }; + opts.WriteGroupAWSSNSOptions = (function() { - /** - * Encodes the specified DeleteTunnelResponse message, length delimited. Does not implicitly {@link protos.DeleteTunnelResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.DeleteTunnelResponse - * @static - * @param {protos.IDeleteTunnelResponse} message DeleteTunnelResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTunnelResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of a WriteGroupAWSSNSOptions. + * @memberof protos.opts + * @interface IWriteGroupAWSSNSOptions + * @property {protos.args.IAWSSNSConn|null} [_conn] WriteGroupAWSSNSOptions _conn + * @property {protos.args.IAWSSNSWriteArgs|null} [args] WriteGroupAWSSNSOptions args + */ - /** - * Decodes a DeleteTunnelResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.DeleteTunnelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.DeleteTunnelResponse} DeleteTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTunnelResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.DeleteTunnelResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1000: - message.status = $root.protos.common.Status.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Constructs a new WriteGroupAWSSNSOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupAWSSNSOptions. + * @implements IWriteGroupAWSSNSOptions + * @constructor + * @param {protos.opts.IWriteGroupAWSSNSOptions=} [properties] Properties to set + */ + function WriteGroupAWSSNSOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return message; - }; - /** - * Decodes a DeleteTunnelResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.DeleteTunnelResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.DeleteTunnelResponse} DeleteTunnelResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTunnelResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * WriteGroupAWSSNSOptions _conn. + * @member {protos.args.IAWSSNSConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupAWSSNSOptions + * @instance + */ + WriteGroupAWSSNSOptions.prototype._conn = null; - /** - * Verifies a DeleteTunnelResponse message. - * @function verify - * @memberof protos.DeleteTunnelResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteTunnelResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.protos.common.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; + /** + * WriteGroupAWSSNSOptions args. + * @member {protos.args.IAWSSNSWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupAWSSNSOptions + * @instance + */ + WriteGroupAWSSNSOptions.prototype.args = null; - /** - * Creates a DeleteTunnelResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.DeleteTunnelResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.DeleteTunnelResponse} DeleteTunnelResponse - */ - DeleteTunnelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.DeleteTunnelResponse) - return object; - var message = new $root.protos.DeleteTunnelResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".protos.DeleteTunnelResponse.status: object expected"); - message.status = $root.protos.common.Status.fromObject(object.status); - } - return message; - }; + /** + * Creates a new WriteGroupAWSSNSOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupAWSSNSOptions + * @static + * @param {protos.opts.IWriteGroupAWSSNSOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupAWSSNSOptions} WriteGroupAWSSNSOptions instance + */ + WriteGroupAWSSNSOptions.create = function create(properties) { + return new WriteGroupAWSSNSOptions(properties); + }; - /** - * Creates a plain object from a DeleteTunnelResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.DeleteTunnelResponse - * @static - * @param {protos.DeleteTunnelResponse} message DeleteTunnelResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteTunnelResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.protos.common.Status.toObject(message.status, options); - return object; - }; + /** + * Encodes the specified WriteGroupAWSSNSOptions message. Does not implicitly {@link protos.opts.WriteGroupAWSSNSOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupAWSSNSOptions + * @static + * @param {protos.opts.IWriteGroupAWSSNSOptions} message WriteGroupAWSSNSOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupAWSSNSOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.AWSSNSConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.AWSSNSWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Converts this DeleteTunnelResponse to JSON. - * @function toJSON - * @memberof protos.DeleteTunnelResponse - * @instance - * @returns {Object.} JSON object - */ - DeleteTunnelResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified WriteGroupAWSSNSOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAWSSNSOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupAWSSNSOptions + * @static + * @param {protos.opts.IWriteGroupAWSSNSOptions} message WriteGroupAWSSNSOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupAWSSNSOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return DeleteTunnelResponse; - })(); + /** + * Decodes a WriteGroupAWSSNSOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupAWSSNSOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupAWSSNSOptions} WriteGroupAWSSNSOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupAWSSNSOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupAWSSNSOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.AWSSNSConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.AWSSNSWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - protos.ForemanClient = (function() { + /** + * Decodes a WriteGroupAWSSNSOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupAWSSNSOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupAWSSNSOptions} WriteGroupAWSSNSOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupAWSSNSOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new ForemanClient service. - * @memberof protos - * @classdesc Represents a ForemanClient - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function ForemanClient(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Verifies a WriteGroupAWSSNSOptions message. + * @function verify + * @memberof protos.opts.WriteGroupAWSSNSOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupAWSSNSOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.AWSSNSConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.AWSSNSWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; - (ForemanClient.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ForemanClient; + /** + * Creates a WriteGroupAWSSNSOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupAWSSNSOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupAWSSNSOptions} WriteGroupAWSSNSOptions + */ + WriteGroupAWSSNSOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupAWSSNSOptions) + return object; + var message = new $root.protos.opts.WriteGroupAWSSNSOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupAWSSNSOptions._conn: object expected"); + message._conn = $root.protos.args.AWSSNSConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupAWSSNSOptions.args: object expected"); + message.args = $root.protos.args.AWSSNSWriteArgs.fromObject(object.args); + } + return message; + }; - /** - * Creates new ForemanClient service using the specified rpc implementation. - * @function create - * @memberof protos.ForemanClient - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {ForemanClient} RPC service. Useful where requests and/or responses are streamed. - */ - ForemanClient.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + /** + * Creates a plain object from a WriteGroupAWSSNSOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupAWSSNSOptions + * @static + * @param {protos.opts.WriteGroupAWSSNSOptions} message WriteGroupAWSSNSOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupAWSSNSOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.AWSSNSConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.AWSSNSWriteArgs.toObject(message.args, options); + return object; + }; - /** - * Callback as used by {@link protos.ForemanClient#register}. - * @memberof protos.ForemanClient - * @typedef RegisterCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.ForemanRegisterResponse} [response] ForemanRegisterResponse - */ + /** + * Converts this WriteGroupAWSSNSOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupAWSSNSOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupAWSSNSOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls Register. - * @function register - * @memberof protos.ForemanClient - * @instance - * @param {protos.IForemanRegisterRequest} request ForemanRegisterRequest message or plain object - * @param {protos.ForemanClient.RegisterCallback} callback Node-style callback called with the error, if any, and ForemanRegisterResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanClient.prototype.register = function register(request, callback) { - return this.rpcCall(register, $root.protos.ForemanRegisterRequest, $root.protos.ForemanRegisterResponse, request, callback); - }, "name", { value: "Register" }); + return WriteGroupAWSSNSOptions; + })(); - /** - * Calls Register. - * @function register - * @memberof protos.ForemanClient - * @instance - * @param {protos.IForemanRegisterRequest} request ForemanRegisterRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + opts.WriteGroupNatsOptions = (function() { - return ForemanClient; - })(); + /** + * Properties of a WriteGroupNatsOptions. + * @memberof protos.opts + * @interface IWriteGroupNatsOptions + * @property {protos.args.INatsConn|null} [_conn] WriteGroupNatsOptions _conn + * @property {protos.args.INatsWriteArgs|null} [args] WriteGroupNatsOptions args + */ - protos.ForemanRegisterRequest = (function() { + /** + * Constructs a new WriteGroupNatsOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupNatsOptions. + * @implements IWriteGroupNatsOptions + * @constructor + * @param {protos.opts.IWriteGroupNatsOptions=} [properties] Properties to set + */ + function WriteGroupNatsOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a ForemanRegisterRequest. - * @memberof protos - * @interface IForemanRegisterRequest - * @property {string|null} [apiToken] ForemanRegisterRequest apiToken - * @property {string|null} [clusterId] ForemanRegisterRequest clusterId - * @property {string|null} [plumberToken] ForemanRegisterRequest plumberToken - * @property {string|null} [nodeId] ForemanRegisterRequest nodeId - */ + /** + * WriteGroupNatsOptions _conn. + * @member {protos.args.INatsConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupNatsOptions + * @instance + */ + WriteGroupNatsOptions.prototype._conn = null; - /** - * Constructs a new ForemanRegisterRequest. - * @memberof protos - * @classdesc Represents a ForemanRegisterRequest. - * @implements IForemanRegisterRequest - * @constructor - * @param {protos.IForemanRegisterRequest=} [properties] Properties to set - */ - function ForemanRegisterRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * WriteGroupNatsOptions args. + * @member {protos.args.INatsWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupNatsOptions + * @instance + */ + WriteGroupNatsOptions.prototype.args = null; - /** - * ForemanRegisterRequest apiToken. - * @member {string} apiToken - * @memberof protos.ForemanRegisterRequest - * @instance - */ - ForemanRegisterRequest.prototype.apiToken = ""; + /** + * Creates a new WriteGroupNatsOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupNatsOptions + * @static + * @param {protos.opts.IWriteGroupNatsOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupNatsOptions} WriteGroupNatsOptions instance + */ + WriteGroupNatsOptions.create = function create(properties) { + return new WriteGroupNatsOptions(properties); + }; - /** - * ForemanRegisterRequest clusterId. - * @member {string} clusterId - * @memberof protos.ForemanRegisterRequest - * @instance - */ - ForemanRegisterRequest.prototype.clusterId = ""; + /** + * Encodes the specified WriteGroupNatsOptions message. Does not implicitly {@link protos.opts.WriteGroupNatsOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupNatsOptions + * @static + * @param {protos.opts.IWriteGroupNatsOptions} message WriteGroupNatsOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupNatsOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.NatsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.NatsWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * ForemanRegisterRequest plumberToken. - * @member {string} plumberToken - * @memberof protos.ForemanRegisterRequest - * @instance - */ - ForemanRegisterRequest.prototype.plumberToken = ""; + /** + * Encodes the specified WriteGroupNatsOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNatsOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupNatsOptions + * @static + * @param {protos.opts.IWriteGroupNatsOptions} message WriteGroupNatsOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupNatsOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * ForemanRegisterRequest nodeId. - * @member {string} nodeId - * @memberof protos.ForemanRegisterRequest - * @instance - */ - ForemanRegisterRequest.prototype.nodeId = ""; + /** + * Decodes a WriteGroupNatsOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupNatsOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupNatsOptions} WriteGroupNatsOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupNatsOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupNatsOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.NatsConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.NatsWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new ForemanRegisterRequest instance using the specified properties. - * @function create - * @memberof protos.ForemanRegisterRequest - * @static - * @param {protos.IForemanRegisterRequest=} [properties] Properties to set - * @returns {protos.ForemanRegisterRequest} ForemanRegisterRequest instance - */ - ForemanRegisterRequest.create = function create(properties) { - return new ForemanRegisterRequest(properties); - }; + /** + * Decodes a WriteGroupNatsOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupNatsOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupNatsOptions} WriteGroupNatsOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupNatsOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified ForemanRegisterRequest message. Does not implicitly {@link protos.ForemanRegisterRequest.verify|verify} messages. - * @function encode - * @memberof protos.ForemanRegisterRequest - * @static - * @param {protos.IForemanRegisterRequest} message ForemanRegisterRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ForemanRegisterRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.apiToken != null && Object.hasOwnProperty.call(message, "apiToken")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.apiToken); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clusterId); - if (message.plumberToken != null && Object.hasOwnProperty.call(message, "plumberToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.plumberToken); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodeId); - return writer; - }; + /** + * Verifies a WriteGroupNatsOptions message. + * @function verify + * @memberof protos.opts.WriteGroupNatsOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupNatsOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.NatsConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.NatsWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; - /** - * Encodes the specified ForemanRegisterRequest message, length delimited. Does not implicitly {@link protos.ForemanRegisterRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.ForemanRegisterRequest - * @static - * @param {protos.IForemanRegisterRequest} message ForemanRegisterRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ForemanRegisterRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a WriteGroupNatsOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupNatsOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupNatsOptions} WriteGroupNatsOptions + */ + WriteGroupNatsOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupNatsOptions) + return object; + var message = new $root.protos.opts.WriteGroupNatsOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupNatsOptions._conn: object expected"); + message._conn = $root.protos.args.NatsConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupNatsOptions.args: object expected"); + message.args = $root.protos.args.NatsWriteArgs.fromObject(object.args); + } + return message; + }; - /** - * Decodes a ForemanRegisterRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.ForemanRegisterRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.ForemanRegisterRequest} ForemanRegisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ForemanRegisterRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.ForemanRegisterRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.apiToken = reader.string(); - break; - case 2: - message.clusterId = reader.string(); - break; - case 3: - message.plumberToken = reader.string(); - break; - case 4: - message.nodeId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a plain object from a WriteGroupNatsOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupNatsOptions + * @static + * @param {protos.opts.WriteGroupNatsOptions} message WriteGroupNatsOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupNatsOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; } - } - return message; - }; + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.NatsConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.NatsWriteArgs.toObject(message.args, options); + return object; + }; - /** - * Decodes a ForemanRegisterRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.ForemanRegisterRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.ForemanRegisterRequest} ForemanRegisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ForemanRegisterRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this WriteGroupNatsOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupNatsOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupNatsOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a ForemanRegisterRequest message. - * @function verify - * @memberof protos.ForemanRegisterRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ForemanRegisterRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.apiToken != null && message.hasOwnProperty("apiToken")) - if (!$util.isString(message.apiToken)) - return "apiToken: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - if (message.plumberToken != null && message.hasOwnProperty("plumberToken")) - if (!$util.isString(message.plumberToken)) - return "plumberToken: string expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isString(message.nodeId)) - return "nodeId: string expected"; - return null; - }; + return WriteGroupNatsOptions; + })(); - /** - * Creates a ForemanRegisterRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.ForemanRegisterRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.ForemanRegisterRequest} ForemanRegisterRequest - */ - ForemanRegisterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.ForemanRegisterRequest) - return object; - var message = new $root.protos.ForemanRegisterRequest(); - if (object.apiToken != null) - message.apiToken = String(object.apiToken); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - if (object.plumberToken != null) - message.plumberToken = String(object.plumberToken); - if (object.nodeId != null) - message.nodeId = String(object.nodeId); - return message; - }; + opts.WriteGroupNatsJetstreamOptions = (function() { - /** - * Creates a plain object from a ForemanRegisterRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.ForemanRegisterRequest - * @static - * @param {protos.ForemanRegisterRequest} message ForemanRegisterRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ForemanRegisterRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.apiToken = ""; - object.clusterId = ""; - object.plumberToken = ""; - object.nodeId = ""; - } - if (message.apiToken != null && message.hasOwnProperty("apiToken")) - object.apiToken = message.apiToken; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - if (message.plumberToken != null && message.hasOwnProperty("plumberToken")) - object.plumberToken = message.plumberToken; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - object.nodeId = message.nodeId; - return object; - }; + /** + * Properties of a WriteGroupNatsJetstreamOptions. + * @memberof protos.opts + * @interface IWriteGroupNatsJetstreamOptions + * @property {protos.args.INatsJetstreamConn|null} [_conn] WriteGroupNatsJetstreamOptions _conn + * @property {protos.args.INatsJetstreamWriteArgs|null} [args] WriteGroupNatsJetstreamOptions args + */ - /** - * Converts this ForemanRegisterRequest to JSON. - * @function toJSON - * @memberof protos.ForemanRegisterRequest - * @instance - * @returns {Object.} JSON object - */ - ForemanRegisterRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new WriteGroupNatsJetstreamOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupNatsJetstreamOptions. + * @implements IWriteGroupNatsJetstreamOptions + * @constructor + * @param {protos.opts.IWriteGroupNatsJetstreamOptions=} [properties] Properties to set + */ + function WriteGroupNatsJetstreamOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return ForemanRegisterRequest; - })(); + /** + * WriteGroupNatsJetstreamOptions _conn. + * @member {protos.args.INatsJetstreamConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @instance + */ + WriteGroupNatsJetstreamOptions.prototype._conn = null; - protos.ForemanRegisterResponse = (function() { + /** + * WriteGroupNatsJetstreamOptions args. + * @member {protos.args.INatsJetstreamWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @instance + */ + WriteGroupNatsJetstreamOptions.prototype.args = null; - /** - * Properties of a ForemanRegisterResponse. - * @memberof protos - * @interface IForemanRegisterResponse - * @property {boolean|null} [success] ForemanRegisterResponse success - * @property {string|null} [message] ForemanRegisterResponse message - */ + /** + * Creates a new WriteGroupNatsJetstreamOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @static + * @param {protos.opts.IWriteGroupNatsJetstreamOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupNatsJetstreamOptions} WriteGroupNatsJetstreamOptions instance + */ + WriteGroupNatsJetstreamOptions.create = function create(properties) { + return new WriteGroupNatsJetstreamOptions(properties); + }; - /** - * Constructs a new ForemanRegisterResponse. - * @memberof protos - * @classdesc Represents a ForemanRegisterResponse. - * @implements IForemanRegisterResponse - * @constructor - * @param {protos.IForemanRegisterResponse=} [properties] Properties to set - */ - function ForemanRegisterResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified WriteGroupNatsJetstreamOptions message. Does not implicitly {@link protos.opts.WriteGroupNatsJetstreamOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @static + * @param {protos.opts.IWriteGroupNatsJetstreamOptions} message WriteGroupNatsJetstreamOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupNatsJetstreamOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.NatsJetstreamConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.NatsJetstreamWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * ForemanRegisterResponse success. - * @member {boolean} success - * @memberof protos.ForemanRegisterResponse - * @instance - */ - ForemanRegisterResponse.prototype.success = false; + /** + * Encodes the specified WriteGroupNatsJetstreamOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNatsJetstreamOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @static + * @param {protos.opts.IWriteGroupNatsJetstreamOptions} message WriteGroupNatsJetstreamOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupNatsJetstreamOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * ForemanRegisterResponse message. - * @member {string} message - * @memberof protos.ForemanRegisterResponse - * @instance - */ - ForemanRegisterResponse.prototype.message = ""; + /** + * Decodes a WriteGroupNatsJetstreamOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupNatsJetstreamOptions} WriteGroupNatsJetstreamOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupNatsJetstreamOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupNatsJetstreamOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.NatsJetstreamConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.NatsJetstreamWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new ForemanRegisterResponse instance using the specified properties. - * @function create - * @memberof protos.ForemanRegisterResponse - * @static - * @param {protos.IForemanRegisterResponse=} [properties] Properties to set - * @returns {protos.ForemanRegisterResponse} ForemanRegisterResponse instance - */ - ForemanRegisterResponse.create = function create(properties) { - return new ForemanRegisterResponse(properties); - }; + /** + * Decodes a WriteGroupNatsJetstreamOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupNatsJetstreamOptions} WriteGroupNatsJetstreamOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupNatsJetstreamOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified ForemanRegisterResponse message. Does not implicitly {@link protos.ForemanRegisterResponse.verify|verify} messages. - * @function encode - * @memberof protos.ForemanRegisterResponse - * @static - * @param {protos.IForemanRegisterResponse} message ForemanRegisterResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ForemanRegisterResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - return writer; - }; + /** + * Verifies a WriteGroupNatsJetstreamOptions message. + * @function verify + * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupNatsJetstreamOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.NatsJetstreamConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.NatsJetstreamWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; - /** - * Encodes the specified ForemanRegisterResponse message, length delimited. Does not implicitly {@link protos.ForemanRegisterResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.ForemanRegisterResponse - * @static - * @param {protos.IForemanRegisterResponse} message ForemanRegisterResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ForemanRegisterResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a WriteGroupNatsJetstreamOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupNatsJetstreamOptions} WriteGroupNatsJetstreamOptions + */ + WriteGroupNatsJetstreamOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupNatsJetstreamOptions) + return object; + var message = new $root.protos.opts.WriteGroupNatsJetstreamOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupNatsJetstreamOptions._conn: object expected"); + message._conn = $root.protos.args.NatsJetstreamConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupNatsJetstreamOptions.args: object expected"); + message.args = $root.protos.args.NatsJetstreamWriteArgs.fromObject(object.args); + } + return message; + }; - /** - * Decodes a ForemanRegisterResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.ForemanRegisterResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.ForemanRegisterResponse} ForemanRegisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ForemanRegisterResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.ForemanRegisterResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.success = reader.bool(); - break; - case 2: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a plain object from a WriteGroupNatsJetstreamOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @static + * @param {protos.opts.WriteGroupNatsJetstreamOptions} message WriteGroupNatsJetstreamOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupNatsJetstreamOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; } - } - return message; - }; + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.NatsJetstreamConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.NatsJetstreamWriteArgs.toObject(message.args, options); + return object; + }; - /** - * Decodes a ForemanRegisterResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.ForemanRegisterResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.ForemanRegisterResponse} ForemanRegisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ForemanRegisterResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this WriteGroupNatsJetstreamOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupNatsJetstreamOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupNatsJetstreamOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a ForemanRegisterResponse message. - * @function verify - * @memberof protos.ForemanRegisterResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ForemanRegisterResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; + return WriteGroupNatsJetstreamOptions; + })(); - /** - * Creates a ForemanRegisterResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.ForemanRegisterResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.ForemanRegisterResponse} ForemanRegisterResponse - */ - ForemanRegisterResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.ForemanRegisterResponse) - return object; - var message = new $root.protos.ForemanRegisterResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.message != null) - message.message = String(object.message); - return message; - }; + opts.WriteGroupNatsStreamingOptions = (function() { - /** - * Creates a plain object from a ForemanRegisterResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.ForemanRegisterResponse - * @static - * @param {protos.ForemanRegisterResponse} message ForemanRegisterResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ForemanRegisterResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.success = false; - object.message = ""; + /** + * Properties of a WriteGroupNatsStreamingOptions. + * @memberof protos.opts + * @interface IWriteGroupNatsStreamingOptions + * @property {protos.args.INatsStreamingConn|null} [_conn] WriteGroupNatsStreamingOptions _conn + * @property {protos.args.INatsStreamingWriteArgs|null} [args] WriteGroupNatsStreamingOptions args + */ + + /** + * Constructs a new WriteGroupNatsStreamingOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupNatsStreamingOptions. + * @implements IWriteGroupNatsStreamingOptions + * @constructor + * @param {protos.opts.IWriteGroupNatsStreamingOptions=} [properties] Properties to set + */ + function WriteGroupNatsStreamingOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - return object; - }; - /** - * Converts this ForemanRegisterResponse to JSON. - * @function toJSON - * @memberof protos.ForemanRegisterResponse - * @instance - * @returns {Object.} JSON object - */ - ForemanRegisterResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * WriteGroupNatsStreamingOptions _conn. + * @member {protos.args.INatsStreamingConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupNatsStreamingOptions + * @instance + */ + WriteGroupNatsStreamingOptions.prototype._conn = null; + + /** + * WriteGroupNatsStreamingOptions args. + * @member {protos.args.INatsStreamingWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupNatsStreamingOptions + * @instance + */ + WriteGroupNatsStreamingOptions.prototype.args = null; - return ForemanRegisterResponse; - })(); + /** + * Creates a new WriteGroupNatsStreamingOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupNatsStreamingOptions + * @static + * @param {protos.opts.IWriteGroupNatsStreamingOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupNatsStreamingOptions} WriteGroupNatsStreamingOptions instance + */ + WriteGroupNatsStreamingOptions.create = function create(properties) { + return new WriteGroupNatsStreamingOptions(properties); + }; - protos.ForemanServer = (function() { + /** + * Encodes the specified WriteGroupNatsStreamingOptions message. Does not implicitly {@link protos.opts.WriteGroupNatsStreamingOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupNatsStreamingOptions + * @static + * @param {protos.opts.IWriteGroupNatsStreamingOptions} message WriteGroupNatsStreamingOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupNatsStreamingOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.NatsStreamingConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.NatsStreamingWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Constructs a new ForemanServer service. - * @memberof protos - * @classdesc Represents a ForemanServer - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function ForemanServer(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Encodes the specified WriteGroupNatsStreamingOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNatsStreamingOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupNatsStreamingOptions + * @static + * @param {protos.opts.IWriteGroupNatsStreamingOptions} message WriteGroupNatsStreamingOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupNatsStreamingOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - (ForemanServer.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ForemanServer; + /** + * Decodes a WriteGroupNatsStreamingOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupNatsStreamingOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupNatsStreamingOptions} WriteGroupNatsStreamingOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupNatsStreamingOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupNatsStreamingOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.NatsStreamingConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.NatsStreamingWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates new ForemanServer service using the specified rpc implementation. - * @function create - * @memberof protos.ForemanServer - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {ForemanServer} RPC service. Useful where requests and/or responses are streamed. - */ - ForemanServer.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + /** + * Decodes a WriteGroupNatsStreamingOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupNatsStreamingOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupNatsStreamingOptions} WriteGroupNatsStreamingOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupNatsStreamingOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link protos.ForemanServer#listPlumbers}. - * @memberof protos.ForemanServer - * @typedef ListPlumbersCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.ListPlumbersResponse} [response] ListPlumbersResponse - */ + /** + * Verifies a WriteGroupNatsStreamingOptions message. + * @function verify + * @memberof protos.opts.WriteGroupNatsStreamingOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupNatsStreamingOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.NatsStreamingConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.NatsStreamingWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; - /** - * Calls ListPlumbers. - * @function listPlumbers - * @memberof protos.ForemanServer - * @instance - * @param {protos.IListPlumbersRequest} request ListPlumbersRequest message or plain object - * @param {protos.ForemanServer.ListPlumbersCallback} callback Node-style callback called with the error, if any, and ListPlumbersResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.listPlumbers = function listPlumbers(request, callback) { - return this.rpcCall(listPlumbers, $root.protos.ListPlumbersRequest, $root.protos.ListPlumbersResponse, request, callback); - }, "name", { value: "ListPlumbers" }); + /** + * Creates a WriteGroupNatsStreamingOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupNatsStreamingOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupNatsStreamingOptions} WriteGroupNatsStreamingOptions + */ + WriteGroupNatsStreamingOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupNatsStreamingOptions) + return object; + var message = new $root.protos.opts.WriteGroupNatsStreamingOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupNatsStreamingOptions._conn: object expected"); + message._conn = $root.protos.args.NatsStreamingConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupNatsStreamingOptions.args: object expected"); + message.args = $root.protos.args.NatsStreamingWriteArgs.fromObject(object.args); + } + return message; + }; - /** - * Calls ListPlumbers. - * @function listPlumbers - * @memberof protos.ForemanServer - * @instance - * @param {protos.IListPlumbersRequest} request ListPlumbersRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from a WriteGroupNatsStreamingOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupNatsStreamingOptions + * @static + * @param {protos.opts.WriteGroupNatsStreamingOptions} message WriteGroupNatsStreamingOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupNatsStreamingOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.NatsStreamingConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.NatsStreamingWriteArgs.toObject(message.args, options); + return object; + }; - /** - * Callback as used by {@link protos.ForemanServer#getAllConnections}. - * @memberof protos.ForemanServer - * @typedef GetAllConnectionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetAllConnectionsResponse} [response] GetAllConnectionsResponse - */ + /** + * Converts this WriteGroupNatsStreamingOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupNatsStreamingOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupNatsStreamingOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls GetAllConnections. - * @function getAllConnections - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetAllConnectionsRequest} request GetAllConnectionsRequest message or plain object - * @param {protos.ForemanServer.GetAllConnectionsCallback} callback Node-style callback called with the error, if any, and GetAllConnectionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.getAllConnections = function getAllConnections(request, callback) { - return this.rpcCall(getAllConnections, $root.protos.GetAllConnectionsRequest, $root.protos.GetAllConnectionsResponse, request, callback); - }, "name", { value: "GetAllConnections" }); + return WriteGroupNatsStreamingOptions; + })(); - /** - * Calls GetAllConnections. - * @function getAllConnections - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetAllConnectionsRequest} request GetAllConnectionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + opts.WriteGroupNSQOptions = (function() { - /** - * Callback as used by {@link protos.ForemanServer#getConnection}. - * @memberof protos.ForemanServer - * @typedef GetConnectionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetConnectionResponse} [response] GetConnectionResponse - */ + /** + * Properties of a WriteGroupNSQOptions. + * @memberof protos.opts + * @interface IWriteGroupNSQOptions + * @property {protos.args.INSQConn|null} [_conn] WriteGroupNSQOptions _conn + * @property {protos.args.INSQWriteArgs|null} [args] WriteGroupNSQOptions args + */ - /** - * Calls GetConnection. - * @function getConnection - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetConnectionRequest} request GetConnectionRequest message or plain object - * @param {protos.ForemanServer.GetConnectionCallback} callback Node-style callback called with the error, if any, and GetConnectionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.getConnection = function getConnection(request, callback) { - return this.rpcCall(getConnection, $root.protos.GetConnectionRequest, $root.protos.GetConnectionResponse, request, callback); - }, "name", { value: "GetConnection" }); + /** + * Constructs a new WriteGroupNSQOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupNSQOptions. + * @implements IWriteGroupNSQOptions + * @constructor + * @param {protos.opts.IWriteGroupNSQOptions=} [properties] Properties to set + */ + function WriteGroupNSQOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls GetConnection. - * @function getConnection - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetConnectionRequest} request GetConnectionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * WriteGroupNSQOptions _conn. + * @member {protos.args.INSQConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupNSQOptions + * @instance + */ + WriteGroupNSQOptions.prototype._conn = null; - /** - * Callback as used by {@link protos.ForemanServer#createConnection}. - * @memberof protos.ForemanServer - * @typedef CreateConnectionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.CreateConnectionResponse} [response] CreateConnectionResponse - */ + /** + * WriteGroupNSQOptions args. + * @member {protos.args.INSQWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupNSQOptions + * @instance + */ + WriteGroupNSQOptions.prototype.args = null; - /** - * Calls CreateConnection. - * @function createConnection - * @memberof protos.ForemanServer - * @instance - * @param {protos.ICreateConnectionRequest} request CreateConnectionRequest message or plain object - * @param {protos.ForemanServer.CreateConnectionCallback} callback Node-style callback called with the error, if any, and CreateConnectionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.createConnection = function createConnection(request, callback) { - return this.rpcCall(createConnection, $root.protos.CreateConnectionRequest, $root.protos.CreateConnectionResponse, request, callback); - }, "name", { value: "CreateConnection" }); + /** + * Creates a new WriteGroupNSQOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupNSQOptions + * @static + * @param {protos.opts.IWriteGroupNSQOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupNSQOptions} WriteGroupNSQOptions instance + */ + WriteGroupNSQOptions.create = function create(properties) { + return new WriteGroupNSQOptions(properties); + }; - /** - * Calls CreateConnection. - * @function createConnection - * @memberof protos.ForemanServer - * @instance - * @param {protos.ICreateConnectionRequest} request CreateConnectionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified WriteGroupNSQOptions message. Does not implicitly {@link protos.opts.WriteGroupNSQOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupNSQOptions + * @static + * @param {protos.opts.IWriteGroupNSQOptions} message WriteGroupNSQOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupNSQOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.NSQConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.NSQWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Callback as used by {@link protos.ForemanServer#testConnection}. - * @memberof protos.ForemanServer - * @typedef TestConnectionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.TestConnectionResponse} [response] TestConnectionResponse - */ + /** + * Encodes the specified WriteGroupNSQOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupNSQOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupNSQOptions + * @static + * @param {protos.opts.IWriteGroupNSQOptions} message WriteGroupNSQOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupNSQOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls TestConnection. - * @function testConnection - * @memberof protos.ForemanServer - * @instance - * @param {protos.ITestConnectionRequest} request TestConnectionRequest message or plain object - * @param {protos.ForemanServer.TestConnectionCallback} callback Node-style callback called with the error, if any, and TestConnectionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.testConnection = function testConnection(request, callback) { - return this.rpcCall(testConnection, $root.protos.TestConnectionRequest, $root.protos.TestConnectionResponse, request, callback); - }, "name", { value: "TestConnection" }); + /** + * Decodes a WriteGroupNSQOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupNSQOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupNSQOptions} WriteGroupNSQOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupNSQOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupNSQOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.NSQConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.NSQWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls TestConnection. - * @function testConnection - * @memberof protos.ForemanServer - * @instance - * @param {protos.ITestConnectionRequest} request TestConnectionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a WriteGroupNSQOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupNSQOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupNSQOptions} WriteGroupNSQOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupNSQOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link protos.ForemanServer#updateConnection}. - * @memberof protos.ForemanServer - * @typedef UpdateConnectionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.UpdateConnectionResponse} [response] UpdateConnectionResponse - */ + /** + * Verifies a WriteGroupNSQOptions message. + * @function verify + * @memberof protos.opts.WriteGroupNSQOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupNSQOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.NSQConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.NSQWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; - /** - * Calls UpdateConnection. - * @function updateConnection - * @memberof protos.ForemanServer - * @instance - * @param {protos.IUpdateConnectionRequest} request UpdateConnectionRequest message or plain object - * @param {protos.ForemanServer.UpdateConnectionCallback} callback Node-style callback called with the error, if any, and UpdateConnectionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.updateConnection = function updateConnection(request, callback) { - return this.rpcCall(updateConnection, $root.protos.UpdateConnectionRequest, $root.protos.UpdateConnectionResponse, request, callback); - }, "name", { value: "UpdateConnection" }); + /** + * Creates a WriteGroupNSQOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupNSQOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupNSQOptions} WriteGroupNSQOptions + */ + WriteGroupNSQOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupNSQOptions) + return object; + var message = new $root.protos.opts.WriteGroupNSQOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupNSQOptions._conn: object expected"); + message._conn = $root.protos.args.NSQConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupNSQOptions.args: object expected"); + message.args = $root.protos.args.NSQWriteArgs.fromObject(object.args); + } + return message; + }; - /** - * Calls UpdateConnection. - * @function updateConnection - * @memberof protos.ForemanServer - * @instance - * @param {protos.IUpdateConnectionRequest} request UpdateConnectionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from a WriteGroupNSQOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupNSQOptions + * @static + * @param {protos.opts.WriteGroupNSQOptions} message WriteGroupNSQOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupNSQOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.NSQConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.NSQWriteArgs.toObject(message.args, options); + return object; + }; - /** - * Callback as used by {@link protos.ForemanServer#deleteConnection}. - * @memberof protos.ForemanServer - * @typedef DeleteConnectionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.DeleteConnectionResponse} [response] DeleteConnectionResponse - */ + /** + * Converts this WriteGroupNSQOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupNSQOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupNSQOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls DeleteConnection. - * @function deleteConnection - * @memberof protos.ForemanServer - * @instance - * @param {protos.IDeleteConnectionRequest} request DeleteConnectionRequest message or plain object - * @param {protos.ForemanServer.DeleteConnectionCallback} callback Node-style callback called with the error, if any, and DeleteConnectionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.deleteConnection = function deleteConnection(request, callback) { - return this.rpcCall(deleteConnection, $root.protos.DeleteConnectionRequest, $root.protos.DeleteConnectionResponse, request, callback); - }, "name", { value: "DeleteConnection" }); + return WriteGroupNSQOptions; + })(); - /** - * Calls DeleteConnection. - * @function deleteConnection - * @memberof protos.ForemanServer - * @instance - * @param {protos.IDeleteConnectionRequest} request DeleteConnectionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + opts.WriteGroupPulsarOptions = (function() { - /** - * Callback as used by {@link protos.ForemanServer#getAllRelays}. - * @memberof protos.ForemanServer - * @typedef GetAllRelaysCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetAllRelaysResponse} [response] GetAllRelaysResponse - */ + /** + * Properties of a WriteGroupPulsarOptions. + * @memberof protos.opts + * @interface IWriteGroupPulsarOptions + * @property {protos.args.IPulsarConn|null} [_conn] WriteGroupPulsarOptions _conn + * @property {protos.args.IPulsarWriteArgs|null} [args] WriteGroupPulsarOptions args + */ - /** - * Calls GetAllRelays. - * @function getAllRelays - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetAllRelaysRequest} request GetAllRelaysRequest message or plain object - * @param {protos.ForemanServer.GetAllRelaysCallback} callback Node-style callback called with the error, if any, and GetAllRelaysResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.getAllRelays = function getAllRelays(request, callback) { - return this.rpcCall(getAllRelays, $root.protos.GetAllRelaysRequest, $root.protos.GetAllRelaysResponse, request, callback); - }, "name", { value: "GetAllRelays" }); + /** + * Constructs a new WriteGroupPulsarOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupPulsarOptions. + * @implements IWriteGroupPulsarOptions + * @constructor + * @param {protos.opts.IWriteGroupPulsarOptions=} [properties] Properties to set + */ + function WriteGroupPulsarOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls GetAllRelays. - * @function getAllRelays - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetAllRelaysRequest} request GetAllRelaysRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * WriteGroupPulsarOptions _conn. + * @member {protos.args.IPulsarConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupPulsarOptions + * @instance + */ + WriteGroupPulsarOptions.prototype._conn = null; - /** - * Callback as used by {@link protos.ForemanServer#getRelay}. - * @memberof protos.ForemanServer - * @typedef GetRelayCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetRelayResponse} [response] GetRelayResponse - */ + /** + * WriteGroupPulsarOptions args. + * @member {protos.args.IPulsarWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupPulsarOptions + * @instance + */ + WriteGroupPulsarOptions.prototype.args = null; - /** - * Calls GetRelay. - * @function getRelay - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetRelayRequest} request GetRelayRequest message or plain object - * @param {protos.ForemanServer.GetRelayCallback} callback Node-style callback called with the error, if any, and GetRelayResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.getRelay = function getRelay(request, callback) { - return this.rpcCall(getRelay, $root.protos.GetRelayRequest, $root.protos.GetRelayResponse, request, callback); - }, "name", { value: "GetRelay" }); + /** + * Creates a new WriteGroupPulsarOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupPulsarOptions + * @static + * @param {protos.opts.IWriteGroupPulsarOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupPulsarOptions} WriteGroupPulsarOptions instance + */ + WriteGroupPulsarOptions.create = function create(properties) { + return new WriteGroupPulsarOptions(properties); + }; - /** - * Calls GetRelay. - * @function getRelay - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetRelayRequest} request GetRelayRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified WriteGroupPulsarOptions message. Does not implicitly {@link protos.opts.WriteGroupPulsarOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupPulsarOptions + * @static + * @param {protos.opts.IWriteGroupPulsarOptions} message WriteGroupPulsarOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupPulsarOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.PulsarConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.PulsarWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Callback as used by {@link protos.ForemanServer#createRelay}. - * @memberof protos.ForemanServer - * @typedef CreateRelayCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.CreateRelayResponse} [response] CreateRelayResponse - */ + /** + * Encodes the specified WriteGroupPulsarOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupPulsarOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupPulsarOptions + * @static + * @param {protos.opts.IWriteGroupPulsarOptions} message WriteGroupPulsarOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupPulsarOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls CreateRelay. - * @function createRelay - * @memberof protos.ForemanServer - * @instance - * @param {protos.ICreateRelayRequest} request CreateRelayRequest message or plain object - * @param {protos.ForemanServer.CreateRelayCallback} callback Node-style callback called with the error, if any, and CreateRelayResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.createRelay = function createRelay(request, callback) { - return this.rpcCall(createRelay, $root.protos.CreateRelayRequest, $root.protos.CreateRelayResponse, request, callback); - }, "name", { value: "CreateRelay" }); + /** + * Decodes a WriteGroupPulsarOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupPulsarOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupPulsarOptions} WriteGroupPulsarOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupPulsarOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupPulsarOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.PulsarConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.PulsarWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls CreateRelay. - * @function createRelay - * @memberof protos.ForemanServer - * @instance - * @param {protos.ICreateRelayRequest} request CreateRelayRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a WriteGroupPulsarOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupPulsarOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupPulsarOptions} WriteGroupPulsarOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupPulsarOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link protos.ForemanServer#updateRelay}. - * @memberof protos.ForemanServer - * @typedef UpdateRelayCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.UpdateRelayResponse} [response] UpdateRelayResponse - */ + /** + * Verifies a WriteGroupPulsarOptions message. + * @function verify + * @memberof protos.opts.WriteGroupPulsarOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupPulsarOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.PulsarConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.PulsarWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; - /** - * Calls UpdateRelay. - * @function updateRelay - * @memberof protos.ForemanServer - * @instance - * @param {protos.IUpdateRelayRequest} request UpdateRelayRequest message or plain object - * @param {protos.ForemanServer.UpdateRelayCallback} callback Node-style callback called with the error, if any, and UpdateRelayResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.updateRelay = function updateRelay(request, callback) { - return this.rpcCall(updateRelay, $root.protos.UpdateRelayRequest, $root.protos.UpdateRelayResponse, request, callback); - }, "name", { value: "UpdateRelay" }); + /** + * Creates a WriteGroupPulsarOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupPulsarOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupPulsarOptions} WriteGroupPulsarOptions + */ + WriteGroupPulsarOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupPulsarOptions) + return object; + var message = new $root.protos.opts.WriteGroupPulsarOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupPulsarOptions._conn: object expected"); + message._conn = $root.protos.args.PulsarConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupPulsarOptions.args: object expected"); + message.args = $root.protos.args.PulsarWriteArgs.fromObject(object.args); + } + return message; + }; - /** - * Calls UpdateRelay. - * @function updateRelay - * @memberof protos.ForemanServer - * @instance - * @param {protos.IUpdateRelayRequest} request UpdateRelayRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from a WriteGroupPulsarOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupPulsarOptions + * @static + * @param {protos.opts.WriteGroupPulsarOptions} message WriteGroupPulsarOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupPulsarOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.PulsarConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.PulsarWriteArgs.toObject(message.args, options); + return object; + }; - /** - * Callback as used by {@link protos.ForemanServer#resumeRelay}. - * @memberof protos.ForemanServer - * @typedef ResumeRelayCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.ResumeRelayResponse} [response] ResumeRelayResponse - */ + /** + * Converts this WriteGroupPulsarOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupPulsarOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupPulsarOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls ResumeRelay. - * @function resumeRelay - * @memberof protos.ForemanServer - * @instance - * @param {protos.IResumeRelayRequest} request ResumeRelayRequest message or plain object - * @param {protos.ForemanServer.ResumeRelayCallback} callback Node-style callback called with the error, if any, and ResumeRelayResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.resumeRelay = function resumeRelay(request, callback) { - return this.rpcCall(resumeRelay, $root.protos.ResumeRelayRequest, $root.protos.ResumeRelayResponse, request, callback); - }, "name", { value: "ResumeRelay" }); + return WriteGroupPulsarOptions; + })(); - /** - * Calls ResumeRelay. - * @function resumeRelay - * @memberof protos.ForemanServer - * @instance - * @param {protos.IResumeRelayRequest} request ResumeRelayRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + opts.WriteGroupRabbitOptions = (function() { - /** - * Callback as used by {@link protos.ForemanServer#stopRelay}. - * @memberof protos.ForemanServer - * @typedef StopRelayCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.StopRelayResponse} [response] StopRelayResponse - */ + /** + * Properties of a WriteGroupRabbitOptions. + * @memberof protos.opts + * @interface IWriteGroupRabbitOptions + * @property {protos.args.IRabbitConn|null} [_conn] WriteGroupRabbitOptions _conn + * @property {protos.args.IRabbitWriteArgs|null} [args] WriteGroupRabbitOptions args + */ - /** - * Calls StopRelay. - * @function stopRelay - * @memberof protos.ForemanServer - * @instance - * @param {protos.IStopRelayRequest} request StopRelayRequest message or plain object - * @param {protos.ForemanServer.StopRelayCallback} callback Node-style callback called with the error, if any, and StopRelayResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.stopRelay = function stopRelay(request, callback) { - return this.rpcCall(stopRelay, $root.protos.StopRelayRequest, $root.protos.StopRelayResponse, request, callback); - }, "name", { value: "StopRelay" }); + /** + * Constructs a new WriteGroupRabbitOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupRabbitOptions. + * @implements IWriteGroupRabbitOptions + * @constructor + * @param {protos.opts.IWriteGroupRabbitOptions=} [properties] Properties to set + */ + function WriteGroupRabbitOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls StopRelay. - * @function stopRelay - * @memberof protos.ForemanServer - * @instance - * @param {protos.IStopRelayRequest} request StopRelayRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * WriteGroupRabbitOptions _conn. + * @member {protos.args.IRabbitConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupRabbitOptions + * @instance + */ + WriteGroupRabbitOptions.prototype._conn = null; - /** - * Callback as used by {@link protos.ForemanServer#deleteRelay}. - * @memberof protos.ForemanServer - * @typedef DeleteRelayCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.DeleteRelayResponse} [response] DeleteRelayResponse - */ + /** + * WriteGroupRabbitOptions args. + * @member {protos.args.IRabbitWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupRabbitOptions + * @instance + */ + WriteGroupRabbitOptions.prototype.args = null; - /** - * Calls DeleteRelay. - * @function deleteRelay - * @memberof protos.ForemanServer - * @instance - * @param {protos.IDeleteRelayRequest} request DeleteRelayRequest message or plain object - * @param {protos.ForemanServer.DeleteRelayCallback} callback Node-style callback called with the error, if any, and DeleteRelayResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.deleteRelay = function deleteRelay(request, callback) { - return this.rpcCall(deleteRelay, $root.protos.DeleteRelayRequest, $root.protos.DeleteRelayResponse, request, callback); - }, "name", { value: "DeleteRelay" }); + /** + * Creates a new WriteGroupRabbitOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupRabbitOptions + * @static + * @param {protos.opts.IWriteGroupRabbitOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupRabbitOptions} WriteGroupRabbitOptions instance + */ + WriteGroupRabbitOptions.create = function create(properties) { + return new WriteGroupRabbitOptions(properties); + }; - /** - * Calls DeleteRelay. - * @function deleteRelay - * @memberof protos.ForemanServer - * @instance - * @param {protos.IDeleteRelayRequest} request DeleteRelayRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified WriteGroupRabbitOptions message. Does not implicitly {@link protos.opts.WriteGroupRabbitOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupRabbitOptions + * @static + * @param {protos.opts.IWriteGroupRabbitOptions} message WriteGroupRabbitOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupRabbitOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.RabbitConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.RabbitWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Callback as used by {@link protos.ForemanServer#getTunnel}. - * @memberof protos.ForemanServer - * @typedef GetTunnelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetTunnelResponse} [response] GetTunnelResponse - */ + /** + * Encodes the specified WriteGroupRabbitOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRabbitOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupRabbitOptions + * @static + * @param {protos.opts.IWriteGroupRabbitOptions} message WriteGroupRabbitOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupRabbitOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls GetTunnel. - * @function getTunnel - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetTunnelRequest} request GetTunnelRequest message or plain object - * @param {protos.ForemanServer.GetTunnelCallback} callback Node-style callback called with the error, if any, and GetTunnelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.getTunnel = function getTunnel(request, callback) { - return this.rpcCall(getTunnel, $root.protos.GetTunnelRequest, $root.protos.GetTunnelResponse, request, callback); - }, "name", { value: "GetTunnel" }); + /** + * Decodes a WriteGroupRabbitOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupRabbitOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupRabbitOptions} WriteGroupRabbitOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupRabbitOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupRabbitOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.RabbitConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.RabbitWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls GetTunnel. - * @function getTunnel - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetTunnelRequest} request GetTunnelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a WriteGroupRabbitOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupRabbitOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupRabbitOptions} WriteGroupRabbitOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupRabbitOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link protos.ForemanServer#getAllTunnels}. - * @memberof protos.ForemanServer - * @typedef GetAllTunnelsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetAllTunnelsResponse} [response] GetAllTunnelsResponse - */ + /** + * Verifies a WriteGroupRabbitOptions message. + * @function verify + * @memberof protos.opts.WriteGroupRabbitOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupRabbitOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.RabbitConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.RabbitWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; - /** - * Calls GetAllTunnels. - * @function getAllTunnels - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetAllTunnelsRequest} request GetAllTunnelsRequest message or plain object - * @param {protos.ForemanServer.GetAllTunnelsCallback} callback Node-style callback called with the error, if any, and GetAllTunnelsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.getAllTunnels = function getAllTunnels(request, callback) { - return this.rpcCall(getAllTunnels, $root.protos.GetAllTunnelsRequest, $root.protos.GetAllTunnelsResponse, request, callback); - }, "name", { value: "GetAllTunnels" }); + /** + * Creates a WriteGroupRabbitOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupRabbitOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupRabbitOptions} WriteGroupRabbitOptions + */ + WriteGroupRabbitOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupRabbitOptions) + return object; + var message = new $root.protos.opts.WriteGroupRabbitOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupRabbitOptions._conn: object expected"); + message._conn = $root.protos.args.RabbitConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupRabbitOptions.args: object expected"); + message.args = $root.protos.args.RabbitWriteArgs.fromObject(object.args); + } + return message; + }; - /** - * Calls GetAllTunnels. - * @function getAllTunnels - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetAllTunnelsRequest} request GetAllTunnelsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from a WriteGroupRabbitOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupRabbitOptions + * @static + * @param {protos.opts.WriteGroupRabbitOptions} message WriteGroupRabbitOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupRabbitOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.RabbitConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.RabbitWriteArgs.toObject(message.args, options); + return object; + }; - /** - * Callback as used by {@link protos.ForemanServer#createTunnel}. - * @memberof protos.ForemanServer - * @typedef CreateTunnelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.CreateTunnelResponse} [response] CreateTunnelResponse - */ + /** + * Converts this WriteGroupRabbitOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupRabbitOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupRabbitOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls CreateTunnel. - * @function createTunnel - * @memberof protos.ForemanServer - * @instance - * @param {protos.ICreateTunnelRequest} request CreateTunnelRequest message or plain object - * @param {protos.ForemanServer.CreateTunnelCallback} callback Node-style callback called with the error, if any, and CreateTunnelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.createTunnel = function createTunnel(request, callback) { - return this.rpcCall(createTunnel, $root.protos.CreateTunnelRequest, $root.protos.CreateTunnelResponse, request, callback); - }, "name", { value: "CreateTunnel" }); + return WriteGroupRabbitOptions; + })(); - /** - * Calls CreateTunnel. - * @function createTunnel - * @memberof protos.ForemanServer - * @instance - * @param {protos.ICreateTunnelRequest} request CreateTunnelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + opts.WriteGroupRabbitStreamsOptions = (function() { - /** - * Callback as used by {@link protos.ForemanServer#stopTunnel}. - * @memberof protos.ForemanServer - * @typedef StopTunnelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.StopTunnelResponse} [response] StopTunnelResponse - */ + /** + * Properties of a WriteGroupRabbitStreamsOptions. + * @memberof protos.opts + * @interface IWriteGroupRabbitStreamsOptions + * @property {protos.args.IRabbitStreamsConn|null} [_conn] WriteGroupRabbitStreamsOptions _conn + * @property {protos.args.IRabbitStreamsWriteArgs|null} [args] WriteGroupRabbitStreamsOptions args + */ - /** - * Calls StopTunnel. - * @function stopTunnel - * @memberof protos.ForemanServer - * @instance - * @param {protos.IStopTunnelRequest} request StopTunnelRequest message or plain object - * @param {protos.ForemanServer.StopTunnelCallback} callback Node-style callback called with the error, if any, and StopTunnelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.stopTunnel = function stopTunnel(request, callback) { - return this.rpcCall(stopTunnel, $root.protos.StopTunnelRequest, $root.protos.StopTunnelResponse, request, callback); - }, "name", { value: "StopTunnel" }); + /** + * Constructs a new WriteGroupRabbitStreamsOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupRabbitStreamsOptions. + * @implements IWriteGroupRabbitStreamsOptions + * @constructor + * @param {protos.opts.IWriteGroupRabbitStreamsOptions=} [properties] Properties to set + */ + function WriteGroupRabbitStreamsOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Calls StopTunnel. - * @function stopTunnel - * @memberof protos.ForemanServer - * @instance - * @param {protos.IStopTunnelRequest} request StopTunnelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * WriteGroupRabbitStreamsOptions _conn. + * @member {protos.args.IRabbitStreamsConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupRabbitStreamsOptions + * @instance + */ + WriteGroupRabbitStreamsOptions.prototype._conn = null; - /** - * Callback as used by {@link protos.ForemanServer#resumeTunnel}. - * @memberof protos.ForemanServer - * @typedef ResumeTunnelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.ResumeTunnelResponse} [response] ResumeTunnelResponse - */ + /** + * WriteGroupRabbitStreamsOptions args. + * @member {protos.args.IRabbitStreamsWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupRabbitStreamsOptions + * @instance + */ + WriteGroupRabbitStreamsOptions.prototype.args = null; - /** - * Calls ResumeTunnel. - * @function resumeTunnel - * @memberof protos.ForemanServer - * @instance - * @param {protos.IResumeTunnelRequest} request ResumeTunnelRequest message or plain object - * @param {protos.ForemanServer.ResumeTunnelCallback} callback Node-style callback called with the error, if any, and ResumeTunnelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.resumeTunnel = function resumeTunnel(request, callback) { - return this.rpcCall(resumeTunnel, $root.protos.ResumeTunnelRequest, $root.protos.ResumeTunnelResponse, request, callback); - }, "name", { value: "ResumeTunnel" }); + /** + * Creates a new WriteGroupRabbitStreamsOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupRabbitStreamsOptions + * @static + * @param {protos.opts.IWriteGroupRabbitStreamsOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupRabbitStreamsOptions} WriteGroupRabbitStreamsOptions instance + */ + WriteGroupRabbitStreamsOptions.create = function create(properties) { + return new WriteGroupRabbitStreamsOptions(properties); + }; - /** - * Calls ResumeTunnel. - * @function resumeTunnel - * @memberof protos.ForemanServer - * @instance - * @param {protos.IResumeTunnelRequest} request ResumeTunnelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified WriteGroupRabbitStreamsOptions message. Does not implicitly {@link protos.opts.WriteGroupRabbitStreamsOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupRabbitStreamsOptions + * @static + * @param {protos.opts.IWriteGroupRabbitStreamsOptions} message WriteGroupRabbitStreamsOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupRabbitStreamsOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.RabbitStreamsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.RabbitStreamsWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Callback as used by {@link protos.ForemanServer#updateTunnel}. - * @memberof protos.ForemanServer - * @typedef UpdateTunnelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.UpdateTunnelResponse} [response] UpdateTunnelResponse - */ + /** + * Encodes the specified WriteGroupRabbitStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRabbitStreamsOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupRabbitStreamsOptions + * @static + * @param {protos.opts.IWriteGroupRabbitStreamsOptions} message WriteGroupRabbitStreamsOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupRabbitStreamsOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls UpdateTunnel. - * @function updateTunnel - * @memberof protos.ForemanServer - * @instance - * @param {protos.IUpdateTunnelRequest} request UpdateTunnelRequest message or plain object - * @param {protos.ForemanServer.UpdateTunnelCallback} callback Node-style callback called with the error, if any, and UpdateTunnelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.updateTunnel = function updateTunnel(request, callback) { - return this.rpcCall(updateTunnel, $root.protos.UpdateTunnelRequest, $root.protos.UpdateTunnelResponse, request, callback); - }, "name", { value: "UpdateTunnel" }); + /** + * Decodes a WriteGroupRabbitStreamsOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupRabbitStreamsOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupRabbitStreamsOptions} WriteGroupRabbitStreamsOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupRabbitStreamsOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupRabbitStreamsOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.RabbitStreamsConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.RabbitStreamsWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls UpdateTunnel. - * @function updateTunnel - * @memberof protos.ForemanServer - * @instance - * @param {protos.IUpdateTunnelRequest} request UpdateTunnelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a WriteGroupRabbitStreamsOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupRabbitStreamsOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupRabbitStreamsOptions} WriteGroupRabbitStreamsOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupRabbitStreamsOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link protos.ForemanServer#deleteTunnel}. - * @memberof protos.ForemanServer - * @typedef DeleteTunnelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.DeleteTunnelResponse} [response] DeleteTunnelResponse - */ + /** + * Verifies a WriteGroupRabbitStreamsOptions message. + * @function verify + * @memberof protos.opts.WriteGroupRabbitStreamsOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupRabbitStreamsOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.RabbitStreamsConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.RabbitStreamsWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; - /** - * Calls DeleteTunnel. - * @function deleteTunnel - * @memberof protos.ForemanServer - * @instance - * @param {protos.IDeleteTunnelRequest} request DeleteTunnelRequest message or plain object - * @param {protos.ForemanServer.DeleteTunnelCallback} callback Node-style callback called with the error, if any, and DeleteTunnelResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.deleteTunnel = function deleteTunnel(request, callback) { - return this.rpcCall(deleteTunnel, $root.protos.DeleteTunnelRequest, $root.protos.DeleteTunnelResponse, request, callback); - }, "name", { value: "DeleteTunnel" }); + /** + * Creates a WriteGroupRabbitStreamsOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupRabbitStreamsOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupRabbitStreamsOptions} WriteGroupRabbitStreamsOptions + */ + WriteGroupRabbitStreamsOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupRabbitStreamsOptions) + return object; + var message = new $root.protos.opts.WriteGroupRabbitStreamsOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupRabbitStreamsOptions._conn: object expected"); + message._conn = $root.protos.args.RabbitStreamsConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupRabbitStreamsOptions.args: object expected"); + message.args = $root.protos.args.RabbitStreamsWriteArgs.fromObject(object.args); + } + return message; + }; - /** - * Calls DeleteTunnel. - * @function deleteTunnel - * @memberof protos.ForemanServer - * @instance - * @param {protos.IDeleteTunnelRequest} request DeleteTunnelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from a WriteGroupRabbitStreamsOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupRabbitStreamsOptions + * @static + * @param {protos.opts.WriteGroupRabbitStreamsOptions} message WriteGroupRabbitStreamsOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupRabbitStreamsOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.RabbitStreamsConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.RabbitStreamsWriteArgs.toObject(message.args, options); + return object; + }; - /** - * Callback as used by {@link protos.ForemanServer#getServerOptions}. - * @memberof protos.ForemanServer - * @typedef GetServerOptionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {protos.GetServerOptionsResponse} [response] GetServerOptionsResponse - */ + /** + * Converts this WriteGroupRabbitStreamsOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupRabbitStreamsOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupRabbitStreamsOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls GetServerOptions. - * @function getServerOptions - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetServerOptionsRequest} request GetServerOptionsRequest message or plain object - * @param {protos.ForemanServer.GetServerOptionsCallback} callback Node-style callback called with the error, if any, and GetServerOptionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ForemanServer.prototype.getServerOptions = function getServerOptions(request, callback) { - return this.rpcCall(getServerOptions, $root.protos.GetServerOptionsRequest, $root.protos.GetServerOptionsResponse, request, callback); - }, "name", { value: "GetServerOptions" }); + return WriteGroupRabbitStreamsOptions; + })(); - /** - * Calls GetServerOptions. - * @function getServerOptions - * @memberof protos.ForemanServer - * @instance - * @param {protos.IGetServerOptionsRequest} request GetServerOptionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + opts.WriteGroupRedisPubSubOptions = (function() { - return ForemanServer; - })(); + /** + * Properties of a WriteGroupRedisPubSubOptions. + * @memberof protos.opts + * @interface IWriteGroupRedisPubSubOptions + * @property {protos.args.IRedisPubSubConn|null} [_conn] WriteGroupRedisPubSubOptions _conn + * @property {protos.args.IRedisPubSubWriteArgs|null} [args] WriteGroupRedisPubSubOptions args + */ - protos.PlumberInfo = (function() { + /** + * Constructs a new WriteGroupRedisPubSubOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupRedisPubSubOptions. + * @implements IWriteGroupRedisPubSubOptions + * @constructor + * @param {protos.opts.IWriteGroupRedisPubSubOptions=} [properties] Properties to set + */ + function WriteGroupRedisPubSubOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a PlumberInfo. - * @memberof protos - * @interface IPlumberInfo - * @property {string|null} [teamId] PlumberInfo teamId - * @property {string|null} [clusterId] PlumberInfo clusterId - */ + /** + * WriteGroupRedisPubSubOptions _conn. + * @member {protos.args.IRedisPubSubConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupRedisPubSubOptions + * @instance + */ + WriteGroupRedisPubSubOptions.prototype._conn = null; - /** - * Constructs a new PlumberInfo. - * @memberof protos - * @classdesc Represents a PlumberInfo. - * @implements IPlumberInfo - * @constructor - * @param {protos.IPlumberInfo=} [properties] Properties to set - */ - function PlumberInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * WriteGroupRedisPubSubOptions args. + * @member {protos.args.IRedisPubSubWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupRedisPubSubOptions + * @instance + */ + WriteGroupRedisPubSubOptions.prototype.args = null; - /** - * PlumberInfo teamId. - * @member {string} teamId - * @memberof protos.PlumberInfo - * @instance - */ - PlumberInfo.prototype.teamId = ""; + /** + * Creates a new WriteGroupRedisPubSubOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupRedisPubSubOptions + * @static + * @param {protos.opts.IWriteGroupRedisPubSubOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupRedisPubSubOptions} WriteGroupRedisPubSubOptions instance + */ + WriteGroupRedisPubSubOptions.create = function create(properties) { + return new WriteGroupRedisPubSubOptions(properties); + }; - /** - * PlumberInfo clusterId. - * @member {string} clusterId - * @memberof protos.PlumberInfo - * @instance - */ - PlumberInfo.prototype.clusterId = ""; + /** + * Encodes the specified WriteGroupRedisPubSubOptions message. Does not implicitly {@link protos.opts.WriteGroupRedisPubSubOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupRedisPubSubOptions + * @static + * @param {protos.opts.IWriteGroupRedisPubSubOptions} message WriteGroupRedisPubSubOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupRedisPubSubOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.RedisPubSubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.RedisPubSubWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Creates a new PlumberInfo instance using the specified properties. - * @function create - * @memberof protos.PlumberInfo - * @static - * @param {protos.IPlumberInfo=} [properties] Properties to set - * @returns {protos.PlumberInfo} PlumberInfo instance - */ - PlumberInfo.create = function create(properties) { - return new PlumberInfo(properties); - }; + /** + * Encodes the specified WriteGroupRedisPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRedisPubSubOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupRedisPubSubOptions + * @static + * @param {protos.opts.IWriteGroupRedisPubSubOptions} message WriteGroupRedisPubSubOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupRedisPubSubOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified PlumberInfo message. Does not implicitly {@link protos.PlumberInfo.verify|verify} messages. - * @function encode - * @memberof protos.PlumberInfo - * @static - * @param {protos.IPlumberInfo} message PlumberInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PlumberInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamId != null && Object.hasOwnProperty.call(message, "teamId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.teamId); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clusterId); - return writer; - }; + /** + * Decodes a WriteGroupRedisPubSubOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupRedisPubSubOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupRedisPubSubOptions} WriteGroupRedisPubSubOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupRedisPubSubOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupRedisPubSubOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.RedisPubSubConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.RedisPubSubWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified PlumberInfo message, length delimited. Does not implicitly {@link protos.PlumberInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.PlumberInfo - * @static - * @param {protos.IPlumberInfo} message PlumberInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PlumberInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a WriteGroupRedisPubSubOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupRedisPubSubOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupRedisPubSubOptions} WriteGroupRedisPubSubOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupRedisPubSubOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a PlumberInfo message from the specified reader or buffer. - * @function decode - * @memberof protos.PlumberInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.PlumberInfo} PlumberInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PlumberInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.PlumberInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.teamId = reader.string(); - break; - case 2: - message.clusterId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Verifies a WriteGroupRedisPubSubOptions message. + * @function verify + * @memberof protos.opts.WriteGroupRedisPubSubOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupRedisPubSubOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.RedisPubSubConn.verify(message._conn); + if (error) + return "_conn." + error; } - } - return message; - }; - - /** - * Decodes a PlumberInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.PlumberInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.PlumberInfo} PlumberInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PlumberInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.RedisPubSubWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; - /** - * Verifies a PlumberInfo message. - * @function verify - * @memberof protos.PlumberInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PlumberInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamId != null && message.hasOwnProperty("teamId")) - if (!$util.isString(message.teamId)) - return "teamId: string expected"; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - if (!$util.isString(message.clusterId)) - return "clusterId: string expected"; - return null; - }; + /** + * Creates a WriteGroupRedisPubSubOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupRedisPubSubOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupRedisPubSubOptions} WriteGroupRedisPubSubOptions + */ + WriteGroupRedisPubSubOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupRedisPubSubOptions) + return object; + var message = new $root.protos.opts.WriteGroupRedisPubSubOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupRedisPubSubOptions._conn: object expected"); + message._conn = $root.protos.args.RedisPubSubConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupRedisPubSubOptions.args: object expected"); + message.args = $root.protos.args.RedisPubSubWriteArgs.fromObject(object.args); + } + return message; + }; - /** - * Creates a PlumberInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.PlumberInfo - * @static - * @param {Object.} object Plain object - * @returns {protos.PlumberInfo} PlumberInfo - */ - PlumberInfo.fromObject = function fromObject(object) { - if (object instanceof $root.protos.PlumberInfo) + /** + * Creates a plain object from a WriteGroupRedisPubSubOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupRedisPubSubOptions + * @static + * @param {protos.opts.WriteGroupRedisPubSubOptions} message WriteGroupRedisPubSubOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupRedisPubSubOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.RedisPubSubConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.RedisPubSubWriteArgs.toObject(message.args, options); return object; - var message = new $root.protos.PlumberInfo(); - if (object.teamId != null) - message.teamId = String(object.teamId); - if (object.clusterId != null) - message.clusterId = String(object.clusterId); - return message; - }; + }; - /** - * Creates a plain object from a PlumberInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.PlumberInfo - * @static - * @param {protos.PlumberInfo} message PlumberInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PlumberInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.teamId = ""; - object.clusterId = ""; - } - if (message.teamId != null && message.hasOwnProperty("teamId")) - object.teamId = message.teamId; - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - object.clusterId = message.clusterId; - return object; - }; + /** + * Converts this WriteGroupRedisPubSubOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupRedisPubSubOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupRedisPubSubOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this PlumberInfo to JSON. - * @function toJSON - * @memberof protos.PlumberInfo - * @instance - * @returns {Object.} JSON object - */ - PlumberInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return WriteGroupRedisPubSubOptions; + })(); - return PlumberInfo; - })(); + opts.WriteGroupRedisStreamsOptions = (function() { - protos.ListPlumbersRequest = (function() { + /** + * Properties of a WriteGroupRedisStreamsOptions. + * @memberof protos.opts + * @interface IWriteGroupRedisStreamsOptions + * @property {protos.args.IRedisStreamsConn|null} [_conn] WriteGroupRedisStreamsOptions _conn + * @property {protos.args.IRedisStreamsWriteArgs|null} [args] WriteGroupRedisStreamsOptions args + */ - /** - * Properties of a ListPlumbersRequest. - * @memberof protos - * @interface IListPlumbersRequest - * @property {string|null} [authToken] ListPlumbersRequest authToken - * @property {string|null} [teamId] ListPlumbersRequest teamId - */ + /** + * Constructs a new WriteGroupRedisStreamsOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupRedisStreamsOptions. + * @implements IWriteGroupRedisStreamsOptions + * @constructor + * @param {protos.opts.IWriteGroupRedisStreamsOptions=} [properties] Properties to set + */ + function WriteGroupRedisStreamsOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new ListPlumbersRequest. - * @memberof protos - * @classdesc Represents a ListPlumbersRequest. - * @implements IListPlumbersRequest - * @constructor - * @param {protos.IListPlumbersRequest=} [properties] Properties to set - */ - function ListPlumbersRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * WriteGroupRedisStreamsOptions _conn. + * @member {protos.args.IRedisStreamsConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupRedisStreamsOptions + * @instance + */ + WriteGroupRedisStreamsOptions.prototype._conn = null; - /** - * ListPlumbersRequest authToken. - * @member {string} authToken - * @memberof protos.ListPlumbersRequest - * @instance - */ - ListPlumbersRequest.prototype.authToken = ""; + /** + * WriteGroupRedisStreamsOptions args. + * @member {protos.args.IRedisStreamsWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupRedisStreamsOptions + * @instance + */ + WriteGroupRedisStreamsOptions.prototype.args = null; - /** - * ListPlumbersRequest teamId. - * @member {string} teamId - * @memberof protos.ListPlumbersRequest - * @instance - */ - ListPlumbersRequest.prototype.teamId = ""; + /** + * Creates a new WriteGroupRedisStreamsOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupRedisStreamsOptions + * @static + * @param {protos.opts.IWriteGroupRedisStreamsOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupRedisStreamsOptions} WriteGroupRedisStreamsOptions instance + */ + WriteGroupRedisStreamsOptions.create = function create(properties) { + return new WriteGroupRedisStreamsOptions(properties); + }; - /** - * Creates a new ListPlumbersRequest instance using the specified properties. - * @function create - * @memberof protos.ListPlumbersRequest - * @static - * @param {protos.IListPlumbersRequest=} [properties] Properties to set - * @returns {protos.ListPlumbersRequest} ListPlumbersRequest instance - */ - ListPlumbersRequest.create = function create(properties) { - return new ListPlumbersRequest(properties); - }; + /** + * Encodes the specified WriteGroupRedisStreamsOptions message. Does not implicitly {@link protos.opts.WriteGroupRedisStreamsOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupRedisStreamsOptions + * @static + * @param {protos.opts.IWriteGroupRedisStreamsOptions} message WriteGroupRedisStreamsOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupRedisStreamsOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.RedisStreamsConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.RedisStreamsWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ListPlumbersRequest message. Does not implicitly {@link protos.ListPlumbersRequest.verify|verify} messages. - * @function encode - * @memberof protos.ListPlumbersRequest - * @static - * @param {protos.IListPlumbersRequest} message ListPlumbersRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListPlumbersRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.authToken != null && Object.hasOwnProperty.call(message, "authToken")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.authToken); - if (message.teamId != null && Object.hasOwnProperty.call(message, "teamId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.teamId); - return writer; - }; + /** + * Encodes the specified WriteGroupRedisStreamsOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupRedisStreamsOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupRedisStreamsOptions + * @static + * @param {protos.opts.IWriteGroupRedisStreamsOptions} message WriteGroupRedisStreamsOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupRedisStreamsOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified ListPlumbersRequest message, length delimited. Does not implicitly {@link protos.ListPlumbersRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.ListPlumbersRequest - * @static - * @param {protos.IListPlumbersRequest} message ListPlumbersRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListPlumbersRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a WriteGroupRedisStreamsOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupRedisStreamsOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupRedisStreamsOptions} WriteGroupRedisStreamsOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupRedisStreamsOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupRedisStreamsOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.RedisStreamsConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.RedisStreamsWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes a ListPlumbersRequest message from the specified reader or buffer. - * @function decode - * @memberof protos.ListPlumbersRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.ListPlumbersRequest} ListPlumbersRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListPlumbersRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.ListPlumbersRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authToken = reader.string(); - break; - case 2: - message.teamId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a WriteGroupRedisStreamsOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupRedisStreamsOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupRedisStreamsOptions} WriteGroupRedisStreamsOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupRedisStreamsOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a WriteGroupRedisStreamsOptions message. + * @function verify + * @memberof protos.opts.WriteGroupRedisStreamsOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupRedisStreamsOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.RedisStreamsConn.verify(message._conn); + if (error) + return "_conn." + error; } - } - return message; - }; - - /** - * Decodes a ListPlumbersRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.ListPlumbersRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.ListPlumbersRequest} ListPlumbersRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListPlumbersRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.RedisStreamsWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; - /** - * Verifies a ListPlumbersRequest message. - * @function verify - * @memberof protos.ListPlumbersRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListPlumbersRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.authToken != null && message.hasOwnProperty("authToken")) - if (!$util.isString(message.authToken)) - return "authToken: string expected"; - if (message.teamId != null && message.hasOwnProperty("teamId")) - if (!$util.isString(message.teamId)) - return "teamId: string expected"; - return null; - }; + /** + * Creates a WriteGroupRedisStreamsOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupRedisStreamsOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupRedisStreamsOptions} WriteGroupRedisStreamsOptions + */ + WriteGroupRedisStreamsOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupRedisStreamsOptions) + return object; + var message = new $root.protos.opts.WriteGroupRedisStreamsOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupRedisStreamsOptions._conn: object expected"); + message._conn = $root.protos.args.RedisStreamsConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupRedisStreamsOptions.args: object expected"); + message.args = $root.protos.args.RedisStreamsWriteArgs.fromObject(object.args); + } + return message; + }; - /** - * Creates a ListPlumbersRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.ListPlumbersRequest - * @static - * @param {Object.} object Plain object - * @returns {protos.ListPlumbersRequest} ListPlumbersRequest - */ - ListPlumbersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.protos.ListPlumbersRequest) + /** + * Creates a plain object from a WriteGroupRedisStreamsOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupRedisStreamsOptions + * @static + * @param {protos.opts.WriteGroupRedisStreamsOptions} message WriteGroupRedisStreamsOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupRedisStreamsOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.RedisStreamsConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.RedisStreamsWriteArgs.toObject(message.args, options); return object; - var message = new $root.protos.ListPlumbersRequest(); - if (object.authToken != null) - message.authToken = String(object.authToken); - if (object.teamId != null) - message.teamId = String(object.teamId); - return message; - }; + }; - /** - * Creates a plain object from a ListPlumbersRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.ListPlumbersRequest - * @static - * @param {protos.ListPlumbersRequest} message ListPlumbersRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListPlumbersRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.authToken = ""; - object.teamId = ""; - } - if (message.authToken != null && message.hasOwnProperty("authToken")) - object.authToken = message.authToken; - if (message.teamId != null && message.hasOwnProperty("teamId")) - object.teamId = message.teamId; - return object; - }; + /** + * Converts this WriteGroupRedisStreamsOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupRedisStreamsOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupRedisStreamsOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ListPlumbersRequest to JSON. - * @function toJSON - * @memberof protos.ListPlumbersRequest - * @instance - * @returns {Object.} JSON object - */ - ListPlumbersRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return WriteGroupRedisStreamsOptions; + })(); - return ListPlumbersRequest; - })(); + opts.WriteGroupAzureEventHubOptions = (function() { - protos.ListPlumbersResponse = (function() { + /** + * Properties of a WriteGroupAzureEventHubOptions. + * @memberof protos.opts + * @interface IWriteGroupAzureEventHubOptions + * @property {protos.args.IAzureEventHubConn|null} [_conn] WriteGroupAzureEventHubOptions _conn + * @property {protos.args.IAzureEventHubWriteArgs|null} [args] WriteGroupAzureEventHubOptions args + */ - /** - * Properties of a ListPlumbersResponse. - * @memberof protos - * @interface IListPlumbersResponse - * @property {Array.|null} [plumbers] ListPlumbersResponse plumbers - */ + /** + * Constructs a new WriteGroupAzureEventHubOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupAzureEventHubOptions. + * @implements IWriteGroupAzureEventHubOptions + * @constructor + * @param {protos.opts.IWriteGroupAzureEventHubOptions=} [properties] Properties to set + */ + function WriteGroupAzureEventHubOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new ListPlumbersResponse. - * @memberof protos - * @classdesc Represents a ListPlumbersResponse. - * @implements IListPlumbersResponse - * @constructor - * @param {protos.IListPlumbersResponse=} [properties] Properties to set - */ - function ListPlumbersResponse(properties) { - this.plumbers = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * WriteGroupAzureEventHubOptions _conn. + * @member {protos.args.IAzureEventHubConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupAzureEventHubOptions + * @instance + */ + WriteGroupAzureEventHubOptions.prototype._conn = null; - /** - * ListPlumbersResponse plumbers. - * @member {Array.} plumbers - * @memberof protos.ListPlumbersResponse - * @instance - */ - ListPlumbersResponse.prototype.plumbers = $util.emptyArray; + /** + * WriteGroupAzureEventHubOptions args. + * @member {protos.args.IAzureEventHubWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupAzureEventHubOptions + * @instance + */ + WriteGroupAzureEventHubOptions.prototype.args = null; - /** - * Creates a new ListPlumbersResponse instance using the specified properties. - * @function create - * @memberof protos.ListPlumbersResponse - * @static - * @param {protos.IListPlumbersResponse=} [properties] Properties to set - * @returns {protos.ListPlumbersResponse} ListPlumbersResponse instance - */ - ListPlumbersResponse.create = function create(properties) { - return new ListPlumbersResponse(properties); - }; + /** + * Creates a new WriteGroupAzureEventHubOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupAzureEventHubOptions + * @static + * @param {protos.opts.IWriteGroupAzureEventHubOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupAzureEventHubOptions} WriteGroupAzureEventHubOptions instance + */ + WriteGroupAzureEventHubOptions.create = function create(properties) { + return new WriteGroupAzureEventHubOptions(properties); + }; - /** - * Encodes the specified ListPlumbersResponse message. Does not implicitly {@link protos.ListPlumbersResponse.verify|verify} messages. - * @function encode - * @memberof protos.ListPlumbersResponse - * @static - * @param {protos.IListPlumbersResponse} message ListPlumbersResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListPlumbersResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.plumbers != null && message.plumbers.length) - for (var i = 0; i < message.plumbers.length; ++i) - $root.protos.PlumberInfo.encode(message.plumbers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified WriteGroupAzureEventHubOptions message. Does not implicitly {@link protos.opts.WriteGroupAzureEventHubOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupAzureEventHubOptions + * @static + * @param {protos.opts.IWriteGroupAzureEventHubOptions} message WriteGroupAzureEventHubOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupAzureEventHubOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.AzureEventHubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.AzureEventHubWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ListPlumbersResponse message, length delimited. Does not implicitly {@link protos.ListPlumbersResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.ListPlumbersResponse - * @static - * @param {protos.IListPlumbersResponse} message ListPlumbersResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListPlumbersResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified WriteGroupAzureEventHubOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAzureEventHubOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupAzureEventHubOptions + * @static + * @param {protos.opts.IWriteGroupAzureEventHubOptions} message WriteGroupAzureEventHubOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupAzureEventHubOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ListPlumbersResponse message from the specified reader or buffer. - * @function decode - * @memberof protos.ListPlumbersResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.ListPlumbersResponse} ListPlumbersResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListPlumbersResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.ListPlumbersResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.plumbers && message.plumbers.length)) - message.plumbers = []; - message.plumbers.push($root.protos.PlumberInfo.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a WriteGroupAzureEventHubOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupAzureEventHubOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupAzureEventHubOptions} WriteGroupAzureEventHubOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupAzureEventHubOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupAzureEventHubOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.AzureEventHubConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.AzureEventHubWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a ListPlumbersResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.ListPlumbersResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.ListPlumbersResponse} ListPlumbersResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListPlumbersResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a WriteGroupAzureEventHubOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupAzureEventHubOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupAzureEventHubOptions} WriteGroupAzureEventHubOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupAzureEventHubOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListPlumbersResponse message. - * @function verify - * @memberof protos.ListPlumbersResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListPlumbersResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.plumbers != null && message.hasOwnProperty("plumbers")) { - if (!Array.isArray(message.plumbers)) - return "plumbers: array expected"; - for (var i = 0; i < message.plumbers.length; ++i) { - var error = $root.protos.PlumberInfo.verify(message.plumbers[i]); + /** + * Verifies a WriteGroupAzureEventHubOptions message. + * @function verify + * @memberof protos.opts.WriteGroupAzureEventHubOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WriteGroupAzureEventHubOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.AzureEventHubConn.verify(message._conn); if (error) - return "plumbers." + error; + return "_conn." + error; } - } - return null; - }; - - /** - * Creates a ListPlumbersResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.ListPlumbersResponse - * @static - * @param {Object.} object Plain object - * @returns {protos.ListPlumbersResponse} ListPlumbersResponse - */ - ListPlumbersResponse.fromObject = function fromObject(object) { - if (object instanceof $root.protos.ListPlumbersResponse) - return object; - var message = new $root.protos.ListPlumbersResponse(); - if (object.plumbers) { - if (!Array.isArray(object.plumbers)) - throw TypeError(".protos.ListPlumbersResponse.plumbers: array expected"); - message.plumbers = []; - for (var i = 0; i < object.plumbers.length; ++i) { - if (typeof object.plumbers[i] !== "object") - throw TypeError(".protos.ListPlumbersResponse.plumbers: object expected"); - message.plumbers[i] = $root.protos.PlumberInfo.fromObject(object.plumbers[i]); + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.AzureEventHubWriteArgs.verify(message.args); + if (error) + return "args." + error; } - } - return message; - }; - - /** - * Creates a plain object from a ListPlumbersResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.ListPlumbersResponse - * @static - * @param {protos.ListPlumbersResponse} message ListPlumbersResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListPlumbersResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.plumbers = []; - if (message.plumbers && message.plumbers.length) { - object.plumbers = []; - for (var j = 0; j < message.plumbers.length; ++j) - object.plumbers[j] = $root.protos.PlumberInfo.toObject(message.plumbers[j], options); - } - return object; - }; - - /** - * Converts this ListPlumbersResponse to JSON. - * @function toJSON - * @memberof protos.ListPlumbersResponse - * @instance - * @returns {Object.} JSON object - */ - ListPlumbersResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListPlumbersResponse; - })(); - - protos.encoding = (function() { + return null; + }; - /** - * Namespace encoding. - * @memberof protos - * @namespace - */ - var encoding = {}; + /** + * Creates a WriteGroupAzureEventHubOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupAzureEventHubOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupAzureEventHubOptions} WriteGroupAzureEventHubOptions + */ + WriteGroupAzureEventHubOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupAzureEventHubOptions) + return object; + var message = new $root.protos.opts.WriteGroupAzureEventHubOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupAzureEventHubOptions._conn: object expected"); + message._conn = $root.protos.args.AzureEventHubConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupAzureEventHubOptions.args: object expected"); + message.args = $root.protos.args.AzureEventHubWriteArgs.fromObject(object.args); + } + return message; + }; - /** - * EncodeType enum. - * @name protos.encoding.EncodeType - * @enum {number} - * @property {number} ENCODE_TYPE_UNSET=0 ENCODE_TYPE_UNSET value - * @property {number} ENCODE_TYPE_JSONPB=1 ENCODE_TYPE_JSONPB value - * @property {number} ENCODE_TYPE_AVRO=2 ENCODE_TYPE_AVRO value - * @property {number} ENCODE_TYPE_CLOUDEVENT=3 ENCODE_TYPE_CLOUDEVENT value - */ - encoding.EncodeType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENCODE_TYPE_UNSET"] = 0; - values[valuesById[1] = "ENCODE_TYPE_JSONPB"] = 1; - values[valuesById[2] = "ENCODE_TYPE_AVRO"] = 2; - values[valuesById[3] = "ENCODE_TYPE_CLOUDEVENT"] = 3; - return values; - })(); + /** + * Creates a plain object from a WriteGroupAzureEventHubOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupAzureEventHubOptions + * @static + * @param {protos.opts.WriteGroupAzureEventHubOptions} message WriteGroupAzureEventHubOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WriteGroupAzureEventHubOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.AzureEventHubConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.AzureEventHubWriteArgs.toObject(message.args, options); + return object; + }; - /** - * DecodeType enum. - * @name protos.encoding.DecodeType - * @enum {number} - * @property {number} DECODE_TYPE_UNSET=0 DECODE_TYPE_UNSET value - * @property {number} DECODE_TYPE_PROTOBUF=1 DECODE_TYPE_PROTOBUF value - * @property {number} DECODE_TYPE_AVRO=2 DECODE_TYPE_AVRO value - * @property {number} DECODE_TYPE_THRIFT=3 DECODE_TYPE_THRIFT value - * @property {number} DECODE_TYPE_FLATBUFFER=4 DECODE_TYPE_FLATBUFFER value - */ - encoding.DecodeType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DECODE_TYPE_UNSET"] = 0; - values[valuesById[1] = "DECODE_TYPE_PROTOBUF"] = 1; - values[valuesById[2] = "DECODE_TYPE_AVRO"] = 2; - values[valuesById[3] = "DECODE_TYPE_THRIFT"] = 3; - values[valuesById[4] = "DECODE_TYPE_FLATBUFFER"] = 4; - return values; - })(); + /** + * Converts this WriteGroupAzureEventHubOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupAzureEventHubOptions + * @instance + * @returns {Object.} JSON object + */ + WriteGroupAzureEventHubOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * EnvelopeType enum. - * @name protos.encoding.EnvelopeType - * @enum {number} - * @property {number} ENVELOPE_TYPE_UNSET=0 ENVELOPE_TYPE_UNSET value - * @property {number} ENVELOPE_TYPE_DEEP=1 ENVELOPE_TYPE_DEEP value - * @property {number} ENVELOPE_TYPE_SHALLOW=2 ENVELOPE_TYPE_SHALLOW value - */ - encoding.EnvelopeType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENVELOPE_TYPE_UNSET"] = 0; - values[valuesById[1] = "ENVELOPE_TYPE_DEEP"] = 1; - values[valuesById[2] = "ENVELOPE_TYPE_SHALLOW"] = 2; - return values; + return WriteGroupAzureEventHubOptions; })(); - encoding.ProtobufSettings = (function() { + opts.WriteGroupAzureServiceBusOptions = (function() { /** - * Properties of a ProtobufSettings. - * @memberof protos.encoding - * @interface IProtobufSettings - * @property {string|null} [protobufRootMessage] ProtobufSettings protobufRootMessage - * @property {Array.|null} [protobufDirs] ProtobufSettings protobufDirs - * @property {string|null} [_protobufRootDir] ProtobufSettings _protobufRootDir - * @property {Uint8Array|null} [archive] ProtobufSettings archive - * @property {Uint8Array|null} [_messageDescriptor] ProtobufSettings _messageDescriptor - * @property {protos.encoding.EnvelopeType|null} [protobufEnvelopeType] ProtobufSettings protobufEnvelopeType - * @property {string|null} [shallowEnvelopeMessage] ProtobufSettings shallowEnvelopeMessage - * @property {number|null} [shallowEnvelopeFieldNumber] ProtobufSettings shallowEnvelopeFieldNumber - * @property {Uint8Array|null} [_shallowEnvelopeMessageDescriptor] ProtobufSettings _shallowEnvelopeMessageDescriptor - * @property {string|null} [protobufDescriptorSet] ProtobufSettings protobufDescriptorSet + * Properties of a WriteGroupAzureServiceBusOptions. + * @memberof protos.opts + * @interface IWriteGroupAzureServiceBusOptions + * @property {protos.args.IAzureServiceBusConn|null} [_conn] WriteGroupAzureServiceBusOptions _conn + * @property {protos.args.IAzureServiceBusWriteArgs|null} [args] WriteGroupAzureServiceBusOptions args */ /** - * Constructs a new ProtobufSettings. - * @memberof protos.encoding - * @classdesc Represents a ProtobufSettings. - * @implements IProtobufSettings + * Constructs a new WriteGroupAzureServiceBusOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupAzureServiceBusOptions. + * @implements IWriteGroupAzureServiceBusOptions * @constructor - * @param {protos.encoding.IProtobufSettings=} [properties] Properties to set + * @param {protos.opts.IWriteGroupAzureServiceBusOptions=} [properties] Properties to set */ - function ProtobufSettings(properties) { - this.protobufDirs = []; + function WriteGroupAzureServiceBusOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61486,195 +33297,308 @@ $root.protos = (function() { } /** - * ProtobufSettings protobufRootMessage. - * @member {string} protobufRootMessage - * @memberof protos.encoding.ProtobufSettings + * WriteGroupAzureServiceBusOptions _conn. + * @member {protos.args.IAzureServiceBusConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupAzureServiceBusOptions * @instance */ - ProtobufSettings.prototype.protobufRootMessage = ""; + WriteGroupAzureServiceBusOptions.prototype._conn = null; /** - * ProtobufSettings protobufDirs. - * @member {Array.} protobufDirs - * @memberof protos.encoding.ProtobufSettings + * WriteGroupAzureServiceBusOptions args. + * @member {protos.args.IAzureServiceBusWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupAzureServiceBusOptions * @instance */ - ProtobufSettings.prototype.protobufDirs = $util.emptyArray; + WriteGroupAzureServiceBusOptions.prototype.args = null; + + /** + * Creates a new WriteGroupAzureServiceBusOptions instance using the specified properties. + * @function create + * @memberof protos.opts.WriteGroupAzureServiceBusOptions + * @static + * @param {protos.opts.IWriteGroupAzureServiceBusOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupAzureServiceBusOptions} WriteGroupAzureServiceBusOptions instance + */ + WriteGroupAzureServiceBusOptions.create = function create(properties) { + return new WriteGroupAzureServiceBusOptions(properties); + }; + + /** + * Encodes the specified WriteGroupAzureServiceBusOptions message. Does not implicitly {@link protos.opts.WriteGroupAzureServiceBusOptions.verify|verify} messages. + * @function encode + * @memberof protos.opts.WriteGroupAzureServiceBusOptions + * @static + * @param {protos.opts.IWriteGroupAzureServiceBusOptions} message WriteGroupAzureServiceBusOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupAzureServiceBusOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.AzureServiceBusConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.AzureServiceBusWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified WriteGroupAzureServiceBusOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAzureServiceBusOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof protos.opts.WriteGroupAzureServiceBusOptions + * @static + * @param {protos.opts.IWriteGroupAzureServiceBusOptions} message WriteGroupAzureServiceBusOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WriteGroupAzureServiceBusOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a WriteGroupAzureServiceBusOptions message from the specified reader or buffer. + * @function decode + * @memberof protos.opts.WriteGroupAzureServiceBusOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {protos.opts.WriteGroupAzureServiceBusOptions} WriteGroupAzureServiceBusOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupAzureServiceBusOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupAzureServiceBusOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message._conn = $root.protos.args.AzureServiceBusConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.AzureServiceBusWriteArgs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a WriteGroupAzureServiceBusOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.WriteGroupAzureServiceBusOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.WriteGroupAzureServiceBusOptions} WriteGroupAzureServiceBusOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WriteGroupAzureServiceBusOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * ProtobufSettings _protobufRootDir. - * @member {string} _protobufRootDir - * @memberof protos.encoding.ProtobufSettings - * @instance + * Verifies a WriteGroupAzureServiceBusOptions message. + * @function verify + * @memberof protos.opts.WriteGroupAzureServiceBusOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ProtobufSettings.prototype._protobufRootDir = ""; + WriteGroupAzureServiceBusOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.AzureServiceBusConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.AzureServiceBusWriteArgs.verify(message.args); + if (error) + return "args." + error; + } + return null; + }; /** - * ProtobufSettings archive. - * @member {Uint8Array} archive - * @memberof protos.encoding.ProtobufSettings - * @instance + * Creates a WriteGroupAzureServiceBusOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof protos.opts.WriteGroupAzureServiceBusOptions + * @static + * @param {Object.} object Plain object + * @returns {protos.opts.WriteGroupAzureServiceBusOptions} WriteGroupAzureServiceBusOptions */ - ProtobufSettings.prototype.archive = $util.newBuffer([]); + WriteGroupAzureServiceBusOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupAzureServiceBusOptions) + return object; + var message = new $root.protos.opts.WriteGroupAzureServiceBusOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupAzureServiceBusOptions._conn: object expected"); + message._conn = $root.protos.args.AzureServiceBusConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupAzureServiceBusOptions.args: object expected"); + message.args = $root.protos.args.AzureServiceBusWriteArgs.fromObject(object.args); + } + return message; + }; /** - * ProtobufSettings _messageDescriptor. - * @member {Uint8Array} _messageDescriptor - * @memberof protos.encoding.ProtobufSettings - * @instance + * Creates a plain object from a WriteGroupAzureServiceBusOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof protos.opts.WriteGroupAzureServiceBusOptions + * @static + * @param {protos.opts.WriteGroupAzureServiceBusOptions} message WriteGroupAzureServiceBusOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ProtobufSettings.prototype._messageDescriptor = $util.newBuffer([]); + WriteGroupAzureServiceBusOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.AzureServiceBusConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.AzureServiceBusWriteArgs.toObject(message.args, options); + return object; + }; /** - * ProtobufSettings protobufEnvelopeType. - * @member {protos.encoding.EnvelopeType} protobufEnvelopeType - * @memberof protos.encoding.ProtobufSettings + * Converts this WriteGroupAzureServiceBusOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupAzureServiceBusOptions * @instance + * @returns {Object.} JSON object */ - ProtobufSettings.prototype.protobufEnvelopeType = 0; + WriteGroupAzureServiceBusOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return WriteGroupAzureServiceBusOptions; + })(); + + opts.WriteGroupMQTTOptions = (function() { /** - * ProtobufSettings shallowEnvelopeMessage. - * @member {string} shallowEnvelopeMessage - * @memberof protos.encoding.ProtobufSettings - * @instance + * Properties of a WriteGroupMQTTOptions. + * @memberof protos.opts + * @interface IWriteGroupMQTTOptions + * @property {protos.args.IMQTTConn|null} [_conn] WriteGroupMQTTOptions _conn + * @property {protos.args.IMQTTWriteArgs|null} [args] WriteGroupMQTTOptions args */ - ProtobufSettings.prototype.shallowEnvelopeMessage = ""; /** - * ProtobufSettings shallowEnvelopeFieldNumber. - * @member {number} shallowEnvelopeFieldNumber - * @memberof protos.encoding.ProtobufSettings - * @instance + * Constructs a new WriteGroupMQTTOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupMQTTOptions. + * @implements IWriteGroupMQTTOptions + * @constructor + * @param {protos.opts.IWriteGroupMQTTOptions=} [properties] Properties to set */ - ProtobufSettings.prototype.shallowEnvelopeFieldNumber = 0; + function WriteGroupMQTTOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ProtobufSettings _shallowEnvelopeMessageDescriptor. - * @member {Uint8Array} _shallowEnvelopeMessageDescriptor - * @memberof protos.encoding.ProtobufSettings + * WriteGroupMQTTOptions _conn. + * @member {protos.args.IMQTTConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupMQTTOptions * @instance */ - ProtobufSettings.prototype._shallowEnvelopeMessageDescriptor = $util.newBuffer([]); + WriteGroupMQTTOptions.prototype._conn = null; /** - * ProtobufSettings protobufDescriptorSet. - * @member {string} protobufDescriptorSet - * @memberof protos.encoding.ProtobufSettings + * WriteGroupMQTTOptions args. + * @member {protos.args.IMQTTWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupMQTTOptions * @instance */ - ProtobufSettings.prototype.protobufDescriptorSet = ""; + WriteGroupMQTTOptions.prototype.args = null; /** - * Creates a new ProtobufSettings instance using the specified properties. + * Creates a new WriteGroupMQTTOptions instance using the specified properties. * @function create - * @memberof protos.encoding.ProtobufSettings + * @memberof protos.opts.WriteGroupMQTTOptions * @static - * @param {protos.encoding.IProtobufSettings=} [properties] Properties to set - * @returns {protos.encoding.ProtobufSettings} ProtobufSettings instance + * @param {protos.opts.IWriteGroupMQTTOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupMQTTOptions} WriteGroupMQTTOptions instance */ - ProtobufSettings.create = function create(properties) { - return new ProtobufSettings(properties); + WriteGroupMQTTOptions.create = function create(properties) { + return new WriteGroupMQTTOptions(properties); }; /** - * Encodes the specified ProtobufSettings message. Does not implicitly {@link protos.encoding.ProtobufSettings.verify|verify} messages. + * Encodes the specified WriteGroupMQTTOptions message. Does not implicitly {@link protos.opts.WriteGroupMQTTOptions.verify|verify} messages. * @function encode - * @memberof protos.encoding.ProtobufSettings + * @memberof protos.opts.WriteGroupMQTTOptions * @static - * @param {protos.encoding.IProtobufSettings} message ProtobufSettings message or plain object to encode + * @param {protos.opts.IWriteGroupMQTTOptions} message WriteGroupMQTTOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProtobufSettings.encode = function encode(message, writer) { + WriteGroupMQTTOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.protobufRootMessage != null && Object.hasOwnProperty.call(message, "protobufRootMessage")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.protobufRootMessage); - if (message.protobufDirs != null && message.protobufDirs.length) - for (var i = 0; i < message.protobufDirs.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.protobufDirs[i]); - if (message._protobufRootDir != null && Object.hasOwnProperty.call(message, "_protobufRootDir")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message._protobufRootDir); - if (message.archive != null && Object.hasOwnProperty.call(message, "archive")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.archive); - if (message._messageDescriptor != null && Object.hasOwnProperty.call(message, "_messageDescriptor")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message._messageDescriptor); - if (message.protobufEnvelopeType != null && Object.hasOwnProperty.call(message, "protobufEnvelopeType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.protobufEnvelopeType); - if (message.shallowEnvelopeMessage != null && Object.hasOwnProperty.call(message, "shallowEnvelopeMessage")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.shallowEnvelopeMessage); - if (message.shallowEnvelopeFieldNumber != null && Object.hasOwnProperty.call(message, "shallowEnvelopeFieldNumber")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.shallowEnvelopeFieldNumber); - if (message._shallowEnvelopeMessageDescriptor != null && Object.hasOwnProperty.call(message, "_shallowEnvelopeMessageDescriptor")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message._shallowEnvelopeMessageDescriptor); - if (message.protobufDescriptorSet != null && Object.hasOwnProperty.call(message, "protobufDescriptorSet")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.protobufDescriptorSet); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.MQTTConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.MQTTWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ProtobufSettings message, length delimited. Does not implicitly {@link protos.encoding.ProtobufSettings.verify|verify} messages. + * Encodes the specified WriteGroupMQTTOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupMQTTOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.encoding.ProtobufSettings + * @memberof protos.opts.WriteGroupMQTTOptions * @static - * @param {protos.encoding.IProtobufSettings} message ProtobufSettings message or plain object to encode + * @param {protos.opts.IWriteGroupMQTTOptions} message WriteGroupMQTTOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ProtobufSettings.encodeDelimited = function encodeDelimited(message, writer) { + WriteGroupMQTTOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ProtobufSettings message from the specified reader or buffer. + * Decodes a WriteGroupMQTTOptions message from the specified reader or buffer. * @function decode - * @memberof protos.encoding.ProtobufSettings + * @memberof protos.opts.WriteGroupMQTTOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.encoding.ProtobufSettings} ProtobufSettings + * @returns {protos.opts.WriteGroupMQTTOptions} WriteGroupMQTTOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ProtobufSettings.decode = function decode(reader, length) { + WriteGroupMQTTOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.ProtobufSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupMQTTOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.protobufRootMessage = reader.string(); + message._conn = $root.protos.args.MQTTConn.decode(reader, reader.uint32()); break; case 2: - if (!(message.protobufDirs && message.protobufDirs.length)) - message.protobufDirs = []; - message.protobufDirs.push(reader.string()); - break; - case 3: - message._protobufRootDir = reader.string(); - break; - case 4: - message.archive = reader.bytes(); - break; - case 5: - message._messageDescriptor = reader.bytes(); - break; - case 6: - message.protobufEnvelopeType = reader.int32(); - break; - case 7: - message.shallowEnvelopeMessage = reader.string(); - break; - case 8: - message.shallowEnvelopeFieldNumber = reader.int32(); - break; - case 9: - message._shallowEnvelopeMessageDescriptor = reader.bytes(); - break; - case 10: - message.protobufDescriptorSet = reader.string(); + message.args = $root.protos.args.MQTTWriteArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -61685,239 +33609,127 @@ $root.protos = (function() { }; /** - * Decodes a ProtobufSettings message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupMQTTOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.encoding.ProtobufSettings + * @memberof protos.opts.WriteGroupMQTTOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.encoding.ProtobufSettings} ProtobufSettings + * @returns {protos.opts.WriteGroupMQTTOptions} WriteGroupMQTTOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ProtobufSettings.decodeDelimited = function decodeDelimited(reader) { + WriteGroupMQTTOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ProtobufSettings message. + * Verifies a WriteGroupMQTTOptions message. * @function verify - * @memberof protos.encoding.ProtobufSettings + * @memberof protos.opts.WriteGroupMQTTOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ProtobufSettings.verify = function verify(message) { + WriteGroupMQTTOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.protobufRootMessage != null && message.hasOwnProperty("protobufRootMessage")) - if (!$util.isString(message.protobufRootMessage)) - return "protobufRootMessage: string expected"; - if (message.protobufDirs != null && message.hasOwnProperty("protobufDirs")) { - if (!Array.isArray(message.protobufDirs)) - return "protobufDirs: array expected"; - for (var i = 0; i < message.protobufDirs.length; ++i) - if (!$util.isString(message.protobufDirs[i])) - return "protobufDirs: string[] expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.MQTTConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.MQTTWriteArgs.verify(message.args); + if (error) + return "args." + error; } - if (message._protobufRootDir != null && message.hasOwnProperty("_protobufRootDir")) - if (!$util.isString(message._protobufRootDir)) - return "_protobufRootDir: string expected"; - if (message.archive != null && message.hasOwnProperty("archive")) - if (!(message.archive && typeof message.archive.length === "number" || $util.isString(message.archive))) - return "archive: buffer expected"; - if (message._messageDescriptor != null && message.hasOwnProperty("_messageDescriptor")) - if (!(message._messageDescriptor && typeof message._messageDescriptor.length === "number" || $util.isString(message._messageDescriptor))) - return "_messageDescriptor: buffer expected"; - if (message.protobufEnvelopeType != null && message.hasOwnProperty("protobufEnvelopeType")) - switch (message.protobufEnvelopeType) { - default: - return "protobufEnvelopeType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.shallowEnvelopeMessage != null && message.hasOwnProperty("shallowEnvelopeMessage")) - if (!$util.isString(message.shallowEnvelopeMessage)) - return "shallowEnvelopeMessage: string expected"; - if (message.shallowEnvelopeFieldNumber != null && message.hasOwnProperty("shallowEnvelopeFieldNumber")) - if (!$util.isInteger(message.shallowEnvelopeFieldNumber)) - return "shallowEnvelopeFieldNumber: integer expected"; - if (message._shallowEnvelopeMessageDescriptor != null && message.hasOwnProperty("_shallowEnvelopeMessageDescriptor")) - if (!(message._shallowEnvelopeMessageDescriptor && typeof message._shallowEnvelopeMessageDescriptor.length === "number" || $util.isString(message._shallowEnvelopeMessageDescriptor))) - return "_shallowEnvelopeMessageDescriptor: buffer expected"; - if (message.protobufDescriptorSet != null && message.hasOwnProperty("protobufDescriptorSet")) - if (!$util.isString(message.protobufDescriptorSet)) - return "protobufDescriptorSet: string expected"; return null; }; /** - * Creates a ProtobufSettings message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupMQTTOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.encoding.ProtobufSettings + * @memberof protos.opts.WriteGroupMQTTOptions * @static * @param {Object.} object Plain object - * @returns {protos.encoding.ProtobufSettings} ProtobufSettings + * @returns {protos.opts.WriteGroupMQTTOptions} WriteGroupMQTTOptions */ - ProtobufSettings.fromObject = function fromObject(object) { - if (object instanceof $root.protos.encoding.ProtobufSettings) + WriteGroupMQTTOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupMQTTOptions) return object; - var message = new $root.protos.encoding.ProtobufSettings(); - if (object.protobufRootMessage != null) - message.protobufRootMessage = String(object.protobufRootMessage); - if (object.protobufDirs) { - if (!Array.isArray(object.protobufDirs)) - throw TypeError(".protos.encoding.ProtobufSettings.protobufDirs: array expected"); - message.protobufDirs = []; - for (var i = 0; i < object.protobufDirs.length; ++i) - message.protobufDirs[i] = String(object.protobufDirs[i]); + var message = new $root.protos.opts.WriteGroupMQTTOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupMQTTOptions._conn: object expected"); + message._conn = $root.protos.args.MQTTConn.fromObject(object._conn); } - if (object._protobufRootDir != null) - message._protobufRootDir = String(object._protobufRootDir); - if (object.archive != null) - if (typeof object.archive === "string") - $util.base64.decode(object.archive, message.archive = $util.newBuffer($util.base64.length(object.archive)), 0); - else if (object.archive.length) - message.archive = object.archive; - if (object._messageDescriptor != null) - if (typeof object._messageDescriptor === "string") - $util.base64.decode(object._messageDescriptor, message._messageDescriptor = $util.newBuffer($util.base64.length(object._messageDescriptor)), 0); - else if (object._messageDescriptor.length) - message._messageDescriptor = object._messageDescriptor; - switch (object.protobufEnvelopeType) { - case "ENVELOPE_TYPE_UNSET": - case 0: - message.protobufEnvelopeType = 0; - break; - case "ENVELOPE_TYPE_DEEP": - case 1: - message.protobufEnvelopeType = 1; - break; - case "ENVELOPE_TYPE_SHALLOW": - case 2: - message.protobufEnvelopeType = 2; - break; + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupMQTTOptions.args: object expected"); + message.args = $root.protos.args.MQTTWriteArgs.fromObject(object.args); } - if (object.shallowEnvelopeMessage != null) - message.shallowEnvelopeMessage = String(object.shallowEnvelopeMessage); - if (object.shallowEnvelopeFieldNumber != null) - message.shallowEnvelopeFieldNumber = object.shallowEnvelopeFieldNumber | 0; - if (object._shallowEnvelopeMessageDescriptor != null) - if (typeof object._shallowEnvelopeMessageDescriptor === "string") - $util.base64.decode(object._shallowEnvelopeMessageDescriptor, message._shallowEnvelopeMessageDescriptor = $util.newBuffer($util.base64.length(object._shallowEnvelopeMessageDescriptor)), 0); - else if (object._shallowEnvelopeMessageDescriptor.length) - message._shallowEnvelopeMessageDescriptor = object._shallowEnvelopeMessageDescriptor; - if (object.protobufDescriptorSet != null) - message.protobufDescriptorSet = String(object.protobufDescriptorSet); return message; }; /** - * Creates a plain object from a ProtobufSettings message. Also converts values to other types if specified. + * Creates a plain object from a WriteGroupMQTTOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.encoding.ProtobufSettings + * @memberof protos.opts.WriteGroupMQTTOptions * @static - * @param {protos.encoding.ProtobufSettings} message ProtobufSettings + * @param {protos.opts.WriteGroupMQTTOptions} message WriteGroupMQTTOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ProtobufSettings.toObject = function toObject(message, options) { + WriteGroupMQTTOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.protobufDirs = []; if (options.defaults) { - object.protobufRootMessage = ""; - object._protobufRootDir = ""; - if (options.bytes === String) - object.archive = ""; - else { - object.archive = []; - if (options.bytes !== Array) - object.archive = $util.newBuffer(object.archive); - } - if (options.bytes === String) - object._messageDescriptor = ""; - else { - object._messageDescriptor = []; - if (options.bytes !== Array) - object._messageDescriptor = $util.newBuffer(object._messageDescriptor); - } - object.protobufEnvelopeType = options.enums === String ? "ENVELOPE_TYPE_UNSET" : 0; - object.shallowEnvelopeMessage = ""; - object.shallowEnvelopeFieldNumber = 0; - if (options.bytes === String) - object._shallowEnvelopeMessageDescriptor = ""; - else { - object._shallowEnvelopeMessageDescriptor = []; - if (options.bytes !== Array) - object._shallowEnvelopeMessageDescriptor = $util.newBuffer(object._shallowEnvelopeMessageDescriptor); - } - object.protobufDescriptorSet = ""; - } - if (message.protobufRootMessage != null && message.hasOwnProperty("protobufRootMessage")) - object.protobufRootMessage = message.protobufRootMessage; - if (message.protobufDirs && message.protobufDirs.length) { - object.protobufDirs = []; - for (var j = 0; j < message.protobufDirs.length; ++j) - object.protobufDirs[j] = message.protobufDirs[j]; + object._conn = null; + object.args = null; } - if (message._protobufRootDir != null && message.hasOwnProperty("_protobufRootDir")) - object._protobufRootDir = message._protobufRootDir; - if (message.archive != null && message.hasOwnProperty("archive")) - object.archive = options.bytes === String ? $util.base64.encode(message.archive, 0, message.archive.length) : options.bytes === Array ? Array.prototype.slice.call(message.archive) : message.archive; - if (message._messageDescriptor != null && message.hasOwnProperty("_messageDescriptor")) - object._messageDescriptor = options.bytes === String ? $util.base64.encode(message._messageDescriptor, 0, message._messageDescriptor.length) : options.bytes === Array ? Array.prototype.slice.call(message._messageDescriptor) : message._messageDescriptor; - if (message.protobufEnvelopeType != null && message.hasOwnProperty("protobufEnvelopeType")) - object.protobufEnvelopeType = options.enums === String ? $root.protos.encoding.EnvelopeType[message.protobufEnvelopeType] : message.protobufEnvelopeType; - if (message.shallowEnvelopeMessage != null && message.hasOwnProperty("shallowEnvelopeMessage")) - object.shallowEnvelopeMessage = message.shallowEnvelopeMessage; - if (message.shallowEnvelopeFieldNumber != null && message.hasOwnProperty("shallowEnvelopeFieldNumber")) - object.shallowEnvelopeFieldNumber = message.shallowEnvelopeFieldNumber; - if (message._shallowEnvelopeMessageDescriptor != null && message.hasOwnProperty("_shallowEnvelopeMessageDescriptor")) - object._shallowEnvelopeMessageDescriptor = options.bytes === String ? $util.base64.encode(message._shallowEnvelopeMessageDescriptor, 0, message._shallowEnvelopeMessageDescriptor.length) : options.bytes === Array ? Array.prototype.slice.call(message._shallowEnvelopeMessageDescriptor) : message._shallowEnvelopeMessageDescriptor; - if (message.protobufDescriptorSet != null && message.hasOwnProperty("protobufDescriptorSet")) - object.protobufDescriptorSet = message.protobufDescriptorSet; + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.MQTTConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.MQTTWriteArgs.toObject(message.args, options); return object; }; /** - * Converts this ProtobufSettings to JSON. + * Converts this WriteGroupMQTTOptions to JSON. * @function toJSON - * @memberof protos.encoding.ProtobufSettings + * @memberof protos.opts.WriteGroupMQTTOptions * @instance * @returns {Object.} JSON object */ - ProtobufSettings.prototype.toJSON = function toJSON() { + WriteGroupMQTTOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ProtobufSettings; + return WriteGroupMQTTOptions; })(); - encoding.AvroSettings = (function() { + opts.WriteGroupGCPPubSubOptions = (function() { /** - * Properties of an AvroSettings. - * @memberof protos.encoding - * @interface IAvroSettings - * @property {string|null} [avroSchemaFile] AvroSettings avroSchemaFile - * @property {Uint8Array|null} [schema] AvroSettings schema + * Properties of a WriteGroupGCPPubSubOptions. + * @memberof protos.opts + * @interface IWriteGroupGCPPubSubOptions + * @property {protos.args.IGCPPubSubConn|null} [_conn] WriteGroupGCPPubSubOptions _conn + * @property {protos.args.IGCPPubSubWriteArgs|null} [args] WriteGroupGCPPubSubOptions args */ /** - * Constructs a new AvroSettings. - * @memberof protos.encoding - * @classdesc Represents an AvroSettings. - * @implements IAvroSettings + * Constructs a new WriteGroupGCPPubSubOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupGCPPubSubOptions. + * @implements IWriteGroupGCPPubSubOptions * @constructor - * @param {protos.encoding.IAvroSettings=} [properties] Properties to set + * @param {protos.opts.IWriteGroupGCPPubSubOptions=} [properties] Properties to set */ - function AvroSettings(properties) { + function WriteGroupGCPPubSubOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61925,88 +33737,88 @@ $root.protos = (function() { } /** - * AvroSettings avroSchemaFile. - * @member {string} avroSchemaFile - * @memberof protos.encoding.AvroSettings + * WriteGroupGCPPubSubOptions _conn. + * @member {protos.args.IGCPPubSubConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupGCPPubSubOptions * @instance */ - AvroSettings.prototype.avroSchemaFile = ""; + WriteGroupGCPPubSubOptions.prototype._conn = null; /** - * AvroSettings schema. - * @member {Uint8Array} schema - * @memberof protos.encoding.AvroSettings + * WriteGroupGCPPubSubOptions args. + * @member {protos.args.IGCPPubSubWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupGCPPubSubOptions * @instance */ - AvroSettings.prototype.schema = $util.newBuffer([]); + WriteGroupGCPPubSubOptions.prototype.args = null; /** - * Creates a new AvroSettings instance using the specified properties. + * Creates a new WriteGroupGCPPubSubOptions instance using the specified properties. * @function create - * @memberof protos.encoding.AvroSettings + * @memberof protos.opts.WriteGroupGCPPubSubOptions * @static - * @param {protos.encoding.IAvroSettings=} [properties] Properties to set - * @returns {protos.encoding.AvroSettings} AvroSettings instance + * @param {protos.opts.IWriteGroupGCPPubSubOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupGCPPubSubOptions} WriteGroupGCPPubSubOptions instance */ - AvroSettings.create = function create(properties) { - return new AvroSettings(properties); + WriteGroupGCPPubSubOptions.create = function create(properties) { + return new WriteGroupGCPPubSubOptions(properties); }; /** - * Encodes the specified AvroSettings message. Does not implicitly {@link protos.encoding.AvroSettings.verify|verify} messages. + * Encodes the specified WriteGroupGCPPubSubOptions message. Does not implicitly {@link protos.opts.WriteGroupGCPPubSubOptions.verify|verify} messages. * @function encode - * @memberof protos.encoding.AvroSettings + * @memberof protos.opts.WriteGroupGCPPubSubOptions * @static - * @param {protos.encoding.IAvroSettings} message AvroSettings message or plain object to encode + * @param {protos.opts.IWriteGroupGCPPubSubOptions} message WriteGroupGCPPubSubOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AvroSettings.encode = function encode(message, writer) { + WriteGroupGCPPubSubOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.avroSchemaFile != null && Object.hasOwnProperty.call(message, "avroSchemaFile")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.avroSchemaFile); - if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.schema); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.GCPPubSubConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.GCPPubSubWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified AvroSettings message, length delimited. Does not implicitly {@link protos.encoding.AvroSettings.verify|verify} messages. + * Encodes the specified WriteGroupGCPPubSubOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupGCPPubSubOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.encoding.AvroSettings + * @memberof protos.opts.WriteGroupGCPPubSubOptions * @static - * @param {protos.encoding.IAvroSettings} message AvroSettings message or plain object to encode + * @param {protos.opts.IWriteGroupGCPPubSubOptions} message WriteGroupGCPPubSubOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AvroSettings.encodeDelimited = function encodeDelimited(message, writer) { + WriteGroupGCPPubSubOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AvroSettings message from the specified reader or buffer. + * Decodes a WriteGroupGCPPubSubOptions message from the specified reader or buffer. * @function decode - * @memberof protos.encoding.AvroSettings + * @memberof protos.opts.WriteGroupGCPPubSubOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.encoding.AvroSettings} AvroSettings + * @returns {protos.opts.WriteGroupGCPPubSubOptions} WriteGroupGCPPubSubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AvroSettings.decode = function decode(reader, length) { + WriteGroupGCPPubSubOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.AvroSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupGCPPubSubOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.avroSchemaFile = reader.string(); + message._conn = $root.protos.args.GCPPubSubConn.decode(reader, reader.uint32()); break; case 2: - message.schema = reader.bytes(); + message.args = $root.protos.args.GCPPubSubWriteArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -62017,127 +33829,127 @@ $root.protos = (function() { }; /** - * Decodes an AvroSettings message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupGCPPubSubOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.encoding.AvroSettings + * @memberof protos.opts.WriteGroupGCPPubSubOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.encoding.AvroSettings} AvroSettings + * @returns {protos.opts.WriteGroupGCPPubSubOptions} WriteGroupGCPPubSubOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AvroSettings.decodeDelimited = function decodeDelimited(reader) { + WriteGroupGCPPubSubOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AvroSettings message. + * Verifies a WriteGroupGCPPubSubOptions message. * @function verify - * @memberof protos.encoding.AvroSettings + * @memberof protos.opts.WriteGroupGCPPubSubOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AvroSettings.verify = function verify(message) { + WriteGroupGCPPubSubOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.avroSchemaFile != null && message.hasOwnProperty("avroSchemaFile")) - if (!$util.isString(message.avroSchemaFile)) - return "avroSchemaFile: string expected"; - if (message.schema != null && message.hasOwnProperty("schema")) - if (!(message.schema && typeof message.schema.length === "number" || $util.isString(message.schema))) - return "schema: buffer expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.GCPPubSubConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.GCPPubSubWriteArgs.verify(message.args); + if (error) + return "args." + error; + } return null; }; /** - * Creates an AvroSettings message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupGCPPubSubOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.encoding.AvroSettings + * @memberof protos.opts.WriteGroupGCPPubSubOptions * @static * @param {Object.} object Plain object - * @returns {protos.encoding.AvroSettings} AvroSettings + * @returns {protos.opts.WriteGroupGCPPubSubOptions} WriteGroupGCPPubSubOptions */ - AvroSettings.fromObject = function fromObject(object) { - if (object instanceof $root.protos.encoding.AvroSettings) + WriteGroupGCPPubSubOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupGCPPubSubOptions) return object; - var message = new $root.protos.encoding.AvroSettings(); - if (object.avroSchemaFile != null) - message.avroSchemaFile = String(object.avroSchemaFile); - if (object.schema != null) - if (typeof object.schema === "string") - $util.base64.decode(object.schema, message.schema = $util.newBuffer($util.base64.length(object.schema)), 0); - else if (object.schema.length) - message.schema = object.schema; + var message = new $root.protos.opts.WriteGroupGCPPubSubOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupGCPPubSubOptions._conn: object expected"); + message._conn = $root.protos.args.GCPPubSubConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupGCPPubSubOptions.args: object expected"); + message.args = $root.protos.args.GCPPubSubWriteArgs.fromObject(object.args); + } return message; }; /** - * Creates a plain object from an AvroSettings message. Also converts values to other types if specified. + * Creates a plain object from a WriteGroupGCPPubSubOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.encoding.AvroSettings + * @memberof protos.opts.WriteGroupGCPPubSubOptions * @static - * @param {protos.encoding.AvroSettings} message AvroSettings + * @param {protos.opts.WriteGroupGCPPubSubOptions} message WriteGroupGCPPubSubOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AvroSettings.toObject = function toObject(message, options) { + WriteGroupGCPPubSubOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.avroSchemaFile = ""; - if (options.bytes === String) - object.schema = ""; - else { - object.schema = []; - if (options.bytes !== Array) - object.schema = $util.newBuffer(object.schema); - } + object._conn = null; + object.args = null; } - if (message.avroSchemaFile != null && message.hasOwnProperty("avroSchemaFile")) - object.avroSchemaFile = message.avroSchemaFile; - if (message.schema != null && message.hasOwnProperty("schema")) - object.schema = options.bytes === String ? $util.base64.encode(message.schema, 0, message.schema.length) : options.bytes === Array ? Array.prototype.slice.call(message.schema) : message.schema; + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.GCPPubSubConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.GCPPubSubWriteArgs.toObject(message.args, options); return object; }; /** - * Converts this AvroSettings to JSON. + * Converts this WriteGroupGCPPubSubOptions to JSON. * @function toJSON - * @memberof protos.encoding.AvroSettings + * @memberof protos.opts.WriteGroupGCPPubSubOptions * @instance * @returns {Object.} JSON object */ - AvroSettings.prototype.toJSON = function toJSON() { + WriteGroupGCPPubSubOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AvroSettings; + return WriteGroupGCPPubSubOptions; })(); - encoding.ThriftSettings = (function() { + opts.WriteGroupKubeMQQueueOptions = (function() { /** - * Properties of a ThriftSettings. - * @memberof protos.encoding - * @interface IThriftSettings - * @property {Array.|null} [thriftDirs] ThriftSettings thriftDirs - * @property {string|null} [thriftStruct] ThriftSettings thriftStruct + * Properties of a WriteGroupKubeMQQueueOptions. + * @memberof protos.opts + * @interface IWriteGroupKubeMQQueueOptions + * @property {protos.args.IKubeMQQueueConn|null} [_conn] WriteGroupKubeMQQueueOptions _conn + * @property {protos.args.IKubeMQQueueWriteArgs|null} [args] WriteGroupKubeMQQueueOptions args */ /** - * Constructs a new ThriftSettings. - * @memberof protos.encoding - * @classdesc Represents a ThriftSettings. - * @implements IThriftSettings + * Constructs a new WriteGroupKubeMQQueueOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupKubeMQQueueOptions. + * @implements IWriteGroupKubeMQQueueOptions * @constructor - * @param {protos.encoding.IThriftSettings=} [properties] Properties to set + * @param {protos.opts.IWriteGroupKubeMQQueueOptions=} [properties] Properties to set */ - function ThriftSettings(properties) { - this.thriftDirs = []; + function WriteGroupKubeMQQueueOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62145,91 +33957,88 @@ $root.protos = (function() { } /** - * ThriftSettings thriftDirs. - * @member {Array.} thriftDirs - * @memberof protos.encoding.ThriftSettings + * WriteGroupKubeMQQueueOptions _conn. + * @member {protos.args.IKubeMQQueueConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupKubeMQQueueOptions * @instance */ - ThriftSettings.prototype.thriftDirs = $util.emptyArray; + WriteGroupKubeMQQueueOptions.prototype._conn = null; /** - * ThriftSettings thriftStruct. - * @member {string} thriftStruct - * @memberof protos.encoding.ThriftSettings + * WriteGroupKubeMQQueueOptions args. + * @member {protos.args.IKubeMQQueueWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupKubeMQQueueOptions * @instance */ - ThriftSettings.prototype.thriftStruct = ""; + WriteGroupKubeMQQueueOptions.prototype.args = null; /** - * Creates a new ThriftSettings instance using the specified properties. + * Creates a new WriteGroupKubeMQQueueOptions instance using the specified properties. * @function create - * @memberof protos.encoding.ThriftSettings + * @memberof protos.opts.WriteGroupKubeMQQueueOptions * @static - * @param {protos.encoding.IThriftSettings=} [properties] Properties to set - * @returns {protos.encoding.ThriftSettings} ThriftSettings instance + * @param {protos.opts.IWriteGroupKubeMQQueueOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupKubeMQQueueOptions} WriteGroupKubeMQQueueOptions instance */ - ThriftSettings.create = function create(properties) { - return new ThriftSettings(properties); + WriteGroupKubeMQQueueOptions.create = function create(properties) { + return new WriteGroupKubeMQQueueOptions(properties); }; /** - * Encodes the specified ThriftSettings message. Does not implicitly {@link protos.encoding.ThriftSettings.verify|verify} messages. + * Encodes the specified WriteGroupKubeMQQueueOptions message. Does not implicitly {@link protos.opts.WriteGroupKubeMQQueueOptions.verify|verify} messages. * @function encode - * @memberof protos.encoding.ThriftSettings + * @memberof protos.opts.WriteGroupKubeMQQueueOptions * @static - * @param {protos.encoding.IThriftSettings} message ThriftSettings message or plain object to encode + * @param {protos.opts.IWriteGroupKubeMQQueueOptions} message WriteGroupKubeMQQueueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ThriftSettings.encode = function encode(message, writer) { + WriteGroupKubeMQQueueOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.thriftDirs != null && message.thriftDirs.length) - for (var i = 0; i < message.thriftDirs.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.thriftDirs[i]); - if (message.thriftStruct != null && Object.hasOwnProperty.call(message, "thriftStruct")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.thriftStruct); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.KubeMQQueueConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.KubeMQQueueWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ThriftSettings message, length delimited. Does not implicitly {@link protos.encoding.ThriftSettings.verify|verify} messages. + * Encodes the specified WriteGroupKubeMQQueueOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupKubeMQQueueOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.encoding.ThriftSettings + * @memberof protos.opts.WriteGroupKubeMQQueueOptions * @static - * @param {protos.encoding.IThriftSettings} message ThriftSettings message or plain object to encode + * @param {protos.opts.IWriteGroupKubeMQQueueOptions} message WriteGroupKubeMQQueueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ThriftSettings.encodeDelimited = function encodeDelimited(message, writer) { + WriteGroupKubeMQQueueOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ThriftSettings message from the specified reader or buffer. + * Decodes a WriteGroupKubeMQQueueOptions message from the specified reader or buffer. * @function decode - * @memberof protos.encoding.ThriftSettings + * @memberof protos.opts.WriteGroupKubeMQQueueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.encoding.ThriftSettings} ThriftSettings + * @returns {protos.opts.WriteGroupKubeMQQueueOptions} WriteGroupKubeMQQueueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ThriftSettings.decode = function decode(reader, length) { + WriteGroupKubeMQQueueOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.ThriftSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupKubeMQQueueOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.thriftDirs && message.thriftDirs.length)) - message.thriftDirs = []; - message.thriftDirs.push(reader.string()); + message._conn = $root.protos.args.KubeMQQueueConn.decode(reader, reader.uint32()); break; case 2: - message.thriftStruct = reader.string(); + message.args = $root.protos.args.KubeMQQueueWriteArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -62240,128 +34049,127 @@ $root.protos = (function() { }; /** - * Decodes a ThriftSettings message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupKubeMQQueueOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.encoding.ThriftSettings + * @memberof protos.opts.WriteGroupKubeMQQueueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.encoding.ThriftSettings} ThriftSettings + * @returns {protos.opts.WriteGroupKubeMQQueueOptions} WriteGroupKubeMQQueueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ThriftSettings.decodeDelimited = function decodeDelimited(reader) { + WriteGroupKubeMQQueueOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ThriftSettings message. + * Verifies a WriteGroupKubeMQQueueOptions message. * @function verify - * @memberof protos.encoding.ThriftSettings + * @memberof protos.opts.WriteGroupKubeMQQueueOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ThriftSettings.verify = function verify(message) { + WriteGroupKubeMQQueueOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.thriftDirs != null && message.hasOwnProperty("thriftDirs")) { - if (!Array.isArray(message.thriftDirs)) - return "thriftDirs: array expected"; - for (var i = 0; i < message.thriftDirs.length; ++i) - if (!$util.isString(message.thriftDirs[i])) - return "thriftDirs: string[] expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.KubeMQQueueConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.KubeMQQueueWriteArgs.verify(message.args); + if (error) + return "args." + error; } - if (message.thriftStruct != null && message.hasOwnProperty("thriftStruct")) - if (!$util.isString(message.thriftStruct)) - return "thriftStruct: string expected"; return null; }; /** - * Creates a ThriftSettings message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupKubeMQQueueOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.encoding.ThriftSettings + * @memberof protos.opts.WriteGroupKubeMQQueueOptions * @static * @param {Object.} object Plain object - * @returns {protos.encoding.ThriftSettings} ThriftSettings + * @returns {protos.opts.WriteGroupKubeMQQueueOptions} WriteGroupKubeMQQueueOptions */ - ThriftSettings.fromObject = function fromObject(object) { - if (object instanceof $root.protos.encoding.ThriftSettings) + WriteGroupKubeMQQueueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupKubeMQQueueOptions) return object; - var message = new $root.protos.encoding.ThriftSettings(); - if (object.thriftDirs) { - if (!Array.isArray(object.thriftDirs)) - throw TypeError(".protos.encoding.ThriftSettings.thriftDirs: array expected"); - message.thriftDirs = []; - for (var i = 0; i < object.thriftDirs.length; ++i) - message.thriftDirs[i] = String(object.thriftDirs[i]); + var message = new $root.protos.opts.WriteGroupKubeMQQueueOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupKubeMQQueueOptions._conn: object expected"); + message._conn = $root.protos.args.KubeMQQueueConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupKubeMQQueueOptions.args: object expected"); + message.args = $root.protos.args.KubeMQQueueWriteArgs.fromObject(object.args); } - if (object.thriftStruct != null) - message.thriftStruct = String(object.thriftStruct); return message; }; /** - * Creates a plain object from a ThriftSettings message. Also converts values to other types if specified. + * Creates a plain object from a WriteGroupKubeMQQueueOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.encoding.ThriftSettings + * @memberof protos.opts.WriteGroupKubeMQQueueOptions * @static - * @param {protos.encoding.ThriftSettings} message ThriftSettings + * @param {protos.opts.WriteGroupKubeMQQueueOptions} message WriteGroupKubeMQQueueOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ThriftSettings.toObject = function toObject(message, options) { + WriteGroupKubeMQQueueOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.thriftDirs = []; - if (options.defaults) - object.thriftStruct = ""; - if (message.thriftDirs && message.thriftDirs.length) { - object.thriftDirs = []; - for (var j = 0; j < message.thriftDirs.length; ++j) - object.thriftDirs[j] = message.thriftDirs[j]; + if (options.defaults) { + object._conn = null; + object.args = null; } - if (message.thriftStruct != null && message.hasOwnProperty("thriftStruct")) - object.thriftStruct = message.thriftStruct; + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.KubeMQQueueConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.KubeMQQueueWriteArgs.toObject(message.args, options); return object; }; /** - * Converts this ThriftSettings to JSON. + * Converts this WriteGroupKubeMQQueueOptions to JSON. * @function toJSON - * @memberof protos.encoding.ThriftSettings + * @memberof protos.opts.WriteGroupKubeMQQueueOptions * @instance * @returns {Object.} JSON object */ - ThriftSettings.prototype.toJSON = function toJSON() { + WriteGroupKubeMQQueueOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ThriftSettings; + return WriteGroupKubeMQQueueOptions; })(); - encoding.JSONSchemaSettings = (function() { + opts.WriteGroupAWSKinesisOptions = (function() { /** - * Properties of a JSONSchemaSettings. - * @memberof protos.encoding - * @interface IJSONSchemaSettings - * @property {Uint8Array|null} [schema] JSONSchemaSettings schema + * Properties of a WriteGroupAWSKinesisOptions. + * @memberof protos.opts + * @interface IWriteGroupAWSKinesisOptions + * @property {protos.args.IAWSKinesisConn|null} [_conn] WriteGroupAWSKinesisOptions _conn + * @property {protos.args.IAWSKinesisWriteArgs|null} [args] WriteGroupAWSKinesisOptions args */ /** - * Constructs a new JSONSchemaSettings. - * @memberof protos.encoding - * @classdesc Represents a JSONSchemaSettings. - * @implements IJSONSchemaSettings + * Constructs a new WriteGroupAWSKinesisOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupAWSKinesisOptions. + * @implements IWriteGroupAWSKinesisOptions * @constructor - * @param {protos.encoding.IJSONSchemaSettings=} [properties] Properties to set + * @param {protos.opts.IWriteGroupAWSKinesisOptions=} [properties] Properties to set */ - function JSONSchemaSettings(properties) { + function WriteGroupAWSKinesisOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62369,75 +34177,88 @@ $root.protos = (function() { } /** - * JSONSchemaSettings schema. - * @member {Uint8Array} schema - * @memberof protos.encoding.JSONSchemaSettings + * WriteGroupAWSKinesisOptions _conn. + * @member {protos.args.IAWSKinesisConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupAWSKinesisOptions * @instance */ - JSONSchemaSettings.prototype.schema = $util.newBuffer([]); + WriteGroupAWSKinesisOptions.prototype._conn = null; /** - * Creates a new JSONSchemaSettings instance using the specified properties. + * WriteGroupAWSKinesisOptions args. + * @member {protos.args.IAWSKinesisWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupAWSKinesisOptions + * @instance + */ + WriteGroupAWSKinesisOptions.prototype.args = null; + + /** + * Creates a new WriteGroupAWSKinesisOptions instance using the specified properties. * @function create - * @memberof protos.encoding.JSONSchemaSettings + * @memberof protos.opts.WriteGroupAWSKinesisOptions * @static - * @param {protos.encoding.IJSONSchemaSettings=} [properties] Properties to set - * @returns {protos.encoding.JSONSchemaSettings} JSONSchemaSettings instance + * @param {protos.opts.IWriteGroupAWSKinesisOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupAWSKinesisOptions} WriteGroupAWSKinesisOptions instance */ - JSONSchemaSettings.create = function create(properties) { - return new JSONSchemaSettings(properties); + WriteGroupAWSKinesisOptions.create = function create(properties) { + return new WriteGroupAWSKinesisOptions(properties); }; /** - * Encodes the specified JSONSchemaSettings message. Does not implicitly {@link protos.encoding.JSONSchemaSettings.verify|verify} messages. + * Encodes the specified WriteGroupAWSKinesisOptions message. Does not implicitly {@link protos.opts.WriteGroupAWSKinesisOptions.verify|verify} messages. * @function encode - * @memberof protos.encoding.JSONSchemaSettings + * @memberof protos.opts.WriteGroupAWSKinesisOptions * @static - * @param {protos.encoding.IJSONSchemaSettings} message JSONSchemaSettings message or plain object to encode + * @param {protos.opts.IWriteGroupAWSKinesisOptions} message WriteGroupAWSKinesisOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - JSONSchemaSettings.encode = function encode(message, writer) { + WriteGroupAWSKinesisOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.schema); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.AWSKinesisConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.AWSKinesisWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified JSONSchemaSettings message, length delimited. Does not implicitly {@link protos.encoding.JSONSchemaSettings.verify|verify} messages. + * Encodes the specified WriteGroupAWSKinesisOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupAWSKinesisOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.encoding.JSONSchemaSettings + * @memberof protos.opts.WriteGroupAWSKinesisOptions * @static - * @param {protos.encoding.IJSONSchemaSettings} message JSONSchemaSettings message or plain object to encode + * @param {protos.opts.IWriteGroupAWSKinesisOptions} message WriteGroupAWSKinesisOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - JSONSchemaSettings.encodeDelimited = function encodeDelimited(message, writer) { + WriteGroupAWSKinesisOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a JSONSchemaSettings message from the specified reader or buffer. + * Decodes a WriteGroupAWSKinesisOptions message from the specified reader or buffer. * @function decode - * @memberof protos.encoding.JSONSchemaSettings + * @memberof protos.opts.WriteGroupAWSKinesisOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.encoding.JSONSchemaSettings} JSONSchemaSettings + * @returns {protos.opts.WriteGroupAWSKinesisOptions} WriteGroupAWSKinesisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JSONSchemaSettings.decode = function decode(reader, length) { + WriteGroupAWSKinesisOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.JSONSchemaSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupAWSKinesisOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.schema = reader.bytes(); + message._conn = $root.protos.args.AWSKinesisConn.decode(reader, reader.uint32()); + break; + case 2: + message.args = $root.protos.args.AWSKinesisWriteArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -62448,276 +34269,216 @@ $root.protos = (function() { }; /** - * Decodes a JSONSchemaSettings message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupAWSKinesisOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.encoding.JSONSchemaSettings + * @memberof protos.opts.WriteGroupAWSKinesisOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.encoding.JSONSchemaSettings} JSONSchemaSettings + * @returns {protos.opts.WriteGroupAWSKinesisOptions} WriteGroupAWSKinesisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - JSONSchemaSettings.decodeDelimited = function decodeDelimited(reader) { + WriteGroupAWSKinesisOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a JSONSchemaSettings message. + * Verifies a WriteGroupAWSKinesisOptions message. * @function verify - * @memberof protos.encoding.JSONSchemaSettings + * @memberof protos.opts.WriteGroupAWSKinesisOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - JSONSchemaSettings.verify = function verify(message) { + WriteGroupAWSKinesisOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.schema != null && message.hasOwnProperty("schema")) - if (!(message.schema && typeof message.schema.length === "number" || $util.isString(message.schema))) - return "schema: buffer expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.AWSKinesisConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.AWSKinesisWriteArgs.verify(message.args); + if (error) + return "args." + error; + } return null; }; /** - * Creates a JSONSchemaSettings message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupAWSKinesisOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.encoding.JSONSchemaSettings + * @memberof protos.opts.WriteGroupAWSKinesisOptions * @static * @param {Object.} object Plain object - * @returns {protos.encoding.JSONSchemaSettings} JSONSchemaSettings + * @returns {protos.opts.WriteGroupAWSKinesisOptions} WriteGroupAWSKinesisOptions */ - JSONSchemaSettings.fromObject = function fromObject(object) { - if (object instanceof $root.protos.encoding.JSONSchemaSettings) + WriteGroupAWSKinesisOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupAWSKinesisOptions) return object; - var message = new $root.protos.encoding.JSONSchemaSettings(); - if (object.schema != null) - if (typeof object.schema === "string") - $util.base64.decode(object.schema, message.schema = $util.newBuffer($util.base64.length(object.schema)), 0); - else if (object.schema.length) - message.schema = object.schema; + var message = new $root.protos.opts.WriteGroupAWSKinesisOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupAWSKinesisOptions._conn: object expected"); + message._conn = $root.protos.args.AWSKinesisConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupAWSKinesisOptions.args: object expected"); + message.args = $root.protos.args.AWSKinesisWriteArgs.fromObject(object.args); + } return message; }; /** - * Creates a plain object from a JSONSchemaSettings message. Also converts values to other types if specified. + * Creates a plain object from a WriteGroupAWSKinesisOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.encoding.JSONSchemaSettings + * @memberof protos.opts.WriteGroupAWSKinesisOptions * @static - * @param {protos.encoding.JSONSchemaSettings} message JSONSchemaSettings + * @param {protos.opts.WriteGroupAWSKinesisOptions} message WriteGroupAWSKinesisOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - JSONSchemaSettings.toObject = function toObject(message, options) { + WriteGroupAWSKinesisOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - if (options.bytes === String) - object.schema = ""; - else { - object.schema = []; - if (options.bytes !== Array) - object.schema = $util.newBuffer(object.schema); - } - if (message.schema != null && message.hasOwnProperty("schema")) - object.schema = options.bytes === String ? $util.base64.encode(message.schema, 0, message.schema.length) : options.bytes === Array ? Array.prototype.slice.call(message.schema) : message.schema; - return object; - }; - - /** - * Converts this JSONSchemaSettings to JSON. - * @function toJSON - * @memberof protos.encoding.JSONSchemaSettings - * @instance - * @returns {Object.} JSON object - */ - JSONSchemaSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return JSONSchemaSettings; - })(); - - encoding.CloudEventSettings = (function() { - - /** - * Properties of a CloudEventSettings. - * @memberof protos.encoding - * @interface ICloudEventSettings - * @property {string|null} [ceId] CloudEventSettings ceId - * @property {string|null} [ceSource] CloudEventSettings ceSource - * @property {string|null} [ceType] CloudEventSettings ceType - * @property {string|null} [ceSubject] CloudEventSettings ceSubject - * @property {string|null} [ceSpecVersion] CloudEventSettings ceSpecVersion - * @property {string|null} [ceDataContentType] CloudEventSettings ceDataContentType - * @property {string|null} [ceDataSchema] CloudEventSettings ceDataSchema - */ - - /** - * Constructs a new CloudEventSettings. - * @memberof protos.encoding - * @classdesc Represents a CloudEventSettings. - * @implements ICloudEventSettings - * @constructor - * @param {protos.encoding.ICloudEventSettings=} [properties] Properties to set - */ - function CloudEventSettings(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + if (options.defaults) { + object._conn = null; + object.args = null; + } + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.AWSKinesisConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.AWSKinesisWriteArgs.toObject(message.args, options); + return object; + }; /** - * CloudEventSettings ceId. - * @member {string} ceId - * @memberof protos.encoding.CloudEventSettings + * Converts this WriteGroupAWSKinesisOptions to JSON. + * @function toJSON + * @memberof protos.opts.WriteGroupAWSKinesisOptions * @instance + * @returns {Object.} JSON object */ - CloudEventSettings.prototype.ceId = ""; + WriteGroupAWSKinesisOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * CloudEventSettings ceSource. - * @member {string} ceSource - * @memberof protos.encoding.CloudEventSettings - * @instance - */ - CloudEventSettings.prototype.ceSource = ""; + return WriteGroupAWSKinesisOptions; + })(); - /** - * CloudEventSettings ceType. - * @member {string} ceType - * @memberof protos.encoding.CloudEventSettings - * @instance - */ - CloudEventSettings.prototype.ceType = ""; + opts.WriteGroupMemphisOptions = (function() { /** - * CloudEventSettings ceSubject. - * @member {string} ceSubject - * @memberof protos.encoding.CloudEventSettings - * @instance + * Properties of a WriteGroupMemphisOptions. + * @memberof protos.opts + * @interface IWriteGroupMemphisOptions + * @property {protos.args.IMemphisConn|null} [_conn] WriteGroupMemphisOptions _conn + * @property {protos.args.IMemphisWriteArgs|null} [args] WriteGroupMemphisOptions args */ - CloudEventSettings.prototype.ceSubject = ""; /** - * CloudEventSettings ceSpecVersion. - * @member {string} ceSpecVersion - * @memberof protos.encoding.CloudEventSettings - * @instance + * Constructs a new WriteGroupMemphisOptions. + * @memberof protos.opts + * @classdesc Represents a WriteGroupMemphisOptions. + * @implements IWriteGroupMemphisOptions + * @constructor + * @param {protos.opts.IWriteGroupMemphisOptions=} [properties] Properties to set */ - CloudEventSettings.prototype.ceSpecVersion = ""; + function WriteGroupMemphisOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * CloudEventSettings ceDataContentType. - * @member {string} ceDataContentType - * @memberof protos.encoding.CloudEventSettings + * WriteGroupMemphisOptions _conn. + * @member {protos.args.IMemphisConn|null|undefined} _conn + * @memberof protos.opts.WriteGroupMemphisOptions * @instance */ - CloudEventSettings.prototype.ceDataContentType = ""; + WriteGroupMemphisOptions.prototype._conn = null; /** - * CloudEventSettings ceDataSchema. - * @member {string} ceDataSchema - * @memberof protos.encoding.CloudEventSettings + * WriteGroupMemphisOptions args. + * @member {protos.args.IMemphisWriteArgs|null|undefined} args + * @memberof protos.opts.WriteGroupMemphisOptions * @instance */ - CloudEventSettings.prototype.ceDataSchema = ""; + WriteGroupMemphisOptions.prototype.args = null; /** - * Creates a new CloudEventSettings instance using the specified properties. + * Creates a new WriteGroupMemphisOptions instance using the specified properties. * @function create - * @memberof protos.encoding.CloudEventSettings + * @memberof protos.opts.WriteGroupMemphisOptions * @static - * @param {protos.encoding.ICloudEventSettings=} [properties] Properties to set - * @returns {protos.encoding.CloudEventSettings} CloudEventSettings instance + * @param {protos.opts.IWriteGroupMemphisOptions=} [properties] Properties to set + * @returns {protos.opts.WriteGroupMemphisOptions} WriteGroupMemphisOptions instance */ - CloudEventSettings.create = function create(properties) { - return new CloudEventSettings(properties); + WriteGroupMemphisOptions.create = function create(properties) { + return new WriteGroupMemphisOptions(properties); }; /** - * Encodes the specified CloudEventSettings message. Does not implicitly {@link protos.encoding.CloudEventSettings.verify|verify} messages. + * Encodes the specified WriteGroupMemphisOptions message. Does not implicitly {@link protos.opts.WriteGroupMemphisOptions.verify|verify} messages. * @function encode - * @memberof protos.encoding.CloudEventSettings + * @memberof protos.opts.WriteGroupMemphisOptions * @static - * @param {protos.encoding.ICloudEventSettings} message CloudEventSettings message or plain object to encode + * @param {protos.opts.IWriteGroupMemphisOptions} message WriteGroupMemphisOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CloudEventSettings.encode = function encode(message, writer) { + WriteGroupMemphisOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.ceId != null && Object.hasOwnProperty.call(message, "ceId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.ceId); - if (message.ceSource != null && Object.hasOwnProperty.call(message, "ceSource")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.ceSource); - if (message.ceType != null && Object.hasOwnProperty.call(message, "ceType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.ceType); - if (message.ceSubject != null && Object.hasOwnProperty.call(message, "ceSubject")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.ceSubject); - if (message.ceSpecVersion != null && Object.hasOwnProperty.call(message, "ceSpecVersion")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.ceSpecVersion); - if (message.ceDataContentType != null && Object.hasOwnProperty.call(message, "ceDataContentType")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.ceDataContentType); - if (message.ceDataSchema != null && Object.hasOwnProperty.call(message, "ceDataSchema")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.ceDataSchema); + if (message._conn != null && Object.hasOwnProperty.call(message, "_conn")) + $root.protos.args.MemphisConn.encode(message._conn, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.args != null && Object.hasOwnProperty.call(message, "args")) + $root.protos.args.MemphisWriteArgs.encode(message.args, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CloudEventSettings message, length delimited. Does not implicitly {@link protos.encoding.CloudEventSettings.verify|verify} messages. + * Encodes the specified WriteGroupMemphisOptions message, length delimited. Does not implicitly {@link protos.opts.WriteGroupMemphisOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.encoding.CloudEventSettings + * @memberof protos.opts.WriteGroupMemphisOptions * @static - * @param {protos.encoding.ICloudEventSettings} message CloudEventSettings message or plain object to encode + * @param {protos.opts.IWriteGroupMemphisOptions} message WriteGroupMemphisOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CloudEventSettings.encodeDelimited = function encodeDelimited(message, writer) { + WriteGroupMemphisOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CloudEventSettings message from the specified reader or buffer. + * Decodes a WriteGroupMemphisOptions message from the specified reader or buffer. * @function decode - * @memberof protos.encoding.CloudEventSettings + * @memberof protos.opts.WriteGroupMemphisOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.encoding.CloudEventSettings} CloudEventSettings + * @returns {protos.opts.WriteGroupMemphisOptions} WriteGroupMemphisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CloudEventSettings.decode = function decode(reader, length) { + WriteGroupMemphisOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.CloudEventSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.WriteGroupMemphisOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.ceId = reader.string(); + message._conn = $root.protos.args.MemphisConn.decode(reader, reader.uint32()); break; case 2: - message.ceSource = reader.string(); - break; - case 3: - message.ceType = reader.string(); - break; - case 4: - message.ceSubject = reader.string(); - break; - case 5: - message.ceSpecVersion = reader.string(); - break; - case 6: - message.ceDataContentType = reader.string(); - break; - case 7: - message.ceDataSchema = reader.string(); + message.args = $root.protos.args.MemphisWriteArgs.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -62728,160 +34489,150 @@ $root.protos = (function() { }; /** - * Decodes a CloudEventSettings message from the specified reader or buffer, length delimited. + * Decodes a WriteGroupMemphisOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof protos.encoding.CloudEventSettings + * @memberof protos.opts.WriteGroupMemphisOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.encoding.CloudEventSettings} CloudEventSettings + * @returns {protos.opts.WriteGroupMemphisOptions} WriteGroupMemphisOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CloudEventSettings.decodeDelimited = function decodeDelimited(reader) { + WriteGroupMemphisOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CloudEventSettings message. + * Verifies a WriteGroupMemphisOptions message. * @function verify - * @memberof protos.encoding.CloudEventSettings + * @memberof protos.opts.WriteGroupMemphisOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CloudEventSettings.verify = function verify(message) { + WriteGroupMemphisOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.ceId != null && message.hasOwnProperty("ceId")) - if (!$util.isString(message.ceId)) - return "ceId: string expected"; - if (message.ceSource != null && message.hasOwnProperty("ceSource")) - if (!$util.isString(message.ceSource)) - return "ceSource: string expected"; - if (message.ceType != null && message.hasOwnProperty("ceType")) - if (!$util.isString(message.ceType)) - return "ceType: string expected"; - if (message.ceSubject != null && message.hasOwnProperty("ceSubject")) - if (!$util.isString(message.ceSubject)) - return "ceSubject: string expected"; - if (message.ceSpecVersion != null && message.hasOwnProperty("ceSpecVersion")) - if (!$util.isString(message.ceSpecVersion)) - return "ceSpecVersion: string expected"; - if (message.ceDataContentType != null && message.hasOwnProperty("ceDataContentType")) - if (!$util.isString(message.ceDataContentType)) - return "ceDataContentType: string expected"; - if (message.ceDataSchema != null && message.hasOwnProperty("ceDataSchema")) - if (!$util.isString(message.ceDataSchema)) - return "ceDataSchema: string expected"; + if (message._conn != null && message.hasOwnProperty("_conn")) { + var error = $root.protos.args.MemphisConn.verify(message._conn); + if (error) + return "_conn." + error; + } + if (message.args != null && message.hasOwnProperty("args")) { + var error = $root.protos.args.MemphisWriteArgs.verify(message.args); + if (error) + return "args." + error; + } return null; }; /** - * Creates a CloudEventSettings message from a plain object. Also converts values to their respective internal types. + * Creates a WriteGroupMemphisOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.encoding.CloudEventSettings + * @memberof protos.opts.WriteGroupMemphisOptions * @static * @param {Object.} object Plain object - * @returns {protos.encoding.CloudEventSettings} CloudEventSettings + * @returns {protos.opts.WriteGroupMemphisOptions} WriteGroupMemphisOptions */ - CloudEventSettings.fromObject = function fromObject(object) { - if (object instanceof $root.protos.encoding.CloudEventSettings) + WriteGroupMemphisOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.WriteGroupMemphisOptions) return object; - var message = new $root.protos.encoding.CloudEventSettings(); - if (object.ceId != null) - message.ceId = String(object.ceId); - if (object.ceSource != null) - message.ceSource = String(object.ceSource); - if (object.ceType != null) - message.ceType = String(object.ceType); - if (object.ceSubject != null) - message.ceSubject = String(object.ceSubject); - if (object.ceSpecVersion != null) - message.ceSpecVersion = String(object.ceSpecVersion); - if (object.ceDataContentType != null) - message.ceDataContentType = String(object.ceDataContentType); - if (object.ceDataSchema != null) - message.ceDataSchema = String(object.ceDataSchema); + var message = new $root.protos.opts.WriteGroupMemphisOptions(); + if (object._conn != null) { + if (typeof object._conn !== "object") + throw TypeError(".protos.opts.WriteGroupMemphisOptions._conn: object expected"); + message._conn = $root.protos.args.MemphisConn.fromObject(object._conn); + } + if (object.args != null) { + if (typeof object.args !== "object") + throw TypeError(".protos.opts.WriteGroupMemphisOptions.args: object expected"); + message.args = $root.protos.args.MemphisWriteArgs.fromObject(object.args); + } return message; }; /** - * Creates a plain object from a CloudEventSettings message. Also converts values to other types if specified. + * Creates a plain object from a WriteGroupMemphisOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.encoding.CloudEventSettings + * @memberof protos.opts.WriteGroupMemphisOptions * @static - * @param {protos.encoding.CloudEventSettings} message CloudEventSettings + * @param {protos.opts.WriteGroupMemphisOptions} message WriteGroupMemphisOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CloudEventSettings.toObject = function toObject(message, options) { + WriteGroupMemphisOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.ceId = ""; - object.ceSource = ""; - object.ceType = ""; - object.ceSubject = ""; - object.ceSpecVersion = ""; - object.ceDataContentType = ""; - object.ceDataSchema = ""; + object._conn = null; + object.args = null; } - if (message.ceId != null && message.hasOwnProperty("ceId")) - object.ceId = message.ceId; - if (message.ceSource != null && message.hasOwnProperty("ceSource")) - object.ceSource = message.ceSource; - if (message.ceType != null && message.hasOwnProperty("ceType")) - object.ceType = message.ceType; - if (message.ceSubject != null && message.hasOwnProperty("ceSubject")) - object.ceSubject = message.ceSubject; - if (message.ceSpecVersion != null && message.hasOwnProperty("ceSpecVersion")) - object.ceSpecVersion = message.ceSpecVersion; - if (message.ceDataContentType != null && message.hasOwnProperty("ceDataContentType")) - object.ceDataContentType = message.ceDataContentType; - if (message.ceDataSchema != null && message.hasOwnProperty("ceDataSchema")) - object.ceDataSchema = message.ceDataSchema; + if (message._conn != null && message.hasOwnProperty("_conn")) + object._conn = $root.protos.args.MemphisConn.toObject(message._conn, options); + if (message.args != null && message.hasOwnProperty("args")) + object.args = $root.protos.args.MemphisWriteArgs.toObject(message.args, options); return object; }; /** - * Converts this CloudEventSettings to JSON. + * Converts this WriteGroupMemphisOptions to JSON. * @function toJSON - * @memberof protos.encoding.CloudEventSettings + * @memberof protos.opts.WriteGroupMemphisOptions * @instance * @returns {Object.} JSON object */ - CloudEventSettings.prototype.toJSON = function toJSON() { + WriteGroupMemphisOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CloudEventSettings; + return WriteGroupMemphisOptions; })(); - encoding.EncodeOptions = (function() { + opts.ConnectionOptions = (function() { /** - * Properties of an EncodeOptions. - * @memberof protos.encoding - * @interface IEncodeOptions - * @property {string|null} [schemaId] EncodeOptions schemaId - * @property {protos.encoding.EncodeType|null} [encodeType] EncodeOptions encodeType - * @property {protos.encoding.IProtobufSettings|null} [protobufSettings] EncodeOptions protobufSettings - * @property {protos.encoding.IAvroSettings|null} [avroSettings] EncodeOptions avroSettings - * @property {protos.encoding.ICloudEventSettings|null} [cloudeventSettings] EncodeOptions cloudeventSettings + * Properties of a ConnectionOptions. + * @memberof protos.opts + * @interface IConnectionOptions + * @property {string|null} [name] ConnectionOptions name + * @property {string|null} [notes] ConnectionOptions notes + * @property {protos.args.IKafkaConn|null} [kafka] ConnectionOptions kafka + * @property {protos.args.IActiveMQConn|null} [activeMq] ConnectionOptions activeMq + * @property {protos.args.IAWSSQSConn|null} [awsSqs] ConnectionOptions awsSqs + * @property {protos.args.IAWSSNSConn|null} [awsSns] ConnectionOptions awsSns + * @property {protos.args.IMongoConn|null} [mongo] ConnectionOptions mongo + * @property {protos.args.INatsConn|null} [nats] ConnectionOptions nats + * @property {protos.args.INatsStreamingConn|null} [natsStreaming] ConnectionOptions natsStreaming + * @property {protos.args.INSQConn|null} [nsq] ConnectionOptions nsq + * @property {protos.args.IPostgresConn|null} [postgres] ConnectionOptions postgres + * @property {protos.args.IPulsarConn|null} [pulsar] ConnectionOptions pulsar + * @property {protos.args.IRabbitConn|null} [rabbit] ConnectionOptions rabbit + * @property {protos.args.IRabbitStreamsConn|null} [rabbitStreams] ConnectionOptions rabbitStreams + * @property {protos.args.IRedisPubSubConn|null} [redisPubsub] ConnectionOptions redisPubsub + * @property {protos.args.IRedisStreamsConn|null} [redisStreams] ConnectionOptions redisStreams + * @property {protos.args.IAzureEventHubConn|null} [azureEventHub] ConnectionOptions azureEventHub + * @property {protos.args.IAzureServiceBusConn|null} [azureServiceBus] ConnectionOptions azureServiceBus + * @property {protos.args.IMQTTConn|null} [mqtt] ConnectionOptions mqtt + * @property {protos.args.IKubeMQQueueConn|null} [kubemqQueue] ConnectionOptions kubemqQueue + * @property {protos.args.IGCPPubSubConn|null} [gcpPubsub] ConnectionOptions gcpPubsub + * @property {protos.args.INatsJetstreamConn|null} [natsJetstream] ConnectionOptions natsJetstream + * @property {protos.args.IAWSKinesisConn|null} [awsKinesis] ConnectionOptions awsKinesis + * @property {protos.args.IMemphisConn|null} [memphis] ConnectionOptions memphis + * @property {string|null} [_id] ConnectionOptions _id */ /** - * Constructs a new EncodeOptions. - * @memberof protos.encoding - * @classdesc Represents an EncodeOptions. - * @implements IEncodeOptions + * Constructs a new ConnectionOptions. + * @memberof protos.opts + * @classdesc Represents a ConnectionOptions. + * @implements IConnectionOptions * @constructor - * @param {protos.encoding.IEncodeOptions=} [properties] Properties to set + * @param {protos.opts.IConnectionOptions=} [properties] Properties to set */ - function EncodeOptions(properties) { + function ConnectionOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62889,611 +34640,951 @@ $root.protos = (function() { } /** - * EncodeOptions schemaId. - * @member {string} schemaId - * @memberof protos.encoding.EncodeOptions + * ConnectionOptions name. + * @member {string} name + * @memberof protos.opts.ConnectionOptions * @instance */ - EncodeOptions.prototype.schemaId = ""; + ConnectionOptions.prototype.name = ""; /** - * EncodeOptions encodeType. - * @member {protos.encoding.EncodeType} encodeType - * @memberof protos.encoding.EncodeOptions + * ConnectionOptions notes. + * @member {string} notes + * @memberof protos.opts.ConnectionOptions * @instance */ - EncodeOptions.prototype.encodeType = 0; + ConnectionOptions.prototype.notes = ""; /** - * EncodeOptions protobufSettings. - * @member {protos.encoding.IProtobufSettings|null|undefined} protobufSettings - * @memberof protos.encoding.EncodeOptions + * ConnectionOptions kafka. + * @member {protos.args.IKafkaConn|null|undefined} kafka + * @memberof protos.opts.ConnectionOptions * @instance */ - EncodeOptions.prototype.protobufSettings = null; + ConnectionOptions.prototype.kafka = null; /** - * EncodeOptions avroSettings. - * @member {protos.encoding.IAvroSettings|null|undefined} avroSettings - * @memberof protos.encoding.EncodeOptions + * ConnectionOptions activeMq. + * @member {protos.args.IActiveMQConn|null|undefined} activeMq + * @memberof protos.opts.ConnectionOptions * @instance */ - EncodeOptions.prototype.avroSettings = null; + ConnectionOptions.prototype.activeMq = null; /** - * EncodeOptions cloudeventSettings. - * @member {protos.encoding.ICloudEventSettings|null|undefined} cloudeventSettings - * @memberof protos.encoding.EncodeOptions + * ConnectionOptions awsSqs. + * @member {protos.args.IAWSSQSConn|null|undefined} awsSqs + * @memberof protos.opts.ConnectionOptions * @instance */ - EncodeOptions.prototype.cloudeventSettings = null; + ConnectionOptions.prototype.awsSqs = null; /** - * Creates a new EncodeOptions instance using the specified properties. - * @function create - * @memberof protos.encoding.EncodeOptions - * @static - * @param {protos.encoding.IEncodeOptions=} [properties] Properties to set - * @returns {protos.encoding.EncodeOptions} EncodeOptions instance + * ConnectionOptions awsSns. + * @member {protos.args.IAWSSNSConn|null|undefined} awsSns + * @memberof protos.opts.ConnectionOptions + * @instance */ - EncodeOptions.create = function create(properties) { - return new EncodeOptions(properties); - }; + ConnectionOptions.prototype.awsSns = null; /** - * Encodes the specified EncodeOptions message. Does not implicitly {@link protos.encoding.EncodeOptions.verify|verify} messages. - * @function encode - * @memberof protos.encoding.EncodeOptions - * @static - * @param {protos.encoding.IEncodeOptions} message EncodeOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ConnectionOptions mongo. + * @member {protos.args.IMongoConn|null|undefined} mongo + * @memberof protos.opts.ConnectionOptions + * @instance */ - EncodeOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.schemaId != null && Object.hasOwnProperty.call(message, "schemaId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.schemaId); - if (message.encodeType != null && Object.hasOwnProperty.call(message, "encodeType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.encodeType); - if (message.protobufSettings != null && Object.hasOwnProperty.call(message, "protobufSettings")) - $root.protos.encoding.ProtobufSettings.encode(message.protobufSettings, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.avroSettings != null && Object.hasOwnProperty.call(message, "avroSettings")) - $root.protos.encoding.AvroSettings.encode(message.avroSettings, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.cloudeventSettings != null && Object.hasOwnProperty.call(message, "cloudeventSettings")) - $root.protos.encoding.CloudEventSettings.encode(message.cloudeventSettings, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; + ConnectionOptions.prototype.mongo = null; /** - * Encodes the specified EncodeOptions message, length delimited. Does not implicitly {@link protos.encoding.EncodeOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof protos.encoding.EncodeOptions - * @static - * @param {protos.encoding.IEncodeOptions} message EncodeOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ConnectionOptions nats. + * @member {protos.args.INatsConn|null|undefined} nats + * @memberof protos.opts.ConnectionOptions + * @instance */ - EncodeOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + ConnectionOptions.prototype.nats = null; /** - * Decodes an EncodeOptions message from the specified reader or buffer. - * @function decode - * @memberof protos.encoding.EncodeOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {protos.encoding.EncodeOptions} EncodeOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * ConnectionOptions natsStreaming. + * @member {protos.args.INatsStreamingConn|null|undefined} natsStreaming + * @memberof protos.opts.ConnectionOptions + * @instance */ - EncodeOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.EncodeOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.schemaId = reader.string(); - break; - case 2: - message.encodeType = reader.int32(); - break; - case 3: - message.protobufSettings = $root.protos.encoding.ProtobufSettings.decode(reader, reader.uint32()); - break; - case 4: - message.avroSettings = $root.protos.encoding.AvroSettings.decode(reader, reader.uint32()); - break; - case 5: - message.cloudeventSettings = $root.protos.encoding.CloudEventSettings.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + ConnectionOptions.prototype.natsStreaming = null; /** - * Decodes an EncodeOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.encoding.EncodeOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.encoding.EncodeOptions} EncodeOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * ConnectionOptions nsq. + * @member {protos.args.INSQConn|null|undefined} nsq + * @memberof protos.opts.ConnectionOptions + * @instance */ - EncodeOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + ConnectionOptions.prototype.nsq = null; + + /** + * ConnectionOptions postgres. + * @member {protos.args.IPostgresConn|null|undefined} postgres + * @memberof protos.opts.ConnectionOptions + * @instance + */ + ConnectionOptions.prototype.postgres = null; + + /** + * ConnectionOptions pulsar. + * @member {protos.args.IPulsarConn|null|undefined} pulsar + * @memberof protos.opts.ConnectionOptions + * @instance + */ + ConnectionOptions.prototype.pulsar = null; + + /** + * ConnectionOptions rabbit. + * @member {protos.args.IRabbitConn|null|undefined} rabbit + * @memberof protos.opts.ConnectionOptions + * @instance + */ + ConnectionOptions.prototype.rabbit = null; + + /** + * ConnectionOptions rabbitStreams. + * @member {protos.args.IRabbitStreamsConn|null|undefined} rabbitStreams + * @memberof protos.opts.ConnectionOptions + * @instance + */ + ConnectionOptions.prototype.rabbitStreams = null; /** - * Verifies an EncodeOptions message. - * @function verify - * @memberof protos.encoding.EncodeOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * ConnectionOptions redisPubsub. + * @member {protos.args.IRedisPubSubConn|null|undefined} redisPubsub + * @memberof protos.opts.ConnectionOptions + * @instance */ - EncodeOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.schemaId != null && message.hasOwnProperty("schemaId")) - if (!$util.isString(message.schemaId)) - return "schemaId: string expected"; - if (message.encodeType != null && message.hasOwnProperty("encodeType")) - switch (message.encodeType) { - default: - return "encodeType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.protobufSettings != null && message.hasOwnProperty("protobufSettings")) { - var error = $root.protos.encoding.ProtobufSettings.verify(message.protobufSettings); - if (error) - return "protobufSettings." + error; - } - if (message.avroSettings != null && message.hasOwnProperty("avroSettings")) { - var error = $root.protos.encoding.AvroSettings.verify(message.avroSettings); - if (error) - return "avroSettings." + error; - } - if (message.cloudeventSettings != null && message.hasOwnProperty("cloudeventSettings")) { - var error = $root.protos.encoding.CloudEventSettings.verify(message.cloudeventSettings); - if (error) - return "cloudeventSettings." + error; - } - return null; - }; + ConnectionOptions.prototype.redisPubsub = null; /** - * Creates an EncodeOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof protos.encoding.EncodeOptions - * @static - * @param {Object.} object Plain object - * @returns {protos.encoding.EncodeOptions} EncodeOptions + * ConnectionOptions redisStreams. + * @member {protos.args.IRedisStreamsConn|null|undefined} redisStreams + * @memberof protos.opts.ConnectionOptions + * @instance */ - EncodeOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.encoding.EncodeOptions) - return object; - var message = new $root.protos.encoding.EncodeOptions(); - if (object.schemaId != null) - message.schemaId = String(object.schemaId); - switch (object.encodeType) { - case "ENCODE_TYPE_UNSET": - case 0: - message.encodeType = 0; - break; - case "ENCODE_TYPE_JSONPB": - case 1: - message.encodeType = 1; - break; - case "ENCODE_TYPE_AVRO": - case 2: - message.encodeType = 2; - break; - case "ENCODE_TYPE_CLOUDEVENT": - case 3: - message.encodeType = 3; - break; - } - if (object.protobufSettings != null) { - if (typeof object.protobufSettings !== "object") - throw TypeError(".protos.encoding.EncodeOptions.protobufSettings: object expected"); - message.protobufSettings = $root.protos.encoding.ProtobufSettings.fromObject(object.protobufSettings); - } - if (object.avroSettings != null) { - if (typeof object.avroSettings !== "object") - throw TypeError(".protos.encoding.EncodeOptions.avroSettings: object expected"); - message.avroSettings = $root.protos.encoding.AvroSettings.fromObject(object.avroSettings); - } - if (object.cloudeventSettings != null) { - if (typeof object.cloudeventSettings !== "object") - throw TypeError(".protos.encoding.EncodeOptions.cloudeventSettings: object expected"); - message.cloudeventSettings = $root.protos.encoding.CloudEventSettings.fromObject(object.cloudeventSettings); - } - return message; - }; + ConnectionOptions.prototype.redisStreams = null; /** - * Creates a plain object from an EncodeOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof protos.encoding.EncodeOptions - * @static - * @param {protos.encoding.EncodeOptions} message EncodeOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * ConnectionOptions azureEventHub. + * @member {protos.args.IAzureEventHubConn|null|undefined} azureEventHub + * @memberof protos.opts.ConnectionOptions + * @instance */ - EncodeOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.schemaId = ""; - object.encodeType = options.enums === String ? "ENCODE_TYPE_UNSET" : 0; - object.protobufSettings = null; - object.avroSettings = null; - object.cloudeventSettings = null; - } - if (message.schemaId != null && message.hasOwnProperty("schemaId")) - object.schemaId = message.schemaId; - if (message.encodeType != null && message.hasOwnProperty("encodeType")) - object.encodeType = options.enums === String ? $root.protos.encoding.EncodeType[message.encodeType] : message.encodeType; - if (message.protobufSettings != null && message.hasOwnProperty("protobufSettings")) - object.protobufSettings = $root.protos.encoding.ProtobufSettings.toObject(message.protobufSettings, options); - if (message.avroSettings != null && message.hasOwnProperty("avroSettings")) - object.avroSettings = $root.protos.encoding.AvroSettings.toObject(message.avroSettings, options); - if (message.cloudeventSettings != null && message.hasOwnProperty("cloudeventSettings")) - object.cloudeventSettings = $root.protos.encoding.CloudEventSettings.toObject(message.cloudeventSettings, options); - return object; - }; + ConnectionOptions.prototype.azureEventHub = null; /** - * Converts this EncodeOptions to JSON. - * @function toJSON - * @memberof protos.encoding.EncodeOptions + * ConnectionOptions azureServiceBus. + * @member {protos.args.IAzureServiceBusConn|null|undefined} azureServiceBus + * @memberof protos.opts.ConnectionOptions * @instance - * @returns {Object.} JSON object */ - EncodeOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return EncodeOptions; - })(); + ConnectionOptions.prototype.azureServiceBus = null; - encoding.DecodeOptions = (function() { + /** + * ConnectionOptions mqtt. + * @member {protos.args.IMQTTConn|null|undefined} mqtt + * @memberof protos.opts.ConnectionOptions + * @instance + */ + ConnectionOptions.prototype.mqtt = null; /** - * Properties of a DecodeOptions. - * @memberof protos.encoding - * @interface IDecodeOptions - * @property {string|null} [schemaId] DecodeOptions schemaId - * @property {protos.encoding.DecodeType|null} [decodeType] DecodeOptions decodeType - * @property {protos.encoding.IProtobufSettings|null} [protobufSettings] DecodeOptions protobufSettings - * @property {protos.encoding.IAvroSettings|null} [avroSettings] DecodeOptions avroSettings - * @property {protos.encoding.IThriftSettings|null} [thriftSettings] DecodeOptions thriftSettings + * ConnectionOptions kubemqQueue. + * @member {protos.args.IKubeMQQueueConn|null|undefined} kubemqQueue + * @memberof protos.opts.ConnectionOptions + * @instance */ + ConnectionOptions.prototype.kubemqQueue = null; /** - * Constructs a new DecodeOptions. - * @memberof protos.encoding - * @classdesc Represents a DecodeOptions. - * @implements IDecodeOptions - * @constructor - * @param {protos.encoding.IDecodeOptions=} [properties] Properties to set + * ConnectionOptions gcpPubsub. + * @member {protos.args.IGCPPubSubConn|null|undefined} gcpPubsub + * @memberof protos.opts.ConnectionOptions + * @instance */ - function DecodeOptions(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ConnectionOptions.prototype.gcpPubsub = null; /** - * DecodeOptions schemaId. - * @member {string} schemaId - * @memberof protos.encoding.DecodeOptions + * ConnectionOptions natsJetstream. + * @member {protos.args.INatsJetstreamConn|null|undefined} natsJetstream + * @memberof protos.opts.ConnectionOptions * @instance */ - DecodeOptions.prototype.schemaId = ""; + ConnectionOptions.prototype.natsJetstream = null; /** - * DecodeOptions decodeType. - * @member {protos.encoding.DecodeType} decodeType - * @memberof protos.encoding.DecodeOptions + * ConnectionOptions awsKinesis. + * @member {protos.args.IAWSKinesisConn|null|undefined} awsKinesis + * @memberof protos.opts.ConnectionOptions * @instance */ - DecodeOptions.prototype.decodeType = 0; + ConnectionOptions.prototype.awsKinesis = null; /** - * DecodeOptions protobufSettings. - * @member {protos.encoding.IProtobufSettings|null|undefined} protobufSettings - * @memberof protos.encoding.DecodeOptions + * ConnectionOptions memphis. + * @member {protos.args.IMemphisConn|null|undefined} memphis + * @memberof protos.opts.ConnectionOptions * @instance */ - DecodeOptions.prototype.protobufSettings = null; + ConnectionOptions.prototype.memphis = null; /** - * DecodeOptions avroSettings. - * @member {protos.encoding.IAvroSettings|null|undefined} avroSettings - * @memberof protos.encoding.DecodeOptions + * ConnectionOptions _id. + * @member {string} _id + * @memberof protos.opts.ConnectionOptions * @instance */ - DecodeOptions.prototype.avroSettings = null; + ConnectionOptions.prototype._id = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * DecodeOptions thriftSettings. - * @member {protos.encoding.IThriftSettings|null|undefined} thriftSettings - * @memberof protos.encoding.DecodeOptions + * ConnectionOptions conn. + * @member {"kafka"|"activeMq"|"awsSqs"|"awsSns"|"mongo"|"nats"|"natsStreaming"|"nsq"|"postgres"|"pulsar"|"rabbit"|"rabbitStreams"|"redisPubsub"|"redisStreams"|"azureEventHub"|"azureServiceBus"|"mqtt"|"kubemqQueue"|"gcpPubsub"|"natsJetstream"|"awsKinesis"|"memphis"|undefined} conn + * @memberof protos.opts.ConnectionOptions * @instance */ - DecodeOptions.prototype.thriftSettings = null; + Object.defineProperty(ConnectionOptions.prototype, "conn", { + get: $util.oneOfGetter($oneOfFields = ["kafka", "activeMq", "awsSqs", "awsSns", "mongo", "nats", "natsStreaming", "nsq", "postgres", "pulsar", "rabbit", "rabbitStreams", "redisPubsub", "redisStreams", "azureEventHub", "azureServiceBus", "mqtt", "kubemqQueue", "gcpPubsub", "natsJetstream", "awsKinesis", "memphis"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new DecodeOptions instance using the specified properties. + * Creates a new ConnectionOptions instance using the specified properties. * @function create - * @memberof protos.encoding.DecodeOptions + * @memberof protos.opts.ConnectionOptions * @static - * @param {protos.encoding.IDecodeOptions=} [properties] Properties to set - * @returns {protos.encoding.DecodeOptions} DecodeOptions instance + * @param {protos.opts.IConnectionOptions=} [properties] Properties to set + * @returns {protos.opts.ConnectionOptions} ConnectionOptions instance */ - DecodeOptions.create = function create(properties) { - return new DecodeOptions(properties); + ConnectionOptions.create = function create(properties) { + return new ConnectionOptions(properties); }; /** - * Encodes the specified DecodeOptions message. Does not implicitly {@link protos.encoding.DecodeOptions.verify|verify} messages. + * Encodes the specified ConnectionOptions message. Does not implicitly {@link protos.opts.ConnectionOptions.verify|verify} messages. * @function encode - * @memberof protos.encoding.DecodeOptions + * @memberof protos.opts.ConnectionOptions * @static - * @param {protos.encoding.IDecodeOptions} message DecodeOptions message or plain object to encode + * @param {protos.opts.IConnectionOptions} message ConnectionOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecodeOptions.encode = function encode(message, writer) { + ConnectionOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.schemaId != null && Object.hasOwnProperty.call(message, "schemaId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.schemaId); - if (message.decodeType != null && Object.hasOwnProperty.call(message, "decodeType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.decodeType); - if (message.protobufSettings != null && Object.hasOwnProperty.call(message, "protobufSettings")) - $root.protos.encoding.ProtobufSettings.encode(message.protobufSettings, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.avroSettings != null && Object.hasOwnProperty.call(message, "avroSettings")) - $root.protos.encoding.AvroSettings.encode(message.avroSettings, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.thriftSettings != null && Object.hasOwnProperty.call(message, "thriftSettings")) - $root.protos.encoding.ThriftSettings.encode(message.thriftSettings, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.notes); + if (message.kafka != null && Object.hasOwnProperty.call(message, "kafka")) + $root.protos.args.KafkaConn.encode(message.kafka, writer.uint32(/* id 100, wireType 2 =*/802).fork()).ldelim(); + if (message.activeMq != null && Object.hasOwnProperty.call(message, "activeMq")) + $root.protos.args.ActiveMQConn.encode(message.activeMq, writer.uint32(/* id 101, wireType 2 =*/810).fork()).ldelim(); + if (message.awsSqs != null && Object.hasOwnProperty.call(message, "awsSqs")) + $root.protos.args.AWSSQSConn.encode(message.awsSqs, writer.uint32(/* id 102, wireType 2 =*/818).fork()).ldelim(); + if (message.awsSns != null && Object.hasOwnProperty.call(message, "awsSns")) + $root.protos.args.AWSSNSConn.encode(message.awsSns, writer.uint32(/* id 103, wireType 2 =*/826).fork()).ldelim(); + if (message.mongo != null && Object.hasOwnProperty.call(message, "mongo")) + $root.protos.args.MongoConn.encode(message.mongo, writer.uint32(/* id 104, wireType 2 =*/834).fork()).ldelim(); + if (message.nats != null && Object.hasOwnProperty.call(message, "nats")) + $root.protos.args.NatsConn.encode(message.nats, writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); + if (message.natsStreaming != null && Object.hasOwnProperty.call(message, "natsStreaming")) + $root.protos.args.NatsStreamingConn.encode(message.natsStreaming, writer.uint32(/* id 106, wireType 2 =*/850).fork()).ldelim(); + if (message.nsq != null && Object.hasOwnProperty.call(message, "nsq")) + $root.protos.args.NSQConn.encode(message.nsq, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); + if (message.postgres != null && Object.hasOwnProperty.call(message, "postgres")) + $root.protos.args.PostgresConn.encode(message.postgres, writer.uint32(/* id 108, wireType 2 =*/866).fork()).ldelim(); + if (message.pulsar != null && Object.hasOwnProperty.call(message, "pulsar")) + $root.protos.args.PulsarConn.encode(message.pulsar, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); + if (message.rabbit != null && Object.hasOwnProperty.call(message, "rabbit")) + $root.protos.args.RabbitConn.encode(message.rabbit, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); + if (message.rabbitStreams != null && Object.hasOwnProperty.call(message, "rabbitStreams")) + $root.protos.args.RabbitStreamsConn.encode(message.rabbitStreams, writer.uint32(/* id 111, wireType 2 =*/890).fork()).ldelim(); + if (message.redisPubsub != null && Object.hasOwnProperty.call(message, "redisPubsub")) + $root.protos.args.RedisPubSubConn.encode(message.redisPubsub, writer.uint32(/* id 112, wireType 2 =*/898).fork()).ldelim(); + if (message.redisStreams != null && Object.hasOwnProperty.call(message, "redisStreams")) + $root.protos.args.RedisStreamsConn.encode(message.redisStreams, writer.uint32(/* id 113, wireType 2 =*/906).fork()).ldelim(); + if (message.azureEventHub != null && Object.hasOwnProperty.call(message, "azureEventHub")) + $root.protos.args.AzureEventHubConn.encode(message.azureEventHub, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); + if (message.azureServiceBus != null && Object.hasOwnProperty.call(message, "azureServiceBus")) + $root.protos.args.AzureServiceBusConn.encode(message.azureServiceBus, writer.uint32(/* id 115, wireType 2 =*/922).fork()).ldelim(); + if (message.mqtt != null && Object.hasOwnProperty.call(message, "mqtt")) + $root.protos.args.MQTTConn.encode(message.mqtt, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); + if (message.kubemqQueue != null && Object.hasOwnProperty.call(message, "kubemqQueue")) + $root.protos.args.KubeMQQueueConn.encode(message.kubemqQueue, writer.uint32(/* id 117, wireType 2 =*/938).fork()).ldelim(); + if (message.gcpPubsub != null && Object.hasOwnProperty.call(message, "gcpPubsub")) + $root.protos.args.GCPPubSubConn.encode(message.gcpPubsub, writer.uint32(/* id 118, wireType 2 =*/946).fork()).ldelim(); + if (message.natsJetstream != null && Object.hasOwnProperty.call(message, "natsJetstream")) + $root.protos.args.NatsJetstreamConn.encode(message.natsJetstream, writer.uint32(/* id 119, wireType 2 =*/954).fork()).ldelim(); + if (message.awsKinesis != null && Object.hasOwnProperty.call(message, "awsKinesis")) + $root.protos.args.AWSKinesisConn.encode(message.awsKinesis, writer.uint32(/* id 120, wireType 2 =*/962).fork()).ldelim(); + if (message.memphis != null && Object.hasOwnProperty.call(message, "memphis")) + $root.protos.args.MemphisConn.encode(message.memphis, writer.uint32(/* id 121, wireType 2 =*/970).fork()).ldelim(); + if (message._id != null && Object.hasOwnProperty.call(message, "_id")) + writer.uint32(/* id 1000, wireType 2 =*/8002).string(message._id); return writer; }; /** - * Encodes the specified DecodeOptions message, length delimited. Does not implicitly {@link protos.encoding.DecodeOptions.verify|verify} messages. + * Encodes the specified ConnectionOptions message, length delimited. Does not implicitly {@link protos.opts.ConnectionOptions.verify|verify} messages. * @function encodeDelimited - * @memberof protos.encoding.DecodeOptions + * @memberof protos.opts.ConnectionOptions * @static - * @param {protos.encoding.IDecodeOptions} message DecodeOptions message or plain object to encode + * @param {protos.opts.IConnectionOptions} message ConnectionOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecodeOptions.encodeDelimited = function encodeDelimited(message, writer) { + ConnectionOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DecodeOptions message from the specified reader or buffer. + * Decodes a ConnectionOptions message from the specified reader or buffer. * @function decode - * @memberof protos.encoding.DecodeOptions + * @memberof protos.opts.ConnectionOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {protos.encoding.DecodeOptions} DecodeOptions + * @returns {protos.opts.ConnectionOptions} ConnectionOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DecodeOptions.decode = function decode(reader, length) { + ConnectionOptions.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.encoding.DecodeOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.protos.opts.ConnectionOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.schemaId = reader.string(); + message.name = reader.string(); break; case 2: - message.decodeType = reader.int32(); + message.notes = reader.string(); break; - case 3: - message.protobufSettings = $root.protos.encoding.ProtobufSettings.decode(reader, reader.uint32()); + case 100: + message.kafka = $root.protos.args.KafkaConn.decode(reader, reader.uint32()); break; - case 4: - message.avroSettings = $root.protos.encoding.AvroSettings.decode(reader, reader.uint32()); + case 101: + message.activeMq = $root.protos.args.ActiveMQConn.decode(reader, reader.uint32()); break; - case 5: - message.thriftSettings = $root.protos.encoding.ThriftSettings.decode(reader, reader.uint32()); + case 102: + message.awsSqs = $root.protos.args.AWSSQSConn.decode(reader, reader.uint32()); + break; + case 103: + message.awsSns = $root.protos.args.AWSSNSConn.decode(reader, reader.uint32()); + break; + case 104: + message.mongo = $root.protos.args.MongoConn.decode(reader, reader.uint32()); + break; + case 105: + message.nats = $root.protos.args.NatsConn.decode(reader, reader.uint32()); + break; + case 106: + message.natsStreaming = $root.protos.args.NatsStreamingConn.decode(reader, reader.uint32()); + break; + case 107: + message.nsq = $root.protos.args.NSQConn.decode(reader, reader.uint32()); + break; + case 108: + message.postgres = $root.protos.args.PostgresConn.decode(reader, reader.uint32()); + break; + case 109: + message.pulsar = $root.protos.args.PulsarConn.decode(reader, reader.uint32()); + break; + case 110: + message.rabbit = $root.protos.args.RabbitConn.decode(reader, reader.uint32()); + break; + case 111: + message.rabbitStreams = $root.protos.args.RabbitStreamsConn.decode(reader, reader.uint32()); + break; + case 112: + message.redisPubsub = $root.protos.args.RedisPubSubConn.decode(reader, reader.uint32()); + break; + case 113: + message.redisStreams = $root.protos.args.RedisStreamsConn.decode(reader, reader.uint32()); + break; + case 114: + message.azureEventHub = $root.protos.args.AzureEventHubConn.decode(reader, reader.uint32()); + break; + case 115: + message.azureServiceBus = $root.protos.args.AzureServiceBusConn.decode(reader, reader.uint32()); + break; + case 116: + message.mqtt = $root.protos.args.MQTTConn.decode(reader, reader.uint32()); + break; + case 117: + message.kubemqQueue = $root.protos.args.KubeMQQueueConn.decode(reader, reader.uint32()); + break; + case 118: + message.gcpPubsub = $root.protos.args.GCPPubSubConn.decode(reader, reader.uint32()); + break; + case 119: + message.natsJetstream = $root.protos.args.NatsJetstreamConn.decode(reader, reader.uint32()); + break; + case 120: + message.awsKinesis = $root.protos.args.AWSKinesisConn.decode(reader, reader.uint32()); + break; + case 121: + message.memphis = $root.protos.args.MemphisConn.decode(reader, reader.uint32()); + break; + case 1000: + message._id = reader.string(); break; default: reader.skipType(tag & 7); break; } } - return message; - }; - - /** - * Decodes a DecodeOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof protos.encoding.DecodeOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {protos.encoding.DecodeOptions} DecodeOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DecodeOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DecodeOptions message. - * @function verify - * @memberof protos.encoding.DecodeOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DecodeOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.schemaId != null && message.hasOwnProperty("schemaId")) - if (!$util.isString(message.schemaId)) - return "schemaId: string expected"; - if (message.decodeType != null && message.hasOwnProperty("decodeType")) - switch (message.decodeType) { - default: - return "decodeType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + return message; + }; + + /** + * Decodes a ConnectionOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof protos.opts.ConnectionOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {protos.opts.ConnectionOptions} ConnectionOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConnectionOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConnectionOptions message. + * @function verify + * @memberof protos.opts.ConnectionOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConnectionOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.notes != null && message.hasOwnProperty("notes")) + if (!$util.isString(message.notes)) + return "notes: string expected"; + if (message.kafka != null && message.hasOwnProperty("kafka")) { + properties.conn = 1; + { + var error = $root.protos.args.KafkaConn.verify(message.kafka); + if (error) + return "kafka." + error; + } + } + if (message.activeMq != null && message.hasOwnProperty("activeMq")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.ActiveMQConn.verify(message.activeMq); + if (error) + return "activeMq." + error; + } + } + if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.AWSSQSConn.verify(message.awsSqs); + if (error) + return "awsSqs." + error; + } + } + if (message.awsSns != null && message.hasOwnProperty("awsSns")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.AWSSNSConn.verify(message.awsSns); + if (error) + return "awsSns." + error; + } + } + if (message.mongo != null && message.hasOwnProperty("mongo")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.MongoConn.verify(message.mongo); + if (error) + return "mongo." + error; + } + } + if (message.nats != null && message.hasOwnProperty("nats")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.NatsConn.verify(message.nats); + if (error) + return "nats." + error; + } + } + if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.NatsStreamingConn.verify(message.natsStreaming); + if (error) + return "natsStreaming." + error; + } + } + if (message.nsq != null && message.hasOwnProperty("nsq")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.NSQConn.verify(message.nsq); + if (error) + return "nsq." + error; + } + } + if (message.postgres != null && message.hasOwnProperty("postgres")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.PostgresConn.verify(message.postgres); + if (error) + return "postgres." + error; } - if (message.protobufSettings != null && message.hasOwnProperty("protobufSettings")) { - var error = $root.protos.encoding.ProtobufSettings.verify(message.protobufSettings); - if (error) - return "protobufSettings." + error; } - if (message.avroSettings != null && message.hasOwnProperty("avroSettings")) { - var error = $root.protos.encoding.AvroSettings.verify(message.avroSettings); - if (error) - return "avroSettings." + error; + if (message.pulsar != null && message.hasOwnProperty("pulsar")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.PulsarConn.verify(message.pulsar); + if (error) + return "pulsar." + error; + } } - if (message.thriftSettings != null && message.hasOwnProperty("thriftSettings")) { - var error = $root.protos.encoding.ThriftSettings.verify(message.thriftSettings); - if (error) - return "thriftSettings." + error; + if (message.rabbit != null && message.hasOwnProperty("rabbit")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.RabbitConn.verify(message.rabbit); + if (error) + return "rabbit." + error; + } + } + if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.RabbitStreamsConn.verify(message.rabbitStreams); + if (error) + return "rabbitStreams." + error; + } + } + if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.RedisPubSubConn.verify(message.redisPubsub); + if (error) + return "redisPubsub." + error; + } + } + if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.RedisStreamsConn.verify(message.redisStreams); + if (error) + return "redisStreams." + error; + } + } + if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.AzureEventHubConn.verify(message.azureEventHub); + if (error) + return "azureEventHub." + error; + } } + if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.AzureServiceBusConn.verify(message.azureServiceBus); + if (error) + return "azureServiceBus." + error; + } + } + if (message.mqtt != null && message.hasOwnProperty("mqtt")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.MQTTConn.verify(message.mqtt); + if (error) + return "mqtt." + error; + } + } + if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.KubeMQQueueConn.verify(message.kubemqQueue); + if (error) + return "kubemqQueue." + error; + } + } + if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.GCPPubSubConn.verify(message.gcpPubsub); + if (error) + return "gcpPubsub." + error; + } + } + if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.NatsJetstreamConn.verify(message.natsJetstream); + if (error) + return "natsJetstream." + error; + } + } + if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.AWSKinesisConn.verify(message.awsKinesis); + if (error) + return "awsKinesis." + error; + } + } + if (message.memphis != null && message.hasOwnProperty("memphis")) { + if (properties.conn === 1) + return "conn: multiple values"; + properties.conn = 1; + { + var error = $root.protos.args.MemphisConn.verify(message.memphis); + if (error) + return "memphis." + error; + } + } + if (message._id != null && message.hasOwnProperty("_id")) + if (!$util.isString(message._id)) + return "_id: string expected"; return null; }; /** - * Creates a DecodeOptions message from a plain object. Also converts values to their respective internal types. + * Creates a ConnectionOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof protos.encoding.DecodeOptions + * @memberof protos.opts.ConnectionOptions * @static * @param {Object.} object Plain object - * @returns {protos.encoding.DecodeOptions} DecodeOptions + * @returns {protos.opts.ConnectionOptions} ConnectionOptions */ - DecodeOptions.fromObject = function fromObject(object) { - if (object instanceof $root.protos.encoding.DecodeOptions) + ConnectionOptions.fromObject = function fromObject(object) { + if (object instanceof $root.protos.opts.ConnectionOptions) return object; - var message = new $root.protos.encoding.DecodeOptions(); - if (object.schemaId != null) - message.schemaId = String(object.schemaId); - switch (object.decodeType) { - case "DECODE_TYPE_UNSET": - case 0: - message.decodeType = 0; - break; - case "DECODE_TYPE_PROTOBUF": - case 1: - message.decodeType = 1; - break; - case "DECODE_TYPE_AVRO": - case 2: - message.decodeType = 2; - break; - case "DECODE_TYPE_THRIFT": - case 3: - message.decodeType = 3; - break; - case "DECODE_TYPE_FLATBUFFER": - case 4: - message.decodeType = 4; - break; + var message = new $root.protos.opts.ConnectionOptions(); + if (object.name != null) + message.name = String(object.name); + if (object.notes != null) + message.notes = String(object.notes); + if (object.kafka != null) { + if (typeof object.kafka !== "object") + throw TypeError(".protos.opts.ConnectionOptions.kafka: object expected"); + message.kafka = $root.protos.args.KafkaConn.fromObject(object.kafka); } - if (object.protobufSettings != null) { - if (typeof object.protobufSettings !== "object") - throw TypeError(".protos.encoding.DecodeOptions.protobufSettings: object expected"); - message.protobufSettings = $root.protos.encoding.ProtobufSettings.fromObject(object.protobufSettings); + if (object.activeMq != null) { + if (typeof object.activeMq !== "object") + throw TypeError(".protos.opts.ConnectionOptions.activeMq: object expected"); + message.activeMq = $root.protos.args.ActiveMQConn.fromObject(object.activeMq); } - if (object.avroSettings != null) { - if (typeof object.avroSettings !== "object") - throw TypeError(".protos.encoding.DecodeOptions.avroSettings: object expected"); - message.avroSettings = $root.protos.encoding.AvroSettings.fromObject(object.avroSettings); + if (object.awsSqs != null) { + if (typeof object.awsSqs !== "object") + throw TypeError(".protos.opts.ConnectionOptions.awsSqs: object expected"); + message.awsSqs = $root.protos.args.AWSSQSConn.fromObject(object.awsSqs); } - if (object.thriftSettings != null) { - if (typeof object.thriftSettings !== "object") - throw TypeError(".protos.encoding.DecodeOptions.thriftSettings: object expected"); - message.thriftSettings = $root.protos.encoding.ThriftSettings.fromObject(object.thriftSettings); + if (object.awsSns != null) { + if (typeof object.awsSns !== "object") + throw TypeError(".protos.opts.ConnectionOptions.awsSns: object expected"); + message.awsSns = $root.protos.args.AWSSNSConn.fromObject(object.awsSns); + } + if (object.mongo != null) { + if (typeof object.mongo !== "object") + throw TypeError(".protos.opts.ConnectionOptions.mongo: object expected"); + message.mongo = $root.protos.args.MongoConn.fromObject(object.mongo); + } + if (object.nats != null) { + if (typeof object.nats !== "object") + throw TypeError(".protos.opts.ConnectionOptions.nats: object expected"); + message.nats = $root.protos.args.NatsConn.fromObject(object.nats); + } + if (object.natsStreaming != null) { + if (typeof object.natsStreaming !== "object") + throw TypeError(".protos.opts.ConnectionOptions.natsStreaming: object expected"); + message.natsStreaming = $root.protos.args.NatsStreamingConn.fromObject(object.natsStreaming); + } + if (object.nsq != null) { + if (typeof object.nsq !== "object") + throw TypeError(".protos.opts.ConnectionOptions.nsq: object expected"); + message.nsq = $root.protos.args.NSQConn.fromObject(object.nsq); + } + if (object.postgres != null) { + if (typeof object.postgres !== "object") + throw TypeError(".protos.opts.ConnectionOptions.postgres: object expected"); + message.postgres = $root.protos.args.PostgresConn.fromObject(object.postgres); + } + if (object.pulsar != null) { + if (typeof object.pulsar !== "object") + throw TypeError(".protos.opts.ConnectionOptions.pulsar: object expected"); + message.pulsar = $root.protos.args.PulsarConn.fromObject(object.pulsar); + } + if (object.rabbit != null) { + if (typeof object.rabbit !== "object") + throw TypeError(".protos.opts.ConnectionOptions.rabbit: object expected"); + message.rabbit = $root.protos.args.RabbitConn.fromObject(object.rabbit); + } + if (object.rabbitStreams != null) { + if (typeof object.rabbitStreams !== "object") + throw TypeError(".protos.opts.ConnectionOptions.rabbitStreams: object expected"); + message.rabbitStreams = $root.protos.args.RabbitStreamsConn.fromObject(object.rabbitStreams); + } + if (object.redisPubsub != null) { + if (typeof object.redisPubsub !== "object") + throw TypeError(".protos.opts.ConnectionOptions.redisPubsub: object expected"); + message.redisPubsub = $root.protos.args.RedisPubSubConn.fromObject(object.redisPubsub); + } + if (object.redisStreams != null) { + if (typeof object.redisStreams !== "object") + throw TypeError(".protos.opts.ConnectionOptions.redisStreams: object expected"); + message.redisStreams = $root.protos.args.RedisStreamsConn.fromObject(object.redisStreams); + } + if (object.azureEventHub != null) { + if (typeof object.azureEventHub !== "object") + throw TypeError(".protos.opts.ConnectionOptions.azureEventHub: object expected"); + message.azureEventHub = $root.protos.args.AzureEventHubConn.fromObject(object.azureEventHub); + } + if (object.azureServiceBus != null) { + if (typeof object.azureServiceBus !== "object") + throw TypeError(".protos.opts.ConnectionOptions.azureServiceBus: object expected"); + message.azureServiceBus = $root.protos.args.AzureServiceBusConn.fromObject(object.azureServiceBus); + } + if (object.mqtt != null) { + if (typeof object.mqtt !== "object") + throw TypeError(".protos.opts.ConnectionOptions.mqtt: object expected"); + message.mqtt = $root.protos.args.MQTTConn.fromObject(object.mqtt); + } + if (object.kubemqQueue != null) { + if (typeof object.kubemqQueue !== "object") + throw TypeError(".protos.opts.ConnectionOptions.kubemqQueue: object expected"); + message.kubemqQueue = $root.protos.args.KubeMQQueueConn.fromObject(object.kubemqQueue); + } + if (object.gcpPubsub != null) { + if (typeof object.gcpPubsub !== "object") + throw TypeError(".protos.opts.ConnectionOptions.gcpPubsub: object expected"); + message.gcpPubsub = $root.protos.args.GCPPubSubConn.fromObject(object.gcpPubsub); + } + if (object.natsJetstream != null) { + if (typeof object.natsJetstream !== "object") + throw TypeError(".protos.opts.ConnectionOptions.natsJetstream: object expected"); + message.natsJetstream = $root.protos.args.NatsJetstreamConn.fromObject(object.natsJetstream); + } + if (object.awsKinesis != null) { + if (typeof object.awsKinesis !== "object") + throw TypeError(".protos.opts.ConnectionOptions.awsKinesis: object expected"); + message.awsKinesis = $root.protos.args.AWSKinesisConn.fromObject(object.awsKinesis); + } + if (object.memphis != null) { + if (typeof object.memphis !== "object") + throw TypeError(".protos.opts.ConnectionOptions.memphis: object expected"); + message.memphis = $root.protos.args.MemphisConn.fromObject(object.memphis); } + if (object._id != null) + message._id = String(object._id); return message; }; /** - * Creates a plain object from a DecodeOptions message. Also converts values to other types if specified. + * Creates a plain object from a ConnectionOptions message. Also converts values to other types if specified. * @function toObject - * @memberof protos.encoding.DecodeOptions + * @memberof protos.opts.ConnectionOptions * @static - * @param {protos.encoding.DecodeOptions} message DecodeOptions + * @param {protos.opts.ConnectionOptions} message ConnectionOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DecodeOptions.toObject = function toObject(message, options) { + ConnectionOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.schemaId = ""; - object.decodeType = options.enums === String ? "DECODE_TYPE_UNSET" : 0; - object.protobufSettings = null; - object.avroSettings = null; - object.thriftSettings = null; + object.name = ""; + object.notes = ""; + object._id = ""; } - if (message.schemaId != null && message.hasOwnProperty("schemaId")) - object.schemaId = message.schemaId; - if (message.decodeType != null && message.hasOwnProperty("decodeType")) - object.decodeType = options.enums === String ? $root.protos.encoding.DecodeType[message.decodeType] : message.decodeType; - if (message.protobufSettings != null && message.hasOwnProperty("protobufSettings")) - object.protobufSettings = $root.protos.encoding.ProtobufSettings.toObject(message.protobufSettings, options); - if (message.avroSettings != null && message.hasOwnProperty("avroSettings")) - object.avroSettings = $root.protos.encoding.AvroSettings.toObject(message.avroSettings, options); - if (message.thriftSettings != null && message.hasOwnProperty("thriftSettings")) - object.thriftSettings = $root.protos.encoding.ThriftSettings.toObject(message.thriftSettings, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.notes != null && message.hasOwnProperty("notes")) + object.notes = message.notes; + if (message.kafka != null && message.hasOwnProperty("kafka")) { + object.kafka = $root.protos.args.KafkaConn.toObject(message.kafka, options); + if (options.oneofs) + object.conn = "kafka"; + } + if (message.activeMq != null && message.hasOwnProperty("activeMq")) { + object.activeMq = $root.protos.args.ActiveMQConn.toObject(message.activeMq, options); + if (options.oneofs) + object.conn = "activeMq"; + } + if (message.awsSqs != null && message.hasOwnProperty("awsSqs")) { + object.awsSqs = $root.protos.args.AWSSQSConn.toObject(message.awsSqs, options); + if (options.oneofs) + object.conn = "awsSqs"; + } + if (message.awsSns != null && message.hasOwnProperty("awsSns")) { + object.awsSns = $root.protos.args.AWSSNSConn.toObject(message.awsSns, options); + if (options.oneofs) + object.conn = "awsSns"; + } + if (message.mongo != null && message.hasOwnProperty("mongo")) { + object.mongo = $root.protos.args.MongoConn.toObject(message.mongo, options); + if (options.oneofs) + object.conn = "mongo"; + } + if (message.nats != null && message.hasOwnProperty("nats")) { + object.nats = $root.protos.args.NatsConn.toObject(message.nats, options); + if (options.oneofs) + object.conn = "nats"; + } + if (message.natsStreaming != null && message.hasOwnProperty("natsStreaming")) { + object.natsStreaming = $root.protos.args.NatsStreamingConn.toObject(message.natsStreaming, options); + if (options.oneofs) + object.conn = "natsStreaming"; + } + if (message.nsq != null && message.hasOwnProperty("nsq")) { + object.nsq = $root.protos.args.NSQConn.toObject(message.nsq, options); + if (options.oneofs) + object.conn = "nsq"; + } + if (message.postgres != null && message.hasOwnProperty("postgres")) { + object.postgres = $root.protos.args.PostgresConn.toObject(message.postgres, options); + if (options.oneofs) + object.conn = "postgres"; + } + if (message.pulsar != null && message.hasOwnProperty("pulsar")) { + object.pulsar = $root.protos.args.PulsarConn.toObject(message.pulsar, options); + if (options.oneofs) + object.conn = "pulsar"; + } + if (message.rabbit != null && message.hasOwnProperty("rabbit")) { + object.rabbit = $root.protos.args.RabbitConn.toObject(message.rabbit, options); + if (options.oneofs) + object.conn = "rabbit"; + } + if (message.rabbitStreams != null && message.hasOwnProperty("rabbitStreams")) { + object.rabbitStreams = $root.protos.args.RabbitStreamsConn.toObject(message.rabbitStreams, options); + if (options.oneofs) + object.conn = "rabbitStreams"; + } + if (message.redisPubsub != null && message.hasOwnProperty("redisPubsub")) { + object.redisPubsub = $root.protos.args.RedisPubSubConn.toObject(message.redisPubsub, options); + if (options.oneofs) + object.conn = "redisPubsub"; + } + if (message.redisStreams != null && message.hasOwnProperty("redisStreams")) { + object.redisStreams = $root.protos.args.RedisStreamsConn.toObject(message.redisStreams, options); + if (options.oneofs) + object.conn = "redisStreams"; + } + if (message.azureEventHub != null && message.hasOwnProperty("azureEventHub")) { + object.azureEventHub = $root.protos.args.AzureEventHubConn.toObject(message.azureEventHub, options); + if (options.oneofs) + object.conn = "azureEventHub"; + } + if (message.azureServiceBus != null && message.hasOwnProperty("azureServiceBus")) { + object.azureServiceBus = $root.protos.args.AzureServiceBusConn.toObject(message.azureServiceBus, options); + if (options.oneofs) + object.conn = "azureServiceBus"; + } + if (message.mqtt != null && message.hasOwnProperty("mqtt")) { + object.mqtt = $root.protos.args.MQTTConn.toObject(message.mqtt, options); + if (options.oneofs) + object.conn = "mqtt"; + } + if (message.kubemqQueue != null && message.hasOwnProperty("kubemqQueue")) { + object.kubemqQueue = $root.protos.args.KubeMQQueueConn.toObject(message.kubemqQueue, options); + if (options.oneofs) + object.conn = "kubemqQueue"; + } + if (message.gcpPubsub != null && message.hasOwnProperty("gcpPubsub")) { + object.gcpPubsub = $root.protos.args.GCPPubSubConn.toObject(message.gcpPubsub, options); + if (options.oneofs) + object.conn = "gcpPubsub"; + } + if (message.natsJetstream != null && message.hasOwnProperty("natsJetstream")) { + object.natsJetstream = $root.protos.args.NatsJetstreamConn.toObject(message.natsJetstream, options); + if (options.oneofs) + object.conn = "natsJetstream"; + } + if (message.awsKinesis != null && message.hasOwnProperty("awsKinesis")) { + object.awsKinesis = $root.protos.args.AWSKinesisConn.toObject(message.awsKinesis, options); + if (options.oneofs) + object.conn = "awsKinesis"; + } + if (message.memphis != null && message.hasOwnProperty("memphis")) { + object.memphis = $root.protos.args.MemphisConn.toObject(message.memphis, options); + if (options.oneofs) + object.conn = "memphis"; + } + if (message._id != null && message.hasOwnProperty("_id")) + object._id = message._id; return object; }; /** - * Converts this DecodeOptions to JSON. + * Converts this ConnectionOptions to JSON. * @function toJSON - * @memberof protos.encoding.DecodeOptions + * @memberof protos.opts.ConnectionOptions * @instance * @returns {Object.} JSON object */ - DecodeOptions.prototype.toJSON = function toJSON() { + ConnectionOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DecodeOptions; + return ConnectionOptions; })(); - return encoding; + return opts; })(); protos.records = (function() { diff --git a/go.mod b/go.mod index d94348d..f7e5fe4 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ module github.com/batchcorp/plumber-schemas -go 1.16 +go 1.21 + +require google.golang.org/protobuf v1.35.2 require ( - github.com/favadi/protoc-go-inject-tag v1.4.0 // indirect - github.com/golang/protobuf v1.5.4 - github.com/urfave/cli/v2 v2.3.0 // indirect - google.golang.org/grpc v1.40.0 + github.com/golang/protobuf v1.5.4 // indirect + golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect ) diff --git a/go.sum b/go.sum index 4ed17fb..2c4449f 100644 --- a/go.sum +++ b/go.sum @@ -1,144 +1,10 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/favadi/protoc-go-inject-tag v1.3.0 h1:JPrmsmc/uBShG85uY5xGZIa5WJ0IaNZn6LZhQR9tIQE= -github.com/favadi/protoc-go-inject-tag v1.3.0/go.mod h1:SSkUBgfqw2IJ2p7NPNKWk0Idwxt/qIt2LQgFPUgRGtc= -github.com/favadi/protoc-go-inject-tag v1.4.0 h1:K3KXxbgRw5WT4f43LbglARGz/8jVsDOS7uMjG4oNvXY= -github.com/favadi/protoc-go-inject-tag v1.4.0/go.mod h1:AZ+PK+QDKUOLlBRG0rYiKkUX5Hw7+7GTFzlU99GFSbQ= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/urfave/cli/v2 v2.3.0 h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M= -github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20200822124328-c89045814202 h1:VvcQYSHwXgi7W+TpUR6A9g6Up98WAHf3f/ulnJ62IyA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.40.0 h1:AGJ0Ih4mHjSeibYkFGh1dD9KJ/eOtZ93I6hoHhukQ5Q= -google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= -google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= -google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.29.0 h1:44S3JjaKmLEE4YIkjzexaP+NzZsudE3Zin5Njn/pYX0= -google.golang.org/protobuf v1.29.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= -google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io= +google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= diff --git a/protos/opts/ps_opts_cli.proto b/protos/opts/ps_opts_cli.proto index 7bbeb8f..526e858 100644 --- a/protos/opts/ps_opts_cli.proto +++ b/protos/opts/ps_opts_cli.proto @@ -2,11 +2,7 @@ syntax = "proto3"; package protos.opts; -import "opts/ps_opts_manage.proto"; import "opts/ps_opts_read.proto"; -import "opts/ps_opts_relay.proto"; -import "opts/ps_opts_server.proto"; -import "opts/ps_opts_tunnel.proto"; import "opts/ps_opts_write.proto"; option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos/opts"; @@ -54,15 +50,8 @@ message CLIOptions { // @gotags: kong:"cmd,help='Write message(s) to messaging system'" opts.WriteOptions write = 3; - // @gotags: kong:"cmd,help='Relay message(s) from messaging system to Streamdal'" - opts.RelayOptions relay = 4; - - // @gotags: kong:"cmd,help='Use plumber as a destination tunnel in Streamdal'" - opts.TunnelOptions tunnel = 5; - - // @gotags: kong:"cmd,help='Run plumber in server mode'" - opts.ServerOptions server = 7; - - // @gotags: kong:"cmd,help='Manage plumber server'" - opts.ManageOptions manage = 8; + reserved 4; // old relay options + reserved 5; // old tunnel options + reserved 7; // old server options + reserved 8; // old manage server options } diff --git a/protos/opts/ps_opts_manage.proto b/protos/opts/ps_opts_manage.proto deleted file mode 100644 index 506cf85..0000000 --- a/protos/opts/ps_opts_manage.proto +++ /dev/null @@ -1,113 +0,0 @@ -syntax = "proto3"; - -package protos.opts; - -import "opts/ps_opts_manage_connection.proto"; -import "opts/ps_opts_manage_relay.proto"; -import "opts/ps_opts_manage_tunnel.proto"; - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos/opts"; - -message ManageOptions { - // Probably will be used for "update" in the future - reserved 4; - - // @gotags: kong:"embed" - GlobalManageOptions global_options = 1; - - // @gotags: kong:"cmd,help='Get resource(s) from plumber server'" - GetOptions get = 2; - - // @gotags: kong:"cmd,help='Create resources in plumber server'" - CreateOptions create = 3; - - // @gotags: kong:"cmd,help='Delete resources in plumber server'" - DeleteOptions delete = 5; - - // @gotags: kong:"cmd,help='Stop resources in plumber server'" - StopOptions stop = 6; - - // @gotags: kong:"cmd,help='Resume/Start resources in plumber server'" - ResumeOptions resume = 7; -} - -message GlobalManageOptions { - // Fields are namespaced with 'manage_' so they don't cause conflicts with - // embedded kong entries. - - // @gotags: kong:"help='Plumber server gRPC API address',default='localhost:9090'" - string manage_address = 1; - - // @gotags: kong:"help='Plumber server auth token',default='plumber-token'" - string manage_token = 2; - - // @gotags: kong:"help='gRPC call timeout seconds',default=10" - int64 manage_timeout_seconds = 3; - - // @gotags: kong:"help='Use TLS when talking to plumber server',default='false'" - bool manage_use_tls = 4; - - // @gotags: kong:"help='Skip TLS server certificate verification',default='false'" - bool manage_insecure_tls = 5; - - // @gotags: kong:"help='TLS CA file'" - string manage_tls_ca_file = 6; - - // @gotags: kong:"help='TLS client cert file'" - string manage_tls_cert_file = 7; - - // @gotags: kong:"help='TLS client key file'" - string manage_tls_key_file =8; - - // @gotags: kong:"help='Disable pretty/colorized output',default='false'" - bool disable_pretty = 9; -} - -message GetOptions { - // @gotags: kong:"cmd,help='Get connection(s) from plumber server'" - opts.GetConnectionOptions connection = 1; - - // @gotags: kong:"cmd,help='Get relay(s) from plumber server'" - opts.GetRelayOptions relay = 2; - - // @gotags: kong:"cmd,help='Get tunnel(s) from plumber server'" - opts.GetTunnelOptions tunnel = 3; -} - -message CreateOptions { - // @gotags: kong:"cmd,help='Create connection in plumber server'" - opts.CreateConnectionOptions connection = 1; - - // @gotags: kong:"cmd,help='Create relay in plumber server'" - opts.CreateRelayOptions relay = 2; - - // @gotags: kong:"cmd,help='Create tunnel in plumber server'" - opts.CreateTunnelOptions tunnel = 3; -} - -message DeleteOptions { - // @gotags: kong:"cmd,help='Delete connection in plumber server'" - opts.DeleteConnectionOptions connection = 1; - - // @gotags: kong:"cmd,help='Delete relay in plumber server'" - opts.DeleteRelayOptions relay = 2; - - // @gotags: kong:"cmd,help='Delete tunnel in plumber server'" - opts.DeleteTunnelOptions tunnel = 3; -} - -message StopOptions { - // @gotags: kong:"cmd,help='Stop relay in plumber server'" - opts.StopRelayOptions relay = 1; - - // @gotags: kong:"cmd,help='Stop tunnel in plumber server'" - opts.StopTunnelOptions tunnel = 2; -} - -message ResumeOptions { - // @gotags: kong:"cmd,help='Resume/Start relay in plumber server'" - opts.ResumeRelayOptions relay = 1; - - // @gotags: kong:"cmd,help='Resume/Start tunnel in plumber server'" - opts.ResumeTunnelOptions tunnel = 2; -} diff --git a/protos/opts/ps_opts_manage_connection.proto b/protos/opts/ps_opts_manage_connection.proto deleted file mode 100644 index 88f955c..0000000 --- a/protos/opts/ps_opts_manage_connection.proto +++ /dev/null @@ -1,113 +0,0 @@ -syntax = "proto3"; - -package protos.opts; - -import "args/ps_args_activemq.proto"; -import "args/ps_args_aws_kinesis.proto"; -import "args/ps_args_aws_sns.proto"; -import "args/ps_args_aws_sqs.proto"; -import "args/ps_args_azure_event_hub.proto"; -import "args/ps_args_azure_service_bus.proto"; -import "args/ps_args_gcp_pubsub.proto"; -import "args/ps_args_kafka.proto"; -import "args/ps_args_kubemq_queue.proto"; -import "args/ps_args_mongo.proto"; -import "args/ps_args_mqtt.proto"; -import "args/ps_args_nats.proto"; -import "args/ps_args_nats_jetstream.proto"; -import "args/ps_args_nats_streaming.proto"; -import "args/ps_args_nsq.proto"; -import "args/ps_args_postgres.proto"; -import "args/ps_args_pulsar.proto"; -import "args/ps_args_rabbit.proto"; -import "args/ps_args_rabbit_streams.proto"; -import "args/ps_args_redis_pubsub.proto"; -import "args/ps_args_redis_streams.proto"; - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos/opts"; - -message GetConnectionOptions { - // @gotags: kong:"help='ID of the connection to get (leave empty to get all)'" - string id = 1; -} - -message CreateConnectionOptions { - // @gotags: kong:"help='Friendly name for the connection', required" - string name = 1; - - // @gotags: kong:"help='Optional notes to associate with the connection'" - string notes = 2; - - // --------------------------------------------------------------------- // - // SUPPORTED BACKENDS (100-999) // - // --------------------------------------------------------------------- // - - // @gotags: kong:"cmd,help='Apache Kafka'" - args.KafkaConn kafka = 100; - - // @gotags: kong:"cmd,help='ActiveMQ'" - args.ActiveMQConn active_mq = 101; - - // @gotags: kong:"cmd,help='AWS Simple Queue Service'" - args.AWSSQSConn aws_sqs = 102; - - // @gotags: kong:"cmd,help='AWS Simple Notification Service'" - args.AWSSNSConn aws_sns = 103; - - // @gotags: kong:"cmd,help='Mongo (CDC)'" - args.MongoConn mongo = 104; - - // @gotags: kong:"cmd,help='NATS PubSub'" - args.NatsConn nats = 105; - - // @gotags: kong:"cmd,help='NATS Streaming (deprecated)'" - args.NatsStreamingConn nats_streaming = 106; - - // @gotags: kong:"cmd,help='NSQ'" - args.NSQConn nsq = 107; - - // @gotags: kong:"cmd,help='PostgreSQL (CDC)'" - args.PostgresConn postgres = 108; - - // @gotags: kong:"cmd,help='Pulsar'" - args.PulsarConn pulsar = 109; - - // @gotags: kong:"cmd,help='Rabbit'" - args.RabbitConn rabbit = 110; - - // @gotags: kong:"cmd,help='Rabbit Streams'" - args.RabbitStreamsConn rabbit_streams = 111; - - // @gotags: kong:"cmd,help='Redis PubSub'" - args.RedisPubSubConn redis_pubsub = 112; - - // @gotags: kong:"cmd,help='Redis Streams'" - args.RedisStreamsConn redis_streams = 113; - - // @gotags: kong:"cmd,help='Azure Event Hub'" - args.AzureEventHubConn azure_event_hub = 114; - - // @gotags: kong:"cmd,help='Azure Service Bus'" - args.AzureServiceBusConn azure_service_bus = 115; - - // @gotags: kong:"cmd,help='MQTT'" - args.MQTTConn mqtt = 116; - - // @gotags: kong:"cmd,help='KubeMQ Queue'" - args.KubeMQQueueConn kubemq_queue = 117; - - // @gotags: kong:"cmd,help='Google Cloud Pub/Sub'" - args.GCPPubSubConn gcp_pubsub = 118; - - // @gotags: kong:"cmd,help='NATS JetStream'" - args.NatsJetstreamConn nats_jetstream = 119; - - // @gotags: kong:"cmd,help='AWS Kinesis'" - args.AWSKinesisConn aws_kinesis = 120; - -} - -message DeleteConnectionOptions { - // @gotags: kong:"help='ID of the connection to delete',required=true" - string id = 1; -} diff --git a/protos/opts/ps_opts_manage_relay.proto b/protos/opts/ps_opts_manage_relay.proto deleted file mode 100644 index 0ec34c5..0000000 --- a/protos/opts/ps_opts_manage_relay.proto +++ /dev/null @@ -1,120 +0,0 @@ -syntax = "proto3"; - -package protos.opts; - -import "args/ps_args_aws_sqs.proto"; -import "args/ps_args_azure_service_bus.proto"; -import "args/ps_args_gcp_pubsub.proto"; -import "args/ps_args_kafka.proto"; -import "args/ps_args_kubemq_queue.proto"; -import "args/ps_args_mongo.proto"; -import "args/ps_args_mqtt.proto"; -import "args/ps_args_nats.proto"; -import "args/ps_args_nats_jetstream.proto"; -import "args/ps_args_nats_streaming.proto"; -import "args/ps_args_nsq.proto"; -import "args/ps_args_postgres.proto"; -import "args/ps_args_rabbit.proto"; -import "args/ps_args_redis_pubsub.proto"; -import "args/ps_args_redis_streams.proto"; - - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos/opts"; - -message GetRelayOptions { - // @gotags: kong:"help='ID of the relay to get (leave empty to get all)'" - string id = 1; -} - -message CreateRelayOptions { - // @gotags: kong:"help='ID of the connection to use',required" - string connection_id = 1; - - // @gotags: kong:"help='Secret collection token',required" - string collection_token = 2; - - // @gotags: kong:"help='How many messages to send in a single batch',default=1000" - int32 batch_size = 3; - - // @gotags: kong:"help='How many times plumber will try re-sending a batch',default=3" - int32 batch_max_retry = 4; - - // @gotags: kong:"help='How many workers to launch per relay',default=10" - int32 num_workers = 5; - - // @gotags: kong:"help='Alternative collector to relay events to',default='grpc-collector.streamdal.com:9000'" - string streamdal_grpc_address = 6; - - // @gotags: kong:"help='Whether to use TLS with collector'" - bool streamdal_grpc_disable_tls = 7; - - // @gotags: kong:"help='How long to wait before giving up talking to the gRPC collector',default=5" - int32 streamdal_grpc_timeout_seconds = 8; - - // @gotags: kong:"help='Consumed messages are intended to be dead-lettered'" - bool dead_letter = 9; - - // --------------------------------------------------------------------- // - // SUPPORTED BACKENDS (100-999) // - // --------------------------------------------------------------------- // - - // @gotags: kong:"cmd,help='Apache Kafka'" - args.KafkaRelayArgs kafka = 100; - - // @gotags: kong:"cmd,help='AWS Simple Queue System'" - args.AWSSQSRelayArgs aws_sqs = 101; - - // @gotags: kong:"cmd,help='MongoDB (CDC)'" - args.MongoReadArgs mongo = 102; - - // @gotags: kong:"cmd,help='NSQ'" - args.NSQReadArgs nsq = 103; - - // @gotags: kong:"cmd,help='MQTT'" - args.RabbitReadArgs rabbit = 104; - - // @gotags: kong:"cmd,help='MQTT'" - args.MQTTReadArgs mqtt = 105; - - // @gotags: kong:"cmd,help='Azure Service Bus'" - args.AzureServiceBusReadArgs azure_service_bus = 106; - - // @gotags: kong:"cmd,help='Google Cloud Platform Pub/Sub'" - args.GCPPubSubReadArgs gcp_pubsub = 107; - - // @gotags: kong:"cmd,help='KubeMQ Queue'" - args.KubeMQQueueReadArgs kubemq_queue = 108; - - // @gotags: kong:"cmd,help='Redis PubSub'" - args.RedisPubSubReadArgs redis_pubsub = 109; - - // @gotags: kong:"cmd,help='Redis Streams'" - args.RedisStreamsReadArgs redis_streams = 111; - - // @gotags: kong:"cmd,help='PostgreSQL (CDC)'" - args.PostgresReadArgs postgres = 112; - - // @gotags: kong:"cmd,help='NATS'" - args.NatsReadArgs nats = 113; - - // @gotags: kong:"cmd,help='NATS Streaming'" - args.NatsStreamingReadArgs nats_streaming = 114; - - // @gotags: kong:"cmd,help='NATS JetStream'" - args.NatsJetstreamReadArgs nats_jetstream = 115; -} - -message DeleteRelayOptions { - // @gotags: kong:"help='ID of the relay to delete',required=true" - string id = 1; -} - -message StopRelayOptions { - // @gotags: kong:"help='ID of the relay to stop',required=true" - string id = 1; -} - -message ResumeRelayOptions { - // @gotags: kong:"help='ID of the relay to resume',required=true" - string id = 1; -} diff --git a/protos/opts/ps_opts_manage_tunnel.proto b/protos/opts/ps_opts_manage_tunnel.proto deleted file mode 100644 index 56a8254..0000000 --- a/protos/opts/ps_opts_manage_tunnel.proto +++ /dev/null @@ -1,134 +0,0 @@ -syntax = "proto3"; - -package protos.opts; - -import "args/ps_args_activemq.proto"; -import "args/ps_args_aws_kinesis.proto"; -import "args/ps_args_aws_sns.proto"; -import "args/ps_args_aws_sqs.proto"; -import "args/ps_args_azure_event_hub.proto"; -import "args/ps_args_azure_service_bus.proto"; -import "args/ps_args_gcp_pubsub.proto"; -import "args/ps_args_kafka.proto"; -import "args/ps_args_kubemq_queue.proto"; -import "args/ps_args_memphis.proto"; -import "args/ps_args_mqtt.proto"; -import "args/ps_args_nats.proto"; -import "args/ps_args_nats_jetstream.proto"; -import "args/ps_args_nats_streaming.proto"; -import "args/ps_args_nsq.proto"; -import "args/ps_args_pulsar.proto"; -import "args/ps_args_rabbit.proto"; -import "args/ps_args_rabbit_streams.proto"; -import "args/ps_args_redis_pubsub.proto"; -import "args/ps_args_redis_streams.proto"; - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos/opts"; - -message GetTunnelOptions { - // @gotags: kong:"help='ID of the tunnel to get (leave empty to get all)'" - string id = 1; -} - -message CreateTunnelOptions { - // @gotags: kong:"help='Connection ID for the tunnel to use',required=true" - string connection_id = 1; - - // @gotags: kong:"help='Streamdal API token (create in settings -> security)',required=true" - string tunnel_token = 3; - - // @gotags: kong:"help='Name for the tunnel (auto-generated if left empty)'" - string name = 4; - - // @gotags: kong:"help='Notes associated with the tunnel'" - string notes = 5; - - // @gotags: kong:"help='Tunnel API address',default='dproxy.streamdal.com:443'" - string _tunnel_address = 6; - - // @gotags: kong:"help='Tunnel API initial connection timeout',default=5" - uint32 _tunnel_timeout_seconds = 7; - - // @gotags: kong:"help='Use gRPC insecure mode when talking to Streamdal Tunnel API'" - bool _tunnel_insecure = 8; - - // --------------------------------------------------------------------- // - // SUPPORTED BACKENDS (100-999) // - // --------------------------------------------------------------------- // - - // @gotags: kong:"cmd,help='Apache Kafka'" - args.KafkaWriteArgs kafka = 100; - - // @gotags: kong:"cmd,help='Apache ActiveMQ'" - args.ActiveMQWriteArgs activemq = 101; - - // @gotags: kong:"cmd,help='AWS Simple Queue System'" - args.AWSSQSWriteArgs aws_sqs = 102; - - // @gotags: kong:"cmd,help='AWS Simple Notification System'" - args.AWSSNSWriteArgs aws_sns = 103; - - // @gotags: kong:"cmd,help='NATS'" - args.NatsWriteArgs nats = 104; - - // @gotags: kong:"cmd,help='NATS Streaming'" - args.NatsStreamingWriteArgs nats_streaming = 105; - - // @gotags: kong:"cmd,help='NSQ'" - args.NSQWriteArgs nsq = 106; - - // @gotags: kong:"cmd,help='RabbitMQ'" - args.RabbitWriteArgs rabbit = 107; - - // @gotags: kong:"cmd,help='MQTT'" - args.MQTTWriteArgs mqtt = 108; - - // @gotags: kong:"cmd,help='Azure Service Bus'" - args.AzureServiceBusWriteArgs azure_service_bus = 109; - - // @gotags: kong:"cmd,help='Azure Event Hub'" - args.AzureEventHubWriteArgs azure_event_hub = 110; - - // @gotags: kong:"cmd,help='Google Cloud Platform Pub/Sub'" - args.GCPPubSubWriteArgs gcp_pubsub = 111; - - // @gotags: kong:"cmd,help='KubeMQ Queue'" - args.KubeMQQueueWriteArgs kubemq_queue = 112; - - // @gotags: kong:"cmd,help='Redis PubSub'" - args.RedisPubSubWriteArgs redis_pubsub = 113; - - // @gotags: kong:"cmd,help='Redis Streams'" - args.RedisStreamsWriteArgs redis_streams = 114; - - // @gotags: kong:"cmd,help='Apache Pulsar'" - args.PulsarWriteArgs pulsar = 115; - - // @gotags: kong:"cmd,help='RabbitMQ Streams'" - args.RabbitStreamsWriteArgs rabbit_streams = 116; - - // @gotags: kong:"cmd,help='NATS JetStream'" - args.NatsJetstreamWriteArgs nats_jetstream = 117; - - // @gotags: kong:"cmd,help='AWS Kinesis Streams'" - args.AWSKinesisWriteArgs aws_kinesis = 118; - - // @gotags: kong:"cmd,help='Memphis'" - args.MemphisWriteArgs memphis = 119; - -} - -message DeleteTunnelOptions { - // @gotags: kong:"help='ID of the tunnel to delete',required=true" - string id =1; -} - -message StopTunnelOptions { - // @gotags: kong:"help='ID of the tunnel to stop',required=true" - string id = 1; -} - -message ResumeTunnelOptions { - // @gotags: kong:"help='ID of the tunnel to resume',required=true" - string id = 1; -} diff --git a/protos/opts/ps_opts_relay.proto b/protos/opts/ps_opts_relay.proto deleted file mode 100644 index d2bc3a8..0000000 --- a/protos/opts/ps_opts_relay.proto +++ /dev/null @@ -1,236 +0,0 @@ -syntax = "proto3"; - -package protos.opts; - -import "args/ps_args_aws_sqs.proto"; -import "args/ps_args_azure_service_bus.proto"; -import "args/ps_args_gcp_pubsub.proto"; -import "args/ps_args_kafka.proto"; -import "args/ps_args_kubemq_queue.proto"; -import "args/ps_args_mongo.proto"; -import "args/ps_args_mqtt.proto"; -import "args/ps_args_nats.proto"; -import "args/ps_args_nats_jetstream.proto"; -import "args/ps_args_nats_streaming.proto"; -import "args/ps_args_nsq.proto"; -import "args/ps_args_postgres.proto"; -import "args/ps_args_rabbit.proto"; -import "args/ps_args_redis_pubsub.proto"; -import "args/ps_args_redis_streams.proto"; -import "opts/ps_opts_manage_relay.proto"; - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos/opts"; - -message RelayCLIOptions { - // @gotags: kong:"help='What address to bind the built-in HTTP server to',env='PLUMBER_RELAY_HTTP_LISTEN_ADDRESS',default='localhost:9191'" - string http_listen_address = 1; -} - -// Relay is the structure that backends accept for facilitating a relay. -// NOTE: _conn is only used by the CLI - desktop does not need to set it. -message RelayOptions { - // @gotags: kong:"help='Secret collection token',env='PLUMBER_RELAY_TOKEN',name=token,required" - string collection_token = 1; - - // @gotags: kong:"help='How many messages to send in a single batch',env='PLUMBER_RELAY_BATCH_SIZE',default=1000" - int32 batch_size = 2; - - // @gotags: kong:"help='How many times plumber will try re-sending a batch',env='PLUMBER_RELAY_BATCH_MAX_RETRY',default=3" - int32 batch_max_retry = 3; - - // Required for desktop; ignored in CLI. - // @gotags: kong:"-" - string connection_id = 4; - - // @gotags: kong:"help='How many workers to launch per relay',env='PLUMBER_RELAY_NUM_WORKERS',default=10" - int32 num_workers = 5; - - // @gotags: kong:"group=stats,help='Display periodic read stats'" - bool stats_enable = 6; - - // @gotags: kong:"group=stats,help='How often to print stats',default=5" - int32 stats_report_interval_sec = 7; - - // @gotags: kong:"help='Consumed messages are intended to be dead-lettered',env='PLUMBER_RELAY_DEAD_LETTER'" - bool dead_letter = 8; - - // --------------------------------------------------------------------- // - // PRIVATE FIELDS (1000+) // - // --------------------------------------------------------------------- // - - // @gotags: kong:"help='Alternative collector to relay events to',name='grpc-address',env='PLUMBER_RELAY_GRPC_ADDRESS',default='grpc-collector.streamdal.com:9000'" - string _streamdal_grpc_address = 1000; - - // @gotags: kong:"help='Whether to use TLS with collector',name=grpc-disable-tls,env='PLUMBER_RELAY_GRPC_DISABLE_TLS',default=false" - bool _streamdal_grpc_disable_tls = 1001; - - // @gotags: kong:"help='How long to wait before giving up talking to the gRPC collector',name='grpc-timeout-seconds',env='PLUMBER_RELAY_GRPC_TIMEOUT',default=5" - int32 _streamdal_grpc_timeout_seconds = 1002; - - // ID of the created relay entry; populated by plumber. - // @gotags: kong:"-" - string _relay_id = 1003; - - // @gotags: kong:"embed" - RelayCLIOptions _cli_options = 1004; - - // Populated by plumber server during GetRelay* methods - // @gotags: kong:"-" - bool _active = 1005; - - // --------------------------------------------------------------------- // - // SUPPORTED BACKENDS (100-999) // - // --------------------------------------------------------------------- // - - // @gotags: kong:"cmd,help='Apache Kafka'" - RelayGroupKafkaOptions kafka = 100; - - // @gotags: kong:"cmd,help='AWS Simple Queue System'" - RelayGroupAWSSQSOptions aws_sqs = 101; - - // @gotags: kong:"cmd,help='MongoDB (CDC)'" - RelayGroupMongoOptions mongo = 102; - - // @gotags: kong:"cmd,help='NSQ'" - RelayGroupNSQOptions nsq = 103; - - // @gotags: kong:"cmd,help='MQTT'" - RelayGroupRabbitOptions rabbit = 104; - - // @gotags: kong:"cmd,help='MQTT'" - RelayGroupMQTTOptions mqtt = 105; - - // @gotags: kong:"cmd,help='Azure Service Bus'" - RelayGroupAzureServiceBusOptions azure_service_bus = 106; - - // @gotags: kong:"cmd,help='Google Cloud Platform Pub/Sub'" - RelayGroupGCPPubSubOptions gcp_pubsub = 107; - - // @gotags: kong:"cmd,help='KubeMQ Queue'" - RelayGroupKubeMQQueueOptions kubemq_queue = 108; - - // @gotags: kong:"cmd,help='Redis PubSub'" - RelayGroupRedisPubSubOptions redis_pubsub = 109; - - // @gotags: kong:"cmd,help='Redis Streams'" - RelayGroupRedisStreamsOptions redis_streams = 111; - - // @gotags: kong:"cmd,help='PostgreSQL (CDC)'" - RelayGroupPostgresOptions postgres = 112; - - // @gotags: kong:"cmd,help='NATS'" - RelayGroupNatsOptions nats = 113; - - // @gotags: kong:"cmd,help='NATS Streaming'" - RelayGroupNatsStreamingOptions nats_streaming = 114; - - // @gotags: kong:"cmd,help='NATS JetStream'" - RelayGroupNatsJetStreamOptions nats_jetstream = 115; -} - -message RelayGroupKafkaOptions { - // @gotags: kong:"embed" - args.KafkaConn _conn = 1; - // @gotags: kong:"embed" - args.KafkaRelayArgs args = 2; -} - -message RelayGroupAWSSQSOptions { - // @gotags: kong:"embed" - args.AWSSQSConn _conn = 1; - // @gotags: kong:"embed" - args.AWSSQSRelayArgs args = 2; -} - -message RelayGroupMongoOptions { - // @gotags: kong:"embed" - args.MongoConn _conn = 1; - // @gotags: kong:"embed" - args.MongoReadArgs args = 2; -} - -message RelayGroupNSQOptions { - // @gotags: kong:"embed" - args.NSQConn _conn = 1; - // @gotags: kong:"embed" - args.NSQReadArgs args = 2; -} - -message RelayGroupPostgresOptions { - // @gotags: kong:"embed" - args.PostgresConn _conn = 1; - // @gotags: kong:"embed" - args.PostgresReadArgs args = 2; -} - -message RelayGroupRabbitOptions { - // @gotags: kong:"embed" - args.RabbitConn _conn = 1; - // @gotags: kong:"embed" - args.RabbitReadArgs args = 2; -} - -message RelayGroupRedisPubSubOptions { - // @gotags: kong:"embed" - args.RedisPubSubConn _conn = 1; - // @gotags: kong:"embed" - args.RedisPubSubReadArgs args = 2; -} - -message RelayGroupRedisStreamsOptions { - // @gotags: kong:"embed" - args.RedisStreamsConn _conn = 1; - // @gotags: kong:"embed" - args.RedisStreamsReadArgs args = 2; -} - -message RelayGroupAzureServiceBusOptions { - // @gotags: kong:"embed" - args.AzureServiceBusConn _conn = 1; - // @gotags: kong:"embed" - args.AzureServiceBusReadArgs args = 2; -} - -message RelayGroupMQTTOptions { - // @gotags: kong:"embed" - args.MQTTConn _conn = 1; - // @gotags: kong:"embed" - args.MQTTReadArgs args = 2; -} - -message RelayGroupGCPPubSubOptions { - // @gotags: kong:"embed" - args.GCPPubSubConn _conn = 1; - // @gotags: kong:"embed" - args.GCPPubSubReadArgs args = 2; -} - -message RelayGroupKubeMQQueueOptions { - // @gotags: kong:"embed" - args.KubeMQQueueConn _conn = 1; - // @gotags: kong:"embed" - args.KubeMQQueueReadArgs args = 2; -} - -message RelayGroupNatsOptions { - // @gotags: kong:"embed" - args.NatsConn _conn = 1; - // @gotags: kong:"embed" - args.NatsReadArgs args = 2; -} - -message RelayGroupNatsStreamingOptions { - // @gotags: kong:"embed" - args.NatsStreamingConn _conn = 1; - // @gotags: kong:"embed" - args.NatsStreamingReadArgs args = 2; -} - - -message RelayGroupNatsJetStreamOptions { - // @gotags: kong:"embed" - args.NatsJetstreamConn _conn = 1; - // @gotags: kong:"embed" - args.NatsJetstreamReadArgs args = 2; -} - diff --git a/protos/opts/ps_opts_server.proto b/protos/opts/ps_opts_server.proto deleted file mode 100644 index 6930da5..0000000 --- a/protos/opts/ps_opts_server.proto +++ /dev/null @@ -1,64 +0,0 @@ -syntax = "proto3"; - -package protos.opts; - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos/opts"; - -message ServerOptions { - // @gotags: kong:"default=plumber1,help='Unique ID that identifies this plumber node',env='PLUMBER_SERVER_NODE_ID',required" - string node_id = 1; - - // @gotags: kong:"default=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa,help='ID of the plumber cluster (has to be the same across all nodes)',env='PLUMBER_SERVER_CLUSTER_ID',required" - string cluster_id = 2; - - // @gotags: kong:"help='Host:port that the gRPC server will bind to',env='PLUMBER_SERVER_GRPC_LISTEN_ADDRESS',default=0.0.0.0:9090" - string grpc_listen_address = 3; - - // @gotags: kong:"default=streamdal,help='All gRPC requests require this auth token to be set',env='PLUMBER_SERVER_AUTH_TOKEN',required" - string auth_token = 4; - - // @gotags: kong:"help='Comma separated list of NATS server URLs (can contain user:password if using auth; only used if --enable-cluster is true)',env='PLUMBER_SERVER_NATS_URL',default='nats://localhost:4222'" - repeated string nats_url = 5; - - // @gotags: kong:"help='Whether to use TLS (only used if --enable-cluster is true)',env='PLUMBER_SERVER_USE_TLS'" - bool use_tls = 500; - - // @gotags: kong:"help='TLS client cert file (only used if --enable-cluster is true)',env='PLUMBER_SERVER_TLS_CERT_FILE'" - string tls_cert_file = 6; - - // @gotags: kong:"help='TLS client key file (only used if --enable-cluster is true)',env='PLUMBER_SERVER_TLS_KEY_FILE'" - string tls_key_file = 7; - - // @gotags: kong:"help='TLS CA certificate file (only used if --enable-cluster is true)',env='PLUMBER_SERVER_TLS_CA_FILE'" - string tls_ca_file = 8; - - // @gotags: kong:"help='Skip server cert verification (only used if --enable-cluster is true)',env='PLUMBER_SERVER_TLS_SKIP_VERIFY',default=false" - bool tls_skip_verify = 9; - - // @gotags: kong:"help='Run plumber in cluster mode (will use NATS)',env='PLUMBER_SERVER_ENABLE_CLUSTER',default=false" - bool enable_cluster = 10; - - // old vc-service flags - reserved 11 to 13; - - // @gotags: kong:"help='Location to store time-series data for counters',default='./.tsdata'" - string stats_database_path = 14; - - // @gotags: kong:"help='How often to flush time-series data (in seconds) from memory to storage',default='60'" - int32 stats_flush_interval_seconds = 15; - - // @gotags: kong:"help='What address to bind the built-in HTTP server to',default='0.0.0.0:9191'" - string http_listen_address = 16; - - // @gotags: kong:"help='Allow plumber to be controlled from https://console.streamdal.com',env='PLUMBER_REMOTE_CONTROL_ENABLED',default=false" - bool remote_control_enabled = 17; - - // @gotags: kong:"help='Address of Streamdal Plumber remote control service',env='PLUMBER_REMOTE_CONTROL_ADDRESS',default='foreman.streamdal.com:443'" - string remote_control_address = 18; - - // @gotags: kong:"help='Streamdal API token, needed to access remote control service',env='PLUMBER_REMOTE_CONTROL_API_TOKEN'" - string remote_control_api_token = 19; - - // @gotags: kong:"help='Connect to remote control server without TLS',default=false" - bool remote_control_disable_tls = 20; -} diff --git a/protos/opts/ps_opts_tunnel.proto b/protos/opts/ps_opts_tunnel.proto deleted file mode 100644 index 82e736b..0000000 --- a/protos/opts/ps_opts_tunnel.proto +++ /dev/null @@ -1,280 +0,0 @@ -syntax = "proto3"; - -package protos.opts; - -import "args/ps_args_activemq.proto"; -import "args/ps_args_aws_kinesis.proto"; -import "args/ps_args_aws_sns.proto"; -import "args/ps_args_aws_sqs.proto"; -import "args/ps_args_azure_event_hub.proto"; -import "args/ps_args_azure_service_bus.proto"; -import "args/ps_args_gcp_pubsub.proto"; -import "args/ps_args_kafka.proto"; -import "args/ps_args_kubemq_queue.proto"; -import "args/ps_args_memphis.proto"; -import "args/ps_args_mqtt.proto"; -import "args/ps_args_nats.proto"; -import "args/ps_args_nats_jetstream.proto"; -import "args/ps_args_nats_streaming.proto"; -import "args/ps_args_nsq.proto"; -import "args/ps_args_pulsar.proto"; -import "args/ps_args_rabbit.proto"; -import "args/ps_args_rabbit_streams.proto"; -import "args/ps_args_redis_pubsub.proto"; -import "args/ps_args_redis_streams.proto"; - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos/opts"; - -message TunnelOptions { - // @gotags: kong:"help='API token to use for tunnel (create here: https://console.streamdal.com/account/security)',required" - string api_token = 1; - - // @gotags: kong:"-" - string connection_id = 2; - - // @gotags: kong:"help='Tunnel API address',default='dproxy.streamdal.com:443'" - string _grpc_address = 3; - - // @gotags: kong:"help='Tunnel API initial connection timeout',default=5" - uint32 _grpc_timeout_seconds = 4; - - // @gotags: kong:"help='Use gRPC insecure mode when talking to Streamdal'" - bool _grpc_insecure = 5; - - // Optional for server and CLI - // NOTE: CLI-based tunnels will be treated as ephemeral. - // @gotags: kong:"help='Name to identify tunnel in Streamdal console. If omitted, your IP address will be used'" - string name = 6; - - // ID of the created tunnel; populated by plumber. - // @gotags: kong:"-" - string _tunnel_id = 1000; - - // Set by CreateTunnel() StopTunnel() and ResumeTunnel() methods in Plumber - // @gotags: kong:"-" - bool _active = 1001; - - // --------------------------------------------------------------------- // - // SUPPORTED BACKENDS (100-999) // - // --------------------------------------------------------------------- // - - // @gotags: kong:"cmd,help='Apache Kafka'" - TunnelGroupKafkaOptions kafka = 100; - - // @gotags: kong:"cmd,help='Apache ActiveMQ'" - TunnelGroupActiveMQOptions activemq = 101; - - // @gotags: kong:"cmd,help='AWS Simple Queue System'" - TunnelGroupAWSSQSOptions aws_sqs = 102; - - // @gotags: kong:"cmd,help='AWS Simple Notification System'" - TunnelGroupAWSSNSOptions aws_sns = 103; - - // @gotags: kong:"cmd,help='NATS'" - TunnelGroupNatsOptions nats = 104; - - // @gotags: kong:"cmd,help='NATS Streaming'" - TunnelGroupNatsStreamingOptions nats_streaming = 105; - - // @gotags: kong:"cmd,help='NSQ'" - TunnelGroupNSQOptions nsq = 106; - - // @gotags: kong:"cmd,help='RabbitMQ'" - TunnelGroupRabbitOptions rabbit = 107; - - // @gotags: kong:"cmd,help='MQTT'" - TunnelGroupMQTTOptions mqtt = 108; - - // @gotags: kong:"cmd,help='Azure Service Bus'" - TunnelGroupAzureServiceBusOptions azure_service_bus = 109; - - // @gotags: kong:"cmd,help='Azure Event Hub'" - TunnelGroupAzureEventHubOptions azure_event_hub = 110; - - // @gotags: kong:"cmd,help='Google Cloud Platform Pub/Sub'" - TunnelGroupGCPPubSubOptions gcp_pubsub = 111; - - // @gotags: kong:"cmd,help='KubeMQ Queue'" - TunnelGroupKubeMQQueueOptions kubemq_queue = 112; - - // @gotags: kong:"cmd,help='Redis PubSub'" - TunnelGroupRedisPubSubOptions redis_pubsub = 113; - - // @gotags: kong:"cmd,help='Redis Streams'" - TunnelGroupRedisStreamsOptions redis_streams = 114; - - // @gotags: kong:"cmd,help='Apache Pulsar'" - TunnelGroupPulsarOptions pulsar = 115; - - // @gotags: kong:"cmd,help='RabbitMQ Streams'" - TunnelGroupRabbitStreamsOptions rabbit_streams = 116; - - // @gotags: kong:"cmd,help='NATS JetStream'" - TunnelGroupNatsJetstreamOptions nats_jetstream = 117; - - // @gotags: kong:"cmd,help='AWS Kinesis Streams'" - TunnelGroupAWSKinesisOptions aws_kinesis = 118; - - // @gotags: kong:"cmd,help='Memphis'" - TunnelGroupMemphisOptions memphis = 119; -} - -message TunnelGroupKafkaOptions { - // @gotags: kong:"embed" - args.KafkaConn _conn = 1; - - // @gotags: kong:"embed" - args.KafkaWriteArgs args = 2; -} - -message TunnelGroupActiveMQOptions { - // @gotags: kong:"embed" - args.ActiveMQConn _conn = 1; - - // @gotags: kong:"embed" - args.ActiveMQWriteArgs args = 2; -} - -message TunnelGroupAWSSQSOptions { - // @gotags: kong:"embed" - args.AWSSQSConn _conn = 1; - - // @gotags: kong:"embed" - args.AWSSQSWriteArgs args = 2; -} - -message TunnelGroupAWSSNSOptions { - // @gotags: kong:"embed" - args.AWSSNSConn _conn = 1; - - // @gotags: kong:"embed" - args.AWSSNSWriteArgs args = 2; -} - -message TunnelGroupNatsOptions { - // @gotags: kong:"embed" - args.NatsConn _conn = 1; - - // @gotags: kong:"embed" - args.NatsWriteArgs args = 2; -} - -message TunnelGroupNatsJetstreamOptions { - // @gotags: kong:"embed" - args.NatsJetstreamConn _conn = 1; - - // @gotags: kong:"embed" - args.NatsJetstreamWriteArgs args = 2; -} - -message TunnelGroupNatsStreamingOptions { - // @gotags: kong:"embed" - args.NatsStreamingConn _conn = 1; - - // @gotags: kong:"embed" - args.NatsStreamingWriteArgs args = 2; -} - -message TunnelGroupNSQOptions { - // @gotags: kong:"embed" - args.NSQConn _conn = 1; - - // @gotags: kong:"embed" - args.NSQWriteArgs args = 2; -} - -message TunnelGroupRabbitOptions { - // @gotags: kong:"embed" - args.RabbitConn _conn = 1; - - // @gotags: kong:"embed" - args.RabbitWriteArgs args = 2; -} - -message TunnelGroupRabbitStreamsOptions { - // @gotags: kong:"embed" - args.RabbitStreamsConn _conn = 1; - - // @gotags: kong:"embed" - args.RabbitStreamsWriteArgs args = 2; -} - -message TunnelGroupRedisPubSubOptions { - // @gotags: kong:"embed" - args.RedisPubSubConn _conn = 1; - - // @gotags: kong:"embed" - args.RedisPubSubWriteArgs args = 2; -} - -message TunnelGroupRedisStreamsOptions { - // @gotags: kong:"embed" - args.RedisStreamsConn _conn = 1; - - // @gotags: kong:"embed" - args.RedisStreamsWriteArgs args = 2; -} - -message TunnelGroupAzureEventHubOptions { - // @gotags: kong:"embed" - args.AzureEventHubConn _conn = 1; - - // @gotags: kong:"embed" - args.AzureEventHubWriteArgs args = 2; -} - -message TunnelGroupAzureServiceBusOptions { - // @gotags: kong:"embed"{ - args.AzureServiceBusConn _conn = 1; - - // @gotags: kong:"embed" - args.AzureServiceBusWriteArgs args = 2; -} - -message TunnelGroupMQTTOptions { - // @gotags: kong:"embed" - args.MQTTConn _conn = 1; - - // @gotags: kong:"embed" - args.MQTTWriteArgs args = 2; -} - -message TunnelGroupGCPPubSubOptions { - // @gotags: kong:"embed" - args.GCPPubSubConn _conn = 1; - - // @gotags: kong:"embed" - args.GCPPubSubWriteArgs args = 2; -} - -message TunnelGroupKubeMQQueueOptions { - // @gotags: kong:"embed" - args.KubeMQQueueConn _conn = 1; - - // @gotags: kong:"embed" - args.KubeMQQueueWriteArgs args = 2; -} - -message TunnelGroupPulsarOptions { - // @gotags: kong:"embed" - args.PulsarConn _conn = 1; - - // @gotags: kong:"embed" - args.PulsarWriteArgs args = 2; -} - -message TunnelGroupAWSKinesisOptions { - // @gotags: kong:"embed" - args.AWSKinesisConn _conn = 1; - - // @gotags: kong:"embed" - args.AWSKinesisWriteArgs args = 2; -} - -message TunnelGroupMemphisOptions { - // @gotags: kong:"embed" - args.MemphisConn _conn = 1; - - // @gotags: kong:"embed" - args.MemphisWriteArgs args = 2; -} diff --git a/protos/ps_base.proto b/protos/ps_base.proto deleted file mode 100644 index 819d581..0000000 --- a/protos/ps_base.proto +++ /dev/null @@ -1,72 +0,0 @@ -syntax = "proto3"; - -package protos; - -import "ps_connect.proto"; -import "ps_relay.proto"; -import "ps_server.proto"; -import "ps_tunnel.proto"; - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos"; - -service PlumberServer { - // IMPORTANT! - // Any changes to methods in this service must be duplicated to ps_foreman_server.proto:ForemanServer - // IMPORTANT! - - // -------------------- Connection --------------------- - - // List configured/known connections - rpc GetAllConnections (GetAllConnectionsRequest) returns (GetAllConnectionsResponse); - - // Fetch a specific connection by ID - rpc GetConnection(GetConnectionRequest) returns (GetConnectionResponse); - - // Create a connection in plumber - rpc CreateConnection(CreateConnectionRequest) returns (CreateConnectionResponse); - - // Test a connection before saving its configuration - rpc TestConnection(TestConnectionRequest) returns (TestConnectionResponse); - - // Any active connections will be restarted - rpc UpdateConnection(UpdateConnectionRequest) returns (UpdateConnectionResponse); - - // If there are any active connections, delete will cause them to get closed - rpc DeleteConnection(DeleteConnectionRequest) returns (DeleteConnectionResponse); - - // ---------------------- Relay ---------------------- - - rpc GetAllRelays(GetAllRelaysRequest) returns (GetAllRelaysResponse); - - rpc GetRelay(GetRelayRequest) returns (GetRelayResponse); - - rpc CreateRelay(CreateRelayRequest) returns (CreateRelayResponse); - - rpc UpdateRelay(UpdateRelayRequest) returns (UpdateRelayResponse); - - rpc ResumeRelay(ResumeRelayRequest) returns (ResumeRelayResponse); - - rpc StopRelay(StopRelayRequest) returns (StopRelayResponse); - - rpc DeleteRelay(DeleteRelayRequest) returns (DeleteRelayResponse); - - // --------------------- Tunnel --------------------- - - rpc GetTunnel(GetTunnelRequest) returns (GetTunnelResponse); - - rpc GetAllTunnels(GetAllTunnelsRequest) returns (GetAllTunnelsResponse); - - rpc CreateTunnel(CreateTunnelRequest) returns (CreateTunnelResponse); - - rpc StopTunnel(StopTunnelRequest) returns (StopTunnelResponse); - - rpc ResumeTunnel(ResumeTunnelRequest) returns (ResumeTunnelResponse); - - rpc UpdateTunnel(UpdateTunnelRequest) returns (UpdateTunnelResponse); - - rpc DeleteTunnel(DeleteTunnelRequest) returns (DeleteTunnelResponse); - - // ------------------- Server ------------------- - - rpc GetServerOptions(GetServerOptionsRequest) returns (GetServerOptionsResponse); -} diff --git a/protos/ps_connect.proto b/protos/ps_connect.proto deleted file mode 100644 index 94230c7..0000000 --- a/protos/ps_connect.proto +++ /dev/null @@ -1,86 +0,0 @@ -syntax = "proto3"; - -package protos; - -import "common/ps_common_auth.proto"; -import "common/ps_common_status.proto"; -import "opts/ps_opts_connection.proto"; - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos"; - -message GetAllConnectionsRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; -} - -message GetAllConnectionsResponse { - repeated opts.ConnectionOptions options = 1; -} - -/////////////////////////////////////////////////////////////////////////////// - -message GetConnectionRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - string connection_id = 1; -} - -message GetConnectionResponse { - opts.ConnectionOptions options = 1; -} - -/////////////////////////////////////////////////////////////////////////////// - -message CreateConnectionRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - opts.ConnectionOptions options = 1; -} - -message CreateConnectionResponse { - // Set with uuid that represents connection if create is successful - string connection_id = 1; -} - -/////////////////////////////////////////////////////////////////////////////// - -message TestConnectionRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - opts.ConnectionOptions options = 1; -} - -message TestConnectionResponse { - common.Status status = 1000; -} - -/////////////////////////////////////////////////////////////////////////////// - -message UpdateConnectionRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - string connection_id = 1; - - opts.ConnectionOptions options = 2; -} - -message UpdateConnectionResponse { - common.Status status = 1000; -} - -/////////////////////////////////////////////////////////////////////////////// - -message DeleteConnectionRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - string connection_id = 1; -} - -message DeleteConnectionResponse { - common.Status status = 1000; -} diff --git a/protos/ps_foreman_client.proto b/protos/ps_foreman_client.proto deleted file mode 100644 index 1c01de2..0000000 --- a/protos/ps_foreman_client.proto +++ /dev/null @@ -1,37 +0,0 @@ -syntax = "proto3"; - -package protos; - - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos"; - -// ForemanClient is a service used to connect to Foreman from a Plumber server cluster -service ForemanClient { - // Used by plumber to connect to Foreman and announce its presence. - rpc Register(ForemanRegisterRequest) returns (ForemanRegisterResponse); -} - -message ForemanRegisterRequest { - // API token obtained from https://console.streamdal.com/account/security - string api_token = 1; - - // Plumber cluster ID - string cluster_id = 2; - - // Token used to authenticate calls to this plumber instance - // This is filled out by plumber, and then stored in memory while it is connected - // All requests back to plumber need to provide this token - string plumber_token = 3; - - // Individual plumber instance ID - string node_id = 4; -} - -message ForemanRegisterResponse { - // Authorized or not - bool success = 1; - - // Error message if any - // Will be empty on success - string message = 2; -} diff --git a/protos/ps_foreman_server.proto b/protos/ps_foreman_server.proto deleted file mode 100644 index 3314084..0000000 --- a/protos/ps_foreman_server.proto +++ /dev/null @@ -1,102 +0,0 @@ -syntax = "proto3"; - -package protos; - -import "ps_connect.proto"; -import "ps_relay.proto"; -import "ps_server.proto"; -import "ps_tunnel.proto"; - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos"; - -service ForemanServer { - // IMPORTANT! - // Any changes to methods in this service must be duplicated to ps_base.proto:PlumberServer - // IMPORTANT! - - - // -------------------- Foreman specific RPCs -------------------- - - // ListPlumbers is called by ui-bff, received by Foreman - // It returns all connected plumber instances for a given team - rpc ListPlumbers(ListPlumbersRequest) returns (ListPlumbersResponse); - - - // Below are all Proxy methods for talking to plumber instances - - // -------------------- Connection --------------------- - - // List configured/known connections - rpc GetAllConnections (GetAllConnectionsRequest) returns (GetAllConnectionsResponse); - - // Fetch a specific connection by ID - rpc GetConnection(GetConnectionRequest) returns (GetConnectionResponse); - - // Create a connection in plumber - rpc CreateConnection(CreateConnectionRequest) returns (CreateConnectionResponse); - - // Test a connection before saving its configuration - rpc TestConnection(TestConnectionRequest) returns (TestConnectionResponse); - - // Any active connections will be restarted - rpc UpdateConnection(UpdateConnectionRequest) returns (UpdateConnectionResponse); - - // If there are any active connections, delete will cause them to get closed - rpc DeleteConnection(DeleteConnectionRequest) returns (DeleteConnectionResponse); - - // ---------------------- Relay ---------------------- - - rpc GetAllRelays(GetAllRelaysRequest) returns (GetAllRelaysResponse); - - rpc GetRelay(GetRelayRequest) returns (GetRelayResponse); - - rpc CreateRelay(CreateRelayRequest) returns (CreateRelayResponse); - - rpc UpdateRelay(UpdateRelayRequest) returns (UpdateRelayResponse); - - rpc ResumeRelay(ResumeRelayRequest) returns (ResumeRelayResponse); - - rpc StopRelay(StopRelayRequest) returns (StopRelayResponse); - - rpc DeleteRelay(DeleteRelayRequest) returns (DeleteRelayResponse); - - // --------------------- Tunnel --------------------- - - rpc GetTunnel(GetTunnelRequest) returns (GetTunnelResponse); - - rpc GetAllTunnels(GetAllTunnelsRequest) returns (GetAllTunnelsResponse); - - rpc CreateTunnel(CreateTunnelRequest) returns (CreateTunnelResponse); - - rpc StopTunnel(StopTunnelRequest) returns (StopTunnelResponse); - - rpc ResumeTunnel(ResumeTunnelRequest) returns (ResumeTunnelResponse); - - rpc UpdateTunnel(UpdateTunnelRequest) returns (UpdateTunnelResponse); - - rpc DeleteTunnel(DeleteTunnelRequest) returns (DeleteTunnelResponse); - - // ------------------- Server ------------------- - - rpc GetServerOptions(GetServerOptionsRequest) returns (GetServerOptionsResponse); -} - -message PlumberInfo { - string team_id = 1; - - string cluster_id = 2; -} - -message ListPlumbersRequest { - // Authenticate between ui-bff and Foreman - string auth_token = 1; - - // Team ID to list connected plumbers for - string team_id = 2; -} - -message ListPlumbersResponse { - // List of plumbers - repeated PlumberInfo plumbers = 1; -} - diff --git a/protos/ps_relay.proto b/protos/ps_relay.proto deleted file mode 100644 index 75ee01f..0000000 --- a/protos/ps_relay.proto +++ /dev/null @@ -1,110 +0,0 @@ -syntax = "proto3"; - -package protos; - -import "common/ps_common_auth.proto"; -import "common/ps_common_status.proto"; -import "opts/ps_opts_relay.proto"; - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos"; - -message GetAllRelaysRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; -} - -message GetAllRelaysResponse { - common.Status status = 1000; - - // Will be set as empty []Relay if no relays are configured - repeated opts.RelayOptions opts = 1; -} - -/////////////////////////////////////////////////////////////////////////////// - -message GetRelayRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - string relay_id = 1; -} - -message GetRelayResponse { - common.Status status = 1000; - - // Set only if status is OK - opts.RelayOptions opts = 1; -} - -/////////////////////////////////////////////////////////////////////////////// - -message CreateRelayRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - opts.RelayOptions opts = 1; -} - -message CreateRelayResponse { - common.Status status = 1000; - - // ID of the created relay entry - string relay_id = 1; -} - -/////////////////////////////////////////////////////////////////////////////// - -// WARNING: Any in-progress relay will be interrupted/restarted -message UpdateRelayRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - string relay_id = 1; - - opts.RelayOptions opts = 2; -} - -message UpdateRelayResponse { - common.Status status = 1000; -} - -/////////////////////////////////////////////////////////////////////////////// - -// Resume a paused relay -message ResumeRelayRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - string relay_id = 1; -} - -message ResumeRelayResponse { - common.Status status = 1000; -} - -/////////////////////////////////////////////////////////////////////////////// - -// Temporarily stop/pause a relay -message StopRelayRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - string relay_id = 1; -} - -message StopRelayResponse { - common.Status status = 1000; -} - -/////////////////////////////////////////////////////////////////////////////// - -message DeleteRelayRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - string relay_id = 1; -} - -message DeleteRelayResponse { - common.Status status = 1000; -} diff --git a/protos/ps_server.proto b/protos/ps_server.proto deleted file mode 100644 index a28d721..0000000 --- a/protos/ps_server.proto +++ /dev/null @@ -1,17 +0,0 @@ -syntax = "proto3"; - -package protos; - -import "common/ps_common_auth.proto"; -import "opts/ps_opts_server.proto"; - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos"; - -message GetServerOptionsRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; -} - -message GetServerOptionsResponse { - opts.ServerOptions server_options = 1; -} diff --git a/protos/ps_tunnel.proto b/protos/ps_tunnel.proto deleted file mode 100644 index 78f5372..0000000 --- a/protos/ps_tunnel.proto +++ /dev/null @@ -1,110 +0,0 @@ -syntax = "proto3"; - -package protos; - -import "common/ps_common_auth.proto"; -import "common/ps_common_status.proto"; -import "opts/ps_opts_tunnel.proto"; - -option go_package = "github.com/batchcorp/plumber-schemas/build/go/protos"; - -message GetAllTunnelsRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; -} - -message GetAllTunnelsResponse { - common.Status status = 1000; - - // Will be set as empty []Tunnel if no tunnels are configured - repeated opts.TunnelOptions opts = 1; -} - -/////////////////////////////////////////////////////////////////////////////// - -message GetTunnelRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - string tunnel_id = 1; -} - -message GetTunnelResponse { - common.Status status = 1000; - - // Set only if status is OK - opts.TunnelOptions opts = 1; -} - -/////////////////////////////////////////////////////////////////////////////// - -message CreateTunnelRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - opts.TunnelOptions opts = 1; -} - -message CreateTunnelResponse { - common.Status status = 1000; - - // ID of the created tunnel entry - string tunnel_id = 1; -} - -/////////////////////////////////////////////////////////////////////////////// - -// WARNING: Updating a destination that is in-use can result in missing data during replay -message UpdateTunnelRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - string tunnel_id = 1; - - opts.TunnelOptions opts = 2; -} - -message UpdateTunnelResponse { - common.Status status = 1000; -} - -/////////////////////////////////////////////////////////////////////////////// - -// Resume a paused relay -message ResumeTunnelRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - string tunnel_id = 1; -} - -message ResumeTunnelResponse { - common.Status status = 1000; -} - -/////////////////////////////////////////////////////////////////////////////// - -// Temporarily stop/pause a relay -message StopTunnelRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - string tunnel_id = 1; -} - -message StopTunnelResponse { - common.Status status = 1000; -} - -/////////////////////////////////////////////////////////////////////////////// - -message DeleteTunnelRequest { - // Every gRPC request must have a valid auth config - common.Auth auth = 9999; - - string tunnel_id = 1; -} - -message DeleteTunnelResponse { - common.Status status = 1000; -}