// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. package didv1 import ( fmt "fmt" io "io" reflect "reflect" sync "sync" 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" timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) var _ protoreflect.List = (*_EventDIDCreated_3_list)(nil) type _EventDIDCreated_3_list struct { list *[]string } func (x *_EventDIDCreated_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } func (x *_EventDIDCreated_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfString((*x.list)[i]) } func (x *_EventDIDCreated_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } func (x *_EventDIDCreated_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } func (x *_EventDIDCreated_3_list) AppendMutable() protoreflect.Value { panic(fmt.Errorf("AppendMutable can not be called on message EventDIDCreated at list field PublicKeys as it is not of Message kind")) } func (x *_EventDIDCreated_3_list) Truncate(n int) { *x.list = (*x.list)[:n] } func (x *_EventDIDCreated_3_list) NewElement() protoreflect.Value { v := "" return protoreflect.ValueOfString(v) } func (x *_EventDIDCreated_3_list) IsValid() bool { return x.list != nil } var _ protoreflect.List = (*_EventDIDCreated_4_list)(nil) type _EventDIDCreated_4_list struct { list *[]string } func (x *_EventDIDCreated_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } func (x *_EventDIDCreated_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfString((*x.list)[i]) } func (x *_EventDIDCreated_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } func (x *_EventDIDCreated_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } func (x *_EventDIDCreated_4_list) AppendMutable() protoreflect.Value { panic(fmt.Errorf("AppendMutable can not be called on message EventDIDCreated at list field Services as it is not of Message kind")) } func (x *_EventDIDCreated_4_list) Truncate(n int) { *x.list = (*x.list)[:n] } func (x *_EventDIDCreated_4_list) NewElement() protoreflect.Value { v := "" return protoreflect.ValueOfString(v) } func (x *_EventDIDCreated_4_list) IsValid() bool { return x.list != nil } var ( md_EventDIDCreated protoreflect.MessageDescriptor fd_EventDIDCreated_did protoreflect.FieldDescriptor fd_EventDIDCreated_creator protoreflect.FieldDescriptor fd_EventDIDCreated_public_keys protoreflect.FieldDescriptor fd_EventDIDCreated_services protoreflect.FieldDescriptor fd_EventDIDCreated_created_at protoreflect.FieldDescriptor fd_EventDIDCreated_block_height protoreflect.FieldDescriptor ) func init() { file_did_v1_events_proto_init() md_EventDIDCreated = File_did_v1_events_proto.Messages().ByName("EventDIDCreated") fd_EventDIDCreated_did = md_EventDIDCreated.Fields().ByName("did") fd_EventDIDCreated_creator = md_EventDIDCreated.Fields().ByName("creator") fd_EventDIDCreated_public_keys = md_EventDIDCreated.Fields().ByName("public_keys") fd_EventDIDCreated_services = md_EventDIDCreated.Fields().ByName("services") fd_EventDIDCreated_created_at = md_EventDIDCreated.Fields().ByName("created_at") fd_EventDIDCreated_block_height = md_EventDIDCreated.Fields().ByName("block_height") } var _ protoreflect.Message = (*fastReflection_EventDIDCreated)(nil) type fastReflection_EventDIDCreated EventDIDCreated func (x *EventDIDCreated) ProtoReflect() protoreflect.Message { return (*fastReflection_EventDIDCreated)(x) } func (x *EventDIDCreated) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_events_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_EventDIDCreated_messageType fastReflection_EventDIDCreated_messageType var _ protoreflect.MessageType = fastReflection_EventDIDCreated_messageType{} type fastReflection_EventDIDCreated_messageType struct{} func (x fastReflection_EventDIDCreated_messageType) Zero() protoreflect.Message { return (*fastReflection_EventDIDCreated)(nil) } func (x fastReflection_EventDIDCreated_messageType) New() protoreflect.Message { return new(fastReflection_EventDIDCreated) } func (x fastReflection_EventDIDCreated_messageType) Descriptor() protoreflect.MessageDescriptor { return md_EventDIDCreated } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_EventDIDCreated) Descriptor() protoreflect.MessageDescriptor { return md_EventDIDCreated } // 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_EventDIDCreated) Type() protoreflect.MessageType { return _fastReflection_EventDIDCreated_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_EventDIDCreated) New() protoreflect.Message { return new(fastReflection_EventDIDCreated) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_EventDIDCreated) Interface() protoreflect.ProtoMessage { return (*EventDIDCreated)(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_EventDIDCreated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Did != "" { value := protoreflect.ValueOfString(x.Did) if !f(fd_EventDIDCreated_did, value) { return } } if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) if !f(fd_EventDIDCreated_creator, value) { return } } if len(x.PublicKeys) != 0 { value := protoreflect.ValueOfList(&_EventDIDCreated_3_list{list: &x.PublicKeys}) if !f(fd_EventDIDCreated_public_keys, value) { return } } if len(x.Services) != 0 { value := protoreflect.ValueOfList(&_EventDIDCreated_4_list{list: &x.Services}) if !f(fd_EventDIDCreated_services, value) { return } } if x.CreatedAt != nil { value := protoreflect.ValueOfMessage(x.CreatedAt.ProtoReflect()) if !f(fd_EventDIDCreated_created_at, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) if !f(fd_EventDIDCreated_block_height, 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_EventDIDCreated) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.EventDIDCreated.did": return x.Did != "" case "did.v1.EventDIDCreated.creator": return x.Creator != "" case "did.v1.EventDIDCreated.public_keys": return len(x.PublicKeys) != 0 case "did.v1.EventDIDCreated.services": return len(x.Services) != 0 case "did.v1.EventDIDCreated.created_at": return x.CreatedAt != nil case "did.v1.EventDIDCreated.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDCreated")) } panic(fmt.Errorf("message did.v1.EventDIDCreated 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_EventDIDCreated) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.EventDIDCreated.did": x.Did = "" case "did.v1.EventDIDCreated.creator": x.Creator = "" case "did.v1.EventDIDCreated.public_keys": x.PublicKeys = nil case "did.v1.EventDIDCreated.services": x.Services = nil case "did.v1.EventDIDCreated.created_at": x.CreatedAt = nil case "did.v1.EventDIDCreated.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDCreated")) } panic(fmt.Errorf("message did.v1.EventDIDCreated 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_EventDIDCreated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.EventDIDCreated.did": value := x.Did return protoreflect.ValueOfString(value) case "did.v1.EventDIDCreated.creator": value := x.Creator return protoreflect.ValueOfString(value) case "did.v1.EventDIDCreated.public_keys": if len(x.PublicKeys) == 0 { return protoreflect.ValueOfList(&_EventDIDCreated_3_list{}) } listValue := &_EventDIDCreated_3_list{list: &x.PublicKeys} return protoreflect.ValueOfList(listValue) case "did.v1.EventDIDCreated.services": if len(x.Services) == 0 { return protoreflect.ValueOfList(&_EventDIDCreated_4_list{}) } listValue := &_EventDIDCreated_4_list{list: &x.Services} return protoreflect.ValueOfList(listValue) case "did.v1.EventDIDCreated.created_at": value := x.CreatedAt return protoreflect.ValueOfMessage(value.ProtoReflect()) case "did.v1.EventDIDCreated.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDCreated")) } panic(fmt.Errorf("message did.v1.EventDIDCreated 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_EventDIDCreated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.EventDIDCreated.did": x.Did = value.Interface().(string) case "did.v1.EventDIDCreated.creator": x.Creator = value.Interface().(string) case "did.v1.EventDIDCreated.public_keys": lv := value.List() clv := lv.(*_EventDIDCreated_3_list) x.PublicKeys = *clv.list case "did.v1.EventDIDCreated.services": lv := value.List() clv := lv.(*_EventDIDCreated_4_list) x.Services = *clv.list case "did.v1.EventDIDCreated.created_at": x.CreatedAt = value.Message().Interface().(*timestamppb.Timestamp) case "did.v1.EventDIDCreated.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDCreated")) } panic(fmt.Errorf("message did.v1.EventDIDCreated 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_EventDIDCreated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventDIDCreated.public_keys": if x.PublicKeys == nil { x.PublicKeys = []string{} } value := &_EventDIDCreated_3_list{list: &x.PublicKeys} return protoreflect.ValueOfList(value) case "did.v1.EventDIDCreated.services": if x.Services == nil { x.Services = []string{} } value := &_EventDIDCreated_4_list{list: &x.Services} return protoreflect.ValueOfList(value) case "did.v1.EventDIDCreated.created_at": if x.CreatedAt == nil { x.CreatedAt = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.CreatedAt.ProtoReflect()) case "did.v1.EventDIDCreated.did": panic(fmt.Errorf("field did of message did.v1.EventDIDCreated is not mutable")) case "did.v1.EventDIDCreated.creator": panic(fmt.Errorf("field creator of message did.v1.EventDIDCreated is not mutable")) case "did.v1.EventDIDCreated.block_height": panic(fmt.Errorf("field block_height of message did.v1.EventDIDCreated is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDCreated")) } panic(fmt.Errorf("message did.v1.EventDIDCreated 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_EventDIDCreated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventDIDCreated.did": return protoreflect.ValueOfString("") case "did.v1.EventDIDCreated.creator": return protoreflect.ValueOfString("") case "did.v1.EventDIDCreated.public_keys": list := []string{} return protoreflect.ValueOfList(&_EventDIDCreated_3_list{list: &list}) case "did.v1.EventDIDCreated.services": list := []string{} return protoreflect.ValueOfList(&_EventDIDCreated_4_list{list: &list}) case "did.v1.EventDIDCreated.created_at": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "did.v1.EventDIDCreated.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDCreated")) } panic(fmt.Errorf("message did.v1.EventDIDCreated 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_EventDIDCreated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.EventDIDCreated", 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_EventDIDCreated) 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_EventDIDCreated) 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_EventDIDCreated) 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_EventDIDCreated) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*EventDIDCreated) 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.Did) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Creator) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if len(x.PublicKeys) > 0 { for _, s := range x.PublicKeys { l = len(s) n += 1 + l + runtime.Sov(uint64(l)) } } if len(x.Services) > 0 { for _, s := range x.Services { l = len(s) n += 1 + l + runtime.Sov(uint64(l)) } } if x.CreatedAt != nil { l = options.Size(x.CreatedAt) n += 1 + l + runtime.Sov(uint64(l)) } if x.BlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.BlockHeight)) } 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().(*EventDIDCreated) 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.BlockHeight != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- dAtA[i] = 0x30 } if x.CreatedAt != nil { encoded, err := options.Marshal(x.CreatedAt) 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] = 0x2a } if len(x.Services) > 0 { for iNdEx := len(x.Services) - 1; iNdEx >= 0; iNdEx-- { i -= len(x.Services[iNdEx]) copy(dAtA[i:], x.Services[iNdEx]) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Services[iNdEx]))) i-- dAtA[i] = 0x22 } } if len(x.PublicKeys) > 0 { for iNdEx := len(x.PublicKeys) - 1; iNdEx >= 0; iNdEx-- { i -= len(x.PublicKeys[iNdEx]) copy(dAtA[i:], x.PublicKeys[iNdEx]) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PublicKeys[iNdEx]))) i-- dAtA[i] = 0x1a } } if len(x.Creator) > 0 { i -= len(x.Creator) copy(dAtA[i:], x.Creator) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) i-- dAtA[i] = 0x12 } if len(x.Did) > 0 { i -= len(x.Did) copy(dAtA[i:], x.Did) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did))) 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().(*EventDIDCreated) 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: EventDIDCreated: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventDIDCreated: 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 Did", 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.Did = 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 Creator", 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.Creator = 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 PublicKeys", 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.PublicKeys = append(x.PublicKeys, 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 Services", 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.Services = append(x.Services, 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 CreatedAt", 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.CreatedAt == nil { x.CreatedAt = ×tamppb.Timestamp{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CreatedAt); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 6: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } var _ protoreflect.List = (*_EventDIDUpdated_3_list)(nil) type _EventDIDUpdated_3_list struct { list *[]string } func (x *_EventDIDUpdated_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } func (x *_EventDIDUpdated_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfString((*x.list)[i]) } func (x *_EventDIDUpdated_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } func (x *_EventDIDUpdated_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } func (x *_EventDIDUpdated_3_list) AppendMutable() protoreflect.Value { panic(fmt.Errorf("AppendMutable can not be called on message EventDIDUpdated at list field FieldsUpdated as it is not of Message kind")) } func (x *_EventDIDUpdated_3_list) Truncate(n int) { *x.list = (*x.list)[:n] } func (x *_EventDIDUpdated_3_list) NewElement() protoreflect.Value { v := "" return protoreflect.ValueOfString(v) } func (x *_EventDIDUpdated_3_list) IsValid() bool { return x.list != nil } var ( md_EventDIDUpdated protoreflect.MessageDescriptor fd_EventDIDUpdated_did protoreflect.FieldDescriptor fd_EventDIDUpdated_updater protoreflect.FieldDescriptor fd_EventDIDUpdated_fields_updated protoreflect.FieldDescriptor fd_EventDIDUpdated_updated_at protoreflect.FieldDescriptor fd_EventDIDUpdated_block_height protoreflect.FieldDescriptor ) func init() { file_did_v1_events_proto_init() md_EventDIDUpdated = File_did_v1_events_proto.Messages().ByName("EventDIDUpdated") fd_EventDIDUpdated_did = md_EventDIDUpdated.Fields().ByName("did") fd_EventDIDUpdated_updater = md_EventDIDUpdated.Fields().ByName("updater") fd_EventDIDUpdated_fields_updated = md_EventDIDUpdated.Fields().ByName("fields_updated") fd_EventDIDUpdated_updated_at = md_EventDIDUpdated.Fields().ByName("updated_at") fd_EventDIDUpdated_block_height = md_EventDIDUpdated.Fields().ByName("block_height") } var _ protoreflect.Message = (*fastReflection_EventDIDUpdated)(nil) type fastReflection_EventDIDUpdated EventDIDUpdated func (x *EventDIDUpdated) ProtoReflect() protoreflect.Message { return (*fastReflection_EventDIDUpdated)(x) } func (x *EventDIDUpdated) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_events_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_EventDIDUpdated_messageType fastReflection_EventDIDUpdated_messageType var _ protoreflect.MessageType = fastReflection_EventDIDUpdated_messageType{} type fastReflection_EventDIDUpdated_messageType struct{} func (x fastReflection_EventDIDUpdated_messageType) Zero() protoreflect.Message { return (*fastReflection_EventDIDUpdated)(nil) } func (x fastReflection_EventDIDUpdated_messageType) New() protoreflect.Message { return new(fastReflection_EventDIDUpdated) } func (x fastReflection_EventDIDUpdated_messageType) Descriptor() protoreflect.MessageDescriptor { return md_EventDIDUpdated } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_EventDIDUpdated) Descriptor() protoreflect.MessageDescriptor { return md_EventDIDUpdated } // 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_EventDIDUpdated) Type() protoreflect.MessageType { return _fastReflection_EventDIDUpdated_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_EventDIDUpdated) New() protoreflect.Message { return new(fastReflection_EventDIDUpdated) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_EventDIDUpdated) Interface() protoreflect.ProtoMessage { return (*EventDIDUpdated)(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_EventDIDUpdated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Did != "" { value := protoreflect.ValueOfString(x.Did) if !f(fd_EventDIDUpdated_did, value) { return } } if x.Updater != "" { value := protoreflect.ValueOfString(x.Updater) if !f(fd_EventDIDUpdated_updater, value) { return } } if len(x.FieldsUpdated) != 0 { value := protoreflect.ValueOfList(&_EventDIDUpdated_3_list{list: &x.FieldsUpdated}) if !f(fd_EventDIDUpdated_fields_updated, value) { return } } if x.UpdatedAt != nil { value := protoreflect.ValueOfMessage(x.UpdatedAt.ProtoReflect()) if !f(fd_EventDIDUpdated_updated_at, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) if !f(fd_EventDIDUpdated_block_height, 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_EventDIDUpdated) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.EventDIDUpdated.did": return x.Did != "" case "did.v1.EventDIDUpdated.updater": return x.Updater != "" case "did.v1.EventDIDUpdated.fields_updated": return len(x.FieldsUpdated) != 0 case "did.v1.EventDIDUpdated.updated_at": return x.UpdatedAt != nil case "did.v1.EventDIDUpdated.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDUpdated")) } panic(fmt.Errorf("message did.v1.EventDIDUpdated 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_EventDIDUpdated) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.EventDIDUpdated.did": x.Did = "" case "did.v1.EventDIDUpdated.updater": x.Updater = "" case "did.v1.EventDIDUpdated.fields_updated": x.FieldsUpdated = nil case "did.v1.EventDIDUpdated.updated_at": x.UpdatedAt = nil case "did.v1.EventDIDUpdated.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDUpdated")) } panic(fmt.Errorf("message did.v1.EventDIDUpdated 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_EventDIDUpdated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.EventDIDUpdated.did": value := x.Did return protoreflect.ValueOfString(value) case "did.v1.EventDIDUpdated.updater": value := x.Updater return protoreflect.ValueOfString(value) case "did.v1.EventDIDUpdated.fields_updated": if len(x.FieldsUpdated) == 0 { return protoreflect.ValueOfList(&_EventDIDUpdated_3_list{}) } listValue := &_EventDIDUpdated_3_list{list: &x.FieldsUpdated} return protoreflect.ValueOfList(listValue) case "did.v1.EventDIDUpdated.updated_at": value := x.UpdatedAt return protoreflect.ValueOfMessage(value.ProtoReflect()) case "did.v1.EventDIDUpdated.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDUpdated")) } panic(fmt.Errorf("message did.v1.EventDIDUpdated 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_EventDIDUpdated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.EventDIDUpdated.did": x.Did = value.Interface().(string) case "did.v1.EventDIDUpdated.updater": x.Updater = value.Interface().(string) case "did.v1.EventDIDUpdated.fields_updated": lv := value.List() clv := lv.(*_EventDIDUpdated_3_list) x.FieldsUpdated = *clv.list case "did.v1.EventDIDUpdated.updated_at": x.UpdatedAt = value.Message().Interface().(*timestamppb.Timestamp) case "did.v1.EventDIDUpdated.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDUpdated")) } panic(fmt.Errorf("message did.v1.EventDIDUpdated 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_EventDIDUpdated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventDIDUpdated.fields_updated": if x.FieldsUpdated == nil { x.FieldsUpdated = []string{} } value := &_EventDIDUpdated_3_list{list: &x.FieldsUpdated} return protoreflect.ValueOfList(value) case "did.v1.EventDIDUpdated.updated_at": if x.UpdatedAt == nil { x.UpdatedAt = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.UpdatedAt.ProtoReflect()) case "did.v1.EventDIDUpdated.did": panic(fmt.Errorf("field did of message did.v1.EventDIDUpdated is not mutable")) case "did.v1.EventDIDUpdated.updater": panic(fmt.Errorf("field updater of message did.v1.EventDIDUpdated is not mutable")) case "did.v1.EventDIDUpdated.block_height": panic(fmt.Errorf("field block_height of message did.v1.EventDIDUpdated is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDUpdated")) } panic(fmt.Errorf("message did.v1.EventDIDUpdated 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_EventDIDUpdated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventDIDUpdated.did": return protoreflect.ValueOfString("") case "did.v1.EventDIDUpdated.updater": return protoreflect.ValueOfString("") case "did.v1.EventDIDUpdated.fields_updated": list := []string{} return protoreflect.ValueOfList(&_EventDIDUpdated_3_list{list: &list}) case "did.v1.EventDIDUpdated.updated_at": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "did.v1.EventDIDUpdated.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDUpdated")) } panic(fmt.Errorf("message did.v1.EventDIDUpdated 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_EventDIDUpdated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.EventDIDUpdated", 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_EventDIDUpdated) 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_EventDIDUpdated) 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_EventDIDUpdated) 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_EventDIDUpdated) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*EventDIDUpdated) 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.Did) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Updater) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if len(x.FieldsUpdated) > 0 { for _, s := range x.FieldsUpdated { l = len(s) n += 1 + l + runtime.Sov(uint64(l)) } } if x.UpdatedAt != nil { l = options.Size(x.UpdatedAt) n += 1 + l + runtime.Sov(uint64(l)) } if x.BlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.BlockHeight)) } 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().(*EventDIDUpdated) 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.BlockHeight != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- dAtA[i] = 0x28 } if x.UpdatedAt != nil { encoded, err := options.Marshal(x.UpdatedAt) 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] = 0x22 } if len(x.FieldsUpdated) > 0 { for iNdEx := len(x.FieldsUpdated) - 1; iNdEx >= 0; iNdEx-- { i -= len(x.FieldsUpdated[iNdEx]) copy(dAtA[i:], x.FieldsUpdated[iNdEx]) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FieldsUpdated[iNdEx]))) i-- dAtA[i] = 0x1a } } if len(x.Updater) > 0 { i -= len(x.Updater) copy(dAtA[i:], x.Updater) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Updater))) i-- dAtA[i] = 0x12 } if len(x.Did) > 0 { i -= len(x.Did) copy(dAtA[i:], x.Did) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did))) 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().(*EventDIDUpdated) 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: EventDIDUpdated: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventDIDUpdated: 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 Did", 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.Did = 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 Updater", 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.Updater = 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 FieldsUpdated", 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.FieldsUpdated = append(x.FieldsUpdated, 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 UpdatedAt", 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.UpdatedAt == nil { x.UpdatedAt = ×tamppb.Timestamp{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UpdatedAt); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 5: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } var ( md_EventDIDDeactivated protoreflect.MessageDescriptor fd_EventDIDDeactivated_did protoreflect.FieldDescriptor fd_EventDIDDeactivated_deactivator protoreflect.FieldDescriptor fd_EventDIDDeactivated_deactivated_at protoreflect.FieldDescriptor fd_EventDIDDeactivated_block_height protoreflect.FieldDescriptor ) func init() { file_did_v1_events_proto_init() md_EventDIDDeactivated = File_did_v1_events_proto.Messages().ByName("EventDIDDeactivated") fd_EventDIDDeactivated_did = md_EventDIDDeactivated.Fields().ByName("did") fd_EventDIDDeactivated_deactivator = md_EventDIDDeactivated.Fields().ByName("deactivator") fd_EventDIDDeactivated_deactivated_at = md_EventDIDDeactivated.Fields().ByName("deactivated_at") fd_EventDIDDeactivated_block_height = md_EventDIDDeactivated.Fields().ByName("block_height") } var _ protoreflect.Message = (*fastReflection_EventDIDDeactivated)(nil) type fastReflection_EventDIDDeactivated EventDIDDeactivated func (x *EventDIDDeactivated) ProtoReflect() protoreflect.Message { return (*fastReflection_EventDIDDeactivated)(x) } func (x *EventDIDDeactivated) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_events_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_EventDIDDeactivated_messageType fastReflection_EventDIDDeactivated_messageType var _ protoreflect.MessageType = fastReflection_EventDIDDeactivated_messageType{} type fastReflection_EventDIDDeactivated_messageType struct{} func (x fastReflection_EventDIDDeactivated_messageType) Zero() protoreflect.Message { return (*fastReflection_EventDIDDeactivated)(nil) } func (x fastReflection_EventDIDDeactivated_messageType) New() protoreflect.Message { return new(fastReflection_EventDIDDeactivated) } func (x fastReflection_EventDIDDeactivated_messageType) Descriptor() protoreflect.MessageDescriptor { return md_EventDIDDeactivated } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_EventDIDDeactivated) Descriptor() protoreflect.MessageDescriptor { return md_EventDIDDeactivated } // 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_EventDIDDeactivated) Type() protoreflect.MessageType { return _fastReflection_EventDIDDeactivated_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_EventDIDDeactivated) New() protoreflect.Message { return new(fastReflection_EventDIDDeactivated) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_EventDIDDeactivated) Interface() protoreflect.ProtoMessage { return (*EventDIDDeactivated)(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_EventDIDDeactivated) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Did != "" { value := protoreflect.ValueOfString(x.Did) if !f(fd_EventDIDDeactivated_did, value) { return } } if x.Deactivator != "" { value := protoreflect.ValueOfString(x.Deactivator) if !f(fd_EventDIDDeactivated_deactivator, value) { return } } if x.DeactivatedAt != nil { value := protoreflect.ValueOfMessage(x.DeactivatedAt.ProtoReflect()) if !f(fd_EventDIDDeactivated_deactivated_at, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) if !f(fd_EventDIDDeactivated_block_height, 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_EventDIDDeactivated) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.EventDIDDeactivated.did": return x.Did != "" case "did.v1.EventDIDDeactivated.deactivator": return x.Deactivator != "" case "did.v1.EventDIDDeactivated.deactivated_at": return x.DeactivatedAt != nil case "did.v1.EventDIDDeactivated.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDDeactivated")) } panic(fmt.Errorf("message did.v1.EventDIDDeactivated 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_EventDIDDeactivated) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.EventDIDDeactivated.did": x.Did = "" case "did.v1.EventDIDDeactivated.deactivator": x.Deactivator = "" case "did.v1.EventDIDDeactivated.deactivated_at": x.DeactivatedAt = nil case "did.v1.EventDIDDeactivated.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDDeactivated")) } panic(fmt.Errorf("message did.v1.EventDIDDeactivated 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_EventDIDDeactivated) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.EventDIDDeactivated.did": value := x.Did return protoreflect.ValueOfString(value) case "did.v1.EventDIDDeactivated.deactivator": value := x.Deactivator return protoreflect.ValueOfString(value) case "did.v1.EventDIDDeactivated.deactivated_at": value := x.DeactivatedAt return protoreflect.ValueOfMessage(value.ProtoReflect()) case "did.v1.EventDIDDeactivated.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDDeactivated")) } panic(fmt.Errorf("message did.v1.EventDIDDeactivated 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_EventDIDDeactivated) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.EventDIDDeactivated.did": x.Did = value.Interface().(string) case "did.v1.EventDIDDeactivated.deactivator": x.Deactivator = value.Interface().(string) case "did.v1.EventDIDDeactivated.deactivated_at": x.DeactivatedAt = value.Message().Interface().(*timestamppb.Timestamp) case "did.v1.EventDIDDeactivated.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDDeactivated")) } panic(fmt.Errorf("message did.v1.EventDIDDeactivated 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_EventDIDDeactivated) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventDIDDeactivated.deactivated_at": if x.DeactivatedAt == nil { x.DeactivatedAt = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.DeactivatedAt.ProtoReflect()) case "did.v1.EventDIDDeactivated.did": panic(fmt.Errorf("field did of message did.v1.EventDIDDeactivated is not mutable")) case "did.v1.EventDIDDeactivated.deactivator": panic(fmt.Errorf("field deactivator of message did.v1.EventDIDDeactivated is not mutable")) case "did.v1.EventDIDDeactivated.block_height": panic(fmt.Errorf("field block_height of message did.v1.EventDIDDeactivated is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDDeactivated")) } panic(fmt.Errorf("message did.v1.EventDIDDeactivated 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_EventDIDDeactivated) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventDIDDeactivated.did": return protoreflect.ValueOfString("") case "did.v1.EventDIDDeactivated.deactivator": return protoreflect.ValueOfString("") case "did.v1.EventDIDDeactivated.deactivated_at": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "did.v1.EventDIDDeactivated.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventDIDDeactivated")) } panic(fmt.Errorf("message did.v1.EventDIDDeactivated 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_EventDIDDeactivated) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.EventDIDDeactivated", 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_EventDIDDeactivated) 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_EventDIDDeactivated) 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_EventDIDDeactivated) 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_EventDIDDeactivated) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*EventDIDDeactivated) 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.Did) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Deactivator) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.DeactivatedAt != nil { l = options.Size(x.DeactivatedAt) n += 1 + l + runtime.Sov(uint64(l)) } if x.BlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.BlockHeight)) } 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().(*EventDIDDeactivated) 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.BlockHeight != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- dAtA[i] = 0x20 } if x.DeactivatedAt != nil { encoded, err := options.Marshal(x.DeactivatedAt) 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.Deactivator) > 0 { i -= len(x.Deactivator) copy(dAtA[i:], x.Deactivator) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Deactivator))) i-- dAtA[i] = 0x12 } if len(x.Did) > 0 { i -= len(x.Did) copy(dAtA[i:], x.Did) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did))) 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().(*EventDIDDeactivated) 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: EventDIDDeactivated: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventDIDDeactivated: 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 Did", 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.Did = 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 Deactivator", 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.Deactivator = 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 DeactivatedAt", 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.DeactivatedAt == nil { x.DeactivatedAt = ×tamppb.Timestamp{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DeactivatedAt); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 4: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } var ( md_EventVerificationMethodAdded protoreflect.MessageDescriptor fd_EventVerificationMethodAdded_did protoreflect.FieldDescriptor fd_EventVerificationMethodAdded_method_id protoreflect.FieldDescriptor fd_EventVerificationMethodAdded_key_type protoreflect.FieldDescriptor fd_EventVerificationMethodAdded_public_key protoreflect.FieldDescriptor fd_EventVerificationMethodAdded_block_height protoreflect.FieldDescriptor ) func init() { file_did_v1_events_proto_init() md_EventVerificationMethodAdded = File_did_v1_events_proto.Messages().ByName("EventVerificationMethodAdded") fd_EventVerificationMethodAdded_did = md_EventVerificationMethodAdded.Fields().ByName("did") fd_EventVerificationMethodAdded_method_id = md_EventVerificationMethodAdded.Fields().ByName("method_id") fd_EventVerificationMethodAdded_key_type = md_EventVerificationMethodAdded.Fields().ByName("key_type") fd_EventVerificationMethodAdded_public_key = md_EventVerificationMethodAdded.Fields().ByName("public_key") fd_EventVerificationMethodAdded_block_height = md_EventVerificationMethodAdded.Fields().ByName("block_height") } var _ protoreflect.Message = (*fastReflection_EventVerificationMethodAdded)(nil) type fastReflection_EventVerificationMethodAdded EventVerificationMethodAdded func (x *EventVerificationMethodAdded) ProtoReflect() protoreflect.Message { return (*fastReflection_EventVerificationMethodAdded)(x) } func (x *EventVerificationMethodAdded) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_events_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_EventVerificationMethodAdded_messageType fastReflection_EventVerificationMethodAdded_messageType var _ protoreflect.MessageType = fastReflection_EventVerificationMethodAdded_messageType{} type fastReflection_EventVerificationMethodAdded_messageType struct{} func (x fastReflection_EventVerificationMethodAdded_messageType) Zero() protoreflect.Message { return (*fastReflection_EventVerificationMethodAdded)(nil) } func (x fastReflection_EventVerificationMethodAdded_messageType) New() protoreflect.Message { return new(fastReflection_EventVerificationMethodAdded) } func (x fastReflection_EventVerificationMethodAdded_messageType) Descriptor() protoreflect.MessageDescriptor { return md_EventVerificationMethodAdded } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_EventVerificationMethodAdded) Descriptor() protoreflect.MessageDescriptor { return md_EventVerificationMethodAdded } // 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_EventVerificationMethodAdded) Type() protoreflect.MessageType { return _fastReflection_EventVerificationMethodAdded_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_EventVerificationMethodAdded) New() protoreflect.Message { return new(fastReflection_EventVerificationMethodAdded) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_EventVerificationMethodAdded) Interface() protoreflect.ProtoMessage { return (*EventVerificationMethodAdded)(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_EventVerificationMethodAdded) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Did != "" { value := protoreflect.ValueOfString(x.Did) if !f(fd_EventVerificationMethodAdded_did, value) { return } } if x.MethodId != "" { value := protoreflect.ValueOfString(x.MethodId) if !f(fd_EventVerificationMethodAdded_method_id, value) { return } } if x.KeyType != "" { value := protoreflect.ValueOfString(x.KeyType) if !f(fd_EventVerificationMethodAdded_key_type, value) { return } } if x.PublicKey != "" { value := protoreflect.ValueOfString(x.PublicKey) if !f(fd_EventVerificationMethodAdded_public_key, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) if !f(fd_EventVerificationMethodAdded_block_height, 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_EventVerificationMethodAdded) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.EventVerificationMethodAdded.did": return x.Did != "" case "did.v1.EventVerificationMethodAdded.method_id": return x.MethodId != "" case "did.v1.EventVerificationMethodAdded.key_type": return x.KeyType != "" case "did.v1.EventVerificationMethodAdded.public_key": return x.PublicKey != "" case "did.v1.EventVerificationMethodAdded.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventVerificationMethodAdded")) } panic(fmt.Errorf("message did.v1.EventVerificationMethodAdded 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_EventVerificationMethodAdded) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.EventVerificationMethodAdded.did": x.Did = "" case "did.v1.EventVerificationMethodAdded.method_id": x.MethodId = "" case "did.v1.EventVerificationMethodAdded.key_type": x.KeyType = "" case "did.v1.EventVerificationMethodAdded.public_key": x.PublicKey = "" case "did.v1.EventVerificationMethodAdded.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventVerificationMethodAdded")) } panic(fmt.Errorf("message did.v1.EventVerificationMethodAdded 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_EventVerificationMethodAdded) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.EventVerificationMethodAdded.did": value := x.Did return protoreflect.ValueOfString(value) case "did.v1.EventVerificationMethodAdded.method_id": value := x.MethodId return protoreflect.ValueOfString(value) case "did.v1.EventVerificationMethodAdded.key_type": value := x.KeyType return protoreflect.ValueOfString(value) case "did.v1.EventVerificationMethodAdded.public_key": value := x.PublicKey return protoreflect.ValueOfString(value) case "did.v1.EventVerificationMethodAdded.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventVerificationMethodAdded")) } panic(fmt.Errorf("message did.v1.EventVerificationMethodAdded 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_EventVerificationMethodAdded) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.EventVerificationMethodAdded.did": x.Did = value.Interface().(string) case "did.v1.EventVerificationMethodAdded.method_id": x.MethodId = value.Interface().(string) case "did.v1.EventVerificationMethodAdded.key_type": x.KeyType = value.Interface().(string) case "did.v1.EventVerificationMethodAdded.public_key": x.PublicKey = value.Interface().(string) case "did.v1.EventVerificationMethodAdded.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventVerificationMethodAdded")) } panic(fmt.Errorf("message did.v1.EventVerificationMethodAdded 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_EventVerificationMethodAdded) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventVerificationMethodAdded.did": panic(fmt.Errorf("field did of message did.v1.EventVerificationMethodAdded is not mutable")) case "did.v1.EventVerificationMethodAdded.method_id": panic(fmt.Errorf("field method_id of message did.v1.EventVerificationMethodAdded is not mutable")) case "did.v1.EventVerificationMethodAdded.key_type": panic(fmt.Errorf("field key_type of message did.v1.EventVerificationMethodAdded is not mutable")) case "did.v1.EventVerificationMethodAdded.public_key": panic(fmt.Errorf("field public_key of message did.v1.EventVerificationMethodAdded is not mutable")) case "did.v1.EventVerificationMethodAdded.block_height": panic(fmt.Errorf("field block_height of message did.v1.EventVerificationMethodAdded is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventVerificationMethodAdded")) } panic(fmt.Errorf("message did.v1.EventVerificationMethodAdded 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_EventVerificationMethodAdded) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventVerificationMethodAdded.did": return protoreflect.ValueOfString("") case "did.v1.EventVerificationMethodAdded.method_id": return protoreflect.ValueOfString("") case "did.v1.EventVerificationMethodAdded.key_type": return protoreflect.ValueOfString("") case "did.v1.EventVerificationMethodAdded.public_key": return protoreflect.ValueOfString("") case "did.v1.EventVerificationMethodAdded.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventVerificationMethodAdded")) } panic(fmt.Errorf("message did.v1.EventVerificationMethodAdded 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_EventVerificationMethodAdded) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.EventVerificationMethodAdded", 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_EventVerificationMethodAdded) 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_EventVerificationMethodAdded) 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_EventVerificationMethodAdded) 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_EventVerificationMethodAdded) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*EventVerificationMethodAdded) 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.Did) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.MethodId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.KeyType) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.PublicKey) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.BlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.BlockHeight)) } 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().(*EventVerificationMethodAdded) 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.BlockHeight != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- dAtA[i] = 0x28 } if len(x.PublicKey) > 0 { i -= len(x.PublicKey) copy(dAtA[i:], x.PublicKey) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PublicKey))) i-- dAtA[i] = 0x22 } if len(x.KeyType) > 0 { i -= len(x.KeyType) copy(dAtA[i:], x.KeyType) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.KeyType))) i-- dAtA[i] = 0x1a } if len(x.MethodId) > 0 { i -= len(x.MethodId) copy(dAtA[i:], x.MethodId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MethodId))) i-- dAtA[i] = 0x12 } if len(x.Did) > 0 { i -= len(x.Did) copy(dAtA[i:], x.Did) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did))) 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().(*EventVerificationMethodAdded) 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: EventVerificationMethodAdded: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventVerificationMethodAdded: 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 Did", 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.Did = 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 MethodId", 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.MethodId = 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 KeyType", 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.KeyType = 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 PublicKey", 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.PublicKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } var ( md_EventVerificationMethodRemoved protoreflect.MessageDescriptor fd_EventVerificationMethodRemoved_did protoreflect.FieldDescriptor fd_EventVerificationMethodRemoved_method_id protoreflect.FieldDescriptor fd_EventVerificationMethodRemoved_block_height protoreflect.FieldDescriptor ) func init() { file_did_v1_events_proto_init() md_EventVerificationMethodRemoved = File_did_v1_events_proto.Messages().ByName("EventVerificationMethodRemoved") fd_EventVerificationMethodRemoved_did = md_EventVerificationMethodRemoved.Fields().ByName("did") fd_EventVerificationMethodRemoved_method_id = md_EventVerificationMethodRemoved.Fields().ByName("method_id") fd_EventVerificationMethodRemoved_block_height = md_EventVerificationMethodRemoved.Fields().ByName("block_height") } var _ protoreflect.Message = (*fastReflection_EventVerificationMethodRemoved)(nil) type fastReflection_EventVerificationMethodRemoved EventVerificationMethodRemoved func (x *EventVerificationMethodRemoved) ProtoReflect() protoreflect.Message { return (*fastReflection_EventVerificationMethodRemoved)(x) } func (x *EventVerificationMethodRemoved) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_events_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_EventVerificationMethodRemoved_messageType fastReflection_EventVerificationMethodRemoved_messageType var _ protoreflect.MessageType = fastReflection_EventVerificationMethodRemoved_messageType{} type fastReflection_EventVerificationMethodRemoved_messageType struct{} func (x fastReflection_EventVerificationMethodRemoved_messageType) Zero() protoreflect.Message { return (*fastReflection_EventVerificationMethodRemoved)(nil) } func (x fastReflection_EventVerificationMethodRemoved_messageType) New() protoreflect.Message { return new(fastReflection_EventVerificationMethodRemoved) } func (x fastReflection_EventVerificationMethodRemoved_messageType) Descriptor() protoreflect.MessageDescriptor { return md_EventVerificationMethodRemoved } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_EventVerificationMethodRemoved) Descriptor() protoreflect.MessageDescriptor { return md_EventVerificationMethodRemoved } // 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_EventVerificationMethodRemoved) Type() protoreflect.MessageType { return _fastReflection_EventVerificationMethodRemoved_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_EventVerificationMethodRemoved) New() protoreflect.Message { return new(fastReflection_EventVerificationMethodRemoved) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_EventVerificationMethodRemoved) Interface() protoreflect.ProtoMessage { return (*EventVerificationMethodRemoved)(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_EventVerificationMethodRemoved) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Did != "" { value := protoreflect.ValueOfString(x.Did) if !f(fd_EventVerificationMethodRemoved_did, value) { return } } if x.MethodId != "" { value := protoreflect.ValueOfString(x.MethodId) if !f(fd_EventVerificationMethodRemoved_method_id, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) if !f(fd_EventVerificationMethodRemoved_block_height, 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_EventVerificationMethodRemoved) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.EventVerificationMethodRemoved.did": return x.Did != "" case "did.v1.EventVerificationMethodRemoved.method_id": return x.MethodId != "" case "did.v1.EventVerificationMethodRemoved.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventVerificationMethodRemoved")) } panic(fmt.Errorf("message did.v1.EventVerificationMethodRemoved 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_EventVerificationMethodRemoved) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.EventVerificationMethodRemoved.did": x.Did = "" case "did.v1.EventVerificationMethodRemoved.method_id": x.MethodId = "" case "did.v1.EventVerificationMethodRemoved.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventVerificationMethodRemoved")) } panic(fmt.Errorf("message did.v1.EventVerificationMethodRemoved 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_EventVerificationMethodRemoved) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.EventVerificationMethodRemoved.did": value := x.Did return protoreflect.ValueOfString(value) case "did.v1.EventVerificationMethodRemoved.method_id": value := x.MethodId return protoreflect.ValueOfString(value) case "did.v1.EventVerificationMethodRemoved.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventVerificationMethodRemoved")) } panic(fmt.Errorf("message did.v1.EventVerificationMethodRemoved 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_EventVerificationMethodRemoved) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.EventVerificationMethodRemoved.did": x.Did = value.Interface().(string) case "did.v1.EventVerificationMethodRemoved.method_id": x.MethodId = value.Interface().(string) case "did.v1.EventVerificationMethodRemoved.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventVerificationMethodRemoved")) } panic(fmt.Errorf("message did.v1.EventVerificationMethodRemoved 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_EventVerificationMethodRemoved) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventVerificationMethodRemoved.did": panic(fmt.Errorf("field did of message did.v1.EventVerificationMethodRemoved is not mutable")) case "did.v1.EventVerificationMethodRemoved.method_id": panic(fmt.Errorf("field method_id of message did.v1.EventVerificationMethodRemoved is not mutable")) case "did.v1.EventVerificationMethodRemoved.block_height": panic(fmt.Errorf("field block_height of message did.v1.EventVerificationMethodRemoved is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventVerificationMethodRemoved")) } panic(fmt.Errorf("message did.v1.EventVerificationMethodRemoved 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_EventVerificationMethodRemoved) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventVerificationMethodRemoved.did": return protoreflect.ValueOfString("") case "did.v1.EventVerificationMethodRemoved.method_id": return protoreflect.ValueOfString("") case "did.v1.EventVerificationMethodRemoved.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventVerificationMethodRemoved")) } panic(fmt.Errorf("message did.v1.EventVerificationMethodRemoved 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_EventVerificationMethodRemoved) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.EventVerificationMethodRemoved", 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_EventVerificationMethodRemoved) 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_EventVerificationMethodRemoved) 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_EventVerificationMethodRemoved) 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_EventVerificationMethodRemoved) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*EventVerificationMethodRemoved) 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.Did) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.MethodId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.BlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.BlockHeight)) } 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().(*EventVerificationMethodRemoved) 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.BlockHeight != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- dAtA[i] = 0x18 } if len(x.MethodId) > 0 { i -= len(x.MethodId) copy(dAtA[i:], x.MethodId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MethodId))) i-- dAtA[i] = 0x12 } if len(x.Did) > 0 { i -= len(x.Did) copy(dAtA[i:], x.Did) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did))) 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().(*EventVerificationMethodRemoved) 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: EventVerificationMethodRemoved: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventVerificationMethodRemoved: 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 Did", 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.Did = 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 MethodId", 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.MethodId = 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 BlockHeight", wireType) } x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } var ( md_EventServiceAdded protoreflect.MessageDescriptor fd_EventServiceAdded_did protoreflect.FieldDescriptor fd_EventServiceAdded_service_id protoreflect.FieldDescriptor fd_EventServiceAdded_type protoreflect.FieldDescriptor fd_EventServiceAdded_endpoint protoreflect.FieldDescriptor fd_EventServiceAdded_block_height protoreflect.FieldDescriptor ) func init() { file_did_v1_events_proto_init() md_EventServiceAdded = File_did_v1_events_proto.Messages().ByName("EventServiceAdded") fd_EventServiceAdded_did = md_EventServiceAdded.Fields().ByName("did") fd_EventServiceAdded_service_id = md_EventServiceAdded.Fields().ByName("service_id") fd_EventServiceAdded_type = md_EventServiceAdded.Fields().ByName("type") fd_EventServiceAdded_endpoint = md_EventServiceAdded.Fields().ByName("endpoint") fd_EventServiceAdded_block_height = md_EventServiceAdded.Fields().ByName("block_height") } var _ protoreflect.Message = (*fastReflection_EventServiceAdded)(nil) type fastReflection_EventServiceAdded EventServiceAdded func (x *EventServiceAdded) ProtoReflect() protoreflect.Message { return (*fastReflection_EventServiceAdded)(x) } func (x *EventServiceAdded) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_events_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_EventServiceAdded_messageType fastReflection_EventServiceAdded_messageType var _ protoreflect.MessageType = fastReflection_EventServiceAdded_messageType{} type fastReflection_EventServiceAdded_messageType struct{} func (x fastReflection_EventServiceAdded_messageType) Zero() protoreflect.Message { return (*fastReflection_EventServiceAdded)(nil) } func (x fastReflection_EventServiceAdded_messageType) New() protoreflect.Message { return new(fastReflection_EventServiceAdded) } func (x fastReflection_EventServiceAdded_messageType) Descriptor() protoreflect.MessageDescriptor { return md_EventServiceAdded } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_EventServiceAdded) Descriptor() protoreflect.MessageDescriptor { return md_EventServiceAdded } // 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_EventServiceAdded) Type() protoreflect.MessageType { return _fastReflection_EventServiceAdded_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_EventServiceAdded) New() protoreflect.Message { return new(fastReflection_EventServiceAdded) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_EventServiceAdded) Interface() protoreflect.ProtoMessage { return (*EventServiceAdded)(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_EventServiceAdded) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Did != "" { value := protoreflect.ValueOfString(x.Did) if !f(fd_EventServiceAdded_did, value) { return } } if x.ServiceId != "" { value := protoreflect.ValueOfString(x.ServiceId) if !f(fd_EventServiceAdded_service_id, value) { return } } if x.Type_ != "" { value := protoreflect.ValueOfString(x.Type_) if !f(fd_EventServiceAdded_type, value) { return } } if x.Endpoint != "" { value := protoreflect.ValueOfString(x.Endpoint) if !f(fd_EventServiceAdded_endpoint, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) if !f(fd_EventServiceAdded_block_height, 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_EventServiceAdded) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.EventServiceAdded.did": return x.Did != "" case "did.v1.EventServiceAdded.service_id": return x.ServiceId != "" case "did.v1.EventServiceAdded.type": return x.Type_ != "" case "did.v1.EventServiceAdded.endpoint": return x.Endpoint != "" case "did.v1.EventServiceAdded.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventServiceAdded")) } panic(fmt.Errorf("message did.v1.EventServiceAdded 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_EventServiceAdded) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.EventServiceAdded.did": x.Did = "" case "did.v1.EventServiceAdded.service_id": x.ServiceId = "" case "did.v1.EventServiceAdded.type": x.Type_ = "" case "did.v1.EventServiceAdded.endpoint": x.Endpoint = "" case "did.v1.EventServiceAdded.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventServiceAdded")) } panic(fmt.Errorf("message did.v1.EventServiceAdded 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_EventServiceAdded) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.EventServiceAdded.did": value := x.Did return protoreflect.ValueOfString(value) case "did.v1.EventServiceAdded.service_id": value := x.ServiceId return protoreflect.ValueOfString(value) case "did.v1.EventServiceAdded.type": value := x.Type_ return protoreflect.ValueOfString(value) case "did.v1.EventServiceAdded.endpoint": value := x.Endpoint return protoreflect.ValueOfString(value) case "did.v1.EventServiceAdded.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventServiceAdded")) } panic(fmt.Errorf("message did.v1.EventServiceAdded 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_EventServiceAdded) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.EventServiceAdded.did": x.Did = value.Interface().(string) case "did.v1.EventServiceAdded.service_id": x.ServiceId = value.Interface().(string) case "did.v1.EventServiceAdded.type": x.Type_ = value.Interface().(string) case "did.v1.EventServiceAdded.endpoint": x.Endpoint = value.Interface().(string) case "did.v1.EventServiceAdded.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventServiceAdded")) } panic(fmt.Errorf("message did.v1.EventServiceAdded 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_EventServiceAdded) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventServiceAdded.did": panic(fmt.Errorf("field did of message did.v1.EventServiceAdded is not mutable")) case "did.v1.EventServiceAdded.service_id": panic(fmt.Errorf("field service_id of message did.v1.EventServiceAdded is not mutable")) case "did.v1.EventServiceAdded.type": panic(fmt.Errorf("field type of message did.v1.EventServiceAdded is not mutable")) case "did.v1.EventServiceAdded.endpoint": panic(fmt.Errorf("field endpoint of message did.v1.EventServiceAdded is not mutable")) case "did.v1.EventServiceAdded.block_height": panic(fmt.Errorf("field block_height of message did.v1.EventServiceAdded is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventServiceAdded")) } panic(fmt.Errorf("message did.v1.EventServiceAdded 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_EventServiceAdded) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventServiceAdded.did": return protoreflect.ValueOfString("") case "did.v1.EventServiceAdded.service_id": return protoreflect.ValueOfString("") case "did.v1.EventServiceAdded.type": return protoreflect.ValueOfString("") case "did.v1.EventServiceAdded.endpoint": return protoreflect.ValueOfString("") case "did.v1.EventServiceAdded.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventServiceAdded")) } panic(fmt.Errorf("message did.v1.EventServiceAdded 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_EventServiceAdded) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.EventServiceAdded", 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_EventServiceAdded) 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_EventServiceAdded) 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_EventServiceAdded) 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_EventServiceAdded) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*EventServiceAdded) 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.Did) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.ServiceId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Type_) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Endpoint) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.BlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.BlockHeight)) } 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().(*EventServiceAdded) 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.BlockHeight != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- dAtA[i] = 0x28 } if len(x.Endpoint) > 0 { i -= len(x.Endpoint) copy(dAtA[i:], x.Endpoint) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Endpoint))) i-- dAtA[i] = 0x22 } if len(x.Type_) > 0 { i -= len(x.Type_) copy(dAtA[i:], x.Type_) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Type_))) i-- dAtA[i] = 0x1a } if len(x.ServiceId) > 0 { i -= len(x.ServiceId) copy(dAtA[i:], x.ServiceId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ServiceId))) i-- dAtA[i] = 0x12 } if len(x.Did) > 0 { i -= len(x.Did) copy(dAtA[i:], x.Did) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did))) 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().(*EventServiceAdded) 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: EventServiceAdded: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventServiceAdded: 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 Did", 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.Did = 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 ServiceId", 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.ServiceId = 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 Type_", 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.Type_ = 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 Endpoint", 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.Endpoint = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } var ( md_EventServiceRemoved protoreflect.MessageDescriptor fd_EventServiceRemoved_did protoreflect.FieldDescriptor fd_EventServiceRemoved_service_id protoreflect.FieldDescriptor fd_EventServiceRemoved_block_height protoreflect.FieldDescriptor ) func init() { file_did_v1_events_proto_init() md_EventServiceRemoved = File_did_v1_events_proto.Messages().ByName("EventServiceRemoved") fd_EventServiceRemoved_did = md_EventServiceRemoved.Fields().ByName("did") fd_EventServiceRemoved_service_id = md_EventServiceRemoved.Fields().ByName("service_id") fd_EventServiceRemoved_block_height = md_EventServiceRemoved.Fields().ByName("block_height") } var _ protoreflect.Message = (*fastReflection_EventServiceRemoved)(nil) type fastReflection_EventServiceRemoved EventServiceRemoved func (x *EventServiceRemoved) ProtoReflect() protoreflect.Message { return (*fastReflection_EventServiceRemoved)(x) } func (x *EventServiceRemoved) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_events_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_EventServiceRemoved_messageType fastReflection_EventServiceRemoved_messageType var _ protoreflect.MessageType = fastReflection_EventServiceRemoved_messageType{} type fastReflection_EventServiceRemoved_messageType struct{} func (x fastReflection_EventServiceRemoved_messageType) Zero() protoreflect.Message { return (*fastReflection_EventServiceRemoved)(nil) } func (x fastReflection_EventServiceRemoved_messageType) New() protoreflect.Message { return new(fastReflection_EventServiceRemoved) } func (x fastReflection_EventServiceRemoved_messageType) Descriptor() protoreflect.MessageDescriptor { return md_EventServiceRemoved } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_EventServiceRemoved) Descriptor() protoreflect.MessageDescriptor { return md_EventServiceRemoved } // 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_EventServiceRemoved) Type() protoreflect.MessageType { return _fastReflection_EventServiceRemoved_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_EventServiceRemoved) New() protoreflect.Message { return new(fastReflection_EventServiceRemoved) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_EventServiceRemoved) Interface() protoreflect.ProtoMessage { return (*EventServiceRemoved)(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_EventServiceRemoved) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Did != "" { value := protoreflect.ValueOfString(x.Did) if !f(fd_EventServiceRemoved_did, value) { return } } if x.ServiceId != "" { value := protoreflect.ValueOfString(x.ServiceId) if !f(fd_EventServiceRemoved_service_id, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) if !f(fd_EventServiceRemoved_block_height, 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_EventServiceRemoved) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.EventServiceRemoved.did": return x.Did != "" case "did.v1.EventServiceRemoved.service_id": return x.ServiceId != "" case "did.v1.EventServiceRemoved.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventServiceRemoved")) } panic(fmt.Errorf("message did.v1.EventServiceRemoved 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_EventServiceRemoved) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.EventServiceRemoved.did": x.Did = "" case "did.v1.EventServiceRemoved.service_id": x.ServiceId = "" case "did.v1.EventServiceRemoved.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventServiceRemoved")) } panic(fmt.Errorf("message did.v1.EventServiceRemoved 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_EventServiceRemoved) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.EventServiceRemoved.did": value := x.Did return protoreflect.ValueOfString(value) case "did.v1.EventServiceRemoved.service_id": value := x.ServiceId return protoreflect.ValueOfString(value) case "did.v1.EventServiceRemoved.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventServiceRemoved")) } panic(fmt.Errorf("message did.v1.EventServiceRemoved 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_EventServiceRemoved) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.EventServiceRemoved.did": x.Did = value.Interface().(string) case "did.v1.EventServiceRemoved.service_id": x.ServiceId = value.Interface().(string) case "did.v1.EventServiceRemoved.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventServiceRemoved")) } panic(fmt.Errorf("message did.v1.EventServiceRemoved 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_EventServiceRemoved) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventServiceRemoved.did": panic(fmt.Errorf("field did of message did.v1.EventServiceRemoved is not mutable")) case "did.v1.EventServiceRemoved.service_id": panic(fmt.Errorf("field service_id of message did.v1.EventServiceRemoved is not mutable")) case "did.v1.EventServiceRemoved.block_height": panic(fmt.Errorf("field block_height of message did.v1.EventServiceRemoved is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventServiceRemoved")) } panic(fmt.Errorf("message did.v1.EventServiceRemoved 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_EventServiceRemoved) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventServiceRemoved.did": return protoreflect.ValueOfString("") case "did.v1.EventServiceRemoved.service_id": return protoreflect.ValueOfString("") case "did.v1.EventServiceRemoved.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventServiceRemoved")) } panic(fmt.Errorf("message did.v1.EventServiceRemoved 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_EventServiceRemoved) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.EventServiceRemoved", 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_EventServiceRemoved) 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_EventServiceRemoved) 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_EventServiceRemoved) 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_EventServiceRemoved) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*EventServiceRemoved) 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.Did) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.ServiceId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.BlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.BlockHeight)) } 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().(*EventServiceRemoved) 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.BlockHeight != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- dAtA[i] = 0x18 } if len(x.ServiceId) > 0 { i -= len(x.ServiceId) copy(dAtA[i:], x.ServiceId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ServiceId))) i-- dAtA[i] = 0x12 } if len(x.Did) > 0 { i -= len(x.Did) copy(dAtA[i:], x.Did) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did))) 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().(*EventServiceRemoved) 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: EventServiceRemoved: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventServiceRemoved: 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 Did", 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.Did = 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 ServiceId", 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.ServiceId = 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 BlockHeight", wireType) } x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } var ( md_EventCredentialIssued protoreflect.MessageDescriptor fd_EventCredentialIssued_credential_id protoreflect.FieldDescriptor fd_EventCredentialIssued_issuer protoreflect.FieldDescriptor fd_EventCredentialIssued_subject protoreflect.FieldDescriptor fd_EventCredentialIssued_type protoreflect.FieldDescriptor fd_EventCredentialIssued_issued_at protoreflect.FieldDescriptor fd_EventCredentialIssued_block_height protoreflect.FieldDescriptor ) func init() { file_did_v1_events_proto_init() md_EventCredentialIssued = File_did_v1_events_proto.Messages().ByName("EventCredentialIssued") fd_EventCredentialIssued_credential_id = md_EventCredentialIssued.Fields().ByName("credential_id") fd_EventCredentialIssued_issuer = md_EventCredentialIssued.Fields().ByName("issuer") fd_EventCredentialIssued_subject = md_EventCredentialIssued.Fields().ByName("subject") fd_EventCredentialIssued_type = md_EventCredentialIssued.Fields().ByName("type") fd_EventCredentialIssued_issued_at = md_EventCredentialIssued.Fields().ByName("issued_at") fd_EventCredentialIssued_block_height = md_EventCredentialIssued.Fields().ByName("block_height") } var _ protoreflect.Message = (*fastReflection_EventCredentialIssued)(nil) type fastReflection_EventCredentialIssued EventCredentialIssued func (x *EventCredentialIssued) ProtoReflect() protoreflect.Message { return (*fastReflection_EventCredentialIssued)(x) } func (x *EventCredentialIssued) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_events_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_EventCredentialIssued_messageType fastReflection_EventCredentialIssued_messageType var _ protoreflect.MessageType = fastReflection_EventCredentialIssued_messageType{} type fastReflection_EventCredentialIssued_messageType struct{} func (x fastReflection_EventCredentialIssued_messageType) Zero() protoreflect.Message { return (*fastReflection_EventCredentialIssued)(nil) } func (x fastReflection_EventCredentialIssued_messageType) New() protoreflect.Message { return new(fastReflection_EventCredentialIssued) } func (x fastReflection_EventCredentialIssued_messageType) Descriptor() protoreflect.MessageDescriptor { return md_EventCredentialIssued } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_EventCredentialIssued) Descriptor() protoreflect.MessageDescriptor { return md_EventCredentialIssued } // 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_EventCredentialIssued) Type() protoreflect.MessageType { return _fastReflection_EventCredentialIssued_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_EventCredentialIssued) New() protoreflect.Message { return new(fastReflection_EventCredentialIssued) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_EventCredentialIssued) Interface() protoreflect.ProtoMessage { return (*EventCredentialIssued)(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_EventCredentialIssued) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.CredentialId != "" { value := protoreflect.ValueOfString(x.CredentialId) if !f(fd_EventCredentialIssued_credential_id, value) { return } } if x.Issuer != "" { value := protoreflect.ValueOfString(x.Issuer) if !f(fd_EventCredentialIssued_issuer, value) { return } } if x.Subject != "" { value := protoreflect.ValueOfString(x.Subject) if !f(fd_EventCredentialIssued_subject, value) { return } } if x.Type_ != "" { value := protoreflect.ValueOfString(x.Type_) if !f(fd_EventCredentialIssued_type, value) { return } } if x.IssuedAt != nil { value := protoreflect.ValueOfMessage(x.IssuedAt.ProtoReflect()) if !f(fd_EventCredentialIssued_issued_at, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) if !f(fd_EventCredentialIssued_block_height, 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_EventCredentialIssued) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.EventCredentialIssued.credential_id": return x.CredentialId != "" case "did.v1.EventCredentialIssued.issuer": return x.Issuer != "" case "did.v1.EventCredentialIssued.subject": return x.Subject != "" case "did.v1.EventCredentialIssued.type": return x.Type_ != "" case "did.v1.EventCredentialIssued.issued_at": return x.IssuedAt != nil case "did.v1.EventCredentialIssued.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventCredentialIssued")) } panic(fmt.Errorf("message did.v1.EventCredentialIssued 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_EventCredentialIssued) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.EventCredentialIssued.credential_id": x.CredentialId = "" case "did.v1.EventCredentialIssued.issuer": x.Issuer = "" case "did.v1.EventCredentialIssued.subject": x.Subject = "" case "did.v1.EventCredentialIssued.type": x.Type_ = "" case "did.v1.EventCredentialIssued.issued_at": x.IssuedAt = nil case "did.v1.EventCredentialIssued.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventCredentialIssued")) } panic(fmt.Errorf("message did.v1.EventCredentialIssued 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_EventCredentialIssued) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.EventCredentialIssued.credential_id": value := x.CredentialId return protoreflect.ValueOfString(value) case "did.v1.EventCredentialIssued.issuer": value := x.Issuer return protoreflect.ValueOfString(value) case "did.v1.EventCredentialIssued.subject": value := x.Subject return protoreflect.ValueOfString(value) case "did.v1.EventCredentialIssued.type": value := x.Type_ return protoreflect.ValueOfString(value) case "did.v1.EventCredentialIssued.issued_at": value := x.IssuedAt return protoreflect.ValueOfMessage(value.ProtoReflect()) case "did.v1.EventCredentialIssued.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventCredentialIssued")) } panic(fmt.Errorf("message did.v1.EventCredentialIssued 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_EventCredentialIssued) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.EventCredentialIssued.credential_id": x.CredentialId = value.Interface().(string) case "did.v1.EventCredentialIssued.issuer": x.Issuer = value.Interface().(string) case "did.v1.EventCredentialIssued.subject": x.Subject = value.Interface().(string) case "did.v1.EventCredentialIssued.type": x.Type_ = value.Interface().(string) case "did.v1.EventCredentialIssued.issued_at": x.IssuedAt = value.Message().Interface().(*timestamppb.Timestamp) case "did.v1.EventCredentialIssued.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventCredentialIssued")) } panic(fmt.Errorf("message did.v1.EventCredentialIssued 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_EventCredentialIssued) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventCredentialIssued.issued_at": if x.IssuedAt == nil { x.IssuedAt = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.IssuedAt.ProtoReflect()) case "did.v1.EventCredentialIssued.credential_id": panic(fmt.Errorf("field credential_id of message did.v1.EventCredentialIssued is not mutable")) case "did.v1.EventCredentialIssued.issuer": panic(fmt.Errorf("field issuer of message did.v1.EventCredentialIssued is not mutable")) case "did.v1.EventCredentialIssued.subject": panic(fmt.Errorf("field subject of message did.v1.EventCredentialIssued is not mutable")) case "did.v1.EventCredentialIssued.type": panic(fmt.Errorf("field type of message did.v1.EventCredentialIssued is not mutable")) case "did.v1.EventCredentialIssued.block_height": panic(fmt.Errorf("field block_height of message did.v1.EventCredentialIssued is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventCredentialIssued")) } panic(fmt.Errorf("message did.v1.EventCredentialIssued 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_EventCredentialIssued) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventCredentialIssued.credential_id": return protoreflect.ValueOfString("") case "did.v1.EventCredentialIssued.issuer": return protoreflect.ValueOfString("") case "did.v1.EventCredentialIssued.subject": return protoreflect.ValueOfString("") case "did.v1.EventCredentialIssued.type": return protoreflect.ValueOfString("") case "did.v1.EventCredentialIssued.issued_at": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "did.v1.EventCredentialIssued.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventCredentialIssued")) } panic(fmt.Errorf("message did.v1.EventCredentialIssued 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_EventCredentialIssued) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.EventCredentialIssued", 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_EventCredentialIssued) 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_EventCredentialIssued) 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_EventCredentialIssued) 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_EventCredentialIssued) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*EventCredentialIssued) 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.CredentialId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Issuer) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Subject) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Type_) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.IssuedAt != nil { l = options.Size(x.IssuedAt) n += 1 + l + runtime.Sov(uint64(l)) } if x.BlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.BlockHeight)) } 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().(*EventCredentialIssued) 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.BlockHeight != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- dAtA[i] = 0x30 } if x.IssuedAt != nil { encoded, err := options.Marshal(x.IssuedAt) 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] = 0x2a } if len(x.Type_) > 0 { i -= len(x.Type_) copy(dAtA[i:], x.Type_) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Type_))) i-- dAtA[i] = 0x22 } if len(x.Subject) > 0 { i -= len(x.Subject) copy(dAtA[i:], x.Subject) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Subject))) i-- dAtA[i] = 0x1a } if len(x.Issuer) > 0 { i -= len(x.Issuer) copy(dAtA[i:], x.Issuer) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Issuer))) i-- dAtA[i] = 0x12 } if len(x.CredentialId) > 0 { i -= len(x.CredentialId) copy(dAtA[i:], x.CredentialId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CredentialId))) 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().(*EventCredentialIssued) 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: EventCredentialIssued: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCredentialIssued: 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 CredentialId", 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.CredentialId = 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 Issuer", 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.Issuer = 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 Subject", 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.Subject = 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 Type_", 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.Type_ = 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 IssuedAt", 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.IssuedAt == nil { x.IssuedAt = ×tamppb.Timestamp{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.IssuedAt); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 6: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } var ( md_EventCredentialRevoked protoreflect.MessageDescriptor fd_EventCredentialRevoked_credential_id protoreflect.FieldDescriptor fd_EventCredentialRevoked_revoker protoreflect.FieldDescriptor fd_EventCredentialRevoked_reason protoreflect.FieldDescriptor fd_EventCredentialRevoked_revoked_at protoreflect.FieldDescriptor fd_EventCredentialRevoked_block_height protoreflect.FieldDescriptor ) func init() { file_did_v1_events_proto_init() md_EventCredentialRevoked = File_did_v1_events_proto.Messages().ByName("EventCredentialRevoked") fd_EventCredentialRevoked_credential_id = md_EventCredentialRevoked.Fields().ByName("credential_id") fd_EventCredentialRevoked_revoker = md_EventCredentialRevoked.Fields().ByName("revoker") fd_EventCredentialRevoked_reason = md_EventCredentialRevoked.Fields().ByName("reason") fd_EventCredentialRevoked_revoked_at = md_EventCredentialRevoked.Fields().ByName("revoked_at") fd_EventCredentialRevoked_block_height = md_EventCredentialRevoked.Fields().ByName("block_height") } var _ protoreflect.Message = (*fastReflection_EventCredentialRevoked)(nil) type fastReflection_EventCredentialRevoked EventCredentialRevoked func (x *EventCredentialRevoked) ProtoReflect() protoreflect.Message { return (*fastReflection_EventCredentialRevoked)(x) } func (x *EventCredentialRevoked) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_events_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } var _fastReflection_EventCredentialRevoked_messageType fastReflection_EventCredentialRevoked_messageType var _ protoreflect.MessageType = fastReflection_EventCredentialRevoked_messageType{} type fastReflection_EventCredentialRevoked_messageType struct{} func (x fastReflection_EventCredentialRevoked_messageType) Zero() protoreflect.Message { return (*fastReflection_EventCredentialRevoked)(nil) } func (x fastReflection_EventCredentialRevoked_messageType) New() protoreflect.Message { return new(fastReflection_EventCredentialRevoked) } func (x fastReflection_EventCredentialRevoked_messageType) Descriptor() protoreflect.MessageDescriptor { return md_EventCredentialRevoked } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_EventCredentialRevoked) Descriptor() protoreflect.MessageDescriptor { return md_EventCredentialRevoked } // 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_EventCredentialRevoked) Type() protoreflect.MessageType { return _fastReflection_EventCredentialRevoked_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_EventCredentialRevoked) New() protoreflect.Message { return new(fastReflection_EventCredentialRevoked) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_EventCredentialRevoked) Interface() protoreflect.ProtoMessage { return (*EventCredentialRevoked)(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_EventCredentialRevoked) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.CredentialId != "" { value := protoreflect.ValueOfString(x.CredentialId) if !f(fd_EventCredentialRevoked_credential_id, value) { return } } if x.Revoker != "" { value := protoreflect.ValueOfString(x.Revoker) if !f(fd_EventCredentialRevoked_revoker, value) { return } } if x.Reason != "" { value := protoreflect.ValueOfString(x.Reason) if !f(fd_EventCredentialRevoked_reason, value) { return } } if x.RevokedAt != nil { value := protoreflect.ValueOfMessage(x.RevokedAt.ProtoReflect()) if !f(fd_EventCredentialRevoked_revoked_at, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) if !f(fd_EventCredentialRevoked_block_height, 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_EventCredentialRevoked) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.EventCredentialRevoked.credential_id": return x.CredentialId != "" case "did.v1.EventCredentialRevoked.revoker": return x.Revoker != "" case "did.v1.EventCredentialRevoked.reason": return x.Reason != "" case "did.v1.EventCredentialRevoked.revoked_at": return x.RevokedAt != nil case "did.v1.EventCredentialRevoked.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventCredentialRevoked")) } panic(fmt.Errorf("message did.v1.EventCredentialRevoked 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_EventCredentialRevoked) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.EventCredentialRevoked.credential_id": x.CredentialId = "" case "did.v1.EventCredentialRevoked.revoker": x.Revoker = "" case "did.v1.EventCredentialRevoked.reason": x.Reason = "" case "did.v1.EventCredentialRevoked.revoked_at": x.RevokedAt = nil case "did.v1.EventCredentialRevoked.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventCredentialRevoked")) } panic(fmt.Errorf("message did.v1.EventCredentialRevoked 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_EventCredentialRevoked) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.EventCredentialRevoked.credential_id": value := x.CredentialId return protoreflect.ValueOfString(value) case "did.v1.EventCredentialRevoked.revoker": value := x.Revoker return protoreflect.ValueOfString(value) case "did.v1.EventCredentialRevoked.reason": value := x.Reason return protoreflect.ValueOfString(value) case "did.v1.EventCredentialRevoked.revoked_at": value := x.RevokedAt return protoreflect.ValueOfMessage(value.ProtoReflect()) case "did.v1.EventCredentialRevoked.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventCredentialRevoked")) } panic(fmt.Errorf("message did.v1.EventCredentialRevoked 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_EventCredentialRevoked) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.EventCredentialRevoked.credential_id": x.CredentialId = value.Interface().(string) case "did.v1.EventCredentialRevoked.revoker": x.Revoker = value.Interface().(string) case "did.v1.EventCredentialRevoked.reason": x.Reason = value.Interface().(string) case "did.v1.EventCredentialRevoked.revoked_at": x.RevokedAt = value.Message().Interface().(*timestamppb.Timestamp) case "did.v1.EventCredentialRevoked.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventCredentialRevoked")) } panic(fmt.Errorf("message did.v1.EventCredentialRevoked 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_EventCredentialRevoked) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventCredentialRevoked.revoked_at": if x.RevokedAt == nil { x.RevokedAt = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.RevokedAt.ProtoReflect()) case "did.v1.EventCredentialRevoked.credential_id": panic(fmt.Errorf("field credential_id of message did.v1.EventCredentialRevoked is not mutable")) case "did.v1.EventCredentialRevoked.revoker": panic(fmt.Errorf("field revoker of message did.v1.EventCredentialRevoked is not mutable")) case "did.v1.EventCredentialRevoked.reason": panic(fmt.Errorf("field reason of message did.v1.EventCredentialRevoked is not mutable")) case "did.v1.EventCredentialRevoked.block_height": panic(fmt.Errorf("field block_height of message did.v1.EventCredentialRevoked is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventCredentialRevoked")) } panic(fmt.Errorf("message did.v1.EventCredentialRevoked 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_EventCredentialRevoked) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventCredentialRevoked.credential_id": return protoreflect.ValueOfString("") case "did.v1.EventCredentialRevoked.revoker": return protoreflect.ValueOfString("") case "did.v1.EventCredentialRevoked.reason": return protoreflect.ValueOfString("") case "did.v1.EventCredentialRevoked.revoked_at": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "did.v1.EventCredentialRevoked.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventCredentialRevoked")) } panic(fmt.Errorf("message did.v1.EventCredentialRevoked 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_EventCredentialRevoked) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.EventCredentialRevoked", 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_EventCredentialRevoked) 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_EventCredentialRevoked) 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_EventCredentialRevoked) 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_EventCredentialRevoked) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*EventCredentialRevoked) 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.CredentialId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Revoker) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.Reason) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.RevokedAt != nil { l = options.Size(x.RevokedAt) n += 1 + l + runtime.Sov(uint64(l)) } if x.BlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.BlockHeight)) } 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().(*EventCredentialRevoked) 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.BlockHeight != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- dAtA[i] = 0x28 } if x.RevokedAt != nil { encoded, err := options.Marshal(x.RevokedAt) 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] = 0x22 } if len(x.Reason) > 0 { i -= len(x.Reason) copy(dAtA[i:], x.Reason) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reason))) i-- dAtA[i] = 0x1a } if len(x.Revoker) > 0 { i -= len(x.Revoker) copy(dAtA[i:], x.Revoker) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Revoker))) i-- dAtA[i] = 0x12 } if len(x.CredentialId) > 0 { i -= len(x.CredentialId) copy(dAtA[i:], x.CredentialId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CredentialId))) 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().(*EventCredentialRevoked) 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: EventCredentialRevoked: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventCredentialRevoked: 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 CredentialId", 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.CredentialId = 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 Revoker", 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.Revoker = 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 Reason", 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.Reason = 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 RevokedAt", 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.RevokedAt == nil { x.RevokedAt = ×tamppb.Timestamp{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RevokedAt); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 5: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } var ( md_EventWebAuthnRegistered protoreflect.MessageDescriptor fd_EventWebAuthnRegistered_did protoreflect.FieldDescriptor fd_EventWebAuthnRegistered_credential_id protoreflect.FieldDescriptor fd_EventWebAuthnRegistered_attestation_type protoreflect.FieldDescriptor fd_EventWebAuthnRegistered_block_height protoreflect.FieldDescriptor ) func init() { file_did_v1_events_proto_init() md_EventWebAuthnRegistered = File_did_v1_events_proto.Messages().ByName("EventWebAuthnRegistered") fd_EventWebAuthnRegistered_did = md_EventWebAuthnRegistered.Fields().ByName("did") fd_EventWebAuthnRegistered_credential_id = md_EventWebAuthnRegistered.Fields().ByName("credential_id") fd_EventWebAuthnRegistered_attestation_type = md_EventWebAuthnRegistered.Fields().ByName("attestation_type") fd_EventWebAuthnRegistered_block_height = md_EventWebAuthnRegistered.Fields().ByName("block_height") } var _ protoreflect.Message = (*fastReflection_EventWebAuthnRegistered)(nil) type fastReflection_EventWebAuthnRegistered EventWebAuthnRegistered func (x *EventWebAuthnRegistered) ProtoReflect() protoreflect.Message { return (*fastReflection_EventWebAuthnRegistered)(x) } func (x *EventWebAuthnRegistered) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_events_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } var _fastReflection_EventWebAuthnRegistered_messageType fastReflection_EventWebAuthnRegistered_messageType var _ protoreflect.MessageType = fastReflection_EventWebAuthnRegistered_messageType{} type fastReflection_EventWebAuthnRegistered_messageType struct{} func (x fastReflection_EventWebAuthnRegistered_messageType) Zero() protoreflect.Message { return (*fastReflection_EventWebAuthnRegistered)(nil) } func (x fastReflection_EventWebAuthnRegistered_messageType) New() protoreflect.Message { return new(fastReflection_EventWebAuthnRegistered) } func (x fastReflection_EventWebAuthnRegistered_messageType) Descriptor() protoreflect.MessageDescriptor { return md_EventWebAuthnRegistered } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_EventWebAuthnRegistered) Descriptor() protoreflect.MessageDescriptor { return md_EventWebAuthnRegistered } // 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_EventWebAuthnRegistered) Type() protoreflect.MessageType { return _fastReflection_EventWebAuthnRegistered_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_EventWebAuthnRegistered) New() protoreflect.Message { return new(fastReflection_EventWebAuthnRegistered) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_EventWebAuthnRegistered) Interface() protoreflect.ProtoMessage { return (*EventWebAuthnRegistered)(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_EventWebAuthnRegistered) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Did != "" { value := protoreflect.ValueOfString(x.Did) if !f(fd_EventWebAuthnRegistered_did, value) { return } } if x.CredentialId != "" { value := protoreflect.ValueOfString(x.CredentialId) if !f(fd_EventWebAuthnRegistered_credential_id, value) { return } } if x.AttestationType != "" { value := protoreflect.ValueOfString(x.AttestationType) if !f(fd_EventWebAuthnRegistered_attestation_type, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) if !f(fd_EventWebAuthnRegistered_block_height, 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_EventWebAuthnRegistered) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.EventWebAuthnRegistered.did": return x.Did != "" case "did.v1.EventWebAuthnRegistered.credential_id": return x.CredentialId != "" case "did.v1.EventWebAuthnRegistered.attestation_type": return x.AttestationType != "" case "did.v1.EventWebAuthnRegistered.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventWebAuthnRegistered")) } panic(fmt.Errorf("message did.v1.EventWebAuthnRegistered 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_EventWebAuthnRegistered) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.EventWebAuthnRegistered.did": x.Did = "" case "did.v1.EventWebAuthnRegistered.credential_id": x.CredentialId = "" case "did.v1.EventWebAuthnRegistered.attestation_type": x.AttestationType = "" case "did.v1.EventWebAuthnRegistered.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventWebAuthnRegistered")) } panic(fmt.Errorf("message did.v1.EventWebAuthnRegistered 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_EventWebAuthnRegistered) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.EventWebAuthnRegistered.did": value := x.Did return protoreflect.ValueOfString(value) case "did.v1.EventWebAuthnRegistered.credential_id": value := x.CredentialId return protoreflect.ValueOfString(value) case "did.v1.EventWebAuthnRegistered.attestation_type": value := x.AttestationType return protoreflect.ValueOfString(value) case "did.v1.EventWebAuthnRegistered.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventWebAuthnRegistered")) } panic(fmt.Errorf("message did.v1.EventWebAuthnRegistered 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_EventWebAuthnRegistered) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.EventWebAuthnRegistered.did": x.Did = value.Interface().(string) case "did.v1.EventWebAuthnRegistered.credential_id": x.CredentialId = value.Interface().(string) case "did.v1.EventWebAuthnRegistered.attestation_type": x.AttestationType = value.Interface().(string) case "did.v1.EventWebAuthnRegistered.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventWebAuthnRegistered")) } panic(fmt.Errorf("message did.v1.EventWebAuthnRegistered 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_EventWebAuthnRegistered) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventWebAuthnRegistered.did": panic(fmt.Errorf("field did of message did.v1.EventWebAuthnRegistered is not mutable")) case "did.v1.EventWebAuthnRegistered.credential_id": panic(fmt.Errorf("field credential_id of message did.v1.EventWebAuthnRegistered is not mutable")) case "did.v1.EventWebAuthnRegistered.attestation_type": panic(fmt.Errorf("field attestation_type of message did.v1.EventWebAuthnRegistered is not mutable")) case "did.v1.EventWebAuthnRegistered.block_height": panic(fmt.Errorf("field block_height of message did.v1.EventWebAuthnRegistered is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventWebAuthnRegistered")) } panic(fmt.Errorf("message did.v1.EventWebAuthnRegistered 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_EventWebAuthnRegistered) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventWebAuthnRegistered.did": return protoreflect.ValueOfString("") case "did.v1.EventWebAuthnRegistered.credential_id": return protoreflect.ValueOfString("") case "did.v1.EventWebAuthnRegistered.attestation_type": return protoreflect.ValueOfString("") case "did.v1.EventWebAuthnRegistered.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventWebAuthnRegistered")) } panic(fmt.Errorf("message did.v1.EventWebAuthnRegistered 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_EventWebAuthnRegistered) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.EventWebAuthnRegistered", 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_EventWebAuthnRegistered) 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_EventWebAuthnRegistered) 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_EventWebAuthnRegistered) 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_EventWebAuthnRegistered) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*EventWebAuthnRegistered) 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.Did) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.CredentialId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.AttestationType) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.BlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.BlockHeight)) } 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().(*EventWebAuthnRegistered) 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.BlockHeight != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- dAtA[i] = 0x20 } if len(x.AttestationType) > 0 { i -= len(x.AttestationType) copy(dAtA[i:], x.AttestationType) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AttestationType))) i-- dAtA[i] = 0x1a } if len(x.CredentialId) > 0 { i -= len(x.CredentialId) copy(dAtA[i:], x.CredentialId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CredentialId))) i-- dAtA[i] = 0x12 } if len(x.Did) > 0 { i -= len(x.Did) copy(dAtA[i:], x.Did) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did))) 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().(*EventWebAuthnRegistered) 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: EventWebAuthnRegistered: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventWebAuthnRegistered: 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 Did", 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.Did = 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 CredentialId", 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.CredentialId = 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 AttestationType", 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.AttestationType = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } var ( md_EventExternalWalletLinked protoreflect.MessageDescriptor fd_EventExternalWalletLinked_did protoreflect.FieldDescriptor fd_EventExternalWalletLinked_wallet_type protoreflect.FieldDescriptor fd_EventExternalWalletLinked_wallet_address protoreflect.FieldDescriptor fd_EventExternalWalletLinked_block_height protoreflect.FieldDescriptor ) func init() { file_did_v1_events_proto_init() md_EventExternalWalletLinked = File_did_v1_events_proto.Messages().ByName("EventExternalWalletLinked") fd_EventExternalWalletLinked_did = md_EventExternalWalletLinked.Fields().ByName("did") fd_EventExternalWalletLinked_wallet_type = md_EventExternalWalletLinked.Fields().ByName("wallet_type") fd_EventExternalWalletLinked_wallet_address = md_EventExternalWalletLinked.Fields().ByName("wallet_address") fd_EventExternalWalletLinked_block_height = md_EventExternalWalletLinked.Fields().ByName("block_height") } var _ protoreflect.Message = (*fastReflection_EventExternalWalletLinked)(nil) type fastReflection_EventExternalWalletLinked EventExternalWalletLinked func (x *EventExternalWalletLinked) ProtoReflect() protoreflect.Message { return (*fastReflection_EventExternalWalletLinked)(x) } func (x *EventExternalWalletLinked) slowProtoReflect() protoreflect.Message { mi := &file_did_v1_events_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } var _fastReflection_EventExternalWalletLinked_messageType fastReflection_EventExternalWalletLinked_messageType var _ protoreflect.MessageType = fastReflection_EventExternalWalletLinked_messageType{} type fastReflection_EventExternalWalletLinked_messageType struct{} func (x fastReflection_EventExternalWalletLinked_messageType) Zero() protoreflect.Message { return (*fastReflection_EventExternalWalletLinked)(nil) } func (x fastReflection_EventExternalWalletLinked_messageType) New() protoreflect.Message { return new(fastReflection_EventExternalWalletLinked) } func (x fastReflection_EventExternalWalletLinked_messageType) Descriptor() protoreflect.MessageDescriptor { return md_EventExternalWalletLinked } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. func (x *fastReflection_EventExternalWalletLinked) Descriptor() protoreflect.MessageDescriptor { return md_EventExternalWalletLinked } // 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_EventExternalWalletLinked) Type() protoreflect.MessageType { return _fastReflection_EventExternalWalletLinked_messageType } // New returns a newly allocated and mutable empty message. func (x *fastReflection_EventExternalWalletLinked) New() protoreflect.Message { return new(fastReflection_EventExternalWalletLinked) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. func (x *fastReflection_EventExternalWalletLinked) Interface() protoreflect.ProtoMessage { return (*EventExternalWalletLinked)(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_EventExternalWalletLinked) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Did != "" { value := protoreflect.ValueOfString(x.Did) if !f(fd_EventExternalWalletLinked_did, value) { return } } if x.WalletType != "" { value := protoreflect.ValueOfString(x.WalletType) if !f(fd_EventExternalWalletLinked_wallet_type, value) { return } } if x.WalletAddress != "" { value := protoreflect.ValueOfString(x.WalletAddress) if !f(fd_EventExternalWalletLinked_wallet_address, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) if !f(fd_EventExternalWalletLinked_block_height, 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_EventExternalWalletLinked) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "did.v1.EventExternalWalletLinked.did": return x.Did != "" case "did.v1.EventExternalWalletLinked.wallet_type": return x.WalletType != "" case "did.v1.EventExternalWalletLinked.wallet_address": return x.WalletAddress != "" case "did.v1.EventExternalWalletLinked.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventExternalWalletLinked")) } panic(fmt.Errorf("message did.v1.EventExternalWalletLinked 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_EventExternalWalletLinked) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "did.v1.EventExternalWalletLinked.did": x.Did = "" case "did.v1.EventExternalWalletLinked.wallet_type": x.WalletType = "" case "did.v1.EventExternalWalletLinked.wallet_address": x.WalletAddress = "" case "did.v1.EventExternalWalletLinked.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventExternalWalletLinked")) } panic(fmt.Errorf("message did.v1.EventExternalWalletLinked 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_EventExternalWalletLinked) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { case "did.v1.EventExternalWalletLinked.did": value := x.Did return protoreflect.ValueOfString(value) case "did.v1.EventExternalWalletLinked.wallet_type": value := x.WalletType return protoreflect.ValueOfString(value) case "did.v1.EventExternalWalletLinked.wallet_address": value := x.WalletAddress return protoreflect.ValueOfString(value) case "did.v1.EventExternalWalletLinked.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventExternalWalletLinked")) } panic(fmt.Errorf("message did.v1.EventExternalWalletLinked 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_EventExternalWalletLinked) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "did.v1.EventExternalWalletLinked.did": x.Did = value.Interface().(string) case "did.v1.EventExternalWalletLinked.wallet_type": x.WalletType = value.Interface().(string) case "did.v1.EventExternalWalletLinked.wallet_address": x.WalletAddress = value.Interface().(string) case "did.v1.EventExternalWalletLinked.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventExternalWalletLinked")) } panic(fmt.Errorf("message did.v1.EventExternalWalletLinked 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_EventExternalWalletLinked) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventExternalWalletLinked.did": panic(fmt.Errorf("field did of message did.v1.EventExternalWalletLinked is not mutable")) case "did.v1.EventExternalWalletLinked.wallet_type": panic(fmt.Errorf("field wallet_type of message did.v1.EventExternalWalletLinked is not mutable")) case "did.v1.EventExternalWalletLinked.wallet_address": panic(fmt.Errorf("field wallet_address of message did.v1.EventExternalWalletLinked is not mutable")) case "did.v1.EventExternalWalletLinked.block_height": panic(fmt.Errorf("field block_height of message did.v1.EventExternalWalletLinked is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventExternalWalletLinked")) } panic(fmt.Errorf("message did.v1.EventExternalWalletLinked 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_EventExternalWalletLinked) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "did.v1.EventExternalWalletLinked.did": return protoreflect.ValueOfString("") case "did.v1.EventExternalWalletLinked.wallet_type": return protoreflect.ValueOfString("") case "did.v1.EventExternalWalletLinked.wallet_address": return protoreflect.ValueOfString("") case "did.v1.EventExternalWalletLinked.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: did.v1.EventExternalWalletLinked")) } panic(fmt.Errorf("message did.v1.EventExternalWalletLinked 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_EventExternalWalletLinked) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: panic(fmt.Errorf("%s is not a oneof field in did.v1.EventExternalWalletLinked", 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_EventExternalWalletLinked) 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_EventExternalWalletLinked) 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_EventExternalWalletLinked) 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_EventExternalWalletLinked) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { x := input.Message.Interface().(*EventExternalWalletLinked) 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.Did) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.WalletType) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } l = len(x.WalletAddress) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.BlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.BlockHeight)) } 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().(*EventExternalWalletLinked) 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.BlockHeight != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- dAtA[i] = 0x20 } if len(x.WalletAddress) > 0 { i -= len(x.WalletAddress) copy(dAtA[i:], x.WalletAddress) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WalletAddress))) i-- dAtA[i] = 0x1a } if len(x.WalletType) > 0 { i -= len(x.WalletType) copy(dAtA[i:], x.WalletType) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WalletType))) i-- dAtA[i] = 0x12 } if len(x.Did) > 0 { i -= len(x.Did) copy(dAtA[i:], x.Did) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Did))) 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().(*EventExternalWalletLinked) 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: EventExternalWalletLinked: wiretype end group for non-group") } if fieldNum <= 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventExternalWalletLinked: 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 Did", 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.Did = 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 WalletType", 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.WalletType = 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 WalletAddress", 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.WalletAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } x.BlockHeight = 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.BlockHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) if err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if (iNdEx + skippy) > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if !options.DiscardUnknown { x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) } iNdEx += skippy } } if iNdEx > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil } return &protoiface.Methods{ NoUnkeyedLiterals: struct{}{}, Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, Size: size, Marshal: marshal, Unmarshal: unmarshal, Merge: nil, CheckInitialized: nil, } } // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 // protoc (unknown) // source: did/v1/events.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) ) // EventDIDCreated is emitted when a new DID is created type EventDIDCreated struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // DID identifier Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` // Creator address Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // Public keys added PublicKeys []string `protobuf:"bytes,3,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` // Services added Services []string `protobuf:"bytes,4,rep,name=services,proto3" json:"services,omitempty"` // Creation timestamp CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Block height BlockHeight uint64 `protobuf:"varint,6,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (x *EventDIDCreated) Reset() { *x = EventDIDCreated{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_events_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *EventDIDCreated) String() string { return protoimpl.X.MessageStringOf(x) } func (*EventDIDCreated) ProtoMessage() {} // Deprecated: Use EventDIDCreated.ProtoReflect.Descriptor instead. func (*EventDIDCreated) Descriptor() ([]byte, []int) { return file_did_v1_events_proto_rawDescGZIP(), []int{0} } func (x *EventDIDCreated) GetDid() string { if x != nil { return x.Did } return "" } func (x *EventDIDCreated) GetCreator() string { if x != nil { return x.Creator } return "" } func (x *EventDIDCreated) GetPublicKeys() []string { if x != nil { return x.PublicKeys } return nil } func (x *EventDIDCreated) GetServices() []string { if x != nil { return x.Services } return nil } func (x *EventDIDCreated) GetCreatedAt() *timestamppb.Timestamp { if x != nil { return x.CreatedAt } return nil } func (x *EventDIDCreated) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } return 0 } // EventDIDUpdated is emitted when a DID is updated type EventDIDUpdated struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // DID identifier Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` // Updater address Updater string `protobuf:"bytes,2,opt,name=updater,proto3" json:"updater,omitempty"` // Fields that were updated FieldsUpdated []string `protobuf:"bytes,3,rep,name=fields_updated,json=fieldsUpdated,proto3" json:"fields_updated,omitempty"` // Update timestamp UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Block height BlockHeight uint64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (x *EventDIDUpdated) Reset() { *x = EventDIDUpdated{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_events_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *EventDIDUpdated) String() string { return protoimpl.X.MessageStringOf(x) } func (*EventDIDUpdated) ProtoMessage() {} // Deprecated: Use EventDIDUpdated.ProtoReflect.Descriptor instead. func (*EventDIDUpdated) Descriptor() ([]byte, []int) { return file_did_v1_events_proto_rawDescGZIP(), []int{1} } func (x *EventDIDUpdated) GetDid() string { if x != nil { return x.Did } return "" } func (x *EventDIDUpdated) GetUpdater() string { if x != nil { return x.Updater } return "" } func (x *EventDIDUpdated) GetFieldsUpdated() []string { if x != nil { return x.FieldsUpdated } return nil } func (x *EventDIDUpdated) GetUpdatedAt() *timestamppb.Timestamp { if x != nil { return x.UpdatedAt } return nil } func (x *EventDIDUpdated) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } return 0 } // EventDIDDeactivated is emitted when a DID is deactivated type EventDIDDeactivated struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // DID identifier Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` // Deactivator address Deactivator string `protobuf:"bytes,2,opt,name=deactivator,proto3" json:"deactivator,omitempty"` // Deactivation timestamp DeactivatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=deactivated_at,json=deactivatedAt,proto3" json:"deactivated_at,omitempty"` // Block height BlockHeight uint64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (x *EventDIDDeactivated) Reset() { *x = EventDIDDeactivated{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_events_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *EventDIDDeactivated) String() string { return protoimpl.X.MessageStringOf(x) } func (*EventDIDDeactivated) ProtoMessage() {} // Deprecated: Use EventDIDDeactivated.ProtoReflect.Descriptor instead. func (*EventDIDDeactivated) Descriptor() ([]byte, []int) { return file_did_v1_events_proto_rawDescGZIP(), []int{2} } func (x *EventDIDDeactivated) GetDid() string { if x != nil { return x.Did } return "" } func (x *EventDIDDeactivated) GetDeactivator() string { if x != nil { return x.Deactivator } return "" } func (x *EventDIDDeactivated) GetDeactivatedAt() *timestamppb.Timestamp { if x != nil { return x.DeactivatedAt } return nil } func (x *EventDIDDeactivated) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } return 0 } // EventVerificationMethodAdded is emitted when a verification method is added type EventVerificationMethodAdded struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // DID identifier Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` // Method ID MethodId string `protobuf:"bytes,2,opt,name=method_id,json=methodId,proto3" json:"method_id,omitempty"` // Key type KeyType string `protobuf:"bytes,3,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"` // Public key (encoded) PublicKey string `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Block height BlockHeight uint64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (x *EventVerificationMethodAdded) Reset() { *x = EventVerificationMethodAdded{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_events_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *EventVerificationMethodAdded) String() string { return protoimpl.X.MessageStringOf(x) } func (*EventVerificationMethodAdded) ProtoMessage() {} // Deprecated: Use EventVerificationMethodAdded.ProtoReflect.Descriptor instead. func (*EventVerificationMethodAdded) Descriptor() ([]byte, []int) { return file_did_v1_events_proto_rawDescGZIP(), []int{3} } func (x *EventVerificationMethodAdded) GetDid() string { if x != nil { return x.Did } return "" } func (x *EventVerificationMethodAdded) GetMethodId() string { if x != nil { return x.MethodId } return "" } func (x *EventVerificationMethodAdded) GetKeyType() string { if x != nil { return x.KeyType } return "" } func (x *EventVerificationMethodAdded) GetPublicKey() string { if x != nil { return x.PublicKey } return "" } func (x *EventVerificationMethodAdded) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } return 0 } // EventVerificationMethodRemoved is emitted when a verification method is removed type EventVerificationMethodRemoved struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // DID identifier Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` // Method ID MethodId string `protobuf:"bytes,2,opt,name=method_id,json=methodId,proto3" json:"method_id,omitempty"` // Block height BlockHeight uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (x *EventVerificationMethodRemoved) Reset() { *x = EventVerificationMethodRemoved{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_events_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *EventVerificationMethodRemoved) String() string { return protoimpl.X.MessageStringOf(x) } func (*EventVerificationMethodRemoved) ProtoMessage() {} // Deprecated: Use EventVerificationMethodRemoved.ProtoReflect.Descriptor instead. func (*EventVerificationMethodRemoved) Descriptor() ([]byte, []int) { return file_did_v1_events_proto_rawDescGZIP(), []int{4} } func (x *EventVerificationMethodRemoved) GetDid() string { if x != nil { return x.Did } return "" } func (x *EventVerificationMethodRemoved) GetMethodId() string { if x != nil { return x.MethodId } return "" } func (x *EventVerificationMethodRemoved) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } return 0 } // EventServiceAdded is emitted when a service is added to a DID type EventServiceAdded struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // DID identifier Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` // Service ID ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // Service type Type_ string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // Service endpoint Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // Block height BlockHeight uint64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (x *EventServiceAdded) Reset() { *x = EventServiceAdded{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_events_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *EventServiceAdded) String() string { return protoimpl.X.MessageStringOf(x) } func (*EventServiceAdded) ProtoMessage() {} // Deprecated: Use EventServiceAdded.ProtoReflect.Descriptor instead. func (*EventServiceAdded) Descriptor() ([]byte, []int) { return file_did_v1_events_proto_rawDescGZIP(), []int{5} } func (x *EventServiceAdded) GetDid() string { if x != nil { return x.Did } return "" } func (x *EventServiceAdded) GetServiceId() string { if x != nil { return x.ServiceId } return "" } func (x *EventServiceAdded) GetType_() string { if x != nil { return x.Type_ } return "" } func (x *EventServiceAdded) GetEndpoint() string { if x != nil { return x.Endpoint } return "" } func (x *EventServiceAdded) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } return 0 } // EventServiceRemoved is emitted when a service is removed from a DID type EventServiceRemoved struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // DID identifier Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` // Service ID ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // Block height BlockHeight uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (x *EventServiceRemoved) Reset() { *x = EventServiceRemoved{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_events_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *EventServiceRemoved) String() string { return protoimpl.X.MessageStringOf(x) } func (*EventServiceRemoved) ProtoMessage() {} // Deprecated: Use EventServiceRemoved.ProtoReflect.Descriptor instead. func (*EventServiceRemoved) Descriptor() ([]byte, []int) { return file_did_v1_events_proto_rawDescGZIP(), []int{6} } func (x *EventServiceRemoved) GetDid() string { if x != nil { return x.Did } return "" } func (x *EventServiceRemoved) GetServiceId() string { if x != nil { return x.ServiceId } return "" } func (x *EventServiceRemoved) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } return 0 } // EventCredentialIssued is emitted when a verifiable credential is issued type EventCredentialIssued struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Credential ID CredentialId string `protobuf:"bytes,1,opt,name=credential_id,json=credentialId,proto3" json:"credential_id,omitempty"` // Issuer DID Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` // Subject DID Subject string `protobuf:"bytes,3,opt,name=subject,proto3" json:"subject,omitempty"` // Credential type Type_ string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // Issuance timestamp IssuedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"` // Block height BlockHeight uint64 `protobuf:"varint,6,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (x *EventCredentialIssued) Reset() { *x = EventCredentialIssued{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_events_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *EventCredentialIssued) String() string { return protoimpl.X.MessageStringOf(x) } func (*EventCredentialIssued) ProtoMessage() {} // Deprecated: Use EventCredentialIssued.ProtoReflect.Descriptor instead. func (*EventCredentialIssued) Descriptor() ([]byte, []int) { return file_did_v1_events_proto_rawDescGZIP(), []int{7} } func (x *EventCredentialIssued) GetCredentialId() string { if x != nil { return x.CredentialId } return "" } func (x *EventCredentialIssued) GetIssuer() string { if x != nil { return x.Issuer } return "" } func (x *EventCredentialIssued) GetSubject() string { if x != nil { return x.Subject } return "" } func (x *EventCredentialIssued) GetType_() string { if x != nil { return x.Type_ } return "" } func (x *EventCredentialIssued) GetIssuedAt() *timestamppb.Timestamp { if x != nil { return x.IssuedAt } return nil } func (x *EventCredentialIssued) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } return 0 } // EventCredentialRevoked is emitted when a credential is revoked type EventCredentialRevoked struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Credential ID CredentialId string `protobuf:"bytes,1,opt,name=credential_id,json=credentialId,proto3" json:"credential_id,omitempty"` // Revoker DID Revoker string `protobuf:"bytes,2,opt,name=revoker,proto3" json:"revoker,omitempty"` // Revocation reason Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` // Revocation timestamp RevokedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"` // Block height BlockHeight uint64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (x *EventCredentialRevoked) Reset() { *x = EventCredentialRevoked{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_events_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *EventCredentialRevoked) String() string { return protoimpl.X.MessageStringOf(x) } func (*EventCredentialRevoked) ProtoMessage() {} // Deprecated: Use EventCredentialRevoked.ProtoReflect.Descriptor instead. func (*EventCredentialRevoked) Descriptor() ([]byte, []int) { return file_did_v1_events_proto_rawDescGZIP(), []int{8} } func (x *EventCredentialRevoked) GetCredentialId() string { if x != nil { return x.CredentialId } return "" } func (x *EventCredentialRevoked) GetRevoker() string { if x != nil { return x.Revoker } return "" } func (x *EventCredentialRevoked) GetReason() string { if x != nil { return x.Reason } return "" } func (x *EventCredentialRevoked) GetRevokedAt() *timestamppb.Timestamp { if x != nil { return x.RevokedAt } return nil } func (x *EventCredentialRevoked) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } return 0 } // EventWebAuthnRegistered is emitted when a WebAuthn credential is registered type EventWebAuthnRegistered struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // DID identifier Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` // WebAuthn credential ID CredentialId string `protobuf:"bytes,2,opt,name=credential_id,json=credentialId,proto3" json:"credential_id,omitempty"` // Attestation type AttestationType string `protobuf:"bytes,3,opt,name=attestation_type,json=attestationType,proto3" json:"attestation_type,omitempty"` // Block height BlockHeight uint64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (x *EventWebAuthnRegistered) Reset() { *x = EventWebAuthnRegistered{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_events_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *EventWebAuthnRegistered) String() string { return protoimpl.X.MessageStringOf(x) } func (*EventWebAuthnRegistered) ProtoMessage() {} // Deprecated: Use EventWebAuthnRegistered.ProtoReflect.Descriptor instead. func (*EventWebAuthnRegistered) Descriptor() ([]byte, []int) { return file_did_v1_events_proto_rawDescGZIP(), []int{9} } func (x *EventWebAuthnRegistered) GetDid() string { if x != nil { return x.Did } return "" } func (x *EventWebAuthnRegistered) GetCredentialId() string { if x != nil { return x.CredentialId } return "" } func (x *EventWebAuthnRegistered) GetAttestationType() string { if x != nil { return x.AttestationType } return "" } func (x *EventWebAuthnRegistered) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } return 0 } // EventExternalWalletLinked is emitted when an external wallet is linked type EventExternalWalletLinked struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // DID identifier Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` // Wallet type (ethereum, bitcoin, etc.) WalletType string `protobuf:"bytes,2,opt,name=wallet_type,json=walletType,proto3" json:"wallet_type,omitempty"` // Wallet address WalletAddress string `protobuf:"bytes,3,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` // Block height BlockHeight uint64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (x *EventExternalWalletLinked) Reset() { *x = EventExternalWalletLinked{} if protoimpl.UnsafeEnabled { mi := &file_did_v1_events_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *EventExternalWalletLinked) String() string { return protoimpl.X.MessageStringOf(x) } func (*EventExternalWalletLinked) ProtoMessage() {} // Deprecated: Use EventExternalWalletLinked.ProtoReflect.Descriptor instead. func (*EventExternalWalletLinked) Descriptor() ([]byte, []int) { return file_did_v1_events_proto_rawDescGZIP(), []int{10} } func (x *EventExternalWalletLinked) GetDid() string { if x != nil { return x.Did } return "" } func (x *EventExternalWalletLinked) GetWalletType() string { if x != nil { return x.WalletType } return "" } func (x *EventExternalWalletLinked) GetWalletAddress() string { if x != nil { return x.WalletAddress } return "" } func (x *EventExternalWalletLinked) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } return 0 } var File_did_v1_events_proto protoreflect.FileDescriptor var file_did_v1_events_proto_rawDesc = []byte{ 0x0a, 0x13, 0x64, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 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, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe2, 0x01, 0x0a, 0x0f, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x49, 0x44, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xcc, 0x01, 0x0a, 0x0f, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x49, 0x44, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x43, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xb9, 0x01, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x44, 0x49, 0x44, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x4b, 0x0a, 0x0e, 0x64, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x0d, 0x64, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xaa, 0x01, 0x0a, 0x1c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x72, 0x0a, 0x1e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x97, 0x01, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x69, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xe8, 0x01, 0x0a, 0x15, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x49, 0x73, 0x73, 0x75, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x08, 0x69, 0x73, 0x73, 0x75, 0x65, 0x64, 0x41, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xd7, 0x01, 0x0a, 0x16, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x43, 0x0a, 0x0a, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x08, 0xc8, 0xde, 0x1f, 0x00, 0x90, 0xdf, 0x1f, 0x01, 0x52, 0x09, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x41, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x9e, 0x01, 0x0a, 0x17, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x57, 0x65, 0x62, 0x41, 0x75, 0x74, 0x68, 0x6e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x98, 0x01, 0x0a, 0x19, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x7c, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 0x2d, 0x69, 0x6f, 0x2f, 0x73, 0x6f, 0x6e, 0x72, 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_events_proto_rawDescOnce sync.Once file_did_v1_events_proto_rawDescData = file_did_v1_events_proto_rawDesc ) func file_did_v1_events_proto_rawDescGZIP() []byte { file_did_v1_events_proto_rawDescOnce.Do(func() { file_did_v1_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_did_v1_events_proto_rawDescData) }) return file_did_v1_events_proto_rawDescData } var file_did_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_did_v1_events_proto_goTypes = []interface{}{ (*EventDIDCreated)(nil), // 0: did.v1.EventDIDCreated (*EventDIDUpdated)(nil), // 1: did.v1.EventDIDUpdated (*EventDIDDeactivated)(nil), // 2: did.v1.EventDIDDeactivated (*EventVerificationMethodAdded)(nil), // 3: did.v1.EventVerificationMethodAdded (*EventVerificationMethodRemoved)(nil), // 4: did.v1.EventVerificationMethodRemoved (*EventServiceAdded)(nil), // 5: did.v1.EventServiceAdded (*EventServiceRemoved)(nil), // 6: did.v1.EventServiceRemoved (*EventCredentialIssued)(nil), // 7: did.v1.EventCredentialIssued (*EventCredentialRevoked)(nil), // 8: did.v1.EventCredentialRevoked (*EventWebAuthnRegistered)(nil), // 9: did.v1.EventWebAuthnRegistered (*EventExternalWalletLinked)(nil), // 10: did.v1.EventExternalWalletLinked (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp } var file_did_v1_events_proto_depIdxs = []int32{ 11, // 0: did.v1.EventDIDCreated.created_at:type_name -> google.protobuf.Timestamp 11, // 1: did.v1.EventDIDUpdated.updated_at:type_name -> google.protobuf.Timestamp 11, // 2: did.v1.EventDIDDeactivated.deactivated_at:type_name -> google.protobuf.Timestamp 11, // 3: did.v1.EventCredentialIssued.issued_at:type_name -> google.protobuf.Timestamp 11, // 4: did.v1.EventCredentialRevoked.revoked_at:type_name -> google.protobuf.Timestamp 5, // [5:5] is the sub-list for method output_type 5, // [5:5] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension extendee 0, // [0:5] is the sub-list for field type_name } func init() { file_did_v1_events_proto_init() } func file_did_v1_events_proto_init() { if File_did_v1_events_proto != nil { return } if !protoimpl.UnsafeEnabled { file_did_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventDIDCreated); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventDIDUpdated); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventDIDDeactivated); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_events_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventVerificationMethodAdded); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_events_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventVerificationMethodRemoved); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_events_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventServiceAdded); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_events_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventServiceRemoved); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_events_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventCredentialIssued); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_events_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventCredentialRevoked); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_events_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventWebAuthnRegistered); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_did_v1_events_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventExternalWalletLinked); 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_events_proto_rawDesc, NumEnums: 0, NumMessages: 11, NumExtensions: 0, NumServices: 0, }, GoTypes: file_did_v1_events_proto_goTypes, DependencyIndexes: file_did_v1_events_proto_depIdxs, MessageInfos: file_did_v1_events_proto_msgTypes, }.Build() File_did_v1_events_proto = out.File file_did_v1_events_proto_rawDesc = nil file_did_v1_events_proto_goTypes = nil file_did_v1_events_proto_depIdxs = nil }