diff --git a/client/v2/CHANGELOG.md b/client/v2/CHANGELOG.md index 42a481f8de..bfaeae6c36 100644 --- a/client/v2/CHANGELOG.md +++ b/client/v2/CHANGELOG.md @@ -34,6 +34,12 @@ Ref: https://keepachangelog.com/en/1.0.0/ # Changelog +## [v2.0.0-beta.11](https://github.com/cosmos/cosmos-sdk/tree/client/v2.0.0-beta.11) - 2025-05-30 + +### Bug Fixes + +* [#24722](https://github.com/cosmos/cosmos-sdk/pull/24722) Fix msg parsing in when no pulsar file is present. + ## [v2.0.0-beta.9](https://github.com/cosmos/cosmos-sdk/tree/client/v2.0.0-beta.9) - 2025-04-24 ### Features @@ -42,7 +48,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Improvements -* [#22890](https://github.com/cosmos/cosmos-sdk/pull/22890) Added support for flattening inner message fields in autocli as positional arguments. +* [#22890](https://github.com/cosmos/cosmos-sdk/pull/22890) Added support for flattening inner message fields in autocli as positional arguments. ### Bug Fixes diff --git a/client/v2/Makefile b/client/v2/Makefile index 1b4bb0cbe7..085c274f7c 100644 --- a/client/v2/Makefile +++ b/client/v2/Makefile @@ -1,2 +1,6 @@ codegen: - @(cd internal; buf generate) \ No newline at end of file + @(cd internal; buf generate --template testpbpulsar/buf.gen.yaml) + @(cd internal; buf generate --template testpbgogo/buf.gen.yaml) + @(cd internal/testpbgogo; rm *_grpc.pb.go; rm *.pulsar.go) + @(cd internal; mv github.com/cosmos/cosmos-sdk/client/v2/internal/testpbgogo/* testpbgogo) + @(cd internal; rm -r github.com) \ No newline at end of file diff --git a/client/v2/autocli/common_test.go b/client/v2/autocli/common_test.go index 9726dcb31b..a451135282 100644 --- a/client/v2/autocli/common_test.go +++ b/client/v2/autocli/common_test.go @@ -6,6 +6,7 @@ import ( "net" "testing" + "github.com/cosmos/gogoproto/proto" "github.com/spf13/cobra" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" @@ -15,7 +16,8 @@ import ( autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" reflectionv2alpha1 "cosmossdk.io/api/cosmos/base/reflection/v2alpha1" "cosmossdk.io/client/v2/autocli/flag" - "cosmossdk.io/client/v2/internal/testpb" + "cosmossdk.io/client/v2/internal/testpbgogo" + testpb "cosmossdk.io/client/v2/internal/testpbpulsar" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" @@ -23,6 +25,7 @@ import ( sdkkeyring "github.com/cosmos/cosmos-sdk/crypto/keyring" sdk "github.com/cosmos/cosmos-sdk/types" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" + "github.com/cosmos/cosmos-sdk/types/msgservice" "github.com/cosmos/cosmos-sdk/x/bank" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" ) @@ -57,6 +60,7 @@ func initFixture(t *testing.T) *fixture { interfaceRegistry := encodingConfig.Codec.InterfaceRegistry() banktypes.RegisterInterfaces(interfaceRegistry) + msgservice.RegisterMsgServiceDesc(interfaceRegistry, &testpbgogo.MsgGogoOnly_serviceDesc) clientCtx := client.Context{}. WithKeyring(kr). @@ -69,10 +73,15 @@ func initFixture(t *testing.T) *fixture { WithChainID("autocli-test") conn := &testClientConn{ClientConn: clientConn} + + // using merged registry to get pulsar + gogo files + mergedFiles, err := proto.MergedRegistry() + assert.NilError(t, err) + b := &Builder{ Builder: flag.Builder{ TypeResolver: protoregistry.GlobalTypes, - FileResolver: protoregistry.GlobalFiles, + FileResolver: mergedFiles, AddressCodec: addresscodec.NewBech32Codec("cosmos"), ValidatorAddressCodec: addresscodec.NewBech32Codec("cosmosvaloper"), ConsensusAddressCodec: addresscodec.NewBech32Codec("cosmosvalcons"), diff --git a/client/v2/autocli/msg.go b/client/v2/autocli/msg.go index 16dfeecaa2..8cdefb9fa0 100644 --- a/client/v2/autocli/msg.go +++ b/client/v2/autocli/msg.go @@ -161,7 +161,9 @@ func (b *Builder) BuildMsgMethodCommand(descriptor protoreflect.MethodDescriptor // Here we use dynamicpb, to create a proto v1 compatible message. // The SDK codec will handle protov2 -> protov1 (marshal) msg := dynamicpb.NewMessage(input.Descriptor()) - proto.Merge(msg, input.Interface()) + if err := cloneMessage(msg, input); err != nil { + return fmt.Errorf("failed to clone message: %w", err) + } return clienttx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) } @@ -217,7 +219,9 @@ func (b *Builder) handleGovProposal( // Here we use dynamicpb, to create a proto v1 compatible message. // The SDK codec will handle protov2 -> protov1 (marshal) msg := dynamicpb.NewMessage(input.Descriptor()) - proto.Merge(msg, input.Interface()) + if err := cloneMessage(msg, input); err != nil { + return fmt.Errorf("failed to clone message: %w", err) + } if err := proposal.SetMsgs([]gogoproto.Message{msg}); err != nil { return fmt.Errorf("failed to set msg in proposal %w", err) @@ -225,3 +229,13 @@ func (b *Builder) handleGovProposal( return clienttx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), proposal) } + +// cloneMessage safely copies fields from src message to dst message. +// this avoids the proto.Merge issue with field descriptors from different repositories. +func cloneMessage(dst, src protoreflect.Message) error { + bz, err := proto.Marshal(src.Interface()) + if err != nil { + return err + } + return proto.Unmarshal(bz, dst.Interface()) +} diff --git a/client/v2/autocli/msg_test.go b/client/v2/autocli/msg_test.go index e02f1cde21..ae2ed05582 100644 --- a/client/v2/autocli/msg_test.go +++ b/client/v2/autocli/msg_test.go @@ -15,7 +15,8 @@ import ( autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" bankv1beta1 "cosmossdk.io/api/cosmos/bank/v1beta1" - "cosmossdk.io/client/v2/internal/testpb" + "cosmossdk.io/client/v2/internal/testpbgogo" + testpb "cosmossdk.io/client/v2/internal/testpbpulsar" "github.com/cosmos/cosmos-sdk/client" ) @@ -124,6 +125,31 @@ func TestMsg(t *testing.T) { assertNormalizedJSONEqual(t, out.Bytes(), goldenLoad(t, "msg-output.golden")) } +// TestMsgGogo set same as previous, but the message are only gogoproto generated. +// There are no protov2 files registered in the global registry for those types. +func TestMsgGogo(t *testing.T) { + fixture := initFixture(t) + out, err := runCmd(fixture, buildCustomModuleMsgCommand(&autocliv1.ServiceCommandDescriptor{ + Service: testpbgogo.MsgGogoOnly_serviceDesc.ServiceName, // using gogoproto only test msg + RpcCommandOptions: []*autocliv1.RpcCommandOptions{ + { + RpcMethod: "Send", + Use: "send [a_coin] [str] [flags]", + Short: "Send coins from one account to another", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "a_coin"}, {ProtoField: "str"}}, + // an_address should be automatically added + }, + }, + }), "send", + "1foo", "henlo", + "--from", "cosmos1y74p8wyy4enfhfn342njve6cjmj5c8dtl6emdk", + "--generate-only", + "--output", "json", + ) + assert.NilError(t, err) + golden.Assert(t, out.String(), "msg-gogo-output.golden") +} + func TestMsgWithFlattenFields(t *testing.T) { fixture := initFixture(t) diff --git a/client/v2/autocli/query_test.go b/client/v2/autocli/query_test.go index c949ea021a..1eae3f3a8d 100644 --- a/client/v2/autocli/query_test.go +++ b/client/v2/autocli/query_test.go @@ -18,7 +18,7 @@ import ( autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" queryv1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" basev1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" - "cosmossdk.io/client/v2/internal/testpb" + testpb "cosmossdk.io/client/v2/internal/testpbpulsar" "github.com/cosmos/cosmos-sdk/client" ) diff --git a/client/v2/autocli/testdata/help-deprecated.golden b/client/v2/autocli/testdata/help-deprecated.golden index 9458662095..93feee0752 100644 --- a/client/v2/autocli/testdata/help-deprecated.golden +++ b/client/v2/autocli/testdata/help-deprecated.golden @@ -8,7 +8,7 @@ Flags: --a-bool --a-coin cosmos.base.v1beta1.Coin --a-consensus-address account address or key name - --a-message testpb.AMessage (json) + --a-message testpbpulsar.AMessage (json) --a-validator-address account address or key name --an-address account address or key name --an-enum Enum (unspecified | one | two | five | neg-three) (default unspecified) @@ -41,7 +41,7 @@ Flags: --positional2 string --positional3-varargs cosmos.base.v1beta1.Coin (repeated) --shorthand-deprecated-field string - --some-messages testpb.AMessage (json) (repeated) + --some-messages testpbpulsar.AMessage (json) (repeated) --str string --strings strings --timestamp timestamp (RFC 3339) diff --git a/client/v2/autocli/testdata/help-echo.golden b/client/v2/autocli/testdata/help-echo.golden index 2b3fe024a8..0f7512e571 100644 --- a/client/v2/autocli/testdata/help-echo.golden +++ b/client/v2/autocli/testdata/help-echo.golden @@ -13,7 +13,7 @@ Flags: --a-bool --a-coin cosmos.base.v1beta1.Coin some random coin --a-consensus-address account address or key name - --a-message testpb.AMessage (json) + --a-message testpbpulsar.AMessage (json) --a-validator-address account address or key name --an-address account address or key name --an-enum Enum (unspecified | one | two | five | neg-three) (default unspecified) @@ -42,7 +42,7 @@ Flags: --page-offset uint --page-reverse -s, --shorthand-deprecated-field string (DEPRECATED: bad idea) - --some-messages testpb.AMessage (json) (repeated) + --some-messages testpbpulsar.AMessage (json) (repeated) --str string --strings strings --timestamp timestamp (RFC 3339) diff --git a/client/v2/autocli/testdata/help-skip.golden b/client/v2/autocli/testdata/help-skip.golden index a85dbef695..5196131238 100644 --- a/client/v2/autocli/testdata/help-skip.golden +++ b/client/v2/autocli/testdata/help-skip.golden @@ -1,4 +1,4 @@ -Querying commands for the testpb.Query service +Querying commands for the testpbpulsar.Query service Usage: test skipecho [flags] diff --git a/client/v2/autocli/testdata/help-toplevel.golden b/client/v2/autocli/testdata/help-toplevel.golden index 7bab88a556..dc914e9aee 100644 --- a/client/v2/autocli/testdata/help-toplevel.golden +++ b/client/v2/autocli/testdata/help-toplevel.golden @@ -6,10 +6,10 @@ Usage: Available Commands: completion Generate the autocompletion script for the specified shell - deprecatedecho Querying commands for the testpb.Query service + deprecatedecho Querying commands for the testpbpulsar.Query service echo echo echos the value provided by the user help Help about any command - skipecho Querying commands for the testpb.Query service + skipecho Querying commands for the testpbpulsar.Query service Flags: -h, --help help for test diff --git a/client/v2/autocli/testdata/msg-gogo-output.golden b/client/v2/autocli/testdata/msg-gogo-output.golden new file mode 100644 index 0000000000..2c22123bce --- /dev/null +++ b/client/v2/autocli/testdata/msg-gogo-output.golden @@ -0,0 +1 @@ +{"body":{"messages":[{"@type":"/testpbgogo.MsgRequestGogoOnly","str":"henlo","a_coin":{"denom":"foo","amount":"1"},"an_address":"cosmos1y74p8wyy4enfhfn342njve6cjmj5c8dtl6emdk","a_validator_address":""}],"memo":"","timeout_height":"0","unordered":false,"timeout_timestamp":null,"extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""},"tip":null},"signatures":[]} diff --git a/client/v2/internal/buf.lock b/client/v2/internal/buf.lock index ca09fbb4fa..e42bb225e1 100644 --- a/client/v2/internal/buf.lock +++ b/client/v2/internal/buf.lock @@ -9,8 +9,8 @@ deps: - remote: buf.build owner: cosmos repository: cosmos-sdk - commit: 05419252bcc241ea8023acf1ed4cadc5 - digest: shake256:1e54a48c19a8b59d35e0a7efa76402939f515f2d8005df099856f24c37c20a52800308f025abb8cffcd014d437b49707388aaca4865d9d063d8f25d5d4eb77d5 + commit: 34ac2e8322d44db08830e553ad21b93c + digest: shake256:b0dd0de5ef770147002e290a9e9f8de8cc8727cbf932628892fbb9027d5ebec5c2a63c0e340e4ef7af72369ecdf51221dcc385ce2137afaa72532228f6999d74 - remote: buf.build owner: cosmos repository: gogo-proto @@ -19,15 +19,10 @@ deps: - remote: buf.build owner: googleapis repository: googleapis - commit: 7e6f6e774e29406da95bd61cdcdbc8bc - digest: shake256:fe43dd2265ea0c07d76bd925eeba612667cf4c948d2ce53d6e367e1b4b3cb5fa69a51e6acb1a6a50d32f894f054a35e6c0406f6808a483f2752e10c866ffbf73 + commit: 751cbe31638d43a9bfb6162cd2352e67 + digest: shake256:87f55470d9d124e2d1dedfe0231221f4ed7efbc55bc5268917c678e2d9b9c41573a7f9a557f6d8539044524d9fc5ca8fbb7db05eb81379d168285d76b57eb8a4 - remote: buf.build owner: protocolbuffers repository: wellknowntypes - commit: 657250e6a39648cbb169d079a60bd9ba - digest: shake256:00de25001b8dd2e29d85fc4bcc3ede7aed886d76d67f5e0f7a9b320b90f871d3eb73507d50818d823a0512f3f8db77a11c043685528403e31ff3fef18323a9fb - - remote: buf.build - owner: tendermint - repository: tendermint - commit: 33ed361a90514289beabf3189e1d7665 - digest: shake256:038267e06294714fd883610626554b04a127b576b4e253befb4206cb72d5d3c1eeccacd4b9ec8e3fb891f7c14e1cb0f770c077d2989638995b0a61c85afedb1d + commit: 7727a3b7399540398e5736b9916f0faa + digest: shake256:74c046f009811965d227acd11bb2c6259bf387759d4230b95405e402a2ed4212d6f4babab690407d07bc81095c3917c4ae9144195ddfb081525c9aec58e51173 diff --git a/client/v2/internal/buf.yaml b/client/v2/internal/buf.yaml index 8e863a76e0..ecdcff43ce 100644 --- a/client/v2/internal/buf.yaml +++ b/client/v2/internal/buf.yaml @@ -1,7 +1,9 @@ version: v1 deps: + - buf.build/cosmos/gogo-proto - buf.build/cosmos/cosmos-sdk - buf.build/cosmos/cosmos-proto + - buf.build/protocolbuffers/wellknowntypes lint: use: - STANDARD diff --git a/client/v2/internal/testpbgogo/buf.gen.yaml b/client/v2/internal/testpbgogo/buf.gen.yaml new file mode 100644 index 0000000000..deb7183d06 --- /dev/null +++ b/client/v2/internal/testpbgogo/buf.gen.yaml @@ -0,0 +1,14 @@ +version: v1 +managed: + enabled: true + go_package_prefix: + default: github.com/cosmos/cosmos-sdk/client/v2/internal + except: + - buf.build/cosmos/cosmos-proto + - buf.build/cosmos/cosmos-sdk + override: + buf.build/cosmos/gogo-proto: github.com/cosmos/gogoproto +plugins: + - name: gocosmos + out: . + opt: plugins=grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/gogoproto/types/any diff --git a/client/v2/internal/testpbgogo/msg.pb.go b/client/v2/internal/testpbgogo/msg.pb.go new file mode 100644 index 0000000000..132563c127 --- /dev/null +++ b/client/v2/internal/testpbgogo/msg.pb.go @@ -0,0 +1,766 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: testpbgogo/msg.proto + +package testpbgogo + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + types "github.com/cosmos/cosmos-sdk/types" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type MsgRequestGogoOnly struct { + Str string `protobuf:"bytes,3,opt,name=str,proto3" json:"str,omitempty"` + ACoin types.Coin `protobuf:"bytes,18,opt,name=a_coin,json=aCoin,proto3" json:"a_coin"` + AnAddress string `protobuf:"bytes,19,opt,name=an_address,json=anAddress,proto3" json:"an_address,omitempty"` + AValidatorAddress string `protobuf:"bytes,33,opt,name=a_validator_address,json=aValidatorAddress,proto3" json:"a_validator_address,omitempty"` +} + +func (m *MsgRequestGogoOnly) Reset() { *m = MsgRequestGogoOnly{} } +func (m *MsgRequestGogoOnly) String() string { return proto.CompactTextString(m) } +func (*MsgRequestGogoOnly) ProtoMessage() {} +func (*MsgRequestGogoOnly) Descriptor() ([]byte, []int) { + return fileDescriptor_ee602c0305458bfe, []int{0} +} +func (m *MsgRequestGogoOnly) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRequestGogoOnly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRequestGogoOnly.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRequestGogoOnly) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRequestGogoOnly.Merge(m, src) +} +func (m *MsgRequestGogoOnly) XXX_Size() int { + return m.Size() +} +func (m *MsgRequestGogoOnly) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRequestGogoOnly.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRequestGogoOnly proto.InternalMessageInfo + +func (m *MsgRequestGogoOnly) GetStr() string { + if m != nil { + return m.Str + } + return "" +} + +func (m *MsgRequestGogoOnly) GetACoin() types.Coin { + if m != nil { + return m.ACoin + } + return types.Coin{} +} + +func (m *MsgRequestGogoOnly) GetAnAddress() string { + if m != nil { + return m.AnAddress + } + return "" +} + +func (m *MsgRequestGogoOnly) GetAValidatorAddress() string { + if m != nil { + return m.AValidatorAddress + } + return "" +} + +type MsgResponseGoGoOnly struct { + Request *MsgRequestGogoOnly `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` +} + +func (m *MsgResponseGoGoOnly) Reset() { *m = MsgResponseGoGoOnly{} } +func (m *MsgResponseGoGoOnly) String() string { return proto.CompactTextString(m) } +func (*MsgResponseGoGoOnly) ProtoMessage() {} +func (*MsgResponseGoGoOnly) Descriptor() ([]byte, []int) { + return fileDescriptor_ee602c0305458bfe, []int{1} +} +func (m *MsgResponseGoGoOnly) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgResponseGoGoOnly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgResponseGoGoOnly.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgResponseGoGoOnly) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgResponseGoGoOnly.Merge(m, src) +} +func (m *MsgResponseGoGoOnly) XXX_Size() int { + return m.Size() +} +func (m *MsgResponseGoGoOnly) XXX_DiscardUnknown() { + xxx_messageInfo_MsgResponseGoGoOnly.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgResponseGoGoOnly proto.InternalMessageInfo + +func (m *MsgResponseGoGoOnly) GetRequest() *MsgRequestGogoOnly { + if m != nil { + return m.Request + } + return nil +} + +func init() { + proto.RegisterType((*MsgRequestGogoOnly)(nil), "testpbgogo.MsgRequestGogoOnly") + proto.RegisterType((*MsgResponseGoGoOnly)(nil), "testpbgogo.MsgResponseGoGoOnly") +} + +func init() { proto.RegisterFile("testpbgogo/msg.proto", fileDescriptor_ee602c0305458bfe) } + +var fileDescriptor_ee602c0305458bfe = []byte{ + // 480 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcd, 0x6e, 0x13, 0x31, + 0x10, 0xc7, 0xe3, 0xa4, 0x14, 0xea, 0x4a, 0x7c, 0x38, 0x51, 0xd9, 0x46, 0x62, 0x9b, 0xe6, 0x54, + 0x21, 0xc5, 0x4e, 0x82, 0xf8, 0x50, 0x6f, 0x2c, 0x87, 0x9c, 0xa2, 0x86, 0x6d, 0x85, 0x2a, 0x84, + 0xb4, 0xf2, 0xee, 0x5a, 0x66, 0x45, 0x62, 0x87, 0xb5, 0xbb, 0x12, 0x57, 0x9e, 0x80, 0x67, 0xe0, + 0xc8, 0x89, 0x43, 0xc4, 0x33, 0x54, 0x3d, 0x55, 0x3d, 0x71, 0x42, 0x28, 0x39, 0x20, 0xf1, 0x0a, + 0x5c, 0x90, 0xd7, 0xdb, 0x6c, 0x4a, 0x0f, 0xdc, 0xfc, 0x9f, 0xff, 0xcc, 0xcf, 0x33, 0x63, 0xc3, + 0x86, 0x66, 0x4a, 0x4f, 0x43, 0x2e, 0xb9, 0x24, 0x13, 0xc5, 0xf1, 0x34, 0x95, 0x5a, 0x22, 0x58, + 0x46, 0x9b, 0xdb, 0x91, 0x54, 0x13, 0xa9, 0x82, 0xdc, 0x21, 0x56, 0xd8, 0xb4, 0xe6, 0x7d, 0xab, + 0x4c, 0x21, 0xc9, 0x7a, 0x65, 0x7d, 0xd3, 0x2d, 0x8c, 0x90, 0x2a, 0x46, 0xb2, 0x5e, 0xc8, 0x34, + 0xed, 0x91, 0x48, 0x26, 0xa2, 0xf0, 0x1b, 0x86, 0x6c, 0x81, 0xe6, 0x64, 0xa3, 0xed, 0x3f, 0x00, + 0xa2, 0xa1, 0xe2, 0x3e, 0x7b, 0x7f, 0xc2, 0x94, 0x1e, 0x48, 0x2e, 0x0f, 0xc4, 0xf8, 0x03, 0xba, + 0x0b, 0x6b, 0x4a, 0xa7, 0x4e, 0xad, 0x05, 0xf6, 0x36, 0x7c, 0x73, 0x44, 0x4f, 0xe0, 0x3a, 0x0d, + 0x0c, 0xce, 0x41, 0x2d, 0xb0, 0xb7, 0xd9, 0xdf, 0xc6, 0x45, 0x5b, 0xe6, 0x3e, 0x5c, 0xdc, 0x87, + 0x5f, 0xc8, 0x44, 0x78, 0x6b, 0xa7, 0x3f, 0x76, 0x2a, 0xfe, 0x0d, 0x6a, 0x04, 0x7a, 0x0a, 0x21, + 0x15, 0x01, 0x8d, 0xe3, 0x94, 0x29, 0xe5, 0xd4, 0x0d, 0xd0, 0x73, 0x2e, 0x66, 0x9d, 0x46, 0x51, + 0xfe, 0xdc, 0x3a, 0x87, 0x3a, 0x4d, 0x04, 0xf7, 0x37, 0xa8, 0x28, 0x02, 0xe8, 0x25, 0xac, 0xd3, + 0x20, 0xa3, 0xe3, 0x24, 0xa6, 0x5a, 0xa6, 0x4b, 0xc2, 0x6e, 0x4e, 0xd8, 0xbd, 0x98, 0x75, 0x1e, + 0x14, 0x84, 0x57, 0x97, 0x39, 0x57, 0x51, 0xf7, 0xe8, 0xbf, 0xc6, 0xfe, 0x9d, 0x8f, 0xbf, 0xbe, + 0x3e, 0x5c, 0x69, 0xa7, 0x7d, 0x00, 0xeb, 0xf9, 0xf0, 0x6a, 0x2a, 0x85, 0x62, 0x03, 0x39, 0xb0, + 0xd3, 0x3f, 0x83, 0x37, 0x53, 0xbb, 0x10, 0x07, 0xe4, 0xc3, 0xba, 0xb8, 0x7c, 0x1c, 0x7c, 0x7d, + 0x5d, 0xfe, 0x65, 0x7a, 0x5f, 0xc0, 0xcd, 0xa1, 0xe2, 0xcb, 0x35, 0x06, 0x70, 0xed, 0x90, 0x89, + 0x18, 0xfd, 0xa7, 0xbe, 0xb9, 0x73, 0xcd, 0xbf, 0xda, 0x51, 0x7b, 0xeb, 0x6c, 0xd6, 0x41, 0x76, + 0xde, 0x8e, 0x8a, 0xdf, 0xb5, 0xb2, 0x2e, 0x7e, 0xdc, 0xc5, 0x5d, 0xef, 0x1b, 0x38, 0x9d, 0xbb, + 0xe0, 0x7c, 0xee, 0x82, 0x9f, 0x73, 0x17, 0x7c, 0x5a, 0xb8, 0x95, 0xf3, 0x85, 0x5b, 0xf9, 0xbe, + 0x70, 0x2b, 0xf0, 0x76, 0x24, 0x27, 0x2b, 0x58, 0xef, 0xd6, 0x50, 0xf1, 0x91, 0x79, 0xf3, 0x11, + 0x78, 0xbd, 0xcf, 0x13, 0xfd, 0xf6, 0x24, 0xc4, 0x91, 0x9c, 0x14, 0xbf, 0x8b, 0x94, 0x70, 0x12, + 0x8d, 0x13, 0x26, 0x34, 0xc9, 0xfa, 0x24, 0x11, 0x9a, 0xa5, 0x82, 0x8e, 0x49, 0xc9, 0xf9, 0x5c, + 0xad, 0x1d, 0x1d, 0x1f, 0x7f, 0xa9, 0xc2, 0xa3, 0x65, 0xe8, 0x6c, 0x55, 0xcc, 0xab, 0x5b, 0xa5, + 0x78, 0x33, 0x18, 0x79, 0x43, 0xa6, 0x69, 0x4c, 0x35, 0xfd, 0xbd, 0x9a, 0x15, 0xae, 0xe7, 0xdf, + 0xef, 0xd1, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8b, 0x1f, 0x21, 0x25, 0x0c, 0x03, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// MsgGogoOnlyClient is the client API for MsgGogoOnly service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgGogoOnlyClient interface { + // Send a request and returns the request as a response. + Send(ctx context.Context, in *MsgRequestGogoOnly, opts ...grpc.CallOption) (*MsgResponseGoGoOnly, error) +} + +type msgGogoOnlyClient struct { + cc grpc1.ClientConn +} + +func NewMsgGogoOnlyClient(cc grpc1.ClientConn) MsgGogoOnlyClient { + return &msgGogoOnlyClient{cc} +} + +func (c *msgGogoOnlyClient) Send(ctx context.Context, in *MsgRequestGogoOnly, opts ...grpc.CallOption) (*MsgResponseGoGoOnly, error) { + out := new(MsgResponseGoGoOnly) + err := c.cc.Invoke(ctx, "/testpbgogo.MsgGogoOnly/Send", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgGogoOnlyServer is the server API for MsgGogoOnly service. +type MsgGogoOnlyServer interface { + // Send a request and returns the request as a response. + Send(context.Context, *MsgRequestGogoOnly) (*MsgResponseGoGoOnly, error) +} + +// UnimplementedMsgGogoOnlyServer can be embedded to have forward compatible implementations. +type UnimplementedMsgGogoOnlyServer struct { +} + +func (*UnimplementedMsgGogoOnlyServer) Send(ctx context.Context, req *MsgRequestGogoOnly) (*MsgResponseGoGoOnly, error) { + return nil, status.Errorf(codes.Unimplemented, "method Send not implemented") +} + +func RegisterMsgGogoOnlyServer(s grpc1.Server, srv MsgGogoOnlyServer) { + s.RegisterService(&_MsgGogoOnly_serviceDesc, srv) +} + +func _MsgGogoOnly_Send_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRequestGogoOnly) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgGogoOnlyServer).Send(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/testpbgogo.MsgGogoOnly/Send", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgGogoOnlyServer).Send(ctx, req.(*MsgRequestGogoOnly)) + } + return interceptor(ctx, in, info, handler) +} + +var MsgGogoOnly_serviceDesc = _MsgGogoOnly_serviceDesc +var _MsgGogoOnly_serviceDesc = grpc.ServiceDesc{ + ServiceName: "testpbgogo.MsgGogoOnly", + HandlerType: (*MsgGogoOnlyServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Send", + Handler: _MsgGogoOnly_Send_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "testpbgogo/msg.proto", +} + +func (m *MsgRequestGogoOnly) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgRequestGogoOnly) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRequestGogoOnly) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AValidatorAddress) > 0 { + i -= len(m.AValidatorAddress) + copy(dAtA[i:], m.AValidatorAddress) + i = encodeVarintMsg(dAtA, i, uint64(len(m.AValidatorAddress))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x8a + } + if len(m.AnAddress) > 0 { + i -= len(m.AnAddress) + copy(dAtA[i:], m.AnAddress) + i = encodeVarintMsg(dAtA, i, uint64(len(m.AnAddress))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + { + size, err := m.ACoin.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMsg(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + if len(m.Str) > 0 { + i -= len(m.Str) + copy(dAtA[i:], m.Str) + i = encodeVarintMsg(dAtA, i, uint64(len(m.Str))) + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} + +func (m *MsgResponseGoGoOnly) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgResponseGoGoOnly) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgResponseGoGoOnly) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Request != nil { + { + size, err := m.Request.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMsg(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMsg(dAtA []byte, offset int, v uint64) int { + offset -= sovMsg(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgRequestGogoOnly) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Str) + if l > 0 { + n += 1 + l + sovMsg(uint64(l)) + } + l = m.ACoin.Size() + n += 2 + l + sovMsg(uint64(l)) + l = len(m.AnAddress) + if l > 0 { + n += 2 + l + sovMsg(uint64(l)) + } + l = len(m.AValidatorAddress) + if l > 0 { + n += 2 + l + sovMsg(uint64(l)) + } + return n +} + +func (m *MsgResponseGoGoOnly) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Request != nil { + l = m.Request.Size() + n += 1 + l + sovMsg(uint64(l)) + } + return n +} + +func sovMsg(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMsg(x uint64) (n int) { + return sovMsg(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgRequestGogoOnly) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRequestGogoOnly: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRequestGogoOnly: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Str", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Str = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ACoin", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ACoin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AnAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 33: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AValidatorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMsg + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AValidatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgResponseGoGoOnly) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgResponseGoGoOnly: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgResponseGoGoOnly: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMsg + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMsg + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMsg + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Request == nil { + m.Request = &MsgRequestGogoOnly{} + } + if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMsg(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthMsg + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMsg(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMsg + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMsg + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMsg + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthMsg + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMsg + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMsg + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMsg = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMsg = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group") +) diff --git a/client/v2/internal/testpbgogo/msg.proto b/client/v2/internal/testpbgogo/msg.proto new file mode 100644 index 0000000000..e11c5660b1 --- /dev/null +++ b/client/v2/internal/testpbgogo/msg.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +package testpbgogo; + +import "cosmos_proto/cosmos.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos/base/v1beta1/coin.proto"; +import "gogoproto/gogo.proto"; + +service MsgGogoOnly { + // Send a request and returns the request as a response. + rpc Send(MsgRequestGogoOnly) returns (MsgResponseGoGoOnly) { + option (cosmos_proto.method_added_in) = "cosmos-sdk v0.50.0"; + }; +} + +message MsgRequestGogoOnly { + option (cosmos.msg.v1.signer) = "an_address"; + + string str = 3; + cosmos.base.v1beta1.Coin a_coin = 18 [(gogoproto.nullable) = false]; + string an_address = 19 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string a_validator_address = 33 [(cosmos_proto.scalar) = "cosmos.ValidatorAddressString"]; +} + +message MsgResponseGoGoOnly { + MsgRequestGogoOnly request = 1; +} \ No newline at end of file diff --git a/client/v2/internal/buf.gen.yaml b/client/v2/internal/testpbpulsar/buf.gen.yaml similarity index 100% rename from client/v2/internal/buf.gen.yaml rename to client/v2/internal/testpbpulsar/buf.gen.yaml diff --git a/client/v2/internal/testpb/msg.proto b/client/v2/internal/testpbpulsar/msg.proto similarity index 87% rename from client/v2/internal/testpb/msg.proto rename to client/v2/internal/testpbpulsar/msg.proto index a1360175d0..230d196da2 100644 --- a/client/v2/internal/testpb/msg.proto +++ b/client/v2/internal/testpbpulsar/msg.proto @@ -1,13 +1,13 @@ syntax = "proto3"; -package testpb; +package testpbpulsar; import "google/protobuf/timestamp.proto"; import "google/protobuf/duration.proto"; import "cosmos_proto/cosmos.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "cosmos/base/v1beta1/coin.proto"; -import "testpb/query.proto"; +import "testpbpulsar/query.proto"; service Msg { // Send a request and returns the request as a response. @@ -31,17 +31,17 @@ message MsgRequest { int32 i32 = 7; int64 i64 = 10; bool a_bool = 15; - testpb.Enum an_enum = 16; - testpb.AMessage a_message = 17; + testpbpulsar.Enum an_enum = 16; + testpbpulsar.AMessage a_message = 17; cosmos.base.v1beta1.Coin a_coin = 18; string an_address = 19 [(cosmos_proto.scalar) = "cosmos.AddressString"]; cosmos.base.query.v1beta1.PageRequest page = 20; repeated bool bools = 21; repeated uint32 uints = 22; repeated string strings = 23; - repeated testpb.Enum enums = 24; + repeated testpbpulsar.Enum enums = 24; repeated google.protobuf.Duration durations = 25; - repeated testpb.AMessage some_messages = 26; + repeated testpbpulsar.AMessage some_messages = 26; int32 positional1 = 27; string positional2 = 28; diff --git a/client/v2/internal/testpb/msg.pulsar.go b/client/v2/internal/testpbpulsar/msg.pulsar.go similarity index 82% rename from client/v2/internal/testpb/msg.pulsar.go rename to client/v2/internal/testpbpulsar/msg.pulsar.go index 29fd89007a..02f07eb0c7 100644 --- a/client/v2/internal/testpb/msg.pulsar.go +++ b/client/v2/internal/testpbpulsar/msg.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package testpb +package testpbpulsar import ( v1beta11 "cosmossdk.io/api/cosmos/base/query/v1beta1" @@ -386,8 +386,8 @@ var ( ) func init() { - file_testpb_msg_proto_init() - md_MsgRequest = File_testpb_msg_proto.Messages().ByName("MsgRequest") + file_testpbpulsar_msg_proto_init() + md_MsgRequest = File_testpbpulsar_msg_proto.Messages().ByName("MsgRequest") fd_MsgRequest_u32 = md_MsgRequest.Fields().ByName("u32") fd_MsgRequest_u64 = md_MsgRequest.Fields().ByName("u64") fd_MsgRequest_str = md_MsgRequest.Fields().ByName("str") @@ -426,7 +426,7 @@ func (x *MsgRequest) ProtoReflect() protoreflect.Message { } func (x *MsgRequest) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_msg_proto_msgTypes[0] + mi := &file_testpbpulsar_msg_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -659,65 +659,65 @@ func (x *fastReflection_MsgRequest) Range(f func(protoreflect.FieldDescriptor, p // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "testpb.MsgRequest.u32": + case "testpbpulsar.MsgRequest.u32": return x.U32 != uint32(0) - case "testpb.MsgRequest.u64": + case "testpbpulsar.MsgRequest.u64": return x.U64 != uint64(0) - case "testpb.MsgRequest.str": + case "testpbpulsar.MsgRequest.str": return x.Str != "" - case "testpb.MsgRequest.bz": + case "testpbpulsar.MsgRequest.bz": return len(x.Bz) != 0 - case "testpb.MsgRequest.timestamp": + case "testpbpulsar.MsgRequest.timestamp": return x.Timestamp != nil - case "testpb.MsgRequest.duration": + case "testpbpulsar.MsgRequest.duration": return x.Duration != nil - case "testpb.MsgRequest.i32": + case "testpbpulsar.MsgRequest.i32": return x.I32 != int32(0) - case "testpb.MsgRequest.i64": + case "testpbpulsar.MsgRequest.i64": return x.I64 != int64(0) - case "testpb.MsgRequest.a_bool": + case "testpbpulsar.MsgRequest.a_bool": return x.ABool != false - case "testpb.MsgRequest.an_enum": + case "testpbpulsar.MsgRequest.an_enum": return x.AnEnum != 0 - case "testpb.MsgRequest.a_message": + case "testpbpulsar.MsgRequest.a_message": return x.AMessage != nil - case "testpb.MsgRequest.a_coin": + case "testpbpulsar.MsgRequest.a_coin": return x.ACoin != nil - case "testpb.MsgRequest.an_address": + case "testpbpulsar.MsgRequest.an_address": return x.AnAddress != "" - case "testpb.MsgRequest.page": + case "testpbpulsar.MsgRequest.page": return x.Page != nil - case "testpb.MsgRequest.bools": + case "testpbpulsar.MsgRequest.bools": return len(x.Bools) != 0 - case "testpb.MsgRequest.uints": + case "testpbpulsar.MsgRequest.uints": return len(x.Uints) != 0 - case "testpb.MsgRequest.strings": + case "testpbpulsar.MsgRequest.strings": return len(x.Strings) != 0 - case "testpb.MsgRequest.enums": + case "testpbpulsar.MsgRequest.enums": return len(x.Enums) != 0 - case "testpb.MsgRequest.durations": + case "testpbpulsar.MsgRequest.durations": return len(x.Durations) != 0 - case "testpb.MsgRequest.some_messages": + case "testpbpulsar.MsgRequest.some_messages": return len(x.SomeMessages) != 0 - case "testpb.MsgRequest.positional1": + case "testpbpulsar.MsgRequest.positional1": return x.Positional1 != int32(0) - case "testpb.MsgRequest.positional2": + case "testpbpulsar.MsgRequest.positional2": return x.Positional2 != "" - case "testpb.MsgRequest.positional3_varargs": + case "testpbpulsar.MsgRequest.positional3_varargs": return len(x.Positional3Varargs) != 0 - case "testpb.MsgRequest.deprecated_field": + case "testpbpulsar.MsgRequest.deprecated_field": return x.DeprecatedField != "" - case "testpb.MsgRequest.shorthand_deprecated_field": + case "testpbpulsar.MsgRequest.shorthand_deprecated_field": return x.ShorthandDeprecatedField != "" - case "testpb.MsgRequest.hidden_bool": + case "testpbpulsar.MsgRequest.hidden_bool": return x.HiddenBool != false - case "testpb.MsgRequest.a_validator_address": + case "testpbpulsar.MsgRequest.a_validator_address": return x.AValidatorAddress != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgRequest")) } - panic(fmt.Errorf("message testpb.MsgRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgRequest does not contain field %s", fd.FullName())) } } @@ -729,65 +729,65 @@ func (x *fastReflection_MsgRequest) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "testpb.MsgRequest.u32": + case "testpbpulsar.MsgRequest.u32": x.U32 = uint32(0) - case "testpb.MsgRequest.u64": + case "testpbpulsar.MsgRequest.u64": x.U64 = uint64(0) - case "testpb.MsgRequest.str": + case "testpbpulsar.MsgRequest.str": x.Str = "" - case "testpb.MsgRequest.bz": + case "testpbpulsar.MsgRequest.bz": x.Bz = nil - case "testpb.MsgRequest.timestamp": + case "testpbpulsar.MsgRequest.timestamp": x.Timestamp = nil - case "testpb.MsgRequest.duration": + case "testpbpulsar.MsgRequest.duration": x.Duration = nil - case "testpb.MsgRequest.i32": + case "testpbpulsar.MsgRequest.i32": x.I32 = int32(0) - case "testpb.MsgRequest.i64": + case "testpbpulsar.MsgRequest.i64": x.I64 = int64(0) - case "testpb.MsgRequest.a_bool": + case "testpbpulsar.MsgRequest.a_bool": x.ABool = false - case "testpb.MsgRequest.an_enum": + case "testpbpulsar.MsgRequest.an_enum": x.AnEnum = 0 - case "testpb.MsgRequest.a_message": + case "testpbpulsar.MsgRequest.a_message": x.AMessage = nil - case "testpb.MsgRequest.a_coin": + case "testpbpulsar.MsgRequest.a_coin": x.ACoin = nil - case "testpb.MsgRequest.an_address": + case "testpbpulsar.MsgRequest.an_address": x.AnAddress = "" - case "testpb.MsgRequest.page": + case "testpbpulsar.MsgRequest.page": x.Page = nil - case "testpb.MsgRequest.bools": + case "testpbpulsar.MsgRequest.bools": x.Bools = nil - case "testpb.MsgRequest.uints": + case "testpbpulsar.MsgRequest.uints": x.Uints = nil - case "testpb.MsgRequest.strings": + case "testpbpulsar.MsgRequest.strings": x.Strings = nil - case "testpb.MsgRequest.enums": + case "testpbpulsar.MsgRequest.enums": x.Enums = nil - case "testpb.MsgRequest.durations": + case "testpbpulsar.MsgRequest.durations": x.Durations = nil - case "testpb.MsgRequest.some_messages": + case "testpbpulsar.MsgRequest.some_messages": x.SomeMessages = nil - case "testpb.MsgRequest.positional1": + case "testpbpulsar.MsgRequest.positional1": x.Positional1 = int32(0) - case "testpb.MsgRequest.positional2": + case "testpbpulsar.MsgRequest.positional2": x.Positional2 = "" - case "testpb.MsgRequest.positional3_varargs": + case "testpbpulsar.MsgRequest.positional3_varargs": x.Positional3Varargs = nil - case "testpb.MsgRequest.deprecated_field": + case "testpbpulsar.MsgRequest.deprecated_field": x.DeprecatedField = "" - case "testpb.MsgRequest.shorthand_deprecated_field": + case "testpbpulsar.MsgRequest.shorthand_deprecated_field": x.ShorthandDeprecatedField = "" - case "testpb.MsgRequest.hidden_bool": + case "testpbpulsar.MsgRequest.hidden_bool": x.HiddenBool = false - case "testpb.MsgRequest.a_validator_address": + case "testpbpulsar.MsgRequest.a_validator_address": x.AValidatorAddress = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgRequest")) } - panic(fmt.Errorf("message testpb.MsgRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgRequest does not contain field %s", fd.FullName())) } } @@ -799,113 +799,113 @@ func (x *fastReflection_MsgRequest) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "testpb.MsgRequest.u32": + case "testpbpulsar.MsgRequest.u32": value := x.U32 return protoreflect.ValueOfUint32(value) - case "testpb.MsgRequest.u64": + case "testpbpulsar.MsgRequest.u64": value := x.U64 return protoreflect.ValueOfUint64(value) - case "testpb.MsgRequest.str": + case "testpbpulsar.MsgRequest.str": value := x.Str return protoreflect.ValueOfString(value) - case "testpb.MsgRequest.bz": + case "testpbpulsar.MsgRequest.bz": value := x.Bz return protoreflect.ValueOfBytes(value) - case "testpb.MsgRequest.timestamp": + case "testpbpulsar.MsgRequest.timestamp": value := x.Timestamp return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "testpb.MsgRequest.duration": + case "testpbpulsar.MsgRequest.duration": value := x.Duration return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "testpb.MsgRequest.i32": + case "testpbpulsar.MsgRequest.i32": value := x.I32 return protoreflect.ValueOfInt32(value) - case "testpb.MsgRequest.i64": + case "testpbpulsar.MsgRequest.i64": value := x.I64 return protoreflect.ValueOfInt64(value) - case "testpb.MsgRequest.a_bool": + case "testpbpulsar.MsgRequest.a_bool": value := x.ABool return protoreflect.ValueOfBool(value) - case "testpb.MsgRequest.an_enum": + case "testpbpulsar.MsgRequest.an_enum": value := x.AnEnum return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "testpb.MsgRequest.a_message": + case "testpbpulsar.MsgRequest.a_message": value := x.AMessage return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "testpb.MsgRequest.a_coin": + case "testpbpulsar.MsgRequest.a_coin": value := x.ACoin return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "testpb.MsgRequest.an_address": + case "testpbpulsar.MsgRequest.an_address": value := x.AnAddress return protoreflect.ValueOfString(value) - case "testpb.MsgRequest.page": + case "testpbpulsar.MsgRequest.page": value := x.Page return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "testpb.MsgRequest.bools": + case "testpbpulsar.MsgRequest.bools": if len(x.Bools) == 0 { return protoreflect.ValueOfList(&_MsgRequest_21_list{}) } listValue := &_MsgRequest_21_list{list: &x.Bools} return protoreflect.ValueOfList(listValue) - case "testpb.MsgRequest.uints": + case "testpbpulsar.MsgRequest.uints": if len(x.Uints) == 0 { return protoreflect.ValueOfList(&_MsgRequest_22_list{}) } listValue := &_MsgRequest_22_list{list: &x.Uints} return protoreflect.ValueOfList(listValue) - case "testpb.MsgRequest.strings": + case "testpbpulsar.MsgRequest.strings": if len(x.Strings) == 0 { return protoreflect.ValueOfList(&_MsgRequest_23_list{}) } listValue := &_MsgRequest_23_list{list: &x.Strings} return protoreflect.ValueOfList(listValue) - case "testpb.MsgRequest.enums": + case "testpbpulsar.MsgRequest.enums": if len(x.Enums) == 0 { return protoreflect.ValueOfList(&_MsgRequest_24_list{}) } listValue := &_MsgRequest_24_list{list: &x.Enums} return protoreflect.ValueOfList(listValue) - case "testpb.MsgRequest.durations": + case "testpbpulsar.MsgRequest.durations": if len(x.Durations) == 0 { return protoreflect.ValueOfList(&_MsgRequest_25_list{}) } listValue := &_MsgRequest_25_list{list: &x.Durations} return protoreflect.ValueOfList(listValue) - case "testpb.MsgRequest.some_messages": + case "testpbpulsar.MsgRequest.some_messages": if len(x.SomeMessages) == 0 { return protoreflect.ValueOfList(&_MsgRequest_26_list{}) } listValue := &_MsgRequest_26_list{list: &x.SomeMessages} return protoreflect.ValueOfList(listValue) - case "testpb.MsgRequest.positional1": + case "testpbpulsar.MsgRequest.positional1": value := x.Positional1 return protoreflect.ValueOfInt32(value) - case "testpb.MsgRequest.positional2": + case "testpbpulsar.MsgRequest.positional2": value := x.Positional2 return protoreflect.ValueOfString(value) - case "testpb.MsgRequest.positional3_varargs": + case "testpbpulsar.MsgRequest.positional3_varargs": if len(x.Positional3Varargs) == 0 { return protoreflect.ValueOfList(&_MsgRequest_29_list{}) } listValue := &_MsgRequest_29_list{list: &x.Positional3Varargs} return protoreflect.ValueOfList(listValue) - case "testpb.MsgRequest.deprecated_field": + case "testpbpulsar.MsgRequest.deprecated_field": value := x.DeprecatedField return protoreflect.ValueOfString(value) - case "testpb.MsgRequest.shorthand_deprecated_field": + case "testpbpulsar.MsgRequest.shorthand_deprecated_field": value := x.ShorthandDeprecatedField return protoreflect.ValueOfString(value) - case "testpb.MsgRequest.hidden_bool": + case "testpbpulsar.MsgRequest.hidden_bool": value := x.HiddenBool return protoreflect.ValueOfBool(value) - case "testpb.MsgRequest.a_validator_address": + case "testpbpulsar.MsgRequest.a_validator_address": value := x.AValidatorAddress return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgRequest")) } - panic(fmt.Errorf("message testpb.MsgRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgRequest does not contain field %s", descriptor.FullName())) } } @@ -921,79 +921,79 @@ func (x *fastReflection_MsgRequest) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "testpb.MsgRequest.u32": + case "testpbpulsar.MsgRequest.u32": x.U32 = uint32(value.Uint()) - case "testpb.MsgRequest.u64": + case "testpbpulsar.MsgRequest.u64": x.U64 = value.Uint() - case "testpb.MsgRequest.str": + case "testpbpulsar.MsgRequest.str": x.Str = value.Interface().(string) - case "testpb.MsgRequest.bz": + case "testpbpulsar.MsgRequest.bz": x.Bz = value.Bytes() - case "testpb.MsgRequest.timestamp": + case "testpbpulsar.MsgRequest.timestamp": x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) - case "testpb.MsgRequest.duration": + case "testpbpulsar.MsgRequest.duration": x.Duration = value.Message().Interface().(*durationpb.Duration) - case "testpb.MsgRequest.i32": + case "testpbpulsar.MsgRequest.i32": x.I32 = int32(value.Int()) - case "testpb.MsgRequest.i64": + case "testpbpulsar.MsgRequest.i64": x.I64 = value.Int() - case "testpb.MsgRequest.a_bool": + case "testpbpulsar.MsgRequest.a_bool": x.ABool = value.Bool() - case "testpb.MsgRequest.an_enum": + case "testpbpulsar.MsgRequest.an_enum": x.AnEnum = (Enum)(value.Enum()) - case "testpb.MsgRequest.a_message": + case "testpbpulsar.MsgRequest.a_message": x.AMessage = value.Message().Interface().(*AMessage) - case "testpb.MsgRequest.a_coin": + case "testpbpulsar.MsgRequest.a_coin": x.ACoin = value.Message().Interface().(*v1beta1.Coin) - case "testpb.MsgRequest.an_address": + case "testpbpulsar.MsgRequest.an_address": x.AnAddress = value.Interface().(string) - case "testpb.MsgRequest.page": + case "testpbpulsar.MsgRequest.page": x.Page = value.Message().Interface().(*v1beta11.PageRequest) - case "testpb.MsgRequest.bools": + case "testpbpulsar.MsgRequest.bools": lv := value.List() clv := lv.(*_MsgRequest_21_list) x.Bools = *clv.list - case "testpb.MsgRequest.uints": + case "testpbpulsar.MsgRequest.uints": lv := value.List() clv := lv.(*_MsgRequest_22_list) x.Uints = *clv.list - case "testpb.MsgRequest.strings": + case "testpbpulsar.MsgRequest.strings": lv := value.List() clv := lv.(*_MsgRequest_23_list) x.Strings = *clv.list - case "testpb.MsgRequest.enums": + case "testpbpulsar.MsgRequest.enums": lv := value.List() clv := lv.(*_MsgRequest_24_list) x.Enums = *clv.list - case "testpb.MsgRequest.durations": + case "testpbpulsar.MsgRequest.durations": lv := value.List() clv := lv.(*_MsgRequest_25_list) x.Durations = *clv.list - case "testpb.MsgRequest.some_messages": + case "testpbpulsar.MsgRequest.some_messages": lv := value.List() clv := lv.(*_MsgRequest_26_list) x.SomeMessages = *clv.list - case "testpb.MsgRequest.positional1": + case "testpbpulsar.MsgRequest.positional1": x.Positional1 = int32(value.Int()) - case "testpb.MsgRequest.positional2": + case "testpbpulsar.MsgRequest.positional2": x.Positional2 = value.Interface().(string) - case "testpb.MsgRequest.positional3_varargs": + case "testpbpulsar.MsgRequest.positional3_varargs": lv := value.List() clv := lv.(*_MsgRequest_29_list) x.Positional3Varargs = *clv.list - case "testpb.MsgRequest.deprecated_field": + case "testpbpulsar.MsgRequest.deprecated_field": x.DeprecatedField = value.Interface().(string) - case "testpb.MsgRequest.shorthand_deprecated_field": + case "testpbpulsar.MsgRequest.shorthand_deprecated_field": x.ShorthandDeprecatedField = value.Interface().(string) - case "testpb.MsgRequest.hidden_bool": + case "testpbpulsar.MsgRequest.hidden_bool": x.HiddenBool = value.Bool() - case "testpb.MsgRequest.a_validator_address": + case "testpbpulsar.MsgRequest.a_validator_address": x.AValidatorAddress = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgRequest")) } - panic(fmt.Errorf("message testpb.MsgRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgRequest does not contain field %s", fd.FullName())) } } @@ -1009,108 +1009,108 @@ func (x *fastReflection_MsgRequest) Set(fd protoreflect.FieldDescriptor, value p // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "testpb.MsgRequest.timestamp": + case "testpbpulsar.MsgRequest.timestamp": if x.Timestamp == nil { x.Timestamp = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - case "testpb.MsgRequest.duration": + case "testpbpulsar.MsgRequest.duration": if x.Duration == nil { x.Duration = new(durationpb.Duration) } return protoreflect.ValueOfMessage(x.Duration.ProtoReflect()) - case "testpb.MsgRequest.a_message": + case "testpbpulsar.MsgRequest.a_message": if x.AMessage == nil { x.AMessage = new(AMessage) } return protoreflect.ValueOfMessage(x.AMessage.ProtoReflect()) - case "testpb.MsgRequest.a_coin": + case "testpbpulsar.MsgRequest.a_coin": if x.ACoin == nil { x.ACoin = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.ACoin.ProtoReflect()) - case "testpb.MsgRequest.page": + case "testpbpulsar.MsgRequest.page": if x.Page == nil { x.Page = new(v1beta11.PageRequest) } return protoreflect.ValueOfMessage(x.Page.ProtoReflect()) - case "testpb.MsgRequest.bools": + case "testpbpulsar.MsgRequest.bools": if x.Bools == nil { x.Bools = []bool{} } value := &_MsgRequest_21_list{list: &x.Bools} return protoreflect.ValueOfList(value) - case "testpb.MsgRequest.uints": + case "testpbpulsar.MsgRequest.uints": if x.Uints == nil { x.Uints = []uint32{} } value := &_MsgRequest_22_list{list: &x.Uints} return protoreflect.ValueOfList(value) - case "testpb.MsgRequest.strings": + case "testpbpulsar.MsgRequest.strings": if x.Strings == nil { x.Strings = []string{} } value := &_MsgRequest_23_list{list: &x.Strings} return protoreflect.ValueOfList(value) - case "testpb.MsgRequest.enums": + case "testpbpulsar.MsgRequest.enums": if x.Enums == nil { x.Enums = []Enum{} } value := &_MsgRequest_24_list{list: &x.Enums} return protoreflect.ValueOfList(value) - case "testpb.MsgRequest.durations": + case "testpbpulsar.MsgRequest.durations": if x.Durations == nil { x.Durations = []*durationpb.Duration{} } value := &_MsgRequest_25_list{list: &x.Durations} return protoreflect.ValueOfList(value) - case "testpb.MsgRequest.some_messages": + case "testpbpulsar.MsgRequest.some_messages": if x.SomeMessages == nil { x.SomeMessages = []*AMessage{} } value := &_MsgRequest_26_list{list: &x.SomeMessages} return protoreflect.ValueOfList(value) - case "testpb.MsgRequest.positional3_varargs": + case "testpbpulsar.MsgRequest.positional3_varargs": if x.Positional3Varargs == nil { x.Positional3Varargs = []*v1beta1.Coin{} } value := &_MsgRequest_29_list{list: &x.Positional3Varargs} return protoreflect.ValueOfList(value) - case "testpb.MsgRequest.u32": - panic(fmt.Errorf("field u32 of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.u64": - panic(fmt.Errorf("field u64 of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.str": - panic(fmt.Errorf("field str of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.bz": - panic(fmt.Errorf("field bz of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.i32": - panic(fmt.Errorf("field i32 of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.i64": - panic(fmt.Errorf("field i64 of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.a_bool": - panic(fmt.Errorf("field a_bool of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.an_enum": - panic(fmt.Errorf("field an_enum of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.an_address": - panic(fmt.Errorf("field an_address of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.positional1": - panic(fmt.Errorf("field positional1 of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.positional2": - panic(fmt.Errorf("field positional2 of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.deprecated_field": - panic(fmt.Errorf("field deprecated_field of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.shorthand_deprecated_field": - panic(fmt.Errorf("field shorthand_deprecated_field of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.hidden_bool": - panic(fmt.Errorf("field hidden_bool of message testpb.MsgRequest is not mutable")) - case "testpb.MsgRequest.a_validator_address": - panic(fmt.Errorf("field a_validator_address of message testpb.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.u32": + panic(fmt.Errorf("field u32 of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.u64": + panic(fmt.Errorf("field u64 of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.str": + panic(fmt.Errorf("field str of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.bz": + panic(fmt.Errorf("field bz of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.i32": + panic(fmt.Errorf("field i32 of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.i64": + panic(fmt.Errorf("field i64 of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.a_bool": + panic(fmt.Errorf("field a_bool of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.an_enum": + panic(fmt.Errorf("field an_enum of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.an_address": + panic(fmt.Errorf("field an_address of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.positional1": + panic(fmt.Errorf("field positional1 of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.positional2": + panic(fmt.Errorf("field positional2 of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.deprecated_field": + panic(fmt.Errorf("field deprecated_field of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.shorthand_deprecated_field": + panic(fmt.Errorf("field shorthand_deprecated_field of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.hidden_bool": + panic(fmt.Errorf("field hidden_bool of message testpbpulsar.MsgRequest is not mutable")) + case "testpbpulsar.MsgRequest.a_validator_address": + panic(fmt.Errorf("field a_validator_address of message testpbpulsar.MsgRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgRequest")) } - panic(fmt.Errorf("message testpb.MsgRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgRequest does not contain field %s", fd.FullName())) } } @@ -1119,77 +1119,77 @@ func (x *fastReflection_MsgRequest) Mutable(fd protoreflect.FieldDescriptor) pro // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "testpb.MsgRequest.u32": + case "testpbpulsar.MsgRequest.u32": return protoreflect.ValueOfUint32(uint32(0)) - case "testpb.MsgRequest.u64": + case "testpbpulsar.MsgRequest.u64": return protoreflect.ValueOfUint64(uint64(0)) - case "testpb.MsgRequest.str": + case "testpbpulsar.MsgRequest.str": return protoreflect.ValueOfString("") - case "testpb.MsgRequest.bz": + case "testpbpulsar.MsgRequest.bz": return protoreflect.ValueOfBytes(nil) - case "testpb.MsgRequest.timestamp": + case "testpbpulsar.MsgRequest.timestamp": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "testpb.MsgRequest.duration": + case "testpbpulsar.MsgRequest.duration": m := new(durationpb.Duration) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "testpb.MsgRequest.i32": + case "testpbpulsar.MsgRequest.i32": return protoreflect.ValueOfInt32(int32(0)) - case "testpb.MsgRequest.i64": + case "testpbpulsar.MsgRequest.i64": return protoreflect.ValueOfInt64(int64(0)) - case "testpb.MsgRequest.a_bool": + case "testpbpulsar.MsgRequest.a_bool": return protoreflect.ValueOfBool(false) - case "testpb.MsgRequest.an_enum": + case "testpbpulsar.MsgRequest.an_enum": return protoreflect.ValueOfEnum(0) - case "testpb.MsgRequest.a_message": + case "testpbpulsar.MsgRequest.a_message": m := new(AMessage) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "testpb.MsgRequest.a_coin": + case "testpbpulsar.MsgRequest.a_coin": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "testpb.MsgRequest.an_address": + case "testpbpulsar.MsgRequest.an_address": return protoreflect.ValueOfString("") - case "testpb.MsgRequest.page": + case "testpbpulsar.MsgRequest.page": m := new(v1beta11.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "testpb.MsgRequest.bools": + case "testpbpulsar.MsgRequest.bools": list := []bool{} return protoreflect.ValueOfList(&_MsgRequest_21_list{list: &list}) - case "testpb.MsgRequest.uints": + case "testpbpulsar.MsgRequest.uints": list := []uint32{} return protoreflect.ValueOfList(&_MsgRequest_22_list{list: &list}) - case "testpb.MsgRequest.strings": + case "testpbpulsar.MsgRequest.strings": list := []string{} return protoreflect.ValueOfList(&_MsgRequest_23_list{list: &list}) - case "testpb.MsgRequest.enums": + case "testpbpulsar.MsgRequest.enums": list := []Enum{} return protoreflect.ValueOfList(&_MsgRequest_24_list{list: &list}) - case "testpb.MsgRequest.durations": + case "testpbpulsar.MsgRequest.durations": list := []*durationpb.Duration{} return protoreflect.ValueOfList(&_MsgRequest_25_list{list: &list}) - case "testpb.MsgRequest.some_messages": + case "testpbpulsar.MsgRequest.some_messages": list := []*AMessage{} return protoreflect.ValueOfList(&_MsgRequest_26_list{list: &list}) - case "testpb.MsgRequest.positional1": + case "testpbpulsar.MsgRequest.positional1": return protoreflect.ValueOfInt32(int32(0)) - case "testpb.MsgRequest.positional2": + case "testpbpulsar.MsgRequest.positional2": return protoreflect.ValueOfString("") - case "testpb.MsgRequest.positional3_varargs": + case "testpbpulsar.MsgRequest.positional3_varargs": list := []*v1beta1.Coin{} return protoreflect.ValueOfList(&_MsgRequest_29_list{list: &list}) - case "testpb.MsgRequest.deprecated_field": + case "testpbpulsar.MsgRequest.deprecated_field": return protoreflect.ValueOfString("") - case "testpb.MsgRequest.shorthand_deprecated_field": + case "testpbpulsar.MsgRequest.shorthand_deprecated_field": return protoreflect.ValueOfString("") - case "testpb.MsgRequest.hidden_bool": + case "testpbpulsar.MsgRequest.hidden_bool": return protoreflect.ValueOfBool(false) - case "testpb.MsgRequest.a_validator_address": + case "testpbpulsar.MsgRequest.a_validator_address": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgRequest")) } - panic(fmt.Errorf("message testpb.MsgRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgRequest does not contain field %s", fd.FullName())) } } @@ -1199,7 +1199,7 @@ func (x *fastReflection_MsgRequest) NewField(fd protoreflect.FieldDescriptor) pr func (x *fastReflection_MsgRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in testpb.MsgRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in testpbpulsar.MsgRequest", d.FullName())) } panic("unreachable") } @@ -2711,8 +2711,8 @@ var ( ) func init() { - file_testpb_msg_proto_init() - md_MsgResponse = File_testpb_msg_proto.Messages().ByName("MsgResponse") + file_testpbpulsar_msg_proto_init() + md_MsgResponse = File_testpbpulsar_msg_proto.Messages().ByName("MsgResponse") fd_MsgResponse_request = md_MsgResponse.Fields().ByName("request") } @@ -2725,7 +2725,7 @@ func (x *MsgResponse) ProtoReflect() protoreflect.Message { } func (x *MsgResponse) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_msg_proto_msgTypes[1] + mi := &file_testpbpulsar_msg_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2802,13 +2802,13 @@ func (x *fastReflection_MsgResponse) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "testpb.MsgResponse.request": + case "testpbpulsar.MsgResponse.request": return x.Request != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgResponse")) } - panic(fmt.Errorf("message testpb.MsgResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgResponse does not contain field %s", fd.FullName())) } } @@ -2820,13 +2820,13 @@ func (x *fastReflection_MsgResponse) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "testpb.MsgResponse.request": + case "testpbpulsar.MsgResponse.request": x.Request = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgResponse")) } - panic(fmt.Errorf("message testpb.MsgResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgResponse does not contain field %s", fd.FullName())) } } @@ -2838,14 +2838,14 @@ func (x *fastReflection_MsgResponse) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "testpb.MsgResponse.request": + case "testpbpulsar.MsgResponse.request": value := x.Request return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgResponse")) } - panic(fmt.Errorf("message testpb.MsgResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgResponse does not contain field %s", descriptor.FullName())) } } @@ -2861,13 +2861,13 @@ func (x *fastReflection_MsgResponse) Get(descriptor protoreflect.FieldDescriptor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "testpb.MsgResponse.request": + case "testpbpulsar.MsgResponse.request": x.Request = value.Message().Interface().(*MsgRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgResponse")) } - panic(fmt.Errorf("message testpb.MsgResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgResponse does not contain field %s", fd.FullName())) } } @@ -2883,16 +2883,16 @@ func (x *fastReflection_MsgResponse) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "testpb.MsgResponse.request": + case "testpbpulsar.MsgResponse.request": if x.Request == nil { x.Request = new(MsgRequest) } return protoreflect.ValueOfMessage(x.Request.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgResponse")) } - panic(fmt.Errorf("message testpb.MsgResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgResponse does not contain field %s", fd.FullName())) } } @@ -2901,14 +2901,14 @@ func (x *fastReflection_MsgResponse) Mutable(fd protoreflect.FieldDescriptor) pr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "testpb.MsgResponse.request": + case "testpbpulsar.MsgResponse.request": m := new(MsgRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgResponse")) } - panic(fmt.Errorf("message testpb.MsgResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgResponse does not contain field %s", fd.FullName())) } } @@ -2918,7 +2918,7 @@ func (x *fastReflection_MsgResponse) NewField(fd protoreflect.FieldDescriptor) p func (x *fastReflection_MsgResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in testpb.MsgResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in testpbpulsar.MsgResponse", d.FullName())) } panic("unreachable") } @@ -3145,8 +3145,8 @@ var ( ) func init() { - file_testpb_msg_proto_init() - md_MsgClawbackRequest = File_testpb_msg_proto.Messages().ByName("MsgClawbackRequest") + file_testpbpulsar_msg_proto_init() + md_MsgClawbackRequest = File_testpbpulsar_msg_proto.Messages().ByName("MsgClawbackRequest") } var _ protoreflect.Message = (*fastReflection_MsgClawbackRequest)(nil) @@ -3158,7 +3158,7 @@ func (x *MsgClawbackRequest) ProtoReflect() protoreflect.Message { } func (x *MsgClawbackRequest) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_msg_proto_msgTypes[2] + mi := &file_testpbpulsar_msg_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3231,9 +3231,9 @@ func (x *fastReflection_MsgClawbackRequest) Has(fd protoreflect.FieldDescriptor) switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgClawbackRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgClawbackRequest")) } - panic(fmt.Errorf("message testpb.MsgClawbackRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgClawbackRequest does not contain field %s", fd.FullName())) } } @@ -3247,9 +3247,9 @@ func (x *fastReflection_MsgClawbackRequest) Clear(fd protoreflect.FieldDescripto switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgClawbackRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgClawbackRequest")) } - panic(fmt.Errorf("message testpb.MsgClawbackRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgClawbackRequest does not contain field %s", fd.FullName())) } } @@ -3263,9 +3263,9 @@ func (x *fastReflection_MsgClawbackRequest) Get(descriptor protoreflect.FieldDes switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgClawbackRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgClawbackRequest")) } - panic(fmt.Errorf("message testpb.MsgClawbackRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgClawbackRequest does not contain field %s", descriptor.FullName())) } } @@ -3283,9 +3283,9 @@ func (x *fastReflection_MsgClawbackRequest) Set(fd protoreflect.FieldDescriptor, switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgClawbackRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgClawbackRequest")) } - panic(fmt.Errorf("message testpb.MsgClawbackRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgClawbackRequest does not contain field %s", fd.FullName())) } } @@ -3303,9 +3303,9 @@ func (x *fastReflection_MsgClawbackRequest) Mutable(fd protoreflect.FieldDescrip switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgClawbackRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgClawbackRequest")) } - panic(fmt.Errorf("message testpb.MsgClawbackRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgClawbackRequest does not contain field %s", fd.FullName())) } } @@ -3316,9 +3316,9 @@ func (x *fastReflection_MsgClawbackRequest) NewField(fd protoreflect.FieldDescri switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgClawbackRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgClawbackRequest")) } - panic(fmt.Errorf("message testpb.MsgClawbackRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgClawbackRequest does not contain field %s", fd.FullName())) } } @@ -3328,7 +3328,7 @@ func (x *fastReflection_MsgClawbackRequest) NewField(fd protoreflect.FieldDescri func (x *fastReflection_MsgClawbackRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in testpb.MsgClawbackRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in testpbpulsar.MsgClawbackRequest", d.FullName())) } panic("unreachable") } @@ -3501,8 +3501,8 @@ var ( ) func init() { - file_testpb_msg_proto_init() - md_MsgClawbackResponse = File_testpb_msg_proto.Messages().ByName("MsgClawbackResponse") + file_testpbpulsar_msg_proto_init() + md_MsgClawbackResponse = File_testpbpulsar_msg_proto.Messages().ByName("MsgClawbackResponse") } var _ protoreflect.Message = (*fastReflection_MsgClawbackResponse)(nil) @@ -3514,7 +3514,7 @@ func (x *MsgClawbackResponse) ProtoReflect() protoreflect.Message { } func (x *MsgClawbackResponse) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_msg_proto_msgTypes[3] + mi := &file_testpbpulsar_msg_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3587,9 +3587,9 @@ func (x *fastReflection_MsgClawbackResponse) Has(fd protoreflect.FieldDescriptor switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgClawbackResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgClawbackResponse")) } - panic(fmt.Errorf("message testpb.MsgClawbackResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgClawbackResponse does not contain field %s", fd.FullName())) } } @@ -3603,9 +3603,9 @@ func (x *fastReflection_MsgClawbackResponse) Clear(fd protoreflect.FieldDescript switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgClawbackResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgClawbackResponse")) } - panic(fmt.Errorf("message testpb.MsgClawbackResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgClawbackResponse does not contain field %s", fd.FullName())) } } @@ -3619,9 +3619,9 @@ func (x *fastReflection_MsgClawbackResponse) Get(descriptor protoreflect.FieldDe switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgClawbackResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgClawbackResponse")) } - panic(fmt.Errorf("message testpb.MsgClawbackResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgClawbackResponse does not contain field %s", descriptor.FullName())) } } @@ -3639,9 +3639,9 @@ func (x *fastReflection_MsgClawbackResponse) Set(fd protoreflect.FieldDescriptor switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgClawbackResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgClawbackResponse")) } - panic(fmt.Errorf("message testpb.MsgClawbackResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgClawbackResponse does not contain field %s", fd.FullName())) } } @@ -3659,9 +3659,9 @@ func (x *fastReflection_MsgClawbackResponse) Mutable(fd protoreflect.FieldDescri switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgClawbackResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgClawbackResponse")) } - panic(fmt.Errorf("message testpb.MsgClawbackResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgClawbackResponse does not contain field %s", fd.FullName())) } } @@ -3672,9 +3672,9 @@ func (x *fastReflection_MsgClawbackResponse) NewField(fd protoreflect.FieldDescr switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.MsgClawbackResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.MsgClawbackResponse")) } - panic(fmt.Errorf("message testpb.MsgClawbackResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.MsgClawbackResponse does not contain field %s", fd.FullName())) } } @@ -3684,7 +3684,7 @@ func (x *fastReflection_MsgClawbackResponse) NewField(fd protoreflect.FieldDescr func (x *fastReflection_MsgClawbackResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in testpb.MsgClawbackResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in testpbpulsar.MsgClawbackResponse", d.FullName())) } panic("unreachable") } @@ -3856,7 +3856,7 @@ func (x *fastReflection_MsgClawbackResponse) ProtoMethods() *protoiface.Methods // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: testpb/msg.proto +// source: testpbpulsar/msg.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -3880,7 +3880,7 @@ type MsgRequest struct { I32 int32 `protobuf:"varint,7,opt,name=i32,proto3" json:"i32,omitempty"` I64 int64 `protobuf:"varint,10,opt,name=i64,proto3" json:"i64,omitempty"` ABool bool `protobuf:"varint,15,opt,name=a_bool,json=aBool,proto3" json:"a_bool,omitempty"` - AnEnum Enum `protobuf:"varint,16,opt,name=an_enum,json=anEnum,proto3,enum=testpb.Enum" json:"an_enum,omitempty"` + AnEnum Enum `protobuf:"varint,16,opt,name=an_enum,json=anEnum,proto3,enum=testpbpulsar.Enum" json:"an_enum,omitempty"` AMessage *AMessage `protobuf:"bytes,17,opt,name=a_message,json=aMessage,proto3" json:"a_message,omitempty"` ACoin *v1beta1.Coin `protobuf:"bytes,18,opt,name=a_coin,json=aCoin,proto3" json:"a_coin,omitempty"` AnAddress string `protobuf:"bytes,19,opt,name=an_address,json=anAddress,proto3" json:"an_address,omitempty"` @@ -3888,7 +3888,7 @@ type MsgRequest struct { Bools []bool `protobuf:"varint,21,rep,packed,name=bools,proto3" json:"bools,omitempty"` Uints []uint32 `protobuf:"varint,22,rep,packed,name=uints,proto3" json:"uints,omitempty"` Strings []string `protobuf:"bytes,23,rep,name=strings,proto3" json:"strings,omitempty"` - Enums []Enum `protobuf:"varint,24,rep,packed,name=enums,proto3,enum=testpb.Enum" json:"enums,omitempty"` + Enums []Enum `protobuf:"varint,24,rep,packed,name=enums,proto3,enum=testpbpulsar.Enum" json:"enums,omitempty"` Durations []*durationpb.Duration `protobuf:"bytes,25,rep,name=durations,proto3" json:"durations,omitempty"` SomeMessages []*AMessage `protobuf:"bytes,26,rep,name=some_messages,json=someMessages,proto3" json:"some_messages,omitempty"` Positional1 int32 `protobuf:"varint,27,opt,name=positional1,proto3" json:"positional1,omitempty"` @@ -3903,7 +3903,7 @@ type MsgRequest struct { func (x *MsgRequest) Reset() { *x = MsgRequest{} if protoimpl.UnsafeEnabled { - mi := &file_testpb_msg_proto_msgTypes[0] + mi := &file_testpbpulsar_msg_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3917,7 +3917,7 @@ func (*MsgRequest) ProtoMessage() {} // Deprecated: Use MsgRequest.ProtoReflect.Descriptor instead. func (*MsgRequest) Descriptor() ([]byte, []int) { - return file_testpb_msg_proto_rawDescGZIP(), []int{0} + return file_testpbpulsar_msg_proto_rawDescGZIP(), []int{0} } func (x *MsgRequest) GetU32() uint32 { @@ -4120,7 +4120,7 @@ type MsgResponse struct { func (x *MsgResponse) Reset() { *x = MsgResponse{} if protoimpl.UnsafeEnabled { - mi := &file_testpb_msg_proto_msgTypes[1] + mi := &file_testpbpulsar_msg_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4134,7 +4134,7 @@ func (*MsgResponse) ProtoMessage() {} // Deprecated: Use MsgResponse.ProtoReflect.Descriptor instead. func (*MsgResponse) Descriptor() ([]byte, []int) { - return file_testpb_msg_proto_rawDescGZIP(), []int{1} + return file_testpbpulsar_msg_proto_rawDescGZIP(), []int{1} } func (x *MsgResponse) GetRequest() *MsgRequest { @@ -4153,7 +4153,7 @@ type MsgClawbackRequest struct { func (x *MsgClawbackRequest) Reset() { *x = MsgClawbackRequest{} if protoimpl.UnsafeEnabled { - mi := &file_testpb_msg_proto_msgTypes[2] + mi := &file_testpbpulsar_msg_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4167,7 +4167,7 @@ func (*MsgClawbackRequest) ProtoMessage() {} // Deprecated: Use MsgClawbackRequest.ProtoReflect.Descriptor instead. func (*MsgClawbackRequest) Descriptor() ([]byte, []int) { - return file_testpb_msg_proto_rawDescGZIP(), []int{2} + return file_testpbpulsar_msg_proto_rawDescGZIP(), []int{2} } type MsgClawbackResponse struct { @@ -4179,7 +4179,7 @@ type MsgClawbackResponse struct { func (x *MsgClawbackResponse) Reset() { *x = MsgClawbackResponse{} if protoimpl.UnsafeEnabled { - mi := &file_testpb_msg_proto_msgTypes[3] + mi := &file_testpbpulsar_msg_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4193,164 +4193,170 @@ func (*MsgClawbackResponse) ProtoMessage() {} // Deprecated: Use MsgClawbackResponse.ProtoReflect.Descriptor instead. func (*MsgClawbackResponse) Descriptor() ([]byte, []int) { - return file_testpb_msg_proto_rawDescGZIP(), []int{3} + return file_testpbpulsar_msg_proto_rawDescGZIP(), []int{3} } -var File_testpb_msg_proto protoreflect.FileDescriptor +var File_testpbpulsar_msg_proto protoreflect.FileDescriptor -var file_testpb_msg_proto_rawDesc = []byte{ - 0x0a, 0x10, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, - 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x12, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2, 0x08, 0x0a, 0x0a, 0x4d, 0x73, 0x67, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x03, 0x75, 0x33, 0x32, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x36, 0x34, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x75, 0x36, 0x34, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x74, 0x72, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x62, - 0x7a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x62, 0x7a, 0x12, 0x38, 0x0a, 0x09, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, - 0x69, 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x69, 0x33, 0x32, 0x12, 0x10, - 0x0a, 0x03, 0x69, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x69, 0x36, 0x34, - 0x12, 0x15, 0x0a, 0x06, 0x61, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x05, 0x61, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x25, 0x0a, 0x07, 0x61, 0x6e, 0x5f, 0x65, 0x6e, - 0x75, 0x6d, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, - 0x62, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x61, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x2d, - 0x0a, 0x09, 0x61, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x41, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x52, 0x08, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x30, 0x0a, - 0x06, 0x61, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x61, 0x43, 0x6f, 0x69, 0x6e, 0x12, - 0x37, 0x0a, 0x0a, 0x61, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x13, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, - 0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3a, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, - 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, - 0x70, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x15, 0x20, - 0x03, 0x28, 0x08, 0x52, 0x05, 0x62, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x69, - 0x6e, 0x74, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x69, 0x6e, 0x74, 0x73, - 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x07, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x22, 0x0a, 0x05, 0x65, 0x6e, - 0x75, 0x6d, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x65, 0x73, 0x74, - 0x70, 0x62, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x12, 0x37, - 0x0a, 0x09, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x19, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x0a, 0x0d, 0x73, 0x6f, 0x6d, 0x65, 0x5f, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x41, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x52, 0x0c, 0x73, 0x6f, 0x6d, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x20, - 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x31, 0x18, 0x1b, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x31, - 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x32, 0x18, - 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x32, 0x12, 0x4a, 0x0a, 0x13, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, - 0x33, 0x5f, 0x76, 0x61, 0x72, 0x61, 0x72, 0x67, 0x73, 0x18, 0x1d, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x12, 0x70, 0x6f, 0x73, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x33, 0x56, 0x61, 0x72, 0x61, 0x72, 0x67, 0x73, 0x12, 0x29, - 0x0a, 0x10, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, - 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x3c, 0x0a, 0x1a, 0x73, 0x68, 0x6f, - 0x72, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, - 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x73, - 0x68, 0x6f, 0x72, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, - 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x69, 0x64, 0x64, 0x65, - 0x6e, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x20, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x68, 0x69, - 0x64, 0x64, 0x65, 0x6e, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x51, 0x0a, 0x13, 0x61, 0x5f, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x21, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x11, 0x61, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x3b, 0x0a, 0x0b, 0x4d, - 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x07, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, - 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, +var file_testpbpulsar_msg_proto_rawDesc = []byte{ + 0x0a, 0x16, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2f, 0x6d, + 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, + 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2f, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xda, 0x08, 0x0a, 0x0a, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x33, 0x32, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x75, 0x33, 0x32, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x36, 0x34, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x75, 0x36, 0x34, 0x12, 0x10, 0x0a, 0x03, 0x73, + 0x74, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x0e, 0x0a, + 0x02, 0x62, 0x7a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x62, 0x7a, 0x12, 0x38, 0x0a, + 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, + 0x0a, 0x03, 0x69, 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x69, 0x33, 0x32, + 0x12, 0x10, 0x0a, 0x03, 0x69, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x69, + 0x36, 0x34, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x0f, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x05, 0x61, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x2b, 0x0a, 0x07, 0x61, 0x6e, 0x5f, + 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, + 0x61, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x33, 0x0a, 0x09, 0x61, 0x5f, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x41, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x52, 0x08, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x61, + 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x61, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x37, 0x0a, + 0x0a, 0x61, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x6e, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3a, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x14, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x70, 0x61, + 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, + 0x08, 0x52, 0x05, 0x62, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x69, 0x6e, 0x74, + 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x18, + 0x0a, 0x07, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x07, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x28, 0x0a, 0x05, 0x65, 0x6e, 0x75, 0x6d, + 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, + 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x65, 0x6e, 0x75, + 0x6d, 0x73, 0x12, 0x37, 0x0a, 0x09, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x19, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x09, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3b, 0x0a, 0x0d, 0x73, + 0x6f, 0x6d, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, + 0x72, 0x2e, 0x41, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0c, 0x73, 0x6f, 0x6d, 0x65, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x31, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x31, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x32, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x32, 0x12, 0x4a, 0x0a, 0x13, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x33, 0x5f, 0x76, 0x61, 0x72, 0x61, + 0x72, 0x67, 0x73, 0x18, 0x1d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x12, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x33, 0x56, 0x61, 0x72, 0x61, 0x72, 0x67, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x70, 0x72, + 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x1e, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x12, 0x3c, 0x0a, 0x1a, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x68, 0x61, 0x6e, 0x64, + 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, + 0x64, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x68, 0x61, + 0x6e, 0x64, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, + 0x18, 0x20, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x42, 0x6f, + 0x6f, 0x6c, 0x12, 0x51, 0x0a, 0x13, 0x61, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x21, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x11, 0x61, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x41, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, + 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x77, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x15, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x77, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xab, 0x01, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x47, 0x0a, - 0x04, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4d, - 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, - 0x70, 0x62, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, - 0xca, 0xb4, 0x2d, 0x12, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x76, - 0x30, 0x2e, 0x35, 0x30, 0x2e, 0x30, 0x12, 0x5b, 0x0a, 0x08, 0x43, 0x6c, 0x61, 0x77, 0x62, 0x61, - 0x63, 0x6b, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4d, 0x73, 0x67, 0x43, - 0x6c, 0x61, 0x77, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, - 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x77, 0x62, - 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, 0xca, 0xb4, 0x2d, - 0x12, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x76, 0x30, 0x2e, 0x35, - 0x31, 0x2e, 0x30, 0x42, 0x86, 0x01, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x73, 0x74, - 0x70, 0x62, 0x42, 0x08, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, - 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x54, - 0x65, 0x73, 0x74, 0x70, 0x62, 0xca, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0xe2, 0x02, - 0x12, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc3, 0x01, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x53, 0x0a, + 0x04, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, + 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x4d, + 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, 0xca, 0xb4, 0x2d, 0x12, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x20, 0x76, 0x30, 0x2e, 0x35, 0x30, + 0x2e, 0x30, 0x12, 0x67, 0x0a, 0x08, 0x43, 0x6c, 0x61, 0x77, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x20, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x4d, 0x73, + 0x67, 0x43, 0x6c, 0x61, 0x77, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x21, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, + 0x4d, 0x73, 0x67, 0x43, 0x6c, 0x61, 0x77, 0x62, 0x61, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x16, 0xca, 0xb4, 0x2d, 0x12, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, + 0x73, 0x64, 0x6b, 0x20, 0x76, 0x30, 0x2e, 0x35, 0x31, 0x2e, 0x30, 0x42, 0xaa, 0x01, 0x0a, 0x10, + 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, + 0x42, 0x08, 0x4d, 0x73, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, + 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, + 0xaa, 0x02, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0xca, + 0x02, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0xe2, 0x02, + 0x18, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x54, 0x65, 0x73, 0x74, + 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_testpb_msg_proto_rawDescOnce sync.Once - file_testpb_msg_proto_rawDescData = file_testpb_msg_proto_rawDesc + file_testpbpulsar_msg_proto_rawDescOnce sync.Once + file_testpbpulsar_msg_proto_rawDescData = file_testpbpulsar_msg_proto_rawDesc ) -func file_testpb_msg_proto_rawDescGZIP() []byte { - file_testpb_msg_proto_rawDescOnce.Do(func() { - file_testpb_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpb_msg_proto_rawDescData) +func file_testpbpulsar_msg_proto_rawDescGZIP() []byte { + file_testpbpulsar_msg_proto_rawDescOnce.Do(func() { + file_testpbpulsar_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpbpulsar_msg_proto_rawDescData) }) - return file_testpb_msg_proto_rawDescData + return file_testpbpulsar_msg_proto_rawDescData } -var file_testpb_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_testpb_msg_proto_goTypes = []interface{}{ - (*MsgRequest)(nil), // 0: testpb.MsgRequest - (*MsgResponse)(nil), // 1: testpb.MsgResponse - (*MsgClawbackRequest)(nil), // 2: testpb.MsgClawbackRequest - (*MsgClawbackResponse)(nil), // 3: testpb.MsgClawbackResponse +var file_testpbpulsar_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_testpbpulsar_msg_proto_goTypes = []interface{}{ + (*MsgRequest)(nil), // 0: testpbpulsar.MsgRequest + (*MsgResponse)(nil), // 1: testpbpulsar.MsgResponse + (*MsgClawbackRequest)(nil), // 2: testpbpulsar.MsgClawbackRequest + (*MsgClawbackResponse)(nil), // 3: testpbpulsar.MsgClawbackResponse (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp (*durationpb.Duration)(nil), // 5: google.protobuf.Duration - (Enum)(0), // 6: testpb.Enum - (*AMessage)(nil), // 7: testpb.AMessage + (Enum)(0), // 6: testpbpulsar.Enum + (*AMessage)(nil), // 7: testpbpulsar.AMessage (*v1beta1.Coin)(nil), // 8: cosmos.base.v1beta1.Coin (*v1beta11.PageRequest)(nil), // 9: cosmos.base.query.v1beta1.PageRequest } -var file_testpb_msg_proto_depIdxs = []int32{ - 4, // 0: testpb.MsgRequest.timestamp:type_name -> google.protobuf.Timestamp - 5, // 1: testpb.MsgRequest.duration:type_name -> google.protobuf.Duration - 6, // 2: testpb.MsgRequest.an_enum:type_name -> testpb.Enum - 7, // 3: testpb.MsgRequest.a_message:type_name -> testpb.AMessage - 8, // 4: testpb.MsgRequest.a_coin:type_name -> cosmos.base.v1beta1.Coin - 9, // 5: testpb.MsgRequest.page:type_name -> cosmos.base.query.v1beta1.PageRequest - 6, // 6: testpb.MsgRequest.enums:type_name -> testpb.Enum - 5, // 7: testpb.MsgRequest.durations:type_name -> google.protobuf.Duration - 7, // 8: testpb.MsgRequest.some_messages:type_name -> testpb.AMessage - 8, // 9: testpb.MsgRequest.positional3_varargs:type_name -> cosmos.base.v1beta1.Coin - 0, // 10: testpb.MsgResponse.request:type_name -> testpb.MsgRequest - 0, // 11: testpb.Msg.Send:input_type -> testpb.MsgRequest - 2, // 12: testpb.Msg.Clawback:input_type -> testpb.MsgClawbackRequest - 1, // 13: testpb.Msg.Send:output_type -> testpb.MsgResponse - 3, // 14: testpb.Msg.Clawback:output_type -> testpb.MsgClawbackResponse +var file_testpbpulsar_msg_proto_depIdxs = []int32{ + 4, // 0: testpbpulsar.MsgRequest.timestamp:type_name -> google.protobuf.Timestamp + 5, // 1: testpbpulsar.MsgRequest.duration:type_name -> google.protobuf.Duration + 6, // 2: testpbpulsar.MsgRequest.an_enum:type_name -> testpbpulsar.Enum + 7, // 3: testpbpulsar.MsgRequest.a_message:type_name -> testpbpulsar.AMessage + 8, // 4: testpbpulsar.MsgRequest.a_coin:type_name -> cosmos.base.v1beta1.Coin + 9, // 5: testpbpulsar.MsgRequest.page:type_name -> cosmos.base.query.v1beta1.PageRequest + 6, // 6: testpbpulsar.MsgRequest.enums:type_name -> testpbpulsar.Enum + 5, // 7: testpbpulsar.MsgRequest.durations:type_name -> google.protobuf.Duration + 7, // 8: testpbpulsar.MsgRequest.some_messages:type_name -> testpbpulsar.AMessage + 8, // 9: testpbpulsar.MsgRequest.positional3_varargs:type_name -> cosmos.base.v1beta1.Coin + 0, // 10: testpbpulsar.MsgResponse.request:type_name -> testpbpulsar.MsgRequest + 0, // 11: testpbpulsar.Msg.Send:input_type -> testpbpulsar.MsgRequest + 2, // 12: testpbpulsar.Msg.Clawback:input_type -> testpbpulsar.MsgClawbackRequest + 1, // 13: testpbpulsar.Msg.Send:output_type -> testpbpulsar.MsgResponse + 3, // 14: testpbpulsar.Msg.Clawback:output_type -> testpbpulsar.MsgClawbackResponse 13, // [13:15] is the sub-list for method output_type 11, // [11:13] is the sub-list for method input_type 11, // [11:11] is the sub-list for extension type_name @@ -4358,14 +4364,14 @@ var file_testpb_msg_proto_depIdxs = []int32{ 0, // [0:11] is the sub-list for field type_name } -func init() { file_testpb_msg_proto_init() } -func file_testpb_msg_proto_init() { - if File_testpb_msg_proto != nil { +func init() { file_testpbpulsar_msg_proto_init() } +func file_testpbpulsar_msg_proto_init() { + if File_testpbpulsar_msg_proto != nil { return } - file_testpb_query_proto_init() + file_testpbpulsar_query_proto_init() if !protoimpl.UnsafeEnabled { - file_testpb_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_testpbpulsar_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRequest); i { case 0: return &v.state @@ -4377,7 +4383,7 @@ func file_testpb_msg_proto_init() { return nil } } - file_testpb_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_testpbpulsar_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgResponse); i { case 0: return &v.state @@ -4389,7 +4395,7 @@ func file_testpb_msg_proto_init() { return nil } } - file_testpb_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_testpbpulsar_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgClawbackRequest); i { case 0: return &v.state @@ -4401,7 +4407,7 @@ func file_testpb_msg_proto_init() { return nil } } - file_testpb_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_testpbpulsar_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgClawbackResponse); i { case 0: return &v.state @@ -4418,18 +4424,18 @@ func file_testpb_msg_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_testpb_msg_proto_rawDesc, + RawDescriptor: file_testpbpulsar_msg_proto_rawDesc, NumEnums: 0, NumMessages: 4, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_testpb_msg_proto_goTypes, - DependencyIndexes: file_testpb_msg_proto_depIdxs, - MessageInfos: file_testpb_msg_proto_msgTypes, + GoTypes: file_testpbpulsar_msg_proto_goTypes, + DependencyIndexes: file_testpbpulsar_msg_proto_depIdxs, + MessageInfos: file_testpbpulsar_msg_proto_msgTypes, }.Build() - File_testpb_msg_proto = out.File - file_testpb_msg_proto_rawDesc = nil - file_testpb_msg_proto_goTypes = nil - file_testpb_msg_proto_depIdxs = nil + File_testpbpulsar_msg_proto = out.File + file_testpbpulsar_msg_proto_rawDesc = nil + file_testpbpulsar_msg_proto_goTypes = nil + file_testpbpulsar_msg_proto_depIdxs = nil } diff --git a/client/v2/internal/testpb/msg_grpc.pb.go b/client/v2/internal/testpbpulsar/msg_grpc.pb.go similarity index 95% rename from client/v2/internal/testpb/msg_grpc.pb.go rename to client/v2/internal/testpbpulsar/msg_grpc.pb.go index ebcfba150b..0036d646d5 100644 --- a/client/v2/internal/testpb/msg_grpc.pb.go +++ b/client/v2/internal/testpbpulsar/msg_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) -// source: testpb/msg.proto +// source: testpbpulsar/msg.proto -package testpb +package testpbpulsar import ( context "context" @@ -19,8 +19,8 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Msg_Send_FullMethodName = "/testpb.Msg/Send" - Msg_Clawback_FullMethodName = "/testpb.Msg/Clawback" + Msg_Send_FullMethodName = "/testpbpulsar.Msg/Send" + Msg_Clawback_FullMethodName = "/testpbpulsar.Msg/Clawback" ) // MsgClient is the client API for Msg service. @@ -131,7 +131,7 @@ func _Msg_Clawback_Handler(srv interface{}, ctx context.Context, dec func(interf // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "testpb.Msg", + ServiceName: "testpbpulsar.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -144,5 +144,5 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "testpb/msg.proto", + Metadata: "testpbpulsar/msg.proto", } diff --git a/client/v2/internal/testpb/query.proto b/client/v2/internal/testpbpulsar/query.proto similarity index 99% rename from client/v2/internal/testpb/query.proto rename to client/v2/internal/testpbpulsar/query.proto index 9215823f75..d8fc36d8da 100644 --- a/client/v2/internal/testpb/query.proto +++ b/client/v2/internal/testpbpulsar/query.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package testpb; +package testpbpulsar; import "google/protobuf/timestamp.proto"; import "google/protobuf/duration.proto"; diff --git a/client/v2/internal/testpb/query.pulsar.go b/client/v2/internal/testpbpulsar/query.pulsar.go similarity index 83% rename from client/v2/internal/testpb/query.pulsar.go rename to client/v2/internal/testpbpulsar/query.pulsar.go index 53f899b395..12aa2367ba 100644 --- a/client/v2/internal/testpb/query.pulsar.go +++ b/client/v2/internal/testpbpulsar/query.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package testpb +package testpbpulsar import ( v1beta11 "cosmossdk.io/api/cosmos/base/query/v1beta1" @@ -18,474 +18,6 @@ import ( sync "sync" ) -var ( - md_AMessage protoreflect.MessageDescriptor - fd_AMessage_bar protoreflect.FieldDescriptor - fd_AMessage_baz protoreflect.FieldDescriptor -) - -func init() { - file_testpb_query_proto_init() - md_AMessage = File_testpb_query_proto.Messages().ByName("AMessage") - fd_AMessage_bar = md_AMessage.Fields().ByName("bar") - fd_AMessage_baz = md_AMessage.Fields().ByName("baz") -} - -var _ protoreflect.Message = (*fastReflection_AMessage)(nil) - -type fastReflection_AMessage AMessage - -func (x *AMessage) ProtoReflect() protoreflect.Message { - return (*fastReflection_AMessage)(x) -} - -func (x *AMessage) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_query_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) -} - -var _fastReflection_AMessage_messageType fastReflection_AMessage_messageType -var _ protoreflect.MessageType = fastReflection_AMessage_messageType{} - -type fastReflection_AMessage_messageType struct{} - -func (x fastReflection_AMessage_messageType) Zero() protoreflect.Message { - return (*fastReflection_AMessage)(nil) -} -func (x fastReflection_AMessage_messageType) New() protoreflect.Message { - return new(fastReflection_AMessage) -} -func (x fastReflection_AMessage_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AMessage -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_AMessage) Descriptor() protoreflect.MessageDescriptor { - return md_AMessage -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_AMessage) Type() protoreflect.MessageType { - return _fastReflection_AMessage_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_AMessage) New() protoreflect.Message { - return new(fastReflection_AMessage) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_AMessage) Interface() protoreflect.ProtoMessage { - return (*AMessage)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_AMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Bar != "" { - value := protoreflect.ValueOfString(x.Bar) - if !f(fd_AMessage_bar, value) { - return - } - } - if x.Baz != int32(0) { - value := protoreflect.ValueOfInt32(x.Baz) - if !f(fd_AMessage_baz, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_AMessage) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "testpb.AMessage.bar": - return x.Bar != "" - case "testpb.AMessage.baz": - return x.Baz != int32(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.AMessage")) - } - panic(fmt.Errorf("message testpb.AMessage does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AMessage) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "testpb.AMessage.bar": - x.Bar = "" - case "testpb.AMessage.baz": - x.Baz = int32(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.AMessage")) - } - panic(fmt.Errorf("message testpb.AMessage does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_AMessage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "testpb.AMessage.bar": - value := x.Bar - return protoreflect.ValueOfString(value) - case "testpb.AMessage.baz": - value := x.Baz - return protoreflect.ValueOfInt32(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.AMessage")) - } - panic(fmt.Errorf("message testpb.AMessage does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AMessage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "testpb.AMessage.bar": - x.Bar = value.Interface().(string) - case "testpb.AMessage.baz": - x.Baz = int32(value.Int()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.AMessage")) - } - panic(fmt.Errorf("message testpb.AMessage does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AMessage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.AMessage.bar": - panic(fmt.Errorf("field bar of message testpb.AMessage is not mutable")) - case "testpb.AMessage.baz": - panic(fmt.Errorf("field baz of message testpb.AMessage is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.AMessage")) - } - panic(fmt.Errorf("message testpb.AMessage does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_AMessage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "testpb.AMessage.bar": - return protoreflect.ValueOfString("") - case "testpb.AMessage.baz": - return protoreflect.ValueOfInt32(int32(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.AMessage")) - } - panic(fmt.Errorf("message testpb.AMessage does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_AMessage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in testpb.AMessage", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_AMessage) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AMessage) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_AMessage) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_AMessage) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AMessage) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Bar) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Baz != 0 { - n += 1 + runtime.Sov(uint64(x.Baz)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*AMessage) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Baz != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Baz)) - i-- - dAtA[i] = 0x10 - } - if len(x.Bar) > 0 { - i -= len(x.Bar) - copy(dAtA[i:], x.Bar) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Bar))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*AMessage) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AMessage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AMessage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bar", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Bar = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Baz", wireType) - } - x.Baz = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.Baz |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - var _ protoreflect.List = (*_EchoRequest_21_list)(nil) type _EchoRequest_21_list struct { @@ -1165,8 +697,8 @@ var ( ) func init() { - file_testpb_query_proto_init() - md_EchoRequest = File_testpb_query_proto.Messages().ByName("EchoRequest") + file_testpbpulsar_query_proto_init() + md_EchoRequest = File_testpbpulsar_query_proto.Messages().ByName("EchoRequest") fd_EchoRequest_u32 = md_EchoRequest.Fields().ByName("u32") fd_EchoRequest_u64 = md_EchoRequest.Fields().ByName("u64") fd_EchoRequest_str = md_EchoRequest.Fields().ByName("str") @@ -1210,7 +742,7 @@ func (x *EchoRequest) ProtoReflect() protoreflect.Message { } func (x *EchoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_query_proto_msgTypes[1] + mi := &file_testpbpulsar_query_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1473,75 +1005,75 @@ func (x *fastReflection_EchoRequest) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_EchoRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "testpb.EchoRequest.u32": + case "testpbpulsar.EchoRequest.u32": return x.U32 != uint32(0) - case "testpb.EchoRequest.u64": + case "testpbpulsar.EchoRequest.u64": return x.U64 != uint64(0) - case "testpb.EchoRequest.str": + case "testpbpulsar.EchoRequest.str": return x.Str != "" - case "testpb.EchoRequest.bz": + case "testpbpulsar.EchoRequest.bz": return len(x.Bz) != 0 - case "testpb.EchoRequest.timestamp": + case "testpbpulsar.EchoRequest.timestamp": return x.Timestamp != nil - case "testpb.EchoRequest.duration": + case "testpbpulsar.EchoRequest.duration": return x.Duration != nil - case "testpb.EchoRequest.i32": + case "testpbpulsar.EchoRequest.i32": return x.I32 != int32(0) - case "testpb.EchoRequest.i64": + case "testpbpulsar.EchoRequest.i64": return x.I64 != int64(0) - case "testpb.EchoRequest.a_bool": + case "testpbpulsar.EchoRequest.a_bool": return x.ABool != false - case "testpb.EchoRequest.an_enum": + case "testpbpulsar.EchoRequest.an_enum": return x.AnEnum != 0 - case "testpb.EchoRequest.a_message": + case "testpbpulsar.EchoRequest.a_message": return x.AMessage != nil - case "testpb.EchoRequest.a_coin": + case "testpbpulsar.EchoRequest.a_coin": return x.ACoin != nil - case "testpb.EchoRequest.an_address": + case "testpbpulsar.EchoRequest.an_address": return x.AnAddress != "" - case "testpb.EchoRequest.page": + case "testpbpulsar.EchoRequest.page": return x.Page != nil - case "testpb.EchoRequest.bools": + case "testpbpulsar.EchoRequest.bools": return len(x.Bools) != 0 - case "testpb.EchoRequest.uints": + case "testpbpulsar.EchoRequest.uints": return len(x.Uints) != 0 - case "testpb.EchoRequest.strings": + case "testpbpulsar.EchoRequest.strings": return len(x.Strings) != 0 - case "testpb.EchoRequest.enums": + case "testpbpulsar.EchoRequest.enums": return len(x.Enums) != 0 - case "testpb.EchoRequest.durations": + case "testpbpulsar.EchoRequest.durations": return len(x.Durations) != 0 - case "testpb.EchoRequest.some_messages": + case "testpbpulsar.EchoRequest.some_messages": return len(x.SomeMessages) != 0 - case "testpb.EchoRequest.positional1": + case "testpbpulsar.EchoRequest.positional1": return x.Positional1 != int32(0) - case "testpb.EchoRequest.positional2": + case "testpbpulsar.EchoRequest.positional2": return x.Positional2 != "" - case "testpb.EchoRequest.positional3_varargs": + case "testpbpulsar.EchoRequest.positional3_varargs": return len(x.Positional3Varargs) != 0 - case "testpb.EchoRequest.deprecated_field": + case "testpbpulsar.EchoRequest.deprecated_field": return x.DeprecatedField != "" - case "testpb.EchoRequest.shorthand_deprecated_field": + case "testpbpulsar.EchoRequest.shorthand_deprecated_field": return x.ShorthandDeprecatedField != "" - case "testpb.EchoRequest.hidden_bool": + case "testpbpulsar.EchoRequest.hidden_bool": return x.HiddenBool != false - case "testpb.EchoRequest.map_string_string": + case "testpbpulsar.EchoRequest.map_string_string": return len(x.MapStringString) != 0 - case "testpb.EchoRequest.map_string_uint32": + case "testpbpulsar.EchoRequest.map_string_uint32": return len(x.MapStringUint32) != 0 - case "testpb.EchoRequest.map_string_coin": + case "testpbpulsar.EchoRequest.map_string_coin": return len(x.MapStringCoin) != 0 - case "testpb.EchoRequest.a_validator_address": + case "testpbpulsar.EchoRequest.a_validator_address": return x.AValidatorAddress != "" - case "testpb.EchoRequest.a_consensus_address": + case "testpbpulsar.EchoRequest.a_consensus_address": return x.AConsensusAddress != "" - case "testpb.EchoRequest.coins": + case "testpbpulsar.EchoRequest.coins": return len(x.Coins) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.EchoRequest")) } - panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.EchoRequest does not contain field %s", fd.FullName())) } } @@ -1553,75 +1085,75 @@ func (x *fastReflection_EchoRequest) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EchoRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "testpb.EchoRequest.u32": + case "testpbpulsar.EchoRequest.u32": x.U32 = uint32(0) - case "testpb.EchoRequest.u64": + case "testpbpulsar.EchoRequest.u64": x.U64 = uint64(0) - case "testpb.EchoRequest.str": + case "testpbpulsar.EchoRequest.str": x.Str = "" - case "testpb.EchoRequest.bz": + case "testpbpulsar.EchoRequest.bz": x.Bz = nil - case "testpb.EchoRequest.timestamp": + case "testpbpulsar.EchoRequest.timestamp": x.Timestamp = nil - case "testpb.EchoRequest.duration": + case "testpbpulsar.EchoRequest.duration": x.Duration = nil - case "testpb.EchoRequest.i32": + case "testpbpulsar.EchoRequest.i32": x.I32 = int32(0) - case "testpb.EchoRequest.i64": + case "testpbpulsar.EchoRequest.i64": x.I64 = int64(0) - case "testpb.EchoRequest.a_bool": + case "testpbpulsar.EchoRequest.a_bool": x.ABool = false - case "testpb.EchoRequest.an_enum": + case "testpbpulsar.EchoRequest.an_enum": x.AnEnum = 0 - case "testpb.EchoRequest.a_message": + case "testpbpulsar.EchoRequest.a_message": x.AMessage = nil - case "testpb.EchoRequest.a_coin": + case "testpbpulsar.EchoRequest.a_coin": x.ACoin = nil - case "testpb.EchoRequest.an_address": + case "testpbpulsar.EchoRequest.an_address": x.AnAddress = "" - case "testpb.EchoRequest.page": + case "testpbpulsar.EchoRequest.page": x.Page = nil - case "testpb.EchoRequest.bools": + case "testpbpulsar.EchoRequest.bools": x.Bools = nil - case "testpb.EchoRequest.uints": + case "testpbpulsar.EchoRequest.uints": x.Uints = nil - case "testpb.EchoRequest.strings": + case "testpbpulsar.EchoRequest.strings": x.Strings = nil - case "testpb.EchoRequest.enums": + case "testpbpulsar.EchoRequest.enums": x.Enums = nil - case "testpb.EchoRequest.durations": + case "testpbpulsar.EchoRequest.durations": x.Durations = nil - case "testpb.EchoRequest.some_messages": + case "testpbpulsar.EchoRequest.some_messages": x.SomeMessages = nil - case "testpb.EchoRequest.positional1": + case "testpbpulsar.EchoRequest.positional1": x.Positional1 = int32(0) - case "testpb.EchoRequest.positional2": + case "testpbpulsar.EchoRequest.positional2": x.Positional2 = "" - case "testpb.EchoRequest.positional3_varargs": + case "testpbpulsar.EchoRequest.positional3_varargs": x.Positional3Varargs = nil - case "testpb.EchoRequest.deprecated_field": + case "testpbpulsar.EchoRequest.deprecated_field": x.DeprecatedField = "" - case "testpb.EchoRequest.shorthand_deprecated_field": + case "testpbpulsar.EchoRequest.shorthand_deprecated_field": x.ShorthandDeprecatedField = "" - case "testpb.EchoRequest.hidden_bool": + case "testpbpulsar.EchoRequest.hidden_bool": x.HiddenBool = false - case "testpb.EchoRequest.map_string_string": + case "testpbpulsar.EchoRequest.map_string_string": x.MapStringString = nil - case "testpb.EchoRequest.map_string_uint32": + case "testpbpulsar.EchoRequest.map_string_uint32": x.MapStringUint32 = nil - case "testpb.EchoRequest.map_string_coin": + case "testpbpulsar.EchoRequest.map_string_coin": x.MapStringCoin = nil - case "testpb.EchoRequest.a_validator_address": + case "testpbpulsar.EchoRequest.a_validator_address": x.AValidatorAddress = "" - case "testpb.EchoRequest.a_consensus_address": + case "testpbpulsar.EchoRequest.a_consensus_address": x.AConsensusAddress = "" - case "testpb.EchoRequest.coins": + case "testpbpulsar.EchoRequest.coins": x.Coins = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.EchoRequest")) } - panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.EchoRequest does not contain field %s", fd.FullName())) } } @@ -1633,130 +1165,130 @@ func (x *fastReflection_EchoRequest) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EchoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "testpb.EchoRequest.u32": + case "testpbpulsar.EchoRequest.u32": value := x.U32 return protoreflect.ValueOfUint32(value) - case "testpb.EchoRequest.u64": + case "testpbpulsar.EchoRequest.u64": value := x.U64 return protoreflect.ValueOfUint64(value) - case "testpb.EchoRequest.str": + case "testpbpulsar.EchoRequest.str": value := x.Str return protoreflect.ValueOfString(value) - case "testpb.EchoRequest.bz": + case "testpbpulsar.EchoRequest.bz": value := x.Bz return protoreflect.ValueOfBytes(value) - case "testpb.EchoRequest.timestamp": + case "testpbpulsar.EchoRequest.timestamp": value := x.Timestamp return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "testpb.EchoRequest.duration": + case "testpbpulsar.EchoRequest.duration": value := x.Duration return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "testpb.EchoRequest.i32": + case "testpbpulsar.EchoRequest.i32": value := x.I32 return protoreflect.ValueOfInt32(value) - case "testpb.EchoRequest.i64": + case "testpbpulsar.EchoRequest.i64": value := x.I64 return protoreflect.ValueOfInt64(value) - case "testpb.EchoRequest.a_bool": + case "testpbpulsar.EchoRequest.a_bool": value := x.ABool return protoreflect.ValueOfBool(value) - case "testpb.EchoRequest.an_enum": + case "testpbpulsar.EchoRequest.an_enum": value := x.AnEnum return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "testpb.EchoRequest.a_message": + case "testpbpulsar.EchoRequest.a_message": value := x.AMessage return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "testpb.EchoRequest.a_coin": + case "testpbpulsar.EchoRequest.a_coin": value := x.ACoin return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "testpb.EchoRequest.an_address": + case "testpbpulsar.EchoRequest.an_address": value := x.AnAddress return protoreflect.ValueOfString(value) - case "testpb.EchoRequest.page": + case "testpbpulsar.EchoRequest.page": value := x.Page return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "testpb.EchoRequest.bools": + case "testpbpulsar.EchoRequest.bools": if len(x.Bools) == 0 { return protoreflect.ValueOfList(&_EchoRequest_21_list{}) } listValue := &_EchoRequest_21_list{list: &x.Bools} return protoreflect.ValueOfList(listValue) - case "testpb.EchoRequest.uints": + case "testpbpulsar.EchoRequest.uints": if len(x.Uints) == 0 { return protoreflect.ValueOfList(&_EchoRequest_22_list{}) } listValue := &_EchoRequest_22_list{list: &x.Uints} return protoreflect.ValueOfList(listValue) - case "testpb.EchoRequest.strings": + case "testpbpulsar.EchoRequest.strings": if len(x.Strings) == 0 { return protoreflect.ValueOfList(&_EchoRequest_23_list{}) } listValue := &_EchoRequest_23_list{list: &x.Strings} return protoreflect.ValueOfList(listValue) - case "testpb.EchoRequest.enums": + case "testpbpulsar.EchoRequest.enums": if len(x.Enums) == 0 { return protoreflect.ValueOfList(&_EchoRequest_24_list{}) } listValue := &_EchoRequest_24_list{list: &x.Enums} return protoreflect.ValueOfList(listValue) - case "testpb.EchoRequest.durations": + case "testpbpulsar.EchoRequest.durations": if len(x.Durations) == 0 { return protoreflect.ValueOfList(&_EchoRequest_25_list{}) } listValue := &_EchoRequest_25_list{list: &x.Durations} return protoreflect.ValueOfList(listValue) - case "testpb.EchoRequest.some_messages": + case "testpbpulsar.EchoRequest.some_messages": if len(x.SomeMessages) == 0 { return protoreflect.ValueOfList(&_EchoRequest_26_list{}) } listValue := &_EchoRequest_26_list{list: &x.SomeMessages} return protoreflect.ValueOfList(listValue) - case "testpb.EchoRequest.positional1": + case "testpbpulsar.EchoRequest.positional1": value := x.Positional1 return protoreflect.ValueOfInt32(value) - case "testpb.EchoRequest.positional2": + case "testpbpulsar.EchoRequest.positional2": value := x.Positional2 return protoreflect.ValueOfString(value) - case "testpb.EchoRequest.positional3_varargs": + case "testpbpulsar.EchoRequest.positional3_varargs": if len(x.Positional3Varargs) == 0 { return protoreflect.ValueOfList(&_EchoRequest_29_list{}) } listValue := &_EchoRequest_29_list{list: &x.Positional3Varargs} return protoreflect.ValueOfList(listValue) - case "testpb.EchoRequest.deprecated_field": + case "testpbpulsar.EchoRequest.deprecated_field": value := x.DeprecatedField return protoreflect.ValueOfString(value) - case "testpb.EchoRequest.shorthand_deprecated_field": + case "testpbpulsar.EchoRequest.shorthand_deprecated_field": value := x.ShorthandDeprecatedField return protoreflect.ValueOfString(value) - case "testpb.EchoRequest.hidden_bool": + case "testpbpulsar.EchoRequest.hidden_bool": value := x.HiddenBool return protoreflect.ValueOfBool(value) - case "testpb.EchoRequest.map_string_string": + case "testpbpulsar.EchoRequest.map_string_string": if len(x.MapStringString) == 0 { return protoreflect.ValueOfMap(&_EchoRequest_33_map{}) } mapValue := &_EchoRequest_33_map{m: &x.MapStringString} return protoreflect.ValueOfMap(mapValue) - case "testpb.EchoRequest.map_string_uint32": + case "testpbpulsar.EchoRequest.map_string_uint32": if len(x.MapStringUint32) == 0 { return protoreflect.ValueOfMap(&_EchoRequest_34_map{}) } mapValue := &_EchoRequest_34_map{m: &x.MapStringUint32} return protoreflect.ValueOfMap(mapValue) - case "testpb.EchoRequest.map_string_coin": + case "testpbpulsar.EchoRequest.map_string_coin": if len(x.MapStringCoin) == 0 { return protoreflect.ValueOfMap(&_EchoRequest_35_map{}) } mapValue := &_EchoRequest_35_map{m: &x.MapStringCoin} return protoreflect.ValueOfMap(mapValue) - case "testpb.EchoRequest.a_validator_address": + case "testpbpulsar.EchoRequest.a_validator_address": value := x.AValidatorAddress return protoreflect.ValueOfString(value) - case "testpb.EchoRequest.a_consensus_address": + case "testpbpulsar.EchoRequest.a_consensus_address": value := x.AConsensusAddress return protoreflect.ValueOfString(value) - case "testpb.EchoRequest.coins": + case "testpbpulsar.EchoRequest.coins": if len(x.Coins) == 0 { return protoreflect.ValueOfList(&_EchoRequest_38_list{}) } @@ -1764,9 +1296,9 @@ func (x *fastReflection_EchoRequest) Get(descriptor protoreflect.FieldDescriptor return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.EchoRequest")) } - panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message testpbpulsar.EchoRequest does not contain field %s", descriptor.FullName())) } } @@ -1782,97 +1314,97 @@ func (x *fastReflection_EchoRequest) Get(descriptor protoreflect.FieldDescriptor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EchoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "testpb.EchoRequest.u32": + case "testpbpulsar.EchoRequest.u32": x.U32 = uint32(value.Uint()) - case "testpb.EchoRequest.u64": + case "testpbpulsar.EchoRequest.u64": x.U64 = value.Uint() - case "testpb.EchoRequest.str": + case "testpbpulsar.EchoRequest.str": x.Str = value.Interface().(string) - case "testpb.EchoRequest.bz": + case "testpbpulsar.EchoRequest.bz": x.Bz = value.Bytes() - case "testpb.EchoRequest.timestamp": + case "testpbpulsar.EchoRequest.timestamp": x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) - case "testpb.EchoRequest.duration": + case "testpbpulsar.EchoRequest.duration": x.Duration = value.Message().Interface().(*durationpb.Duration) - case "testpb.EchoRequest.i32": + case "testpbpulsar.EchoRequest.i32": x.I32 = int32(value.Int()) - case "testpb.EchoRequest.i64": + case "testpbpulsar.EchoRequest.i64": x.I64 = value.Int() - case "testpb.EchoRequest.a_bool": + case "testpbpulsar.EchoRequest.a_bool": x.ABool = value.Bool() - case "testpb.EchoRequest.an_enum": + case "testpbpulsar.EchoRequest.an_enum": x.AnEnum = (Enum)(value.Enum()) - case "testpb.EchoRequest.a_message": + case "testpbpulsar.EchoRequest.a_message": x.AMessage = value.Message().Interface().(*AMessage) - case "testpb.EchoRequest.a_coin": + case "testpbpulsar.EchoRequest.a_coin": x.ACoin = value.Message().Interface().(*v1beta1.Coin) - case "testpb.EchoRequest.an_address": + case "testpbpulsar.EchoRequest.an_address": x.AnAddress = value.Interface().(string) - case "testpb.EchoRequest.page": + case "testpbpulsar.EchoRequest.page": x.Page = value.Message().Interface().(*v1beta11.PageRequest) - case "testpb.EchoRequest.bools": + case "testpbpulsar.EchoRequest.bools": lv := value.List() clv := lv.(*_EchoRequest_21_list) x.Bools = *clv.list - case "testpb.EchoRequest.uints": + case "testpbpulsar.EchoRequest.uints": lv := value.List() clv := lv.(*_EchoRequest_22_list) x.Uints = *clv.list - case "testpb.EchoRequest.strings": + case "testpbpulsar.EchoRequest.strings": lv := value.List() clv := lv.(*_EchoRequest_23_list) x.Strings = *clv.list - case "testpb.EchoRequest.enums": + case "testpbpulsar.EchoRequest.enums": lv := value.List() clv := lv.(*_EchoRequest_24_list) x.Enums = *clv.list - case "testpb.EchoRequest.durations": + case "testpbpulsar.EchoRequest.durations": lv := value.List() clv := lv.(*_EchoRequest_25_list) x.Durations = *clv.list - case "testpb.EchoRequest.some_messages": + case "testpbpulsar.EchoRequest.some_messages": lv := value.List() clv := lv.(*_EchoRequest_26_list) x.SomeMessages = *clv.list - case "testpb.EchoRequest.positional1": + case "testpbpulsar.EchoRequest.positional1": x.Positional1 = int32(value.Int()) - case "testpb.EchoRequest.positional2": + case "testpbpulsar.EchoRequest.positional2": x.Positional2 = value.Interface().(string) - case "testpb.EchoRequest.positional3_varargs": + case "testpbpulsar.EchoRequest.positional3_varargs": lv := value.List() clv := lv.(*_EchoRequest_29_list) x.Positional3Varargs = *clv.list - case "testpb.EchoRequest.deprecated_field": + case "testpbpulsar.EchoRequest.deprecated_field": x.DeprecatedField = value.Interface().(string) - case "testpb.EchoRequest.shorthand_deprecated_field": + case "testpbpulsar.EchoRequest.shorthand_deprecated_field": x.ShorthandDeprecatedField = value.Interface().(string) - case "testpb.EchoRequest.hidden_bool": + case "testpbpulsar.EchoRequest.hidden_bool": x.HiddenBool = value.Bool() - case "testpb.EchoRequest.map_string_string": + case "testpbpulsar.EchoRequest.map_string_string": mv := value.Map() cmv := mv.(*_EchoRequest_33_map) x.MapStringString = *cmv.m - case "testpb.EchoRequest.map_string_uint32": + case "testpbpulsar.EchoRequest.map_string_uint32": mv := value.Map() cmv := mv.(*_EchoRequest_34_map) x.MapStringUint32 = *cmv.m - case "testpb.EchoRequest.map_string_coin": + case "testpbpulsar.EchoRequest.map_string_coin": mv := value.Map() cmv := mv.(*_EchoRequest_35_map) x.MapStringCoin = *cmv.m - case "testpb.EchoRequest.a_validator_address": + case "testpbpulsar.EchoRequest.a_validator_address": x.AValidatorAddress = value.Interface().(string) - case "testpb.EchoRequest.a_consensus_address": + case "testpbpulsar.EchoRequest.a_consensus_address": x.AConsensusAddress = value.Interface().(string) - case "testpb.EchoRequest.coins": + case "testpbpulsar.EchoRequest.coins": lv := value.List() clv := lv.(*_EchoRequest_38_list) x.Coins = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.EchoRequest")) } - panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.EchoRequest does not contain field %s", fd.FullName())) } } @@ -1888,134 +1420,134 @@ func (x *fastReflection_EchoRequest) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EchoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "testpb.EchoRequest.timestamp": + case "testpbpulsar.EchoRequest.timestamp": if x.Timestamp == nil { x.Timestamp = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - case "testpb.EchoRequest.duration": + case "testpbpulsar.EchoRequest.duration": if x.Duration == nil { x.Duration = new(durationpb.Duration) } return protoreflect.ValueOfMessage(x.Duration.ProtoReflect()) - case "testpb.EchoRequest.a_message": + case "testpbpulsar.EchoRequest.a_message": if x.AMessage == nil { x.AMessage = new(AMessage) } return protoreflect.ValueOfMessage(x.AMessage.ProtoReflect()) - case "testpb.EchoRequest.a_coin": + case "testpbpulsar.EchoRequest.a_coin": if x.ACoin == nil { x.ACoin = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.ACoin.ProtoReflect()) - case "testpb.EchoRequest.page": + case "testpbpulsar.EchoRequest.page": if x.Page == nil { x.Page = new(v1beta11.PageRequest) } return protoreflect.ValueOfMessage(x.Page.ProtoReflect()) - case "testpb.EchoRequest.bools": + case "testpbpulsar.EchoRequest.bools": if x.Bools == nil { x.Bools = []bool{} } value := &_EchoRequest_21_list{list: &x.Bools} return protoreflect.ValueOfList(value) - case "testpb.EchoRequest.uints": + case "testpbpulsar.EchoRequest.uints": if x.Uints == nil { x.Uints = []uint32{} } value := &_EchoRequest_22_list{list: &x.Uints} return protoreflect.ValueOfList(value) - case "testpb.EchoRequest.strings": + case "testpbpulsar.EchoRequest.strings": if x.Strings == nil { x.Strings = []string{} } value := &_EchoRequest_23_list{list: &x.Strings} return protoreflect.ValueOfList(value) - case "testpb.EchoRequest.enums": + case "testpbpulsar.EchoRequest.enums": if x.Enums == nil { x.Enums = []Enum{} } value := &_EchoRequest_24_list{list: &x.Enums} return protoreflect.ValueOfList(value) - case "testpb.EchoRequest.durations": + case "testpbpulsar.EchoRequest.durations": if x.Durations == nil { x.Durations = []*durationpb.Duration{} } value := &_EchoRequest_25_list{list: &x.Durations} return protoreflect.ValueOfList(value) - case "testpb.EchoRequest.some_messages": + case "testpbpulsar.EchoRequest.some_messages": if x.SomeMessages == nil { x.SomeMessages = []*AMessage{} } value := &_EchoRequest_26_list{list: &x.SomeMessages} return protoreflect.ValueOfList(value) - case "testpb.EchoRequest.positional3_varargs": + case "testpbpulsar.EchoRequest.positional3_varargs": if x.Positional3Varargs == nil { x.Positional3Varargs = []*v1beta1.Coin{} } value := &_EchoRequest_29_list{list: &x.Positional3Varargs} return protoreflect.ValueOfList(value) - case "testpb.EchoRequest.map_string_string": + case "testpbpulsar.EchoRequest.map_string_string": if x.MapStringString == nil { x.MapStringString = make(map[string]string) } value := &_EchoRequest_33_map{m: &x.MapStringString} return protoreflect.ValueOfMap(value) - case "testpb.EchoRequest.map_string_uint32": + case "testpbpulsar.EchoRequest.map_string_uint32": if x.MapStringUint32 == nil { x.MapStringUint32 = make(map[string]uint32) } value := &_EchoRequest_34_map{m: &x.MapStringUint32} return protoreflect.ValueOfMap(value) - case "testpb.EchoRequest.map_string_coin": + case "testpbpulsar.EchoRequest.map_string_coin": if x.MapStringCoin == nil { x.MapStringCoin = make(map[string]*v1beta1.Coin) } value := &_EchoRequest_35_map{m: &x.MapStringCoin} return protoreflect.ValueOfMap(value) - case "testpb.EchoRequest.coins": + case "testpbpulsar.EchoRequest.coins": if x.Coins == nil { x.Coins = []*v1beta1.Coin{} } value := &_EchoRequest_38_list{list: &x.Coins} return protoreflect.ValueOfList(value) - case "testpb.EchoRequest.u32": - panic(fmt.Errorf("field u32 of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.u64": - panic(fmt.Errorf("field u64 of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.str": - panic(fmt.Errorf("field str of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.bz": - panic(fmt.Errorf("field bz of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.i32": - panic(fmt.Errorf("field i32 of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.i64": - panic(fmt.Errorf("field i64 of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.a_bool": - panic(fmt.Errorf("field a_bool of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.an_enum": - panic(fmt.Errorf("field an_enum of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.an_address": - panic(fmt.Errorf("field an_address of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.positional1": - panic(fmt.Errorf("field positional1 of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.positional2": - panic(fmt.Errorf("field positional2 of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.deprecated_field": - panic(fmt.Errorf("field deprecated_field of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.shorthand_deprecated_field": - panic(fmt.Errorf("field shorthand_deprecated_field of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.hidden_bool": - panic(fmt.Errorf("field hidden_bool of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.a_validator_address": - panic(fmt.Errorf("field a_validator_address of message testpb.EchoRequest is not mutable")) - case "testpb.EchoRequest.a_consensus_address": - panic(fmt.Errorf("field a_consensus_address of message testpb.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.u32": + panic(fmt.Errorf("field u32 of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.u64": + panic(fmt.Errorf("field u64 of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.str": + panic(fmt.Errorf("field str of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.bz": + panic(fmt.Errorf("field bz of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.i32": + panic(fmt.Errorf("field i32 of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.i64": + panic(fmt.Errorf("field i64 of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.a_bool": + panic(fmt.Errorf("field a_bool of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.an_enum": + panic(fmt.Errorf("field an_enum of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.an_address": + panic(fmt.Errorf("field an_address of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.positional1": + panic(fmt.Errorf("field positional1 of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.positional2": + panic(fmt.Errorf("field positional2 of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.deprecated_field": + panic(fmt.Errorf("field deprecated_field of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.shorthand_deprecated_field": + panic(fmt.Errorf("field shorthand_deprecated_field of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.hidden_bool": + panic(fmt.Errorf("field hidden_bool of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.a_validator_address": + panic(fmt.Errorf("field a_validator_address of message testpbpulsar.EchoRequest is not mutable")) + case "testpbpulsar.EchoRequest.a_consensus_address": + panic(fmt.Errorf("field a_consensus_address of message testpbpulsar.EchoRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.EchoRequest")) } - panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.EchoRequest does not contain field %s", fd.FullName())) } } @@ -2024,91 +1556,91 @@ func (x *fastReflection_EchoRequest) Mutable(fd protoreflect.FieldDescriptor) pr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EchoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "testpb.EchoRequest.u32": + case "testpbpulsar.EchoRequest.u32": return protoreflect.ValueOfUint32(uint32(0)) - case "testpb.EchoRequest.u64": + case "testpbpulsar.EchoRequest.u64": return protoreflect.ValueOfUint64(uint64(0)) - case "testpb.EchoRequest.str": + case "testpbpulsar.EchoRequest.str": return protoreflect.ValueOfString("") - case "testpb.EchoRequest.bz": + case "testpbpulsar.EchoRequest.bz": return protoreflect.ValueOfBytes(nil) - case "testpb.EchoRequest.timestamp": + case "testpbpulsar.EchoRequest.timestamp": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "testpb.EchoRequest.duration": + case "testpbpulsar.EchoRequest.duration": m := new(durationpb.Duration) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "testpb.EchoRequest.i32": + case "testpbpulsar.EchoRequest.i32": return protoreflect.ValueOfInt32(int32(0)) - case "testpb.EchoRequest.i64": + case "testpbpulsar.EchoRequest.i64": return protoreflect.ValueOfInt64(int64(0)) - case "testpb.EchoRequest.a_bool": + case "testpbpulsar.EchoRequest.a_bool": return protoreflect.ValueOfBool(false) - case "testpb.EchoRequest.an_enum": + case "testpbpulsar.EchoRequest.an_enum": return protoreflect.ValueOfEnum(0) - case "testpb.EchoRequest.a_message": + case "testpbpulsar.EchoRequest.a_message": m := new(AMessage) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "testpb.EchoRequest.a_coin": + case "testpbpulsar.EchoRequest.a_coin": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "testpb.EchoRequest.an_address": + case "testpbpulsar.EchoRequest.an_address": return protoreflect.ValueOfString("") - case "testpb.EchoRequest.page": + case "testpbpulsar.EchoRequest.page": m := new(v1beta11.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "testpb.EchoRequest.bools": + case "testpbpulsar.EchoRequest.bools": list := []bool{} return protoreflect.ValueOfList(&_EchoRequest_21_list{list: &list}) - case "testpb.EchoRequest.uints": + case "testpbpulsar.EchoRequest.uints": list := []uint32{} return protoreflect.ValueOfList(&_EchoRequest_22_list{list: &list}) - case "testpb.EchoRequest.strings": + case "testpbpulsar.EchoRequest.strings": list := []string{} return protoreflect.ValueOfList(&_EchoRequest_23_list{list: &list}) - case "testpb.EchoRequest.enums": + case "testpbpulsar.EchoRequest.enums": list := []Enum{} return protoreflect.ValueOfList(&_EchoRequest_24_list{list: &list}) - case "testpb.EchoRequest.durations": + case "testpbpulsar.EchoRequest.durations": list := []*durationpb.Duration{} return protoreflect.ValueOfList(&_EchoRequest_25_list{list: &list}) - case "testpb.EchoRequest.some_messages": + case "testpbpulsar.EchoRequest.some_messages": list := []*AMessage{} return protoreflect.ValueOfList(&_EchoRequest_26_list{list: &list}) - case "testpb.EchoRequest.positional1": + case "testpbpulsar.EchoRequest.positional1": return protoreflect.ValueOfInt32(int32(0)) - case "testpb.EchoRequest.positional2": + case "testpbpulsar.EchoRequest.positional2": return protoreflect.ValueOfString("") - case "testpb.EchoRequest.positional3_varargs": + case "testpbpulsar.EchoRequest.positional3_varargs": list := []*v1beta1.Coin{} return protoreflect.ValueOfList(&_EchoRequest_29_list{list: &list}) - case "testpb.EchoRequest.deprecated_field": + case "testpbpulsar.EchoRequest.deprecated_field": return protoreflect.ValueOfString("") - case "testpb.EchoRequest.shorthand_deprecated_field": + case "testpbpulsar.EchoRequest.shorthand_deprecated_field": return protoreflect.ValueOfString("") - case "testpb.EchoRequest.hidden_bool": + case "testpbpulsar.EchoRequest.hidden_bool": return protoreflect.ValueOfBool(false) - case "testpb.EchoRequest.map_string_string": + case "testpbpulsar.EchoRequest.map_string_string": m := make(map[string]string) return protoreflect.ValueOfMap(&_EchoRequest_33_map{m: &m}) - case "testpb.EchoRequest.map_string_uint32": + case "testpbpulsar.EchoRequest.map_string_uint32": m := make(map[string]uint32) return protoreflect.ValueOfMap(&_EchoRequest_34_map{m: &m}) - case "testpb.EchoRequest.map_string_coin": + case "testpbpulsar.EchoRequest.map_string_coin": m := make(map[string]*v1beta1.Coin) return protoreflect.ValueOfMap(&_EchoRequest_35_map{m: &m}) - case "testpb.EchoRequest.a_validator_address": + case "testpbpulsar.EchoRequest.a_validator_address": return protoreflect.ValueOfString("") - case "testpb.EchoRequest.a_consensus_address": + case "testpbpulsar.EchoRequest.a_consensus_address": return protoreflect.ValueOfString("") - case "testpb.EchoRequest.coins": + case "testpbpulsar.EchoRequest.coins": list := []*v1beta1.Coin{} return protoreflect.ValueOfList(&_EchoRequest_38_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.EchoRequest")) } - panic(fmt.Errorf("message testpb.EchoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.EchoRequest does not contain field %s", fd.FullName())) } } @@ -2118,7 +1650,7 @@ func (x *fastReflection_EchoRequest) NewField(fd protoreflect.FieldDescriptor) p func (x *fastReflection_EchoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in testpb.EchoRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in testpbpulsar.EchoRequest", d.FullName())) } panic("unreachable") } @@ -4304,14 +3836,482 @@ func (x *fastReflection_EchoRequest) ProtoMethods() *protoiface.Methods { } } +var ( + md_AMessage protoreflect.MessageDescriptor + fd_AMessage_bar protoreflect.FieldDescriptor + fd_AMessage_baz protoreflect.FieldDescriptor +) + +func init() { + file_testpbpulsar_query_proto_init() + md_AMessage = File_testpbpulsar_query_proto.Messages().ByName("AMessage") + fd_AMessage_bar = md_AMessage.Fields().ByName("bar") + fd_AMessage_baz = md_AMessage.Fields().ByName("baz") +} + +var _ protoreflect.Message = (*fastReflection_AMessage)(nil) + +type fastReflection_AMessage AMessage + +func (x *AMessage) ProtoReflect() protoreflect.Message { + return (*fastReflection_AMessage)(x) +} + +func (x *AMessage) slowProtoReflect() protoreflect.Message { + mi := &file_testpbpulsar_query_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) +} + +var _fastReflection_AMessage_messageType fastReflection_AMessage_messageType +var _ protoreflect.MessageType = fastReflection_AMessage_messageType{} + +type fastReflection_AMessage_messageType struct{} + +func (x fastReflection_AMessage_messageType) Zero() protoreflect.Message { + return (*fastReflection_AMessage)(nil) +} +func (x fastReflection_AMessage_messageType) New() protoreflect.Message { + return new(fastReflection_AMessage) +} +func (x fastReflection_AMessage_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_AMessage +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_AMessage) Descriptor() protoreflect.MessageDescriptor { + return md_AMessage +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_AMessage) Type() protoreflect.MessageType { + return _fastReflection_AMessage_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_AMessage) New() protoreflect.Message { + return new(fastReflection_AMessage) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_AMessage) Interface() protoreflect.ProtoMessage { + return (*AMessage)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_AMessage) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Bar != "" { + value := protoreflect.ValueOfString(x.Bar) + if !f(fd_AMessage_bar, value) { + return + } + } + if x.Baz != int32(0) { + value := protoreflect.ValueOfInt32(x.Baz) + if !f(fd_AMessage_baz, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_AMessage) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "testpbpulsar.AMessage.bar": + return x.Bar != "" + case "testpbpulsar.AMessage.baz": + return x.Baz != int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.AMessage")) + } + panic(fmt.Errorf("message testpbpulsar.AMessage does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_AMessage) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "testpbpulsar.AMessage.bar": + x.Bar = "" + case "testpbpulsar.AMessage.baz": + x.Baz = int32(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.AMessage")) + } + panic(fmt.Errorf("message testpbpulsar.AMessage does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_AMessage) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "testpbpulsar.AMessage.bar": + value := x.Bar + return protoreflect.ValueOfString(value) + case "testpbpulsar.AMessage.baz": + value := x.Baz + return protoreflect.ValueOfInt32(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.AMessage")) + } + panic(fmt.Errorf("message testpbpulsar.AMessage does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_AMessage) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "testpbpulsar.AMessage.bar": + x.Bar = value.Interface().(string) + case "testpbpulsar.AMessage.baz": + x.Baz = int32(value.Int()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.AMessage")) + } + panic(fmt.Errorf("message testpbpulsar.AMessage does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_AMessage) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "testpbpulsar.AMessage.bar": + panic(fmt.Errorf("field bar of message testpbpulsar.AMessage is not mutable")) + case "testpbpulsar.AMessage.baz": + panic(fmt.Errorf("field baz of message testpbpulsar.AMessage is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.AMessage")) + } + panic(fmt.Errorf("message testpbpulsar.AMessage does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_AMessage) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "testpbpulsar.AMessage.bar": + return protoreflect.ValueOfString("") + case "testpbpulsar.AMessage.baz": + return protoreflect.ValueOfInt32(int32(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.AMessage")) + } + panic(fmt.Errorf("message testpbpulsar.AMessage does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_AMessage) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in testpbpulsar.AMessage", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_AMessage) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_AMessage) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_AMessage) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_AMessage) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*AMessage) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Bar) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Baz != 0 { + n += 1 + runtime.Sov(uint64(x.Baz)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*AMessage) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Baz != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Baz)) + i-- + dAtA[i] = 0x10 + } + if len(x.Bar) > 0 { + i -= len(x.Bar) + copy(dAtA[i:], x.Bar) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Bar))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*AMessage) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AMessage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AMessage: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bar", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Bar = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Baz", wireType) + } + x.Baz = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Baz |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + var ( md_EchoResponse protoreflect.MessageDescriptor fd_EchoResponse_request protoreflect.FieldDescriptor ) func init() { - file_testpb_query_proto_init() - md_EchoResponse = File_testpb_query_proto.Messages().ByName("EchoResponse") + file_testpbpulsar_query_proto_init() + md_EchoResponse = File_testpbpulsar_query_proto.Messages().ByName("EchoResponse") fd_EchoResponse_request = md_EchoResponse.Fields().ByName("request") } @@ -4324,7 +4324,7 @@ func (x *EchoResponse) ProtoReflect() protoreflect.Message { } func (x *EchoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_testpb_query_proto_msgTypes[2] + mi := &file_testpbpulsar_query_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4401,13 +4401,13 @@ func (x *fastReflection_EchoResponse) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_EchoResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "testpb.EchoResponse.request": + case "testpbpulsar.EchoResponse.request": return x.Request != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.EchoResponse")) } - panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.EchoResponse does not contain field %s", fd.FullName())) } } @@ -4419,13 +4419,13 @@ func (x *fastReflection_EchoResponse) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EchoResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "testpb.EchoResponse.request": + case "testpbpulsar.EchoResponse.request": x.Request = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.EchoResponse")) } - panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.EchoResponse does not contain field %s", fd.FullName())) } } @@ -4437,14 +4437,14 @@ func (x *fastReflection_EchoResponse) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EchoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "testpb.EchoResponse.request": + case "testpbpulsar.EchoResponse.request": value := x.Request return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.EchoResponse")) } - panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message testpbpulsar.EchoResponse does not contain field %s", descriptor.FullName())) } } @@ -4460,13 +4460,13 @@ func (x *fastReflection_EchoResponse) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EchoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "testpb.EchoResponse.request": + case "testpbpulsar.EchoResponse.request": x.Request = value.Message().Interface().(*EchoRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.EchoResponse")) } - panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.EchoResponse does not contain field %s", fd.FullName())) } } @@ -4482,16 +4482,16 @@ func (x *fastReflection_EchoResponse) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EchoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "testpb.EchoResponse.request": + case "testpbpulsar.EchoResponse.request": if x.Request == nil { x.Request = new(EchoRequest) } return protoreflect.ValueOfMessage(x.Request.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.EchoResponse")) } - panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.EchoResponse does not contain field %s", fd.FullName())) } } @@ -4500,14 +4500,14 @@ func (x *fastReflection_EchoResponse) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EchoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "testpb.EchoResponse.request": + case "testpbpulsar.EchoResponse.request": m := new(EchoRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: testpb.EchoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: testpbpulsar.EchoResponse")) } - panic(fmt.Errorf("message testpb.EchoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message testpbpulsar.EchoResponse does not contain field %s", fd.FullName())) } } @@ -4517,7 +4517,7 @@ func (x *fastReflection_EchoResponse) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_EchoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in testpb.EchoResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in testpbpulsar.EchoResponse", d.FullName())) } panic("unreachable") } @@ -4743,7 +4743,7 @@ func (x *fastReflection_EchoResponse) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: testpb/query.proto +// source: testpbpulsar/query.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -4791,11 +4791,11 @@ func (x Enum) String() string { } func (Enum) Descriptor() protoreflect.EnumDescriptor { - return file_testpb_query_proto_enumTypes[0].Descriptor() + return file_testpbpulsar_query_proto_enumTypes[0].Descriptor() } func (Enum) Type() protoreflect.EnumType { - return &file_testpb_query_proto_enumTypes[0] + return &file_testpbpulsar_query_proto_enumTypes[0] } func (x Enum) Number() protoreflect.EnumNumber { @@ -4804,50 +4804,7 @@ func (x Enum) Number() protoreflect.EnumNumber { // Deprecated: Use Enum.Descriptor instead. func (Enum) EnumDescriptor() ([]byte, []int) { - return file_testpb_query_proto_rawDescGZIP(), []int{0} -} - -type AMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Bar string `protobuf:"bytes,1,opt,name=bar,proto3" json:"bar,omitempty"` - Baz int32 `protobuf:"varint,2,opt,name=baz,proto3" json:"baz,omitempty"` -} - -func (x *AMessage) Reset() { - *x = AMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_testpb_query_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AMessage) ProtoMessage() {} - -// Deprecated: Use AMessage.ProtoReflect.Descriptor instead. -func (*AMessage) Descriptor() ([]byte, []int) { - return file_testpb_query_proto_rawDescGZIP(), []int{0} -} - -func (x *AMessage) GetBar() string { - if x != nil { - return x.Bar - } - return "" -} - -func (x *AMessage) GetBaz() int32 { - if x != nil { - return x.Baz - } - return 0 + return file_testpbpulsar_query_proto_rawDescGZIP(), []int{0} } type EchoRequest struct { @@ -4865,7 +4822,7 @@ type EchoRequest struct { I32 int32 `protobuf:"varint,7,opt,name=i32,proto3" json:"i32,omitempty"` I64 int64 `protobuf:"varint,10,opt,name=i64,proto3" json:"i64,omitempty"` ABool bool `protobuf:"varint,15,opt,name=a_bool,json=aBool,proto3" json:"a_bool,omitempty"` - AnEnum Enum `protobuf:"varint,16,opt,name=an_enum,json=anEnum,proto3,enum=testpb.Enum" json:"an_enum,omitempty"` + AnEnum Enum `protobuf:"varint,16,opt,name=an_enum,json=anEnum,proto3,enum=testpbpulsar.Enum" json:"an_enum,omitempty"` AMessage *AMessage `protobuf:"bytes,17,opt,name=a_message,json=aMessage,proto3" json:"a_message,omitempty"` ACoin *v1beta1.Coin `protobuf:"bytes,18,opt,name=a_coin,json=aCoin,proto3" json:"a_coin,omitempty"` AnAddress string `protobuf:"bytes,19,opt,name=an_address,json=anAddress,proto3" json:"an_address,omitempty"` @@ -4873,7 +4830,7 @@ type EchoRequest struct { Bools []bool `protobuf:"varint,21,rep,packed,name=bools,proto3" json:"bools,omitempty"` Uints []uint32 `protobuf:"varint,22,rep,packed,name=uints,proto3" json:"uints,omitempty"` Strings []string `protobuf:"bytes,23,rep,name=strings,proto3" json:"strings,omitempty"` - Enums []Enum `protobuf:"varint,24,rep,packed,name=enums,proto3,enum=testpb.Enum" json:"enums,omitempty"` + Enums []Enum `protobuf:"varint,24,rep,packed,name=enums,proto3,enum=testpbpulsar.Enum" json:"enums,omitempty"` Durations []*durationpb.Duration `protobuf:"bytes,25,rep,name=durations,proto3" json:"durations,omitempty"` SomeMessages []*AMessage `protobuf:"bytes,26,rep,name=some_messages,json=someMessages,proto3" json:"some_messages,omitempty"` Positional1 int32 `protobuf:"varint,27,opt,name=positional1,proto3" json:"positional1,omitempty"` @@ -4893,7 +4850,7 @@ type EchoRequest struct { func (x *EchoRequest) Reset() { *x = EchoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_testpb_query_proto_msgTypes[1] + mi := &file_testpbpulsar_query_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4907,7 +4864,7 @@ func (*EchoRequest) ProtoMessage() {} // Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead. func (*EchoRequest) Descriptor() ([]byte, []int) { - return file_testpb_query_proto_rawDescGZIP(), []int{1} + return file_testpbpulsar_query_proto_rawDescGZIP(), []int{0} } func (x *EchoRequest) GetU32() uint32 { @@ -5134,6 +5091,49 @@ func (x *EchoRequest) GetCoins() []*v1beta1.Coin { return nil } +type AMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bar string `protobuf:"bytes,1,opt,name=bar,proto3" json:"bar,omitempty"` + Baz int32 `protobuf:"varint,2,opt,name=baz,proto3" json:"baz,omitempty"` +} + +func (x *AMessage) Reset() { + *x = AMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_testpbpulsar_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AMessage) ProtoMessage() {} + +// Deprecated: Use AMessage.ProtoReflect.Descriptor instead. +func (*AMessage) Descriptor() ([]byte, []int) { + return file_testpbpulsar_query_proto_rawDescGZIP(), []int{1} +} + +func (x *AMessage) GetBar() string { + if x != nil { + return x.Bar + } + return "" +} + +func (x *AMessage) GetBaz() int32 { + if x != nil { + return x.Baz + } + return 0 +} + type EchoResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -5145,7 +5145,7 @@ type EchoResponse struct { func (x *EchoResponse) Reset() { *x = EchoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_testpb_query_proto_msgTypes[2] + mi := &file_testpbpulsar_query_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5159,7 +5159,7 @@ func (*EchoResponse) ProtoMessage() {} // Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead. func (*EchoResponse) Descriptor() ([]byte, []int) { - return file_testpb_query_proto_rawDescGZIP(), []int{2} + return file_testpbpulsar_query_proto_rawDescGZIP(), []int{2} } func (x *EchoResponse) GetRequest() *EchoRequest { @@ -5169,203 +5169,209 @@ func (x *EchoResponse) GetRequest() *EchoRequest { return nil } -var File_testpb_query_proto protoreflect.FileDescriptor +var File_testpbpulsar_query_proto protoreflect.FileDescriptor -var file_testpb_query_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x1a, 0x1f, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, - 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2e, 0x0a, 0x08, 0x41, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x62, - 0x61, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x7a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x03, 0x62, 0x61, 0x7a, 0x22, 0xa8, 0x0d, 0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x03, 0x75, 0x33, 0x32, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x36, 0x34, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x03, 0x75, 0x36, 0x34, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x62, 0x7a, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x62, 0x7a, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x69, - 0x33, 0x32, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x69, 0x33, 0x32, 0x12, 0x10, 0x0a, - 0x03, 0x69, 0x36, 0x34, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x69, 0x36, 0x34, 0x12, - 0x15, 0x0a, 0x06, 0x61, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x05, 0x61, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x25, 0x0a, 0x07, 0x61, 0x6e, 0x5f, 0x65, 0x6e, 0x75, - 0x6d, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, - 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x61, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x2d, 0x0a, - 0x09, 0x61, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x41, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x52, 0x08, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x06, - 0x61, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x61, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x37, - 0x0a, 0x0a, 0x61, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x13, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x6e, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3a, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, - 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, - 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x70, - 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x15, 0x20, 0x03, - 0x28, 0x08, 0x52, 0x05, 0x62, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x69, 0x6e, - 0x74, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x69, 0x6e, 0x74, 0x73, 0x12, - 0x18, 0x0a, 0x07, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x07, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x22, 0x0a, 0x05, 0x65, 0x6e, 0x75, - 0x6d, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, - 0x62, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x12, 0x37, 0x0a, - 0x09, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x19, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x0a, 0x0d, 0x73, 0x6f, 0x6d, 0x65, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, - 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x41, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, - 0x0c, 0x73, 0x6f, 0x6d, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x20, 0x0a, - 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x31, 0x18, 0x1b, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x31, 0x12, - 0x20, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x32, 0x18, 0x1c, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, - 0x32, 0x12, 0x4a, 0x0a, 0x13, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x33, - 0x5f, 0x76, 0x61, 0x72, 0x61, 0x72, 0x67, 0x73, 0x18, 0x1d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x12, 0x70, 0x6f, 0x73, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x33, 0x56, 0x61, 0x72, 0x61, 0x72, 0x67, 0x73, 0x12, 0x29, 0x0a, - 0x10, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, - 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, - 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x3c, 0x0a, 0x1a, 0x73, 0x68, 0x6f, 0x72, - 0x74, 0x68, 0x61, 0x6e, 0x64, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x73, 0x68, - 0x6f, 0x72, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, - 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, - 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x20, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x68, 0x69, 0x64, - 0x64, 0x65, 0x6e, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x54, 0x0a, 0x11, 0x6d, 0x61, 0x70, 0x5f, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x21, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x63, 0x68, 0x6f, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x6d, 0x61, - 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x54, 0x0a, - 0x11, 0x6d, 0x61, 0x70, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x75, 0x69, 0x6e, 0x74, - 0x33, 0x32, 0x18, 0x22, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, - 0x62, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x61, +var file_testpbpulsar_query_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2f, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, + 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xd2, 0x0d, 0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x10, 0x0a, 0x03, 0x75, 0x33, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x75, + 0x33, 0x32, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x36, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x03, 0x75, 0x36, 0x34, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x62, 0x7a, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x02, 0x62, 0x7a, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x33, 0x32, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x69, 0x33, 0x32, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x36, 0x34, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x69, 0x36, 0x34, 0x12, 0x15, 0x0a, 0x06, 0x61, + 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x42, 0x6f, + 0x6f, 0x6c, 0x12, 0x2b, 0x0a, 0x07, 0x61, 0x6e, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x10, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, + 0x61, 0x72, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x61, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, + 0x33, 0x0a, 0x09, 0x61, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x11, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, + 0x72, 0x2e, 0x41, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x61, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x61, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x12, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, + 0x05, 0x61, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x37, 0x0a, 0x0a, 0x61, 0x6e, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x3a, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, + 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x08, 0x52, 0x05, 0x62, 0x6f, 0x6f, 0x6c, + 0x73, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x0d, + 0x52, 0x05, 0x75, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x73, 0x12, 0x28, 0x0a, 0x05, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x0e, + 0x32, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, + 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x65, 0x6e, 0x75, 0x6d, 0x73, 0x12, 0x37, 0x0a, 0x09, 0x64, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x19, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3b, 0x0a, 0x0d, 0x73, 0x6f, 0x6d, 0x65, 0x5f, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x41, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x52, 0x0c, 0x73, 0x6f, 0x6d, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x31, + 0x18, 0x1b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x31, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, + 0x6c, 0x32, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x32, 0x12, 0x4a, 0x0a, 0x13, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x33, 0x5f, 0x76, 0x61, 0x72, 0x61, 0x72, 0x67, 0x73, 0x18, 0x1d, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x12, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x33, 0x56, 0x61, 0x72, 0x61, 0x72, 0x67, + 0x73, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x3c, 0x0a, 0x1a, + 0x73, 0x68, 0x6f, 0x72, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x18, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x68, 0x61, 0x6e, 0x64, 0x44, 0x65, 0x70, 0x72, 0x65, + 0x63, 0x61, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x69, + 0x64, 0x64, 0x65, 0x6e, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x20, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0a, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x5a, 0x0a, 0x11, 0x6d, + 0x61, 0x70, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x18, 0x21, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, + 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x2e, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x6d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x5a, 0x0a, 0x11, 0x6d, 0x61, 0x70, 0x5f, 0x73, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x22, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, + 0x72, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x6d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x55, 0x69, 0x6e, - 0x74, 0x33, 0x32, 0x12, 0x4e, 0x0a, 0x0f, 0x6d, 0x61, 0x70, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x23, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x74, - 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x2e, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x69, 0x6e, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x6d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x43, - 0x6f, 0x69, 0x6e, 0x12, 0x51, 0x0a, 0x13, 0x61, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x24, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x52, 0x11, 0x61, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x51, 0x0a, 0x13, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x73, - 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x25, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x11, 0x61, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, - 0x75, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x63, 0x6f, 0x69, - 0x6e, 0x73, 0x18, 0x26, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, - 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x1a, 0x42, 0x0a, 0x14, 0x4d, 0x61, - 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x42, - 0x0a, 0x14, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x55, 0x69, 0x6e, 0x74, 0x33, - 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x1a, 0x5b, 0x0a, 0x12, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x43, - 0x6f, 0x69, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0x3d, 0x0a, 0x0c, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2d, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2a, 0x64, - 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, - 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x4e, - 0x55, 0x4d, 0x5f, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x45, 0x4e, 0x55, 0x4d, - 0x5f, 0x46, 0x49, 0x56, 0x45, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x0e, 0x45, 0x4e, 0x55, 0x4d, 0x5f, - 0x4e, 0x45, 0x47, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x45, 0x10, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0x01, 0x32, 0x3a, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x31, 0x0a, - 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x2e, 0x45, - 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x74, 0x65, 0x73, - 0x74, 0x70, 0x62, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x42, 0x88, 0x01, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x42, - 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, - 0x65, 0x73, 0x74, 0x70, 0x62, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x54, 0x65, - 0x73, 0x74, 0x70, 0x62, 0xca, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0xe2, 0x02, 0x12, - 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x06, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x74, 0x33, 0x32, 0x12, 0x54, 0x0a, 0x0f, 0x6d, 0x61, 0x70, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x5f, 0x63, 0x6f, 0x69, 0x6e, 0x18, 0x23, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x45, 0x63, 0x68, 0x6f, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x43, 0x6f, 0x69, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x6d, 0x61, 0x70, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x69, 0x6e, 0x12, 0x51, 0x0a, 0x13, 0x61, 0x5f, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x24, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x11, 0x61, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x51, 0x0a, 0x13, + 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x25, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21, 0xd2, 0xb4, 0x2d, 0x1d, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x11, 0x61, 0x43, + 0x6f, 0x6e, 0x73, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x2f, 0x0a, 0x05, 0x63, 0x6f, 0x69, 0x6e, 0x73, 0x18, 0x26, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x63, 0x6f, 0x69, 0x6e, 0x73, + 0x1a, 0x42, 0x0a, 0x14, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x42, 0x0a, 0x14, 0x4d, 0x61, 0x70, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x5b, 0x0a, 0x12, 0x4d, 0x61, 0x70, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x69, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x2e, 0x0a, 0x08, 0x41, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x62, 0x61, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x7a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x03, 0x62, 0x61, 0x7a, 0x22, 0x43, 0x0a, 0x0c, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, + 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2a, 0x64, 0x0a, 0x04, 0x45, 0x6e, + 0x75, 0x6d, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x4e, 0x55, 0x4d, + 0x5f, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x54, + 0x57, 0x4f, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x46, 0x49, 0x56, + 0x45, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x0e, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x4e, 0x45, 0x47, 0x5f, + 0x54, 0x48, 0x52, 0x45, 0x45, 0x10, 0xfd, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, + 0x32, 0x46, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3d, 0x0a, 0x04, 0x45, 0x63, 0x68, + 0x6f, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, + 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x2e, 0x45, 0x63, 0x68, 0x6f, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xac, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x42, 0x0a, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, + 0x02, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0xca, 0x02, + 0x0c, 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0xe2, 0x02, 0x18, + 0x54, 0x65, 0x73, 0x74, 0x70, 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x70, + 0x62, 0x70, 0x75, 0x6c, 0x73, 0x61, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_testpb_query_proto_rawDescOnce sync.Once - file_testpb_query_proto_rawDescData = file_testpb_query_proto_rawDesc + file_testpbpulsar_query_proto_rawDescOnce sync.Once + file_testpbpulsar_query_proto_rawDescData = file_testpbpulsar_query_proto_rawDesc ) -func file_testpb_query_proto_rawDescGZIP() []byte { - file_testpb_query_proto_rawDescOnce.Do(func() { - file_testpb_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpb_query_proto_rawDescData) +func file_testpbpulsar_query_proto_rawDescGZIP() []byte { + file_testpbpulsar_query_proto_rawDescOnce.Do(func() { + file_testpbpulsar_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpbpulsar_query_proto_rawDescData) }) - return file_testpb_query_proto_rawDescData + return file_testpbpulsar_query_proto_rawDescData } -var file_testpb_query_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_testpb_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_testpb_query_proto_goTypes = []interface{}{ - (Enum)(0), // 0: testpb.Enum - (*AMessage)(nil), // 1: testpb.AMessage - (*EchoRequest)(nil), // 2: testpb.EchoRequest - (*EchoResponse)(nil), // 3: testpb.EchoResponse - nil, // 4: testpb.EchoRequest.MapStringStringEntry - nil, // 5: testpb.EchoRequest.MapStringUint32Entry - nil, // 6: testpb.EchoRequest.MapStringCoinEntry +var file_testpbpulsar_query_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_testpbpulsar_query_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_testpbpulsar_query_proto_goTypes = []interface{}{ + (Enum)(0), // 0: testpbpulsar.Enum + (*EchoRequest)(nil), // 1: testpbpulsar.EchoRequest + (*AMessage)(nil), // 2: testpbpulsar.AMessage + (*EchoResponse)(nil), // 3: testpbpulsar.EchoResponse + nil, // 4: testpbpulsar.EchoRequest.MapStringStringEntry + nil, // 5: testpbpulsar.EchoRequest.MapStringUint32Entry + nil, // 6: testpbpulsar.EchoRequest.MapStringCoinEntry (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp (*durationpb.Duration)(nil), // 8: google.protobuf.Duration (*v1beta1.Coin)(nil), // 9: cosmos.base.v1beta1.Coin (*v1beta11.PageRequest)(nil), // 10: cosmos.base.query.v1beta1.PageRequest } -var file_testpb_query_proto_depIdxs = []int32{ - 7, // 0: testpb.EchoRequest.timestamp:type_name -> google.protobuf.Timestamp - 8, // 1: testpb.EchoRequest.duration:type_name -> google.protobuf.Duration - 0, // 2: testpb.EchoRequest.an_enum:type_name -> testpb.Enum - 1, // 3: testpb.EchoRequest.a_message:type_name -> testpb.AMessage - 9, // 4: testpb.EchoRequest.a_coin:type_name -> cosmos.base.v1beta1.Coin - 10, // 5: testpb.EchoRequest.page:type_name -> cosmos.base.query.v1beta1.PageRequest - 0, // 6: testpb.EchoRequest.enums:type_name -> testpb.Enum - 8, // 7: testpb.EchoRequest.durations:type_name -> google.protobuf.Duration - 1, // 8: testpb.EchoRequest.some_messages:type_name -> testpb.AMessage - 9, // 9: testpb.EchoRequest.positional3_varargs:type_name -> cosmos.base.v1beta1.Coin - 4, // 10: testpb.EchoRequest.map_string_string:type_name -> testpb.EchoRequest.MapStringStringEntry - 5, // 11: testpb.EchoRequest.map_string_uint32:type_name -> testpb.EchoRequest.MapStringUint32Entry - 6, // 12: testpb.EchoRequest.map_string_coin:type_name -> testpb.EchoRequest.MapStringCoinEntry - 9, // 13: testpb.EchoRequest.coins:type_name -> cosmos.base.v1beta1.Coin - 2, // 14: testpb.EchoResponse.request:type_name -> testpb.EchoRequest - 9, // 15: testpb.EchoRequest.MapStringCoinEntry.value:type_name -> cosmos.base.v1beta1.Coin - 2, // 16: testpb.Query.Echo:input_type -> testpb.EchoRequest - 3, // 17: testpb.Query.Echo:output_type -> testpb.EchoResponse +var file_testpbpulsar_query_proto_depIdxs = []int32{ + 7, // 0: testpbpulsar.EchoRequest.timestamp:type_name -> google.protobuf.Timestamp + 8, // 1: testpbpulsar.EchoRequest.duration:type_name -> google.protobuf.Duration + 0, // 2: testpbpulsar.EchoRequest.an_enum:type_name -> testpbpulsar.Enum + 2, // 3: testpbpulsar.EchoRequest.a_message:type_name -> testpbpulsar.AMessage + 9, // 4: testpbpulsar.EchoRequest.a_coin:type_name -> cosmos.base.v1beta1.Coin + 10, // 5: testpbpulsar.EchoRequest.page:type_name -> cosmos.base.query.v1beta1.PageRequest + 0, // 6: testpbpulsar.EchoRequest.enums:type_name -> testpbpulsar.Enum + 8, // 7: testpbpulsar.EchoRequest.durations:type_name -> google.protobuf.Duration + 2, // 8: testpbpulsar.EchoRequest.some_messages:type_name -> testpbpulsar.AMessage + 9, // 9: testpbpulsar.EchoRequest.positional3_varargs:type_name -> cosmos.base.v1beta1.Coin + 4, // 10: testpbpulsar.EchoRequest.map_string_string:type_name -> testpbpulsar.EchoRequest.MapStringStringEntry + 5, // 11: testpbpulsar.EchoRequest.map_string_uint32:type_name -> testpbpulsar.EchoRequest.MapStringUint32Entry + 6, // 12: testpbpulsar.EchoRequest.map_string_coin:type_name -> testpbpulsar.EchoRequest.MapStringCoinEntry + 9, // 13: testpbpulsar.EchoRequest.coins:type_name -> cosmos.base.v1beta1.Coin + 1, // 14: testpbpulsar.EchoResponse.request:type_name -> testpbpulsar.EchoRequest + 9, // 15: testpbpulsar.EchoRequest.MapStringCoinEntry.value:type_name -> cosmos.base.v1beta1.Coin + 1, // 16: testpbpulsar.Query.Echo:input_type -> testpbpulsar.EchoRequest + 3, // 17: testpbpulsar.Query.Echo:output_type -> testpbpulsar.EchoResponse 17, // [17:18] is the sub-list for method output_type 16, // [16:17] is the sub-list for method input_type 16, // [16:16] is the sub-list for extension type_name @@ -5373,25 +5379,13 @@ var file_testpb_query_proto_depIdxs = []int32{ 0, // [0:16] is the sub-list for field type_name } -func init() { file_testpb_query_proto_init() } -func file_testpb_query_proto_init() { - if File_testpb_query_proto != nil { +func init() { file_testpbpulsar_query_proto_init() } +func file_testpbpulsar_query_proto_init() { + if File_testpbpulsar_query_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_testpb_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_testpb_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_testpbpulsar_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EchoRequest); i { case 0: return &v.state @@ -5403,7 +5397,19 @@ func file_testpb_query_proto_init() { return nil } } - file_testpb_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_testpbpulsar_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testpbpulsar_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EchoResponse); i { case 0: return &v.state @@ -5420,19 +5426,19 @@ func file_testpb_query_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_testpb_query_proto_rawDesc, + RawDescriptor: file_testpbpulsar_query_proto_rawDesc, NumEnums: 1, NumMessages: 6, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_testpb_query_proto_goTypes, - DependencyIndexes: file_testpb_query_proto_depIdxs, - EnumInfos: file_testpb_query_proto_enumTypes, - MessageInfos: file_testpb_query_proto_msgTypes, + GoTypes: file_testpbpulsar_query_proto_goTypes, + DependencyIndexes: file_testpbpulsar_query_proto_depIdxs, + EnumInfos: file_testpbpulsar_query_proto_enumTypes, + MessageInfos: file_testpbpulsar_query_proto_msgTypes, }.Build() - File_testpb_query_proto = out.File - file_testpb_query_proto_rawDesc = nil - file_testpb_query_proto_goTypes = nil - file_testpb_query_proto_depIdxs = nil + File_testpbpulsar_query_proto = out.File + file_testpbpulsar_query_proto_rawDesc = nil + file_testpbpulsar_query_proto_goTypes = nil + file_testpbpulsar_query_proto_depIdxs = nil } diff --git a/client/v2/internal/testpb/query_grpc.pb.go b/client/v2/internal/testpbpulsar/query_grpc.pb.go similarity index 94% rename from client/v2/internal/testpb/query_grpc.pb.go rename to client/v2/internal/testpbpulsar/query_grpc.pb.go index 9f444b76c7..a762dd8a9f 100644 --- a/client/v2/internal/testpb/query_grpc.pb.go +++ b/client/v2/internal/testpbpulsar/query_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) -// source: testpb/query.proto +// source: testpbpulsar/query.proto -package testpb +package testpbpulsar import ( context "context" @@ -19,7 +19,7 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Query_Echo_FullMethodName = "/testpb.Query/Echo" + Query_Echo_FullMethodName = "/testpbpulsar.Query/Echo" ) // QueryClient is the client API for Query service. @@ -98,7 +98,7 @@ func _Query_Echo_Handler(srv interface{}, ctx context.Context, dec func(interfac // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "testpb.Query", + ServiceName: "testpbpulsar.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -107,5 +107,5 @@ var Query_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "testpb/query.proto", + Metadata: "testpbpulsar/query.proto", } diff --git a/client/v2/internal/util/util_test.go b/client/v2/internal/util/util_test.go index 60a713ed21..fbc92704c5 100644 --- a/client/v2/internal/util/util_test.go +++ b/client/v2/internal/util/util_test.go @@ -7,7 +7,7 @@ import ( "google.golang.org/protobuf/reflect/protoreflect" "google.golang.org/protobuf/reflect/protoregistry" - _ "cosmossdk.io/client/v2/internal/testpb" + _ "cosmossdk.io/client/v2/internal/testpbpulsar" ) func TestIsSupportedVersion(t *testing.T) { @@ -29,15 +29,15 @@ func TestIsSupportedVersion(t *testing.T) { expected bool }{ { - messageName: "testpb.Msg.Send", + messageName: "testpbpulsar.Msg.Send", expected: true, }, { - messageName: "testpb.Query.Echo", + messageName: "testpbpulsar.Query.Echo", expected: true, }, { - messageName: "testpb.Msg.Clawback", + messageName: "testpbpulsar.Msg.Clawback", expected: false, }, }