13824 lines
547 KiB
Go
13824 lines
547 KiB
Go
|
package groupv1beta1
|
||
|
|
||
|
import (
|
||
|
fmt "fmt"
|
||
|
_ "github.com/cosmos/cosmos-proto"
|
||
|
runtime "github.com/cosmos/cosmos-proto/runtime"
|
||
|
v1beta1 "github.com/cosmos/cosmos-sdk/api/cosmos/base/query/v1beta1"
|
||
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
|
protoiface "google.golang.org/protobuf/runtime/protoiface"
|
||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
|
io "io"
|
||
|
reflect "reflect"
|
||
|
sync "sync"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
md_QueryGroupInfoRequest protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupInfoRequest_group_id protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupInfoRequest = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupInfoRequest")
|
||
|
fd_QueryGroupInfoRequest_group_id = md_QueryGroupInfoRequest.Fields().ByName("group_id")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupInfoRequest)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupInfoRequest QueryGroupInfoRequest
|
||
|
|
||
|
func (x *QueryGroupInfoRequest) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupInfoRequest)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupInfoRequest) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_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_QueryGroupInfoRequest_messageType fastReflection_QueryGroupInfoRequest_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupInfoRequest_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupInfoRequest_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupInfoRequest_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupInfoRequest)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupInfoRequest_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupInfoRequest)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupInfoRequest
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupInfoRequest) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupInfoRequest
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupInfoRequest) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupInfoRequest_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupInfoRequest) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupInfoRequest)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupInfoRequest) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupInfoRequest)(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_QueryGroupInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.GroupId != uint64(0) {
|
||
|
value := protoreflect.ValueOfUint64(x.GroupId)
|
||
|
if !f(fd_QueryGroupInfoRequest_group_id, 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_QueryGroupInfoRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupInfoRequest.group_id":
|
||
|
return x.GroupId != uint64(0)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupInfoRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupInfoRequest 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_QueryGroupInfoRequest) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupInfoRequest.group_id":
|
||
|
x.GroupId = uint64(0)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupInfoRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupInfoRequest 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_QueryGroupInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupInfoRequest.group_id":
|
||
|
value := x.GroupId
|
||
|
return protoreflect.ValueOfUint64(value)
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupInfoRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupInfoRequest 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_QueryGroupInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupInfoRequest.group_id":
|
||
|
x.GroupId = value.Uint()
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupInfoRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupInfoRequest 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_QueryGroupInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupInfoRequest.group_id":
|
||
|
panic(fmt.Errorf("field group_id of message cosmos.group.v1beta1.QueryGroupInfoRequest is not mutable"))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupInfoRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupInfoRequest 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_QueryGroupInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupInfoRequest.group_id":
|
||
|
return protoreflect.ValueOfUint64(uint64(0))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupInfoRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupInfoRequest 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_QueryGroupInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupInfoRequest", 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_QueryGroupInfoRequest) 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_QueryGroupInfoRequest) 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_QueryGroupInfoRequest) 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_QueryGroupInfoRequest) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupInfoRequest)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if x.GroupId != 0 {
|
||
|
n += 1 + runtime.Sov(uint64(x.GroupId))
|
||
|
}
|
||
|
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().(*QueryGroupInfoRequest)
|
||
|
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.GroupId != 0 {
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId))
|
||
|
i--
|
||
|
dAtA[i] = 0x8
|
||
|
}
|
||
|
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().(*QueryGroupInfoRequest)
|
||
|
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: QueryGroupInfoRequest: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
||
|
}
|
||
|
switch fieldNum {
|
||
|
case 1:
|
||
|
if wireType != 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
|
||
|
}
|
||
|
x.GroupId = 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.GroupId |= uint64(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_QueryGroupInfoResponse protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupInfoResponse_info protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupInfoResponse = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupInfoResponse")
|
||
|
fd_QueryGroupInfoResponse_info = md_QueryGroupInfoResponse.Fields().ByName("info")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupInfoResponse)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupInfoResponse QueryGroupInfoResponse
|
||
|
|
||
|
func (x *QueryGroupInfoResponse) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupInfoResponse)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupInfoResponse) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_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_QueryGroupInfoResponse_messageType fastReflection_QueryGroupInfoResponse_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupInfoResponse_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupInfoResponse_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupInfoResponse_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupInfoResponse)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupInfoResponse_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupInfoResponse)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupInfoResponse
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupInfoResponse) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupInfoResponse
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupInfoResponse) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupInfoResponse_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupInfoResponse) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupInfoResponse)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupInfoResponse) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupInfoResponse)(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_QueryGroupInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.Info != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Info.ProtoReflect())
|
||
|
if !f(fd_QueryGroupInfoResponse_info, 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_QueryGroupInfoResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupInfoResponse.info":
|
||
|
return x.Info != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupInfoResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupInfoResponse 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_QueryGroupInfoResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupInfoResponse.info":
|
||
|
x.Info = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupInfoResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupInfoResponse 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_QueryGroupInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupInfoResponse.info":
|
||
|
value := x.Info
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupInfoResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupInfoResponse 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_QueryGroupInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupInfoResponse.info":
|
||
|
x.Info = value.Message().Interface().(*GroupInfo)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupInfoResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupInfoResponse 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_QueryGroupInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupInfoResponse.info":
|
||
|
if x.Info == nil {
|
||
|
x.Info = new(GroupInfo)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Info.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupInfoResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupInfoResponse 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_QueryGroupInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupInfoResponse.info":
|
||
|
m := new(GroupInfo)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupInfoResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupInfoResponse 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_QueryGroupInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupInfoResponse", 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_QueryGroupInfoResponse) 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_QueryGroupInfoResponse) 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_QueryGroupInfoResponse) 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_QueryGroupInfoResponse) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupInfoResponse)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if x.Info != nil {
|
||
|
l = options.Size(x.Info)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryGroupInfoResponse)
|
||
|
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.Info != nil {
|
||
|
encoded, err := options.Marshal(x.Info)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
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().(*QueryGroupInfoResponse)
|
||
|
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: QueryGroupInfoResponse: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupInfoResponse: 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 Info", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Info == nil {
|
||
|
x.Info = &GroupInfo{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Info); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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_QueryGroupPolicyInfoRequest protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupPolicyInfoRequest_address protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupPolicyInfoRequest = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupPolicyInfoRequest")
|
||
|
fd_QueryGroupPolicyInfoRequest_address = md_QueryGroupPolicyInfoRequest.Fields().ByName("address")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupPolicyInfoRequest)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupPolicyInfoRequest QueryGroupPolicyInfoRequest
|
||
|
|
||
|
func (x *QueryGroupPolicyInfoRequest) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupPolicyInfoRequest)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPolicyInfoRequest) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[2]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryGroupPolicyInfoRequest_messageType fastReflection_QueryGroupPolicyInfoRequest_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupPolicyInfoRequest_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupPolicyInfoRequest_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupPolicyInfoRequest_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupPolicyInfoRequest)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupPolicyInfoRequest_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupPolicyInfoRequest)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupPolicyInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupPolicyInfoRequest
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupPolicyInfoRequest) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupPolicyInfoRequest
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupPolicyInfoRequest) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupPolicyInfoRequest_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupPolicyInfoRequest) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupPolicyInfoRequest)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupPolicyInfoRequest) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupPolicyInfoRequest)(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_QueryGroupPolicyInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.Address != "" {
|
||
|
value := protoreflect.ValueOfString(x.Address)
|
||
|
if !f(fd_QueryGroupPolicyInfoRequest_address, 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_QueryGroupPolicyInfoRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPolicyInfoRequest.address":
|
||
|
return x.Address != ""
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPolicyInfoRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPolicyInfoRequest 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_QueryGroupPolicyInfoRequest) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPolicyInfoRequest.address":
|
||
|
x.Address = ""
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPolicyInfoRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPolicyInfoRequest 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_QueryGroupPolicyInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPolicyInfoRequest.address":
|
||
|
value := x.Address
|
||
|
return protoreflect.ValueOfString(value)
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPolicyInfoRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPolicyInfoRequest 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_QueryGroupPolicyInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPolicyInfoRequest.address":
|
||
|
x.Address = value.Interface().(string)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPolicyInfoRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPolicyInfoRequest 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_QueryGroupPolicyInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPolicyInfoRequest.address":
|
||
|
panic(fmt.Errorf("field address of message cosmos.group.v1beta1.QueryGroupPolicyInfoRequest is not mutable"))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPolicyInfoRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPolicyInfoRequest 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_QueryGroupPolicyInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPolicyInfoRequest.address":
|
||
|
return protoreflect.ValueOfString("")
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPolicyInfoRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPolicyInfoRequest 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_QueryGroupPolicyInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupPolicyInfoRequest", 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_QueryGroupPolicyInfoRequest) 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_QueryGroupPolicyInfoRequest) 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_QueryGroupPolicyInfoRequest) 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_QueryGroupPolicyInfoRequest) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupPolicyInfoRequest)
|
||
|
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.Address)
|
||
|
if l > 0 {
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryGroupPolicyInfoRequest)
|
||
|
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 len(x.Address) > 0 {
|
||
|
i -= len(x.Address)
|
||
|
copy(dAtA[i:], x.Address)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
|
||
|
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().(*QueryGroupPolicyInfoRequest)
|
||
|
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: QueryGroupPolicyInfoRequest: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPolicyInfoRequest: 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 Address", 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.Address = string(dAtA[iNdEx:postIndex])
|
||
|
iNdEx = postIndex
|
||
|
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_QueryGroupPolicyInfoResponse protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupPolicyInfoResponse_info protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupPolicyInfoResponse = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupPolicyInfoResponse")
|
||
|
fd_QueryGroupPolicyInfoResponse_info = md_QueryGroupPolicyInfoResponse.Fields().ByName("info")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupPolicyInfoResponse)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupPolicyInfoResponse QueryGroupPolicyInfoResponse
|
||
|
|
||
|
func (x *QueryGroupPolicyInfoResponse) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupPolicyInfoResponse)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPolicyInfoResponse) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[3]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryGroupPolicyInfoResponse_messageType fastReflection_QueryGroupPolicyInfoResponse_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupPolicyInfoResponse_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupPolicyInfoResponse_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupPolicyInfoResponse_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupPolicyInfoResponse)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupPolicyInfoResponse_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupPolicyInfoResponse)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupPolicyInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupPolicyInfoResponse
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupPolicyInfoResponse) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupPolicyInfoResponse
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupPolicyInfoResponse) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupPolicyInfoResponse_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupPolicyInfoResponse) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupPolicyInfoResponse)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupPolicyInfoResponse) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupPolicyInfoResponse)(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_QueryGroupPolicyInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.Info != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Info.ProtoReflect())
|
||
|
if !f(fd_QueryGroupPolicyInfoResponse_info, 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_QueryGroupPolicyInfoResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPolicyInfoResponse.info":
|
||
|
return x.Info != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPolicyInfoResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPolicyInfoResponse 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_QueryGroupPolicyInfoResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPolicyInfoResponse.info":
|
||
|
x.Info = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPolicyInfoResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPolicyInfoResponse 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_QueryGroupPolicyInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPolicyInfoResponse.info":
|
||
|
value := x.Info
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPolicyInfoResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPolicyInfoResponse 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_QueryGroupPolicyInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPolicyInfoResponse.info":
|
||
|
x.Info = value.Message().Interface().(*GroupPolicyInfo)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPolicyInfoResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPolicyInfoResponse 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_QueryGroupPolicyInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPolicyInfoResponse.info":
|
||
|
if x.Info == nil {
|
||
|
x.Info = new(GroupPolicyInfo)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Info.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPolicyInfoResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPolicyInfoResponse 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_QueryGroupPolicyInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPolicyInfoResponse.info":
|
||
|
m := new(GroupPolicyInfo)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPolicyInfoResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPolicyInfoResponse 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_QueryGroupPolicyInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupPolicyInfoResponse", 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_QueryGroupPolicyInfoResponse) 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_QueryGroupPolicyInfoResponse) 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_QueryGroupPolicyInfoResponse) 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_QueryGroupPolicyInfoResponse) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupPolicyInfoResponse)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if x.Info != nil {
|
||
|
l = options.Size(x.Info)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryGroupPolicyInfoResponse)
|
||
|
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.Info != nil {
|
||
|
encoded, err := options.Marshal(x.Info)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
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().(*QueryGroupPolicyInfoResponse)
|
||
|
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: QueryGroupPolicyInfoResponse: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPolicyInfoResponse: 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 Info", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Info == nil {
|
||
|
x.Info = &GroupPolicyInfo{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Info); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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_QueryGroupMembersRequest protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupMembersRequest_group_id protoreflect.FieldDescriptor
|
||
|
fd_QueryGroupMembersRequest_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupMembersRequest = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupMembersRequest")
|
||
|
fd_QueryGroupMembersRequest_group_id = md_QueryGroupMembersRequest.Fields().ByName("group_id")
|
||
|
fd_QueryGroupMembersRequest_pagination = md_QueryGroupMembersRequest.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupMembersRequest)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupMembersRequest QueryGroupMembersRequest
|
||
|
|
||
|
func (x *QueryGroupMembersRequest) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupMembersRequest)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupMembersRequest) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[4]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryGroupMembersRequest_messageType fastReflection_QueryGroupMembersRequest_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupMembersRequest_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupMembersRequest_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupMembersRequest_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupMembersRequest)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupMembersRequest_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupMembersRequest)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupMembersRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupMembersRequest
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupMembersRequest) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupMembersRequest
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupMembersRequest) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupMembersRequest_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupMembersRequest) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupMembersRequest)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupMembersRequest) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupMembersRequest)(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_QueryGroupMembersRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.GroupId != uint64(0) {
|
||
|
value := protoreflect.ValueOfUint64(x.GroupId)
|
||
|
if !f(fd_QueryGroupMembersRequest_group_id, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryGroupMembersRequest_pagination, 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_QueryGroupMembersRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersRequest.group_id":
|
||
|
return x.GroupId != uint64(0)
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersRequest.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupMembersRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupMembersRequest 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_QueryGroupMembersRequest) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersRequest.group_id":
|
||
|
x.GroupId = uint64(0)
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersRequest.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupMembersRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupMembersRequest 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_QueryGroupMembersRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersRequest.group_id":
|
||
|
value := x.GroupId
|
||
|
return protoreflect.ValueOfUint64(value)
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersRequest.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupMembersRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupMembersRequest 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_QueryGroupMembersRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersRequest.group_id":
|
||
|
x.GroupId = value.Uint()
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersRequest.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupMembersRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupMembersRequest 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_QueryGroupMembersRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersRequest.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageRequest)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersRequest.group_id":
|
||
|
panic(fmt.Errorf("field group_id of message cosmos.group.v1beta1.QueryGroupMembersRequest is not mutable"))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupMembersRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupMembersRequest 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_QueryGroupMembersRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersRequest.group_id":
|
||
|
return protoreflect.ValueOfUint64(uint64(0))
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersRequest.pagination":
|
||
|
m := new(v1beta1.PageRequest)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupMembersRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupMembersRequest 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_QueryGroupMembersRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupMembersRequest", 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_QueryGroupMembersRequest) 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_QueryGroupMembersRequest) 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_QueryGroupMembersRequest) 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_QueryGroupMembersRequest) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupMembersRequest)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if x.GroupId != 0 {
|
||
|
n += 1 + runtime.Sov(uint64(x.GroupId))
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryGroupMembersRequest)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if x.GroupId != 0 {
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId))
|
||
|
i--
|
||
|
dAtA[i] = 0x8
|
||
|
}
|
||
|
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().(*QueryGroupMembersRequest)
|
||
|
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: QueryGroupMembersRequest: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupMembersRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
||
|
}
|
||
|
switch fieldNum {
|
||
|
case 1:
|
||
|
if wireType != 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
|
||
|
}
|
||
|
x.GroupId = 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.GroupId |= uint64(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageRequest{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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 = (*_QueryGroupMembersResponse_1_list)(nil)
|
||
|
|
||
|
type _QueryGroupMembersResponse_1_list struct {
|
||
|
list *[]*GroupMember
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupMembersResponse_1_list) Len() int {
|
||
|
if x.list == nil {
|
||
|
return 0
|
||
|
}
|
||
|
return len(*x.list)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupMembersResponse_1_list) Get(i int) protoreflect.Value {
|
||
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupMembersResponse_1_list) Set(i int, value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*GroupMember)
|
||
|
(*x.list)[i] = concreteValue
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupMembersResponse_1_list) Append(value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*GroupMember)
|
||
|
*x.list = append(*x.list, concreteValue)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupMembersResponse_1_list) AppendMutable() protoreflect.Value {
|
||
|
v := new(GroupMember)
|
||
|
*x.list = append(*x.list, v)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupMembersResponse_1_list) Truncate(n int) {
|
||
|
for i := n; i < len(*x.list); i++ {
|
||
|
(*x.list)[i] = nil
|
||
|
}
|
||
|
*x.list = (*x.list)[:n]
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupMembersResponse_1_list) NewElement() protoreflect.Value {
|
||
|
v := new(GroupMember)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupMembersResponse_1_list) IsValid() bool {
|
||
|
return x.list != nil
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
md_QueryGroupMembersResponse protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupMembersResponse_members protoreflect.FieldDescriptor
|
||
|
fd_QueryGroupMembersResponse_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupMembersResponse = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupMembersResponse")
|
||
|
fd_QueryGroupMembersResponse_members = md_QueryGroupMembersResponse.Fields().ByName("members")
|
||
|
fd_QueryGroupMembersResponse_pagination = md_QueryGroupMembersResponse.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupMembersResponse)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupMembersResponse QueryGroupMembersResponse
|
||
|
|
||
|
func (x *QueryGroupMembersResponse) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupMembersResponse)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupMembersResponse) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[5]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryGroupMembersResponse_messageType fastReflection_QueryGroupMembersResponse_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupMembersResponse_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupMembersResponse_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupMembersResponse_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupMembersResponse)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupMembersResponse_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupMembersResponse)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupMembersResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupMembersResponse
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupMembersResponse) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupMembersResponse
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupMembersResponse) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupMembersResponse_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupMembersResponse) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupMembersResponse)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupMembersResponse) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupMembersResponse)(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_QueryGroupMembersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if len(x.Members) != 0 {
|
||
|
value := protoreflect.ValueOfList(&_QueryGroupMembersResponse_1_list{list: &x.Members})
|
||
|
if !f(fd_QueryGroupMembersResponse_members, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryGroupMembersResponse_pagination, 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_QueryGroupMembersResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersResponse.members":
|
||
|
return len(x.Members) != 0
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersResponse.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupMembersResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupMembersResponse 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_QueryGroupMembersResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersResponse.members":
|
||
|
x.Members = nil
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersResponse.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupMembersResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupMembersResponse 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_QueryGroupMembersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersResponse.members":
|
||
|
if len(x.Members) == 0 {
|
||
|
return protoreflect.ValueOfList(&_QueryGroupMembersResponse_1_list{})
|
||
|
}
|
||
|
listValue := &_QueryGroupMembersResponse_1_list{list: &x.Members}
|
||
|
return protoreflect.ValueOfList(listValue)
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersResponse.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupMembersResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupMembersResponse 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_QueryGroupMembersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersResponse.members":
|
||
|
lv := value.List()
|
||
|
clv := lv.(*_QueryGroupMembersResponse_1_list)
|
||
|
x.Members = *clv.list
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersResponse.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupMembersResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupMembersResponse 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_QueryGroupMembersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersResponse.members":
|
||
|
if x.Members == nil {
|
||
|
x.Members = []*GroupMember{}
|
||
|
}
|
||
|
value := &_QueryGroupMembersResponse_1_list{list: &x.Members}
|
||
|
return protoreflect.ValueOfList(value)
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersResponse.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageResponse)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupMembersResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupMembersResponse 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_QueryGroupMembersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersResponse.members":
|
||
|
list := []*GroupMember{}
|
||
|
return protoreflect.ValueOfList(&_QueryGroupMembersResponse_1_list{list: &list})
|
||
|
case "cosmos.group.v1beta1.QueryGroupMembersResponse.pagination":
|
||
|
m := new(v1beta1.PageResponse)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupMembersResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupMembersResponse 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_QueryGroupMembersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupMembersResponse", 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_QueryGroupMembersResponse) 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_QueryGroupMembersResponse) 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_QueryGroupMembersResponse) 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_QueryGroupMembersResponse) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupMembersResponse)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if len(x.Members) > 0 {
|
||
|
for _, e := range x.Members {
|
||
|
l = options.Size(e)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryGroupMembersResponse)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if len(x.Members) > 0 {
|
||
|
for iNdEx := len(x.Members) - 1; iNdEx >= 0; iNdEx-- {
|
||
|
encoded, err := options.Marshal(x.Members[iNdEx])
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
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().(*QueryGroupMembersResponse)
|
||
|
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: QueryGroupMembersResponse: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupMembersResponse: 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 Members", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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.Members = append(x.Members, &GroupMember{})
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Members[len(x.Members)-1]); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageResponse{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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_QueryGroupsByAdminRequest protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupsByAdminRequest_admin protoreflect.FieldDescriptor
|
||
|
fd_QueryGroupsByAdminRequest_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupsByAdminRequest = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupsByAdminRequest")
|
||
|
fd_QueryGroupsByAdminRequest_admin = md_QueryGroupsByAdminRequest.Fields().ByName("admin")
|
||
|
fd_QueryGroupsByAdminRequest_pagination = md_QueryGroupsByAdminRequest.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupsByAdminRequest)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupsByAdminRequest QueryGroupsByAdminRequest
|
||
|
|
||
|
func (x *QueryGroupsByAdminRequest) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupsByAdminRequest)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByAdminRequest) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[6]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryGroupsByAdminRequest_messageType fastReflection_QueryGroupsByAdminRequest_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupsByAdminRequest_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupsByAdminRequest_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupsByAdminRequest_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupsByAdminRequest)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupsByAdminRequest_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupsByAdminRequest)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupsByAdminRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupsByAdminRequest
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupsByAdminRequest) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupsByAdminRequest
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupsByAdminRequest) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupsByAdminRequest_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupsByAdminRequest) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupsByAdminRequest)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupsByAdminRequest) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupsByAdminRequest)(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_QueryGroupsByAdminRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.Admin != "" {
|
||
|
value := protoreflect.ValueOfString(x.Admin)
|
||
|
if !f(fd_QueryGroupsByAdminRequest_admin, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryGroupsByAdminRequest_pagination, 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_QueryGroupsByAdminRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminRequest.admin":
|
||
|
return x.Admin != ""
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminRequest.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByAdminRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByAdminRequest 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_QueryGroupsByAdminRequest) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminRequest.admin":
|
||
|
x.Admin = ""
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminRequest.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByAdminRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByAdminRequest 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_QueryGroupsByAdminRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminRequest.admin":
|
||
|
value := x.Admin
|
||
|
return protoreflect.ValueOfString(value)
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminRequest.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByAdminRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByAdminRequest 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_QueryGroupsByAdminRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminRequest.admin":
|
||
|
x.Admin = value.Interface().(string)
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminRequest.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByAdminRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByAdminRequest 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_QueryGroupsByAdminRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminRequest.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageRequest)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminRequest.admin":
|
||
|
panic(fmt.Errorf("field admin of message cosmos.group.v1beta1.QueryGroupsByAdminRequest is not mutable"))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByAdminRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByAdminRequest 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_QueryGroupsByAdminRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminRequest.admin":
|
||
|
return protoreflect.ValueOfString("")
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminRequest.pagination":
|
||
|
m := new(v1beta1.PageRequest)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByAdminRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByAdminRequest 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_QueryGroupsByAdminRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupsByAdminRequest", 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_QueryGroupsByAdminRequest) 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_QueryGroupsByAdminRequest) 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_QueryGroupsByAdminRequest) 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_QueryGroupsByAdminRequest) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupsByAdminRequest)
|
||
|
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.Admin)
|
||
|
if l > 0 {
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryGroupsByAdminRequest)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if len(x.Admin) > 0 {
|
||
|
i -= len(x.Admin)
|
||
|
copy(dAtA[i:], x.Admin)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin)))
|
||
|
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().(*QueryGroupsByAdminRequest)
|
||
|
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: QueryGroupsByAdminRequest: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsByAdminRequest: 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 Admin", 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.Admin = string(dAtA[iNdEx:postIndex])
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageRequest{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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 = (*_QueryGroupsByAdminResponse_1_list)(nil)
|
||
|
|
||
|
type _QueryGroupsByAdminResponse_1_list struct {
|
||
|
list *[]*GroupInfo
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByAdminResponse_1_list) Len() int {
|
||
|
if x.list == nil {
|
||
|
return 0
|
||
|
}
|
||
|
return len(*x.list)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByAdminResponse_1_list) Get(i int) protoreflect.Value {
|
||
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByAdminResponse_1_list) Set(i int, value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*GroupInfo)
|
||
|
(*x.list)[i] = concreteValue
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByAdminResponse_1_list) Append(value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*GroupInfo)
|
||
|
*x.list = append(*x.list, concreteValue)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByAdminResponse_1_list) AppendMutable() protoreflect.Value {
|
||
|
v := new(GroupInfo)
|
||
|
*x.list = append(*x.list, v)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByAdminResponse_1_list) Truncate(n int) {
|
||
|
for i := n; i < len(*x.list); i++ {
|
||
|
(*x.list)[i] = nil
|
||
|
}
|
||
|
*x.list = (*x.list)[:n]
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByAdminResponse_1_list) NewElement() protoreflect.Value {
|
||
|
v := new(GroupInfo)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByAdminResponse_1_list) IsValid() bool {
|
||
|
return x.list != nil
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
md_QueryGroupsByAdminResponse protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupsByAdminResponse_groups protoreflect.FieldDescriptor
|
||
|
fd_QueryGroupsByAdminResponse_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupsByAdminResponse = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupsByAdminResponse")
|
||
|
fd_QueryGroupsByAdminResponse_groups = md_QueryGroupsByAdminResponse.Fields().ByName("groups")
|
||
|
fd_QueryGroupsByAdminResponse_pagination = md_QueryGroupsByAdminResponse.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupsByAdminResponse)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupsByAdminResponse QueryGroupsByAdminResponse
|
||
|
|
||
|
func (x *QueryGroupsByAdminResponse) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupsByAdminResponse)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByAdminResponse) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[7]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryGroupsByAdminResponse_messageType fastReflection_QueryGroupsByAdminResponse_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupsByAdminResponse_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupsByAdminResponse_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupsByAdminResponse_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupsByAdminResponse)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupsByAdminResponse_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupsByAdminResponse)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupsByAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupsByAdminResponse
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupsByAdminResponse) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupsByAdminResponse
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupsByAdminResponse) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupsByAdminResponse_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupsByAdminResponse) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupsByAdminResponse)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupsByAdminResponse) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupsByAdminResponse)(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_QueryGroupsByAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if len(x.Groups) != 0 {
|
||
|
value := protoreflect.ValueOfList(&_QueryGroupsByAdminResponse_1_list{list: &x.Groups})
|
||
|
if !f(fd_QueryGroupsByAdminResponse_groups, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryGroupsByAdminResponse_pagination, 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_QueryGroupsByAdminResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminResponse.groups":
|
||
|
return len(x.Groups) != 0
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminResponse.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByAdminResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByAdminResponse 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_QueryGroupsByAdminResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminResponse.groups":
|
||
|
x.Groups = nil
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminResponse.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByAdminResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByAdminResponse 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_QueryGroupsByAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminResponse.groups":
|
||
|
if len(x.Groups) == 0 {
|
||
|
return protoreflect.ValueOfList(&_QueryGroupsByAdminResponse_1_list{})
|
||
|
}
|
||
|
listValue := &_QueryGroupsByAdminResponse_1_list{list: &x.Groups}
|
||
|
return protoreflect.ValueOfList(listValue)
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminResponse.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByAdminResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByAdminResponse 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_QueryGroupsByAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminResponse.groups":
|
||
|
lv := value.List()
|
||
|
clv := lv.(*_QueryGroupsByAdminResponse_1_list)
|
||
|
x.Groups = *clv.list
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminResponse.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByAdminResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByAdminResponse 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_QueryGroupsByAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminResponse.groups":
|
||
|
if x.Groups == nil {
|
||
|
x.Groups = []*GroupInfo{}
|
||
|
}
|
||
|
value := &_QueryGroupsByAdminResponse_1_list{list: &x.Groups}
|
||
|
return protoreflect.ValueOfList(value)
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminResponse.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageResponse)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByAdminResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByAdminResponse 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_QueryGroupsByAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminResponse.groups":
|
||
|
list := []*GroupInfo{}
|
||
|
return protoreflect.ValueOfList(&_QueryGroupsByAdminResponse_1_list{list: &list})
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByAdminResponse.pagination":
|
||
|
m := new(v1beta1.PageResponse)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByAdminResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByAdminResponse 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_QueryGroupsByAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupsByAdminResponse", 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_QueryGroupsByAdminResponse) 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_QueryGroupsByAdminResponse) 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_QueryGroupsByAdminResponse) 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_QueryGroupsByAdminResponse) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupsByAdminResponse)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if len(x.Groups) > 0 {
|
||
|
for _, e := range x.Groups {
|
||
|
l = options.Size(e)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryGroupsByAdminResponse)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if len(x.Groups) > 0 {
|
||
|
for iNdEx := len(x.Groups) - 1; iNdEx >= 0; iNdEx-- {
|
||
|
encoded, err := options.Marshal(x.Groups[iNdEx])
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
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().(*QueryGroupsByAdminResponse)
|
||
|
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: QueryGroupsByAdminResponse: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsByAdminResponse: 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 Groups", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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.Groups = append(x.Groups, &GroupInfo{})
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Groups[len(x.Groups)-1]); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageResponse{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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_QueryGroupPoliciesByGroupRequest protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupPoliciesByGroupRequest_group_id protoreflect.FieldDescriptor
|
||
|
fd_QueryGroupPoliciesByGroupRequest_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupPoliciesByGroupRequest = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupPoliciesByGroupRequest")
|
||
|
fd_QueryGroupPoliciesByGroupRequest_group_id = md_QueryGroupPoliciesByGroupRequest.Fields().ByName("group_id")
|
||
|
fd_QueryGroupPoliciesByGroupRequest_pagination = md_QueryGroupPoliciesByGroupRequest.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupPoliciesByGroupRequest)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupPoliciesByGroupRequest QueryGroupPoliciesByGroupRequest
|
||
|
|
||
|
func (x *QueryGroupPoliciesByGroupRequest) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupPoliciesByGroupRequest)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByGroupRequest) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[8]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryGroupPoliciesByGroupRequest_messageType fastReflection_QueryGroupPoliciesByGroupRequest_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupPoliciesByGroupRequest_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupPoliciesByGroupRequest_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupPoliciesByGroupRequest_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupPoliciesByGroupRequest)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupPoliciesByGroupRequest_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupPoliciesByGroupRequest)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupPoliciesByGroupRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupPoliciesByGroupRequest
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupPoliciesByGroupRequest) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupPoliciesByGroupRequest
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupPoliciesByGroupRequest) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupPoliciesByGroupRequest_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupPoliciesByGroupRequest) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupPoliciesByGroupRequest)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupPoliciesByGroupRequest) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupPoliciesByGroupRequest)(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_QueryGroupPoliciesByGroupRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.GroupId != uint64(0) {
|
||
|
value := protoreflect.ValueOfUint64(x.GroupId)
|
||
|
if !f(fd_QueryGroupPoliciesByGroupRequest_group_id, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryGroupPoliciesByGroupRequest_pagination, 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_QueryGroupPoliciesByGroupRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest.group_id":
|
||
|
return x.GroupId != uint64(0)
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest 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_QueryGroupPoliciesByGroupRequest) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest.group_id":
|
||
|
x.GroupId = uint64(0)
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest 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_QueryGroupPoliciesByGroupRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest.group_id":
|
||
|
value := x.GroupId
|
||
|
return protoreflect.ValueOfUint64(value)
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest 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_QueryGroupPoliciesByGroupRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest.group_id":
|
||
|
x.GroupId = value.Uint()
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest 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_QueryGroupPoliciesByGroupRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageRequest)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest.group_id":
|
||
|
panic(fmt.Errorf("field group_id of message cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest is not mutable"))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest 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_QueryGroupPoliciesByGroupRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest.group_id":
|
||
|
return protoreflect.ValueOfUint64(uint64(0))
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest.pagination":
|
||
|
m := new(v1beta1.PageRequest)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest 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_QueryGroupPoliciesByGroupRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest", 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_QueryGroupPoliciesByGroupRequest) 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_QueryGroupPoliciesByGroupRequest) 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_QueryGroupPoliciesByGroupRequest) 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_QueryGroupPoliciesByGroupRequest) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupPoliciesByGroupRequest)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if x.GroupId != 0 {
|
||
|
n += 1 + runtime.Sov(uint64(x.GroupId))
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryGroupPoliciesByGroupRequest)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if x.GroupId != 0 {
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(x.GroupId))
|
||
|
i--
|
||
|
dAtA[i] = 0x8
|
||
|
}
|
||
|
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().(*QueryGroupPoliciesByGroupRequest)
|
||
|
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: QueryGroupPoliciesByGroupRequest: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPoliciesByGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
||
|
}
|
||
|
switch fieldNum {
|
||
|
case 1:
|
||
|
if wireType != 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
|
||
|
}
|
||
|
x.GroupId = 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.GroupId |= uint64(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageRequest{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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 = (*_QueryGroupPoliciesByGroupResponse_1_list)(nil)
|
||
|
|
||
|
type _QueryGroupPoliciesByGroupResponse_1_list struct {
|
||
|
list *[]*GroupPolicyInfo
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByGroupResponse_1_list) Len() int {
|
||
|
if x.list == nil {
|
||
|
return 0
|
||
|
}
|
||
|
return len(*x.list)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByGroupResponse_1_list) Get(i int) protoreflect.Value {
|
||
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByGroupResponse_1_list) Set(i int, value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*GroupPolicyInfo)
|
||
|
(*x.list)[i] = concreteValue
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByGroupResponse_1_list) Append(value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*GroupPolicyInfo)
|
||
|
*x.list = append(*x.list, concreteValue)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByGroupResponse_1_list) AppendMutable() protoreflect.Value {
|
||
|
v := new(GroupPolicyInfo)
|
||
|
*x.list = append(*x.list, v)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByGroupResponse_1_list) Truncate(n int) {
|
||
|
for i := n; i < len(*x.list); i++ {
|
||
|
(*x.list)[i] = nil
|
||
|
}
|
||
|
*x.list = (*x.list)[:n]
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByGroupResponse_1_list) NewElement() protoreflect.Value {
|
||
|
v := new(GroupPolicyInfo)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByGroupResponse_1_list) IsValid() bool {
|
||
|
return x.list != nil
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
md_QueryGroupPoliciesByGroupResponse protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupPoliciesByGroupResponse_group_policies protoreflect.FieldDescriptor
|
||
|
fd_QueryGroupPoliciesByGroupResponse_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupPoliciesByGroupResponse = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupPoliciesByGroupResponse")
|
||
|
fd_QueryGroupPoliciesByGroupResponse_group_policies = md_QueryGroupPoliciesByGroupResponse.Fields().ByName("group_policies")
|
||
|
fd_QueryGroupPoliciesByGroupResponse_pagination = md_QueryGroupPoliciesByGroupResponse.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupPoliciesByGroupResponse)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupPoliciesByGroupResponse QueryGroupPoliciesByGroupResponse
|
||
|
|
||
|
func (x *QueryGroupPoliciesByGroupResponse) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupPoliciesByGroupResponse)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByGroupResponse) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[9]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryGroupPoliciesByGroupResponse_messageType fastReflection_QueryGroupPoliciesByGroupResponse_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupPoliciesByGroupResponse_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupPoliciesByGroupResponse_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupPoliciesByGroupResponse_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupPoliciesByGroupResponse)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupPoliciesByGroupResponse_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupPoliciesByGroupResponse)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupPoliciesByGroupResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupPoliciesByGroupResponse
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupPoliciesByGroupResponse) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupPoliciesByGroupResponse
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupPoliciesByGroupResponse) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupPoliciesByGroupResponse_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupPoliciesByGroupResponse) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupPoliciesByGroupResponse)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupPoliciesByGroupResponse) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupPoliciesByGroupResponse)(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_QueryGroupPoliciesByGroupResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if len(x.GroupPolicies) != 0 {
|
||
|
value := protoreflect.ValueOfList(&_QueryGroupPoliciesByGroupResponse_1_list{list: &x.GroupPolicies})
|
||
|
if !f(fd_QueryGroupPoliciesByGroupResponse_group_policies, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryGroupPoliciesByGroupResponse_pagination, 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_QueryGroupPoliciesByGroupResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.group_policies":
|
||
|
return len(x.GroupPolicies) != 0
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse 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_QueryGroupPoliciesByGroupResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.group_policies":
|
||
|
x.GroupPolicies = nil
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse 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_QueryGroupPoliciesByGroupResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.group_policies":
|
||
|
if len(x.GroupPolicies) == 0 {
|
||
|
return protoreflect.ValueOfList(&_QueryGroupPoliciesByGroupResponse_1_list{})
|
||
|
}
|
||
|
listValue := &_QueryGroupPoliciesByGroupResponse_1_list{list: &x.GroupPolicies}
|
||
|
return protoreflect.ValueOfList(listValue)
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse 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_QueryGroupPoliciesByGroupResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.group_policies":
|
||
|
lv := value.List()
|
||
|
clv := lv.(*_QueryGroupPoliciesByGroupResponse_1_list)
|
||
|
x.GroupPolicies = *clv.list
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse 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_QueryGroupPoliciesByGroupResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.group_policies":
|
||
|
if x.GroupPolicies == nil {
|
||
|
x.GroupPolicies = []*GroupPolicyInfo{}
|
||
|
}
|
||
|
value := &_QueryGroupPoliciesByGroupResponse_1_list{list: &x.GroupPolicies}
|
||
|
return protoreflect.ValueOfList(value)
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageResponse)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse 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_QueryGroupPoliciesByGroupResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.group_policies":
|
||
|
list := []*GroupPolicyInfo{}
|
||
|
return protoreflect.ValueOfList(&_QueryGroupPoliciesByGroupResponse_1_list{list: &list})
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.pagination":
|
||
|
m := new(v1beta1.PageResponse)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse 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_QueryGroupPoliciesByGroupResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse", 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_QueryGroupPoliciesByGroupResponse) 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_QueryGroupPoliciesByGroupResponse) 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_QueryGroupPoliciesByGroupResponse) 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_QueryGroupPoliciesByGroupResponse) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupPoliciesByGroupResponse)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if len(x.GroupPolicies) > 0 {
|
||
|
for _, e := range x.GroupPolicies {
|
||
|
l = options.Size(e)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryGroupPoliciesByGroupResponse)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if len(x.GroupPolicies) > 0 {
|
||
|
for iNdEx := len(x.GroupPolicies) - 1; iNdEx >= 0; iNdEx-- {
|
||
|
encoded, err := options.Marshal(x.GroupPolicies[iNdEx])
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
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().(*QueryGroupPoliciesByGroupResponse)
|
||
|
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: QueryGroupPoliciesByGroupResponse: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPoliciesByGroupResponse: 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 GroupPolicies", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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.GroupPolicies = append(x.GroupPolicies, &GroupPolicyInfo{})
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GroupPolicies[len(x.GroupPolicies)-1]); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageResponse{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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_QueryGroupPoliciesByAdminRequest protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupPoliciesByAdminRequest_admin protoreflect.FieldDescriptor
|
||
|
fd_QueryGroupPoliciesByAdminRequest_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupPoliciesByAdminRequest = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupPoliciesByAdminRequest")
|
||
|
fd_QueryGroupPoliciesByAdminRequest_admin = md_QueryGroupPoliciesByAdminRequest.Fields().ByName("admin")
|
||
|
fd_QueryGroupPoliciesByAdminRequest_pagination = md_QueryGroupPoliciesByAdminRequest.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupPoliciesByAdminRequest)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupPoliciesByAdminRequest QueryGroupPoliciesByAdminRequest
|
||
|
|
||
|
func (x *QueryGroupPoliciesByAdminRequest) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupPoliciesByAdminRequest)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByAdminRequest) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[10]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryGroupPoliciesByAdminRequest_messageType fastReflection_QueryGroupPoliciesByAdminRequest_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupPoliciesByAdminRequest_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupPoliciesByAdminRequest_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupPoliciesByAdminRequest_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupPoliciesByAdminRequest)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupPoliciesByAdminRequest_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupPoliciesByAdminRequest)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupPoliciesByAdminRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupPoliciesByAdminRequest
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupPoliciesByAdminRequest) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupPoliciesByAdminRequest
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupPoliciesByAdminRequest) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupPoliciesByAdminRequest_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupPoliciesByAdminRequest) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupPoliciesByAdminRequest)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupPoliciesByAdminRequest) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupPoliciesByAdminRequest)(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_QueryGroupPoliciesByAdminRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.Admin != "" {
|
||
|
value := protoreflect.ValueOfString(x.Admin)
|
||
|
if !f(fd_QueryGroupPoliciesByAdminRequest_admin, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryGroupPoliciesByAdminRequest_pagination, 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_QueryGroupPoliciesByAdminRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest.admin":
|
||
|
return x.Admin != ""
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest 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_QueryGroupPoliciesByAdminRequest) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest.admin":
|
||
|
x.Admin = ""
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest 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_QueryGroupPoliciesByAdminRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest.admin":
|
||
|
value := x.Admin
|
||
|
return protoreflect.ValueOfString(value)
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest 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_QueryGroupPoliciesByAdminRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest.admin":
|
||
|
x.Admin = value.Interface().(string)
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest 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_QueryGroupPoliciesByAdminRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageRequest)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest.admin":
|
||
|
panic(fmt.Errorf("field admin of message cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest is not mutable"))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest 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_QueryGroupPoliciesByAdminRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest.admin":
|
||
|
return protoreflect.ValueOfString("")
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest.pagination":
|
||
|
m := new(v1beta1.PageRequest)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest 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_QueryGroupPoliciesByAdminRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest", 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_QueryGroupPoliciesByAdminRequest) 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_QueryGroupPoliciesByAdminRequest) 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_QueryGroupPoliciesByAdminRequest) 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_QueryGroupPoliciesByAdminRequest) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupPoliciesByAdminRequest)
|
||
|
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.Admin)
|
||
|
if l > 0 {
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryGroupPoliciesByAdminRequest)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if len(x.Admin) > 0 {
|
||
|
i -= len(x.Admin)
|
||
|
copy(dAtA[i:], x.Admin)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Admin)))
|
||
|
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().(*QueryGroupPoliciesByAdminRequest)
|
||
|
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: QueryGroupPoliciesByAdminRequest: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPoliciesByAdminRequest: 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 Admin", 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.Admin = string(dAtA[iNdEx:postIndex])
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageRequest{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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 = (*_QueryGroupPoliciesByAdminResponse_1_list)(nil)
|
||
|
|
||
|
type _QueryGroupPoliciesByAdminResponse_1_list struct {
|
||
|
list *[]*GroupPolicyInfo
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByAdminResponse_1_list) Len() int {
|
||
|
if x.list == nil {
|
||
|
return 0
|
||
|
}
|
||
|
return len(*x.list)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByAdminResponse_1_list) Get(i int) protoreflect.Value {
|
||
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByAdminResponse_1_list) Set(i int, value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*GroupPolicyInfo)
|
||
|
(*x.list)[i] = concreteValue
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByAdminResponse_1_list) Append(value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*GroupPolicyInfo)
|
||
|
*x.list = append(*x.list, concreteValue)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByAdminResponse_1_list) AppendMutable() protoreflect.Value {
|
||
|
v := new(GroupPolicyInfo)
|
||
|
*x.list = append(*x.list, v)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByAdminResponse_1_list) Truncate(n int) {
|
||
|
for i := n; i < len(*x.list); i++ {
|
||
|
(*x.list)[i] = nil
|
||
|
}
|
||
|
*x.list = (*x.list)[:n]
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByAdminResponse_1_list) NewElement() protoreflect.Value {
|
||
|
v := new(GroupPolicyInfo)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupPoliciesByAdminResponse_1_list) IsValid() bool {
|
||
|
return x.list != nil
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
md_QueryGroupPoliciesByAdminResponse protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupPoliciesByAdminResponse_group_policies protoreflect.FieldDescriptor
|
||
|
fd_QueryGroupPoliciesByAdminResponse_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupPoliciesByAdminResponse = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupPoliciesByAdminResponse")
|
||
|
fd_QueryGroupPoliciesByAdminResponse_group_policies = md_QueryGroupPoliciesByAdminResponse.Fields().ByName("group_policies")
|
||
|
fd_QueryGroupPoliciesByAdminResponse_pagination = md_QueryGroupPoliciesByAdminResponse.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupPoliciesByAdminResponse)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupPoliciesByAdminResponse QueryGroupPoliciesByAdminResponse
|
||
|
|
||
|
func (x *QueryGroupPoliciesByAdminResponse) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupPoliciesByAdminResponse)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByAdminResponse) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[11]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryGroupPoliciesByAdminResponse_messageType fastReflection_QueryGroupPoliciesByAdminResponse_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupPoliciesByAdminResponse_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupPoliciesByAdminResponse_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupPoliciesByAdminResponse_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupPoliciesByAdminResponse)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupPoliciesByAdminResponse_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupPoliciesByAdminResponse)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupPoliciesByAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupPoliciesByAdminResponse
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupPoliciesByAdminResponse) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupPoliciesByAdminResponse
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupPoliciesByAdminResponse) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupPoliciesByAdminResponse_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupPoliciesByAdminResponse) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupPoliciesByAdminResponse)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupPoliciesByAdminResponse) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupPoliciesByAdminResponse)(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_QueryGroupPoliciesByAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if len(x.GroupPolicies) != 0 {
|
||
|
value := protoreflect.ValueOfList(&_QueryGroupPoliciesByAdminResponse_1_list{list: &x.GroupPolicies})
|
||
|
if !f(fd_QueryGroupPoliciesByAdminResponse_group_policies, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryGroupPoliciesByAdminResponse_pagination, 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_QueryGroupPoliciesByAdminResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.group_policies":
|
||
|
return len(x.GroupPolicies) != 0
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse 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_QueryGroupPoliciesByAdminResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.group_policies":
|
||
|
x.GroupPolicies = nil
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse 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_QueryGroupPoliciesByAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.group_policies":
|
||
|
if len(x.GroupPolicies) == 0 {
|
||
|
return protoreflect.ValueOfList(&_QueryGroupPoliciesByAdminResponse_1_list{})
|
||
|
}
|
||
|
listValue := &_QueryGroupPoliciesByAdminResponse_1_list{list: &x.GroupPolicies}
|
||
|
return protoreflect.ValueOfList(listValue)
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse 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_QueryGroupPoliciesByAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.group_policies":
|
||
|
lv := value.List()
|
||
|
clv := lv.(*_QueryGroupPoliciesByAdminResponse_1_list)
|
||
|
x.GroupPolicies = *clv.list
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse 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_QueryGroupPoliciesByAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.group_policies":
|
||
|
if x.GroupPolicies == nil {
|
||
|
x.GroupPolicies = []*GroupPolicyInfo{}
|
||
|
}
|
||
|
value := &_QueryGroupPoliciesByAdminResponse_1_list{list: &x.GroupPolicies}
|
||
|
return protoreflect.ValueOfList(value)
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageResponse)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse 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_QueryGroupPoliciesByAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.group_policies":
|
||
|
list := []*GroupPolicyInfo{}
|
||
|
return protoreflect.ValueOfList(&_QueryGroupPoliciesByAdminResponse_1_list{list: &list})
|
||
|
case "cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.pagination":
|
||
|
m := new(v1beta1.PageResponse)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse 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_QueryGroupPoliciesByAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse", 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_QueryGroupPoliciesByAdminResponse) 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_QueryGroupPoliciesByAdminResponse) 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_QueryGroupPoliciesByAdminResponse) 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_QueryGroupPoliciesByAdminResponse) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupPoliciesByAdminResponse)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if len(x.GroupPolicies) > 0 {
|
||
|
for _, e := range x.GroupPolicies {
|
||
|
l = options.Size(e)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryGroupPoliciesByAdminResponse)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if len(x.GroupPolicies) > 0 {
|
||
|
for iNdEx := len(x.GroupPolicies) - 1; iNdEx >= 0; iNdEx-- {
|
||
|
encoded, err := options.Marshal(x.GroupPolicies[iNdEx])
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
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().(*QueryGroupPoliciesByAdminResponse)
|
||
|
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: QueryGroupPoliciesByAdminResponse: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupPoliciesByAdminResponse: 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 GroupPolicies", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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.GroupPolicies = append(x.GroupPolicies, &GroupPolicyInfo{})
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GroupPolicies[len(x.GroupPolicies)-1]); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageResponse{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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_QueryProposalRequest protoreflect.MessageDescriptor
|
||
|
fd_QueryProposalRequest_proposal_id protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryProposalRequest = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryProposalRequest")
|
||
|
fd_QueryProposalRequest_proposal_id = md_QueryProposalRequest.Fields().ByName("proposal_id")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryProposalRequest)(nil)
|
||
|
|
||
|
type fastReflection_QueryProposalRequest QueryProposalRequest
|
||
|
|
||
|
func (x *QueryProposalRequest) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryProposalRequest)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalRequest) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[12]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryProposalRequest_messageType fastReflection_QueryProposalRequest_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryProposalRequest_messageType{}
|
||
|
|
||
|
type fastReflection_QueryProposalRequest_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryProposalRequest_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryProposalRequest)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryProposalRequest_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryProposalRequest)
|
||
|
}
|
||
|
func (x fastReflection_QueryProposalRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryProposalRequest
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryProposalRequest) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryProposalRequest
|
||
|
}
|
||
|
|
||
|
// 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_QueryProposalRequest) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryProposalRequest_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryProposalRequest) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryProposalRequest)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryProposalRequest) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryProposalRequest)(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_QueryProposalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.ProposalId != uint64(0) {
|
||
|
value := protoreflect.ValueOfUint64(x.ProposalId)
|
||
|
if !f(fd_QueryProposalRequest_proposal_id, 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_QueryProposalRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalRequest.proposal_id":
|
||
|
return x.ProposalId != uint64(0)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalRequest 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_QueryProposalRequest) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalRequest.proposal_id":
|
||
|
x.ProposalId = uint64(0)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalRequest 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_QueryProposalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalRequest.proposal_id":
|
||
|
value := x.ProposalId
|
||
|
return protoreflect.ValueOfUint64(value)
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalRequest 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_QueryProposalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalRequest.proposal_id":
|
||
|
x.ProposalId = value.Uint()
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalRequest 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_QueryProposalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalRequest.proposal_id":
|
||
|
panic(fmt.Errorf("field proposal_id of message cosmos.group.v1beta1.QueryProposalRequest is not mutable"))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalRequest 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_QueryProposalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalRequest.proposal_id":
|
||
|
return protoreflect.ValueOfUint64(uint64(0))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalRequest 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_QueryProposalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryProposalRequest", 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_QueryProposalRequest) 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_QueryProposalRequest) 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_QueryProposalRequest) 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_QueryProposalRequest) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryProposalRequest)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if x.ProposalId != 0 {
|
||
|
n += 1 + runtime.Sov(uint64(x.ProposalId))
|
||
|
}
|
||
|
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().(*QueryProposalRequest)
|
||
|
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.ProposalId != 0 {
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId))
|
||
|
i--
|
||
|
dAtA[i] = 0x8
|
||
|
}
|
||
|
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().(*QueryProposalRequest)
|
||
|
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: QueryProposalRequest: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
||
|
}
|
||
|
switch fieldNum {
|
||
|
case 1:
|
||
|
if wireType != 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
|
||
|
}
|
||
|
x.ProposalId = 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.ProposalId |= uint64(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_QueryProposalResponse protoreflect.MessageDescriptor
|
||
|
fd_QueryProposalResponse_proposal protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryProposalResponse = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryProposalResponse")
|
||
|
fd_QueryProposalResponse_proposal = md_QueryProposalResponse.Fields().ByName("proposal")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryProposalResponse)(nil)
|
||
|
|
||
|
type fastReflection_QueryProposalResponse QueryProposalResponse
|
||
|
|
||
|
func (x *QueryProposalResponse) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryProposalResponse)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalResponse) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[13]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryProposalResponse_messageType fastReflection_QueryProposalResponse_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryProposalResponse_messageType{}
|
||
|
|
||
|
type fastReflection_QueryProposalResponse_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryProposalResponse_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryProposalResponse)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryProposalResponse_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryProposalResponse)
|
||
|
}
|
||
|
func (x fastReflection_QueryProposalResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryProposalResponse
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryProposalResponse) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryProposalResponse
|
||
|
}
|
||
|
|
||
|
// 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_QueryProposalResponse) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryProposalResponse_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryProposalResponse) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryProposalResponse)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryProposalResponse) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryProposalResponse)(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_QueryProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.Proposal != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Proposal.ProtoReflect())
|
||
|
if !f(fd_QueryProposalResponse_proposal, 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_QueryProposalResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalResponse.proposal":
|
||
|
return x.Proposal != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalResponse 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_QueryProposalResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalResponse.proposal":
|
||
|
x.Proposal = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalResponse 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_QueryProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalResponse.proposal":
|
||
|
value := x.Proposal
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalResponse 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_QueryProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalResponse.proposal":
|
||
|
x.Proposal = value.Message().Interface().(*Proposal)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalResponse 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_QueryProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalResponse.proposal":
|
||
|
if x.Proposal == nil {
|
||
|
x.Proposal = new(Proposal)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Proposal.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalResponse 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_QueryProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalResponse.proposal":
|
||
|
m := new(Proposal)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalResponse 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_QueryProposalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryProposalResponse", 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_QueryProposalResponse) 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_QueryProposalResponse) 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_QueryProposalResponse) 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_QueryProposalResponse) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryProposalResponse)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if x.Proposal != nil {
|
||
|
l = options.Size(x.Proposal)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryProposalResponse)
|
||
|
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.Proposal != nil {
|
||
|
encoded, err := options.Marshal(x.Proposal)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
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().(*QueryProposalResponse)
|
||
|
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: QueryProposalResponse: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalResponse: 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 Proposal", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Proposal == nil {
|
||
|
x.Proposal = &Proposal{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proposal); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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_QueryProposalsByGroupPolicyRequest protoreflect.MessageDescriptor
|
||
|
fd_QueryProposalsByGroupPolicyRequest_address protoreflect.FieldDescriptor
|
||
|
fd_QueryProposalsByGroupPolicyRequest_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryProposalsByGroupPolicyRequest = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryProposalsByGroupPolicyRequest")
|
||
|
fd_QueryProposalsByGroupPolicyRequest_address = md_QueryProposalsByGroupPolicyRequest.Fields().ByName("address")
|
||
|
fd_QueryProposalsByGroupPolicyRequest_pagination = md_QueryProposalsByGroupPolicyRequest.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryProposalsByGroupPolicyRequest)(nil)
|
||
|
|
||
|
type fastReflection_QueryProposalsByGroupPolicyRequest QueryProposalsByGroupPolicyRequest
|
||
|
|
||
|
func (x *QueryProposalsByGroupPolicyRequest) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryProposalsByGroupPolicyRequest)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalsByGroupPolicyRequest) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[14]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryProposalsByGroupPolicyRequest_messageType fastReflection_QueryProposalsByGroupPolicyRequest_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryProposalsByGroupPolicyRequest_messageType{}
|
||
|
|
||
|
type fastReflection_QueryProposalsByGroupPolicyRequest_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryProposalsByGroupPolicyRequest_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryProposalsByGroupPolicyRequest)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryProposalsByGroupPolicyRequest_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryProposalsByGroupPolicyRequest)
|
||
|
}
|
||
|
func (x fastReflection_QueryProposalsByGroupPolicyRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryProposalsByGroupPolicyRequest
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryProposalsByGroupPolicyRequest) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryProposalsByGroupPolicyRequest
|
||
|
}
|
||
|
|
||
|
// 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_QueryProposalsByGroupPolicyRequest) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryProposalsByGroupPolicyRequest_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryProposalsByGroupPolicyRequest) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryProposalsByGroupPolicyRequest)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryProposalsByGroupPolicyRequest) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryProposalsByGroupPolicyRequest)(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_QueryProposalsByGroupPolicyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.Address != "" {
|
||
|
value := protoreflect.ValueOfString(x.Address)
|
||
|
if !f(fd_QueryProposalsByGroupPolicyRequest_address, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryProposalsByGroupPolicyRequest_pagination, 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_QueryProposalsByGroupPolicyRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest.address":
|
||
|
return x.Address != ""
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest 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_QueryProposalsByGroupPolicyRequest) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest.address":
|
||
|
x.Address = ""
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest 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_QueryProposalsByGroupPolicyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest.address":
|
||
|
value := x.Address
|
||
|
return protoreflect.ValueOfString(value)
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest 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_QueryProposalsByGroupPolicyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest.address":
|
||
|
x.Address = value.Interface().(string)
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest 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_QueryProposalsByGroupPolicyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageRequest)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest.address":
|
||
|
panic(fmt.Errorf("field address of message cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest is not mutable"))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest 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_QueryProposalsByGroupPolicyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest.address":
|
||
|
return protoreflect.ValueOfString("")
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest.pagination":
|
||
|
m := new(v1beta1.PageRequest)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest 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_QueryProposalsByGroupPolicyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest", 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_QueryProposalsByGroupPolicyRequest) 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_QueryProposalsByGroupPolicyRequest) 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_QueryProposalsByGroupPolicyRequest) 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_QueryProposalsByGroupPolicyRequest) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryProposalsByGroupPolicyRequest)
|
||
|
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.Address)
|
||
|
if l > 0 {
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryProposalsByGroupPolicyRequest)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if len(x.Address) > 0 {
|
||
|
i -= len(x.Address)
|
||
|
copy(dAtA[i:], x.Address)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
|
||
|
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().(*QueryProposalsByGroupPolicyRequest)
|
||
|
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: QueryProposalsByGroupPolicyRequest: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsByGroupPolicyRequest: 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 Address", 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.Address = string(dAtA[iNdEx:postIndex])
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageRequest{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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 = (*_QueryProposalsByGroupPolicyResponse_1_list)(nil)
|
||
|
|
||
|
type _QueryProposalsByGroupPolicyResponse_1_list struct {
|
||
|
list *[]*Proposal
|
||
|
}
|
||
|
|
||
|
func (x *_QueryProposalsByGroupPolicyResponse_1_list) Len() int {
|
||
|
if x.list == nil {
|
||
|
return 0
|
||
|
}
|
||
|
return len(*x.list)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryProposalsByGroupPolicyResponse_1_list) Get(i int) protoreflect.Value {
|
||
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryProposalsByGroupPolicyResponse_1_list) Set(i int, value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*Proposal)
|
||
|
(*x.list)[i] = concreteValue
|
||
|
}
|
||
|
|
||
|
func (x *_QueryProposalsByGroupPolicyResponse_1_list) Append(value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*Proposal)
|
||
|
*x.list = append(*x.list, concreteValue)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryProposalsByGroupPolicyResponse_1_list) AppendMutable() protoreflect.Value {
|
||
|
v := new(Proposal)
|
||
|
*x.list = append(*x.list, v)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryProposalsByGroupPolicyResponse_1_list) Truncate(n int) {
|
||
|
for i := n; i < len(*x.list); i++ {
|
||
|
(*x.list)[i] = nil
|
||
|
}
|
||
|
*x.list = (*x.list)[:n]
|
||
|
}
|
||
|
|
||
|
func (x *_QueryProposalsByGroupPolicyResponse_1_list) NewElement() protoreflect.Value {
|
||
|
v := new(Proposal)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryProposalsByGroupPolicyResponse_1_list) IsValid() bool {
|
||
|
return x.list != nil
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
md_QueryProposalsByGroupPolicyResponse protoreflect.MessageDescriptor
|
||
|
fd_QueryProposalsByGroupPolicyResponse_proposals protoreflect.FieldDescriptor
|
||
|
fd_QueryProposalsByGroupPolicyResponse_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryProposalsByGroupPolicyResponse = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryProposalsByGroupPolicyResponse")
|
||
|
fd_QueryProposalsByGroupPolicyResponse_proposals = md_QueryProposalsByGroupPolicyResponse.Fields().ByName("proposals")
|
||
|
fd_QueryProposalsByGroupPolicyResponse_pagination = md_QueryProposalsByGroupPolicyResponse.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryProposalsByGroupPolicyResponse)(nil)
|
||
|
|
||
|
type fastReflection_QueryProposalsByGroupPolicyResponse QueryProposalsByGroupPolicyResponse
|
||
|
|
||
|
func (x *QueryProposalsByGroupPolicyResponse) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryProposalsByGroupPolicyResponse)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalsByGroupPolicyResponse) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[15]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryProposalsByGroupPolicyResponse_messageType fastReflection_QueryProposalsByGroupPolicyResponse_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryProposalsByGroupPolicyResponse_messageType{}
|
||
|
|
||
|
type fastReflection_QueryProposalsByGroupPolicyResponse_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryProposalsByGroupPolicyResponse_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryProposalsByGroupPolicyResponse)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryProposalsByGroupPolicyResponse_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryProposalsByGroupPolicyResponse)
|
||
|
}
|
||
|
func (x fastReflection_QueryProposalsByGroupPolicyResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryProposalsByGroupPolicyResponse
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryProposalsByGroupPolicyResponse) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryProposalsByGroupPolicyResponse
|
||
|
}
|
||
|
|
||
|
// 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_QueryProposalsByGroupPolicyResponse) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryProposalsByGroupPolicyResponse_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryProposalsByGroupPolicyResponse) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryProposalsByGroupPolicyResponse)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryProposalsByGroupPolicyResponse) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryProposalsByGroupPolicyResponse)(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_QueryProposalsByGroupPolicyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if len(x.Proposals) != 0 {
|
||
|
value := protoreflect.ValueOfList(&_QueryProposalsByGroupPolicyResponse_1_list{list: &x.Proposals})
|
||
|
if !f(fd_QueryProposalsByGroupPolicyResponse_proposals, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryProposalsByGroupPolicyResponse_pagination, 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_QueryProposalsByGroupPolicyResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.proposals":
|
||
|
return len(x.Proposals) != 0
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse 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_QueryProposalsByGroupPolicyResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.proposals":
|
||
|
x.Proposals = nil
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse 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_QueryProposalsByGroupPolicyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.proposals":
|
||
|
if len(x.Proposals) == 0 {
|
||
|
return protoreflect.ValueOfList(&_QueryProposalsByGroupPolicyResponse_1_list{})
|
||
|
}
|
||
|
listValue := &_QueryProposalsByGroupPolicyResponse_1_list{list: &x.Proposals}
|
||
|
return protoreflect.ValueOfList(listValue)
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse 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_QueryProposalsByGroupPolicyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.proposals":
|
||
|
lv := value.List()
|
||
|
clv := lv.(*_QueryProposalsByGroupPolicyResponse_1_list)
|
||
|
x.Proposals = *clv.list
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse 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_QueryProposalsByGroupPolicyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.proposals":
|
||
|
if x.Proposals == nil {
|
||
|
x.Proposals = []*Proposal{}
|
||
|
}
|
||
|
value := &_QueryProposalsByGroupPolicyResponse_1_list{list: &x.Proposals}
|
||
|
return protoreflect.ValueOfList(value)
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageResponse)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse 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_QueryProposalsByGroupPolicyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.proposals":
|
||
|
list := []*Proposal{}
|
||
|
return protoreflect.ValueOfList(&_QueryProposalsByGroupPolicyResponse_1_list{list: &list})
|
||
|
case "cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.pagination":
|
||
|
m := new(v1beta1.PageResponse)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse 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_QueryProposalsByGroupPolicyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse", 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_QueryProposalsByGroupPolicyResponse) 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_QueryProposalsByGroupPolicyResponse) 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_QueryProposalsByGroupPolicyResponse) 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_QueryProposalsByGroupPolicyResponse) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryProposalsByGroupPolicyResponse)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if len(x.Proposals) > 0 {
|
||
|
for _, e := range x.Proposals {
|
||
|
l = options.Size(e)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryProposalsByGroupPolicyResponse)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if len(x.Proposals) > 0 {
|
||
|
for iNdEx := len(x.Proposals) - 1; iNdEx >= 0; iNdEx-- {
|
||
|
encoded, err := options.Marshal(x.Proposals[iNdEx])
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
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().(*QueryProposalsByGroupPolicyResponse)
|
||
|
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: QueryProposalsByGroupPolicyResponse: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryProposalsByGroupPolicyResponse: 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 Proposals", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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.Proposals = append(x.Proposals, &Proposal{})
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Proposals[len(x.Proposals)-1]); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageResponse{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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_QueryVoteByProposalVoterRequest protoreflect.MessageDescriptor
|
||
|
fd_QueryVoteByProposalVoterRequest_proposal_id protoreflect.FieldDescriptor
|
||
|
fd_QueryVoteByProposalVoterRequest_voter protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryVoteByProposalVoterRequest = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryVoteByProposalVoterRequest")
|
||
|
fd_QueryVoteByProposalVoterRequest_proposal_id = md_QueryVoteByProposalVoterRequest.Fields().ByName("proposal_id")
|
||
|
fd_QueryVoteByProposalVoterRequest_voter = md_QueryVoteByProposalVoterRequest.Fields().ByName("voter")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryVoteByProposalVoterRequest)(nil)
|
||
|
|
||
|
type fastReflection_QueryVoteByProposalVoterRequest QueryVoteByProposalVoterRequest
|
||
|
|
||
|
func (x *QueryVoteByProposalVoterRequest) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryVoteByProposalVoterRequest)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryVoteByProposalVoterRequest) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[16]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryVoteByProposalVoterRequest_messageType fastReflection_QueryVoteByProposalVoterRequest_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryVoteByProposalVoterRequest_messageType{}
|
||
|
|
||
|
type fastReflection_QueryVoteByProposalVoterRequest_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryVoteByProposalVoterRequest_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryVoteByProposalVoterRequest)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryVoteByProposalVoterRequest_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryVoteByProposalVoterRequest)
|
||
|
}
|
||
|
func (x fastReflection_QueryVoteByProposalVoterRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryVoteByProposalVoterRequest
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryVoteByProposalVoterRequest) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryVoteByProposalVoterRequest
|
||
|
}
|
||
|
|
||
|
// 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_QueryVoteByProposalVoterRequest) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryVoteByProposalVoterRequest_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryVoteByProposalVoterRequest) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryVoteByProposalVoterRequest)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryVoteByProposalVoterRequest) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryVoteByProposalVoterRequest)(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_QueryVoteByProposalVoterRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.ProposalId != uint64(0) {
|
||
|
value := protoreflect.ValueOfUint64(x.ProposalId)
|
||
|
if !f(fd_QueryVoteByProposalVoterRequest_proposal_id, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Voter != "" {
|
||
|
value := protoreflect.ValueOfString(x.Voter)
|
||
|
if !f(fd_QueryVoteByProposalVoterRequest_voter, 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_QueryVoteByProposalVoterRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterRequest.proposal_id":
|
||
|
return x.ProposalId != uint64(0)
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterRequest.voter":
|
||
|
return x.Voter != ""
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVoteByProposalVoterRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVoteByProposalVoterRequest 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_QueryVoteByProposalVoterRequest) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterRequest.proposal_id":
|
||
|
x.ProposalId = uint64(0)
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterRequest.voter":
|
||
|
x.Voter = ""
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVoteByProposalVoterRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVoteByProposalVoterRequest 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_QueryVoteByProposalVoterRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterRequest.proposal_id":
|
||
|
value := x.ProposalId
|
||
|
return protoreflect.ValueOfUint64(value)
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterRequest.voter":
|
||
|
value := x.Voter
|
||
|
return protoreflect.ValueOfString(value)
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVoteByProposalVoterRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVoteByProposalVoterRequest 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_QueryVoteByProposalVoterRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterRequest.proposal_id":
|
||
|
x.ProposalId = value.Uint()
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterRequest.voter":
|
||
|
x.Voter = value.Interface().(string)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVoteByProposalVoterRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVoteByProposalVoterRequest 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_QueryVoteByProposalVoterRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterRequest.proposal_id":
|
||
|
panic(fmt.Errorf("field proposal_id of message cosmos.group.v1beta1.QueryVoteByProposalVoterRequest is not mutable"))
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterRequest.voter":
|
||
|
panic(fmt.Errorf("field voter of message cosmos.group.v1beta1.QueryVoteByProposalVoterRequest is not mutable"))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVoteByProposalVoterRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVoteByProposalVoterRequest 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_QueryVoteByProposalVoterRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterRequest.proposal_id":
|
||
|
return protoreflect.ValueOfUint64(uint64(0))
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterRequest.voter":
|
||
|
return protoreflect.ValueOfString("")
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVoteByProposalVoterRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVoteByProposalVoterRequest 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_QueryVoteByProposalVoterRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryVoteByProposalVoterRequest", 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_QueryVoteByProposalVoterRequest) 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_QueryVoteByProposalVoterRequest) 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_QueryVoteByProposalVoterRequest) 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_QueryVoteByProposalVoterRequest) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryVoteByProposalVoterRequest)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if x.ProposalId != 0 {
|
||
|
n += 1 + runtime.Sov(uint64(x.ProposalId))
|
||
|
}
|
||
|
l = len(x.Voter)
|
||
|
if l > 0 {
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryVoteByProposalVoterRequest)
|
||
|
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 len(x.Voter) > 0 {
|
||
|
i -= len(x.Voter)
|
||
|
copy(dAtA[i:], x.Voter)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Voter)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if x.ProposalId != 0 {
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId))
|
||
|
i--
|
||
|
dAtA[i] = 0x8
|
||
|
}
|
||
|
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().(*QueryVoteByProposalVoterRequest)
|
||
|
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: QueryVoteByProposalVoterRequest: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVoteByProposalVoterRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
||
|
}
|
||
|
switch fieldNum {
|
||
|
case 1:
|
||
|
if wireType != 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
|
||
|
}
|
||
|
x.ProposalId = 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.ProposalId |= uint64(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Voter", 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.Voter = string(dAtA[iNdEx:postIndex])
|
||
|
iNdEx = postIndex
|
||
|
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_QueryVoteByProposalVoterResponse protoreflect.MessageDescriptor
|
||
|
fd_QueryVoteByProposalVoterResponse_vote protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryVoteByProposalVoterResponse = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryVoteByProposalVoterResponse")
|
||
|
fd_QueryVoteByProposalVoterResponse_vote = md_QueryVoteByProposalVoterResponse.Fields().ByName("vote")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryVoteByProposalVoterResponse)(nil)
|
||
|
|
||
|
type fastReflection_QueryVoteByProposalVoterResponse QueryVoteByProposalVoterResponse
|
||
|
|
||
|
func (x *QueryVoteByProposalVoterResponse) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryVoteByProposalVoterResponse)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryVoteByProposalVoterResponse) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[17]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryVoteByProposalVoterResponse_messageType fastReflection_QueryVoteByProposalVoterResponse_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryVoteByProposalVoterResponse_messageType{}
|
||
|
|
||
|
type fastReflection_QueryVoteByProposalVoterResponse_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryVoteByProposalVoterResponse_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryVoteByProposalVoterResponse)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryVoteByProposalVoterResponse_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryVoteByProposalVoterResponse)
|
||
|
}
|
||
|
func (x fastReflection_QueryVoteByProposalVoterResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryVoteByProposalVoterResponse
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryVoteByProposalVoterResponse) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryVoteByProposalVoterResponse
|
||
|
}
|
||
|
|
||
|
// 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_QueryVoteByProposalVoterResponse) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryVoteByProposalVoterResponse_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryVoteByProposalVoterResponse) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryVoteByProposalVoterResponse)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryVoteByProposalVoterResponse) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryVoteByProposalVoterResponse)(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_QueryVoteByProposalVoterResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.Vote != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Vote.ProtoReflect())
|
||
|
if !f(fd_QueryVoteByProposalVoterResponse_vote, 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_QueryVoteByProposalVoterResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterResponse.vote":
|
||
|
return x.Vote != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVoteByProposalVoterResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVoteByProposalVoterResponse 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_QueryVoteByProposalVoterResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterResponse.vote":
|
||
|
x.Vote = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVoteByProposalVoterResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVoteByProposalVoterResponse 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_QueryVoteByProposalVoterResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterResponse.vote":
|
||
|
value := x.Vote
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVoteByProposalVoterResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVoteByProposalVoterResponse 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_QueryVoteByProposalVoterResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterResponse.vote":
|
||
|
x.Vote = value.Message().Interface().(*Vote)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVoteByProposalVoterResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVoteByProposalVoterResponse 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_QueryVoteByProposalVoterResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterResponse.vote":
|
||
|
if x.Vote == nil {
|
||
|
x.Vote = new(Vote)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Vote.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVoteByProposalVoterResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVoteByProposalVoterResponse 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_QueryVoteByProposalVoterResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVoteByProposalVoterResponse.vote":
|
||
|
m := new(Vote)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVoteByProposalVoterResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVoteByProposalVoterResponse 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_QueryVoteByProposalVoterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryVoteByProposalVoterResponse", 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_QueryVoteByProposalVoterResponse) 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_QueryVoteByProposalVoterResponse) 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_QueryVoteByProposalVoterResponse) 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_QueryVoteByProposalVoterResponse) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryVoteByProposalVoterResponse)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if x.Vote != nil {
|
||
|
l = options.Size(x.Vote)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryVoteByProposalVoterResponse)
|
||
|
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.Vote != nil {
|
||
|
encoded, err := options.Marshal(x.Vote)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
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().(*QueryVoteByProposalVoterResponse)
|
||
|
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: QueryVoteByProposalVoterResponse: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVoteByProposalVoterResponse: 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 Vote", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Vote == nil {
|
||
|
x.Vote = &Vote{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Vote); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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_QueryVotesByProposalRequest protoreflect.MessageDescriptor
|
||
|
fd_QueryVotesByProposalRequest_proposal_id protoreflect.FieldDescriptor
|
||
|
fd_QueryVotesByProposalRequest_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryVotesByProposalRequest = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryVotesByProposalRequest")
|
||
|
fd_QueryVotesByProposalRequest_proposal_id = md_QueryVotesByProposalRequest.Fields().ByName("proposal_id")
|
||
|
fd_QueryVotesByProposalRequest_pagination = md_QueryVotesByProposalRequest.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryVotesByProposalRequest)(nil)
|
||
|
|
||
|
type fastReflection_QueryVotesByProposalRequest QueryVotesByProposalRequest
|
||
|
|
||
|
func (x *QueryVotesByProposalRequest) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryVotesByProposalRequest)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByProposalRequest) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[18]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryVotesByProposalRequest_messageType fastReflection_QueryVotesByProposalRequest_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryVotesByProposalRequest_messageType{}
|
||
|
|
||
|
type fastReflection_QueryVotesByProposalRequest_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryVotesByProposalRequest_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryVotesByProposalRequest)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryVotesByProposalRequest_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryVotesByProposalRequest)
|
||
|
}
|
||
|
func (x fastReflection_QueryVotesByProposalRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryVotesByProposalRequest
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryVotesByProposalRequest) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryVotesByProposalRequest
|
||
|
}
|
||
|
|
||
|
// 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_QueryVotesByProposalRequest) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryVotesByProposalRequest_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryVotesByProposalRequest) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryVotesByProposalRequest)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryVotesByProposalRequest) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryVotesByProposalRequest)(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_QueryVotesByProposalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.ProposalId != uint64(0) {
|
||
|
value := protoreflect.ValueOfUint64(x.ProposalId)
|
||
|
if !f(fd_QueryVotesByProposalRequest_proposal_id, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryVotesByProposalRequest_pagination, 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_QueryVotesByProposalRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalRequest.proposal_id":
|
||
|
return x.ProposalId != uint64(0)
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalRequest.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByProposalRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByProposalRequest 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_QueryVotesByProposalRequest) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalRequest.proposal_id":
|
||
|
x.ProposalId = uint64(0)
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalRequest.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByProposalRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByProposalRequest 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_QueryVotesByProposalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalRequest.proposal_id":
|
||
|
value := x.ProposalId
|
||
|
return protoreflect.ValueOfUint64(value)
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalRequest.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByProposalRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByProposalRequest 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_QueryVotesByProposalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalRequest.proposal_id":
|
||
|
x.ProposalId = value.Uint()
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalRequest.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByProposalRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByProposalRequest 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_QueryVotesByProposalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalRequest.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageRequest)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalRequest.proposal_id":
|
||
|
panic(fmt.Errorf("field proposal_id of message cosmos.group.v1beta1.QueryVotesByProposalRequest is not mutable"))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByProposalRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByProposalRequest 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_QueryVotesByProposalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalRequest.proposal_id":
|
||
|
return protoreflect.ValueOfUint64(uint64(0))
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalRequest.pagination":
|
||
|
m := new(v1beta1.PageRequest)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByProposalRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByProposalRequest 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_QueryVotesByProposalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryVotesByProposalRequest", 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_QueryVotesByProposalRequest) 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_QueryVotesByProposalRequest) 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_QueryVotesByProposalRequest) 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_QueryVotesByProposalRequest) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryVotesByProposalRequest)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if x.ProposalId != 0 {
|
||
|
n += 1 + runtime.Sov(uint64(x.ProposalId))
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryVotesByProposalRequest)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if x.ProposalId != 0 {
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(x.ProposalId))
|
||
|
i--
|
||
|
dAtA[i] = 0x8
|
||
|
}
|
||
|
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().(*QueryVotesByProposalRequest)
|
||
|
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: QueryVotesByProposalRequest: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotesByProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
||
|
}
|
||
|
switch fieldNum {
|
||
|
case 1:
|
||
|
if wireType != 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
|
||
|
}
|
||
|
x.ProposalId = 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.ProposalId |= uint64(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageRequest{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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 = (*_QueryVotesByProposalResponse_1_list)(nil)
|
||
|
|
||
|
type _QueryVotesByProposalResponse_1_list struct {
|
||
|
list *[]*Vote
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByProposalResponse_1_list) Len() int {
|
||
|
if x.list == nil {
|
||
|
return 0
|
||
|
}
|
||
|
return len(*x.list)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByProposalResponse_1_list) Get(i int) protoreflect.Value {
|
||
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByProposalResponse_1_list) Set(i int, value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*Vote)
|
||
|
(*x.list)[i] = concreteValue
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByProposalResponse_1_list) Append(value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*Vote)
|
||
|
*x.list = append(*x.list, concreteValue)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByProposalResponse_1_list) AppendMutable() protoreflect.Value {
|
||
|
v := new(Vote)
|
||
|
*x.list = append(*x.list, v)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByProposalResponse_1_list) Truncate(n int) {
|
||
|
for i := n; i < len(*x.list); i++ {
|
||
|
(*x.list)[i] = nil
|
||
|
}
|
||
|
*x.list = (*x.list)[:n]
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByProposalResponse_1_list) NewElement() protoreflect.Value {
|
||
|
v := new(Vote)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByProposalResponse_1_list) IsValid() bool {
|
||
|
return x.list != nil
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
md_QueryVotesByProposalResponse protoreflect.MessageDescriptor
|
||
|
fd_QueryVotesByProposalResponse_votes protoreflect.FieldDescriptor
|
||
|
fd_QueryVotesByProposalResponse_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryVotesByProposalResponse = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryVotesByProposalResponse")
|
||
|
fd_QueryVotesByProposalResponse_votes = md_QueryVotesByProposalResponse.Fields().ByName("votes")
|
||
|
fd_QueryVotesByProposalResponse_pagination = md_QueryVotesByProposalResponse.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryVotesByProposalResponse)(nil)
|
||
|
|
||
|
type fastReflection_QueryVotesByProposalResponse QueryVotesByProposalResponse
|
||
|
|
||
|
func (x *QueryVotesByProposalResponse) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryVotesByProposalResponse)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByProposalResponse) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[19]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryVotesByProposalResponse_messageType fastReflection_QueryVotesByProposalResponse_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryVotesByProposalResponse_messageType{}
|
||
|
|
||
|
type fastReflection_QueryVotesByProposalResponse_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryVotesByProposalResponse_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryVotesByProposalResponse)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryVotesByProposalResponse_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryVotesByProposalResponse)
|
||
|
}
|
||
|
func (x fastReflection_QueryVotesByProposalResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryVotesByProposalResponse
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryVotesByProposalResponse) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryVotesByProposalResponse
|
||
|
}
|
||
|
|
||
|
// 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_QueryVotesByProposalResponse) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryVotesByProposalResponse_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryVotesByProposalResponse) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryVotesByProposalResponse)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryVotesByProposalResponse) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryVotesByProposalResponse)(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_QueryVotesByProposalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if len(x.Votes) != 0 {
|
||
|
value := protoreflect.ValueOfList(&_QueryVotesByProposalResponse_1_list{list: &x.Votes})
|
||
|
if !f(fd_QueryVotesByProposalResponse_votes, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryVotesByProposalResponse_pagination, 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_QueryVotesByProposalResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalResponse.votes":
|
||
|
return len(x.Votes) != 0
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalResponse.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByProposalResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByProposalResponse 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_QueryVotesByProposalResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalResponse.votes":
|
||
|
x.Votes = nil
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalResponse.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByProposalResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByProposalResponse 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_QueryVotesByProposalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalResponse.votes":
|
||
|
if len(x.Votes) == 0 {
|
||
|
return protoreflect.ValueOfList(&_QueryVotesByProposalResponse_1_list{})
|
||
|
}
|
||
|
listValue := &_QueryVotesByProposalResponse_1_list{list: &x.Votes}
|
||
|
return protoreflect.ValueOfList(listValue)
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalResponse.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByProposalResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByProposalResponse 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_QueryVotesByProposalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalResponse.votes":
|
||
|
lv := value.List()
|
||
|
clv := lv.(*_QueryVotesByProposalResponse_1_list)
|
||
|
x.Votes = *clv.list
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalResponse.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByProposalResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByProposalResponse 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_QueryVotesByProposalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalResponse.votes":
|
||
|
if x.Votes == nil {
|
||
|
x.Votes = []*Vote{}
|
||
|
}
|
||
|
value := &_QueryVotesByProposalResponse_1_list{list: &x.Votes}
|
||
|
return protoreflect.ValueOfList(value)
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalResponse.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageResponse)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByProposalResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByProposalResponse 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_QueryVotesByProposalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalResponse.votes":
|
||
|
list := []*Vote{}
|
||
|
return protoreflect.ValueOfList(&_QueryVotesByProposalResponse_1_list{list: &list})
|
||
|
case "cosmos.group.v1beta1.QueryVotesByProposalResponse.pagination":
|
||
|
m := new(v1beta1.PageResponse)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByProposalResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByProposalResponse 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_QueryVotesByProposalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryVotesByProposalResponse", 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_QueryVotesByProposalResponse) 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_QueryVotesByProposalResponse) 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_QueryVotesByProposalResponse) 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_QueryVotesByProposalResponse) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryVotesByProposalResponse)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if len(x.Votes) > 0 {
|
||
|
for _, e := range x.Votes {
|
||
|
l = options.Size(e)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryVotesByProposalResponse)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if len(x.Votes) > 0 {
|
||
|
for iNdEx := len(x.Votes) - 1; iNdEx >= 0; iNdEx-- {
|
||
|
encoded, err := options.Marshal(x.Votes[iNdEx])
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
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().(*QueryVotesByProposalResponse)
|
||
|
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: QueryVotesByProposalResponse: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotesByProposalResponse: 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 Votes", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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.Votes = append(x.Votes, &Vote{})
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Votes[len(x.Votes)-1]); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageResponse{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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_QueryVotesByVoterRequest protoreflect.MessageDescriptor
|
||
|
fd_QueryVotesByVoterRequest_voter protoreflect.FieldDescriptor
|
||
|
fd_QueryVotesByVoterRequest_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryVotesByVoterRequest = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryVotesByVoterRequest")
|
||
|
fd_QueryVotesByVoterRequest_voter = md_QueryVotesByVoterRequest.Fields().ByName("voter")
|
||
|
fd_QueryVotesByVoterRequest_pagination = md_QueryVotesByVoterRequest.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryVotesByVoterRequest)(nil)
|
||
|
|
||
|
type fastReflection_QueryVotesByVoterRequest QueryVotesByVoterRequest
|
||
|
|
||
|
func (x *QueryVotesByVoterRequest) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryVotesByVoterRequest)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByVoterRequest) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[20]
|
||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
if ms.LoadMessageInfo() == nil {
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
return ms
|
||
|
}
|
||
|
return mi.MessageOf(x)
|
||
|
}
|
||
|
|
||
|
var _fastReflection_QueryVotesByVoterRequest_messageType fastReflection_QueryVotesByVoterRequest_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryVotesByVoterRequest_messageType{}
|
||
|
|
||
|
type fastReflection_QueryVotesByVoterRequest_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryVotesByVoterRequest_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryVotesByVoterRequest)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryVotesByVoterRequest_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryVotesByVoterRequest)
|
||
|
}
|
||
|
func (x fastReflection_QueryVotesByVoterRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryVotesByVoterRequest
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryVotesByVoterRequest) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryVotesByVoterRequest
|
||
|
}
|
||
|
|
||
|
// 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_QueryVotesByVoterRequest) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryVotesByVoterRequest_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryVotesByVoterRequest) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryVotesByVoterRequest)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryVotesByVoterRequest) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryVotesByVoterRequest)(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_QueryVotesByVoterRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.Voter != "" {
|
||
|
value := protoreflect.ValueOfString(x.Voter)
|
||
|
if !f(fd_QueryVotesByVoterRequest_voter, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryVotesByVoterRequest_pagination, 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_QueryVotesByVoterRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterRequest.voter":
|
||
|
return x.Voter != ""
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterRequest.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByVoterRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByVoterRequest 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_QueryVotesByVoterRequest) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterRequest.voter":
|
||
|
x.Voter = ""
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterRequest.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByVoterRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByVoterRequest 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_QueryVotesByVoterRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterRequest.voter":
|
||
|
value := x.Voter
|
||
|
return protoreflect.ValueOfString(value)
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterRequest.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByVoterRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByVoterRequest 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_QueryVotesByVoterRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterRequest.voter":
|
||
|
x.Voter = value.Interface().(string)
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterRequest.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByVoterRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByVoterRequest 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_QueryVotesByVoterRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterRequest.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageRequest)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterRequest.voter":
|
||
|
panic(fmt.Errorf("field voter of message cosmos.group.v1beta1.QueryVotesByVoterRequest is not mutable"))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByVoterRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByVoterRequest 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_QueryVotesByVoterRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterRequest.voter":
|
||
|
return protoreflect.ValueOfString("")
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterRequest.pagination":
|
||
|
m := new(v1beta1.PageRequest)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByVoterRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByVoterRequest 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_QueryVotesByVoterRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryVotesByVoterRequest", 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_QueryVotesByVoterRequest) 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_QueryVotesByVoterRequest) 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_QueryVotesByVoterRequest) 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_QueryVotesByVoterRequest) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryVotesByVoterRequest)
|
||
|
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.Voter)
|
||
|
if l > 0 {
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryVotesByVoterRequest)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if len(x.Voter) > 0 {
|
||
|
i -= len(x.Voter)
|
||
|
copy(dAtA[i:], x.Voter)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Voter)))
|
||
|
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().(*QueryVotesByVoterRequest)
|
||
|
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: QueryVotesByVoterRequest: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotesByVoterRequest: 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 Voter", 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.Voter = string(dAtA[iNdEx:postIndex])
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageRequest{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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 = (*_QueryVotesByVoterResponse_1_list)(nil)
|
||
|
|
||
|
type _QueryVotesByVoterResponse_1_list struct {
|
||
|
list *[]*Vote
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByVoterResponse_1_list) Len() int {
|
||
|
if x.list == nil {
|
||
|
return 0
|
||
|
}
|
||
|
return len(*x.list)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByVoterResponse_1_list) Get(i int) protoreflect.Value {
|
||
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByVoterResponse_1_list) Set(i int, value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*Vote)
|
||
|
(*x.list)[i] = concreteValue
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByVoterResponse_1_list) Append(value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*Vote)
|
||
|
*x.list = append(*x.list, concreteValue)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByVoterResponse_1_list) AppendMutable() protoreflect.Value {
|
||
|
v := new(Vote)
|
||
|
*x.list = append(*x.list, v)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByVoterResponse_1_list) Truncate(n int) {
|
||
|
for i := n; i < len(*x.list); i++ {
|
||
|
(*x.list)[i] = nil
|
||
|
}
|
||
|
*x.list = (*x.list)[:n]
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByVoterResponse_1_list) NewElement() protoreflect.Value {
|
||
|
v := new(Vote)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryVotesByVoterResponse_1_list) IsValid() bool {
|
||
|
return x.list != nil
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
md_QueryVotesByVoterResponse protoreflect.MessageDescriptor
|
||
|
fd_QueryVotesByVoterResponse_votes protoreflect.FieldDescriptor
|
||
|
fd_QueryVotesByVoterResponse_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryVotesByVoterResponse = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryVotesByVoterResponse")
|
||
|
fd_QueryVotesByVoterResponse_votes = md_QueryVotesByVoterResponse.Fields().ByName("votes")
|
||
|
fd_QueryVotesByVoterResponse_pagination = md_QueryVotesByVoterResponse.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryVotesByVoterResponse)(nil)
|
||
|
|
||
|
type fastReflection_QueryVotesByVoterResponse QueryVotesByVoterResponse
|
||
|
|
||
|
func (x *QueryVotesByVoterResponse) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryVotesByVoterResponse)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByVoterResponse) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[21]
|
||
|
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_QueryVotesByVoterResponse_messageType fastReflection_QueryVotesByVoterResponse_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryVotesByVoterResponse_messageType{}
|
||
|
|
||
|
type fastReflection_QueryVotesByVoterResponse_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryVotesByVoterResponse_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryVotesByVoterResponse)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryVotesByVoterResponse_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryVotesByVoterResponse)
|
||
|
}
|
||
|
func (x fastReflection_QueryVotesByVoterResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryVotesByVoterResponse
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryVotesByVoterResponse) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryVotesByVoterResponse
|
||
|
}
|
||
|
|
||
|
// 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_QueryVotesByVoterResponse) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryVotesByVoterResponse_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryVotesByVoterResponse) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryVotesByVoterResponse)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryVotesByVoterResponse) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryVotesByVoterResponse)(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_QueryVotesByVoterResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if len(x.Votes) != 0 {
|
||
|
value := protoreflect.ValueOfList(&_QueryVotesByVoterResponse_1_list{list: &x.Votes})
|
||
|
if !f(fd_QueryVotesByVoterResponse_votes, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryVotesByVoterResponse_pagination, 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_QueryVotesByVoterResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterResponse.votes":
|
||
|
return len(x.Votes) != 0
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterResponse.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByVoterResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByVoterResponse 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_QueryVotesByVoterResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterResponse.votes":
|
||
|
x.Votes = nil
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterResponse.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByVoterResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByVoterResponse 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_QueryVotesByVoterResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterResponse.votes":
|
||
|
if len(x.Votes) == 0 {
|
||
|
return protoreflect.ValueOfList(&_QueryVotesByVoterResponse_1_list{})
|
||
|
}
|
||
|
listValue := &_QueryVotesByVoterResponse_1_list{list: &x.Votes}
|
||
|
return protoreflect.ValueOfList(listValue)
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterResponse.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByVoterResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByVoterResponse 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_QueryVotesByVoterResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterResponse.votes":
|
||
|
lv := value.List()
|
||
|
clv := lv.(*_QueryVotesByVoterResponse_1_list)
|
||
|
x.Votes = *clv.list
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterResponse.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByVoterResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByVoterResponse 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_QueryVotesByVoterResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterResponse.votes":
|
||
|
if x.Votes == nil {
|
||
|
x.Votes = []*Vote{}
|
||
|
}
|
||
|
value := &_QueryVotesByVoterResponse_1_list{list: &x.Votes}
|
||
|
return protoreflect.ValueOfList(value)
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterResponse.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageResponse)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByVoterResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByVoterResponse 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_QueryVotesByVoterResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterResponse.votes":
|
||
|
list := []*Vote{}
|
||
|
return protoreflect.ValueOfList(&_QueryVotesByVoterResponse_1_list{list: &list})
|
||
|
case "cosmos.group.v1beta1.QueryVotesByVoterResponse.pagination":
|
||
|
m := new(v1beta1.PageResponse)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryVotesByVoterResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryVotesByVoterResponse 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_QueryVotesByVoterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryVotesByVoterResponse", 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_QueryVotesByVoterResponse) 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_QueryVotesByVoterResponse) 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_QueryVotesByVoterResponse) 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_QueryVotesByVoterResponse) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryVotesByVoterResponse)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if len(x.Votes) > 0 {
|
||
|
for _, e := range x.Votes {
|
||
|
l = options.Size(e)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryVotesByVoterResponse)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if len(x.Votes) > 0 {
|
||
|
for iNdEx := len(x.Votes) - 1; iNdEx >= 0; iNdEx-- {
|
||
|
encoded, err := options.Marshal(x.Votes[iNdEx])
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
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().(*QueryVotesByVoterResponse)
|
||
|
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: QueryVotesByVoterResponse: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVotesByVoterResponse: 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 Votes", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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.Votes = append(x.Votes, &Vote{})
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Votes[len(x.Votes)-1]); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageResponse{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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_QueryGroupsByMemberRequest protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupsByMemberRequest_address protoreflect.FieldDescriptor
|
||
|
fd_QueryGroupsByMemberRequest_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupsByMemberRequest = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupsByMemberRequest")
|
||
|
fd_QueryGroupsByMemberRequest_address = md_QueryGroupsByMemberRequest.Fields().ByName("address")
|
||
|
fd_QueryGroupsByMemberRequest_pagination = md_QueryGroupsByMemberRequest.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupsByMemberRequest)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupsByMemberRequest QueryGroupsByMemberRequest
|
||
|
|
||
|
func (x *QueryGroupsByMemberRequest) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupsByMemberRequest)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByMemberRequest) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[22]
|
||
|
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_QueryGroupsByMemberRequest_messageType fastReflection_QueryGroupsByMemberRequest_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupsByMemberRequest_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupsByMemberRequest_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupsByMemberRequest_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupsByMemberRequest)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupsByMemberRequest_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupsByMemberRequest)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupsByMemberRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupsByMemberRequest
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupsByMemberRequest) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupsByMemberRequest
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupsByMemberRequest) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupsByMemberRequest_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupsByMemberRequest) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupsByMemberRequest)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupsByMemberRequest) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupsByMemberRequest)(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_QueryGroupsByMemberRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if x.Address != "" {
|
||
|
value := protoreflect.ValueOfString(x.Address)
|
||
|
if !f(fd_QueryGroupsByMemberRequest_address, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryGroupsByMemberRequest_pagination, 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_QueryGroupsByMemberRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberRequest.address":
|
||
|
return x.Address != ""
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberRequest.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByMemberRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByMemberRequest 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_QueryGroupsByMemberRequest) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberRequest.address":
|
||
|
x.Address = ""
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberRequest.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByMemberRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByMemberRequest 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_QueryGroupsByMemberRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberRequest.address":
|
||
|
value := x.Address
|
||
|
return protoreflect.ValueOfString(value)
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberRequest.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByMemberRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByMemberRequest 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_QueryGroupsByMemberRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberRequest.address":
|
||
|
x.Address = value.Interface().(string)
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberRequest.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByMemberRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByMemberRequest 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_QueryGroupsByMemberRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberRequest.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageRequest)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberRequest.address":
|
||
|
panic(fmt.Errorf("field address of message cosmos.group.v1beta1.QueryGroupsByMemberRequest is not mutable"))
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByMemberRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByMemberRequest 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_QueryGroupsByMemberRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberRequest.address":
|
||
|
return protoreflect.ValueOfString("")
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberRequest.pagination":
|
||
|
m := new(v1beta1.PageRequest)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByMemberRequest"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByMemberRequest 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_QueryGroupsByMemberRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupsByMemberRequest", 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_QueryGroupsByMemberRequest) 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_QueryGroupsByMemberRequest) 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_QueryGroupsByMemberRequest) 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_QueryGroupsByMemberRequest) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupsByMemberRequest)
|
||
|
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.Address)
|
||
|
if l > 0 {
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryGroupsByMemberRequest)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if len(x.Address) > 0 {
|
||
|
i -= len(x.Address)
|
||
|
copy(dAtA[i:], x.Address)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address)))
|
||
|
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().(*QueryGroupsByMemberRequest)
|
||
|
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: QueryGroupsByMemberRequest: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsByMemberRequest: 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 Address", 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.Address = string(dAtA[iNdEx:postIndex])
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageRequest{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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 = (*_QueryGroupsByMemberResponse_1_list)(nil)
|
||
|
|
||
|
type _QueryGroupsByMemberResponse_1_list struct {
|
||
|
list *[]*GroupInfo
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByMemberResponse_1_list) Len() int {
|
||
|
if x.list == nil {
|
||
|
return 0
|
||
|
}
|
||
|
return len(*x.list)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByMemberResponse_1_list) Get(i int) protoreflect.Value {
|
||
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByMemberResponse_1_list) Set(i int, value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*GroupInfo)
|
||
|
(*x.list)[i] = concreteValue
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByMemberResponse_1_list) Append(value protoreflect.Value) {
|
||
|
valueUnwrapped := value.Message()
|
||
|
concreteValue := valueUnwrapped.Interface().(*GroupInfo)
|
||
|
*x.list = append(*x.list, concreteValue)
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByMemberResponse_1_list) AppendMutable() protoreflect.Value {
|
||
|
v := new(GroupInfo)
|
||
|
*x.list = append(*x.list, v)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByMemberResponse_1_list) Truncate(n int) {
|
||
|
for i := n; i < len(*x.list); i++ {
|
||
|
(*x.list)[i] = nil
|
||
|
}
|
||
|
*x.list = (*x.list)[:n]
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByMemberResponse_1_list) NewElement() protoreflect.Value {
|
||
|
v := new(GroupInfo)
|
||
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
||
|
}
|
||
|
|
||
|
func (x *_QueryGroupsByMemberResponse_1_list) IsValid() bool {
|
||
|
return x.list != nil
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
md_QueryGroupsByMemberResponse protoreflect.MessageDescriptor
|
||
|
fd_QueryGroupsByMemberResponse_groups protoreflect.FieldDescriptor
|
||
|
fd_QueryGroupsByMemberResponse_pagination protoreflect.FieldDescriptor
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
file_cosmos_group_v1beta1_query_proto_init()
|
||
|
md_QueryGroupsByMemberResponse = File_cosmos_group_v1beta1_query_proto.Messages().ByName("QueryGroupsByMemberResponse")
|
||
|
fd_QueryGroupsByMemberResponse_groups = md_QueryGroupsByMemberResponse.Fields().ByName("groups")
|
||
|
fd_QueryGroupsByMemberResponse_pagination = md_QueryGroupsByMemberResponse.Fields().ByName("pagination")
|
||
|
}
|
||
|
|
||
|
var _ protoreflect.Message = (*fastReflection_QueryGroupsByMemberResponse)(nil)
|
||
|
|
||
|
type fastReflection_QueryGroupsByMemberResponse QueryGroupsByMemberResponse
|
||
|
|
||
|
func (x *QueryGroupsByMemberResponse) ProtoReflect() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupsByMemberResponse)(x)
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByMemberResponse) slowProtoReflect() protoreflect.Message {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[23]
|
||
|
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_QueryGroupsByMemberResponse_messageType fastReflection_QueryGroupsByMemberResponse_messageType
|
||
|
var _ protoreflect.MessageType = fastReflection_QueryGroupsByMemberResponse_messageType{}
|
||
|
|
||
|
type fastReflection_QueryGroupsByMemberResponse_messageType struct{}
|
||
|
|
||
|
func (x fastReflection_QueryGroupsByMemberResponse_messageType) Zero() protoreflect.Message {
|
||
|
return (*fastReflection_QueryGroupsByMemberResponse)(nil)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupsByMemberResponse_messageType) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupsByMemberResponse)
|
||
|
}
|
||
|
func (x fastReflection_QueryGroupsByMemberResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupsByMemberResponse
|
||
|
}
|
||
|
|
||
|
// Descriptor returns message descriptor, which contains only the protobuf
|
||
|
// type information for the message.
|
||
|
func (x *fastReflection_QueryGroupsByMemberResponse) Descriptor() protoreflect.MessageDescriptor {
|
||
|
return md_QueryGroupsByMemberResponse
|
||
|
}
|
||
|
|
||
|
// 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_QueryGroupsByMemberResponse) Type() protoreflect.MessageType {
|
||
|
return _fastReflection_QueryGroupsByMemberResponse_messageType
|
||
|
}
|
||
|
|
||
|
// New returns a newly allocated and mutable empty message.
|
||
|
func (x *fastReflection_QueryGroupsByMemberResponse) New() protoreflect.Message {
|
||
|
return new(fastReflection_QueryGroupsByMemberResponse)
|
||
|
}
|
||
|
|
||
|
// Interface unwraps the message reflection interface and
|
||
|
// returns the underlying ProtoMessage interface.
|
||
|
func (x *fastReflection_QueryGroupsByMemberResponse) Interface() protoreflect.ProtoMessage {
|
||
|
return (*QueryGroupsByMemberResponse)(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_QueryGroupsByMemberResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||
|
if len(x.Groups) != 0 {
|
||
|
value := protoreflect.ValueOfList(&_QueryGroupsByMemberResponse_1_list{list: &x.Groups})
|
||
|
if !f(fd_QueryGroupsByMemberResponse_groups, value) {
|
||
|
return
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
if !f(fd_QueryGroupsByMemberResponse_pagination, 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_QueryGroupsByMemberResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberResponse.groups":
|
||
|
return len(x.Groups) != 0
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberResponse.pagination":
|
||
|
return x.Pagination != nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByMemberResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByMemberResponse 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_QueryGroupsByMemberResponse) Clear(fd protoreflect.FieldDescriptor) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberResponse.groups":
|
||
|
x.Groups = nil
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberResponse.pagination":
|
||
|
x.Pagination = nil
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByMemberResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByMemberResponse 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_QueryGroupsByMemberResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch descriptor.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberResponse.groups":
|
||
|
if len(x.Groups) == 0 {
|
||
|
return protoreflect.ValueOfList(&_QueryGroupsByMemberResponse_1_list{})
|
||
|
}
|
||
|
listValue := &_QueryGroupsByMemberResponse_1_list{list: &x.Groups}
|
||
|
return protoreflect.ValueOfList(listValue)
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberResponse.pagination":
|
||
|
value := x.Pagination
|
||
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
||
|
default:
|
||
|
if descriptor.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByMemberResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByMemberResponse 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_QueryGroupsByMemberResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberResponse.groups":
|
||
|
lv := value.List()
|
||
|
clv := lv.(*_QueryGroupsByMemberResponse_1_list)
|
||
|
x.Groups = *clv.list
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberResponse.pagination":
|
||
|
x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByMemberResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByMemberResponse 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_QueryGroupsByMemberResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberResponse.groups":
|
||
|
if x.Groups == nil {
|
||
|
x.Groups = []*GroupInfo{}
|
||
|
}
|
||
|
value := &_QueryGroupsByMemberResponse_1_list{list: &x.Groups}
|
||
|
return protoreflect.ValueOfList(value)
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberResponse.pagination":
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = new(v1beta1.PageResponse)
|
||
|
}
|
||
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByMemberResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByMemberResponse 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_QueryGroupsByMemberResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||
|
switch fd.FullName() {
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberResponse.groups":
|
||
|
list := []*GroupInfo{}
|
||
|
return protoreflect.ValueOfList(&_QueryGroupsByMemberResponse_1_list{list: &list})
|
||
|
case "cosmos.group.v1beta1.QueryGroupsByMemberResponse.pagination":
|
||
|
m := new(v1beta1.PageResponse)
|
||
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
||
|
default:
|
||
|
if fd.IsExtension() {
|
||
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.group.v1beta1.QueryGroupsByMemberResponse"))
|
||
|
}
|
||
|
panic(fmt.Errorf("message cosmos.group.v1beta1.QueryGroupsByMemberResponse 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_QueryGroupsByMemberResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
||
|
switch d.FullName() {
|
||
|
default:
|
||
|
panic(fmt.Errorf("%s is not a oneof field in cosmos.group.v1beta1.QueryGroupsByMemberResponse", 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_QueryGroupsByMemberResponse) 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_QueryGroupsByMemberResponse) 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_QueryGroupsByMemberResponse) 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_QueryGroupsByMemberResponse) ProtoMethods() *protoiface.Methods {
|
||
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
||
|
x := input.Message.Interface().(*QueryGroupsByMemberResponse)
|
||
|
if x == nil {
|
||
|
return protoiface.SizeOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Size: 0,
|
||
|
}
|
||
|
}
|
||
|
options := runtime.SizeInputToOptions(input)
|
||
|
_ = options
|
||
|
var n int
|
||
|
var l int
|
||
|
_ = l
|
||
|
if len(x.Groups) > 0 {
|
||
|
for _, e := range x.Groups {
|
||
|
l = options.Size(e)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
}
|
||
|
if x.Pagination != nil {
|
||
|
l = options.Size(x.Pagination)
|
||
|
n += 1 + l + runtime.Sov(uint64(l))
|
||
|
}
|
||
|
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().(*QueryGroupsByMemberResponse)
|
||
|
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.Pagination != nil {
|
||
|
encoded, err := options.Marshal(x.Pagination)
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
i--
|
||
|
dAtA[i] = 0x12
|
||
|
}
|
||
|
if len(x.Groups) > 0 {
|
||
|
for iNdEx := len(x.Groups) - 1; iNdEx >= 0; iNdEx-- {
|
||
|
encoded, err := options.Marshal(x.Groups[iNdEx])
|
||
|
if err != nil {
|
||
|
return protoiface.MarshalOutput{
|
||
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
||
|
Buf: input.Buf,
|
||
|
}, err
|
||
|
}
|
||
|
i -= len(encoded)
|
||
|
copy(dAtA[i:], encoded)
|
||
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
||
|
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().(*QueryGroupsByMemberResponse)
|
||
|
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: QueryGroupsByMemberResponse: wiretype end group for non-group")
|
||
|
}
|
||
|
if fieldNum <= 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGroupsByMemberResponse: 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 Groups", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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.Groups = append(x.Groups, &GroupInfo{})
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Groups[len(x.Groups)-1]); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
case 2:
|
||
|
if wireType != 2 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||
|
}
|
||
|
var msglen int
|
||
|
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++
|
||
|
msglen |= int(b&0x7F) << shift
|
||
|
if b < 0x80 {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if msglen < 0 {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
||
|
}
|
||
|
postIndex := iNdEx + msglen
|
||
|
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
|
||
|
}
|
||
|
if x.Pagination == nil {
|
||
|
x.Pagination = &v1beta1.PageResponse{}
|
||
|
}
|
||
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
||
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
||
|
}
|
||
|
iNdEx = postIndex
|
||
|
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,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// protoc-gen-go v1.27.0
|
||
|
// protoc (unknown)
|
||
|
// source: cosmos/group/v1beta1/query.proto
|
||
|
|
||
|
const (
|
||
|
// Verify that this generated code is sufficiently up-to-date.
|
||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
|
)
|
||
|
|
||
|
// QueryGroupInfoRequest is the Query/GroupInfo request type.
|
||
|
type QueryGroupInfoRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// group_id is the unique ID of the group.
|
||
|
GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupInfoRequest) Reset() {
|
||
|
*x = QueryGroupInfoRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[0]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupInfoRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupInfoRequest) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupInfoRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupInfoRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{0}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupInfoRequest) GetGroupId() uint64 {
|
||
|
if x != nil {
|
||
|
return x.GroupId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
// QueryGroupInfoResponse is the Query/GroupInfo response type.
|
||
|
type QueryGroupInfoResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// info is the GroupInfo for the group.
|
||
|
Info *GroupInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupInfoResponse) Reset() {
|
||
|
*x = QueryGroupInfoResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[1]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupInfoResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupInfoResponse) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupInfoResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupInfoResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{1}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupInfoResponse) GetInfo() *GroupInfo {
|
||
|
if x != nil {
|
||
|
return x.Info
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type.
|
||
|
type QueryGroupPolicyInfoRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// address is the account address of the group policy.
|
||
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPolicyInfoRequest) Reset() {
|
||
|
*x = QueryGroupPolicyInfoRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[2]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPolicyInfoRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupPolicyInfoRequest) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupPolicyInfoRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupPolicyInfoRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{2}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPolicyInfoRequest) GetAddress() string {
|
||
|
if x != nil {
|
||
|
return x.Address
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
// QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type.
|
||
|
type QueryGroupPolicyInfoResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// info is the GroupPolicyInfo for the group policy.
|
||
|
Info *GroupPolicyInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPolicyInfoResponse) Reset() {
|
||
|
*x = QueryGroupPolicyInfoResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[3]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPolicyInfoResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupPolicyInfoResponse) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupPolicyInfoResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupPolicyInfoResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{3}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPolicyInfoResponse) GetInfo() *GroupPolicyInfo {
|
||
|
if x != nil {
|
||
|
return x.Info
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryGroupMembersRequest is the Query/GroupMembers request type.
|
||
|
type QueryGroupMembersRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// group_id is the unique ID of the group.
|
||
|
GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
||
|
// pagination defines an optional pagination for the request.
|
||
|
Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupMembersRequest) Reset() {
|
||
|
*x = QueryGroupMembersRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[4]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupMembersRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupMembersRequest) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupMembersRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupMembersRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{4}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupMembersRequest) GetGroupId() uint64 {
|
||
|
if x != nil {
|
||
|
return x.GroupId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupMembersRequest) GetPagination() *v1beta1.PageRequest {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryGroupMembersResponse is the Query/GroupMembersResponse response type.
|
||
|
type QueryGroupMembersResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// members are the members of the group with given group_id.
|
||
|
Members []*GroupMember `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
|
||
|
// pagination defines the pagination in the response.
|
||
|
Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupMembersResponse) Reset() {
|
||
|
*x = QueryGroupMembersResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[5]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupMembersResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupMembersResponse) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupMembersResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupMembersResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{5}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupMembersResponse) GetMembers() []*GroupMember {
|
||
|
if x != nil {
|
||
|
return x.Members
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupMembersResponse) GetPagination() *v1beta1.PageResponse {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type.
|
||
|
type QueryGroupsByAdminRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// admin is the account address of a group's admin.
|
||
|
Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
|
||
|
// pagination defines an optional pagination for the request.
|
||
|
Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByAdminRequest) Reset() {
|
||
|
*x = QueryGroupsByAdminRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[6]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByAdminRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupsByAdminRequest) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupsByAdminRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupsByAdminRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{6}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByAdminRequest) GetAdmin() string {
|
||
|
if x != nil {
|
||
|
return x.Admin
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByAdminRequest) GetPagination() *v1beta1.PageRequest {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type.
|
||
|
type QueryGroupsByAdminResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// groups are the groups info with the provided admin.
|
||
|
Groups []*GroupInfo `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
|
||
|
// pagination defines the pagination in the response.
|
||
|
Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByAdminResponse) Reset() {
|
||
|
*x = QueryGroupsByAdminResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[7]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByAdminResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupsByAdminResponse) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupsByAdminResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupsByAdminResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{7}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByAdminResponse) GetGroups() []*GroupInfo {
|
||
|
if x != nil {
|
||
|
return x.Groups
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByAdminResponse) GetPagination() *v1beta1.PageResponse {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type.
|
||
|
type QueryGroupPoliciesByGroupRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// group_id is the unique ID of the group policy's group.
|
||
|
GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
||
|
// pagination defines an optional pagination for the request.
|
||
|
Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByGroupRequest) Reset() {
|
||
|
*x = QueryGroupPoliciesByGroupRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[8]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByGroupRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupPoliciesByGroupRequest) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupPoliciesByGroupRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupPoliciesByGroupRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{8}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByGroupRequest) GetGroupId() uint64 {
|
||
|
if x != nil {
|
||
|
return x.GroupId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByGroupRequest) GetPagination() *v1beta1.PageRequest {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type.
|
||
|
type QueryGroupPoliciesByGroupResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// group_policies are the group policies info associated with the provided group.
|
||
|
GroupPolicies []*GroupPolicyInfo `protobuf:"bytes,1,rep,name=group_policies,json=groupPolicies,proto3" json:"group_policies,omitempty"`
|
||
|
// pagination defines the pagination in the response.
|
||
|
Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByGroupResponse) Reset() {
|
||
|
*x = QueryGroupPoliciesByGroupResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[9]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByGroupResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupPoliciesByGroupResponse) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupPoliciesByGroupResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupPoliciesByGroupResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{9}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByGroupResponse) GetGroupPolicies() []*GroupPolicyInfo {
|
||
|
if x != nil {
|
||
|
return x.GroupPolicies
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByGroupResponse) GetPagination() *v1beta1.PageResponse {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type.
|
||
|
type QueryGroupPoliciesByAdminRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// admin is the admin address of the group policy.
|
||
|
Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
|
||
|
// pagination defines an optional pagination for the request.
|
||
|
Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByAdminRequest) Reset() {
|
||
|
*x = QueryGroupPoliciesByAdminRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[10]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByAdminRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupPoliciesByAdminRequest) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupPoliciesByAdminRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupPoliciesByAdminRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{10}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByAdminRequest) GetAdmin() string {
|
||
|
if x != nil {
|
||
|
return x.Admin
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByAdminRequest) GetPagination() *v1beta1.PageRequest {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type.
|
||
|
type QueryGroupPoliciesByAdminResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// group_policies are the group policies info with provided admin.
|
||
|
GroupPolicies []*GroupPolicyInfo `protobuf:"bytes,1,rep,name=group_policies,json=groupPolicies,proto3" json:"group_policies,omitempty"`
|
||
|
// pagination defines the pagination in the response.
|
||
|
Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByAdminResponse) Reset() {
|
||
|
*x = QueryGroupPoliciesByAdminResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[11]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByAdminResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupPoliciesByAdminResponse) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupPoliciesByAdminResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupPoliciesByAdminResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{11}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByAdminResponse) GetGroupPolicies() []*GroupPolicyInfo {
|
||
|
if x != nil {
|
||
|
return x.GroupPolicies
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupPoliciesByAdminResponse) GetPagination() *v1beta1.PageResponse {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryProposalRequest is the Query/Proposal request type.
|
||
|
type QueryProposalRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// proposal_id is the unique ID of a proposal.
|
||
|
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalRequest) Reset() {
|
||
|
*x = QueryProposalRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[12]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryProposalRequest) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryProposalRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryProposalRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{12}
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalRequest) GetProposalId() uint64 {
|
||
|
if x != nil {
|
||
|
return x.ProposalId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
// QueryProposalResponse is the Query/Proposal response type.
|
||
|
type QueryProposalResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// proposal is the proposal info.
|
||
|
Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalResponse) Reset() {
|
||
|
*x = QueryProposalResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[13]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryProposalResponse) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryProposalResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryProposalResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{13}
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalResponse) GetProposal() *Proposal {
|
||
|
if x != nil {
|
||
|
return x.Proposal
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type.
|
||
|
type QueryProposalsByGroupPolicyRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// address is the account address of the group policy related to proposals.
|
||
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
||
|
// pagination defines an optional pagination for the request.
|
||
|
Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalsByGroupPolicyRequest) Reset() {
|
||
|
*x = QueryProposalsByGroupPolicyRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[14]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalsByGroupPolicyRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryProposalsByGroupPolicyRequest) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryProposalsByGroupPolicyRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryProposalsByGroupPolicyRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{14}
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalsByGroupPolicyRequest) GetAddress() string {
|
||
|
if x != nil {
|
||
|
return x.Address
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalsByGroupPolicyRequest) GetPagination() *v1beta1.PageRequest {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type.
|
||
|
type QueryProposalsByGroupPolicyResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// proposals are the proposals with given group policy.
|
||
|
Proposals []*Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"`
|
||
|
// pagination defines the pagination in the response.
|
||
|
Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalsByGroupPolicyResponse) Reset() {
|
||
|
*x = QueryProposalsByGroupPolicyResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[15]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalsByGroupPolicyResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryProposalsByGroupPolicyResponse) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryProposalsByGroupPolicyResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryProposalsByGroupPolicyResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{15}
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalsByGroupPolicyResponse) GetProposals() []*Proposal {
|
||
|
if x != nil {
|
||
|
return x.Proposals
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *QueryProposalsByGroupPolicyResponse) GetPagination() *v1beta1.PageResponse {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type.
|
||
|
type QueryVoteByProposalVoterRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// proposal_id is the unique ID of a proposal.
|
||
|
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
|
||
|
// voter is a proposal voter account address.
|
||
|
Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryVoteByProposalVoterRequest) Reset() {
|
||
|
*x = QueryVoteByProposalVoterRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[16]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryVoteByProposalVoterRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryVoteByProposalVoterRequest) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryVoteByProposalVoterRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryVoteByProposalVoterRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{16}
|
||
|
}
|
||
|
|
||
|
func (x *QueryVoteByProposalVoterRequest) GetProposalId() uint64 {
|
||
|
if x != nil {
|
||
|
return x.ProposalId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *QueryVoteByProposalVoterRequest) GetVoter() string {
|
||
|
if x != nil {
|
||
|
return x.Voter
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
// QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type.
|
||
|
type QueryVoteByProposalVoterResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// vote is the vote with given proposal_id and voter.
|
||
|
Vote *Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryVoteByProposalVoterResponse) Reset() {
|
||
|
*x = QueryVoteByProposalVoterResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[17]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryVoteByProposalVoterResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryVoteByProposalVoterResponse) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryVoteByProposalVoterResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryVoteByProposalVoterResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{17}
|
||
|
}
|
||
|
|
||
|
func (x *QueryVoteByProposalVoterResponse) GetVote() *Vote {
|
||
|
if x != nil {
|
||
|
return x.Vote
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryVotesByProposalRequest is the Query/VotesByProposal request type.
|
||
|
type QueryVotesByProposalRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// proposal_id is the unique ID of a proposal.
|
||
|
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
|
||
|
// pagination defines an optional pagination for the request.
|
||
|
Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByProposalRequest) Reset() {
|
||
|
*x = QueryVotesByProposalRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[18]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByProposalRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryVotesByProposalRequest) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryVotesByProposalRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryVotesByProposalRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{18}
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByProposalRequest) GetProposalId() uint64 {
|
||
|
if x != nil {
|
||
|
return x.ProposalId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByProposalRequest) GetPagination() *v1beta1.PageRequest {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryVotesByProposalResponse is the Query/VotesByProposal response type.
|
||
|
type QueryVotesByProposalResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// votes are the list of votes for given proposal_id.
|
||
|
Votes []*Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"`
|
||
|
// pagination defines the pagination in the response.
|
||
|
Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByProposalResponse) Reset() {
|
||
|
*x = QueryVotesByProposalResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[19]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByProposalResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryVotesByProposalResponse) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryVotesByProposalResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryVotesByProposalResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{19}
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByProposalResponse) GetVotes() []*Vote {
|
||
|
if x != nil {
|
||
|
return x.Votes
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByProposalResponse) GetPagination() *v1beta1.PageResponse {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryVotesByVoterRequest is the Query/VotesByVoter request type.
|
||
|
type QueryVotesByVoterRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// voter is a proposal voter account address.
|
||
|
Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"`
|
||
|
// pagination defines an optional pagination for the request.
|
||
|
Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByVoterRequest) Reset() {
|
||
|
*x = QueryVotesByVoterRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[20]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByVoterRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryVotesByVoterRequest) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryVotesByVoterRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryVotesByVoterRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{20}
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByVoterRequest) GetVoter() string {
|
||
|
if x != nil {
|
||
|
return x.Voter
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByVoterRequest) GetPagination() *v1beta1.PageRequest {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryVotesByVoterResponse is the Query/VotesByVoter response type.
|
||
|
type QueryVotesByVoterResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// votes are the list of votes by given voter.
|
||
|
Votes []*Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"`
|
||
|
// pagination defines the pagination in the response.
|
||
|
Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByVoterResponse) Reset() {
|
||
|
*x = QueryVotesByVoterResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[21]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByVoterResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryVotesByVoterResponse) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryVotesByVoterResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryVotesByVoterResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{21}
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByVoterResponse) GetVotes() []*Vote {
|
||
|
if x != nil {
|
||
|
return x.Votes
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *QueryVotesByVoterResponse) GetPagination() *v1beta1.PageResponse {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryGroupsByMemberRequest is the Query/GroupsByMember request type.
|
||
|
type QueryGroupsByMemberRequest struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// address is the group member address.
|
||
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
||
|
// pagination defines an optional pagination for the request.
|
||
|
Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByMemberRequest) Reset() {
|
||
|
*x = QueryGroupsByMemberRequest{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[22]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByMemberRequest) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupsByMemberRequest) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupsByMemberRequest.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupsByMemberRequest) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{22}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByMemberRequest) GetAddress() string {
|
||
|
if x != nil {
|
||
|
return x.Address
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByMemberRequest) GetPagination() *v1beta1.PageRequest {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// QueryGroupsByMemberResponse is the Query/GroupsByMember response type.
|
||
|
type QueryGroupsByMemberResponse struct {
|
||
|
state protoimpl.MessageState
|
||
|
sizeCache protoimpl.SizeCache
|
||
|
unknownFields protoimpl.UnknownFields
|
||
|
|
||
|
// groups are the groups info with the provided group member.
|
||
|
Groups []*GroupInfo `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
|
||
|
// pagination defines the pagination in the response.
|
||
|
Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByMemberResponse) Reset() {
|
||
|
*x = QueryGroupsByMemberResponse{}
|
||
|
if protoimpl.UnsafeEnabled {
|
||
|
mi := &file_cosmos_group_v1beta1_query_proto_msgTypes[23]
|
||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
ms.StoreMessageInfo(mi)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByMemberResponse) String() string {
|
||
|
return protoimpl.X.MessageStringOf(x)
|
||
|
}
|
||
|
|
||
|
func (*QueryGroupsByMemberResponse) ProtoMessage() {}
|
||
|
|
||
|
// Deprecated: Use QueryGroupsByMemberResponse.ProtoReflect.Descriptor instead.
|
||
|
func (*QueryGroupsByMemberResponse) Descriptor() ([]byte, []int) {
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescGZIP(), []int{23}
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByMemberResponse) GetGroups() []*GroupInfo {
|
||
|
if x != nil {
|
||
|
return x.Groups
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (x *QueryGroupsByMemberResponse) GetPagination() *v1beta1.PageResponse {
|
||
|
if x != nil {
|
||
|
return x.Pagination
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
var File_cosmos_group_v1beta1_query_proto protoreflect.FileDescriptor
|
||
|
|
||
|
var file_cosmos_group_v1beta1_query_proto_rawDesc = []byte{
|
||
|
0x0a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76,
|
||
|
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f,
|
||
|
0x74, 0x6f, 0x12, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
||
|
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||
|
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
||
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67,
|
||
|
0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x79, 0x70,
|
||
|
0x65, 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, 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, 0x22,
|
||
|
0x32, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66,
|
||
|
0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75,
|
||
|
0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75,
|
||
|
0x70, 0x49, 0x64, 0x22, 0x4d, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75,
|
||
|
0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a,
|
||
|
0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f,
|
||
|
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
|
||
|
0x61, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e,
|
||
|
0x66, 0x6f, 0x22, 0x51, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
||
|
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||
|
0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 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, 0x07, 0x61, 0x64,
|
||
|
0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x59, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72,
|
||
|
0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73,
|
||
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20,
|
||
|
0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f,
|
||
|
0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
||
|
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f,
|
||
|
0x22, 0x7d, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65,
|
||
|
0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08,
|
||
|
0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07,
|
||
|
0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e,
|
||
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 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, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22,
|
||
|
0xa1, 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65,
|
||
|
0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a,
|
||
|
0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21,
|
||
|
0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31,
|
||
|
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65,
|
||
|
0x72, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61,
|
||
|
0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27,
|
||
|
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, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74,
|
||
|
0x69, 0x6f, 0x6e, 0x22, 0x93, 0x01, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f,
|
||
|
0x75, 0x70, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||
|
0x74, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 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, 0x05, 0x61, 0x64, 0x6d, 0x69,
|
||
|
0x6e, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
||
|
0x02, 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, 0x0a, 0x70,
|
||
|
0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9e, 0x01, 0x0a, 0x1a, 0x51, 0x75,
|
||
|
0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e,
|
||
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75,
|
||
|
0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
|
||
|
0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
|
||
|
0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
||
|
0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
||
|
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 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, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a,
|
||
|
0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x85, 0x01, 0x0a, 0x20, 0x51,
|
||
|
0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
|
||
|
0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||
|
0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||
|
0x04, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61,
|
||
|
0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 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, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
|
||
|
0x6f, 0x6e, 0x22, 0xba, 0x01, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75,
|
||
|
0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
||
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0e, 0x67, 0x72, 0x6f, 0x75,
|
||
|
0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
||
|
0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
|
||
|
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c,
|
||
|
0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f,
|
||
|
0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61,
|
||
|
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 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, 0x73, 0x70, 0x6f,
|
||
|
0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22,
|
||
|
0x9a, 0x01, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f,
|
||
|
0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71,
|
||
|
0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 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, 0x05, 0x61,
|
||
|
0x64, 0x6d, 0x69, 0x6e, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
|
||
|
0x6f, 0x6e, 0x18, 0x02, 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, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xba, 0x01, 0x0a,
|
||
|
0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63,
|
||
|
0x69, 0x65, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||
|
0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69,
|
||
|
0x63, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6f, 0x73,
|
||
|
0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
|
||
|
0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66,
|
||
|
0x6f, 0x52, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,
|
||
|
0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02,
|
||
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 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, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70,
|
||
|
0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x37, 0x0a, 0x14, 0x51, 0x75, 0x65,
|
||
|
0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||
|
0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64,
|
||
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c,
|
||
|
0x49, 0x64, 0x22, 0x53, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f,
|
||
|
0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x70,
|
||
|
0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e,
|
||
|
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62,
|
||
|
0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x08, 0x70,
|
||
|
0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x22, 0xa0, 0x01, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72,
|
||
|
0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75,
|
||
|
0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32,
|
||
|
0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 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, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,
|
||
|
0x73, 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||
|
0x18, 0x02, 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, 0x0a,
|
||
|
0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xac, 0x01, 0x0a, 0x23, 0x51,
|
||
|
0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x47,
|
||
|
0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||
|
0x73, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x18,
|
||
|
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67,
|
||
|
0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x72, 0x6f,
|
||
|
0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73,
|
||
|
0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02,
|
||
|
0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 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, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70,
|
||
|
0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x72, 0x0a, 0x1f, 0x51, 0x75, 0x65,
|
||
|
0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c,
|
||
|
0x56, 0x6f, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b,
|
||
|
0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||
|
0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x2e, 0x0a,
|
||
|
0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x18, 0x02, 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, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x22, 0x52, 0x0a,
|
||
|
0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70,
|
||
|
0x6f, 0x73, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||
|
0x65, 0x12, 0x2e, 0x0a, 0x04, 0x76, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||
|
0x1a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76,
|
||
|
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x04, 0x76, 0x6f, 0x74,
|
||
|
0x65, 0x22, 0x86, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73,
|
||
|
0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||
|
0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64,
|
||
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c,
|
||
|
0x49, 0x64, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||
|
0x18, 0x02, 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, 0x0a,
|
||
|
0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x99, 0x01, 0x0a, 0x1c, 0x51,
|
||
|
0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f,
|
||
|
0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x76,
|
||
|
0x6f, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x73,
|
||
|
0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
|
||
|
0x31, 0x2e, 0x56, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x47, 0x0a,
|
||
|
0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||
|
0x0b, 0x32, 0x27, 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, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69,
|
||
|
0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79,
|
||
|
0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
|
||
|
0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x18, 0x01, 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, 0x05, 0x76, 0x6f,
|
||
|
0x74, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f,
|
||
|
0x6e, 0x18, 0x02, 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,
|
||
|
0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x96, 0x01, 0x0a, 0x19,
|
||
|
0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x56, 0x6f, 0x74, 0x65,
|
||
|
0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x6f, 0x74,
|
||
|
0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
|
||
|
0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
|
||
|
0x56, 0x6f, 0x74, 0x65, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70,
|
||
|
0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||
|
0x27, 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, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61,
|
||
|
0x74, 0x69, 0x6f, 0x6e, 0x22, 0x98, 0x01, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72,
|
||
|
0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
|
||
|
0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01,
|
||
|
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, 0x07,
|
||
|
0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e,
|
||
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 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, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22,
|
||
|
0x9f, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42,
|
||
|
0x79, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||
|
0x37, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||
|
0x1f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76,
|
||
|
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f,
|
||
|
0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69,
|
||
|
0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 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, 0x73,
|
||
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f,
|
||
|
0x6e, 0x32, 0x9c, 0x11, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x9b, 0x01, 0x0a, 0x09,
|
||
|
0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2b, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
|
||
|
0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
|
||
|
0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
||
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||
|
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75,
|
||
|
0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70,
|
||
|
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x63,
|
||
|
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65,
|
||
|
0x74, 0x61, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x7b,
|
||
|
0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb3, 0x01, 0x0a, 0x0f, 0x47, 0x72,
|
||
|
0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x31, 0x2e,
|
||
|
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62,
|
||
|
0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50,
|
||
|
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||
|
0x1a, 0x32, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
|
||
|
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f,
|
||
|
0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70,
|
||
|
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x63,
|
||
|
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65,
|
||
|
0x74, 0x61, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
|
||
|
0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12,
|
||
|
0xa7, 0x01, 0x0a, 0x0c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73,
|
||
|
0x12, 0x2e, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
|
||
|
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f,
|
||
|
0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||
|
0x1a, 0x2f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
|
||
|
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f,
|
||
|
0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||
|
0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x63, 0x6f, 0x73, 0x6d,
|
||
|
0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
|
||
|
0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x7b,
|
||
|
0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xa9, 0x01, 0x0a, 0x0d, 0x47, 0x72,
|
||
|
0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x2f, 0x2e, 0x63, 0x6f,
|
||
|
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
|
||
|
0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x79,
|
||
|
0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63,
|
||
|
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65,
|
||
|
0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42,
|
||
|
0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35,
|
||
|
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f,
|
||
|
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x72,
|
||
|
0x6f, 0x75, 0x70, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61,
|
||
|
0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x12, 0xc9, 0x01, 0x0a, 0x14, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50,
|
||
|
0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x36,
|
||
|
0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31,
|
||
|
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70,
|
||
|
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,
|
||
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||
|
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75,
|
||
|
0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,
|
||
|
0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
|
||
|
0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
||
|
0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67,
|
||
|
0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5f, 0x62, 0x79,
|
||
|
0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64,
|
||
|
0x7d, 0x12, 0xc6, 0x01, 0x0a, 0x14, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63,
|
||
|
0x69, 0x65, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x36, 0x2e, 0x63, 0x6f, 0x73,
|
||
|
0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
|
||
|
0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69,
|
||
|
0x63, 0x69, 0x65, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||
|
0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75,
|
||
|
0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47,
|
||
|
0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x42, 0x79, 0x41, 0x64,
|
||
|
0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4,
|
||
|
0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f,
|
||
|
0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
||
|
0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x61, 0x64, 0x6d,
|
||
|
0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x12, 0x99, 0x01, 0x0a, 0x08, 0x50,
|
||
|
0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x2a, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
||
|
0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51,
|
||
|
0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75,
|
||
|
0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f,
|
||
|
0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
|
||
|
0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||
|
0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
|
||
|
0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
|
||
|
0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73,
|
||
|
0x61, 0x6c, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xd0, 0x01, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x70, 0x6f,
|
||
|
0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63,
|
||
|
0x79, 0x12, 0x38, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
||
|
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72,
|
||
|
0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f,
|
||
|
0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x63, 0x6f,
|
||
|
0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
|
||
|
0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c,
|
||
|
0x73, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65,
|
||
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x12, 0x39,
|
||
|
0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31,
|
||
|
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x73, 0x5f,
|
||
|
0x62, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2f,
|
||
|
0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xd0, 0x01, 0x0a, 0x13, 0x56, 0x6f,
|
||
|
0x74, 0x65, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65,
|
||
|
0x72, 0x12, 0x35, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
||
|
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f,
|
||
|
0x74, 0x65, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65,
|
||
|
0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
|
||
|
0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
|
||
|
0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f,
|
||
|
0x73, 0x61, 0x6c, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||
|
0x22, 0x4a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x12, 0x42, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f,
|
||
|
0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
|
||
|
0x76, 0x6f, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c,
|
||
|
0x5f, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c,
|
||
|
0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xb7, 0x01, 0x0a,
|
||
|
0x0f, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c,
|
||
|
0x12, 0x31, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
|
||
|
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74,
|
||
|
0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75,
|
||
|
0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f,
|
||
|
0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
|
||
|
0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x52,
|
||
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12,
|
||
|
0x35, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76,
|
||
|
0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x5f, 0x62, 0x79, 0x5f,
|
||
|
0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73,
|
||
|
0x61, 0x6c, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x0c, 0x56, 0x6f, 0x74, 0x65, 0x73,
|
||
|
0x42, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x72, 0x12, 0x2e, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
||
|
0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51,
|
||
|
0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x72,
|
||
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
||
|
0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51,
|
||
|
0x75, 0x65, 0x72, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x73, 0x42, 0x79, 0x56, 0x6f, 0x74, 0x65, 0x72,
|
||
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e,
|
||
|
0x12, 0x2c, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f,
|
||
|
0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x76, 0x6f, 0x74, 0x65, 0x73, 0x5f, 0x62, 0x79,
|
||
|
0x5f, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x2f, 0x7b, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xaf,
|
||
|
0x01, 0x0a, 0x0e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, 0x4d, 0x65, 0x6d, 0x62, 0x65,
|
||
|
0x72, 0x12, 0x30, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f, 0x75, 0x70,
|
||
|
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x72,
|
||
|
0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
|
||
|
0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x67, 0x72, 0x6f,
|
||
|
0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
|
||
|
0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x79, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65,
|
||
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30,
|
||
|
0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31,
|
||
|
0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x5f, 0x62, 0x79, 0x5f,
|
||
|
0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d,
|
||
|
0x42, 0xdc, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e,
|
||
|
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x51,
|
||
|
0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 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, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f,
|
||
|
0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
|
||
|
0x61, 0x31, 0x3b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2,
|
||
|
0x02, 0x03, 0x43, 0x47, 0x58, 0xaa, 0x02, 0x14, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x47,
|
||
|
0x72, 0x6f, 0x75, 0x70, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x14, 0x43,
|
||
|
0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x5c, 0x56, 0x31, 0x62, 0x65,
|
||
|
0x74, 0x61, 0x31, 0xe2, 0x02, 0x20, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5c, 0x47, 0x72, 0x6f,
|
||
|
0x75, 0x70, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65,
|
||
|
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x3a,
|
||
|
0x3a, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62,
|
||
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
file_cosmos_group_v1beta1_query_proto_rawDescOnce sync.Once
|
||
|
file_cosmos_group_v1beta1_query_proto_rawDescData = file_cosmos_group_v1beta1_query_proto_rawDesc
|
||
|
)
|
||
|
|
||
|
func file_cosmos_group_v1beta1_query_proto_rawDescGZIP() []byte {
|
||
|
file_cosmos_group_v1beta1_query_proto_rawDescOnce.Do(func() {
|
||
|
file_cosmos_group_v1beta1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_cosmos_group_v1beta1_query_proto_rawDescData)
|
||
|
})
|
||
|
return file_cosmos_group_v1beta1_query_proto_rawDescData
|
||
|
}
|
||
|
|
||
|
var file_cosmos_group_v1beta1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
|
||
|
var file_cosmos_group_v1beta1_query_proto_goTypes = []interface{}{
|
||
|
(*QueryGroupInfoRequest)(nil), // 0: cosmos.group.v1beta1.QueryGroupInfoRequest
|
||
|
(*QueryGroupInfoResponse)(nil), // 1: cosmos.group.v1beta1.QueryGroupInfoResponse
|
||
|
(*QueryGroupPolicyInfoRequest)(nil), // 2: cosmos.group.v1beta1.QueryGroupPolicyInfoRequest
|
||
|
(*QueryGroupPolicyInfoResponse)(nil), // 3: cosmos.group.v1beta1.QueryGroupPolicyInfoResponse
|
||
|
(*QueryGroupMembersRequest)(nil), // 4: cosmos.group.v1beta1.QueryGroupMembersRequest
|
||
|
(*QueryGroupMembersResponse)(nil), // 5: cosmos.group.v1beta1.QueryGroupMembersResponse
|
||
|
(*QueryGroupsByAdminRequest)(nil), // 6: cosmos.group.v1beta1.QueryGroupsByAdminRequest
|
||
|
(*QueryGroupsByAdminResponse)(nil), // 7: cosmos.group.v1beta1.QueryGroupsByAdminResponse
|
||
|
(*QueryGroupPoliciesByGroupRequest)(nil), // 8: cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest
|
||
|
(*QueryGroupPoliciesByGroupResponse)(nil), // 9: cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse
|
||
|
(*QueryGroupPoliciesByAdminRequest)(nil), // 10: cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest
|
||
|
(*QueryGroupPoliciesByAdminResponse)(nil), // 11: cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse
|
||
|
(*QueryProposalRequest)(nil), // 12: cosmos.group.v1beta1.QueryProposalRequest
|
||
|
(*QueryProposalResponse)(nil), // 13: cosmos.group.v1beta1.QueryProposalResponse
|
||
|
(*QueryProposalsByGroupPolicyRequest)(nil), // 14: cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest
|
||
|
(*QueryProposalsByGroupPolicyResponse)(nil), // 15: cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse
|
||
|
(*QueryVoteByProposalVoterRequest)(nil), // 16: cosmos.group.v1beta1.QueryVoteByProposalVoterRequest
|
||
|
(*QueryVoteByProposalVoterResponse)(nil), // 17: cosmos.group.v1beta1.QueryVoteByProposalVoterResponse
|
||
|
(*QueryVotesByProposalRequest)(nil), // 18: cosmos.group.v1beta1.QueryVotesByProposalRequest
|
||
|
(*QueryVotesByProposalResponse)(nil), // 19: cosmos.group.v1beta1.QueryVotesByProposalResponse
|
||
|
(*QueryVotesByVoterRequest)(nil), // 20: cosmos.group.v1beta1.QueryVotesByVoterRequest
|
||
|
(*QueryVotesByVoterResponse)(nil), // 21: cosmos.group.v1beta1.QueryVotesByVoterResponse
|
||
|
(*QueryGroupsByMemberRequest)(nil), // 22: cosmos.group.v1beta1.QueryGroupsByMemberRequest
|
||
|
(*QueryGroupsByMemberResponse)(nil), // 23: cosmos.group.v1beta1.QueryGroupsByMemberResponse
|
||
|
(*GroupInfo)(nil), // 24: cosmos.group.v1beta1.GroupInfo
|
||
|
(*GroupPolicyInfo)(nil), // 25: cosmos.group.v1beta1.GroupPolicyInfo
|
||
|
(*v1beta1.PageRequest)(nil), // 26: cosmos.base.query.v1beta1.PageRequest
|
||
|
(*GroupMember)(nil), // 27: cosmos.group.v1beta1.GroupMember
|
||
|
(*v1beta1.PageResponse)(nil), // 28: cosmos.base.query.v1beta1.PageResponse
|
||
|
(*Proposal)(nil), // 29: cosmos.group.v1beta1.Proposal
|
||
|
(*Vote)(nil), // 30: cosmos.group.v1beta1.Vote
|
||
|
}
|
||
|
var file_cosmos_group_v1beta1_query_proto_depIdxs = []int32{
|
||
|
24, // 0: cosmos.group.v1beta1.QueryGroupInfoResponse.info:type_name -> cosmos.group.v1beta1.GroupInfo
|
||
|
25, // 1: cosmos.group.v1beta1.QueryGroupPolicyInfoResponse.info:type_name -> cosmos.group.v1beta1.GroupPolicyInfo
|
||
|
26, // 2: cosmos.group.v1beta1.QueryGroupMembersRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
||
|
27, // 3: cosmos.group.v1beta1.QueryGroupMembersResponse.members:type_name -> cosmos.group.v1beta1.GroupMember
|
||
|
28, // 4: cosmos.group.v1beta1.QueryGroupMembersResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
||
|
26, // 5: cosmos.group.v1beta1.QueryGroupsByAdminRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
||
|
24, // 6: cosmos.group.v1beta1.QueryGroupsByAdminResponse.groups:type_name -> cosmos.group.v1beta1.GroupInfo
|
||
|
28, // 7: cosmos.group.v1beta1.QueryGroupsByAdminResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
||
|
26, // 8: cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
||
|
25, // 9: cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.group_policies:type_name -> cosmos.group.v1beta1.GroupPolicyInfo
|
||
|
28, // 10: cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
||
|
26, // 11: cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
||
|
25, // 12: cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.group_policies:type_name -> cosmos.group.v1beta1.GroupPolicyInfo
|
||
|
28, // 13: cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
||
|
29, // 14: cosmos.group.v1beta1.QueryProposalResponse.proposal:type_name -> cosmos.group.v1beta1.Proposal
|
||
|
26, // 15: cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
||
|
29, // 16: cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.proposals:type_name -> cosmos.group.v1beta1.Proposal
|
||
|
28, // 17: cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
||
|
30, // 18: cosmos.group.v1beta1.QueryVoteByProposalVoterResponse.vote:type_name -> cosmos.group.v1beta1.Vote
|
||
|
26, // 19: cosmos.group.v1beta1.QueryVotesByProposalRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
||
|
30, // 20: cosmos.group.v1beta1.QueryVotesByProposalResponse.votes:type_name -> cosmos.group.v1beta1.Vote
|
||
|
28, // 21: cosmos.group.v1beta1.QueryVotesByProposalResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
||
|
26, // 22: cosmos.group.v1beta1.QueryVotesByVoterRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
||
|
30, // 23: cosmos.group.v1beta1.QueryVotesByVoterResponse.votes:type_name -> cosmos.group.v1beta1.Vote
|
||
|
28, // 24: cosmos.group.v1beta1.QueryVotesByVoterResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
||
|
26, // 25: cosmos.group.v1beta1.QueryGroupsByMemberRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
||
|
24, // 26: cosmos.group.v1beta1.QueryGroupsByMemberResponse.groups:type_name -> cosmos.group.v1beta1.GroupInfo
|
||
|
28, // 27: cosmos.group.v1beta1.QueryGroupsByMemberResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
||
|
0, // 28: cosmos.group.v1beta1.Query.GroupInfo:input_type -> cosmos.group.v1beta1.QueryGroupInfoRequest
|
||
|
2, // 29: cosmos.group.v1beta1.Query.GroupPolicyInfo:input_type -> cosmos.group.v1beta1.QueryGroupPolicyInfoRequest
|
||
|
4, // 30: cosmos.group.v1beta1.Query.GroupMembers:input_type -> cosmos.group.v1beta1.QueryGroupMembersRequest
|
||
|
6, // 31: cosmos.group.v1beta1.Query.GroupsByAdmin:input_type -> cosmos.group.v1beta1.QueryGroupsByAdminRequest
|
||
|
8, // 32: cosmos.group.v1beta1.Query.GroupPoliciesByGroup:input_type -> cosmos.group.v1beta1.QueryGroupPoliciesByGroupRequest
|
||
|
10, // 33: cosmos.group.v1beta1.Query.GroupPoliciesByAdmin:input_type -> cosmos.group.v1beta1.QueryGroupPoliciesByAdminRequest
|
||
|
12, // 34: cosmos.group.v1beta1.Query.Proposal:input_type -> cosmos.group.v1beta1.QueryProposalRequest
|
||
|
14, // 35: cosmos.group.v1beta1.Query.ProposalsByGroupPolicy:input_type -> cosmos.group.v1beta1.QueryProposalsByGroupPolicyRequest
|
||
|
16, // 36: cosmos.group.v1beta1.Query.VoteByProposalVoter:input_type -> cosmos.group.v1beta1.QueryVoteByProposalVoterRequest
|
||
|
18, // 37: cosmos.group.v1beta1.Query.VotesByProposal:input_type -> cosmos.group.v1beta1.QueryVotesByProposalRequest
|
||
|
20, // 38: cosmos.group.v1beta1.Query.VotesByVoter:input_type -> cosmos.group.v1beta1.QueryVotesByVoterRequest
|
||
|
22, // 39: cosmos.group.v1beta1.Query.GroupsByMember:input_type -> cosmos.group.v1beta1.QueryGroupsByMemberRequest
|
||
|
1, // 40: cosmos.group.v1beta1.Query.GroupInfo:output_type -> cosmos.group.v1beta1.QueryGroupInfoResponse
|
||
|
3, // 41: cosmos.group.v1beta1.Query.GroupPolicyInfo:output_type -> cosmos.group.v1beta1.QueryGroupPolicyInfoResponse
|
||
|
5, // 42: cosmos.group.v1beta1.Query.GroupMembers:output_type -> cosmos.group.v1beta1.QueryGroupMembersResponse
|
||
|
7, // 43: cosmos.group.v1beta1.Query.GroupsByAdmin:output_type -> cosmos.group.v1beta1.QueryGroupsByAdminResponse
|
||
|
9, // 44: cosmos.group.v1beta1.Query.GroupPoliciesByGroup:output_type -> cosmos.group.v1beta1.QueryGroupPoliciesByGroupResponse
|
||
|
11, // 45: cosmos.group.v1beta1.Query.GroupPoliciesByAdmin:output_type -> cosmos.group.v1beta1.QueryGroupPoliciesByAdminResponse
|
||
|
13, // 46: cosmos.group.v1beta1.Query.Proposal:output_type -> cosmos.group.v1beta1.QueryProposalResponse
|
||
|
15, // 47: cosmos.group.v1beta1.Query.ProposalsByGroupPolicy:output_type -> cosmos.group.v1beta1.QueryProposalsByGroupPolicyResponse
|
||
|
17, // 48: cosmos.group.v1beta1.Query.VoteByProposalVoter:output_type -> cosmos.group.v1beta1.QueryVoteByProposalVoterResponse
|
||
|
19, // 49: cosmos.group.v1beta1.Query.VotesByProposal:output_type -> cosmos.group.v1beta1.QueryVotesByProposalResponse
|
||
|
21, // 50: cosmos.group.v1beta1.Query.VotesByVoter:output_type -> cosmos.group.v1beta1.QueryVotesByVoterResponse
|
||
|
23, // 51: cosmos.group.v1beta1.Query.GroupsByMember:output_type -> cosmos.group.v1beta1.QueryGroupsByMemberResponse
|
||
|
40, // [40:52] is the sub-list for method output_type
|
||
|
28, // [28:40] is the sub-list for method input_type
|
||
|
28, // [28:28] is the sub-list for extension type_name
|
||
|
28, // [28:28] is the sub-list for extension extendee
|
||
|
0, // [0:28] is the sub-list for field type_name
|
||
|
}
|
||
|
|
||
|
func init() { file_cosmos_group_v1beta1_query_proto_init() }
|
||
|
func file_cosmos_group_v1beta1_query_proto_init() {
|
||
|
if File_cosmos_group_v1beta1_query_proto != nil {
|
||
|
return
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_types_proto_init()
|
||
|
if !protoimpl.UnsafeEnabled {
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupInfoRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupInfoResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupPolicyInfoRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupPolicyInfoResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupMembersRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupMembersResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupsByAdminRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupsByAdminResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupPoliciesByGroupRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupPoliciesByGroupResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupPoliciesByAdminRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupPoliciesByAdminResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryProposalRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryProposalResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryProposalsByGroupPolicyRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryProposalsByGroupPolicyResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryVoteByProposalVoterRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryVoteByProposalVoterResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryVotesByProposalRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryVotesByProposalResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryVotesByVoterRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryVotesByVoterResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupsByMemberRequest); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
file_cosmos_group_v1beta1_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
|
||
|
switch v := v.(*QueryGroupsByMemberResponse); i {
|
||
|
case 0:
|
||
|
return &v.state
|
||
|
case 1:
|
||
|
return &v.sizeCache
|
||
|
case 2:
|
||
|
return &v.unknownFields
|
||
|
default:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
type x struct{}
|
||
|
out := protoimpl.TypeBuilder{
|
||
|
File: protoimpl.DescBuilder{
|
||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
|
RawDescriptor: file_cosmos_group_v1beta1_query_proto_rawDesc,
|
||
|
NumEnums: 0,
|
||
|
NumMessages: 24,
|
||
|
NumExtensions: 0,
|
||
|
NumServices: 1,
|
||
|
},
|
||
|
GoTypes: file_cosmos_group_v1beta1_query_proto_goTypes,
|
||
|
DependencyIndexes: file_cosmos_group_v1beta1_query_proto_depIdxs,
|
||
|
MessageInfos: file_cosmos_group_v1beta1_query_proto_msgTypes,
|
||
|
}.Build()
|
||
|
File_cosmos_group_v1beta1_query_proto = out.File
|
||
|
file_cosmos_group_v1beta1_query_proto_rawDesc = nil
|
||
|
file_cosmos_group_v1beta1_query_proto_goTypes = nil
|
||
|
file_cosmos_group_v1beta1_query_proto_depIdxs = nil
|
||
|
}
|