// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. package didv1 import ( _ "cosmossdk.io/api/amino" binary "encoding/binary" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" io "io" math "math" reflect "reflect" sync "sync" ) var ( md_GenesisState protoreflect.MessageDescriptor fd_GenesisState_params protoreflect.FieldDescriptor ) func init() { file_did_v1_genesis_proto_init() md_GenesisState = File_did_v1_genesis_proto.Messages().ByName("GenesisState") fd_GenesisState_params = md_GenesisState.Fields().ByName("params") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) type fastReflection_GenesisState GenesisState func (x *GenesisState) ProtoReflect() protoreflect.Message { return (*fastReflection_GenesisState)(x) } func (x *GenesisState) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_genesis_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_GenesisState_messageType fastReflection_GenesisState_messageType var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} type fastReflection_GenesisState_messageType struct{} func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { return (*fastReflection_GenesisState)(nil) } func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { return new(fastReflection_GenesisState) } func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { return md_GenesisState } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { return md_GenesisState } // 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_GenesisState) Type() protoreflect.MessageType { return _fastReflection_GenesisState_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_GenesisState) New() protoreflect.Message { return new(fastReflection_GenesisState) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { return (*GenesisState)(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_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Params != nil { value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) if !f(fd_GenesisState_params, 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_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.GenesisState.params": return x.Params != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.GenesisState")) } panic(fmt.Errorf("message did.v1.GenesisState 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_GenesisState) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.GenesisState.params": x.Params = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.GenesisState")) } panic(fmt.Errorf("message did.v1.GenesisState 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_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.GenesisState.params": value := x.Params return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.GenesisState")) } panic(fmt.Errorf("message did.v1.GenesisState 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_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.GenesisState.params": x.Params = value.Message().Interface().(*Params) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.GenesisState")) } panic(fmt.Errorf("message did.v1.GenesisState 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_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.GenesisState.params": if x.Params == nil { x.Params = new(Params) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.GenesisState")) } panic(fmt.Errorf("message did.v1.GenesisState 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_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.GenesisState.params": m := new(Params) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.GenesisState")) } panic(fmt.Errorf("message did.v1.GenesisState 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_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.GenesisState", 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_GenesisState) 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_GenesisState) 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_GenesisState) 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_GenesisState) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*GenesisState) 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.Params != nil { l = options.Size(x.Params) 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().(*GenesisState) 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.Params != nil { encoded, err := options.Marshal(x.Params) 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().(*GenesisState) 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: GenesisState: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: 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 Params", 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.Params == nil { x.Params = &Params{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); 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 = (*_Params_1_list)(nil) type _Params_1_list struct { list *[]*AssetInfo } func (x *_Params_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } func (x *_Params_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } func (x *_Params_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*AssetInfo) (*x.list)[i] = concreteValue } func (x *_Params_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*AssetInfo) *x.list = append(*x.list, concreteValue) } func (x *_Params_1_list) AppendMutable() protoreflect.Value { v := new(AssetInfo) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_Params_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } func (x *_Params_1_list) NewElement() protoreflect.Value { v := new(AssetInfo) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_Params_1_list) IsValid() bool { return x.list != nil } var _ protoreflect.List = (*_Params_2_list)(nil) type _Params_2_list struct { list *[]*ChainInfo } func (x *_Params_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } func (x *_Params_2_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } func (x *_Params_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ChainInfo) (*x.list)[i] = concreteValue } func (x *_Params_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ChainInfo) *x.list = append(*x.list, concreteValue) } func (x *_Params_2_list) AppendMutable() protoreflect.Value { v := new(ChainInfo) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_Params_2_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } func (x *_Params_2_list) NewElement() protoreflect.Value { v := new(ChainInfo) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_Params_2_list) IsValid() bool { return x.list != nil } var _ protoreflect.List = (*_Params_3_list)(nil) type _Params_3_list struct { list *[]*KeyInfo } func (x *_Params_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } func (x *_Params_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } func (x *_Params_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*KeyInfo) (*x.list)[i] = concreteValue } func (x *_Params_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*KeyInfo) *x.list = append(*x.list, concreteValue) } func (x *_Params_3_list) AppendMutable() protoreflect.Value { v := new(KeyInfo) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_Params_3_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } func (x *_Params_3_list) NewElement() protoreflect.Value { v := new(KeyInfo) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_Params_3_list) IsValid() bool { return x.list != nil } var ( md_Params protoreflect.MessageDescriptor fd_Params_whitelisted_assets protoreflect.FieldDescriptor fd_Params_whitelisted_chains protoreflect.FieldDescriptor fd_Params_allowed_public_keys protoreflect.FieldDescriptor ) func init() { file_did_v1_genesis_proto_init() md_Params = File_did_v1_genesis_proto.Messages().ByName("Params") fd_Params_whitelisted_assets = md_Params.Fields().ByName("whitelisted_assets") fd_Params_whitelisted_chains = md_Params.Fields().ByName("whitelisted_chains") fd_Params_allowed_public_keys = md_Params.Fields().ByName("allowed_public_keys") } var _ protoreflect.Message = (*fastReflection_Params)(nil) type fastReflection_Params Params func (x *Params) ProtoReflect() protoreflect.Message { return (*fastReflection_Params)(x) } func (x *Params) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_genesis_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_Params_messageType fastReflection_Params_messageType var _ protoreflect.MessageType = fastReflection_Params_messageType{} type fastReflection_Params_messageType struct{} func (x fastReflection_Params_messageType) Zero() protoreflect.Message { return (*fastReflection_Params)(nil) } func (x fastReflection_Params_messageType) New() protoreflect.Message { return new(fastReflection_Params) } func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor { return md_Params } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor { return md_Params } // 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_Params) Type() protoreflect.MessageType { return _fastReflection_Params_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_Params) New() protoreflect.Message { return new(fastReflection_Params) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.WhitelistedAssets) != 0 { value := protoreflect.ValueOfList(&_Params_1_list{list: &x.WhitelistedAssets}) if !f(fd_Params_whitelisted_assets, value) { return } } if len(x.WhitelistedChains) != 0 { value := protoreflect.ValueOfList(&_Params_2_list{list: &x.WhitelistedChains}) if !f(fd_Params_whitelisted_chains, value) { return } } if len(x.AllowedPublicKeys) != 0 { value := protoreflect.ValueOfList(&_Params_3_list{list: &x.AllowedPublicKeys}) if !f(fd_Params_allowed_public_keys, 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_Params) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.Params.whitelisted_assets": return len(x.WhitelistedAssets) != 0 case "did.v1.Params.whitelisted_chains": return len(x.WhitelistedChains) != 0 case "did.v1.Params.allowed_public_keys": return len(x.AllowedPublicKeys) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.Params")) } panic(fmt.Errorf("message did.v1.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.Params.whitelisted_assets": x.WhitelistedAssets = nil case "did.v1.Params.whitelisted_chains": x.WhitelistedChains = nil case "did.v1.Params.allowed_public_keys": x.AllowedPublicKeys = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.Params")) } panic(fmt.Errorf("message did.v1.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.Params.whitelisted_assets": if len(x.WhitelistedAssets) == 0 { return protoreflect.ValueOfList(&_Params_1_list{}) } listValue := &_Params_1_list{list: &x.WhitelistedAssets} return protoreflect.ValueOfList(listValue) case "did.v1.Params.whitelisted_chains": if len(x.WhitelistedChains) == 0 { return protoreflect.ValueOfList(&_Params_2_list{}) } listValue := &_Params_2_list{list: &x.WhitelistedChains} return protoreflect.ValueOfList(listValue) case "did.v1.Params.allowed_public_keys": if len(x.AllowedPublicKeys) == 0 { return protoreflect.ValueOfList(&_Params_3_list{}) } listValue := &_Params_3_list{list: &x.AllowedPublicKeys} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.Params")) } panic(fmt.Errorf("message did.v1.Params 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_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.Params.whitelisted_assets": lv := value.List() clv := lv.(*_Params_1_list) x.WhitelistedAssets = *clv.list case "did.v1.Params.whitelisted_chains": lv := value.List() clv := lv.(*_Params_2_list) x.WhitelistedChains = *clv.list case "did.v1.Params.allowed_public_keys": lv := value.List() clv := lv.(*_Params_3_list) x.AllowedPublicKeys = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.Params")) } panic(fmt.Errorf("message did.v1.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.Params.whitelisted_assets": if x.WhitelistedAssets == nil { x.WhitelistedAssets = []*AssetInfo{} } value := &_Params_1_list{list: &x.WhitelistedAssets} return protoreflect.ValueOfList(value) case "did.v1.Params.whitelisted_chains": if x.WhitelistedChains == nil { x.WhitelistedChains = []*ChainInfo{} } value := &_Params_2_list{list: &x.WhitelistedChains} return protoreflect.ValueOfList(value) case "did.v1.Params.allowed_public_keys": if x.AllowedPublicKeys == nil { x.AllowedPublicKeys = []*KeyInfo{} } value := &_Params_3_list{list: &x.AllowedPublicKeys} return protoreflect.ValueOfList(value) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.Params")) } panic(fmt.Errorf("message did.v1.Params 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_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.Params.whitelisted_assets": list := []*AssetInfo{} return protoreflect.ValueOfList(&_Params_1_list{list: &list}) case "did.v1.Params.whitelisted_chains": list := []*ChainInfo{} return protoreflect.ValueOfList(&_Params_2_list{list: &list}) case "did.v1.Params.allowed_public_keys": list := []*KeyInfo{} return protoreflect.ValueOfList(&_Params_3_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.Params")) } panic(fmt.Errorf("message did.v1.Params 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_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*Params) 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.WhitelistedAssets) > 0 { for _, e := range x.WhitelistedAssets { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } if len(x.WhitelistedChains) > 0 { for _, e := range x.WhitelistedChains { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } if len(x.AllowedPublicKeys) > 0 { for _, e := range x.AllowedPublicKeys { l = options.Size(e) 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().(*Params) 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.AllowedPublicKeys) > 0 { for iNdEx := len(x.AllowedPublicKeys) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.AllowedPublicKeys[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] = 0x1a } } if len(x.WhitelistedChains) > 0 { for iNdEx := len(x.WhitelistedChains) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.WhitelistedChains[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] = 0x12 } } if len(x.WhitelistedAssets) > 0 { for iNdEx := len(x.WhitelistedAssets) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.WhitelistedAssets[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().(*Params) 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: Params: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: 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 WhitelistedAssets", 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.WhitelistedAssets = append(x.WhitelistedAssets, &AssetInfo{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.WhitelistedAssets[len(x.WhitelistedAssets)-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 WhitelistedChains", 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.WhitelistedChains = append(x.WhitelistedChains, &ChainInfo{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.WhitelistedChains[len(x.WhitelistedChains)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AllowedPublicKeys", 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.AllowedPublicKeys = append(x.AllowedPublicKeys, &KeyInfo{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AllowedPublicKeys[len(x.AllowedPublicKeys)-1]); 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_AssetInfo protoreflect.MessageDescriptor fd_AssetInfo_id protoreflect.FieldDescriptor fd_AssetInfo_denom protoreflect.FieldDescriptor fd_AssetInfo_symbol protoreflect.FieldDescriptor fd_AssetInfo_asset_type protoreflect.FieldDescriptor fd_AssetInfo_origin_chain protoreflect.FieldDescriptor fd_AssetInfo_origin_denom protoreflect.FieldDescriptor fd_AssetInfo_decimals protoreflect.FieldDescriptor fd_AssetInfo_description protoreflect.FieldDescriptor fd_AssetInfo_image_url protoreflect.FieldDescriptor fd_AssetInfo_coingecko_id protoreflect.FieldDescriptor fd_AssetInfo_is_enabled protoreflect.FieldDescriptor fd_AssetInfo_ibc_path protoreflect.FieldDescriptor fd_AssetInfo_ibc_channel protoreflect.FieldDescriptor fd_AssetInfo_ibc_port protoreflect.FieldDescriptor ) func init() { file_did_v1_genesis_proto_init() md_AssetInfo = File_did_v1_genesis_proto.Messages().ByName("AssetInfo") fd_AssetInfo_id = md_AssetInfo.Fields().ByName("id") fd_AssetInfo_denom = md_AssetInfo.Fields().ByName("denom") fd_AssetInfo_symbol = md_AssetInfo.Fields().ByName("symbol") fd_AssetInfo_asset_type = md_AssetInfo.Fields().ByName("asset_type") fd_AssetInfo_origin_chain = md_AssetInfo.Fields().ByName("origin_chain") fd_AssetInfo_origin_denom = md_AssetInfo.Fields().ByName("origin_denom") fd_AssetInfo_decimals = md_AssetInfo.Fields().ByName("decimals") fd_AssetInfo_description = md_AssetInfo.Fields().ByName("description") fd_AssetInfo_image_url = md_AssetInfo.Fields().ByName("image_url") fd_AssetInfo_coingecko_id = md_AssetInfo.Fields().ByName("coingecko_id") fd_AssetInfo_is_enabled = md_AssetInfo.Fields().ByName("is_enabled") fd_AssetInfo_ibc_path = md_AssetInfo.Fields().ByName("ibc_path") fd_AssetInfo_ibc_channel = md_AssetInfo.Fields().ByName("ibc_channel") fd_AssetInfo_ibc_port = md_AssetInfo.Fields().ByName("ibc_port") } var _ protoreflect.Message = (*fastReflection_AssetInfo)(nil) type fastReflection_AssetInfo AssetInfo func (x *AssetInfo) ProtoReflect() protoreflect.Message { return (*fastReflection_AssetInfo)(x) } func (x *AssetInfo) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_genesis_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_AssetInfo_messageType fastReflection_AssetInfo_messageType var _ protoreflect.MessageType = fastReflection_AssetInfo_messageType{} type fastReflection_AssetInfo_messageType struct{} func (x fastReflection_AssetInfo_messageType) Zero() protoreflect.Message { return (*fastReflection_AssetInfo)(nil) } func (x fastReflection_AssetInfo_messageType) New() protoreflect.Message { return new(fastReflection_AssetInfo) } func (x fastReflection_AssetInfo_messageType) Descriptor() protoreflect.MessageDescriptor { return md_AssetInfo } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_AssetInfo) Descriptor() protoreflect.MessageDescriptor { return md_AssetInfo } // 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_AssetInfo) Type() protoreflect.MessageType { return _fastReflection_AssetInfo_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_AssetInfo) New() protoreflect.Message { return new(fastReflection_AssetInfo) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_AssetInfo) Interface() protoreflect.ProtoMessage { return (*AssetInfo)(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_AssetInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Id != "" { value := protoreflect.ValueOfString(x.Id) if !f(fd_AssetInfo_id, value) { return } } if x.Denom != "" { value := protoreflect.ValueOfString(x.Denom) if !f(fd_AssetInfo_denom, value) { return } } if x.Symbol != "" { value := protoreflect.ValueOfString(x.Symbol) if !f(fd_AssetInfo_symbol, value) { return } } if x.AssetType != "" { value := protoreflect.ValueOfString(x.AssetType) if !f(fd_AssetInfo_asset_type, value) { return } } if x.OriginChain != "" { value := protoreflect.ValueOfString(x.OriginChain) if !f(fd_AssetInfo_origin_chain, value) { return } } if x.OriginDenom != "" { value := protoreflect.ValueOfString(x.OriginDenom) if !f(fd_AssetInfo_origin_denom, value) { return } } if x.Decimals != int32(0) { value := protoreflect.ValueOfInt32(x.Decimals) if !f(fd_AssetInfo_decimals, value) { return } } if x.Description != "" { value := protoreflect.ValueOfString(x.Description) if !f(fd_AssetInfo_description, value) { return } } if x.ImageUrl != "" { value := protoreflect.ValueOfString(x.ImageUrl) if !f(fd_AssetInfo_image_url, value) { return } } if x.CoingeckoId != "" { value := protoreflect.ValueOfString(x.CoingeckoId) if !f(fd_AssetInfo_coingecko_id, value) { return } } if x.IsEnabled != false { value := protoreflect.ValueOfBool(x.IsEnabled) if !f(fd_AssetInfo_is_enabled, value) { return } } if x.IbcPath != "" { value := protoreflect.ValueOfString(x.IbcPath) if !f(fd_AssetInfo_ibc_path, value) { return } } if x.IbcChannel != "" { value := protoreflect.ValueOfString(x.IbcChannel) if !f(fd_AssetInfo_ibc_channel, value) { return } } if x.IbcPort != "" { value := protoreflect.ValueOfString(x.IbcPort) if !f(fd_AssetInfo_ibc_port, 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_AssetInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.AssetInfo.id": return x.Id != "" case "did.v1.AssetInfo.denom": return x.Denom != "" case "did.v1.AssetInfo.symbol": return x.Symbol != "" case "did.v1.AssetInfo.asset_type": return x.AssetType != "" case "did.v1.AssetInfo.origin_chain": return x.OriginChain != "" case "did.v1.AssetInfo.origin_denom": return x.OriginDenom != "" case "did.v1.AssetInfo.decimals": return x.Decimals != int32(0) case "did.v1.AssetInfo.description": return x.Description != "" case "did.v1.AssetInfo.image_url": return x.ImageUrl != "" case "did.v1.AssetInfo.coingecko_id": return x.CoingeckoId != "" case "did.v1.AssetInfo.is_enabled": return x.IsEnabled != false case "did.v1.AssetInfo.ibc_path": return x.IbcPath != "" case "did.v1.AssetInfo.ibc_channel": return x.IbcChannel != "" case "did.v1.AssetInfo.ibc_port": return x.IbcPort != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.AssetInfo")) } panic(fmt.Errorf("message did.v1.AssetInfo 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_AssetInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.AssetInfo.id": x.Id = "" case "did.v1.AssetInfo.denom": x.Denom = "" case "did.v1.AssetInfo.symbol": x.Symbol = "" case "did.v1.AssetInfo.asset_type": x.AssetType = "" case "did.v1.AssetInfo.origin_chain": x.OriginChain = "" case "did.v1.AssetInfo.origin_denom": x.OriginDenom = "" case "did.v1.AssetInfo.decimals": x.Decimals = int32(0) case "did.v1.AssetInfo.description": x.Description = "" case "did.v1.AssetInfo.image_url": x.ImageUrl = "" case "did.v1.AssetInfo.coingecko_id": x.CoingeckoId = "" case "did.v1.AssetInfo.is_enabled": x.IsEnabled = false case "did.v1.AssetInfo.ibc_path": x.IbcPath = "" case "did.v1.AssetInfo.ibc_channel": x.IbcChannel = "" case "did.v1.AssetInfo.ibc_port": x.IbcPort = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.AssetInfo")) } panic(fmt.Errorf("message did.v1.AssetInfo 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_AssetInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.AssetInfo.id": value := x.Id return protoreflect.ValueOfString(value) case "did.v1.AssetInfo.denom": value := x.Denom return protoreflect.ValueOfString(value) case "did.v1.AssetInfo.symbol": value := x.Symbol return protoreflect.ValueOfString(value) case "did.v1.AssetInfo.asset_type": value := x.AssetType return protoreflect.ValueOfString(value) case "did.v1.AssetInfo.origin_chain": value := x.OriginChain return protoreflect.ValueOfString(value) case "did.v1.AssetInfo.origin_denom": value := x.OriginDenom return protoreflect.ValueOfString(value) case "did.v1.AssetInfo.decimals": value := x.Decimals return protoreflect.ValueOfInt32(value) case "did.v1.AssetInfo.description": value := x.Description return protoreflect.ValueOfString(value) case "did.v1.AssetInfo.image_url": value := x.ImageUrl return protoreflect.ValueOfString(value) case "did.v1.AssetInfo.coingecko_id": value := x.CoingeckoId return protoreflect.ValueOfString(value) case "did.v1.AssetInfo.is_enabled": value := x.IsEnabled return protoreflect.ValueOfBool(value) case "did.v1.AssetInfo.ibc_path": value := x.IbcPath return protoreflect.ValueOfString(value) case "did.v1.AssetInfo.ibc_channel": value := x.IbcChannel return protoreflect.ValueOfString(value) case "did.v1.AssetInfo.ibc_port": value := x.IbcPort return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.AssetInfo")) } panic(fmt.Errorf("message did.v1.AssetInfo 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_AssetInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.AssetInfo.id": x.Id = value.Interface().(string) case "did.v1.AssetInfo.denom": x.Denom = value.Interface().(string) case "did.v1.AssetInfo.symbol": x.Symbol = value.Interface().(string) case "did.v1.AssetInfo.asset_type": x.AssetType = value.Interface().(string) case "did.v1.AssetInfo.origin_chain": x.OriginChain = value.Interface().(string) case "did.v1.AssetInfo.origin_denom": x.OriginDenom = value.Interface().(string) case "did.v1.AssetInfo.decimals": x.Decimals = int32(value.Int()) case "did.v1.AssetInfo.description": x.Description = value.Interface().(string) case "did.v1.AssetInfo.image_url": x.ImageUrl = value.Interface().(string) case "did.v1.AssetInfo.coingecko_id": x.CoingeckoId = value.Interface().(string) case "did.v1.AssetInfo.is_enabled": x.IsEnabled = value.Bool() case "did.v1.AssetInfo.ibc_path": x.IbcPath = value.Interface().(string) case "did.v1.AssetInfo.ibc_channel": x.IbcChannel = value.Interface().(string) case "did.v1.AssetInfo.ibc_port": x.IbcPort = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.AssetInfo")) } panic(fmt.Errorf("message did.v1.AssetInfo 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_AssetInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.AssetInfo.id": panic(fmt.Errorf("field id of message did.v1.AssetInfo is not mutable")) case "did.v1.AssetInfo.denom": panic(fmt.Errorf("field denom of message did.v1.AssetInfo is not mutable")) case "did.v1.AssetInfo.symbol": panic(fmt.Errorf("field symbol of message did.v1.AssetInfo is not mutable")) case "did.v1.AssetInfo.asset_type": panic(fmt.Errorf("field asset_type of message did.v1.AssetInfo is not mutable")) case "did.v1.AssetInfo.origin_chain": panic(fmt.Errorf("field origin_chain of message did.v1.AssetInfo is not mutable")) case "did.v1.AssetInfo.origin_denom": panic(fmt.Errorf("field origin_denom of message did.v1.AssetInfo is not mutable")) case "did.v1.AssetInfo.decimals": panic(fmt.Errorf("field decimals of message did.v1.AssetInfo is not mutable")) case "did.v1.AssetInfo.description": panic(fmt.Errorf("field description of message did.v1.AssetInfo is not mutable")) case "did.v1.AssetInfo.image_url": panic(fmt.Errorf("field image_url of message did.v1.AssetInfo is not mutable")) case "did.v1.AssetInfo.coingecko_id": panic(fmt.Errorf("field coingecko_id of message did.v1.AssetInfo is not mutable")) case "did.v1.AssetInfo.is_enabled": panic(fmt.Errorf("field is_enabled of message did.v1.AssetInfo is not mutable")) case "did.v1.AssetInfo.ibc_path": panic(fmt.Errorf("field ibc_path of message did.v1.AssetInfo is not mutable")) case "did.v1.AssetInfo.ibc_channel": panic(fmt.Errorf("field ibc_channel of message did.v1.AssetInfo is not mutable")) case "did.v1.AssetInfo.ibc_port": panic(fmt.Errorf("field ibc_port of message did.v1.AssetInfo is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.AssetInfo")) } panic(fmt.Errorf("message did.v1.AssetInfo 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_AssetInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.AssetInfo.id": return protoreflect.ValueOfString("") case "did.v1.AssetInfo.denom": return protoreflect.ValueOfString("") case "did.v1.AssetInfo.symbol": return protoreflect.ValueOfString("") case "did.v1.AssetInfo.asset_type": return protoreflect.ValueOfString("") case "did.v1.AssetInfo.origin_chain": return protoreflect.ValueOfString("") case "did.v1.AssetInfo.origin_denom": return protoreflect.ValueOfString("") case "did.v1.AssetInfo.decimals": return protoreflect.ValueOfInt32(int32(0)) case "did.v1.AssetInfo.description": return protoreflect.ValueOfString("") case "did.v1.AssetInfo.image_url": return protoreflect.ValueOfString("") case "did.v1.AssetInfo.coingecko_id": return protoreflect.ValueOfString("") case "did.v1.AssetInfo.is_enabled": return protoreflect.ValueOfBool(false) case "did.v1.AssetInfo.ibc_path": return protoreflect.ValueOfString("") case "did.v1.AssetInfo.ibc_channel": return protoreflect.ValueOfString("") case "did.v1.AssetInfo.ibc_port": return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.AssetInfo")) } panic(fmt.Errorf("message did.v1.AssetInfo 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_AssetInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.AssetInfo", 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_AssetInfo) 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_AssetInfo) 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_AssetInfo) 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_AssetInfo) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*AssetInfo) 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.Id) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Denom) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Symbol) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.AssetType) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.OriginChain) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.OriginDenom) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.Decimals != 0 { n += 1 + runtime.Sov(uint64(x.Decimals)) } l = len(x.Description) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.ImageUrl) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.CoingeckoId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.IsEnabled { n += 2 } l = len(x.IbcPath) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.IbcChannel) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.IbcPort) 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().(*AssetInfo) 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.IbcPort) > 0 { i -= len(x.IbcPort) copy(dAtA[i:], x.IbcPort) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IbcPort))) i-- dAtA[i] = 0x72 } if len(x.IbcChannel) > 0 { i -= len(x.IbcChannel) copy(dAtA[i:], x.IbcChannel) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IbcChannel))) i-- dAtA[i] = 0x6a } if len(x.IbcPath) > 0 { i -= len(x.IbcPath) copy(dAtA[i:], x.IbcPath) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IbcPath))) i-- dAtA[i] = 0x62 } if x.IsEnabled { i-- if x.IsEnabled { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x58 } if len(x.CoingeckoId) > 0 { i -= len(x.CoingeckoId) copy(dAtA[i:], x.CoingeckoId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CoingeckoId))) i-- dAtA[i] = 0x52 } if len(x.ImageUrl) > 0 { i -= len(x.ImageUrl) copy(dAtA[i:], x.ImageUrl) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ImageUrl))) i-- dAtA[i] = 0x4a } if len(x.Description) > 0 { i -= len(x.Description) copy(dAtA[i:], x.Description) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Description))) i-- dAtA[i] = 0x42 } if x.Decimals != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Decimals)) i-- dAtA[i] = 0x38 } if len(x.OriginDenom) > 0 { i -= len(x.OriginDenom) copy(dAtA[i:], x.OriginDenom) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OriginDenom))) i-- dAtA[i] = 0x32 } if len(x.OriginChain) > 0 { i -= len(x.OriginChain) copy(dAtA[i:], x.OriginChain) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OriginChain))) i-- dAtA[i] = 0x2a } if len(x.AssetType) > 0 { i -= len(x.AssetType) copy(dAtA[i:], x.AssetType) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AssetType))) i-- dAtA[i] = 0x22 } if len(x.Symbol) > 0 { i -= len(x.Symbol) copy(dAtA[i:], x.Symbol) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Symbol))) i-- dAtA[i] = 0x1a } if len(x.Denom) > 0 { i -= len(x.Denom) copy(dAtA[i:], x.Denom) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Denom))) i-- dAtA[i] = 0x12 } if len(x.Id) > 0 { i -= len(x.Id) copy(dAtA[i:], x.Id) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) 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().(*AssetInfo) 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: AssetInfo: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AssetInfo: 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 Id", 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.Id = 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 Denom", 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.Denom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Symbol", 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.Symbol = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AssetType", 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.AssetType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OriginChain", 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.OriginChain = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OriginDenom", 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.OriginDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 7: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) } x.Decimals = 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.Decimals |= int32(b&0x7F) << shift if b < 0x80 { break } } case 8: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Description", 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.Description = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 9: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ImageUrl", 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.ImageUrl = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 10: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CoingeckoId", 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.CoingeckoId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 11: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsEnabled", wireType) } var v 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++ v |= int(b&0x7F) << shift if b < 0x80 { break } } x.IsEnabled = bool(v != 0) case 12: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IbcPath", 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.IbcPath = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 13: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IbcChannel", 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.IbcChannel = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 14: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IbcPort", 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.IbcPort = 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 _ protoreflect.List = (*_ChainInfo_7_list)(nil) type _ChainInfo_7_list struct { list *[]*ChainInfo_Endpoint } func (x *_ChainInfo_7_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } func (x *_ChainInfo_7_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } func (x *_ChainInfo_7_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ChainInfo_Endpoint) (*x.list)[i] = concreteValue } func (x *_ChainInfo_7_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ChainInfo_Endpoint) *x.list = append(*x.list, concreteValue) } func (x *_ChainInfo_7_list) AppendMutable() protoreflect.Value { v := new(ChainInfo_Endpoint) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_ChainInfo_7_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } func (x *_ChainInfo_7_list) NewElement() protoreflect.Value { v := new(ChainInfo_Endpoint) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_ChainInfo_7_list) IsValid() bool { return x.list != nil } var _ protoreflect.List = (*_ChainInfo_8_list)(nil) type _ChainInfo_8_list struct { list *[]*ChainInfo_Endpoint } func (x *_ChainInfo_8_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } func (x *_ChainInfo_8_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } func (x *_ChainInfo_8_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ChainInfo_Endpoint) (*x.list)[i] = concreteValue } func (x *_ChainInfo_8_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ChainInfo_Endpoint) *x.list = append(*x.list, concreteValue) } func (x *_ChainInfo_8_list) AppendMutable() protoreflect.Value { v := new(ChainInfo_Endpoint) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_ChainInfo_8_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } func (x *_ChainInfo_8_list) NewElement() protoreflect.Value { v := new(ChainInfo_Endpoint) return protoreflect.ValueOfMessage(v.ProtoReflect()) } func (x *_ChainInfo_8_list) IsValid() bool { return x.list != nil } var ( md_ChainInfo protoreflect.MessageDescriptor fd_ChainInfo_id protoreflect.FieldDescriptor fd_ChainInfo_chain_id protoreflect.FieldDescriptor fd_ChainInfo_name protoreflect.FieldDescriptor fd_ChainInfo_symbol protoreflect.FieldDescriptor fd_ChainInfo_bech32_prefix protoreflect.FieldDescriptor fd_ChainInfo_genesis_time protoreflect.FieldDescriptor fd_ChainInfo_grpc_endpoints protoreflect.FieldDescriptor fd_ChainInfo_rest_endpoints protoreflect.FieldDescriptor fd_ChainInfo_explorer protoreflect.FieldDescriptor fd_ChainInfo_fee_info protoreflect.FieldDescriptor ) func init() { file_did_v1_genesis_proto_init() md_ChainInfo = File_did_v1_genesis_proto.Messages().ByName("ChainInfo") fd_ChainInfo_id = md_ChainInfo.Fields().ByName("id") fd_ChainInfo_chain_id = md_ChainInfo.Fields().ByName("chain_id") fd_ChainInfo_name = md_ChainInfo.Fields().ByName("name") fd_ChainInfo_symbol = md_ChainInfo.Fields().ByName("symbol") fd_ChainInfo_bech32_prefix = md_ChainInfo.Fields().ByName("bech32_prefix") fd_ChainInfo_genesis_time = md_ChainInfo.Fields().ByName("genesis_time") fd_ChainInfo_grpc_endpoints = md_ChainInfo.Fields().ByName("grpc_endpoints") fd_ChainInfo_rest_endpoints = md_ChainInfo.Fields().ByName("rest_endpoints") fd_ChainInfo_explorer = md_ChainInfo.Fields().ByName("explorer") fd_ChainInfo_fee_info = md_ChainInfo.Fields().ByName("fee_info") } var _ protoreflect.Message = (*fastReflection_ChainInfo)(nil) type fastReflection_ChainInfo ChainInfo func (x *ChainInfo) ProtoReflect() protoreflect.Message { return (*fastReflection_ChainInfo)(x) } func (x *ChainInfo) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_genesis_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_ChainInfo_messageType fastReflection_ChainInfo_messageType var _ protoreflect.MessageType = fastReflection_ChainInfo_messageType{} type fastReflection_ChainInfo_messageType struct{} func (x fastReflection_ChainInfo_messageType) Zero() protoreflect.Message { return (*fastReflection_ChainInfo)(nil) } func (x fastReflection_ChainInfo_messageType) New() protoreflect.Message { return new(fastReflection_ChainInfo) } func (x fastReflection_ChainInfo_messageType) Descriptor() protoreflect.MessageDescriptor { return md_ChainInfo } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_ChainInfo) Descriptor() protoreflect.MessageDescriptor { return md_ChainInfo } // 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_ChainInfo) Type() protoreflect.MessageType { return _fastReflection_ChainInfo_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_ChainInfo) New() protoreflect.Message { return new(fastReflection_ChainInfo) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_ChainInfo) Interface() protoreflect.ProtoMessage { return (*ChainInfo)(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_ChainInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Id != "" { value := protoreflect.ValueOfString(x.Id) if !f(fd_ChainInfo_id, value) { return } } if x.ChainId != "" { value := protoreflect.ValueOfString(x.ChainId) if !f(fd_ChainInfo_chain_id, value) { return } } if x.Name != "" { value := protoreflect.ValueOfString(x.Name) if !f(fd_ChainInfo_name, value) { return } } if x.Symbol != "" { value := protoreflect.ValueOfString(x.Symbol) if !f(fd_ChainInfo_symbol, value) { return } } if x.Bech32Prefix != "" { value := protoreflect.ValueOfString(x.Bech32Prefix) if !f(fd_ChainInfo_bech32_prefix, value) { return } } if x.GenesisTime != "" { value := protoreflect.ValueOfString(x.GenesisTime) if !f(fd_ChainInfo_genesis_time, value) { return } } if len(x.GrpcEndpoints) != 0 { value := protoreflect.ValueOfList(&_ChainInfo_7_list{list: &x.GrpcEndpoints}) if !f(fd_ChainInfo_grpc_endpoints, value) { return } } if len(x.RestEndpoints) != 0 { value := protoreflect.ValueOfList(&_ChainInfo_8_list{list: &x.RestEndpoints}) if !f(fd_ChainInfo_rest_endpoints, value) { return } } if x.Explorer != nil { value := protoreflect.ValueOfMessage(x.Explorer.ProtoReflect()) if !f(fd_ChainInfo_explorer, value) { return } } if x.FeeInfo != nil { value := protoreflect.ValueOfMessage(x.FeeInfo.ProtoReflect()) if !f(fd_ChainInfo_fee_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_ChainInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.ChainInfo.id": return x.Id != "" case "did.v1.ChainInfo.chain_id": return x.ChainId != "" case "did.v1.ChainInfo.name": return x.Name != "" case "did.v1.ChainInfo.symbol": return x.Symbol != "" case "did.v1.ChainInfo.bech32_prefix": return x.Bech32Prefix != "" case "did.v1.ChainInfo.genesis_time": return x.GenesisTime != "" case "did.v1.ChainInfo.grpc_endpoints": return len(x.GrpcEndpoints) != 0 case "did.v1.ChainInfo.rest_endpoints": return len(x.RestEndpoints) != 0 case "did.v1.ChainInfo.explorer": return x.Explorer != nil case "did.v1.ChainInfo.fee_info": return x.FeeInfo != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo 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_ChainInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.ChainInfo.id": x.Id = "" case "did.v1.ChainInfo.chain_id": x.ChainId = "" case "did.v1.ChainInfo.name": x.Name = "" case "did.v1.ChainInfo.symbol": x.Symbol = "" case "did.v1.ChainInfo.bech32_prefix": x.Bech32Prefix = "" case "did.v1.ChainInfo.genesis_time": x.GenesisTime = "" case "did.v1.ChainInfo.grpc_endpoints": x.GrpcEndpoints = nil case "did.v1.ChainInfo.rest_endpoints": x.RestEndpoints = nil case "did.v1.ChainInfo.explorer": x.Explorer = nil case "did.v1.ChainInfo.fee_info": x.FeeInfo = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo 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_ChainInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.ChainInfo.id": value := x.Id return protoreflect.ValueOfString(value) case "did.v1.ChainInfo.chain_id": value := x.ChainId return protoreflect.ValueOfString(value) case "did.v1.ChainInfo.name": value := x.Name return protoreflect.ValueOfString(value) case "did.v1.ChainInfo.symbol": value := x.Symbol return protoreflect.ValueOfString(value) case "did.v1.ChainInfo.bech32_prefix": value := x.Bech32Prefix return protoreflect.ValueOfString(value) case "did.v1.ChainInfo.genesis_time": value := x.GenesisTime return protoreflect.ValueOfString(value) case "did.v1.ChainInfo.grpc_endpoints": if len(x.GrpcEndpoints) == 0 { return protoreflect.ValueOfList(&_ChainInfo_7_list{}) } listValue := &_ChainInfo_7_list{list: &x.GrpcEndpoints} return protoreflect.ValueOfList(listValue) case "did.v1.ChainInfo.rest_endpoints": if len(x.RestEndpoints) == 0 { return protoreflect.ValueOfList(&_ChainInfo_8_list{}) } listValue := &_ChainInfo_8_list{list: &x.RestEndpoints} return protoreflect.ValueOfList(listValue) case "did.v1.ChainInfo.explorer": value := x.Explorer return protoreflect.ValueOfMessage(value.ProtoReflect()) case "did.v1.ChainInfo.fee_info": value := x.FeeInfo return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo 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_ChainInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.ChainInfo.id": x.Id = value.Interface().(string) case "did.v1.ChainInfo.chain_id": x.ChainId = value.Interface().(string) case "did.v1.ChainInfo.name": x.Name = value.Interface().(string) case "did.v1.ChainInfo.symbol": x.Symbol = value.Interface().(string) case "did.v1.ChainInfo.bech32_prefix": x.Bech32Prefix = value.Interface().(string) case "did.v1.ChainInfo.genesis_time": x.GenesisTime = value.Interface().(string) case "did.v1.ChainInfo.grpc_endpoints": lv := value.List() clv := lv.(*_ChainInfo_7_list) x.GrpcEndpoints = *clv.list case "did.v1.ChainInfo.rest_endpoints": lv := value.List() clv := lv.(*_ChainInfo_8_list) x.RestEndpoints = *clv.list case "did.v1.ChainInfo.explorer": x.Explorer = value.Message().Interface().(*ChainInfo_ExplorerInfo) case "did.v1.ChainInfo.fee_info": x.FeeInfo = value.Message().Interface().(*ChainInfo_FeeInfo) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo 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_ChainInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.ChainInfo.grpc_endpoints": if x.GrpcEndpoints == nil { x.GrpcEndpoints = []*ChainInfo_Endpoint{} } value := &_ChainInfo_7_list{list: &x.GrpcEndpoints} return protoreflect.ValueOfList(value) case "did.v1.ChainInfo.rest_endpoints": if x.RestEndpoints == nil { x.RestEndpoints = []*ChainInfo_Endpoint{} } value := &_ChainInfo_8_list{list: &x.RestEndpoints} return protoreflect.ValueOfList(value) case "did.v1.ChainInfo.explorer": if x.Explorer == nil { x.Explorer = new(ChainInfo_ExplorerInfo) } return protoreflect.ValueOfMessage(x.Explorer.ProtoReflect()) case "did.v1.ChainInfo.fee_info": if x.FeeInfo == nil { x.FeeInfo = new(ChainInfo_FeeInfo) } return protoreflect.ValueOfMessage(x.FeeInfo.ProtoReflect()) case "did.v1.ChainInfo.id": panic(fmt.Errorf("field id of message did.v1.ChainInfo is not mutable")) case "did.v1.ChainInfo.chain_id": panic(fmt.Errorf("field chain_id of message did.v1.ChainInfo is not mutable")) case "did.v1.ChainInfo.name": panic(fmt.Errorf("field name of message did.v1.ChainInfo is not mutable")) case "did.v1.ChainInfo.symbol": panic(fmt.Errorf("field symbol of message did.v1.ChainInfo is not mutable")) case "did.v1.ChainInfo.bech32_prefix": panic(fmt.Errorf("field bech32_prefix of message did.v1.ChainInfo is not mutable")) case "did.v1.ChainInfo.genesis_time": panic(fmt.Errorf("field genesis_time of message did.v1.ChainInfo is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo 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_ChainInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.ChainInfo.id": return protoreflect.ValueOfString("") case "did.v1.ChainInfo.chain_id": return protoreflect.ValueOfString("") case "did.v1.ChainInfo.name": return protoreflect.ValueOfString("") case "did.v1.ChainInfo.symbol": return protoreflect.ValueOfString("") case "did.v1.ChainInfo.bech32_prefix": return protoreflect.ValueOfString("") case "did.v1.ChainInfo.genesis_time": return protoreflect.ValueOfString("") case "did.v1.ChainInfo.grpc_endpoints": list := []*ChainInfo_Endpoint{} return protoreflect.ValueOfList(&_ChainInfo_7_list{list: &list}) case "did.v1.ChainInfo.rest_endpoints": list := []*ChainInfo_Endpoint{} return protoreflect.ValueOfList(&_ChainInfo_8_list{list: &list}) case "did.v1.ChainInfo.explorer": m := new(ChainInfo_ExplorerInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "did.v1.ChainInfo.fee_info": m := new(ChainInfo_FeeInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo 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_ChainInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.ChainInfo", 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_ChainInfo) 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_ChainInfo) 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_ChainInfo) 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_ChainInfo) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*ChainInfo) 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.Id) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.ChainId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Name) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Symbol) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Bech32Prefix) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.GenesisTime) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if len(x.GrpcEndpoints) > 0 { for _, e := range x.GrpcEndpoints { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } if len(x.RestEndpoints) > 0 { for _, e := range x.RestEndpoints { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } if x.Explorer != nil { l = options.Size(x.Explorer) n += 1 + l + runtime.Sov(uint64(l)) } if x.FeeInfo != nil { l = options.Size(x.FeeInfo) 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().(*ChainInfo) 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.FeeInfo != nil { encoded, err := options.Marshal(x.FeeInfo) 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] = 0x52 } if x.Explorer != nil { encoded, err := options.Marshal(x.Explorer) 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] = 0x4a } if len(x.RestEndpoints) > 0 { for iNdEx := len(x.RestEndpoints) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.RestEndpoints[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] = 0x42 } } if len(x.GrpcEndpoints) > 0 { for iNdEx := len(x.GrpcEndpoints) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.GrpcEndpoints[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] = 0x3a } } if len(x.GenesisTime) > 0 { i -= len(x.GenesisTime) copy(dAtA[i:], x.GenesisTime) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.GenesisTime))) i-- dAtA[i] = 0x32 } if len(x.Bech32Prefix) > 0 { i -= len(x.Bech32Prefix) copy(dAtA[i:], x.Bech32Prefix) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Bech32Prefix))) i-- dAtA[i] = 0x2a } if len(x.Symbol) > 0 { i -= len(x.Symbol) copy(dAtA[i:], x.Symbol) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Symbol))) i-- dAtA[i] = 0x22 } if len(x.Name) > 0 { i -= len(x.Name) copy(dAtA[i:], x.Name) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) i-- dAtA[i] = 0x1a } if len(x.ChainId) > 0 { i -= len(x.ChainId) copy(dAtA[i:], x.ChainId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ChainId))) i-- dAtA[i] = 0x12 } if len(x.Id) > 0 { i -= len(x.Id) copy(dAtA[i:], x.Id) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id))) 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().(*ChainInfo) 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: ChainInfo: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ChainInfo: 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 Id", 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.Id = 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 ChainId", 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.ChainId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", 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.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Symbol", 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.Symbol = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Bech32Prefix", 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.Bech32Prefix = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GenesisTime", 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.GenesisTime = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 7: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GrpcEndpoints", 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.GrpcEndpoints = append(x.GrpcEndpoints, &ChainInfo_Endpoint{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GrpcEndpoints[len(x.GrpcEndpoints)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 8: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RestEndpoints", 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.RestEndpoints = append(x.RestEndpoints, &ChainInfo_Endpoint{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RestEndpoints[len(x.RestEndpoints)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 9: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Explorer", 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.Explorer == nil { x.Explorer = &ChainInfo_ExplorerInfo{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Explorer); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 10: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FeeInfo", 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.FeeInfo == nil { x.FeeInfo = &ChainInfo_FeeInfo{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.FeeInfo); 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_ChainInfo_Endpoint protoreflect.MessageDescriptor fd_ChainInfo_Endpoint_url protoreflect.FieldDescriptor fd_ChainInfo_Endpoint_is_primary protoreflect.FieldDescriptor ) func init() { file_did_v1_genesis_proto_init() md_ChainInfo_Endpoint = File_did_v1_genesis_proto.Messages().ByName("ChainInfo").Messages().ByName("Endpoint") fd_ChainInfo_Endpoint_url = md_ChainInfo_Endpoint.Fields().ByName("url") fd_ChainInfo_Endpoint_is_primary = md_ChainInfo_Endpoint.Fields().ByName("is_primary") } var _ protoreflect.Message = (*fastReflection_ChainInfo_Endpoint)(nil) type fastReflection_ChainInfo_Endpoint ChainInfo_Endpoint func (x *ChainInfo_Endpoint) ProtoReflect() protoreflect.Message { return (*fastReflection_ChainInfo_Endpoint)(x) } func (x *ChainInfo_Endpoint) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_genesis_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_ChainInfo_Endpoint_messageType fastReflection_ChainInfo_Endpoint_messageType var _ protoreflect.MessageType = fastReflection_ChainInfo_Endpoint_messageType{} type fastReflection_ChainInfo_Endpoint_messageType struct{} func (x fastReflection_ChainInfo_Endpoint_messageType) Zero() protoreflect.Message { return (*fastReflection_ChainInfo_Endpoint)(nil) } func (x fastReflection_ChainInfo_Endpoint_messageType) New() protoreflect.Message { return new(fastReflection_ChainInfo_Endpoint) } func (x fastReflection_ChainInfo_Endpoint_messageType) Descriptor() protoreflect.MessageDescriptor { return md_ChainInfo_Endpoint } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_ChainInfo_Endpoint) Descriptor() protoreflect.MessageDescriptor { return md_ChainInfo_Endpoint } // 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_ChainInfo_Endpoint) Type() protoreflect.MessageType { return _fastReflection_ChainInfo_Endpoint_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_ChainInfo_Endpoint) New() protoreflect.Message { return new(fastReflection_ChainInfo_Endpoint) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_ChainInfo_Endpoint) Interface() protoreflect.ProtoMessage { return (*ChainInfo_Endpoint)(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_ChainInfo_Endpoint) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Url != "" { value := protoreflect.ValueOfString(x.Url) if !f(fd_ChainInfo_Endpoint_url, value) { return } } if x.IsPrimary != false { value := protoreflect.ValueOfBool(x.IsPrimary) if !f(fd_ChainInfo_Endpoint_is_primary, 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_ChainInfo_Endpoint) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.ChainInfo.Endpoint.url": return x.Url != "" case "did.v1.ChainInfo.Endpoint.is_primary": return x.IsPrimary != false default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.Endpoint")) } panic(fmt.Errorf("message did.v1.ChainInfo.Endpoint 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_ChainInfo_Endpoint) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.ChainInfo.Endpoint.url": x.Url = "" case "did.v1.ChainInfo.Endpoint.is_primary": x.IsPrimary = false default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.Endpoint")) } panic(fmt.Errorf("message did.v1.ChainInfo.Endpoint 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_ChainInfo_Endpoint) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.ChainInfo.Endpoint.url": value := x.Url return protoreflect.ValueOfString(value) case "did.v1.ChainInfo.Endpoint.is_primary": value := x.IsPrimary return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.Endpoint")) } panic(fmt.Errorf("message did.v1.ChainInfo.Endpoint 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_ChainInfo_Endpoint) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.ChainInfo.Endpoint.url": x.Url = value.Interface().(string) case "did.v1.ChainInfo.Endpoint.is_primary": x.IsPrimary = value.Bool() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.Endpoint")) } panic(fmt.Errorf("message did.v1.ChainInfo.Endpoint 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_ChainInfo_Endpoint) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.ChainInfo.Endpoint.url": panic(fmt.Errorf("field url of message did.v1.ChainInfo.Endpoint is not mutable")) case "did.v1.ChainInfo.Endpoint.is_primary": panic(fmt.Errorf("field is_primary of message did.v1.ChainInfo.Endpoint is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.Endpoint")) } panic(fmt.Errorf("message did.v1.ChainInfo.Endpoint 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_ChainInfo_Endpoint) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.ChainInfo.Endpoint.url": return protoreflect.ValueOfString("") case "did.v1.ChainInfo.Endpoint.is_primary": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.Endpoint")) } panic(fmt.Errorf("message did.v1.ChainInfo.Endpoint 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_ChainInfo_Endpoint) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.ChainInfo.Endpoint", 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_ChainInfo_Endpoint) 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_ChainInfo_Endpoint) 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_ChainInfo_Endpoint) 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_ChainInfo_Endpoint) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*ChainInfo_Endpoint) 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.Url) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.IsPrimary { n += 2 } 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().(*ChainInfo_Endpoint) 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.IsPrimary { i-- if x.IsPrimary { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x10 } if len(x.Url) > 0 { i -= len(x.Url) copy(dAtA[i:], x.Url) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Url))) 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().(*ChainInfo_Endpoint) 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: ChainInfo_Endpoint: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ChainInfo_Endpoint: 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 Url", 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.Url = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsPrimary", wireType) } var v 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++ v |= int(b&0x7F) << shift if b < 0x80 { break } } x.IsPrimary = bool(v != 0) 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_ChainInfo_ExplorerInfo protoreflect.MessageDescriptor fd_ChainInfo_ExplorerInfo_name protoreflect.FieldDescriptor fd_ChainInfo_ExplorerInfo_url protoreflect.FieldDescriptor ) func init() { file_did_v1_genesis_proto_init() md_ChainInfo_ExplorerInfo = File_did_v1_genesis_proto.Messages().ByName("ChainInfo").Messages().ByName("ExplorerInfo") fd_ChainInfo_ExplorerInfo_name = md_ChainInfo_ExplorerInfo.Fields().ByName("name") fd_ChainInfo_ExplorerInfo_url = md_ChainInfo_ExplorerInfo.Fields().ByName("url") } var _ protoreflect.Message = (*fastReflection_ChainInfo_ExplorerInfo)(nil) type fastReflection_ChainInfo_ExplorerInfo ChainInfo_ExplorerInfo func (x *ChainInfo_ExplorerInfo) ProtoReflect() protoreflect.Message { return (*fastReflection_ChainInfo_ExplorerInfo)(x) } func (x *ChainInfo_ExplorerInfo) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_genesis_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_ChainInfo_ExplorerInfo_messageType fastReflection_ChainInfo_ExplorerInfo_messageType var _ protoreflect.MessageType = fastReflection_ChainInfo_ExplorerInfo_messageType{} type fastReflection_ChainInfo_ExplorerInfo_messageType struct{} func (x fastReflection_ChainInfo_ExplorerInfo_messageType) Zero() protoreflect.Message { return (*fastReflection_ChainInfo_ExplorerInfo)(nil) } func (x fastReflection_ChainInfo_ExplorerInfo_messageType) New() protoreflect.Message { return new(fastReflection_ChainInfo_ExplorerInfo) } func (x fastReflection_ChainInfo_ExplorerInfo_messageType) Descriptor() protoreflect.MessageDescriptor { return md_ChainInfo_ExplorerInfo } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_ChainInfo_ExplorerInfo) Descriptor() protoreflect.MessageDescriptor { return md_ChainInfo_ExplorerInfo } // 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_ChainInfo_ExplorerInfo) Type() protoreflect.MessageType { return _fastReflection_ChainInfo_ExplorerInfo_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_ChainInfo_ExplorerInfo) New() protoreflect.Message { return new(fastReflection_ChainInfo_ExplorerInfo) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_ChainInfo_ExplorerInfo) Interface() protoreflect.ProtoMessage { return (*ChainInfo_ExplorerInfo)(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_ChainInfo_ExplorerInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Name != "" { value := protoreflect.ValueOfString(x.Name) if !f(fd_ChainInfo_ExplorerInfo_name, value) { return } } if x.Url != "" { value := protoreflect.ValueOfString(x.Url) if !f(fd_ChainInfo_ExplorerInfo_url, 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_ChainInfo_ExplorerInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.ChainInfo.ExplorerInfo.name": return x.Name != "" case "did.v1.ChainInfo.ExplorerInfo.url": return x.Url != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.ExplorerInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo.ExplorerInfo 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_ChainInfo_ExplorerInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.ChainInfo.ExplorerInfo.name": x.Name = "" case "did.v1.ChainInfo.ExplorerInfo.url": x.Url = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.ExplorerInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo.ExplorerInfo 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_ChainInfo_ExplorerInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.ChainInfo.ExplorerInfo.name": value := x.Name return protoreflect.ValueOfString(value) case "did.v1.ChainInfo.ExplorerInfo.url": value := x.Url return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.ExplorerInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo.ExplorerInfo 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_ChainInfo_ExplorerInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.ChainInfo.ExplorerInfo.name": x.Name = value.Interface().(string) case "did.v1.ChainInfo.ExplorerInfo.url": x.Url = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.ExplorerInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo.ExplorerInfo 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_ChainInfo_ExplorerInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.ChainInfo.ExplorerInfo.name": panic(fmt.Errorf("field name of message did.v1.ChainInfo.ExplorerInfo is not mutable")) case "did.v1.ChainInfo.ExplorerInfo.url": panic(fmt.Errorf("field url of message did.v1.ChainInfo.ExplorerInfo is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.ExplorerInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo.ExplorerInfo 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_ChainInfo_ExplorerInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.ChainInfo.ExplorerInfo.name": return protoreflect.ValueOfString("") case "did.v1.ChainInfo.ExplorerInfo.url": return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.ExplorerInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo.ExplorerInfo 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_ChainInfo_ExplorerInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.ChainInfo.ExplorerInfo", 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_ChainInfo_ExplorerInfo) 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_ChainInfo_ExplorerInfo) 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_ChainInfo_ExplorerInfo) 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_ChainInfo_ExplorerInfo) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*ChainInfo_ExplorerInfo) 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.Name) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Url) 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().(*ChainInfo_ExplorerInfo) 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.Url) > 0 { i -= len(x.Url) copy(dAtA[i:], x.Url) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Url))) i-- dAtA[i] = 0x12 } if len(x.Name) > 0 { i -= len(x.Name) copy(dAtA[i:], x.Name) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name))) 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().(*ChainInfo_ExplorerInfo) 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: ChainInfo_ExplorerInfo: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ChainInfo_ExplorerInfo: 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 Name", 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.Name = 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 Url", 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.Url = 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 _ protoreflect.List = (*_ChainInfo_FeeInfo_2_list)(nil) type _ChainInfo_FeeInfo_2_list struct { list *[]string } func (x *_ChainInfo_FeeInfo_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } func (x *_ChainInfo_FeeInfo_2_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfString((*x.list)[i]) } func (x *_ChainInfo_FeeInfo_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } func (x *_ChainInfo_FeeInfo_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } func (x *_ChainInfo_FeeInfo_2_list) AppendMutable() protoreflect.Value { panic(fmt.Errorf("AppendMutable can not be called on message ChainInfo_FeeInfo at list field FeeRates as it is not of Message kind")) } func (x *_ChainInfo_FeeInfo_2_list) Truncate(n int) { *x.list = (*x.list)[:n] } func (x *_ChainInfo_FeeInfo_2_list) NewElement() protoreflect.Value { v := "" return protoreflect.ValueOfString(v) } func (x *_ChainInfo_FeeInfo_2_list) IsValid() bool { return x.list != nil } var ( md_ChainInfo_FeeInfo protoreflect.MessageDescriptor fd_ChainInfo_FeeInfo_base_denom protoreflect.FieldDescriptor fd_ChainInfo_FeeInfo_fee_rates protoreflect.FieldDescriptor fd_ChainInfo_FeeInfo_init_gas_limit protoreflect.FieldDescriptor fd_ChainInfo_FeeInfo_is_simulable protoreflect.FieldDescriptor fd_ChainInfo_FeeInfo_gas_multiply protoreflect.FieldDescriptor ) func init() { file_did_v1_genesis_proto_init() md_ChainInfo_FeeInfo = File_did_v1_genesis_proto.Messages().ByName("ChainInfo").Messages().ByName("FeeInfo") fd_ChainInfo_FeeInfo_base_denom = md_ChainInfo_FeeInfo.Fields().ByName("base_denom") fd_ChainInfo_FeeInfo_fee_rates = md_ChainInfo_FeeInfo.Fields().ByName("fee_rates") fd_ChainInfo_FeeInfo_init_gas_limit = md_ChainInfo_FeeInfo.Fields().ByName("init_gas_limit") fd_ChainInfo_FeeInfo_is_simulable = md_ChainInfo_FeeInfo.Fields().ByName("is_simulable") fd_ChainInfo_FeeInfo_gas_multiply = md_ChainInfo_FeeInfo.Fields().ByName("gas_multiply") } var _ protoreflect.Message = (*fastReflection_ChainInfo_FeeInfo)(nil) type fastReflection_ChainInfo_FeeInfo ChainInfo_FeeInfo func (x *ChainInfo_FeeInfo) ProtoReflect() protoreflect.Message { return (*fastReflection_ChainInfo_FeeInfo)(x) } func (x *ChainInfo_FeeInfo) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_genesis_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_ChainInfo_FeeInfo_messageType fastReflection_ChainInfo_FeeInfo_messageType var _ protoreflect.MessageType = fastReflection_ChainInfo_FeeInfo_messageType{} type fastReflection_ChainInfo_FeeInfo_messageType struct{} func (x fastReflection_ChainInfo_FeeInfo_messageType) Zero() protoreflect.Message { return (*fastReflection_ChainInfo_FeeInfo)(nil) } func (x fastReflection_ChainInfo_FeeInfo_messageType) New() protoreflect.Message { return new(fastReflection_ChainInfo_FeeInfo) } func (x fastReflection_ChainInfo_FeeInfo_messageType) Descriptor() protoreflect.MessageDescriptor { return md_ChainInfo_FeeInfo } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_ChainInfo_FeeInfo) Descriptor() protoreflect.MessageDescriptor { return md_ChainInfo_FeeInfo } // 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_ChainInfo_FeeInfo) Type() protoreflect.MessageType { return _fastReflection_ChainInfo_FeeInfo_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_ChainInfo_FeeInfo) New() protoreflect.Message { return new(fastReflection_ChainInfo_FeeInfo) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_ChainInfo_FeeInfo) Interface() protoreflect.ProtoMessage { return (*ChainInfo_FeeInfo)(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_ChainInfo_FeeInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.BaseDenom != "" { value := protoreflect.ValueOfString(x.BaseDenom) if !f(fd_ChainInfo_FeeInfo_base_denom, value) { return } } if len(x.FeeRates) != 0 { value := protoreflect.ValueOfList(&_ChainInfo_FeeInfo_2_list{list: &x.FeeRates}) if !f(fd_ChainInfo_FeeInfo_fee_rates, value) { return } } if x.InitGasLimit != int32(0) { value := protoreflect.ValueOfInt32(x.InitGasLimit) if !f(fd_ChainInfo_FeeInfo_init_gas_limit, value) { return } } if x.IsSimulable != false { value := protoreflect.ValueOfBool(x.IsSimulable) if !f(fd_ChainInfo_FeeInfo_is_simulable, value) { return } } if x.GasMultiply != float64(0) || math.Signbit(x.GasMultiply) { value := protoreflect.ValueOfFloat64(x.GasMultiply) if !f(fd_ChainInfo_FeeInfo_gas_multiply, 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_ChainInfo_FeeInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.ChainInfo.FeeInfo.base_denom": return x.BaseDenom != "" case "did.v1.ChainInfo.FeeInfo.fee_rates": return len(x.FeeRates) != 0 case "did.v1.ChainInfo.FeeInfo.init_gas_limit": return x.InitGasLimit != int32(0) case "did.v1.ChainInfo.FeeInfo.is_simulable": return x.IsSimulable != false case "did.v1.ChainInfo.FeeInfo.gas_multiply": return x.GasMultiply != float64(0) || math.Signbit(x.GasMultiply) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.FeeInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo.FeeInfo 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_ChainInfo_FeeInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.ChainInfo.FeeInfo.base_denom": x.BaseDenom = "" case "did.v1.ChainInfo.FeeInfo.fee_rates": x.FeeRates = nil case "did.v1.ChainInfo.FeeInfo.init_gas_limit": x.InitGasLimit = int32(0) case "did.v1.ChainInfo.FeeInfo.is_simulable": x.IsSimulable = false case "did.v1.ChainInfo.FeeInfo.gas_multiply": x.GasMultiply = float64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.FeeInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo.FeeInfo 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_ChainInfo_FeeInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.ChainInfo.FeeInfo.base_denom": value := x.BaseDenom return protoreflect.ValueOfString(value) case "did.v1.ChainInfo.FeeInfo.fee_rates": if len(x.FeeRates) == 0 { return protoreflect.ValueOfList(&_ChainInfo_FeeInfo_2_list{}) } listValue := &_ChainInfo_FeeInfo_2_list{list: &x.FeeRates} return protoreflect.ValueOfList(listValue) case "did.v1.ChainInfo.FeeInfo.init_gas_limit": value := x.InitGasLimit return protoreflect.ValueOfInt32(value) case "did.v1.ChainInfo.FeeInfo.is_simulable": value := x.IsSimulable return protoreflect.ValueOfBool(value) case "did.v1.ChainInfo.FeeInfo.gas_multiply": value := x.GasMultiply return protoreflect.ValueOfFloat64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.FeeInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo.FeeInfo 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_ChainInfo_FeeInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.ChainInfo.FeeInfo.base_denom": x.BaseDenom = value.Interface().(string) case "did.v1.ChainInfo.FeeInfo.fee_rates": lv := value.List() clv := lv.(*_ChainInfo_FeeInfo_2_list) x.FeeRates = *clv.list case "did.v1.ChainInfo.FeeInfo.init_gas_limit": x.InitGasLimit = int32(value.Int()) case "did.v1.ChainInfo.FeeInfo.is_simulable": x.IsSimulable = value.Bool() case "did.v1.ChainInfo.FeeInfo.gas_multiply": x.GasMultiply = value.Float() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.FeeInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo.FeeInfo 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_ChainInfo_FeeInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.ChainInfo.FeeInfo.fee_rates": if x.FeeRates == nil { x.FeeRates = []string{} } value := &_ChainInfo_FeeInfo_2_list{list: &x.FeeRates} return protoreflect.ValueOfList(value) case "did.v1.ChainInfo.FeeInfo.base_denom": panic(fmt.Errorf("field base_denom of message did.v1.ChainInfo.FeeInfo is not mutable")) case "did.v1.ChainInfo.FeeInfo.init_gas_limit": panic(fmt.Errorf("field init_gas_limit of message did.v1.ChainInfo.FeeInfo is not mutable")) case "did.v1.ChainInfo.FeeInfo.is_simulable": panic(fmt.Errorf("field is_simulable of message did.v1.ChainInfo.FeeInfo is not mutable")) case "did.v1.ChainInfo.FeeInfo.gas_multiply": panic(fmt.Errorf("field gas_multiply of message did.v1.ChainInfo.FeeInfo is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.FeeInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo.FeeInfo 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_ChainInfo_FeeInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.ChainInfo.FeeInfo.base_denom": return protoreflect.ValueOfString("") case "did.v1.ChainInfo.FeeInfo.fee_rates": list := []string{} return protoreflect.ValueOfList(&_ChainInfo_FeeInfo_2_list{list: &list}) case "did.v1.ChainInfo.FeeInfo.init_gas_limit": return protoreflect.ValueOfInt32(int32(0)) case "did.v1.ChainInfo.FeeInfo.is_simulable": return protoreflect.ValueOfBool(false) case "did.v1.ChainInfo.FeeInfo.gas_multiply": return protoreflect.ValueOfFloat64(float64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.ChainInfo.FeeInfo")) } panic(fmt.Errorf("message did.v1.ChainInfo.FeeInfo 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_ChainInfo_FeeInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.ChainInfo.FeeInfo", 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_ChainInfo_FeeInfo) 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_ChainInfo_FeeInfo) 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_ChainInfo_FeeInfo) 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_ChainInfo_FeeInfo) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*ChainInfo_FeeInfo) 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.BaseDenom) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if len(x.FeeRates) > 0 { for _, s := range x.FeeRates { l = len(s) n += 1 + l + runtime.Sov(uint64(l)) } } if x.InitGasLimit != 0 { n += 1 + runtime.Sov(uint64(x.InitGasLimit)) } if x.IsSimulable { n += 2 } if x.GasMultiply != 0 || math.Signbit(x.GasMultiply) { n += 9 } 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().(*ChainInfo_FeeInfo) 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.GasMultiply != 0 || math.Signbit(x.GasMultiply) { i -= 8 binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(x.GasMultiply)))) i-- dAtA[i] = 0x29 } if x.IsSimulable { i-- if x.IsSimulable { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x20 } if x.InitGasLimit != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.InitGasLimit)) i-- dAtA[i] = 0x18 } if len(x.FeeRates) > 0 { for iNdEx := len(x.FeeRates) - 1; iNdEx >= 0; iNdEx-- { i -= len(x.FeeRates[iNdEx]) copy(dAtA[i:], x.FeeRates[iNdEx]) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FeeRates[iNdEx]))) i-- dAtA[i] = 0x12 } } if len(x.BaseDenom) > 0 { i -= len(x.BaseDenom) copy(dAtA[i:], x.BaseDenom) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BaseDenom))) 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().(*ChainInfo_FeeInfo) 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: ChainInfo_FeeInfo: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ChainInfo_FeeInfo: 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 BaseDenom", 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.BaseDenom = 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 FeeRates", 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.FeeRates = append(x.FeeRates, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InitGasLimit", wireType) } x.InitGasLimit = 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.InitGasLimit |= int32(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsSimulable", wireType) } var v 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++ v |= int(b&0x7F) << shift if b < 0x80 { break } } x.IsSimulable = bool(v != 0) case 5: if wireType != 1 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GasMultiply", wireType) } var v uint64 if (iNdEx + 8) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) iNdEx += 8 x.GasMultiply = float64(math.Float64frombits(v)) 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_KeyInfo protoreflect.MessageDescriptor fd_KeyInfo_kind protoreflect.FieldDescriptor fd_KeyInfo_algorithm protoreflect.FieldDescriptor fd_KeyInfo_curve protoreflect.FieldDescriptor fd_KeyInfo_encoding protoreflect.FieldDescriptor ) func init() { file_did_v1_genesis_proto_init() md_KeyInfo = File_did_v1_genesis_proto.Messages().ByName("KeyInfo") fd_KeyInfo_kind = md_KeyInfo.Fields().ByName("kind") fd_KeyInfo_algorithm = md_KeyInfo.Fields().ByName("algorithm") fd_KeyInfo_curve = md_KeyInfo.Fields().ByName("curve") fd_KeyInfo_encoding = md_KeyInfo.Fields().ByName("encoding") } var _ protoreflect.Message = (*fastReflection_KeyInfo)(nil) type fastReflection_KeyInfo KeyInfo func (x *KeyInfo) ProtoReflect() protoreflect.Message { return (*fastReflection_KeyInfo)(x) } func (x *KeyInfo) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_genesis_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_KeyInfo_messageType fastReflection_KeyInfo_messageType var _ protoreflect.MessageType = fastReflection_KeyInfo_messageType{} type fastReflection_KeyInfo_messageType struct{} func (x fastReflection_KeyInfo_messageType) Zero() protoreflect.Message { return (*fastReflection_KeyInfo)(nil) } func (x fastReflection_KeyInfo_messageType) New() protoreflect.Message { return new(fastReflection_KeyInfo) } func (x fastReflection_KeyInfo_messageType) Descriptor() protoreflect.MessageDescriptor { return md_KeyInfo } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_KeyInfo) Descriptor() protoreflect.MessageDescriptor { return md_KeyInfo } // 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_KeyInfo) Type() protoreflect.MessageType { return _fastReflection_KeyInfo_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_KeyInfo) New() protoreflect.Message { return new(fastReflection_KeyInfo) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_KeyInfo) Interface() protoreflect.ProtoMessage { return (*KeyInfo)(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_KeyInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Kind != 0 { value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Kind)) if !f(fd_KeyInfo_kind, value) { return } } if x.Algorithm != "" { value := protoreflect.ValueOfString(x.Algorithm) if !f(fd_KeyInfo_algorithm, value) { return } } if x.Curve != "" { value := protoreflect.ValueOfString(x.Curve) if !f(fd_KeyInfo_curve, value) { return } } if x.Encoding != "" { value := protoreflect.ValueOfString(x.Encoding) if !f(fd_KeyInfo_encoding, 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_KeyInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.KeyInfo.kind": return x.Kind != 0 case "did.v1.KeyInfo.algorithm": return x.Algorithm != "" case "did.v1.KeyInfo.curve": return x.Curve != "" case "did.v1.KeyInfo.encoding": return x.Encoding != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.KeyInfo")) } panic(fmt.Errorf("message did.v1.KeyInfo 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_KeyInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.KeyInfo.kind": x.Kind = 0 case "did.v1.KeyInfo.algorithm": x.Algorithm = "" case "did.v1.KeyInfo.curve": x.Curve = "" case "did.v1.KeyInfo.encoding": x.Encoding = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.KeyInfo")) } panic(fmt.Errorf("message did.v1.KeyInfo 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_KeyInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.KeyInfo.kind": value := x.Kind return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) case "did.v1.KeyInfo.algorithm": value := x.Algorithm return protoreflect.ValueOfString(value) case "did.v1.KeyInfo.curve": value := x.Curve return protoreflect.ValueOfString(value) case "did.v1.KeyInfo.encoding": value := x.Encoding return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.KeyInfo")) } panic(fmt.Errorf("message did.v1.KeyInfo 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_KeyInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.KeyInfo.kind": x.Kind = (KeyType)(value.Enum()) case "did.v1.KeyInfo.algorithm": x.Algorithm = value.Interface().(string) case "did.v1.KeyInfo.curve": x.Curve = value.Interface().(string) case "did.v1.KeyInfo.encoding": x.Encoding = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.KeyInfo")) } panic(fmt.Errorf("message did.v1.KeyInfo 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_KeyInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.KeyInfo.kind": panic(fmt.Errorf("field kind of message did.v1.KeyInfo is not mutable")) case "did.v1.KeyInfo.algorithm": panic(fmt.Errorf("field algorithm of message did.v1.KeyInfo is not mutable")) case "did.v1.KeyInfo.curve": panic(fmt.Errorf("field curve of message did.v1.KeyInfo is not mutable")) case "did.v1.KeyInfo.encoding": panic(fmt.Errorf("field encoding of message did.v1.KeyInfo is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.KeyInfo")) } panic(fmt.Errorf("message did.v1.KeyInfo 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_KeyInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.KeyInfo.kind": return protoreflect.ValueOfEnum(0) case "did.v1.KeyInfo.algorithm": return protoreflect.ValueOfString("") case "did.v1.KeyInfo.curve": return protoreflect.ValueOfString("") case "did.v1.KeyInfo.encoding": return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.KeyInfo")) } panic(fmt.Errorf("message did.v1.KeyInfo 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_KeyInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.KeyInfo", 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_KeyInfo) 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_KeyInfo) 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_KeyInfo) 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_KeyInfo) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*KeyInfo) 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.Kind != 0 { n += 1 + runtime.Sov(uint64(x.Kind)) } l = len(x.Algorithm) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Curve) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Encoding) 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().(*KeyInfo) 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.Encoding) > 0 { i -= len(x.Encoding) copy(dAtA[i:], x.Encoding) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Encoding))) i-- dAtA[i] = 0x22 } if len(x.Curve) > 0 { i -= len(x.Curve) copy(dAtA[i:], x.Curve) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Curve))) i-- dAtA[i] = 0x1a } if len(x.Algorithm) > 0 { i -= len(x.Algorithm) copy(dAtA[i:], x.Algorithm) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Algorithm))) i-- dAtA[i] = 0x12 } if x.Kind != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.Kind)) 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().(*KeyInfo) 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: KeyInfo: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: KeyInfo: 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 Kind", wireType) } x.Kind = 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.Kind |= KeyType(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 Algorithm", 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.Algorithm = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Curve", 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.Curve = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Encoding", 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.Encoding = 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, } } // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 // protoc (unknown) // source: did/v1/genesis.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) ) // DIDNamespace define the different namespaces of DID type DIDNamespace int32 const ( DIDNamespace_DID_NAMESPACE_UNSPECIFIED DIDNamespace = 0 DIDNamespace_DID_NAMESPACE_IPFS DIDNamespace = 1 DIDNamespace_DID_NAMESPACE_SONR DIDNamespace = 2 DIDNamespace_DID_NAMESPACE_BITCOIN DIDNamespace = 3 DIDNamespace_DID_NAMESPACE_ETHEREUM DIDNamespace = 4 DIDNamespace_DID_NAMESPACE_IBC DIDNamespace = 5 ) // Enum value maps for DIDNamespace. var ( DIDNamespace_name = map[int32]string{ 0: "DID_NAMESPACE_UNSPECIFIED", 1: "DID_NAMESPACE_IPFS", 2: "DID_NAMESPACE_SONR", 3: "DID_NAMESPACE_BITCOIN", 4: "DID_NAMESPACE_ETHEREUM", 5: "DID_NAMESPACE_IBC", } DIDNamespace_value = map[string]int32{ "DID_NAMESPACE_UNSPECIFIED": 0, "DID_NAMESPACE_IPFS": 1, "DID_NAMESPACE_SONR": 2, "DID_NAMESPACE_BITCOIN": 3, "DID_NAMESPACE_ETHEREUM": 4, "DID_NAMESPACE_IBC": 5, } ) func (x DIDNamespace) Enum() *DIDNamespace { p := new(DIDNamespace) *p = x return p } func (x DIDNamespace) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (DIDNamespace) Descriptor() protoreflect.EnumDescriptor { return file_did_v1_genesis_proto_enumTypes[0].Descriptor() } func (DIDNamespace) Type() protoreflect.EnumType { return &file_did_v1_genesis_proto_enumTypes[0] } func (x DIDNamespace) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use DIDNamespace.Descriptor instead. func (DIDNamespace) EnumDescriptor() ([]byte, []int) { return file_did_v1_genesis_proto_rawDescGZIP(), []int{0} } // KeyKTind defines the kind of key type KeyType int32 const ( KeyType_KEY_TYPE_UNSPECIFIED KeyType = 0 // Blockchain key types KeyType_KEY_TYPE_SECP256K1 KeyType = 1 // cross-chain KeyType_KEY_TYPE_ED25519 KeyType = 2 // validators KeyType_KEY_TYPE_KECCAK KeyType = 3 // ethereum addresses KeyType_KEY_TYPE_BLS12381 KeyType = 4 // zero-knowledge KeyType_KEY_TYPE_X25519 KeyType = 5 // multisig KeyType_KEY_TYPE_SCHNORR KeyType = 6 // mpc // Webauthn and FIDO key types KeyType_KEY_TYPE_WEBAUTHN KeyType = 7 // passkey authentication KeyType_KEY_TYPE_FIDO KeyType = 8 // fido2 authentication ) // Enum value maps for KeyType. var ( KeyType_name = map[int32]string{ 0: "KEY_TYPE_UNSPECIFIED", 1: "KEY_TYPE_SECP256K1", 2: "KEY_TYPE_ED25519", 3: "KEY_TYPE_KECCAK", 4: "KEY_TYPE_BLS12381", 5: "KEY_TYPE_X25519", 6: "KEY_TYPE_SCHNORR", 7: "KEY_TYPE_WEBAUTHN", 8: "KEY_TYPE_FIDO", } KeyType_value = map[string]int32{ "KEY_TYPE_UNSPECIFIED": 0, "KEY_TYPE_SECP256K1": 1, "KEY_TYPE_ED25519": 2, "KEY_TYPE_KECCAK": 3, "KEY_TYPE_BLS12381": 4, "KEY_TYPE_X25519": 5, "KEY_TYPE_SCHNORR": 6, "KEY_TYPE_WEBAUTHN": 7, "KEY_TYPE_FIDO": 8, } ) func (x KeyType) Enum() *KeyType { p := new(KeyType) *p = x return p } func (x KeyType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (KeyType) Descriptor() protoreflect.EnumDescriptor { return file_did_v1_genesis_proto_enumTypes[1].Descriptor() } func (KeyType) Type() protoreflect.EnumType { return &file_did_v1_genesis_proto_enumTypes[1] } func (x KeyType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use KeyType.Descriptor instead. func (KeyType) EnumDescriptor() ([]byte, []int) { return file_did_v1_genesis_proto_rawDescGZIP(), []int{1} } // PermissionScope define the Capabilities Controllers can grant for Services type PermissionScope int32 const ( PermissionScope_PERMISSION_SCOPE_UNSPECIFIED PermissionScope = 0 PermissionScope_PERMISSION_SCOPE_BASIC_INFO PermissionScope = 1 PermissionScope_PERMISSION_SCOPE_RECORDS_READ PermissionScope = 2 PermissionScope_PERMISSION_SCOPE_RECORDS_WRITE PermissionScope = 3 PermissionScope_PERMISSION_SCOPE_TRANSACTIONS_READ PermissionScope = 4 PermissionScope_PERMISSION_SCOPE_TRANSACTIONS_WRITE PermissionScope = 5 PermissionScope_PERMISSION_SCOPE_WALLETS_READ PermissionScope = 6 PermissionScope_PERMISSION_SCOPE_WALLETS_CREATE PermissionScope = 7 PermissionScope_PERMISSION_SCOPE_WALLETS_SUBSCRIBE PermissionScope = 8 PermissionScope_PERMISSION_SCOPE_WALLETS_UPDATE PermissionScope = 9 PermissionScope_PERMISSION_SCOPE_TRANSACTIONS_VERIFY PermissionScope = 10 PermissionScope_PERMISSION_SCOPE_TRANSACTIONS_BROADCAST PermissionScope = 11 PermissionScope_PERMISSION_SCOPE_ADMIN_USER PermissionScope = 12 PermissionScope_PERMISSION_SCOPE_ADMIN_VALIDATOR PermissionScope = 13 ) // Enum value maps for PermissionScope. var ( PermissionScope_name = map[int32]string{ 0: "PERMISSION_SCOPE_UNSPECIFIED", 1: "PERMISSION_SCOPE_BASIC_INFO", 2: "PERMISSION_SCOPE_RECORDS_READ", 3: "PERMISSION_SCOPE_RECORDS_WRITE", 4: "PERMISSION_SCOPE_TRANSACTIONS_READ", 5: "PERMISSION_SCOPE_TRANSACTIONS_WRITE", 6: "PERMISSION_SCOPE_WALLETS_READ", 7: "PERMISSION_SCOPE_WALLETS_CREATE", 8: "PERMISSION_SCOPE_WALLETS_SUBSCRIBE", 9: "PERMISSION_SCOPE_WALLETS_UPDATE", 10: "PERMISSION_SCOPE_TRANSACTIONS_VERIFY", 11: "PERMISSION_SCOPE_TRANSACTIONS_BROADCAST", 12: "PERMISSION_SCOPE_ADMIN_USER", 13: "PERMISSION_SCOPE_ADMIN_VALIDATOR", } PermissionScope_value = map[string]int32{ "PERMISSION_SCOPE_UNSPECIFIED": 0, "PERMISSION_SCOPE_BASIC_INFO": 1, "PERMISSION_SCOPE_RECORDS_READ": 2, "PERMISSION_SCOPE_RECORDS_WRITE": 3, "PERMISSION_SCOPE_TRANSACTIONS_READ": 4, "PERMISSION_SCOPE_TRANSACTIONS_WRITE": 5, "PERMISSION_SCOPE_WALLETS_READ": 6, "PERMISSION_SCOPE_WALLETS_CREATE": 7, "PERMISSION_SCOPE_WALLETS_SUBSCRIBE": 8, "PERMISSION_SCOPE_WALLETS_UPDATE": 9, "PERMISSION_SCOPE_TRANSACTIONS_VERIFY": 10, "PERMISSION_SCOPE_TRANSACTIONS_BROADCAST": 11, "PERMISSION_SCOPE_ADMIN_USER": 12, "PERMISSION_SCOPE_ADMIN_VALIDATOR": 13, } ) func (x PermissionScope) Enum() *PermissionScope { p := new(PermissionScope) *p = x return p } func (x PermissionScope) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (PermissionScope) Descriptor() protoreflect.EnumDescriptor { return file_did_v1_genesis_proto_enumTypes[2].Descriptor() } func (PermissionScope) Type() protoreflect.EnumType { return &file_did_v1_genesis_proto_enumTypes[2] } func (x PermissionScope) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use PermissionScope.Descriptor instead. func (PermissionScope) EnumDescriptor() ([]byte, []int) { return file_did_v1_genesis_proto_rawDescGZIP(), []int{2} } // GenesisState defines the module genesis state type GenesisState struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Params defines all the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` } func (x *GenesisState) Reset() { *x = GenesisState{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_genesis_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GenesisState) String() string { return protoimpl.X.MessageStringOf(x) } func (*GenesisState) ProtoMessage() {} // Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. func (*GenesisState) Descriptor() ([]byte, []int) { return file_did_v1_genesis_proto_rawDescGZIP(), []int{0} } func (x *GenesisState) GetParams() *Params { if x != nil { return x.Params } return nil } // Params defines the set of module parameters. type Params struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Whitelisted Assets WhitelistedAssets []*AssetInfo `protobuf:"bytes,1,rep,name=whitelisted_assets,json=whitelistedAssets,proto3" json:"whitelisted_assets,omitempty"` // Whitelisted Blockchains WhitelistedChains []*ChainInfo `protobuf:"bytes,2,rep,name=whitelisted_chains,json=whitelistedChains,proto3" json:"whitelisted_chains,omitempty"` // Whitelisted Key Types AllowedPublicKeys []*KeyInfo `protobuf:"bytes,3,rep,name=allowed_public_keys,json=allowedPublicKeys,proto3" json:"allowed_public_keys,omitempty"` } func (x *Params) Reset() { *x = Params{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_genesis_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Params) String() string { return protoimpl.X.MessageStringOf(x) } func (*Params) ProtoMessage() {} // Deprecated: Use Params.ProtoReflect.Descriptor instead. func (*Params) Descriptor() ([]byte, []int) { return file_did_v1_genesis_proto_rawDescGZIP(), []int{1} } func (x *Params) GetWhitelistedAssets() []*AssetInfo { if x != nil { return x.WhitelistedAssets } return nil } func (x *Params) GetWhitelistedChains() []*ChainInfo { if x != nil { return x.WhitelistedChains } return nil } func (x *Params) GetAllowedPublicKeys() []*KeyInfo { if x != nil { return x.AllowedPublicKeys } return nil } // AssetInfo defines the asset info type AssetInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` AssetType string `protobuf:"bytes,4,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"` OriginChain string `protobuf:"bytes,5,opt,name=origin_chain,json=originChain,proto3" json:"origin_chain,omitempty"` OriginDenom string `protobuf:"bytes,6,opt,name=origin_denom,json=originDenom,proto3" json:"origin_denom,omitempty"` Decimals int32 `protobuf:"varint,7,opt,name=decimals,proto3" json:"decimals,omitempty"` Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` ImageUrl string `protobuf:"bytes,9,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` CoingeckoId string `protobuf:"bytes,10,opt,name=coingecko_id,json=coingeckoId,proto3" json:"coingecko_id,omitempty"` IsEnabled bool `protobuf:"varint,11,opt,name=is_enabled,json=isEnabled,proto3" json:"is_enabled,omitempty"` IbcPath string `protobuf:"bytes,12,opt,name=ibc_path,json=ibcPath,proto3" json:"ibc_path,omitempty"` IbcChannel string `protobuf:"bytes,13,opt,name=ibc_channel,json=ibcChannel,proto3" json:"ibc_channel,omitempty"` IbcPort string `protobuf:"bytes,14,opt,name=ibc_port,json=ibcPort,proto3" json:"ibc_port,omitempty"` } func (x *AssetInfo) Reset() { *x = AssetInfo{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_genesis_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AssetInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*AssetInfo) ProtoMessage() {} // Deprecated: Use AssetInfo.ProtoReflect.Descriptor instead. func (*AssetInfo) Descriptor() ([]byte, []int) { return file_did_v1_genesis_proto_rawDescGZIP(), []int{2} } func (x *AssetInfo) GetId() string { if x != nil { return x.Id } return "" } func (x *AssetInfo) GetDenom() string { if x != nil { return x.Denom } return "" } func (x *AssetInfo) GetSymbol() string { if x != nil { return x.Symbol } return "" } func (x *AssetInfo) GetAssetType() string { if x != nil { return x.AssetType } return "" } func (x *AssetInfo) GetOriginChain() string { if x != nil { return x.OriginChain } return "" } func (x *AssetInfo) GetOriginDenom() string { if x != nil { return x.OriginDenom } return "" } func (x *AssetInfo) GetDecimals() int32 { if x != nil { return x.Decimals } return 0 } func (x *AssetInfo) GetDescription() string { if x != nil { return x.Description } return "" } func (x *AssetInfo) GetImageUrl() string { if x != nil { return x.ImageUrl } return "" } func (x *AssetInfo) GetCoingeckoId() string { if x != nil { return x.CoingeckoId } return "" } func (x *AssetInfo) GetIsEnabled() bool { if x != nil { return x.IsEnabled } return false } func (x *AssetInfo) GetIbcPath() string { if x != nil { return x.IbcPath } return "" } func (x *AssetInfo) GetIbcChannel() string { if x != nil { return x.IbcChannel } return "" } func (x *AssetInfo) GetIbcPort() string { if x != nil { return x.IbcPort } return "" } // ChainInfo defines the chain info type ChainInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Symbol string `protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty"` Bech32Prefix string `protobuf:"bytes,5,opt,name=bech32_prefix,json=bech32Prefix,proto3" json:"bech32_prefix,omitempty"` GenesisTime string `protobuf:"bytes,6,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"` GrpcEndpoints []*ChainInfo_Endpoint `protobuf:"bytes,7,rep,name=grpc_endpoints,json=grpcEndpoints,proto3" json:"grpc_endpoints,omitempty"` RestEndpoints []*ChainInfo_Endpoint `protobuf:"bytes,8,rep,name=rest_endpoints,json=restEndpoints,proto3" json:"rest_endpoints,omitempty"` Explorer *ChainInfo_ExplorerInfo `protobuf:"bytes,9,opt,name=explorer,proto3" json:"explorer,omitempty"` FeeInfo *ChainInfo_FeeInfo `protobuf:"bytes,10,opt,name=fee_info,json=feeInfo,proto3" json:"fee_info,omitempty"` } func (x *ChainInfo) Reset() { *x = ChainInfo{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_genesis_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ChainInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChainInfo) ProtoMessage() {} // Deprecated: Use ChainInfo.ProtoReflect.Descriptor instead. func (*ChainInfo) Descriptor() ([]byte, []int) { return file_did_v1_genesis_proto_rawDescGZIP(), []int{3} } func (x *ChainInfo) GetId() string { if x != nil { return x.Id } return "" } func (x *ChainInfo) GetChainId() string { if x != nil { return x.ChainId } return "" } func (x *ChainInfo) GetName() string { if x != nil { return x.Name } return "" } func (x *ChainInfo) GetSymbol() string { if x != nil { return x.Symbol } return "" } func (x *ChainInfo) GetBech32Prefix() string { if x != nil { return x.Bech32Prefix } return "" } func (x *ChainInfo) GetGenesisTime() string { if x != nil { return x.GenesisTime } return "" } func (x *ChainInfo) GetGrpcEndpoints() []*ChainInfo_Endpoint { if x != nil { return x.GrpcEndpoints } return nil } func (x *ChainInfo) GetRestEndpoints() []*ChainInfo_Endpoint { if x != nil { return x.RestEndpoints } return nil } func (x *ChainInfo) GetExplorer() *ChainInfo_ExplorerInfo { if x != nil { return x.Explorer } return nil } func (x *ChainInfo) GetFeeInfo() *ChainInfo_FeeInfo { if x != nil { return x.FeeInfo } return nil } // KeyInfo defines information for accepted PubKey types type KeyInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Kind KeyType `protobuf:"varint,1,opt,name=kind,proto3,enum=did.v1.KeyType" json:"kind,omitempty"` Algorithm string `protobuf:"bytes,2,opt,name=algorithm,proto3" json:"algorithm,omitempty"` // e.g., "ES256", "EdDSA", "ES256K" Curve string `protobuf:"bytes,3,opt,name=curve,proto3" json:"curve,omitempty"` // e.g., "P-256", "Ed25519", "secp256k1" Encoding string `protobuf:"bytes,4,opt,name=encoding,proto3" json:"encoding,omitempty"` // e.g., "hex", "base64", "multibase" } func (x *KeyInfo) Reset() { *x = KeyInfo{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_genesis_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *KeyInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*KeyInfo) ProtoMessage() {} // Deprecated: Use KeyInfo.ProtoReflect.Descriptor instead. func (*KeyInfo) Descriptor() ([]byte, []int) { return file_did_v1_genesis_proto_rawDescGZIP(), []int{4} } func (x *KeyInfo) GetKind() KeyType { if x != nil { return x.Kind } return KeyType_KEY_TYPE_UNSPECIFIED } func (x *KeyInfo) GetAlgorithm() string { if x != nil { return x.Algorithm } return "" } func (x *KeyInfo) GetCurve() string { if x != nil { return x.Curve } return "" } func (x *KeyInfo) GetEncoding() string { if x != nil { return x.Encoding } return "" } // Endpoint defines an endpoint type ChainInfo_Endpoint struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` IsPrimary bool `protobuf:"varint,2,opt,name=is_primary,json=isPrimary,proto3" json:"is_primary,omitempty"` } func (x *ChainInfo_Endpoint) Reset() { *x = ChainInfo_Endpoint{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_genesis_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ChainInfo_Endpoint) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChainInfo_Endpoint) ProtoMessage() {} // Deprecated: Use ChainInfo_Endpoint.ProtoReflect.Descriptor instead. func (*ChainInfo_Endpoint) Descriptor() ([]byte, []int) { return file_did_v1_genesis_proto_rawDescGZIP(), []int{3, 0} } func (x *ChainInfo_Endpoint) GetUrl() string { if x != nil { return x.Url } return "" } func (x *ChainInfo_Endpoint) GetIsPrimary() bool { if x != nil { return x.IsPrimary } return false } // ExplorerInfo defines the explorer info type ChainInfo_ExplorerInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` } func (x *ChainInfo_ExplorerInfo) Reset() { *x = ChainInfo_ExplorerInfo{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_genesis_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ChainInfo_ExplorerInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChainInfo_ExplorerInfo) ProtoMessage() {} // Deprecated: Use ChainInfo_ExplorerInfo.ProtoReflect.Descriptor instead. func (*ChainInfo_ExplorerInfo) Descriptor() ([]byte, []int) { return file_did_v1_genesis_proto_rawDescGZIP(), []int{3, 1} } func (x *ChainInfo_ExplorerInfo) GetName() string { if x != nil { return x.Name } return "" } func (x *ChainInfo_ExplorerInfo) GetUrl() string { if x != nil { return x.Url } return "" } // FeeInfo defines a fee info type ChainInfo_FeeInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` FeeRates []string `protobuf:"bytes,2,rep,name=fee_rates,json=feeRates,proto3" json:"fee_rates,omitempty"` InitGasLimit int32 `protobuf:"varint,3,opt,name=init_gas_limit,json=initGasLimit,proto3" json:"init_gas_limit,omitempty"` IsSimulable bool `protobuf:"varint,4,opt,name=is_simulable,json=isSimulable,proto3" json:"is_simulable,omitempty"` GasMultiply float64 `protobuf:"fixed64,5,opt,name=gas_multiply,json=gasMultiply,proto3" json:"gas_multiply,omitempty"` } func (x *ChainInfo_FeeInfo) Reset() { *x = ChainInfo_FeeInfo{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_genesis_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ChainInfo_FeeInfo) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChainInfo_FeeInfo) ProtoMessage() {} // Deprecated: Use ChainInfo_FeeInfo.ProtoReflect.Descriptor instead. func (*ChainInfo_FeeInfo) Descriptor() ([]byte, []int) { return file_did_v1_genesis_proto_rawDescGZIP(), []int{3, 2} } func (x *ChainInfo_FeeInfo) GetBaseDenom() string { if x != nil { return x.BaseDenom } return "" } func (x *ChainInfo_FeeInfo) GetFeeRates() []string { if x != nil { return x.FeeRates } return nil } func (x *ChainInfo_FeeInfo) GetInitGasLimit() int32 { if x != nil { return x.InitGasLimit } return 0 } func (x *ChainInfo_FeeInfo) GetIsSimulable() bool { if x != nil { return x.IsSimulable } return false } func (x *ChainInfo_FeeInfo) GetGasMultiply() float64 { if x != nil { return x.GasMultiply } return 0 } var File_did_v1_genesis_proto protoreflect.FileDescriptor var file_did_v1_genesis_proto_rawDesc = []byte{ 0x0a, 0x14, 0x64, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3c, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xe6, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x40, 0x0a, 0x12, 0x77, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x77, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x40, 0x0a, 0x12, 0x77, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x77, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x64, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x3f, 0x0a, 0x13, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x3a, 0x17, 0x98, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x0a, 0x64, 0x69, 0x64, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xa2, 0x03, 0x0a, 0x09, 0x41, 0x73, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x69, 0x6e, 0x67, 0x65, 0x63, 0x6b, 0x6f, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x69, 0x6e, 0x67, 0x65, 0x63, 0x6b, 0x6f, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x62, 0x63, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x62, 0x63, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x62, 0x63, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x62, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x62, 0x63, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x62, 0x63, 0x50, 0x6f, 0x72, 0x74, 0x22, 0xc9, 0x05, 0x0a, 0x09, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x65, 0x63, 0x68, 0x33, 0x32, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x0d, 0x67, 0x72, 0x70, 0x63, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x41, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x6c, 0x6f, 0x72, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x45, 0x78, 0x70, 0x6c, 0x6f, 0x72, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x65, 0x78, 0x70, 0x6c, 0x6f, 0x72, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x08, 0x66, 0x65, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x46, 0x65, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x66, 0x65, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x3b, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x1a, 0x34, 0x0a, 0x0c, 0x45, 0x78, 0x70, 0x6c, 0x6f, 0x72, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x1a, 0xb1, 0x01, 0x0a, 0x07, 0x46, 0x65, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x65, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x66, 0x65, 0x65, 0x52, 0x61, 0x74, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x69, 0x6e, 0x69, 0x74, 0x47, 0x61, 0x73, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x73, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x53, 0x69, 0x6d, 0x75, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x67, 0x61, 0x73, 0x5f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x67, 0x61, 0x73, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x79, 0x22, 0x7e, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x75, 0x72, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x75, 0x72, 0x76, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2a, 0xab, 0x01, 0x0a, 0x0c, 0x44, 0x49, 0x44, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x49, 0x44, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x44, 0x49, 0x44, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x49, 0x50, 0x46, 0x53, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x44, 0x49, 0x44, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x53, 0x4f, 0x4e, 0x52, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x49, 0x44, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x42, 0x49, 0x54, 0x43, 0x4f, 0x49, 0x4e, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x49, 0x44, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x45, 0x54, 0x48, 0x45, 0x52, 0x45, 0x55, 0x4d, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x49, 0x44, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x53, 0x50, 0x41, 0x43, 0x45, 0x5f, 0x49, 0x42, 0x43, 0x10, 0x05, 0x2a, 0xd2, 0x01, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x43, 0x50, 0x32, 0x35, 0x36, 0x4b, 0x31, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x44, 0x32, 0x35, 0x35, 0x31, 0x39, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4b, 0x45, 0x43, 0x43, 0x41, 0x4b, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4c, 0x53, 0x31, 0x32, 0x33, 0x38, 0x31, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x58, 0x32, 0x35, 0x35, 0x31, 0x39, 0x10, 0x05, 0x12, 0x14, 0x0a, 0x10, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x4e, 0x4f, 0x52, 0x52, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x45, 0x42, 0x41, 0x55, 0x54, 0x48, 0x4e, 0x10, 0x07, 0x12, 0x11, 0x0a, 0x0d, 0x4b, 0x45, 0x59, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x44, 0x4f, 0x10, 0x08, 0x2a, 0x9f, 0x04, 0x0a, 0x0f, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x43, 0x4f, 0x52, 0x44, 0x53, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x10, 0x02, 0x12, 0x22, 0x0a, 0x1e, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x43, 0x4f, 0x52, 0x44, 0x53, 0x5f, 0x57, 0x52, 0x49, 0x54, 0x45, 0x10, 0x03, 0x12, 0x26, 0x0a, 0x22, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x10, 0x04, 0x12, 0x27, 0x0a, 0x23, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x5f, 0x57, 0x52, 0x49, 0x54, 0x45, 0x10, 0x05, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x57, 0x41, 0x4c, 0x4c, 0x45, 0x54, 0x53, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x10, 0x06, 0x12, 0x23, 0x0a, 0x1f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x57, 0x41, 0x4c, 0x4c, 0x45, 0x54, 0x53, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x07, 0x12, 0x26, 0x0a, 0x22, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x57, 0x41, 0x4c, 0x4c, 0x45, 0x54, 0x53, 0x5f, 0x53, 0x55, 0x42, 0x53, 0x43, 0x52, 0x49, 0x42, 0x45, 0x10, 0x08, 0x12, 0x23, 0x0a, 0x1f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x57, 0x41, 0x4c, 0x4c, 0x45, 0x54, 0x53, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x09, 0x12, 0x28, 0x0a, 0x24, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x10, 0x0a, 0x12, 0x2b, 0x0a, 0x27, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x5f, 0x42, 0x52, 0x4f, 0x41, 0x44, 0x43, 0x41, 0x53, 0x54, 0x10, 0x0b, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x0c, 0x12, 0x24, 0x0a, 0x20, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x43, 0x4f, 0x50, 0x45, 0x5f, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x4f, 0x52, 0x10, 0x0d, 0x42, 0x7c, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x6e, 0x73, 0x6f, 0x6e, 0x72, 0x2f, 0x68, 0x77, 0x61, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x64, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x69, 0x64, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x44, 0x58, 0x58, 0xaa, 0x02, 0x06, 0x44, 0x69, 0x64, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x06, 0x44, 0x69, 0x64, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x12, 0x44, 0x69, 0x64, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x07, 0x44, 0x69, 0x64, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_did_v1_genesis_proto_rawDescOnce sync.Once file_did_v1_genesis_proto_rawDescData = file_did_v1_genesis_proto_rawDesc ) func file_did_v1_genesis_proto_rawDescGZIP() []byte { file_did_v1_genesis_proto_rawDescOnce.Do(func() { file_did_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_did_v1_genesis_proto_rawDescData) }) return file_did_v1_genesis_proto_rawDescData } var file_did_v1_genesis_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_did_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_did_v1_genesis_proto_goTypes = []interface{}{ (DIDNamespace)(0), // 0: did.v1.DIDNamespace (KeyType)(0), // 1: did.v1.KeyType (PermissionScope)(0), // 2: did.v1.PermissionScope (*GenesisState)(nil), // 3: did.v1.GenesisState (*Params)(nil), // 4: did.v1.Params (*AssetInfo)(nil), // 5: did.v1.AssetInfo (*ChainInfo)(nil), // 6: did.v1.ChainInfo (*KeyInfo)(nil), // 7: did.v1.KeyInfo (*ChainInfo_Endpoint)(nil), // 8: did.v1.ChainInfo.Endpoint (*ChainInfo_ExplorerInfo)(nil), // 9: did.v1.ChainInfo.ExplorerInfo (*ChainInfo_FeeInfo)(nil), // 10: did.v1.ChainInfo.FeeInfo } var file_did_v1_genesis_proto_depIdxs = []int32{ 4, // 0: did.v1.GenesisState.params:type_name -> did.v1.Params 5, // 1: did.v1.Params.whitelisted_assets:type_name -> did.v1.AssetInfo 6, // 2: did.v1.Params.whitelisted_chains:type_name -> did.v1.ChainInfo 7, // 3: did.v1.Params.allowed_public_keys:type_name -> did.v1.KeyInfo 8, // 4: did.v1.ChainInfo.grpc_endpoints:type_name -> did.v1.ChainInfo.Endpoint 8, // 5: did.v1.ChainInfo.rest_endpoints:type_name -> did.v1.ChainInfo.Endpoint 9, // 6: did.v1.ChainInfo.explorer:type_name -> did.v1.ChainInfo.ExplorerInfo 10, // 7: did.v1.ChainInfo.fee_info:type_name -> did.v1.ChainInfo.FeeInfo 1, // 8: did.v1.KeyInfo.kind:type_name -> did.v1.KeyType 9, // [9:9] is the sub-list for method output_type 9, // [9:9] is the sub-list for method input_type 9, // [9:9] is the sub-list for extension type_name 9, // [9:9] is the sub-list for extension extendee 0, // [0:9] is the sub-list for field type_name } func init() { file_did_v1_genesis_proto_init() } func file_did_v1_genesis_proto_init() { if File_did_v1_genesis_proto != nil { return } if !protoimpl.UnsafeEnabled { file_did_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GenesisState); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Params); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_genesis_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AssetInfo); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_genesis_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ChainInfo); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_genesis_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*KeyInfo); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_genesis_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ChainInfo_Endpoint); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_genesis_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ChainInfo_ExplorerInfo); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_genesis_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ChainInfo_FeeInfo); 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_did_v1_genesis_proto_rawDesc, NumEnums: 3, NumMessages: 8, NumExtensions: 0, NumServices: 0, }, GoTypes: file_did_v1_genesis_proto_goTypes, DependencyIndexes: file_did_v1_genesis_proto_depIdxs, EnumInfos: file_did_v1_genesis_proto_enumTypes, MessageInfos: file_did_v1_genesis_proto_msgTypes, }.Build() File_did_v1_genesis_proto = out.File file_did_v1_genesis_proto_rawDesc = nil file_did_v1_genesis_proto_goTypes = nil file_did_v1_genesis_proto_depIdxs = nil }