diff --git a/api/regen/data/v1/events.pulsar.go b/api/regen/data/v1/events.pulsar.go new file mode 100644 index 0000000000..d018c1adad --- /dev/null +++ b/api/regen/data/v1/events.pulsar.go @@ -0,0 +1,1648 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package datav1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_EventAnchorData protoreflect.MessageDescriptor + fd_EventAnchorData_iri protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_events_proto_init() + md_EventAnchorData = File_regen_data_v1_events_proto.Messages().ByName("EventAnchorData") + fd_EventAnchorData_iri = md_EventAnchorData.Fields().ByName("iri") +} + +var _ protoreflect.Message = (*fastReflection_EventAnchorData)(nil) + +type fastReflection_EventAnchorData EventAnchorData + +func (x *EventAnchorData) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventAnchorData)(x) +} + +func (x *EventAnchorData) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_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_EventAnchorData_messageType fastReflection_EventAnchorData_messageType +var _ protoreflect.MessageType = fastReflection_EventAnchorData_messageType{} + +type fastReflection_EventAnchorData_messageType struct{} + +func (x fastReflection_EventAnchorData_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventAnchorData)(nil) +} +func (x fastReflection_EventAnchorData_messageType) New() protoreflect.Message { + return new(fastReflection_EventAnchorData) +} +func (x fastReflection_EventAnchorData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventAnchorData +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventAnchorData) Descriptor() protoreflect.MessageDescriptor { + return md_EventAnchorData +} + +// 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_EventAnchorData) Type() protoreflect.MessageType { + return _fastReflection_EventAnchorData_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventAnchorData) New() protoreflect.Message { + return new(fastReflection_EventAnchorData) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventAnchorData) Interface() protoreflect.ProtoMessage { + return (*EventAnchorData)(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_EventAnchorData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Iri != "" { + value := protoreflect.ValueOfString(x.Iri) + if !f(fd_EventAnchorData_iri, 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_EventAnchorData) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.EventAnchorData.iri": + return x.Iri != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventAnchorData")) + } + panic(fmt.Errorf("message regen.data.v1.EventAnchorData 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_EventAnchorData) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.EventAnchorData.iri": + x.Iri = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventAnchorData")) + } + panic(fmt.Errorf("message regen.data.v1.EventAnchorData 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_EventAnchorData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.EventAnchorData.iri": + value := x.Iri + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventAnchorData")) + } + panic(fmt.Errorf("message regen.data.v1.EventAnchorData 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_EventAnchorData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.EventAnchorData.iri": + x.Iri = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventAnchorData")) + } + panic(fmt.Errorf("message regen.data.v1.EventAnchorData 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_EventAnchorData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.EventAnchorData.iri": + panic(fmt.Errorf("field iri of message regen.data.v1.EventAnchorData is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventAnchorData")) + } + panic(fmt.Errorf("message regen.data.v1.EventAnchorData 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_EventAnchorData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.EventAnchorData.iri": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventAnchorData")) + } + panic(fmt.Errorf("message regen.data.v1.EventAnchorData 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_EventAnchorData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.EventAnchorData", 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_EventAnchorData) 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_EventAnchorData) 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_EventAnchorData) 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_EventAnchorData) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventAnchorData) + 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.Iri) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*EventAnchorData) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Iri) > 0 { + i -= len(x.Iri) + copy(dAtA[i:], x.Iri) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Iri))) + 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().(*EventAnchorData) + 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: EventAnchorData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventAnchorData: 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 Iri", 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.Iri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_EventSignData_2_list)(nil) + +type _EventSignData_2_list struct { + list *[]string +} + +func (x *_EventSignData_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_EventSignData_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_EventSignData_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_EventSignData_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_EventSignData_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message EventSignData at list field Signers as it is not of Message kind")) +} + +func (x *_EventSignData_2_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_EventSignData_2_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_EventSignData_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_EventSignData protoreflect.MessageDescriptor + fd_EventSignData_iri protoreflect.FieldDescriptor + fd_EventSignData_signers protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_events_proto_init() + md_EventSignData = File_regen_data_v1_events_proto.Messages().ByName("EventSignData") + fd_EventSignData_iri = md_EventSignData.Fields().ByName("iri") + fd_EventSignData_signers = md_EventSignData.Fields().ByName("signers") +} + +var _ protoreflect.Message = (*fastReflection_EventSignData)(nil) + +type fastReflection_EventSignData EventSignData + +func (x *EventSignData) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventSignData)(x) +} + +func (x *EventSignData) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_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_EventSignData_messageType fastReflection_EventSignData_messageType +var _ protoreflect.MessageType = fastReflection_EventSignData_messageType{} + +type fastReflection_EventSignData_messageType struct{} + +func (x fastReflection_EventSignData_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventSignData)(nil) +} +func (x fastReflection_EventSignData_messageType) New() protoreflect.Message { + return new(fastReflection_EventSignData) +} +func (x fastReflection_EventSignData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventSignData +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventSignData) Descriptor() protoreflect.MessageDescriptor { + return md_EventSignData +} + +// 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_EventSignData) Type() protoreflect.MessageType { + return _fastReflection_EventSignData_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventSignData) New() protoreflect.Message { + return new(fastReflection_EventSignData) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventSignData) Interface() protoreflect.ProtoMessage { + return (*EventSignData)(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_EventSignData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Iri != "" { + value := protoreflect.ValueOfString(x.Iri) + if !f(fd_EventSignData_iri, value) { + return + } + } + if len(x.Signers) != 0 { + value := protoreflect.ValueOfList(&_EventSignData_2_list{list: &x.Signers}) + if !f(fd_EventSignData_signers, 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_EventSignData) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.EventSignData.iri": + return x.Iri != "" + case "regen.data.v1.EventSignData.signers": + return len(x.Signers) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventSignData")) + } + panic(fmt.Errorf("message regen.data.v1.EventSignData 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_EventSignData) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.EventSignData.iri": + x.Iri = "" + case "regen.data.v1.EventSignData.signers": + x.Signers = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventSignData")) + } + panic(fmt.Errorf("message regen.data.v1.EventSignData 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_EventSignData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.EventSignData.iri": + value := x.Iri + return protoreflect.ValueOfString(value) + case "regen.data.v1.EventSignData.signers": + if len(x.Signers) == 0 { + return protoreflect.ValueOfList(&_EventSignData_2_list{}) + } + listValue := &_EventSignData_2_list{list: &x.Signers} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventSignData")) + } + panic(fmt.Errorf("message regen.data.v1.EventSignData 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_EventSignData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.EventSignData.iri": + x.Iri = value.Interface().(string) + case "regen.data.v1.EventSignData.signers": + lv := value.List() + clv := lv.(*_EventSignData_2_list) + x.Signers = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventSignData")) + } + panic(fmt.Errorf("message regen.data.v1.EventSignData 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_EventSignData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.EventSignData.signers": + if x.Signers == nil { + x.Signers = []string{} + } + value := &_EventSignData_2_list{list: &x.Signers} + return protoreflect.ValueOfList(value) + case "regen.data.v1.EventSignData.iri": + panic(fmt.Errorf("field iri of message regen.data.v1.EventSignData is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventSignData")) + } + panic(fmt.Errorf("message regen.data.v1.EventSignData 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_EventSignData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.EventSignData.iri": + return protoreflect.ValueOfString("") + case "regen.data.v1.EventSignData.signers": + list := []string{} + return protoreflect.ValueOfList(&_EventSignData_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventSignData")) + } + panic(fmt.Errorf("message regen.data.v1.EventSignData 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_EventSignData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.EventSignData", 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_EventSignData) 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_EventSignData) 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_EventSignData) 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_EventSignData) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventSignData) + 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.Iri) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Signers) > 0 { + for _, s := range x.Signers { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*EventSignData) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Signers) > 0 { + for iNdEx := len(x.Signers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Signers[iNdEx]) + copy(dAtA[i:], x.Signers[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signers[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(x.Iri) > 0 { + i -= len(x.Iri) + copy(dAtA[i:], x.Iri) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Iri))) + 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().(*EventSignData) + 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: EventSignData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventSignData: 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 Iri", 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.Iri = 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 Signers", 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.Signers = append(x.Signers, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_EventStoreRawData protoreflect.MessageDescriptor + fd_EventStoreRawData_iri protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_events_proto_init() + md_EventStoreRawData = File_regen_data_v1_events_proto.Messages().ByName("EventStoreRawData") + fd_EventStoreRawData_iri = md_EventStoreRawData.Fields().ByName("iri") +} + +var _ protoreflect.Message = (*fastReflection_EventStoreRawData)(nil) + +type fastReflection_EventStoreRawData EventStoreRawData + +func (x *EventStoreRawData) ProtoReflect() protoreflect.Message { + return (*fastReflection_EventStoreRawData)(x) +} + +func (x *EventStoreRawData) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_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_EventStoreRawData_messageType fastReflection_EventStoreRawData_messageType +var _ protoreflect.MessageType = fastReflection_EventStoreRawData_messageType{} + +type fastReflection_EventStoreRawData_messageType struct{} + +func (x fastReflection_EventStoreRawData_messageType) Zero() protoreflect.Message { + return (*fastReflection_EventStoreRawData)(nil) +} +func (x fastReflection_EventStoreRawData_messageType) New() protoreflect.Message { + return new(fastReflection_EventStoreRawData) +} +func (x fastReflection_EventStoreRawData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EventStoreRawData +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EventStoreRawData) Descriptor() protoreflect.MessageDescriptor { + return md_EventStoreRawData +} + +// 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_EventStoreRawData) Type() protoreflect.MessageType { + return _fastReflection_EventStoreRawData_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EventStoreRawData) New() protoreflect.Message { + return new(fastReflection_EventStoreRawData) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EventStoreRawData) Interface() protoreflect.ProtoMessage { + return (*EventStoreRawData)(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_EventStoreRawData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Iri != "" { + value := protoreflect.ValueOfString(x.Iri) + if !f(fd_EventStoreRawData_iri, 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_EventStoreRawData) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.EventStoreRawData.iri": + return x.Iri != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventStoreRawData")) + } + panic(fmt.Errorf("message regen.data.v1.EventStoreRawData 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_EventStoreRawData) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.EventStoreRawData.iri": + x.Iri = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventStoreRawData")) + } + panic(fmt.Errorf("message regen.data.v1.EventStoreRawData 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_EventStoreRawData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.EventStoreRawData.iri": + value := x.Iri + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventStoreRawData")) + } + panic(fmt.Errorf("message regen.data.v1.EventStoreRawData 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_EventStoreRawData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.EventStoreRawData.iri": + x.Iri = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventStoreRawData")) + } + panic(fmt.Errorf("message regen.data.v1.EventStoreRawData 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_EventStoreRawData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.EventStoreRawData.iri": + panic(fmt.Errorf("field iri of message regen.data.v1.EventStoreRawData is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventStoreRawData")) + } + panic(fmt.Errorf("message regen.data.v1.EventStoreRawData 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_EventStoreRawData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.EventStoreRawData.iri": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.EventStoreRawData")) + } + panic(fmt.Errorf("message regen.data.v1.EventStoreRawData 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_EventStoreRawData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.EventStoreRawData", 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_EventStoreRawData) 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_EventStoreRawData) 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_EventStoreRawData) 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_EventStoreRawData) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EventStoreRawData) + 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.Iri) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*EventStoreRawData) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Iri) > 0 { + i -= len(x.Iri) + copy(dAtA[i:], x.Iri) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Iri))) + 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().(*EventStoreRawData) + 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: EventStoreRawData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EventStoreRawData: 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 Iri", 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.Iri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc v3.19.1 +// source: regen/data/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) +) + +// EventAnchorData is an event emitted when data is anchored on-chain. +type EventAnchorData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // iri is the data IRI + Iri string `protobuf:"bytes,1,opt,name=iri,proto3" json:"iri,omitempty"` +} + +func (x *EventAnchorData) Reset() { + *x = EventAnchorData{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_events_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventAnchorData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventAnchorData) ProtoMessage() {} + +// Deprecated: Use EventAnchorData.ProtoReflect.Descriptor instead. +func (*EventAnchorData) Descriptor() ([]byte, []int) { + return file_regen_data_v1_events_proto_rawDescGZIP(), []int{0} +} + +func (x *EventAnchorData) GetIri() string { + if x != nil { + return x.Iri + } + return "" +} + +// EventSignData is an event emitted when data is signed on-chain. +type EventSignData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // iri is the data IRI + Iri string `protobuf:"bytes,1,opt,name=iri,proto3" json:"iri,omitempty"` + // signers are the addresses of the accounts which have signed the data. + Signers []string `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"` +} + +func (x *EventSignData) Reset() { + *x = EventSignData{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_events_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventSignData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventSignData) ProtoMessage() {} + +// Deprecated: Use EventSignData.ProtoReflect.Descriptor instead. +func (*EventSignData) Descriptor() ([]byte, []int) { + return file_regen_data_v1_events_proto_rawDescGZIP(), []int{1} +} + +func (x *EventSignData) GetIri() string { + if x != nil { + return x.Iri + } + return "" +} + +func (x *EventSignData) GetSigners() []string { + if x != nil { + return x.Signers + } + return nil +} + +// EventStoreRawData is an event emitted when data is stored on-chain. +type EventStoreRawData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // iri is the data IRI + Iri string `protobuf:"bytes,1,opt,name=iri,proto3" json:"iri,omitempty"` +} + +func (x *EventStoreRawData) Reset() { + *x = EventStoreRawData{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_events_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventStoreRawData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventStoreRawData) ProtoMessage() {} + +// Deprecated: Use EventStoreRawData.ProtoReflect.Descriptor instead. +func (*EventStoreRawData) Descriptor() ([]byte, []int) { + return file_regen_data_v1_events_proto_rawDescGZIP(), []int{2} +} + +func (x *EventStoreRawData) GetIri() string { + if x != nil { + return x.Iri + } + return "" +} + +var File_regen_data_v1_events_proto protoreflect.FileDescriptor + +var file_regen_data_v1_events_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x22, 0x23, 0x0a, 0x0f, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, + 0x0a, 0x03, 0x69, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x72, 0x69, + 0x22, 0x3b, 0x0a, 0x0d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x69, 0x72, 0x69, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x22, 0x25, 0x0a, + 0x11, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x61, 0x77, 0x44, 0x61, + 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x69, 0x72, 0x69, 0x42, 0xb6, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, + 0x76, 0x31, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, 0xaa, + 0x02, 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0xe2, + 0x02, 0x19, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x52, 0x65, + 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_regen_data_v1_events_proto_rawDescOnce sync.Once + file_regen_data_v1_events_proto_rawDescData = file_regen_data_v1_events_proto_rawDesc +) + +func file_regen_data_v1_events_proto_rawDescGZIP() []byte { + file_regen_data_v1_events_proto_rawDescOnce.Do(func() { + file_regen_data_v1_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_regen_data_v1_events_proto_rawDescData) + }) + return file_regen_data_v1_events_proto_rawDescData +} + +var file_regen_data_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_regen_data_v1_events_proto_goTypes = []interface{}{ + (*EventAnchorData)(nil), // 0: regen.data.v1.EventAnchorData + (*EventSignData)(nil), // 1: regen.data.v1.EventSignData + (*EventStoreRawData)(nil), // 2: regen.data.v1.EventStoreRawData +} +var file_regen_data_v1_events_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_regen_data_v1_events_proto_init() } +func file_regen_data_v1_events_proto_init() { + if File_regen_data_v1_events_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_regen_data_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventAnchorData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventSignData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventStoreRawData); 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_regen_data_v1_events_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_regen_data_v1_events_proto_goTypes, + DependencyIndexes: file_regen_data_v1_events_proto_depIdxs, + MessageInfos: file_regen_data_v1_events_proto_msgTypes, + }.Build() + File_regen_data_v1_events_proto = out.File + file_regen_data_v1_events_proto_rawDesc = nil + file_regen_data_v1_events_proto_goTypes = nil + file_regen_data_v1_events_proto_depIdxs = nil +} diff --git a/api/regen/data/v1/genesis.pulsar.go b/api/regen/data/v1/genesis.pulsar.go new file mode 100644 index 0000000000..e2fa8b9fb6 --- /dev/null +++ b/api/regen/data/v1/genesis.pulsar.go @@ -0,0 +1,1389 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package datav1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + 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" + io "io" + reflect "reflect" + sync "sync" +) + +var _ protoreflect.List = (*_GenesisState_1_list)(nil) + +type _GenesisState_1_list struct { + list *[]*GenesisContentEntry +} + +func (x *_GenesisState_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*GenesisContentEntry) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*GenesisContentEntry) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_1_list) AppendMutable() protoreflect.Value { + v := new(GenesisContentEntry) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_1_list) NewElement() protoreflect.Value { + v := new(GenesisContentEntry) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_entries protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_genesis_proto_init() + md_GenesisState = File_regen_data_v1_genesis_proto.Messages().ByName("GenesisState") + fd_GenesisState_entries = md_GenesisState.Fields().ByName("entries") +} + +var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) + +type fastReflection_GenesisState GenesisState + +func (x *GenesisState) ProtoReflect() protoreflect.Message { + return (*fastReflection_GenesisState)(x) +} + +func (x *GenesisState) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_genesis_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType +var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} + +type fastReflection_GenesisState_messageType struct{} + +func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { + return (*fastReflection_GenesisState)(nil) +} +func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} +func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GenesisState) Type() protoreflect.MessageType { + return _fastReflection_GenesisState_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GenesisState) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { + return (*GenesisState)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Entries) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_1_list{list: &x.Entries}) + if !f(fd_GenesisState_entries, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.GenesisState.entries": + return len(x.Entries) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.GenesisState")) + } + panic(fmt.Errorf("message regen.data.v1.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.GenesisState.entries": + x.Entries = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.GenesisState")) + } + panic(fmt.Errorf("message regen.data.v1.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.GenesisState.entries": + if len(x.Entries) == 0 { + return protoreflect.ValueOfList(&_GenesisState_1_list{}) + } + listValue := &_GenesisState_1_list{list: &x.Entries} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.GenesisState")) + } + panic(fmt.Errorf("message regen.data.v1.GenesisState does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.GenesisState.entries": + lv := value.List() + clv := lv.(*_GenesisState_1_list) + x.Entries = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.GenesisState")) + } + panic(fmt.Errorf("message regen.data.v1.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.GenesisState.entries": + if x.Entries == nil { + x.Entries = []*GenesisContentEntry{} + } + value := &_GenesisState_1_list{list: &x.Entries} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.GenesisState")) + } + panic(fmt.Errorf("message regen.data.v1.GenesisState does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.GenesisState.entries": + list := []*GenesisContentEntry{} + return protoreflect.ValueOfList(&_GenesisState_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.GenesisState")) + } + panic(fmt.Errorf("message regen.data.v1.GenesisState does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.GenesisState", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GenesisState) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Entries) > 0 { + for _, e := range x.Entries { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Entries) > 0 { + for iNdEx := len(x.Entries) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Entries[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Entries = append(x.Entries, &GenesisContentEntry{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Entries[len(x.Entries)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_GenesisContentEntry_3_list)(nil) + +type _GenesisContentEntry_3_list struct { + list *[]*SignerEntry +} + +func (x *_GenesisContentEntry_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisContentEntry_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisContentEntry_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*SignerEntry) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisContentEntry_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*SignerEntry) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisContentEntry_3_list) AppendMutable() protoreflect.Value { + v := new(SignerEntry) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisContentEntry_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisContentEntry_3_list) NewElement() protoreflect.Value { + v := new(SignerEntry) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisContentEntry_3_list) IsValid() bool { + return x.list != nil +} + +var ( + md_GenesisContentEntry protoreflect.MessageDescriptor + fd_GenesisContentEntry_hash protoreflect.FieldDescriptor + fd_GenesisContentEntry_timestamp protoreflect.FieldDescriptor + fd_GenesisContentEntry_signers protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_genesis_proto_init() + md_GenesisContentEntry = File_regen_data_v1_genesis_proto.Messages().ByName("GenesisContentEntry") + fd_GenesisContentEntry_hash = md_GenesisContentEntry.Fields().ByName("hash") + fd_GenesisContentEntry_timestamp = md_GenesisContentEntry.Fields().ByName("timestamp") + fd_GenesisContentEntry_signers = md_GenesisContentEntry.Fields().ByName("signers") +} + +var _ protoreflect.Message = (*fastReflection_GenesisContentEntry)(nil) + +type fastReflection_GenesisContentEntry GenesisContentEntry + +func (x *GenesisContentEntry) ProtoReflect() protoreflect.Message { + return (*fastReflection_GenesisContentEntry)(x) +} + +func (x *GenesisContentEntry) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_genesis_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GenesisContentEntry_messageType fastReflection_GenesisContentEntry_messageType +var _ protoreflect.MessageType = fastReflection_GenesisContentEntry_messageType{} + +type fastReflection_GenesisContentEntry_messageType struct{} + +func (x fastReflection_GenesisContentEntry_messageType) Zero() protoreflect.Message { + return (*fastReflection_GenesisContentEntry)(nil) +} +func (x fastReflection_GenesisContentEntry_messageType) New() protoreflect.Message { + return new(fastReflection_GenesisContentEntry) +} +func (x fastReflection_GenesisContentEntry_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisContentEntry +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GenesisContentEntry) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisContentEntry +} + +// 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_GenesisContentEntry) Type() protoreflect.MessageType { + return _fastReflection_GenesisContentEntry_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GenesisContentEntry) New() protoreflect.Message { + return new(fastReflection_GenesisContentEntry) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GenesisContentEntry) Interface() protoreflect.ProtoMessage { + return (*GenesisContentEntry)(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_GenesisContentEntry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Hash != nil { + value := protoreflect.ValueOfMessage(x.Hash.ProtoReflect()) + if !f(fd_GenesisContentEntry_hash, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_GenesisContentEntry_timestamp, value) { + return + } + } + if len(x.Signers) != 0 { + value := protoreflect.ValueOfList(&_GenesisContentEntry_3_list{list: &x.Signers}) + if !f(fd_GenesisContentEntry_signers, 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_GenesisContentEntry) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.GenesisContentEntry.hash": + return x.Hash != nil + case "regen.data.v1.GenesisContentEntry.timestamp": + return x.Timestamp != nil + case "regen.data.v1.GenesisContentEntry.signers": + return len(x.Signers) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.GenesisContentEntry")) + } + panic(fmt.Errorf("message regen.data.v1.GenesisContentEntry 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_GenesisContentEntry) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.GenesisContentEntry.hash": + x.Hash = nil + case "regen.data.v1.GenesisContentEntry.timestamp": + x.Timestamp = nil + case "regen.data.v1.GenesisContentEntry.signers": + x.Signers = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.GenesisContentEntry")) + } + panic(fmt.Errorf("message regen.data.v1.GenesisContentEntry 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_GenesisContentEntry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.GenesisContentEntry.hash": + value := x.Hash + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.data.v1.GenesisContentEntry.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.data.v1.GenesisContentEntry.signers": + if len(x.Signers) == 0 { + return protoreflect.ValueOfList(&_GenesisContentEntry_3_list{}) + } + listValue := &_GenesisContentEntry_3_list{list: &x.Signers} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.GenesisContentEntry")) + } + panic(fmt.Errorf("message regen.data.v1.GenesisContentEntry 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_GenesisContentEntry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.GenesisContentEntry.hash": + x.Hash = value.Message().Interface().(*ContentHash) + case "regen.data.v1.GenesisContentEntry.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "regen.data.v1.GenesisContentEntry.signers": + lv := value.List() + clv := lv.(*_GenesisContentEntry_3_list) + x.Signers = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.GenesisContentEntry")) + } + panic(fmt.Errorf("message regen.data.v1.GenesisContentEntry 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_GenesisContentEntry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.GenesisContentEntry.hash": + if x.Hash == nil { + x.Hash = new(ContentHash) + } + return protoreflect.ValueOfMessage(x.Hash.ProtoReflect()) + case "regen.data.v1.GenesisContentEntry.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "regen.data.v1.GenesisContentEntry.signers": + if x.Signers == nil { + x.Signers = []*SignerEntry{} + } + value := &_GenesisContentEntry_3_list{list: &x.Signers} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.GenesisContentEntry")) + } + panic(fmt.Errorf("message regen.data.v1.GenesisContentEntry 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_GenesisContentEntry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.GenesisContentEntry.hash": + m := new(ContentHash) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.data.v1.GenesisContentEntry.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.data.v1.GenesisContentEntry.signers": + list := []*SignerEntry{} + return protoreflect.ValueOfList(&_GenesisContentEntry_3_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.GenesisContentEntry")) + } + panic(fmt.Errorf("message regen.data.v1.GenesisContentEntry 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_GenesisContentEntry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.GenesisContentEntry", 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_GenesisContentEntry) 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_GenesisContentEntry) 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_GenesisContentEntry) 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_GenesisContentEntry) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisContentEntry) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Hash != nil { + l = options.Size(x.Hash) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Signers) > 0 { + for _, e := range x.Signers { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GenesisContentEntry) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Signers) > 0 { + for iNdEx := len(x.Signers) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Signers[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + } + if x.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if x.Hash != nil { + encoded, err := options.Marshal(x.Hash) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*GenesisContentEntry) + 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: GenesisContentEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisContentEntry: 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 Hash", 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.Hash == nil { + x.Hash = &ContentHash{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Hash); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", 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.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Signers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Signers = append(x.Signers, &SignerEntry{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Signers[len(x.Signers)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc v3.19.1 +// source: regen/data/v1/genesis.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// GenesisState is the genesis state +type GenesisState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // entries are the content entries + Entries []*GenesisContentEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` +} + +func (x *GenesisState) Reset() { + *x = GenesisState{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_genesis_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenesisState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenesisState) ProtoMessage() {} + +// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. +func (*GenesisState) Descriptor() ([]byte, []int) { + return file_regen_data_v1_genesis_proto_rawDescGZIP(), []int{0} +} + +func (x *GenesisState) GetEntries() []*GenesisContentEntry { + if x != nil { + return x.Entries + } + return nil +} + +// GenesisContentEntry is a genesis content entry +type GenesisContentEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // hash is the ContentHash + Hash *ContentHash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + // timestamp is the anchor Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // signers are the signers, if any + Signers []*SignerEntry `protobuf:"bytes,3,rep,name=signers,proto3" json:"signers,omitempty"` +} + +func (x *GenesisContentEntry) Reset() { + *x = GenesisContentEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_genesis_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenesisContentEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenesisContentEntry) ProtoMessage() {} + +// Deprecated: Use GenesisContentEntry.ProtoReflect.Descriptor instead. +func (*GenesisContentEntry) Descriptor() ([]byte, []int) { + return file_regen_data_v1_genesis_proto_rawDescGZIP(), []int{1} +} + +func (x *GenesisContentEntry) GetHash() *ContentHash { + if x != nil { + return x.Hash + } + return nil +} + +func (x *GenesisContentEntry) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *GenesisContentEntry) GetSigners() []*SignerEntry { + if x != nil { + return x.Signers + } + return nil +} + +var File_regen_data_v1_genesis_proto protoreflect.FileDescriptor + +var file_regen_data_v1_genesis_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, + 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 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, 0x4c, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, + 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, + 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, + 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, + 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0xb5, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x6e, 0x65, 0x73, + 0x69, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x2e, + 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x38, + 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x34, 0x0a, 0x07, 0x73, 0x69, 0x67, 0x6e, + 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x42, 0xb7, + 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61, + 0x74, 0x61, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, 0xaa, 0x02, 0x0d, 0x52, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x52, 0x65, 0x67, + 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x52, 0x65, 0x67, + 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, + 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_regen_data_v1_genesis_proto_rawDescOnce sync.Once + file_regen_data_v1_genesis_proto_rawDescData = file_regen_data_v1_genesis_proto_rawDesc +) + +func file_regen_data_v1_genesis_proto_rawDescGZIP() []byte { + file_regen_data_v1_genesis_proto_rawDescOnce.Do(func() { + file_regen_data_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_regen_data_v1_genesis_proto_rawDescData) + }) + return file_regen_data_v1_genesis_proto_rawDescData +} + +var file_regen_data_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_regen_data_v1_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: regen.data.v1.GenesisState + (*GenesisContentEntry)(nil), // 1: regen.data.v1.GenesisContentEntry + (*ContentHash)(nil), // 2: regen.data.v1.ContentHash + (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp + (*SignerEntry)(nil), // 4: regen.data.v1.SignerEntry +} +var file_regen_data_v1_genesis_proto_depIdxs = []int32{ + 1, // 0: regen.data.v1.GenesisState.entries:type_name -> regen.data.v1.GenesisContentEntry + 2, // 1: regen.data.v1.GenesisContentEntry.hash:type_name -> regen.data.v1.ContentHash + 3, // 2: regen.data.v1.GenesisContentEntry.timestamp:type_name -> google.protobuf.Timestamp + 4, // 3: regen.data.v1.GenesisContentEntry.signers:type_name -> regen.data.v1.SignerEntry + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_regen_data_v1_genesis_proto_init() } +func file_regen_data_v1_genesis_proto_init() { + if File_regen_data_v1_genesis_proto != nil { + return + } + file_regen_data_v1_types_proto_init() + if !protoimpl.UnsafeEnabled { + file_regen_data_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenesisState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenesisContentEntry); 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_regen_data_v1_genesis_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_regen_data_v1_genesis_proto_goTypes, + DependencyIndexes: file_regen_data_v1_genesis_proto_depIdxs, + MessageInfos: file_regen_data_v1_genesis_proto_msgTypes, + }.Build() + File_regen_data_v1_genesis_proto = out.File + file_regen_data_v1_genesis_proto_rawDesc = nil + file_regen_data_v1_genesis_proto_goTypes = nil + file_regen_data_v1_genesis_proto_depIdxs = nil +} diff --git a/api/regen/data/v1/query.pulsar.go b/api/regen/data/v1/query.pulsar.go new file mode 100644 index 0000000000..ab312f20c5 --- /dev/null +++ b/api/regen/data/v1/query.pulsar.go @@ -0,0 +1,6385 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package datav1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + v1beta1 "github.com/cosmos/cosmos-sdk/api/cosmos/base/query/v1beta1" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_QueryByIRIRequest protoreflect.MessageDescriptor + fd_QueryByIRIRequest_iri protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_query_proto_init() + md_QueryByIRIRequest = File_regen_data_v1_query_proto.Messages().ByName("QueryByIRIRequest") + fd_QueryByIRIRequest_iri = md_QueryByIRIRequest.Fields().ByName("iri") +} + +var _ protoreflect.Message = (*fastReflection_QueryByIRIRequest)(nil) + +type fastReflection_QueryByIRIRequest QueryByIRIRequest + +func (x *QueryByIRIRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryByIRIRequest)(x) +} + +func (x *QueryByIRIRequest) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_query_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryByIRIRequest_messageType fastReflection_QueryByIRIRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryByIRIRequest_messageType{} + +type fastReflection_QueryByIRIRequest_messageType struct{} + +func (x fastReflection_QueryByIRIRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryByIRIRequest)(nil) +} +func (x fastReflection_QueryByIRIRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryByIRIRequest) +} +func (x fastReflection_QueryByIRIRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryByIRIRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryByIRIRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryByIRIRequest +} + +// 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_QueryByIRIRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryByIRIRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryByIRIRequest) New() protoreflect.Message { + return new(fastReflection_QueryByIRIRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryByIRIRequest) Interface() protoreflect.ProtoMessage { + return (*QueryByIRIRequest)(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_QueryByIRIRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Iri != "" { + value := protoreflect.ValueOfString(x.Iri) + if !f(fd_QueryByIRIRequest_iri, 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_QueryByIRIRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.QueryByIRIRequest.iri": + return x.Iri != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryByIRIRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryByIRIRequest 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_QueryByIRIRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.QueryByIRIRequest.iri": + x.Iri = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryByIRIRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryByIRIRequest 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_QueryByIRIRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.QueryByIRIRequest.iri": + value := x.Iri + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryByIRIRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryByIRIRequest 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_QueryByIRIRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.QueryByIRIRequest.iri": + x.Iri = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryByIRIRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryByIRIRequest 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_QueryByIRIRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryByIRIRequest.iri": + panic(fmt.Errorf("field iri of message regen.data.v1.QueryByIRIRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryByIRIRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryByIRIRequest 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_QueryByIRIRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryByIRIRequest.iri": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryByIRIRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryByIRIRequest 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_QueryByIRIRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.QueryByIRIRequest", 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_QueryByIRIRequest) 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_QueryByIRIRequest) 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_QueryByIRIRequest) 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_QueryByIRIRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryByIRIRequest) + 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.Iri) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryByIRIRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Iri) > 0 { + i -= len(x.Iri) + copy(dAtA[i:], x.Iri) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Iri))) + 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().(*QueryByIRIRequest) + 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: QueryByIRIRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryByIRIRequest: 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 Iri", 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.Iri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryByIRIResponse protoreflect.MessageDescriptor + fd_QueryByIRIResponse_entry protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_query_proto_init() + md_QueryByIRIResponse = File_regen_data_v1_query_proto.Messages().ByName("QueryByIRIResponse") + fd_QueryByIRIResponse_entry = md_QueryByIRIResponse.Fields().ByName("entry") +} + +var _ protoreflect.Message = (*fastReflection_QueryByIRIResponse)(nil) + +type fastReflection_QueryByIRIResponse QueryByIRIResponse + +func (x *QueryByIRIResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryByIRIResponse)(x) +} + +func (x *QueryByIRIResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_query_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryByIRIResponse_messageType fastReflection_QueryByIRIResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryByIRIResponse_messageType{} + +type fastReflection_QueryByIRIResponse_messageType struct{} + +func (x fastReflection_QueryByIRIResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryByIRIResponse)(nil) +} +func (x fastReflection_QueryByIRIResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryByIRIResponse) +} +func (x fastReflection_QueryByIRIResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryByIRIResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryByIRIResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryByIRIResponse +} + +// 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_QueryByIRIResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryByIRIResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryByIRIResponse) New() protoreflect.Message { + return new(fastReflection_QueryByIRIResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryByIRIResponse) Interface() protoreflect.ProtoMessage { + return (*QueryByIRIResponse)(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_QueryByIRIResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Entry != nil { + value := protoreflect.ValueOfMessage(x.Entry.ProtoReflect()) + if !f(fd_QueryByIRIResponse_entry, 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_QueryByIRIResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.QueryByIRIResponse.entry": + return x.Entry != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryByIRIResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryByIRIResponse 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_QueryByIRIResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.QueryByIRIResponse.entry": + x.Entry = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryByIRIResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryByIRIResponse 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_QueryByIRIResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.QueryByIRIResponse.entry": + value := x.Entry + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryByIRIResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryByIRIResponse 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_QueryByIRIResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.QueryByIRIResponse.entry": + x.Entry = value.Message().Interface().(*ContentEntry) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryByIRIResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryByIRIResponse 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_QueryByIRIResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryByIRIResponse.entry": + if x.Entry == nil { + x.Entry = new(ContentEntry) + } + return protoreflect.ValueOfMessage(x.Entry.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryByIRIResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryByIRIResponse 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_QueryByIRIResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryByIRIResponse.entry": + m := new(ContentEntry) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryByIRIResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryByIRIResponse 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_QueryByIRIResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.QueryByIRIResponse", 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_QueryByIRIResponse) 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_QueryByIRIResponse) 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_QueryByIRIResponse) 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_QueryByIRIResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryByIRIResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Entry != nil { + l = options.Size(x.Entry) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryByIRIResponse) + 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.Entry != nil { + encoded, err := options.Marshal(x.Entry) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryByIRIResponse) + 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: QueryByIRIResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryByIRIResponse: 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 Entry", 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.Entry == nil { + x.Entry = &ContentEntry{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Entry); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryBySignerRequest protoreflect.MessageDescriptor + fd_QueryBySignerRequest_signer protoreflect.FieldDescriptor + fd_QueryBySignerRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_query_proto_init() + md_QueryBySignerRequest = File_regen_data_v1_query_proto.Messages().ByName("QueryBySignerRequest") + fd_QueryBySignerRequest_signer = md_QueryBySignerRequest.Fields().ByName("signer") + fd_QueryBySignerRequest_pagination = md_QueryBySignerRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryBySignerRequest)(nil) + +type fastReflection_QueryBySignerRequest QueryBySignerRequest + +func (x *QueryBySignerRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryBySignerRequest)(x) +} + +func (x *QueryBySignerRequest) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_query_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryBySignerRequest_messageType fastReflection_QueryBySignerRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryBySignerRequest_messageType{} + +type fastReflection_QueryBySignerRequest_messageType struct{} + +func (x fastReflection_QueryBySignerRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryBySignerRequest)(nil) +} +func (x fastReflection_QueryBySignerRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryBySignerRequest) +} +func (x fastReflection_QueryBySignerRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryBySignerRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryBySignerRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryBySignerRequest +} + +// 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_QueryBySignerRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryBySignerRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryBySignerRequest) New() protoreflect.Message { + return new(fastReflection_QueryBySignerRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryBySignerRequest) Interface() protoreflect.ProtoMessage { + return (*QueryBySignerRequest)(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_QueryBySignerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Signer != "" { + value := protoreflect.ValueOfString(x.Signer) + if !f(fd_QueryBySignerRequest_signer, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryBySignerRequest_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryBySignerRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.QueryBySignerRequest.signer": + return x.Signer != "" + case "regen.data.v1.QueryBySignerRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryBySignerRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryBySignerRequest 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_QueryBySignerRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.QueryBySignerRequest.signer": + x.Signer = "" + case "regen.data.v1.QueryBySignerRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryBySignerRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryBySignerRequest 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_QueryBySignerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.QueryBySignerRequest.signer": + value := x.Signer + return protoreflect.ValueOfString(value) + case "regen.data.v1.QueryBySignerRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryBySignerRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryBySignerRequest 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_QueryBySignerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.QueryBySignerRequest.signer": + x.Signer = value.Interface().(string) + case "regen.data.v1.QueryBySignerRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryBySignerRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryBySignerRequest 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_QueryBySignerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryBySignerRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "regen.data.v1.QueryBySignerRequest.signer": + panic(fmt.Errorf("field signer of message regen.data.v1.QueryBySignerRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryBySignerRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryBySignerRequest 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_QueryBySignerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryBySignerRequest.signer": + return protoreflect.ValueOfString("") + case "regen.data.v1.QueryBySignerRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryBySignerRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryBySignerRequest 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_QueryBySignerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.QueryBySignerRequest", 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_QueryBySignerRequest) 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_QueryBySignerRequest) 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_QueryBySignerRequest) 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_QueryBySignerRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryBySignerRequest) + 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.Signer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryBySignerRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Signer) > 0 { + i -= len(x.Signer) + copy(dAtA[i:], x.Signer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signer))) + 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().(*QueryBySignerRequest) + 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: QueryBySignerRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryBySignerRequest: 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 Signer", 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.Signer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_QueryBySignerResponse_1_list)(nil) + +type _QueryBySignerResponse_1_list struct { + list *[]*ContentEntry +} + +func (x *_QueryBySignerResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryBySignerResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryBySignerResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ContentEntry) + (*x.list)[i] = concreteValue +} + +func (x *_QueryBySignerResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ContentEntry) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryBySignerResponse_1_list) AppendMutable() protoreflect.Value { + v := new(ContentEntry) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryBySignerResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryBySignerResponse_1_list) NewElement() protoreflect.Value { + v := new(ContentEntry) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryBySignerResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryBySignerResponse protoreflect.MessageDescriptor + fd_QueryBySignerResponse_entries protoreflect.FieldDescriptor + fd_QueryBySignerResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_query_proto_init() + md_QueryBySignerResponse = File_regen_data_v1_query_proto.Messages().ByName("QueryBySignerResponse") + fd_QueryBySignerResponse_entries = md_QueryBySignerResponse.Fields().ByName("entries") + fd_QueryBySignerResponse_pagination = md_QueryBySignerResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryBySignerResponse)(nil) + +type fastReflection_QueryBySignerResponse QueryBySignerResponse + +func (x *QueryBySignerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryBySignerResponse)(x) +} + +func (x *QueryBySignerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_query_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryBySignerResponse_messageType fastReflection_QueryBySignerResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryBySignerResponse_messageType{} + +type fastReflection_QueryBySignerResponse_messageType struct{} + +func (x fastReflection_QueryBySignerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryBySignerResponse)(nil) +} +func (x fastReflection_QueryBySignerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryBySignerResponse) +} +func (x fastReflection_QueryBySignerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryBySignerResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryBySignerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryBySignerResponse +} + +// 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_QueryBySignerResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryBySignerResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryBySignerResponse) New() protoreflect.Message { + return new(fastReflection_QueryBySignerResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryBySignerResponse) Interface() protoreflect.ProtoMessage { + return (*QueryBySignerResponse)(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_QueryBySignerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Entries) != 0 { + value := protoreflect.ValueOfList(&_QueryBySignerResponse_1_list{list: &x.Entries}) + if !f(fd_QueryBySignerResponse_entries, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryBySignerResponse_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryBySignerResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.QueryBySignerResponse.entries": + return len(x.Entries) != 0 + case "regen.data.v1.QueryBySignerResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryBySignerResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryBySignerResponse 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_QueryBySignerResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.QueryBySignerResponse.entries": + x.Entries = nil + case "regen.data.v1.QueryBySignerResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryBySignerResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryBySignerResponse 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_QueryBySignerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.QueryBySignerResponse.entries": + if len(x.Entries) == 0 { + return protoreflect.ValueOfList(&_QueryBySignerResponse_1_list{}) + } + listValue := &_QueryBySignerResponse_1_list{list: &x.Entries} + return protoreflect.ValueOfList(listValue) + case "regen.data.v1.QueryBySignerResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryBySignerResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryBySignerResponse 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_QueryBySignerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.QueryBySignerResponse.entries": + lv := value.List() + clv := lv.(*_QueryBySignerResponse_1_list) + x.Entries = *clv.list + case "regen.data.v1.QueryBySignerResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryBySignerResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryBySignerResponse 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_QueryBySignerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryBySignerResponse.entries": + if x.Entries == nil { + x.Entries = []*ContentEntry{} + } + value := &_QueryBySignerResponse_1_list{list: &x.Entries} + return protoreflect.ValueOfList(value) + case "regen.data.v1.QueryBySignerResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryBySignerResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryBySignerResponse 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_QueryBySignerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryBySignerResponse.entries": + list := []*ContentEntry{} + return protoreflect.ValueOfList(&_QueryBySignerResponse_1_list{list: &list}) + case "regen.data.v1.QueryBySignerResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryBySignerResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryBySignerResponse 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_QueryBySignerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.QueryBySignerResponse", 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_QueryBySignerResponse) 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_QueryBySignerResponse) 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_QueryBySignerResponse) 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_QueryBySignerResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryBySignerResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Entries) > 0 { + for _, e := range x.Entries { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryBySignerResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.Entries) > 0 { + for iNdEx := len(x.Entries) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Entries[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryBySignerResponse) + 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: QueryBySignerResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryBySignerResponse: 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 Entries", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Entries = append(x.Entries, &ContentEntry{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Entries[len(x.Entries)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_ContentEntry protoreflect.MessageDescriptor + fd_ContentEntry_hash protoreflect.FieldDescriptor + fd_ContentEntry_iri protoreflect.FieldDescriptor + fd_ContentEntry_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_query_proto_init() + md_ContentEntry = File_regen_data_v1_query_proto.Messages().ByName("ContentEntry") + fd_ContentEntry_hash = md_ContentEntry.Fields().ByName("hash") + fd_ContentEntry_iri = md_ContentEntry.Fields().ByName("iri") + fd_ContentEntry_timestamp = md_ContentEntry.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_ContentEntry)(nil) + +type fastReflection_ContentEntry ContentEntry + +func (x *ContentEntry) ProtoReflect() protoreflect.Message { + return (*fastReflection_ContentEntry)(x) +} + +func (x *ContentEntry) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_query_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_ContentEntry_messageType fastReflection_ContentEntry_messageType +var _ protoreflect.MessageType = fastReflection_ContentEntry_messageType{} + +type fastReflection_ContentEntry_messageType struct{} + +func (x fastReflection_ContentEntry_messageType) Zero() protoreflect.Message { + return (*fastReflection_ContentEntry)(nil) +} +func (x fastReflection_ContentEntry_messageType) New() protoreflect.Message { + return new(fastReflection_ContentEntry) +} +func (x fastReflection_ContentEntry_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ContentEntry +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ContentEntry) Descriptor() protoreflect.MessageDescriptor { + return md_ContentEntry +} + +// 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_ContentEntry) Type() protoreflect.MessageType { + return _fastReflection_ContentEntry_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ContentEntry) New() protoreflect.Message { + return new(fastReflection_ContentEntry) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ContentEntry) Interface() protoreflect.ProtoMessage { + return (*ContentEntry)(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_ContentEntry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Hash != nil { + value := protoreflect.ValueOfMessage(x.Hash.ProtoReflect()) + if !f(fd_ContentEntry_hash, value) { + return + } + } + if x.Iri != "" { + value := protoreflect.ValueOfString(x.Iri) + if !f(fd_ContentEntry_iri, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_ContentEntry_timestamp, 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_ContentEntry) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.ContentEntry.hash": + return x.Hash != nil + case "regen.data.v1.ContentEntry.iri": + return x.Iri != "" + case "regen.data.v1.ContentEntry.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentEntry")) + } + panic(fmt.Errorf("message regen.data.v1.ContentEntry 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_ContentEntry) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.ContentEntry.hash": + x.Hash = nil + case "regen.data.v1.ContentEntry.iri": + x.Iri = "" + case "regen.data.v1.ContentEntry.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentEntry")) + } + panic(fmt.Errorf("message regen.data.v1.ContentEntry 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_ContentEntry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.ContentEntry.hash": + value := x.Hash + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.data.v1.ContentEntry.iri": + value := x.Iri + return protoreflect.ValueOfString(value) + case "regen.data.v1.ContentEntry.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentEntry")) + } + panic(fmt.Errorf("message regen.data.v1.ContentEntry 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_ContentEntry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.ContentEntry.hash": + x.Hash = value.Message().Interface().(*ContentHash) + case "regen.data.v1.ContentEntry.iri": + x.Iri = value.Interface().(string) + case "regen.data.v1.ContentEntry.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentEntry")) + } + panic(fmt.Errorf("message regen.data.v1.ContentEntry 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_ContentEntry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.ContentEntry.hash": + if x.Hash == nil { + x.Hash = new(ContentHash) + } + return protoreflect.ValueOfMessage(x.Hash.ProtoReflect()) + case "regen.data.v1.ContentEntry.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "regen.data.v1.ContentEntry.iri": + panic(fmt.Errorf("field iri of message regen.data.v1.ContentEntry is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentEntry")) + } + panic(fmt.Errorf("message regen.data.v1.ContentEntry 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_ContentEntry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.ContentEntry.hash": + m := new(ContentHash) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.data.v1.ContentEntry.iri": + return protoreflect.ValueOfString("") + case "regen.data.v1.ContentEntry.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentEntry")) + } + panic(fmt.Errorf("message regen.data.v1.ContentEntry 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_ContentEntry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.ContentEntry", 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_ContentEntry) 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_ContentEntry) 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_ContentEntry) 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_ContentEntry) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ContentEntry) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Hash != nil { + l = options.Size(x.Hash) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Iri) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*ContentEntry) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + 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.Iri) > 0 { + i -= len(x.Iri) + copy(dAtA[i:], x.Iri) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Iri))) + i-- + dAtA[i] = 0x12 + } + if x.Hash != nil { + encoded, err := options.Marshal(x.Hash) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*ContentEntry) + 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: ContentEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ContentEntry: 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 Hash", 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.Hash == nil { + x.Hash = &ContentHash{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Hash); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Iri", 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.Iri = 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 Timestamp", 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.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QuerySignersRequest protoreflect.MessageDescriptor + fd_QuerySignersRequest_iri protoreflect.FieldDescriptor + fd_QuerySignersRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_query_proto_init() + md_QuerySignersRequest = File_regen_data_v1_query_proto.Messages().ByName("QuerySignersRequest") + fd_QuerySignersRequest_iri = md_QuerySignersRequest.Fields().ByName("iri") + fd_QuerySignersRequest_pagination = md_QuerySignersRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QuerySignersRequest)(nil) + +type fastReflection_QuerySignersRequest QuerySignersRequest + +func (x *QuerySignersRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QuerySignersRequest)(x) +} + +func (x *QuerySignersRequest) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_query_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QuerySignersRequest_messageType fastReflection_QuerySignersRequest_messageType +var _ protoreflect.MessageType = fastReflection_QuerySignersRequest_messageType{} + +type fastReflection_QuerySignersRequest_messageType struct{} + +func (x fastReflection_QuerySignersRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QuerySignersRequest)(nil) +} +func (x fastReflection_QuerySignersRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QuerySignersRequest) +} +func (x fastReflection_QuerySignersRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySignersRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QuerySignersRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySignersRequest +} + +// 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_QuerySignersRequest) Type() protoreflect.MessageType { + return _fastReflection_QuerySignersRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QuerySignersRequest) New() protoreflect.Message { + return new(fastReflection_QuerySignersRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QuerySignersRequest) Interface() protoreflect.ProtoMessage { + return (*QuerySignersRequest)(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_QuerySignersRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Iri != "" { + value := protoreflect.ValueOfString(x.Iri) + if !f(fd_QuerySignersRequest_iri, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QuerySignersRequest_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QuerySignersRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.QuerySignersRequest.iri": + return x.Iri != "" + case "regen.data.v1.QuerySignersRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QuerySignersRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QuerySignersRequest 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_QuerySignersRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.QuerySignersRequest.iri": + x.Iri = "" + case "regen.data.v1.QuerySignersRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QuerySignersRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QuerySignersRequest 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_QuerySignersRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.QuerySignersRequest.iri": + value := x.Iri + return protoreflect.ValueOfString(value) + case "regen.data.v1.QuerySignersRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QuerySignersRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QuerySignersRequest 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_QuerySignersRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.QuerySignersRequest.iri": + x.Iri = value.Interface().(string) + case "regen.data.v1.QuerySignersRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QuerySignersRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QuerySignersRequest 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_QuerySignersRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QuerySignersRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "regen.data.v1.QuerySignersRequest.iri": + panic(fmt.Errorf("field iri of message regen.data.v1.QuerySignersRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QuerySignersRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QuerySignersRequest 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_QuerySignersRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QuerySignersRequest.iri": + return protoreflect.ValueOfString("") + case "regen.data.v1.QuerySignersRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QuerySignersRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QuerySignersRequest 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_QuerySignersRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.QuerySignersRequest", 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_QuerySignersRequest) 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_QuerySignersRequest) 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_QuerySignersRequest) 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_QuerySignersRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QuerySignersRequest) + 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.Iri) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QuerySignersRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Iri) > 0 { + i -= len(x.Iri) + copy(dAtA[i:], x.Iri) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Iri))) + 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().(*QuerySignersRequest) + 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: QuerySignersRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySignersRequest: 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 Iri", 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.Iri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_QuerySignersResponse_1_list)(nil) + +type _QuerySignersResponse_1_list struct { + list *[]string +} + +func (x *_QuerySignersResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QuerySignersResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_QuerySignersResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_QuerySignersResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_QuerySignersResponse_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message QuerySignersResponse at list field Signers as it is not of Message kind")) +} + +func (x *_QuerySignersResponse_1_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_QuerySignersResponse_1_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_QuerySignersResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QuerySignersResponse protoreflect.MessageDescriptor + fd_QuerySignersResponse_signers protoreflect.FieldDescriptor + fd_QuerySignersResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_query_proto_init() + md_QuerySignersResponse = File_regen_data_v1_query_proto.Messages().ByName("QuerySignersResponse") + fd_QuerySignersResponse_signers = md_QuerySignersResponse.Fields().ByName("signers") + fd_QuerySignersResponse_pagination = md_QuerySignersResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QuerySignersResponse)(nil) + +type fastReflection_QuerySignersResponse QuerySignersResponse + +func (x *QuerySignersResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QuerySignersResponse)(x) +} + +func (x *QuerySignersResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_query_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QuerySignersResponse_messageType fastReflection_QuerySignersResponse_messageType +var _ protoreflect.MessageType = fastReflection_QuerySignersResponse_messageType{} + +type fastReflection_QuerySignersResponse_messageType struct{} + +func (x fastReflection_QuerySignersResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QuerySignersResponse)(nil) +} +func (x fastReflection_QuerySignersResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QuerySignersResponse) +} +func (x fastReflection_QuerySignersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySignersResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QuerySignersResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QuerySignersResponse +} + +// 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_QuerySignersResponse) Type() protoreflect.MessageType { + return _fastReflection_QuerySignersResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QuerySignersResponse) New() protoreflect.Message { + return new(fastReflection_QuerySignersResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QuerySignersResponse) Interface() protoreflect.ProtoMessage { + return (*QuerySignersResponse)(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_QuerySignersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Signers) != 0 { + value := protoreflect.ValueOfList(&_QuerySignersResponse_1_list{list: &x.Signers}) + if !f(fd_QuerySignersResponse_signers, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QuerySignersResponse_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QuerySignersResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.QuerySignersResponse.signers": + return len(x.Signers) != 0 + case "regen.data.v1.QuerySignersResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QuerySignersResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QuerySignersResponse 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_QuerySignersResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.QuerySignersResponse.signers": + x.Signers = nil + case "regen.data.v1.QuerySignersResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QuerySignersResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QuerySignersResponse 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_QuerySignersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.QuerySignersResponse.signers": + if len(x.Signers) == 0 { + return protoreflect.ValueOfList(&_QuerySignersResponse_1_list{}) + } + listValue := &_QuerySignersResponse_1_list{list: &x.Signers} + return protoreflect.ValueOfList(listValue) + case "regen.data.v1.QuerySignersResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QuerySignersResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QuerySignersResponse 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_QuerySignersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.QuerySignersResponse.signers": + lv := value.List() + clv := lv.(*_QuerySignersResponse_1_list) + x.Signers = *clv.list + case "regen.data.v1.QuerySignersResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QuerySignersResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QuerySignersResponse 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_QuerySignersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QuerySignersResponse.signers": + if x.Signers == nil { + x.Signers = []string{} + } + value := &_QuerySignersResponse_1_list{list: &x.Signers} + return protoreflect.ValueOfList(value) + case "regen.data.v1.QuerySignersResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QuerySignersResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QuerySignersResponse 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_QuerySignersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QuerySignersResponse.signers": + list := []string{} + return protoreflect.ValueOfList(&_QuerySignersResponse_1_list{list: &list}) + case "regen.data.v1.QuerySignersResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QuerySignersResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QuerySignersResponse 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_QuerySignersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.QuerySignersResponse", 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_QuerySignersResponse) 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_QuerySignersResponse) 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_QuerySignersResponse) 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_QuerySignersResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QuerySignersResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Signers) > 0 { + for _, s := range x.Signers { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QuerySignersResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Signers) > 0 { + for iNdEx := len(x.Signers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Signers[iNdEx]) + copy(dAtA[i:], x.Signers[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signers[iNdEx]))) + 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().(*QuerySignersResponse) + 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: QuerySignersResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySignersResponse: 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 Signers", 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.Signers = append(x.Signers, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryResolversRequest protoreflect.MessageDescriptor + fd_QueryResolversRequest_iri protoreflect.FieldDescriptor + fd_QueryResolversRequest_pagination protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_query_proto_init() + md_QueryResolversRequest = File_regen_data_v1_query_proto.Messages().ByName("QueryResolversRequest") + fd_QueryResolversRequest_iri = md_QueryResolversRequest.Fields().ByName("iri") + fd_QueryResolversRequest_pagination = md_QueryResolversRequest.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryResolversRequest)(nil) + +type fastReflection_QueryResolversRequest QueryResolversRequest + +func (x *QueryResolversRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryResolversRequest)(x) +} + +func (x *QueryResolversRequest) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_query_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryResolversRequest_messageType fastReflection_QueryResolversRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryResolversRequest_messageType{} + +type fastReflection_QueryResolversRequest_messageType struct{} + +func (x fastReflection_QueryResolversRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryResolversRequest)(nil) +} +func (x fastReflection_QueryResolversRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryResolversRequest) +} +func (x fastReflection_QueryResolversRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryResolversRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryResolversRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryResolversRequest +} + +// 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_QueryResolversRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryResolversRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryResolversRequest) New() protoreflect.Message { + return new(fastReflection_QueryResolversRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryResolversRequest) Interface() protoreflect.ProtoMessage { + return (*QueryResolversRequest)(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_QueryResolversRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Iri != "" { + value := protoreflect.ValueOfString(x.Iri) + if !f(fd_QueryResolversRequest_iri, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryResolversRequest_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryResolversRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.QueryResolversRequest.iri": + return x.Iri != "" + case "regen.data.v1.QueryResolversRequest.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolversRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolversRequest 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_QueryResolversRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.QueryResolversRequest.iri": + x.Iri = "" + case "regen.data.v1.QueryResolversRequest.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolversRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolversRequest 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_QueryResolversRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.QueryResolversRequest.iri": + value := x.Iri + return protoreflect.ValueOfString(value) + case "regen.data.v1.QueryResolversRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolversRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolversRequest 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_QueryResolversRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.QueryResolversRequest.iri": + x.Iri = value.Interface().(string) + case "regen.data.v1.QueryResolversRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolversRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolversRequest 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_QueryResolversRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryResolversRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "regen.data.v1.QueryResolversRequest.iri": + panic(fmt.Errorf("field iri of message regen.data.v1.QueryResolversRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolversRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolversRequest 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_QueryResolversRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryResolversRequest.iri": + return protoreflect.ValueOfString("") + case "regen.data.v1.QueryResolversRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolversRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolversRequest 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_QueryResolversRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.QueryResolversRequest", 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_QueryResolversRequest) 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_QueryResolversRequest) 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_QueryResolversRequest) 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_QueryResolversRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryResolversRequest) + 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.Iri) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryResolversRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Iri) > 0 { + i -= len(x.Iri) + copy(dAtA[i:], x.Iri) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Iri))) + 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().(*QueryResolversRequest) + 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: QueryResolversRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolversRequest: 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 Iri", 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.Iri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_QueryResolversResponse_1_list)(nil) + +type _QueryResolversResponse_1_list struct { + list *[]string +} + +func (x *_QueryResolversResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryResolversResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_QueryResolversResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_QueryResolversResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryResolversResponse_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message QueryResolversResponse at list field ResolverUrls as it is not of Message kind")) +} + +func (x *_QueryResolversResponse_1_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_QueryResolversResponse_1_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_QueryResolversResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryResolversResponse protoreflect.MessageDescriptor + fd_QueryResolversResponse_resolver_urls protoreflect.FieldDescriptor + fd_QueryResolversResponse_pagination protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_query_proto_init() + md_QueryResolversResponse = File_regen_data_v1_query_proto.Messages().ByName("QueryResolversResponse") + fd_QueryResolversResponse_resolver_urls = md_QueryResolversResponse.Fields().ByName("resolver_urls") + fd_QueryResolversResponse_pagination = md_QueryResolversResponse.Fields().ByName("pagination") +} + +var _ protoreflect.Message = (*fastReflection_QueryResolversResponse)(nil) + +type fastReflection_QueryResolversResponse QueryResolversResponse + +func (x *QueryResolversResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryResolversResponse)(x) +} + +func (x *QueryResolversResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_query_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryResolversResponse_messageType fastReflection_QueryResolversResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryResolversResponse_messageType{} + +type fastReflection_QueryResolversResponse_messageType struct{} + +func (x fastReflection_QueryResolversResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryResolversResponse)(nil) +} +func (x fastReflection_QueryResolversResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryResolversResponse) +} +func (x fastReflection_QueryResolversResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryResolversResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryResolversResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryResolversResponse +} + +// 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_QueryResolversResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryResolversResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryResolversResponse) New() protoreflect.Message { + return new(fastReflection_QueryResolversResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryResolversResponse) Interface() protoreflect.ProtoMessage { + return (*QueryResolversResponse)(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_QueryResolversResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.ResolverUrls) != 0 { + value := protoreflect.ValueOfList(&_QueryResolversResponse_1_list{list: &x.ResolverUrls}) + if !f(fd_QueryResolversResponse_resolver_urls, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryResolversResponse_pagination, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryResolversResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.QueryResolversResponse.resolver_urls": + return len(x.ResolverUrls) != 0 + case "regen.data.v1.QueryResolversResponse.pagination": + return x.Pagination != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolversResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolversResponse 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_QueryResolversResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.QueryResolversResponse.resolver_urls": + x.ResolverUrls = nil + case "regen.data.v1.QueryResolversResponse.pagination": + x.Pagination = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolversResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolversResponse 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_QueryResolversResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.QueryResolversResponse.resolver_urls": + if len(x.ResolverUrls) == 0 { + return protoreflect.ValueOfList(&_QueryResolversResponse_1_list{}) + } + listValue := &_QueryResolversResponse_1_list{list: &x.ResolverUrls} + return protoreflect.ValueOfList(listValue) + case "regen.data.v1.QueryResolversResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolversResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolversResponse 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_QueryResolversResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.QueryResolversResponse.resolver_urls": + lv := value.List() + clv := lv.(*_QueryResolversResponse_1_list) + x.ResolverUrls = *clv.list + case "regen.data.v1.QueryResolversResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolversResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolversResponse 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_QueryResolversResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryResolversResponse.resolver_urls": + if x.ResolverUrls == nil { + x.ResolverUrls = []string{} + } + value := &_QueryResolversResponse_1_list{list: &x.ResolverUrls} + return protoreflect.ValueOfList(value) + case "regen.data.v1.QueryResolversResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolversResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolversResponse 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_QueryResolversResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryResolversResponse.resolver_urls": + list := []string{} + return protoreflect.ValueOfList(&_QueryResolversResponse_1_list{list: &list}) + case "regen.data.v1.QueryResolversResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolversResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolversResponse 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_QueryResolversResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.QueryResolversResponse", 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_QueryResolversResponse) 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_QueryResolversResponse) 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_QueryResolversResponse) 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_QueryResolversResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryResolversResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.ResolverUrls) > 0 { + for _, s := range x.ResolverUrls { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryResolversResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.ResolverUrls) > 0 { + for iNdEx := len(x.ResolverUrls) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.ResolverUrls[iNdEx]) + copy(dAtA[i:], x.ResolverUrls[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ResolverUrls[iNdEx]))) + 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().(*QueryResolversResponse) + 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: QueryResolversResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolversResponse: 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 ResolverUrls", 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.ResolverUrls = append(x.ResolverUrls, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryResolverInfoRequest protoreflect.MessageDescriptor + fd_QueryResolverInfoRequest_url protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_query_proto_init() + md_QueryResolverInfoRequest = File_regen_data_v1_query_proto.Messages().ByName("QueryResolverInfoRequest") + fd_QueryResolverInfoRequest_url = md_QueryResolverInfoRequest.Fields().ByName("url") +} + +var _ protoreflect.Message = (*fastReflection_QueryResolverInfoRequest)(nil) + +type fastReflection_QueryResolverInfoRequest QueryResolverInfoRequest + +func (x *QueryResolverInfoRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryResolverInfoRequest)(x) +} + +func (x *QueryResolverInfoRequest) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_query_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryResolverInfoRequest_messageType fastReflection_QueryResolverInfoRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryResolverInfoRequest_messageType{} + +type fastReflection_QueryResolverInfoRequest_messageType struct{} + +func (x fastReflection_QueryResolverInfoRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryResolverInfoRequest)(nil) +} +func (x fastReflection_QueryResolverInfoRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryResolverInfoRequest) +} +func (x fastReflection_QueryResolverInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryResolverInfoRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryResolverInfoRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryResolverInfoRequest +} + +// 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_QueryResolverInfoRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryResolverInfoRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryResolverInfoRequest) New() protoreflect.Message { + return new(fastReflection_QueryResolverInfoRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryResolverInfoRequest) Interface() protoreflect.ProtoMessage { + return (*QueryResolverInfoRequest)(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_QueryResolverInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Url != "" { + value := protoreflect.ValueOfString(x.Url) + if !f(fd_QueryResolverInfoRequest_url, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryResolverInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.QueryResolverInfoRequest.url": + return x.Url != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolverInfoRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolverInfoRequest 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_QueryResolverInfoRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.QueryResolverInfoRequest.url": + x.Url = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolverInfoRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolverInfoRequest 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_QueryResolverInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.QueryResolverInfoRequest.url": + value := x.Url + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolverInfoRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolverInfoRequest 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_QueryResolverInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.QueryResolverInfoRequest.url": + x.Url = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolverInfoRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolverInfoRequest 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_QueryResolverInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryResolverInfoRequest.url": + panic(fmt.Errorf("field url of message regen.data.v1.QueryResolverInfoRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolverInfoRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolverInfoRequest 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_QueryResolverInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryResolverInfoRequest.url": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolverInfoRequest")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolverInfoRequest 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_QueryResolverInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.QueryResolverInfoRequest", 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_QueryResolverInfoRequest) 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_QueryResolverInfoRequest) 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_QueryResolverInfoRequest) 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_QueryResolverInfoRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryResolverInfoRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Url) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.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().(*QueryResolverInfoRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Url) > 0 { + i -= len(x.Url) + copy(dAtA[i:], x.Url) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Url))) + i-- + dAtA[i] = 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().(*QueryResolverInfoRequest) + 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: QueryResolverInfoRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolverInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Url", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Url = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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_QueryResolverInfoResponse protoreflect.MessageDescriptor + fd_QueryResolverInfoResponse_id protoreflect.FieldDescriptor + fd_QueryResolverInfoResponse_manager protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_query_proto_init() + md_QueryResolverInfoResponse = File_regen_data_v1_query_proto.Messages().ByName("QueryResolverInfoResponse") + fd_QueryResolverInfoResponse_id = md_QueryResolverInfoResponse.Fields().ByName("id") + fd_QueryResolverInfoResponse_manager = md_QueryResolverInfoResponse.Fields().ByName("manager") +} + +var _ protoreflect.Message = (*fastReflection_QueryResolverInfoResponse)(nil) + +type fastReflection_QueryResolverInfoResponse QueryResolverInfoResponse + +func (x *QueryResolverInfoResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryResolverInfoResponse)(x) +} + +func (x *QueryResolverInfoResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_query_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_QueryResolverInfoResponse_messageType fastReflection_QueryResolverInfoResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryResolverInfoResponse_messageType{} + +type fastReflection_QueryResolverInfoResponse_messageType struct{} + +func (x fastReflection_QueryResolverInfoResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryResolverInfoResponse)(nil) +} +func (x fastReflection_QueryResolverInfoResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryResolverInfoResponse) +} +func (x fastReflection_QueryResolverInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryResolverInfoResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryResolverInfoResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryResolverInfoResponse +} + +// 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_QueryResolverInfoResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryResolverInfoResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryResolverInfoResponse) New() protoreflect.Message { + return new(fastReflection_QueryResolverInfoResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryResolverInfoResponse) Interface() protoreflect.ProtoMessage { + return (*QueryResolverInfoResponse)(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_QueryResolverInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Id != uint64(0) { + value := protoreflect.ValueOfUint64(x.Id) + if !f(fd_QueryResolverInfoResponse_id, value) { + return + } + } + if x.Manager != "" { + value := protoreflect.ValueOfString(x.Manager) + if !f(fd_QueryResolverInfoResponse_manager, 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_QueryResolverInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.QueryResolverInfoResponse.id": + return x.Id != uint64(0) + case "regen.data.v1.QueryResolverInfoResponse.manager": + return x.Manager != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolverInfoResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolverInfoResponse 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_QueryResolverInfoResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.QueryResolverInfoResponse.id": + x.Id = uint64(0) + case "regen.data.v1.QueryResolverInfoResponse.manager": + x.Manager = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolverInfoResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolverInfoResponse 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_QueryResolverInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.QueryResolverInfoResponse.id": + value := x.Id + return protoreflect.ValueOfUint64(value) + case "regen.data.v1.QueryResolverInfoResponse.manager": + value := x.Manager + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolverInfoResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolverInfoResponse 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_QueryResolverInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.QueryResolverInfoResponse.id": + x.Id = value.Uint() + case "regen.data.v1.QueryResolverInfoResponse.manager": + x.Manager = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolverInfoResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolverInfoResponse 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_QueryResolverInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryResolverInfoResponse.id": + panic(fmt.Errorf("field id of message regen.data.v1.QueryResolverInfoResponse is not mutable")) + case "regen.data.v1.QueryResolverInfoResponse.manager": + panic(fmt.Errorf("field manager of message regen.data.v1.QueryResolverInfoResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolverInfoResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolverInfoResponse 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_QueryResolverInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.QueryResolverInfoResponse.id": + return protoreflect.ValueOfUint64(uint64(0)) + case "regen.data.v1.QueryResolverInfoResponse.manager": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.QueryResolverInfoResponse")) + } + panic(fmt.Errorf("message regen.data.v1.QueryResolverInfoResponse 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_QueryResolverInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.QueryResolverInfoResponse", 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_QueryResolverInfoResponse) 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_QueryResolverInfoResponse) 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_QueryResolverInfoResponse) 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_QueryResolverInfoResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryResolverInfoResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Id != 0 { + n += 1 + runtime.Sov(uint64(x.Id)) + } + l = len(x.Manager) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryResolverInfoResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Manager) > 0 { + i -= len(x.Manager) + copy(dAtA[i:], x.Manager) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Manager))) + i-- + dAtA[i] = 0x12 + } + if x.Id != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryResolverInfoResponse) + 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: QueryResolverInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolverInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + x.Id = 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.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Manager", 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.Manager = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc v3.19.1 +// source: regen/data/v1/query.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// QueryByContentHashRequest is the Query/ByContentHash request type. +type QueryByIRIRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // hash is the hash-based identifier for the anchored content. + Iri string `protobuf:"bytes,1,opt,name=iri,proto3" json:"iri,omitempty"` +} + +func (x *QueryByIRIRequest) Reset() { + *x = QueryByIRIRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryByIRIRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryByIRIRequest) ProtoMessage() {} + +// Deprecated: Use QueryByIRIRequest.ProtoReflect.Descriptor instead. +func (*QueryByIRIRequest) Descriptor() ([]byte, []int) { + return file_regen_data_v1_query_proto_rawDescGZIP(), []int{0} +} + +func (x *QueryByIRIRequest) GetIri() string { + if x != nil { + return x.Iri + } + return "" +} + +// QueryByContentHashResponse is the Query/ByContentHash response type. +type QueryByIRIResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // entry is the ContentEntry + Entry *ContentEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` +} + +func (x *QueryByIRIResponse) Reset() { + *x = QueryByIRIResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryByIRIResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryByIRIResponse) ProtoMessage() {} + +// Deprecated: Use QueryByIRIResponse.ProtoReflect.Descriptor instead. +func (*QueryByIRIResponse) Descriptor() ([]byte, []int) { + return file_regen_data_v1_query_proto_rawDescGZIP(), []int{1} +} + +func (x *QueryByIRIResponse) GetEntry() *ContentEntry { + if x != nil { + return x.Entry + } + return nil +} + +// QueryBySignerRequest is the Query/BySigner request type. +type QueryBySignerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // signer is the address of the signer to query by. + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` + // pagination is the PageRequest to use for pagination. + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryBySignerRequest) Reset() { + *x = QueryBySignerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryBySignerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryBySignerRequest) ProtoMessage() {} + +// Deprecated: Use QueryBySignerRequest.ProtoReflect.Descriptor instead. +func (*QueryBySignerRequest) Descriptor() ([]byte, []int) { + return file_regen_data_v1_query_proto_rawDescGZIP(), []int{2} +} + +func (x *QueryBySignerRequest) GetSigner() string { + if x != nil { + return x.Signer + } + return "" +} + +func (x *QueryBySignerRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryBySignerResponse is the Query/BySigner response type. +type QueryBySignerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // entries is the ContentEntry's signed by the queried signer + Entries []*ContentEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + // pagination is the pagination PageResponse. + Pagination *v1beta1.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryBySignerResponse) Reset() { + *x = QueryBySignerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryBySignerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryBySignerResponse) ProtoMessage() {} + +// Deprecated: Use QueryBySignerResponse.ProtoReflect.Descriptor instead. +func (*QueryBySignerResponse) Descriptor() ([]byte, []int) { + return file_regen_data_v1_query_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryBySignerResponse) GetEntries() []*ContentEntry { + if x != nil { + return x.Entries + } + return nil +} + +func (x *QueryBySignerResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// ContentEntry describes data referenced and possibly stored on chain +type ContentEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // hash is the content hash + Hash *ContentHash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + // iri is the content IRI + Iri string `protobuf:"bytes,2,opt,name=iri,proto3" json:"iri,omitempty"` + // timestamp is the anchor Timestamp + Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *ContentEntry) Reset() { + *x = ContentEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ContentEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContentEntry) ProtoMessage() {} + +// Deprecated: Use ContentEntry.ProtoReflect.Descriptor instead. +func (*ContentEntry) Descriptor() ([]byte, []int) { + return file_regen_data_v1_query_proto_rawDescGZIP(), []int{4} +} + +func (x *ContentEntry) GetHash() *ContentHash { + if x != nil { + return x.Hash + } + return nil +} + +func (x *ContentEntry) GetIri() string { + if x != nil { + return x.Iri + } + return "" +} + +func (x *ContentEntry) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// QuerySignersRequest is the Query/Signers request type. +type QuerySignersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // iri is the content IRI + Iri string `protobuf:"bytes,1,opt,name=iri,proto3" json:"iri,omitempty"` + // pagination is the PageRequest to use for pagination. + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QuerySignersRequest) Reset() { + *x = QuerySignersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QuerySignersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuerySignersRequest) ProtoMessage() {} + +// Deprecated: Use QuerySignersRequest.ProtoReflect.Descriptor instead. +func (*QuerySignersRequest) Descriptor() ([]byte, []int) { + return file_regen_data_v1_query_proto_rawDescGZIP(), []int{5} +} + +func (x *QuerySignersRequest) GetIri() string { + if x != nil { + return x.Iri + } + return "" +} + +func (x *QuerySignersRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QuerySignersResponse is the Query/Signers response type. +type QuerySignersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // signers are the addresses of the signers. + Signers []string `protobuf:"bytes,1,rep,name=signers,proto3" json:"signers,omitempty"` + // pagination is the pagination PageResponse. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QuerySignersResponse) Reset() { + *x = QuerySignersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_query_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QuerySignersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuerySignersResponse) ProtoMessage() {} + +// Deprecated: Use QuerySignersResponse.ProtoReflect.Descriptor instead. +func (*QuerySignersResponse) Descriptor() ([]byte, []int) { + return file_regen_data_v1_query_proto_rawDescGZIP(), []int{6} +} + +func (x *QuerySignersResponse) GetSigners() []string { + if x != nil { + return x.Signers + } + return nil +} + +func (x *QuerySignersResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryResolversRequest is the Query/Resolvers request type. +type QueryResolversRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // iri is the content IRI + Iri string `protobuf:"bytes,1,opt,name=iri,proto3" json:"iri,omitempty"` + // pagination is the PageRequest to use for pagination. + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryResolversRequest) Reset() { + *x = QueryResolversRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_query_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryResolversRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryResolversRequest) ProtoMessage() {} + +// Deprecated: Use QueryResolversRequest.ProtoReflect.Descriptor instead. +func (*QueryResolversRequest) Descriptor() ([]byte, []int) { + return file_regen_data_v1_query_proto_rawDescGZIP(), []int{7} +} + +func (x *QueryResolversRequest) GetIri() string { + if x != nil { + return x.Iri + } + return "" +} + +func (x *QueryResolversRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryResolversResponse is the Query/Resolvers response type. +type QueryResolversResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // resolver_urls are the resolver URLs that have been registered for this + // data object. + ResolverUrls []string `protobuf:"bytes,1,rep,name=resolver_urls,json=resolverUrls,proto3" json:"resolver_urls,omitempty"` + // pagination is the PageResponse to use for pagination. + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *QueryResolversResponse) Reset() { + *x = QueryResolversResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_query_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryResolversResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryResolversResponse) ProtoMessage() {} + +// Deprecated: Use QueryResolversResponse.ProtoReflect.Descriptor instead. +func (*QueryResolversResponse) Descriptor() ([]byte, []int) { + return file_regen_data_v1_query_proto_rawDescGZIP(), []int{8} +} + +func (x *QueryResolversResponse) GetResolverUrls() []string { + if x != nil { + return x.ResolverUrls + } + return nil +} + +func (x *QueryResolversResponse) GetPagination() *v1beta1.PageResponse { + if x != nil { + return x.Pagination + } + return nil +} + +// QueryResolverInfoRequest is the Query/ResolverInfo request type. +type QueryResolverInfoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // url is the URL of the resolver to query. + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` +} + +func (x *QueryResolverInfoRequest) Reset() { + *x = QueryResolverInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryResolverInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryResolverInfoRequest) ProtoMessage() {} + +// Deprecated: Use QueryResolverInfoRequest.ProtoReflect.Descriptor instead. +func (*QueryResolverInfoRequest) Descriptor() ([]byte, []int) { + return file_regen_data_v1_query_proto_rawDescGZIP(), []int{9} +} + +func (x *QueryResolverInfoRequest) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +// QueryResolverInfoResponse is the Query/ResolverInfo response type. +type QueryResolverInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id is the id of the resolver which can be used in Msg/RegisterResolver. + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // manager is the bech32 account address of the resolver manager. + Manager string `protobuf:"bytes,2,opt,name=manager,proto3" json:"manager,omitempty"` +} + +func (x *QueryResolverInfoResponse) Reset() { + *x = QueryResolverInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_query_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryResolverInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryResolverInfoResponse) ProtoMessage() {} + +// Deprecated: Use QueryResolverInfoResponse.ProtoReflect.Descriptor instead. +func (*QueryResolverInfoResponse) Descriptor() ([]byte, []int) { + return file_regen_data_v1_query_proto_rawDescGZIP(), []int{10} +} + +func (x *QueryResolverInfoResponse) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *QueryResolverInfoResponse) GetManager() string { + if x != nil { + return x.Manager + } + return "" +} + +var File_regen_data_v1_query_proto protoreflect.FileDescriptor + +var file_regen_data_v1_query_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, + 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x25, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x69, 0x72, 0x69, 0x22, 0x47, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, + 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, + 0x22, 0x76, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, + 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x97, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x42, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x35, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x8a, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x2e, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x52, 0x04, 0x68, + 0x61, 0x73, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x69, 0x72, 0x69, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 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, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, + 0x6f, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x72, 0x69, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x79, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x69, 0x67, 0x6e, + 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x72, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x71, 0x0a, 0x15, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x69, 0x72, 0x69, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x86, + 0x01, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, + 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x73, 0x12, 0x47, + 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x45, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x32, 0x85, 0x05, 0x0a, + 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x71, 0x0a, 0x05, 0x42, 0x79, 0x49, 0x52, 0x49, 0x12, + 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x21, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x79, 0x2d, + 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0x80, 0x01, 0x0a, 0x08, 0x42, 0x79, + 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x23, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x53, 0x69, + 0x67, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x42, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x79, 0x2d, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x72, 0x2f, 0x7b, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x7d, 0x12, 0x78, 0x0a, 0x07, + 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x22, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, + 0x6e, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, + 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0x80, 0x01, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x6f, 0x6c, + 0x76, 0x65, 0x72, 0x73, 0x12, 0x24, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, + 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0x88, 0x01, 0x0a, 0x0c, 0x52, 0x65, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, + 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, + 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x7b, + 0x75, 0x72, 0x6c, 0x7d, 0x42, 0xb5, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, + 0x31, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, 0xaa, 0x02, + 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x31, 0xca, 0x02, + 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0xe2, 0x02, + 0x19, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x52, 0x65, 0x67, + 0x65, 0x6e, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_regen_data_v1_query_proto_rawDescOnce sync.Once + file_regen_data_v1_query_proto_rawDescData = file_regen_data_v1_query_proto_rawDesc +) + +func file_regen_data_v1_query_proto_rawDescGZIP() []byte { + file_regen_data_v1_query_proto_rawDescOnce.Do(func() { + file_regen_data_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_regen_data_v1_query_proto_rawDescData) + }) + return file_regen_data_v1_query_proto_rawDescData +} + +var file_regen_data_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_regen_data_v1_query_proto_goTypes = []interface{}{ + (*QueryByIRIRequest)(nil), // 0: regen.data.v1.QueryByIRIRequest + (*QueryByIRIResponse)(nil), // 1: regen.data.v1.QueryByIRIResponse + (*QueryBySignerRequest)(nil), // 2: regen.data.v1.QueryBySignerRequest + (*QueryBySignerResponse)(nil), // 3: regen.data.v1.QueryBySignerResponse + (*ContentEntry)(nil), // 4: regen.data.v1.ContentEntry + (*QuerySignersRequest)(nil), // 5: regen.data.v1.QuerySignersRequest + (*QuerySignersResponse)(nil), // 6: regen.data.v1.QuerySignersResponse + (*QueryResolversRequest)(nil), // 7: regen.data.v1.QueryResolversRequest + (*QueryResolversResponse)(nil), // 8: regen.data.v1.QueryResolversResponse + (*QueryResolverInfoRequest)(nil), // 9: regen.data.v1.QueryResolverInfoRequest + (*QueryResolverInfoResponse)(nil), // 10: regen.data.v1.QueryResolverInfoResponse + (*v1beta1.PageRequest)(nil), // 11: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 12: cosmos.base.query.v1beta1.PageResponse + (*ContentHash)(nil), // 13: regen.data.v1.ContentHash + (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp +} +var file_regen_data_v1_query_proto_depIdxs = []int32{ + 4, // 0: regen.data.v1.QueryByIRIResponse.entry:type_name -> regen.data.v1.ContentEntry + 11, // 1: regen.data.v1.QueryBySignerRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 4, // 2: regen.data.v1.QueryBySignerResponse.entries:type_name -> regen.data.v1.ContentEntry + 12, // 3: regen.data.v1.QueryBySignerResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 13, // 4: regen.data.v1.ContentEntry.hash:type_name -> regen.data.v1.ContentHash + 14, // 5: regen.data.v1.ContentEntry.timestamp:type_name -> google.protobuf.Timestamp + 11, // 6: regen.data.v1.QuerySignersRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 12, // 7: regen.data.v1.QuerySignersResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 11, // 8: regen.data.v1.QueryResolversRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 12, // 9: regen.data.v1.QueryResolversResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 0, // 10: regen.data.v1.Query.ByIRI:input_type -> regen.data.v1.QueryByIRIRequest + 2, // 11: regen.data.v1.Query.BySigner:input_type -> regen.data.v1.QueryBySignerRequest + 5, // 12: regen.data.v1.Query.Signers:input_type -> regen.data.v1.QuerySignersRequest + 7, // 13: regen.data.v1.Query.Resolvers:input_type -> regen.data.v1.QueryResolversRequest + 9, // 14: regen.data.v1.Query.ResolverInfo:input_type -> regen.data.v1.QueryResolverInfoRequest + 1, // 15: regen.data.v1.Query.ByIRI:output_type -> regen.data.v1.QueryByIRIResponse + 3, // 16: regen.data.v1.Query.BySigner:output_type -> regen.data.v1.QueryBySignerResponse + 6, // 17: regen.data.v1.Query.Signers:output_type -> regen.data.v1.QuerySignersResponse + 8, // 18: regen.data.v1.Query.Resolvers:output_type -> regen.data.v1.QueryResolversResponse + 10, // 19: regen.data.v1.Query.ResolverInfo:output_type -> regen.data.v1.QueryResolverInfoResponse + 15, // [15:20] is the sub-list for method output_type + 10, // [10:15] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_regen_data_v1_query_proto_init() } +func file_regen_data_v1_query_proto_init() { + if File_regen_data_v1_query_proto != nil { + return + } + file_regen_data_v1_types_proto_init() + if !protoimpl.UnsafeEnabled { + file_regen_data_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryByIRIRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryByIRIResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryBySignerRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryBySignerResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContentEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QuerySignersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QuerySignersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryResolversRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryResolversResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryResolverInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryResolverInfoResponse); 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_regen_data_v1_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_regen_data_v1_query_proto_goTypes, + DependencyIndexes: file_regen_data_v1_query_proto_depIdxs, + MessageInfos: file_regen_data_v1_query_proto_msgTypes, + }.Build() + File_regen_data_v1_query_proto = out.File + file_regen_data_v1_query_proto_rawDesc = nil + file_regen_data_v1_query_proto_goTypes = nil + file_regen_data_v1_query_proto_depIdxs = nil +} diff --git a/api/regen/data/v1/query_grpc.pb.go b/api/regen/data/v1/query_grpc.pb.go new file mode 100644 index 0000000000..e628b5f1a2 --- /dev/null +++ b/api/regen/data/v1/query_grpc.pb.go @@ -0,0 +1,259 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v3.19.1 +// source: regen/data/v1/query.proto + +package datav1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type QueryClient interface { + // ByHash queries data based on its ContentHash. + ByIRI(ctx context.Context, in *QueryByIRIRequest, opts ...grpc.CallOption) (*QueryByIRIResponse, error) + // BySigner queries data based on signers. + BySigner(ctx context.Context, in *QueryBySignerRequest, opts ...grpc.CallOption) (*QueryBySignerResponse, error) + // Signers queries signers based on IRI. + Signers(ctx context.Context, in *QuerySignersRequest, opts ...grpc.CallOption) (*QuerySignersResponse, error) + // Resolvers returns the registered resolver URLs for the data IRI. + Resolvers(ctx context.Context, in *QueryResolversRequest, opts ...grpc.CallOption) (*QueryResolversResponse, error) + // ResolverInfo returns information about a resolver. + ResolverInfo(ctx context.Context, in *QueryResolverInfoRequest, opts ...grpc.CallOption) (*QueryResolverInfoResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) ByIRI(ctx context.Context, in *QueryByIRIRequest, opts ...grpc.CallOption) (*QueryByIRIResponse, error) { + out := new(QueryByIRIResponse) + err := c.cc.Invoke(ctx, "/regen.data.v1.Query/ByIRI", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) BySigner(ctx context.Context, in *QueryBySignerRequest, opts ...grpc.CallOption) (*QueryBySignerResponse, error) { + out := new(QueryBySignerResponse) + err := c.cc.Invoke(ctx, "/regen.data.v1.Query/BySigner", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Signers(ctx context.Context, in *QuerySignersRequest, opts ...grpc.CallOption) (*QuerySignersResponse, error) { + out := new(QuerySignersResponse) + err := c.cc.Invoke(ctx, "/regen.data.v1.Query/Signers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) Resolvers(ctx context.Context, in *QueryResolversRequest, opts ...grpc.CallOption) (*QueryResolversResponse, error) { + out := new(QueryResolversResponse) + err := c.cc.Invoke(ctx, "/regen.data.v1.Query/Resolvers", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ResolverInfo(ctx context.Context, in *QueryResolverInfoRequest, opts ...grpc.CallOption) (*QueryResolverInfoResponse, error) { + out := new(QueryResolverInfoResponse) + err := c.cc.Invoke(ctx, "/regen.data.v1.Query/ResolverInfo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +// All implementations must embed UnimplementedQueryServer +// for forward compatibility +type QueryServer interface { + // ByHash queries data based on its ContentHash. + ByIRI(context.Context, *QueryByIRIRequest) (*QueryByIRIResponse, error) + // BySigner queries data based on signers. + BySigner(context.Context, *QueryBySignerRequest) (*QueryBySignerResponse, error) + // Signers queries signers based on IRI. + Signers(context.Context, *QuerySignersRequest) (*QuerySignersResponse, error) + // Resolvers returns the registered resolver URLs for the data IRI. + Resolvers(context.Context, *QueryResolversRequest) (*QueryResolversResponse, error) + // ResolverInfo returns information about a resolver. + ResolverInfo(context.Context, *QueryResolverInfoRequest) (*QueryResolverInfoResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (UnimplementedQueryServer) ByIRI(context.Context, *QueryByIRIRequest) (*QueryByIRIResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ByIRI not implemented") +} +func (UnimplementedQueryServer) BySigner(context.Context, *QueryBySignerRequest) (*QueryBySignerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BySigner not implemented") +} +func (UnimplementedQueryServer) Signers(context.Context, *QuerySignersRequest) (*QuerySignersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Signers not implemented") +} +func (UnimplementedQueryServer) Resolvers(context.Context, *QueryResolversRequest) (*QueryResolversResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Resolvers not implemented") +} +func (UnimplementedQueryServer) ResolverInfo(context.Context, *QueryResolverInfoRequest) (*QueryResolverInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResolverInfo not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} + +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueryServer will +// result in compilation errors. +type UnsafeQueryServer interface { + mustEmbedUnimplementedQueryServer() +} + +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { + s.RegisterService(&Query_ServiceDesc, srv) +} + +func _Query_ByIRI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryByIRIRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ByIRI(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.data.v1.Query/ByIRI", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ByIRI(ctx, req.(*QueryByIRIRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_BySigner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryBySignerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).BySigner(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.data.v1.Query/BySigner", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).BySigner(ctx, req.(*QueryBySignerRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Signers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QuerySignersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Signers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.data.v1.Query/Signers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Signers(ctx, req.(*QuerySignersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_Resolvers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryResolversRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Resolvers(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.data.v1.Query/Resolvers", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Resolvers(ctx, req.(*QueryResolversRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ResolverInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryResolverInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ResolverInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.data.v1.Query/ResolverInfo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ResolverInfo(ctx, req.(*QueryResolverInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Query_ServiceDesc is the grpc.ServiceDesc for Query service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Query_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "regen.data.v1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ByIRI", + Handler: _Query_ByIRI_Handler, + }, + { + MethodName: "BySigner", + Handler: _Query_BySigner_Handler, + }, + { + MethodName: "Signers", + Handler: _Query_Signers_Handler, + }, + { + MethodName: "Resolvers", + Handler: _Query_Resolvers_Handler, + }, + { + MethodName: "ResolverInfo", + Handler: _Query_ResolverInfo_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "regen/data/v1/query.proto", +} diff --git a/api/regen/data/v1alpha2/state.cosmos_orm.go b/api/regen/data/v1/state.cosmos_orm.go similarity index 99% rename from api/regen/data/v1alpha2/state.cosmos_orm.go rename to api/regen/data/v1/state.cosmos_orm.go index 73c664c99d..def211d18a 100644 --- a/api/regen/data/v1alpha2/state.cosmos_orm.go +++ b/api/regen/data/v1/state.cosmos_orm.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-cosmos-orm. DO NOT EDIT. -package datav1alpha2 +package datav1 import ( context "context" diff --git a/api/regen/data/v1alpha2/state.pulsar.go b/api/regen/data/v1/state.pulsar.go similarity index 83% rename from api/regen/data/v1alpha2/state.pulsar.go rename to api/regen/data/v1/state.pulsar.go index c206a1efa5..89a571a3b6 100644 --- a/api/regen/data/v1alpha2/state.pulsar.go +++ b/api/regen/data/v1/state.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package datav1alpha2 +package datav1 import ( fmt "fmt" @@ -21,8 +21,8 @@ var ( ) func init() { - file_regen_data_v1alpha2_state_proto_init() - md_DataID = File_regen_data_v1alpha2_state_proto.Messages().ByName("DataID") + file_regen_data_v1_state_proto_init() + md_DataID = File_regen_data_v1_state_proto.Messages().ByName("DataID") fd_DataID_id = md_DataID.Fields().ByName("id") fd_DataID_iri = md_DataID.Fields().ByName("iri") } @@ -36,7 +36,7 @@ func (x *DataID) ProtoReflect() protoreflect.Message { } func (x *DataID) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_state_proto_msgTypes[0] + mi := &file_regen_data_v1_state_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -119,15 +119,15 @@ func (x *fastReflection_DataID) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_DataID) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.data.v1alpha2.DataID.id": + case "regen.data.v1.DataID.id": return len(x.Id) != 0 - case "regen.data.v1alpha2.DataID.iri": + case "regen.data.v1.DataID.iri": return x.Iri != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataID")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataID")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataID does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataID does not contain field %s", fd.FullName())) } } @@ -139,15 +139,15 @@ func (x *fastReflection_DataID) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DataID) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.data.v1alpha2.DataID.id": + case "regen.data.v1.DataID.id": x.Id = nil - case "regen.data.v1alpha2.DataID.iri": + case "regen.data.v1.DataID.iri": x.Iri = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataID")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataID")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataID does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataID does not contain field %s", fd.FullName())) } } @@ -159,17 +159,17 @@ func (x *fastReflection_DataID) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_DataID) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.data.v1alpha2.DataID.id": + case "regen.data.v1.DataID.id": value := x.Id return protoreflect.ValueOfBytes(value) - case "regen.data.v1alpha2.DataID.iri": + case "regen.data.v1.DataID.iri": value := x.Iri return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataID")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataID")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataID does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataID does not contain field %s", descriptor.FullName())) } } @@ -185,15 +185,15 @@ func (x *fastReflection_DataID) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DataID) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.data.v1alpha2.DataID.id": + case "regen.data.v1.DataID.id": x.Id = value.Bytes() - case "regen.data.v1alpha2.DataID.iri": + case "regen.data.v1.DataID.iri": x.Iri = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataID")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataID")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataID does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataID does not contain field %s", fd.FullName())) } } @@ -209,15 +209,15 @@ func (x *fastReflection_DataID) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DataID) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.DataID.id": - panic(fmt.Errorf("field id of message regen.data.v1alpha2.DataID is not mutable")) - case "regen.data.v1alpha2.DataID.iri": - panic(fmt.Errorf("field iri of message regen.data.v1alpha2.DataID is not mutable")) + case "regen.data.v1.DataID.id": + panic(fmt.Errorf("field id of message regen.data.v1.DataID is not mutable")) + case "regen.data.v1.DataID.iri": + panic(fmt.Errorf("field iri of message regen.data.v1.DataID is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataID")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataID")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataID does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataID does not contain field %s", fd.FullName())) } } @@ -226,15 +226,15 @@ func (x *fastReflection_DataID) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_DataID) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.DataID.id": + case "regen.data.v1.DataID.id": return protoreflect.ValueOfBytes(nil) - case "regen.data.v1alpha2.DataID.iri": + case "regen.data.v1.DataID.iri": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataID")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataID")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataID does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataID does not contain field %s", fd.FullName())) } } @@ -244,7 +244,7 @@ func (x *fastReflection_DataID) NewField(fd protoreflect.FieldDescriptor) protor func (x *fastReflection_DataID) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.DataID", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.DataID", d.FullName())) } panic("unreachable") } @@ -507,8 +507,8 @@ var ( ) func init() { - file_regen_data_v1alpha2_state_proto_init() - md_DataAnchor = File_regen_data_v1alpha2_state_proto.Messages().ByName("DataAnchor") + file_regen_data_v1_state_proto_init() + md_DataAnchor = File_regen_data_v1_state_proto.Messages().ByName("DataAnchor") fd_DataAnchor_id = md_DataAnchor.Fields().ByName("id") fd_DataAnchor_timestamp = md_DataAnchor.Fields().ByName("timestamp") } @@ -522,7 +522,7 @@ func (x *DataAnchor) ProtoReflect() protoreflect.Message { } func (x *DataAnchor) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_state_proto_msgTypes[1] + mi := &file_regen_data_v1_state_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -605,15 +605,15 @@ func (x *fastReflection_DataAnchor) Range(f func(protoreflect.FieldDescriptor, p // a repeated field is populated if it is non-empty. func (x *fastReflection_DataAnchor) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.data.v1alpha2.DataAnchor.id": + case "regen.data.v1.DataAnchor.id": return len(x.Id) != 0 - case "regen.data.v1alpha2.DataAnchor.timestamp": + case "regen.data.v1.DataAnchor.timestamp": return x.Timestamp != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataAnchor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataAnchor")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataAnchor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataAnchor does not contain field %s", fd.FullName())) } } @@ -625,15 +625,15 @@ func (x *fastReflection_DataAnchor) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DataAnchor) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.data.v1alpha2.DataAnchor.id": + case "regen.data.v1.DataAnchor.id": x.Id = nil - case "regen.data.v1alpha2.DataAnchor.timestamp": + case "regen.data.v1.DataAnchor.timestamp": x.Timestamp = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataAnchor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataAnchor")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataAnchor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataAnchor does not contain field %s", fd.FullName())) } } @@ -645,17 +645,17 @@ func (x *fastReflection_DataAnchor) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_DataAnchor) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.data.v1alpha2.DataAnchor.id": + case "regen.data.v1.DataAnchor.id": value := x.Id return protoreflect.ValueOfBytes(value) - case "regen.data.v1alpha2.DataAnchor.timestamp": + case "regen.data.v1.DataAnchor.timestamp": value := x.Timestamp return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataAnchor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataAnchor")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataAnchor does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataAnchor does not contain field %s", descriptor.FullName())) } } @@ -671,15 +671,15 @@ func (x *fastReflection_DataAnchor) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DataAnchor) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.data.v1alpha2.DataAnchor.id": + case "regen.data.v1.DataAnchor.id": x.Id = value.Bytes() - case "regen.data.v1alpha2.DataAnchor.timestamp": + case "regen.data.v1.DataAnchor.timestamp": x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataAnchor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataAnchor")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataAnchor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataAnchor does not contain field %s", fd.FullName())) } } @@ -695,18 +695,18 @@ func (x *fastReflection_DataAnchor) Set(fd protoreflect.FieldDescriptor, value p // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DataAnchor) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.DataAnchor.timestamp": + case "regen.data.v1.DataAnchor.timestamp": if x.Timestamp == nil { x.Timestamp = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - case "regen.data.v1alpha2.DataAnchor.id": - panic(fmt.Errorf("field id of message regen.data.v1alpha2.DataAnchor is not mutable")) + case "regen.data.v1.DataAnchor.id": + panic(fmt.Errorf("field id of message regen.data.v1.DataAnchor is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataAnchor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataAnchor")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataAnchor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataAnchor does not contain field %s", fd.FullName())) } } @@ -715,16 +715,16 @@ func (x *fastReflection_DataAnchor) Mutable(fd protoreflect.FieldDescriptor) pro // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_DataAnchor) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.DataAnchor.id": + case "regen.data.v1.DataAnchor.id": return protoreflect.ValueOfBytes(nil) - case "regen.data.v1alpha2.DataAnchor.timestamp": + case "regen.data.v1.DataAnchor.timestamp": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataAnchor")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataAnchor")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataAnchor does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataAnchor does not contain field %s", fd.FullName())) } } @@ -734,7 +734,7 @@ func (x *fastReflection_DataAnchor) NewField(fd protoreflect.FieldDescriptor) pr func (x *fastReflection_DataAnchor) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.DataAnchor", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.DataAnchor", d.FullName())) } panic("unreachable") } @@ -1009,8 +1009,8 @@ var ( ) func init() { - file_regen_data_v1alpha2_state_proto_init() - md_DataSigner = File_regen_data_v1alpha2_state_proto.Messages().ByName("DataSigner") + file_regen_data_v1_state_proto_init() + md_DataSigner = File_regen_data_v1_state_proto.Messages().ByName("DataSigner") fd_DataSigner_id = md_DataSigner.Fields().ByName("id") fd_DataSigner_signer = md_DataSigner.Fields().ByName("signer") fd_DataSigner_timestamp = md_DataSigner.Fields().ByName("timestamp") @@ -1025,7 +1025,7 @@ func (x *DataSigner) ProtoReflect() protoreflect.Message { } func (x *DataSigner) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_state_proto_msgTypes[2] + mi := &file_regen_data_v1_state_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1114,17 +1114,17 @@ func (x *fastReflection_DataSigner) Range(f func(protoreflect.FieldDescriptor, p // a repeated field is populated if it is non-empty. func (x *fastReflection_DataSigner) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.data.v1alpha2.DataSigner.id": + case "regen.data.v1.DataSigner.id": return len(x.Id) != 0 - case "regen.data.v1alpha2.DataSigner.signer": + case "regen.data.v1.DataSigner.signer": return len(x.Signer) != 0 - case "regen.data.v1alpha2.DataSigner.timestamp": + case "regen.data.v1.DataSigner.timestamp": return x.Timestamp != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataSigner")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataSigner")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataSigner does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataSigner does not contain field %s", fd.FullName())) } } @@ -1136,17 +1136,17 @@ func (x *fastReflection_DataSigner) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DataSigner) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.data.v1alpha2.DataSigner.id": + case "regen.data.v1.DataSigner.id": x.Id = nil - case "regen.data.v1alpha2.DataSigner.signer": + case "regen.data.v1.DataSigner.signer": x.Signer = nil - case "regen.data.v1alpha2.DataSigner.timestamp": + case "regen.data.v1.DataSigner.timestamp": x.Timestamp = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataSigner")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataSigner")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataSigner does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataSigner does not contain field %s", fd.FullName())) } } @@ -1158,20 +1158,20 @@ func (x *fastReflection_DataSigner) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_DataSigner) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.data.v1alpha2.DataSigner.id": + case "regen.data.v1.DataSigner.id": value := x.Id return protoreflect.ValueOfBytes(value) - case "regen.data.v1alpha2.DataSigner.signer": + case "regen.data.v1.DataSigner.signer": value := x.Signer return protoreflect.ValueOfBytes(value) - case "regen.data.v1alpha2.DataSigner.timestamp": + case "regen.data.v1.DataSigner.timestamp": value := x.Timestamp return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataSigner")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataSigner")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataSigner does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataSigner does not contain field %s", descriptor.FullName())) } } @@ -1187,17 +1187,17 @@ func (x *fastReflection_DataSigner) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DataSigner) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.data.v1alpha2.DataSigner.id": + case "regen.data.v1.DataSigner.id": x.Id = value.Bytes() - case "regen.data.v1alpha2.DataSigner.signer": + case "regen.data.v1.DataSigner.signer": x.Signer = value.Bytes() - case "regen.data.v1alpha2.DataSigner.timestamp": + case "regen.data.v1.DataSigner.timestamp": x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataSigner")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataSigner")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataSigner does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataSigner does not contain field %s", fd.FullName())) } } @@ -1213,20 +1213,20 @@ func (x *fastReflection_DataSigner) Set(fd protoreflect.FieldDescriptor, value p // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DataSigner) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.DataSigner.timestamp": + case "regen.data.v1.DataSigner.timestamp": if x.Timestamp == nil { x.Timestamp = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - case "regen.data.v1alpha2.DataSigner.id": - panic(fmt.Errorf("field id of message regen.data.v1alpha2.DataSigner is not mutable")) - case "regen.data.v1alpha2.DataSigner.signer": - panic(fmt.Errorf("field signer of message regen.data.v1alpha2.DataSigner is not mutable")) + case "regen.data.v1.DataSigner.id": + panic(fmt.Errorf("field id of message regen.data.v1.DataSigner is not mutable")) + case "regen.data.v1.DataSigner.signer": + panic(fmt.Errorf("field signer of message regen.data.v1.DataSigner is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataSigner")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataSigner")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataSigner does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataSigner does not contain field %s", fd.FullName())) } } @@ -1235,18 +1235,18 @@ func (x *fastReflection_DataSigner) Mutable(fd protoreflect.FieldDescriptor) pro // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_DataSigner) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.DataSigner.id": + case "regen.data.v1.DataSigner.id": return protoreflect.ValueOfBytes(nil) - case "regen.data.v1alpha2.DataSigner.signer": + case "regen.data.v1.DataSigner.signer": return protoreflect.ValueOfBytes(nil) - case "regen.data.v1alpha2.DataSigner.timestamp": + case "regen.data.v1.DataSigner.timestamp": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataSigner")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataSigner")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataSigner does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataSigner does not contain field %s", fd.FullName())) } } @@ -1256,7 +1256,7 @@ func (x *fastReflection_DataSigner) NewField(fd protoreflect.FieldDescriptor) pr func (x *fastReflection_DataSigner) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.DataSigner", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.DataSigner", d.FullName())) } panic("unreachable") } @@ -1576,8 +1576,8 @@ var ( ) func init() { - file_regen_data_v1alpha2_state_proto_init() - md_ResolverInfo = File_regen_data_v1alpha2_state_proto.Messages().ByName("ResolverInfo") + file_regen_data_v1_state_proto_init() + md_ResolverInfo = File_regen_data_v1_state_proto.Messages().ByName("ResolverInfo") fd_ResolverInfo_id = md_ResolverInfo.Fields().ByName("id") fd_ResolverInfo_url = md_ResolverInfo.Fields().ByName("url") fd_ResolverInfo_manager = md_ResolverInfo.Fields().ByName("manager") @@ -1592,7 +1592,7 @@ func (x *ResolverInfo) ProtoReflect() protoreflect.Message { } func (x *ResolverInfo) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_state_proto_msgTypes[3] + mi := &file_regen_data_v1_state_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1681,17 +1681,17 @@ func (x *fastReflection_ResolverInfo) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_ResolverInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.data.v1alpha2.ResolverInfo.id": + case "regen.data.v1.ResolverInfo.id": return x.Id != uint64(0) - case "regen.data.v1alpha2.ResolverInfo.url": + case "regen.data.v1.ResolverInfo.url": return x.Url != "" - case "regen.data.v1alpha2.ResolverInfo.manager": + case "regen.data.v1.ResolverInfo.manager": return len(x.Manager) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.ResolverInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ResolverInfo")) } - panic(fmt.Errorf("message regen.data.v1alpha2.ResolverInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.ResolverInfo does not contain field %s", fd.FullName())) } } @@ -1703,17 +1703,17 @@ func (x *fastReflection_ResolverInfo) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ResolverInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.data.v1alpha2.ResolverInfo.id": + case "regen.data.v1.ResolverInfo.id": x.Id = uint64(0) - case "regen.data.v1alpha2.ResolverInfo.url": + case "regen.data.v1.ResolverInfo.url": x.Url = "" - case "regen.data.v1alpha2.ResolverInfo.manager": + case "regen.data.v1.ResolverInfo.manager": x.Manager = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.ResolverInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ResolverInfo")) } - panic(fmt.Errorf("message regen.data.v1alpha2.ResolverInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.ResolverInfo does not contain field %s", fd.FullName())) } } @@ -1725,20 +1725,20 @@ func (x *fastReflection_ResolverInfo) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ResolverInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.data.v1alpha2.ResolverInfo.id": + case "regen.data.v1.ResolverInfo.id": value := x.Id return protoreflect.ValueOfUint64(value) - case "regen.data.v1alpha2.ResolverInfo.url": + case "regen.data.v1.ResolverInfo.url": value := x.Url return protoreflect.ValueOfString(value) - case "regen.data.v1alpha2.ResolverInfo.manager": + case "regen.data.v1.ResolverInfo.manager": value := x.Manager return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.ResolverInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ResolverInfo")) } - panic(fmt.Errorf("message regen.data.v1alpha2.ResolverInfo does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.data.v1.ResolverInfo does not contain field %s", descriptor.FullName())) } } @@ -1754,17 +1754,17 @@ func (x *fastReflection_ResolverInfo) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ResolverInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.data.v1alpha2.ResolverInfo.id": + case "regen.data.v1.ResolverInfo.id": x.Id = value.Uint() - case "regen.data.v1alpha2.ResolverInfo.url": + case "regen.data.v1.ResolverInfo.url": x.Url = value.Interface().(string) - case "regen.data.v1alpha2.ResolverInfo.manager": + case "regen.data.v1.ResolverInfo.manager": x.Manager = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.ResolverInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ResolverInfo")) } - panic(fmt.Errorf("message regen.data.v1alpha2.ResolverInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.ResolverInfo does not contain field %s", fd.FullName())) } } @@ -1780,17 +1780,17 @@ func (x *fastReflection_ResolverInfo) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ResolverInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.ResolverInfo.id": - panic(fmt.Errorf("field id of message regen.data.v1alpha2.ResolverInfo is not mutable")) - case "regen.data.v1alpha2.ResolverInfo.url": - panic(fmt.Errorf("field url of message regen.data.v1alpha2.ResolverInfo is not mutable")) - case "regen.data.v1alpha2.ResolverInfo.manager": - panic(fmt.Errorf("field manager of message regen.data.v1alpha2.ResolverInfo is not mutable")) + case "regen.data.v1.ResolverInfo.id": + panic(fmt.Errorf("field id of message regen.data.v1.ResolverInfo is not mutable")) + case "regen.data.v1.ResolverInfo.url": + panic(fmt.Errorf("field url of message regen.data.v1.ResolverInfo is not mutable")) + case "regen.data.v1.ResolverInfo.manager": + panic(fmt.Errorf("field manager of message regen.data.v1.ResolverInfo is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.ResolverInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ResolverInfo")) } - panic(fmt.Errorf("message regen.data.v1alpha2.ResolverInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.ResolverInfo does not contain field %s", fd.FullName())) } } @@ -1799,17 +1799,17 @@ func (x *fastReflection_ResolverInfo) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ResolverInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.ResolverInfo.id": + case "regen.data.v1.ResolverInfo.id": return protoreflect.ValueOfUint64(uint64(0)) - case "regen.data.v1alpha2.ResolverInfo.url": + case "regen.data.v1.ResolverInfo.url": return protoreflect.ValueOfString("") - case "regen.data.v1alpha2.ResolverInfo.manager": + case "regen.data.v1.ResolverInfo.manager": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.ResolverInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ResolverInfo")) } - panic(fmt.Errorf("message regen.data.v1alpha2.ResolverInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.ResolverInfo does not contain field %s", fd.FullName())) } } @@ -1819,7 +1819,7 @@ func (x *fastReflection_ResolverInfo) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_ResolverInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.ResolverInfo", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.ResolverInfo", d.FullName())) } panic("unreachable") } @@ -2109,8 +2109,8 @@ var ( ) func init() { - file_regen_data_v1alpha2_state_proto_init() - md_DataResolver = File_regen_data_v1alpha2_state_proto.Messages().ByName("DataResolver") + file_regen_data_v1_state_proto_init() + md_DataResolver = File_regen_data_v1_state_proto.Messages().ByName("DataResolver") fd_DataResolver_id = md_DataResolver.Fields().ByName("id") fd_DataResolver_resolver_id = md_DataResolver.Fields().ByName("resolver_id") } @@ -2124,7 +2124,7 @@ func (x *DataResolver) ProtoReflect() protoreflect.Message { } func (x *DataResolver) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_state_proto_msgTypes[4] + mi := &file_regen_data_v1_state_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2207,15 +2207,15 @@ func (x *fastReflection_DataResolver) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_DataResolver) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.data.v1alpha2.DataResolver.id": + case "regen.data.v1.DataResolver.id": return len(x.Id) != 0 - case "regen.data.v1alpha2.DataResolver.resolver_id": + case "regen.data.v1.DataResolver.resolver_id": return x.ResolverId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataResolver")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataResolver")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataResolver does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataResolver does not contain field %s", fd.FullName())) } } @@ -2227,15 +2227,15 @@ func (x *fastReflection_DataResolver) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DataResolver) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.data.v1alpha2.DataResolver.id": + case "regen.data.v1.DataResolver.id": x.Id = nil - case "regen.data.v1alpha2.DataResolver.resolver_id": + case "regen.data.v1.DataResolver.resolver_id": x.ResolverId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataResolver")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataResolver")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataResolver does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataResolver does not contain field %s", fd.FullName())) } } @@ -2247,17 +2247,17 @@ func (x *fastReflection_DataResolver) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_DataResolver) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.data.v1alpha2.DataResolver.id": + case "regen.data.v1.DataResolver.id": value := x.Id return protoreflect.ValueOfBytes(value) - case "regen.data.v1alpha2.DataResolver.resolver_id": + case "regen.data.v1.DataResolver.resolver_id": value := x.ResolverId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataResolver")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataResolver")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataResolver does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataResolver does not contain field %s", descriptor.FullName())) } } @@ -2273,15 +2273,15 @@ func (x *fastReflection_DataResolver) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DataResolver) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.data.v1alpha2.DataResolver.id": + case "regen.data.v1.DataResolver.id": x.Id = value.Bytes() - case "regen.data.v1alpha2.DataResolver.resolver_id": + case "regen.data.v1.DataResolver.resolver_id": x.ResolverId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataResolver")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataResolver")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataResolver does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataResolver does not contain field %s", fd.FullName())) } } @@ -2297,15 +2297,15 @@ func (x *fastReflection_DataResolver) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DataResolver) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.DataResolver.id": - panic(fmt.Errorf("field id of message regen.data.v1alpha2.DataResolver is not mutable")) - case "regen.data.v1alpha2.DataResolver.resolver_id": - panic(fmt.Errorf("field resolver_id of message regen.data.v1alpha2.DataResolver is not mutable")) + case "regen.data.v1.DataResolver.id": + panic(fmt.Errorf("field id of message regen.data.v1.DataResolver is not mutable")) + case "regen.data.v1.DataResolver.resolver_id": + panic(fmt.Errorf("field resolver_id of message regen.data.v1.DataResolver is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataResolver")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataResolver")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataResolver does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataResolver does not contain field %s", fd.FullName())) } } @@ -2314,15 +2314,15 @@ func (x *fastReflection_DataResolver) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_DataResolver) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.DataResolver.id": + case "regen.data.v1.DataResolver.id": return protoreflect.ValueOfBytes(nil) - case "regen.data.v1alpha2.DataResolver.resolver_id": + case "regen.data.v1.DataResolver.resolver_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.DataResolver")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.DataResolver")) } - panic(fmt.Errorf("message regen.data.v1alpha2.DataResolver does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1.DataResolver does not contain field %s", fd.FullName())) } } @@ -2332,7 +2332,7 @@ func (x *fastReflection_DataResolver) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_DataResolver) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.DataResolver", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.DataResolver", d.FullName())) } panic("unreachable") } @@ -2576,7 +2576,7 @@ func (x *fastReflection_DataResolver) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc v3.19.1 -// source: regen/data/v1alpha2/state.proto +// source: regen/data/v1/state.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -2600,7 +2600,7 @@ type DataID struct { func (x *DataID) Reset() { *x = DataID{} if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_state_proto_msgTypes[0] + mi := &file_regen_data_v1_state_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2614,7 +2614,7 @@ func (*DataID) ProtoMessage() {} // Deprecated: Use DataID.ProtoReflect.Descriptor instead. func (*DataID) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_state_proto_rawDescGZIP(), []int{0} + return file_regen_data_v1_state_proto_rawDescGZIP(), []int{0} } func (x *DataID) GetId() []byte { @@ -2647,7 +2647,7 @@ type DataAnchor struct { func (x *DataAnchor) Reset() { *x = DataAnchor{} if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_state_proto_msgTypes[1] + mi := &file_regen_data_v1_state_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2661,7 +2661,7 @@ func (*DataAnchor) ProtoMessage() {} // Deprecated: Use DataAnchor.ProtoReflect.Descriptor instead. func (*DataAnchor) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_state_proto_rawDescGZIP(), []int{1} + return file_regen_data_v1_state_proto_rawDescGZIP(), []int{1} } func (x *DataAnchor) GetId() []byte { @@ -2695,7 +2695,7 @@ type DataSigner struct { func (x *DataSigner) Reset() { *x = DataSigner{} if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_state_proto_msgTypes[2] + mi := &file_regen_data_v1_state_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2709,7 +2709,7 @@ func (*DataSigner) ProtoMessage() {} // Deprecated: Use DataSigner.ProtoReflect.Descriptor instead. func (*DataSigner) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_state_proto_rawDescGZIP(), []int{2} + return file_regen_data_v1_state_proto_rawDescGZIP(), []int{2} } func (x *DataSigner) GetId() []byte { @@ -2751,7 +2751,7 @@ type ResolverInfo struct { func (x *ResolverInfo) Reset() { *x = ResolverInfo{} if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_state_proto_msgTypes[3] + mi := &file_regen_data_v1_state_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2765,7 +2765,7 @@ func (*ResolverInfo) ProtoMessage() {} // Deprecated: Use ResolverInfo.ProtoReflect.Descriptor instead. func (*ResolverInfo) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_state_proto_rawDescGZIP(), []int{3} + return file_regen_data_v1_state_proto_rawDescGZIP(), []int{3} } func (x *ResolverInfo) GetId() uint64 { @@ -2805,7 +2805,7 @@ type DataResolver struct { func (x *DataResolver) Reset() { *x = DataResolver{} if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_state_proto_msgTypes[4] + mi := &file_regen_data_v1_state_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2819,7 +2819,7 @@ func (*DataResolver) ProtoMessage() {} // Deprecated: Use DataResolver.ProtoReflect.Descriptor instead. func (*DataResolver) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_state_proto_rawDescGZIP(), []int{4} + return file_regen_data_v1_state_proto_rawDescGZIP(), []int{4} } func (x *DataResolver) GetId() []byte { @@ -2836,90 +2836,87 @@ func (x *DataResolver) GetResolverId() uint64 { return 0 } -var File_regen_data_v1alpha2_state_proto protoreflect.FileDescriptor - -var file_regen_data_v1alpha2_state_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x13, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x1a, 0x1d, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6f, - 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6f, 0x72, 0x6d, 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, 0x45, 0x0a, 0x06, 0x44, 0x61, 0x74, 0x61, 0x49, 0x44, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x10, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, - 0x72, 0x69, 0x3a, 0x19, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x13, 0x0a, 0x04, 0x0a, 0x02, 0x69, 0x64, - 0x12, 0x09, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x10, 0x01, 0x18, 0x01, 0x18, 0x01, 0x22, 0x66, 0x0a, - 0x0a, 0x44, 0x61, 0x74, 0x61, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x3a, 0x0e, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x08, 0x0a, 0x04, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x02, 0x22, 0x85, 0x01, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x69, - 0x67, 0x6e, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x09, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 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, 0x52, 0x09, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x3a, 0x15, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x0f, 0x0a, 0x0b, - 0x0a, 0x09, 0x69, 0x64, 0x2c, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x22, 0x74, 0x0a, - 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, - 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, - 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x3a, 0x28, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, - 0x22, 0x0a, 0x06, 0x0a, 0x02, 0x69, 0x64, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x03, 0x75, 0x72, 0x6c, - 0x10, 0x01, 0x18, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x10, - 0x02, 0x18, 0x04, 0x22, 0x5b, 0x0a, 0x0c, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x6c, - 0x76, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, - 0x65, 0x72, 0x49, 0x64, 0x3a, 0x1a, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x14, 0x0a, 0x10, 0x0a, 0x0e, - 0x69, 0x64, 0x2c, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, - 0x42, 0xdf, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x0a, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, - 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, - 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, 0xaa, 0x02, 0x13, 0x52, - 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x32, 0xca, 0x02, 0x13, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, - 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xe2, 0x02, 0x1f, 0x52, 0x65, 0x67, 0x65, 0x6e, - 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x52, 0x65, 0x67, - 0x65, 0x6e, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_regen_data_v1_state_proto protoreflect.FileDescriptor + +var file_regen_data_v1_state_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x1a, 0x1d, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2f, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, + 0x6f, 0x72, 0x6d, 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, 0x45, 0x0a, 0x06, 0x44, 0x61, + 0x74, 0x61, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x69, 0x72, 0x69, 0x3a, 0x19, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x13, 0x0a, 0x04, + 0x0a, 0x02, 0x69, 0x64, 0x12, 0x09, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x10, 0x01, 0x18, 0x01, 0x18, + 0x01, 0x22, 0x66, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x3a, 0x0e, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, + 0x08, 0x0a, 0x04, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x22, 0x85, 0x01, 0x0a, 0x0a, 0x44, 0x61, + 0x74, 0x61, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, + 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 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, 0x52, + 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x3a, 0x15, 0xf2, 0x9e, 0xd3, 0x8e, + 0x03, 0x0f, 0x0a, 0x0b, 0x0a, 0x09, 0x69, 0x64, 0x2c, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, + 0x03, 0x22, 0x74, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, + 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x75, 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x3a, 0x28, 0xf2, + 0x9e, 0xd3, 0x8e, 0x03, 0x22, 0x0a, 0x06, 0x0a, 0x02, 0x69, 0x64, 0x10, 0x01, 0x12, 0x09, 0x0a, + 0x03, 0x75, 0x72, 0x6c, 0x10, 0x01, 0x18, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x72, 0x10, 0x02, 0x18, 0x04, 0x22, 0x5b, 0x0a, 0x0c, 0x44, 0x61, 0x74, 0x61, 0x52, + 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6c, + 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, 0x65, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x64, 0x3a, 0x1a, 0xf2, 0x9e, 0xd3, 0x8e, 0x03, 0x14, + 0x0a, 0x10, 0x0a, 0x0e, 0x69, 0x64, 0x2c, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x18, 0x05, 0x42, 0xb5, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, + 0x31, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, 0xaa, 0x02, + 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x31, 0xca, 0x02, + 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0xe2, 0x02, + 0x19, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x52, 0x65, 0x67, + 0x65, 0x6e, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( - file_regen_data_v1alpha2_state_proto_rawDescOnce sync.Once - file_regen_data_v1alpha2_state_proto_rawDescData = file_regen_data_v1alpha2_state_proto_rawDesc + file_regen_data_v1_state_proto_rawDescOnce sync.Once + file_regen_data_v1_state_proto_rawDescData = file_regen_data_v1_state_proto_rawDesc ) -func file_regen_data_v1alpha2_state_proto_rawDescGZIP() []byte { - file_regen_data_v1alpha2_state_proto_rawDescOnce.Do(func() { - file_regen_data_v1alpha2_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_regen_data_v1alpha2_state_proto_rawDescData) +func file_regen_data_v1_state_proto_rawDescGZIP() []byte { + file_regen_data_v1_state_proto_rawDescOnce.Do(func() { + file_regen_data_v1_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_regen_data_v1_state_proto_rawDescData) }) - return file_regen_data_v1alpha2_state_proto_rawDescData + return file_regen_data_v1_state_proto_rawDescData } -var file_regen_data_v1alpha2_state_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_regen_data_v1alpha2_state_proto_goTypes = []interface{}{ - (*DataID)(nil), // 0: regen.data.v1alpha2.DataID - (*DataAnchor)(nil), // 1: regen.data.v1alpha2.DataAnchor - (*DataSigner)(nil), // 2: regen.data.v1alpha2.DataSigner - (*ResolverInfo)(nil), // 3: regen.data.v1alpha2.ResolverInfo - (*DataResolver)(nil), // 4: regen.data.v1alpha2.DataResolver +var file_regen_data_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_regen_data_v1_state_proto_goTypes = []interface{}{ + (*DataID)(nil), // 0: regen.data.v1.DataID + (*DataAnchor)(nil), // 1: regen.data.v1.DataAnchor + (*DataSigner)(nil), // 2: regen.data.v1.DataSigner + (*ResolverInfo)(nil), // 3: regen.data.v1.ResolverInfo + (*DataResolver)(nil), // 4: regen.data.v1.DataResolver (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp } -var file_regen_data_v1alpha2_state_proto_depIdxs = []int32{ - 5, // 0: regen.data.v1alpha2.DataAnchor.timestamp:type_name -> google.protobuf.Timestamp - 5, // 1: regen.data.v1alpha2.DataSigner.timestamp:type_name -> google.protobuf.Timestamp +var file_regen_data_v1_state_proto_depIdxs = []int32{ + 5, // 0: regen.data.v1.DataAnchor.timestamp:type_name -> google.protobuf.Timestamp + 5, // 1: regen.data.v1.DataSigner.timestamp:type_name -> google.protobuf.Timestamp 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -2927,13 +2924,13 @@ var file_regen_data_v1alpha2_state_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_regen_data_v1alpha2_state_proto_init() } -func file_regen_data_v1alpha2_state_proto_init() { - if File_regen_data_v1alpha2_state_proto != nil { +func init() { file_regen_data_v1_state_proto_init() } +func file_regen_data_v1_state_proto_init() { + if File_regen_data_v1_state_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_regen_data_v1alpha2_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_regen_data_v1_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DataID); i { case 0: return &v.state @@ -2945,7 +2942,7 @@ func file_regen_data_v1alpha2_state_proto_init() { return nil } } - file_regen_data_v1alpha2_state_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_regen_data_v1_state_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DataAnchor); i { case 0: return &v.state @@ -2957,7 +2954,7 @@ func file_regen_data_v1alpha2_state_proto_init() { return nil } } - file_regen_data_v1alpha2_state_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_regen_data_v1_state_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DataSigner); i { case 0: return &v.state @@ -2969,7 +2966,7 @@ func file_regen_data_v1alpha2_state_proto_init() { return nil } } - file_regen_data_v1alpha2_state_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_regen_data_v1_state_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResolverInfo); i { case 0: return &v.state @@ -2981,7 +2978,7 @@ func file_regen_data_v1alpha2_state_proto_init() { return nil } } - file_regen_data_v1alpha2_state_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_regen_data_v1_state_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DataResolver); i { case 0: return &v.state @@ -2998,18 +2995,18 @@ func file_regen_data_v1alpha2_state_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_regen_data_v1alpha2_state_proto_rawDesc, + RawDescriptor: file_regen_data_v1_state_proto_rawDesc, NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_regen_data_v1alpha2_state_proto_goTypes, - DependencyIndexes: file_regen_data_v1alpha2_state_proto_depIdxs, - MessageInfos: file_regen_data_v1alpha2_state_proto_msgTypes, + GoTypes: file_regen_data_v1_state_proto_goTypes, + DependencyIndexes: file_regen_data_v1_state_proto_depIdxs, + MessageInfos: file_regen_data_v1_state_proto_msgTypes, }.Build() - File_regen_data_v1alpha2_state_proto = out.File - file_regen_data_v1alpha2_state_proto_rawDesc = nil - file_regen_data_v1alpha2_state_proto_goTypes = nil - file_regen_data_v1alpha2_state_proto_depIdxs = nil + File_regen_data_v1_state_proto = out.File + file_regen_data_v1_state_proto_rawDesc = nil + file_regen_data_v1_state_proto_goTypes = nil + file_regen_data_v1_state_proto_depIdxs = nil } diff --git a/api/regen/data/v1/tx.pulsar.go b/api/regen/data/v1/tx.pulsar.go new file mode 100644 index 0000000000..d7791df8ad --- /dev/null +++ b/api/regen/data/v1/tx.pulsar.go @@ -0,0 +1,4391 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package datav1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/gogo/protobuf/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" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_MsgAnchorData protoreflect.MessageDescriptor + fd_MsgAnchorData_sender protoreflect.FieldDescriptor + fd_MsgAnchorData_hash protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_tx_proto_init() + md_MsgAnchorData = File_regen_data_v1_tx_proto.Messages().ByName("MsgAnchorData") + fd_MsgAnchorData_sender = md_MsgAnchorData.Fields().ByName("sender") + fd_MsgAnchorData_hash = md_MsgAnchorData.Fields().ByName("hash") +} + +var _ protoreflect.Message = (*fastReflection_MsgAnchorData)(nil) + +type fastReflection_MsgAnchorData MsgAnchorData + +func (x *MsgAnchorData) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAnchorData)(x) +} + +func (x *MsgAnchorData) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_tx_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_MsgAnchorData_messageType fastReflection_MsgAnchorData_messageType +var _ protoreflect.MessageType = fastReflection_MsgAnchorData_messageType{} + +type fastReflection_MsgAnchorData_messageType struct{} + +func (x fastReflection_MsgAnchorData_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAnchorData)(nil) +} +func (x fastReflection_MsgAnchorData_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAnchorData) +} +func (x fastReflection_MsgAnchorData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAnchorData +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAnchorData) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAnchorData +} + +// 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_MsgAnchorData) Type() protoreflect.MessageType { + return _fastReflection_MsgAnchorData_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAnchorData) New() protoreflect.Message { + return new(fastReflection_MsgAnchorData) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAnchorData) Interface() protoreflect.ProtoMessage { + return (*MsgAnchorData)(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_MsgAnchorData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Sender != "" { + value := protoreflect.ValueOfString(x.Sender) + if !f(fd_MsgAnchorData_sender, value) { + return + } + } + if x.Hash != nil { + value := protoreflect.ValueOfMessage(x.Hash.ProtoReflect()) + if !f(fd_MsgAnchorData_hash, 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_MsgAnchorData) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.MsgAnchorData.sender": + return x.Sender != "" + case "regen.data.v1.MsgAnchorData.hash": + return x.Hash != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgAnchorData")) + } + panic(fmt.Errorf("message regen.data.v1.MsgAnchorData 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_MsgAnchorData) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.MsgAnchorData.sender": + x.Sender = "" + case "regen.data.v1.MsgAnchorData.hash": + x.Hash = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgAnchorData")) + } + panic(fmt.Errorf("message regen.data.v1.MsgAnchorData 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_MsgAnchorData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.MsgAnchorData.sender": + value := x.Sender + return protoreflect.ValueOfString(value) + case "regen.data.v1.MsgAnchorData.hash": + value := x.Hash + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgAnchorData")) + } + panic(fmt.Errorf("message regen.data.v1.MsgAnchorData 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_MsgAnchorData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.MsgAnchorData.sender": + x.Sender = value.Interface().(string) + case "regen.data.v1.MsgAnchorData.hash": + x.Hash = value.Message().Interface().(*ContentHash) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgAnchorData")) + } + panic(fmt.Errorf("message regen.data.v1.MsgAnchorData 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_MsgAnchorData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.MsgAnchorData.hash": + if x.Hash == nil { + x.Hash = new(ContentHash) + } + return protoreflect.ValueOfMessage(x.Hash.ProtoReflect()) + case "regen.data.v1.MsgAnchorData.sender": + panic(fmt.Errorf("field sender of message regen.data.v1.MsgAnchorData is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgAnchorData")) + } + panic(fmt.Errorf("message regen.data.v1.MsgAnchorData 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_MsgAnchorData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.MsgAnchorData.sender": + return protoreflect.ValueOfString("") + case "regen.data.v1.MsgAnchorData.hash": + m := new(ContentHash) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgAnchorData")) + } + panic(fmt.Errorf("message regen.data.v1.MsgAnchorData 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_MsgAnchorData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.MsgAnchorData", 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_MsgAnchorData) 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_MsgAnchorData) 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_MsgAnchorData) 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_MsgAnchorData) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAnchorData) + 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.Sender) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Hash != nil { + l = options.Size(x.Hash) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgAnchorData) + 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.Hash != nil { + encoded, err := options.Marshal(x.Hash) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Sender) > 0 { + i -= len(x.Sender) + copy(dAtA[i:], x.Sender) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Sender))) + 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().(*MsgAnchorData) + 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: MsgAnchorData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAnchorData: 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 Sender", 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.Sender = 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 Hash", 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.Hash == nil { + x.Hash = &ContentHash{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Hash); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgAnchorDataResponse protoreflect.MessageDescriptor + fd_MsgAnchorDataResponse_timestamp protoreflect.FieldDescriptor + fd_MsgAnchorDataResponse_iri protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_tx_proto_init() + md_MsgAnchorDataResponse = File_regen_data_v1_tx_proto.Messages().ByName("MsgAnchorDataResponse") + fd_MsgAnchorDataResponse_timestamp = md_MsgAnchorDataResponse.Fields().ByName("timestamp") + fd_MsgAnchorDataResponse_iri = md_MsgAnchorDataResponse.Fields().ByName("iri") +} + +var _ protoreflect.Message = (*fastReflection_MsgAnchorDataResponse)(nil) + +type fastReflection_MsgAnchorDataResponse MsgAnchorDataResponse + +func (x *MsgAnchorDataResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgAnchorDataResponse)(x) +} + +func (x *MsgAnchorDataResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_tx_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_MsgAnchorDataResponse_messageType fastReflection_MsgAnchorDataResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgAnchorDataResponse_messageType{} + +type fastReflection_MsgAnchorDataResponse_messageType struct{} + +func (x fastReflection_MsgAnchorDataResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgAnchorDataResponse)(nil) +} +func (x fastReflection_MsgAnchorDataResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgAnchorDataResponse) +} +func (x fastReflection_MsgAnchorDataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAnchorDataResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgAnchorDataResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgAnchorDataResponse +} + +// 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_MsgAnchorDataResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgAnchorDataResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgAnchorDataResponse) New() protoreflect.Message { + return new(fastReflection_MsgAnchorDataResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgAnchorDataResponse) Interface() protoreflect.ProtoMessage { + return (*MsgAnchorDataResponse)(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_MsgAnchorDataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_MsgAnchorDataResponse_timestamp, value) { + return + } + } + if x.Iri != "" { + value := protoreflect.ValueOfString(x.Iri) + if !f(fd_MsgAnchorDataResponse_iri, 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_MsgAnchorDataResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.MsgAnchorDataResponse.timestamp": + return x.Timestamp != nil + case "regen.data.v1.MsgAnchorDataResponse.iri": + return x.Iri != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgAnchorDataResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgAnchorDataResponse 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_MsgAnchorDataResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.MsgAnchorDataResponse.timestamp": + x.Timestamp = nil + case "regen.data.v1.MsgAnchorDataResponse.iri": + x.Iri = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgAnchorDataResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgAnchorDataResponse 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_MsgAnchorDataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.MsgAnchorDataResponse.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.data.v1.MsgAnchorDataResponse.iri": + value := x.Iri + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgAnchorDataResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgAnchorDataResponse 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_MsgAnchorDataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.MsgAnchorDataResponse.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "regen.data.v1.MsgAnchorDataResponse.iri": + x.Iri = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgAnchorDataResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgAnchorDataResponse 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_MsgAnchorDataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.MsgAnchorDataResponse.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "regen.data.v1.MsgAnchorDataResponse.iri": + panic(fmt.Errorf("field iri of message regen.data.v1.MsgAnchorDataResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgAnchorDataResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgAnchorDataResponse 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_MsgAnchorDataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.MsgAnchorDataResponse.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.data.v1.MsgAnchorDataResponse.iri": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgAnchorDataResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgAnchorDataResponse 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_MsgAnchorDataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.MsgAnchorDataResponse", 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_MsgAnchorDataResponse) 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_MsgAnchorDataResponse) 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_MsgAnchorDataResponse) 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_MsgAnchorDataResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgAnchorDataResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Iri) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgAnchorDataResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Iri) > 0 { + i -= len(x.Iri) + copy(dAtA[i:], x.Iri) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Iri))) + i-- + dAtA[i] = 0x12 + } + if x.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgAnchorDataResponse) + 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: MsgAnchorDataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgAnchorDataResponse: 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 Timestamp", 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.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Iri", 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.Iri = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_MsgSignData_1_list)(nil) + +type _MsgSignData_1_list struct { + list *[]string +} + +func (x *_MsgSignData_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgSignData_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_MsgSignData_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_MsgSignData_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgSignData_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgSignData at list field Signers as it is not of Message kind")) +} + +func (x *_MsgSignData_1_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_MsgSignData_1_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_MsgSignData_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgSignData protoreflect.MessageDescriptor + fd_MsgSignData_signers protoreflect.FieldDescriptor + fd_MsgSignData_hash protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_tx_proto_init() + md_MsgSignData = File_regen_data_v1_tx_proto.Messages().ByName("MsgSignData") + fd_MsgSignData_signers = md_MsgSignData.Fields().ByName("signers") + fd_MsgSignData_hash = md_MsgSignData.Fields().ByName("hash") +} + +var _ protoreflect.Message = (*fastReflection_MsgSignData)(nil) + +type fastReflection_MsgSignData MsgSignData + +func (x *MsgSignData) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSignData)(x) +} + +func (x *MsgSignData) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_tx_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_MsgSignData_messageType fastReflection_MsgSignData_messageType +var _ protoreflect.MessageType = fastReflection_MsgSignData_messageType{} + +type fastReflection_MsgSignData_messageType struct{} + +func (x fastReflection_MsgSignData_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSignData)(nil) +} +func (x fastReflection_MsgSignData_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSignData) +} +func (x fastReflection_MsgSignData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSignData +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSignData) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSignData +} + +// 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_MsgSignData) Type() protoreflect.MessageType { + return _fastReflection_MsgSignData_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSignData) New() protoreflect.Message { + return new(fastReflection_MsgSignData) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSignData) Interface() protoreflect.ProtoMessage { + return (*MsgSignData)(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_MsgSignData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Signers) != 0 { + value := protoreflect.ValueOfList(&_MsgSignData_1_list{list: &x.Signers}) + if !f(fd_MsgSignData_signers, value) { + return + } + } + if x.Hash != nil { + value := protoreflect.ValueOfMessage(x.Hash.ProtoReflect()) + if !f(fd_MsgSignData_hash, 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_MsgSignData) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.MsgSignData.signers": + return len(x.Signers) != 0 + case "regen.data.v1.MsgSignData.hash": + return x.Hash != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgSignData")) + } + panic(fmt.Errorf("message regen.data.v1.MsgSignData 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_MsgSignData) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.MsgSignData.signers": + x.Signers = nil + case "regen.data.v1.MsgSignData.hash": + x.Hash = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgSignData")) + } + panic(fmt.Errorf("message regen.data.v1.MsgSignData 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_MsgSignData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.MsgSignData.signers": + if len(x.Signers) == 0 { + return protoreflect.ValueOfList(&_MsgSignData_1_list{}) + } + listValue := &_MsgSignData_1_list{list: &x.Signers} + return protoreflect.ValueOfList(listValue) + case "regen.data.v1.MsgSignData.hash": + value := x.Hash + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgSignData")) + } + panic(fmt.Errorf("message regen.data.v1.MsgSignData 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_MsgSignData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.MsgSignData.signers": + lv := value.List() + clv := lv.(*_MsgSignData_1_list) + x.Signers = *clv.list + case "regen.data.v1.MsgSignData.hash": + x.Hash = value.Message().Interface().(*ContentHash_Graph) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgSignData")) + } + panic(fmt.Errorf("message regen.data.v1.MsgSignData 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_MsgSignData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.MsgSignData.signers": + if x.Signers == nil { + x.Signers = []string{} + } + value := &_MsgSignData_1_list{list: &x.Signers} + return protoreflect.ValueOfList(value) + case "regen.data.v1.MsgSignData.hash": + if x.Hash == nil { + x.Hash = new(ContentHash_Graph) + } + return protoreflect.ValueOfMessage(x.Hash.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgSignData")) + } + panic(fmt.Errorf("message regen.data.v1.MsgSignData 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_MsgSignData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.MsgSignData.signers": + list := []string{} + return protoreflect.ValueOfList(&_MsgSignData_1_list{list: &list}) + case "regen.data.v1.MsgSignData.hash": + m := new(ContentHash_Graph) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgSignData")) + } + panic(fmt.Errorf("message regen.data.v1.MsgSignData 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_MsgSignData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.MsgSignData", 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_MsgSignData) 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_MsgSignData) 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_MsgSignData) 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_MsgSignData) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSignData) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Signers) > 0 { + for _, s := range x.Signers { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Hash != nil { + l = options.Size(x.Hash) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgSignData) + 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.Hash != nil { + encoded, err := options.Marshal(x.Hash) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Signers) > 0 { + for iNdEx := len(x.Signers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Signers[iNdEx]) + copy(dAtA[i:], x.Signers[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signers[iNdEx]))) + 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().(*MsgSignData) + 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: MsgSignData: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSignData: 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 Signers", 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.Signers = append(x.Signers, 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 Hash", 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.Hash == nil { + x.Hash = &ContentHash_Graph{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Hash); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgSignDataResponse protoreflect.MessageDescriptor +) + +func init() { + file_regen_data_v1_tx_proto_init() + md_MsgSignDataResponse = File_regen_data_v1_tx_proto.Messages().ByName("MsgSignDataResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSignDataResponse)(nil) + +type fastReflection_MsgSignDataResponse MsgSignDataResponse + +func (x *MsgSignDataResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSignDataResponse)(x) +} + +func (x *MsgSignDataResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_tx_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_MsgSignDataResponse_messageType fastReflection_MsgSignDataResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSignDataResponse_messageType{} + +type fastReflection_MsgSignDataResponse_messageType struct{} + +func (x fastReflection_MsgSignDataResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSignDataResponse)(nil) +} +func (x fastReflection_MsgSignDataResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSignDataResponse) +} +func (x fastReflection_MsgSignDataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSignDataResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSignDataResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSignDataResponse +} + +// 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_MsgSignDataResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSignDataResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSignDataResponse) New() protoreflect.Message { + return new(fastReflection_MsgSignDataResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSignDataResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSignDataResponse)(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_MsgSignDataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_MsgSignDataResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgSignDataResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgSignDataResponse 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_MsgSignDataResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgSignDataResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgSignDataResponse 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_MsgSignDataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgSignDataResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgSignDataResponse 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_MsgSignDataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgSignDataResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgSignDataResponse 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_MsgSignDataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgSignDataResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgSignDataResponse 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_MsgSignDataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgSignDataResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgSignDataResponse 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_MsgSignDataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.MsgSignDataResponse", 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_MsgSignDataResponse) 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_MsgSignDataResponse) 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_MsgSignDataResponse) 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_MsgSignDataResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSignDataResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.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().(*MsgSignDataResponse) + 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 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().(*MsgSignDataResponse) + 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: MsgSignDataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSignDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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_MsgDefineResolver protoreflect.MessageDescriptor + fd_MsgDefineResolver_manager protoreflect.FieldDescriptor + fd_MsgDefineResolver_resolver_url protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_tx_proto_init() + md_MsgDefineResolver = File_regen_data_v1_tx_proto.Messages().ByName("MsgDefineResolver") + fd_MsgDefineResolver_manager = md_MsgDefineResolver.Fields().ByName("manager") + fd_MsgDefineResolver_resolver_url = md_MsgDefineResolver.Fields().ByName("resolver_url") +} + +var _ protoreflect.Message = (*fastReflection_MsgDefineResolver)(nil) + +type fastReflection_MsgDefineResolver MsgDefineResolver + +func (x *MsgDefineResolver) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDefineResolver)(x) +} + +func (x *MsgDefineResolver) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_tx_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_MsgDefineResolver_messageType fastReflection_MsgDefineResolver_messageType +var _ protoreflect.MessageType = fastReflection_MsgDefineResolver_messageType{} + +type fastReflection_MsgDefineResolver_messageType struct{} + +func (x fastReflection_MsgDefineResolver_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDefineResolver)(nil) +} +func (x fastReflection_MsgDefineResolver_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDefineResolver) +} +func (x fastReflection_MsgDefineResolver_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDefineResolver +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgDefineResolver) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDefineResolver +} + +// 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_MsgDefineResolver) Type() protoreflect.MessageType { + return _fastReflection_MsgDefineResolver_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgDefineResolver) New() protoreflect.Message { + return new(fastReflection_MsgDefineResolver) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgDefineResolver) Interface() protoreflect.ProtoMessage { + return (*MsgDefineResolver)(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_MsgDefineResolver) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Manager != "" { + value := protoreflect.ValueOfString(x.Manager) + if !f(fd_MsgDefineResolver_manager, value) { + return + } + } + if x.ResolverUrl != "" { + value := protoreflect.ValueOfString(x.ResolverUrl) + if !f(fd_MsgDefineResolver_resolver_url, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgDefineResolver) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.MsgDefineResolver.manager": + return x.Manager != "" + case "regen.data.v1.MsgDefineResolver.resolver_url": + return x.ResolverUrl != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgDefineResolver")) + } + panic(fmt.Errorf("message regen.data.v1.MsgDefineResolver 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_MsgDefineResolver) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.MsgDefineResolver.manager": + x.Manager = "" + case "regen.data.v1.MsgDefineResolver.resolver_url": + x.ResolverUrl = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgDefineResolver")) + } + panic(fmt.Errorf("message regen.data.v1.MsgDefineResolver 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_MsgDefineResolver) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.MsgDefineResolver.manager": + value := x.Manager + return protoreflect.ValueOfString(value) + case "regen.data.v1.MsgDefineResolver.resolver_url": + value := x.ResolverUrl + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgDefineResolver")) + } + panic(fmt.Errorf("message regen.data.v1.MsgDefineResolver 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_MsgDefineResolver) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.MsgDefineResolver.manager": + x.Manager = value.Interface().(string) + case "regen.data.v1.MsgDefineResolver.resolver_url": + x.ResolverUrl = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgDefineResolver")) + } + panic(fmt.Errorf("message regen.data.v1.MsgDefineResolver 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_MsgDefineResolver) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.MsgDefineResolver.manager": + panic(fmt.Errorf("field manager of message regen.data.v1.MsgDefineResolver is not mutable")) + case "regen.data.v1.MsgDefineResolver.resolver_url": + panic(fmt.Errorf("field resolver_url of message regen.data.v1.MsgDefineResolver is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgDefineResolver")) + } + panic(fmt.Errorf("message regen.data.v1.MsgDefineResolver 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_MsgDefineResolver) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.MsgDefineResolver.manager": + return protoreflect.ValueOfString("") + case "regen.data.v1.MsgDefineResolver.resolver_url": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgDefineResolver")) + } + panic(fmt.Errorf("message regen.data.v1.MsgDefineResolver 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_MsgDefineResolver) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.MsgDefineResolver", 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_MsgDefineResolver) 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_MsgDefineResolver) 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_MsgDefineResolver) 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_MsgDefineResolver) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgDefineResolver) + 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.Manager) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ResolverUrl) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgDefineResolver) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.ResolverUrl) > 0 { + i -= len(x.ResolverUrl) + copy(dAtA[i:], x.ResolverUrl) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ResolverUrl))) + i-- + dAtA[i] = 0x12 + } + if len(x.Manager) > 0 { + i -= len(x.Manager) + copy(dAtA[i:], x.Manager) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Manager))) + 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().(*MsgDefineResolver) + 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: MsgDefineResolver: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDefineResolver: 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 Manager", 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.Manager = 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 ResolverUrl", 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.ResolverUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgDefineResolverResponse protoreflect.MessageDescriptor + fd_MsgDefineResolverResponse_resolver_id protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_tx_proto_init() + md_MsgDefineResolverResponse = File_regen_data_v1_tx_proto.Messages().ByName("MsgDefineResolverResponse") + fd_MsgDefineResolverResponse_resolver_id = md_MsgDefineResolverResponse.Fields().ByName("resolver_id") +} + +var _ protoreflect.Message = (*fastReflection_MsgDefineResolverResponse)(nil) + +type fastReflection_MsgDefineResolverResponse MsgDefineResolverResponse + +func (x *MsgDefineResolverResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgDefineResolverResponse)(x) +} + +func (x *MsgDefineResolverResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_tx_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_MsgDefineResolverResponse_messageType fastReflection_MsgDefineResolverResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgDefineResolverResponse_messageType{} + +type fastReflection_MsgDefineResolverResponse_messageType struct{} + +func (x fastReflection_MsgDefineResolverResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgDefineResolverResponse)(nil) +} +func (x fastReflection_MsgDefineResolverResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgDefineResolverResponse) +} +func (x fastReflection_MsgDefineResolverResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDefineResolverResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgDefineResolverResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgDefineResolverResponse +} + +// 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_MsgDefineResolverResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgDefineResolverResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgDefineResolverResponse) New() protoreflect.Message { + return new(fastReflection_MsgDefineResolverResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgDefineResolverResponse) Interface() protoreflect.ProtoMessage { + return (*MsgDefineResolverResponse)(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_MsgDefineResolverResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ResolverId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ResolverId) + if !f(fd_MsgDefineResolverResponse_resolver_id, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgDefineResolverResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.MsgDefineResolverResponse.resolver_id": + return x.ResolverId != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgDefineResolverResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgDefineResolverResponse 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_MsgDefineResolverResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.MsgDefineResolverResponse.resolver_id": + x.ResolverId = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgDefineResolverResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgDefineResolverResponse 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_MsgDefineResolverResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.MsgDefineResolverResponse.resolver_id": + value := x.ResolverId + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgDefineResolverResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgDefineResolverResponse 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_MsgDefineResolverResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.MsgDefineResolverResponse.resolver_id": + x.ResolverId = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgDefineResolverResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgDefineResolverResponse 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_MsgDefineResolverResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.MsgDefineResolverResponse.resolver_id": + panic(fmt.Errorf("field resolver_id of message regen.data.v1.MsgDefineResolverResponse is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgDefineResolverResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgDefineResolverResponse 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_MsgDefineResolverResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.MsgDefineResolverResponse.resolver_id": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgDefineResolverResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgDefineResolverResponse 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_MsgDefineResolverResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.MsgDefineResolverResponse", 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_MsgDefineResolverResponse) 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_MsgDefineResolverResponse) 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_MsgDefineResolverResponse) 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_MsgDefineResolverResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgDefineResolverResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.ResolverId != 0 { + n += 1 + runtime.Sov(uint64(x.ResolverId)) + } + 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().(*MsgDefineResolverResponse) + 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.ResolverId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ResolverId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgDefineResolverResponse) + 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: MsgDefineResolverResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDefineResolverResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ResolverId", wireType) + } + x.ResolverId = 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.ResolverId |= 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 = (*_MsgRegisterResolver_3_list)(nil) + +type _MsgRegisterResolver_3_list struct { + list *[]*ContentHash +} + +func (x *_MsgRegisterResolver_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_MsgRegisterResolver_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_MsgRegisterResolver_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ContentHash) + (*x.list)[i] = concreteValue +} + +func (x *_MsgRegisterResolver_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ContentHash) + *x.list = append(*x.list, concreteValue) +} + +func (x *_MsgRegisterResolver_3_list) AppendMutable() protoreflect.Value { + v := new(ContentHash) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgRegisterResolver_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_MsgRegisterResolver_3_list) NewElement() protoreflect.Value { + v := new(ContentHash) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_MsgRegisterResolver_3_list) IsValid() bool { + return x.list != nil +} + +var ( + md_MsgRegisterResolver protoreflect.MessageDescriptor + fd_MsgRegisterResolver_manager protoreflect.FieldDescriptor + fd_MsgRegisterResolver_resolver_id protoreflect.FieldDescriptor + fd_MsgRegisterResolver_data protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_tx_proto_init() + md_MsgRegisterResolver = File_regen_data_v1_tx_proto.Messages().ByName("MsgRegisterResolver") + fd_MsgRegisterResolver_manager = md_MsgRegisterResolver.Fields().ByName("manager") + fd_MsgRegisterResolver_resolver_id = md_MsgRegisterResolver.Fields().ByName("resolver_id") + fd_MsgRegisterResolver_data = md_MsgRegisterResolver.Fields().ByName("data") +} + +var _ protoreflect.Message = (*fastReflection_MsgRegisterResolver)(nil) + +type fastReflection_MsgRegisterResolver MsgRegisterResolver + +func (x *MsgRegisterResolver) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRegisterResolver)(x) +} + +func (x *MsgRegisterResolver) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_tx_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_MsgRegisterResolver_messageType fastReflection_MsgRegisterResolver_messageType +var _ protoreflect.MessageType = fastReflection_MsgRegisterResolver_messageType{} + +type fastReflection_MsgRegisterResolver_messageType struct{} + +func (x fastReflection_MsgRegisterResolver_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRegisterResolver)(nil) +} +func (x fastReflection_MsgRegisterResolver_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRegisterResolver) +} +func (x fastReflection_MsgRegisterResolver_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRegisterResolver +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRegisterResolver) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRegisterResolver +} + +// 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_MsgRegisterResolver) Type() protoreflect.MessageType { + return _fastReflection_MsgRegisterResolver_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRegisterResolver) New() protoreflect.Message { + return new(fastReflection_MsgRegisterResolver) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRegisterResolver) Interface() protoreflect.ProtoMessage { + return (*MsgRegisterResolver)(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_MsgRegisterResolver) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Manager != "" { + value := protoreflect.ValueOfString(x.Manager) + if !f(fd_MsgRegisterResolver_manager, value) { + return + } + } + if x.ResolverId != uint64(0) { + value := protoreflect.ValueOfUint64(x.ResolverId) + if !f(fd_MsgRegisterResolver_resolver_id, value) { + return + } + } + if len(x.Data) != 0 { + value := protoreflect.ValueOfList(&_MsgRegisterResolver_3_list{list: &x.Data}) + if !f(fd_MsgRegisterResolver_data, 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_MsgRegisterResolver) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.MsgRegisterResolver.manager": + return x.Manager != "" + case "regen.data.v1.MsgRegisterResolver.resolver_id": + return x.ResolverId != uint64(0) + case "regen.data.v1.MsgRegisterResolver.data": + return len(x.Data) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgRegisterResolver")) + } + panic(fmt.Errorf("message regen.data.v1.MsgRegisterResolver 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_MsgRegisterResolver) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.MsgRegisterResolver.manager": + x.Manager = "" + case "regen.data.v1.MsgRegisterResolver.resolver_id": + x.ResolverId = uint64(0) + case "regen.data.v1.MsgRegisterResolver.data": + x.Data = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgRegisterResolver")) + } + panic(fmt.Errorf("message regen.data.v1.MsgRegisterResolver 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_MsgRegisterResolver) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.MsgRegisterResolver.manager": + value := x.Manager + return protoreflect.ValueOfString(value) + case "regen.data.v1.MsgRegisterResolver.resolver_id": + value := x.ResolverId + return protoreflect.ValueOfUint64(value) + case "regen.data.v1.MsgRegisterResolver.data": + if len(x.Data) == 0 { + return protoreflect.ValueOfList(&_MsgRegisterResolver_3_list{}) + } + listValue := &_MsgRegisterResolver_3_list{list: &x.Data} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgRegisterResolver")) + } + panic(fmt.Errorf("message regen.data.v1.MsgRegisterResolver 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_MsgRegisterResolver) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.MsgRegisterResolver.manager": + x.Manager = value.Interface().(string) + case "regen.data.v1.MsgRegisterResolver.resolver_id": + x.ResolverId = value.Uint() + case "regen.data.v1.MsgRegisterResolver.data": + lv := value.List() + clv := lv.(*_MsgRegisterResolver_3_list) + x.Data = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgRegisterResolver")) + } + panic(fmt.Errorf("message regen.data.v1.MsgRegisterResolver 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_MsgRegisterResolver) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.MsgRegisterResolver.data": + if x.Data == nil { + x.Data = []*ContentHash{} + } + value := &_MsgRegisterResolver_3_list{list: &x.Data} + return protoreflect.ValueOfList(value) + case "regen.data.v1.MsgRegisterResolver.manager": + panic(fmt.Errorf("field manager of message regen.data.v1.MsgRegisterResolver is not mutable")) + case "regen.data.v1.MsgRegisterResolver.resolver_id": + panic(fmt.Errorf("field resolver_id of message regen.data.v1.MsgRegisterResolver is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgRegisterResolver")) + } + panic(fmt.Errorf("message regen.data.v1.MsgRegisterResolver 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_MsgRegisterResolver) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.MsgRegisterResolver.manager": + return protoreflect.ValueOfString("") + case "regen.data.v1.MsgRegisterResolver.resolver_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "regen.data.v1.MsgRegisterResolver.data": + list := []*ContentHash{} + return protoreflect.ValueOfList(&_MsgRegisterResolver_3_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgRegisterResolver")) + } + panic(fmt.Errorf("message regen.data.v1.MsgRegisterResolver 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_MsgRegisterResolver) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.MsgRegisterResolver", 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_MsgRegisterResolver) 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_MsgRegisterResolver) 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_MsgRegisterResolver) 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_MsgRegisterResolver) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRegisterResolver) + 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.Manager) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ResolverId != 0 { + n += 1 + runtime.Sov(uint64(x.ResolverId)) + } + if len(x.Data) > 0 { + for _, e := range x.Data { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgRegisterResolver) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Data) > 0 { + for iNdEx := len(x.Data) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Data[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + } + if x.ResolverId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ResolverId)) + i-- + dAtA[i] = 0x10 + } + if len(x.Manager) > 0 { + i -= len(x.Manager) + copy(dAtA[i:], x.Manager) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Manager))) + 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().(*MsgRegisterResolver) + 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: MsgRegisterResolver: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterResolver: 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 Manager", 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.Manager = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ResolverId", wireType) + } + x.ResolverId = 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.ResolverId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Data = append(x.Data, &ContentHash{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Data[len(x.Data)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgRegisterResolverResponse protoreflect.MessageDescriptor +) + +func init() { + file_regen_data_v1_tx_proto_init() + md_MsgRegisterResolverResponse = File_regen_data_v1_tx_proto.Messages().ByName("MsgRegisterResolverResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgRegisterResolverResponse)(nil) + +type fastReflection_MsgRegisterResolverResponse MsgRegisterResolverResponse + +func (x *MsgRegisterResolverResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRegisterResolverResponse)(x) +} + +func (x *MsgRegisterResolverResponse) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_tx_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_MsgRegisterResolverResponse_messageType fastReflection_MsgRegisterResolverResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRegisterResolverResponse_messageType{} + +type fastReflection_MsgRegisterResolverResponse_messageType struct{} + +func (x fastReflection_MsgRegisterResolverResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRegisterResolverResponse)(nil) +} +func (x fastReflection_MsgRegisterResolverResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRegisterResolverResponse) +} +func (x fastReflection_MsgRegisterResolverResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRegisterResolverResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgRegisterResolverResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRegisterResolverResponse +} + +// 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_MsgRegisterResolverResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRegisterResolverResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgRegisterResolverResponse) New() protoreflect.Message { + return new(fastReflection_MsgRegisterResolverResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgRegisterResolverResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRegisterResolverResponse)(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_MsgRegisterResolverResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// 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_MsgRegisterResolverResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgRegisterResolverResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgRegisterResolverResponse 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_MsgRegisterResolverResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgRegisterResolverResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgRegisterResolverResponse 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_MsgRegisterResolverResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgRegisterResolverResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgRegisterResolverResponse 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_MsgRegisterResolverResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgRegisterResolverResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgRegisterResolverResponse 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_MsgRegisterResolverResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgRegisterResolverResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgRegisterResolverResponse 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_MsgRegisterResolverResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.MsgRegisterResolverResponse")) + } + panic(fmt.Errorf("message regen.data.v1.MsgRegisterResolverResponse 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_MsgRegisterResolverResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.MsgRegisterResolverResponse", 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_MsgRegisterResolverResponse) 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_MsgRegisterResolverResponse) 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_MsgRegisterResolverResponse) 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_MsgRegisterResolverResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgRegisterResolverResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.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().(*MsgRegisterResolverResponse) + 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 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().(*MsgRegisterResolverResponse) + 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: MsgRegisterResolverResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterResolverResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + 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 v3.19.1 +// source: regen/data/v1/tx.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) +) + +// MsgAnchorData is the Msg/AnchorData request type. +type MsgAnchorData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // sender is the address of the sender of the transaction. + // The sender in StoreData is not attesting to the veracity of the underlying + // data. They can simply be a intermediary providing services. + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + // hash is the hash-based identifier for the anchored content. + Hash *ContentHash `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` +} + +func (x *MsgAnchorData) Reset() { + *x = MsgAnchorData{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAnchorData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAnchorData) ProtoMessage() {} + +// Deprecated: Use MsgAnchorData.ProtoReflect.Descriptor instead. +func (*MsgAnchorData) Descriptor() ([]byte, []int) { + return file_regen_data_v1_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgAnchorData) GetSender() string { + if x != nil { + return x.Sender + } + return "" +} + +func (x *MsgAnchorData) GetHash() *ContentHash { + if x != nil { + return x.Hash + } + return nil +} + +// MsgAnchorData is the Msg/AnchorData response type. +type MsgAnchorDataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // timestamp is the timestamp of the block at which the data was anchored. + Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // iri is the IRI of the data that was anchored. + Iri string `protobuf:"bytes,2,opt,name=iri,proto3" json:"iri,omitempty"` +} + +func (x *MsgAnchorDataResponse) Reset() { + *x = MsgAnchorDataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgAnchorDataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgAnchorDataResponse) ProtoMessage() {} + +// Deprecated: Use MsgAnchorDataResponse.ProtoReflect.Descriptor instead. +func (*MsgAnchorDataResponse) Descriptor() ([]byte, []int) { + return file_regen_data_v1_tx_proto_rawDescGZIP(), []int{1} +} + +func (x *MsgAnchorDataResponse) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *MsgAnchorDataResponse) GetIri() string { + if x != nil { + return x.Iri + } + return "" +} + +// MsgSignData is the Msg/SignData request type. +type MsgSignData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // signers are the addresses of the accounts signing the data. + // By making a SignData request, the signers are attesting to the veracity + // of the data referenced by the cid. The precise meaning of this may vary + // depending on the underlying data. + Signers []string `protobuf:"bytes,1,rep,name=signers,proto3" json:"signers,omitempty"` + // hash is the hash-based identifier for the anchored content. Only RDF graph + // data can be signed as its data model is intended to specifically convey semantic meaning. + Hash *ContentHash_Graph `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` +} + +func (x *MsgSignData) Reset() { + *x = MsgSignData{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSignData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSignData) ProtoMessage() {} + +// Deprecated: Use MsgSignData.ProtoReflect.Descriptor instead. +func (*MsgSignData) Descriptor() ([]byte, []int) { + return file_regen_data_v1_tx_proto_rawDescGZIP(), []int{2} +} + +func (x *MsgSignData) GetSigners() []string { + if x != nil { + return x.Signers + } + return nil +} + +func (x *MsgSignData) GetHash() *ContentHash_Graph { + if x != nil { + return x.Hash + } + return nil +} + +// MsgSignDataResponse is the Msg/SignData response type. +type MsgSignDataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgSignDataResponse) Reset() { + *x = MsgSignDataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSignDataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSignDataResponse) ProtoMessage() {} + +// Deprecated: Use MsgSignDataResponse.ProtoReflect.Descriptor instead. +func (*MsgSignDataResponse) Descriptor() ([]byte, []int) { + return file_regen_data_v1_tx_proto_rawDescGZIP(), []int{3} +} + +// MsgDefineResolver is the Msg/DefineResolver request type. +type MsgDefineResolver struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // manager is the address of the resolver manager. The manager is able + // to make future calls using the ID returned by this operation with + // Msg/RegisterResolver. To authorize other accounts to register resolvers, + // the manager should make use of cosmos.authz. + Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` + // resolver_url is a resolver URL which should refer to an HTTP service + // which will respond to a GET request with the IRI of a ContentHash + // and return the content if it exists or a 404. For graph data, resolvers + // should use the HTTP Accept header to negotiate the RDF serialization + // format. + ResolverUrl string `protobuf:"bytes,2,opt,name=resolver_url,json=resolverUrl,proto3" json:"resolver_url,omitempty"` +} + +func (x *MsgDefineResolver) Reset() { + *x = MsgDefineResolver{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_tx_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgDefineResolver) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgDefineResolver) ProtoMessage() {} + +// Deprecated: Use MsgDefineResolver.ProtoReflect.Descriptor instead. +func (*MsgDefineResolver) Descriptor() ([]byte, []int) { + return file_regen_data_v1_tx_proto_rawDescGZIP(), []int{4} +} + +func (x *MsgDefineResolver) GetManager() string { + if x != nil { + return x.Manager + } + return "" +} + +func (x *MsgDefineResolver) GetResolverUrl() string { + if x != nil { + return x.ResolverUrl + } + return "" +} + +// MsgDefineResolverResponse is the Msg/DefineResolver response type. +type MsgDefineResolverResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // resolver_id is the integer ID of the resolver to be used in MsgRegisterResolver. + ResolverId uint64 `protobuf:"varint,1,opt,name=resolver_id,json=resolverId,proto3" json:"resolver_id,omitempty"` +} + +func (x *MsgDefineResolverResponse) Reset() { + *x = MsgDefineResolverResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_tx_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgDefineResolverResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgDefineResolverResponse) ProtoMessage() {} + +// Deprecated: Use MsgDefineResolverResponse.ProtoReflect.Descriptor instead. +func (*MsgDefineResolverResponse) Descriptor() ([]byte, []int) { + return file_regen_data_v1_tx_proto_rawDescGZIP(), []int{5} +} + +func (x *MsgDefineResolverResponse) GetResolverId() uint64 { + if x != nil { + return x.ResolverId + } + return 0 +} + +// MsgRegisterResolver is the Msg/RegisterResolver request type. +type MsgRegisterResolver struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // manager is the address of the resolver manager who registered this + // resolver with Msg/DefinedResolver. + Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` + // resolver_id is the ID of a resolver defined with Msg/DefineResolver. + ResolverId uint64 `protobuf:"varint,2,opt,name=resolver_id,json=resolverId,proto3" json:"resolver_id,omitempty"` + // data is a list of content hashes which the resolver claims to serve. + Data []*ContentHash `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` +} + +func (x *MsgRegisterResolver) Reset() { + *x = MsgRegisterResolver{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_tx_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRegisterResolver) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRegisterResolver) ProtoMessage() {} + +// Deprecated: Use MsgRegisterResolver.ProtoReflect.Descriptor instead. +func (*MsgRegisterResolver) Descriptor() ([]byte, []int) { + return file_regen_data_v1_tx_proto_rawDescGZIP(), []int{6} +} + +func (x *MsgRegisterResolver) GetManager() string { + if x != nil { + return x.Manager + } + return "" +} + +func (x *MsgRegisterResolver) GetResolverId() uint64 { + if x != nil { + return x.ResolverId + } + return 0 +} + +func (x *MsgRegisterResolver) GetData() []*ContentHash { + if x != nil { + return x.Data + } + return nil +} + +// MsgRegisterResolverResponse is the Msg/RegisterResolver response type. +type MsgRegisterResolverResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgRegisterResolverResponse) Reset() { + *x = MsgRegisterResolverResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_tx_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgRegisterResolverResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgRegisterResolverResponse) ProtoMessage() {} + +// Deprecated: Use MsgRegisterResolverResponse.ProtoReflect.Descriptor instead. +func (*MsgRegisterResolverResponse) Descriptor() ([]byte, []int) { + return file_regen_data_v1_tx_proto_rawDescGZIP(), []int{7} +} + +var File_regen_data_v1_tx_proto protoreflect.FileDescriptor + +var file_regen_data_v1_tx_proto_rawDesc = []byte{ + 0x0a, 0x16, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, + 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x64, 0x61, 0x74, 0x61, 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, 0x1a, 0x19, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x57, 0x0a, 0x0d, 0x4d, 0x73, 0x67, + 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x52, 0x04, 0x68, 0x61, + 0x73, 0x68, 0x22, 0x63, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x69, 0x72, 0x69, 0x22, 0x63, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x53, 0x69, + 0x67, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, + 0x12, 0x34, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, + 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0x15, 0x0a, 0x13, + 0x4d, 0x73, 0x67, 0x53, 0x69, 0x67, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x50, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, + 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x75, + 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, + 0x65, 0x72, 0x55, 0x72, 0x6c, 0x22, 0x3c, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x66, 0x69, + 0x6e, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, + 0x72, 0x49, 0x64, 0x22, 0x80, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, + 0x6c, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xe5, 0x02, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x50, 0x0a, + 0x0a, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, + 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x24, 0x2e, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x6e, 0x63, + 0x68, 0x6f, 0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x4a, 0x0a, 0x08, 0x53, 0x69, 0x67, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x2e, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, + 0x69, 0x67, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x22, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x69, 0x67, 0x6e, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x0e, 0x44, + 0x65, 0x66, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x20, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x1a, + 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x10, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x22, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, + 0x72, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, + 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xb2, 0x01, + 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, + 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x76, 0x31, 0xa2, 0x02, + 0x03, 0x52, 0x44, 0x58, 0xaa, 0x02, 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, + 0x61, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, + 0x61, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, + 0x61, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x0f, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_regen_data_v1_tx_proto_rawDescOnce sync.Once + file_regen_data_v1_tx_proto_rawDescData = file_regen_data_v1_tx_proto_rawDesc +) + +func file_regen_data_v1_tx_proto_rawDescGZIP() []byte { + file_regen_data_v1_tx_proto_rawDescOnce.Do(func() { + file_regen_data_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_regen_data_v1_tx_proto_rawDescData) + }) + return file_regen_data_v1_tx_proto_rawDescData +} + +var file_regen_data_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_regen_data_v1_tx_proto_goTypes = []interface{}{ + (*MsgAnchorData)(nil), // 0: regen.data.v1.MsgAnchorData + (*MsgAnchorDataResponse)(nil), // 1: regen.data.v1.MsgAnchorDataResponse + (*MsgSignData)(nil), // 2: regen.data.v1.MsgSignData + (*MsgSignDataResponse)(nil), // 3: regen.data.v1.MsgSignDataResponse + (*MsgDefineResolver)(nil), // 4: regen.data.v1.MsgDefineResolver + (*MsgDefineResolverResponse)(nil), // 5: regen.data.v1.MsgDefineResolverResponse + (*MsgRegisterResolver)(nil), // 6: regen.data.v1.MsgRegisterResolver + (*MsgRegisterResolverResponse)(nil), // 7: regen.data.v1.MsgRegisterResolverResponse + (*ContentHash)(nil), // 8: regen.data.v1.ContentHash + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*ContentHash_Graph)(nil), // 10: regen.data.v1.ContentHash.Graph +} +var file_regen_data_v1_tx_proto_depIdxs = []int32{ + 8, // 0: regen.data.v1.MsgAnchorData.hash:type_name -> regen.data.v1.ContentHash + 9, // 1: regen.data.v1.MsgAnchorDataResponse.timestamp:type_name -> google.protobuf.Timestamp + 10, // 2: regen.data.v1.MsgSignData.hash:type_name -> regen.data.v1.ContentHash.Graph + 8, // 3: regen.data.v1.MsgRegisterResolver.data:type_name -> regen.data.v1.ContentHash + 0, // 4: regen.data.v1.Msg.AnchorData:input_type -> regen.data.v1.MsgAnchorData + 2, // 5: regen.data.v1.Msg.SignData:input_type -> regen.data.v1.MsgSignData + 4, // 6: regen.data.v1.Msg.DefineResolver:input_type -> regen.data.v1.MsgDefineResolver + 6, // 7: regen.data.v1.Msg.RegisterResolver:input_type -> regen.data.v1.MsgRegisterResolver + 1, // 8: regen.data.v1.Msg.AnchorData:output_type -> regen.data.v1.MsgAnchorDataResponse + 3, // 9: regen.data.v1.Msg.SignData:output_type -> regen.data.v1.MsgSignDataResponse + 5, // 10: regen.data.v1.Msg.DefineResolver:output_type -> regen.data.v1.MsgDefineResolverResponse + 7, // 11: regen.data.v1.Msg.RegisterResolver:output_type -> regen.data.v1.MsgRegisterResolverResponse + 8, // [8:12] is the sub-list for method output_type + 4, // [4:8] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_regen_data_v1_tx_proto_init() } +func file_regen_data_v1_tx_proto_init() { + if File_regen_data_v1_tx_proto != nil { + return + } + file_regen_data_v1_types_proto_init() + if !protoimpl.UnsafeEnabled { + file_regen_data_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAnchorData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgAnchorDataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSignData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgSignDataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgDefineResolver); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgDefineResolverResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRegisterResolver); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgRegisterResolverResponse); 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_regen_data_v1_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_regen_data_v1_tx_proto_goTypes, + DependencyIndexes: file_regen_data_v1_tx_proto_depIdxs, + MessageInfos: file_regen_data_v1_tx_proto_msgTypes, + }.Build() + File_regen_data_v1_tx_proto = out.File + file_regen_data_v1_tx_proto_rawDesc = nil + file_regen_data_v1_tx_proto_goTypes = nil + file_regen_data_v1_tx_proto_depIdxs = nil +} diff --git a/api/regen/data/v1/tx_grpc.pb.go b/api/regen/data/v1/tx_grpc.pb.go new file mode 100644 index 0000000000..d1bb1cf433 --- /dev/null +++ b/api/regen/data/v1/tx_grpc.pb.go @@ -0,0 +1,271 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v3.19.1 +// source: regen/data/v1/tx.proto + +package datav1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type MsgClient interface { + // AnchorData "anchors" a piece of data to the blockchain based on its secure + // hash, effectively providing a tamper resistant timestamp. + // + // The sender in AnchorData is not attesting to the veracity of the underlying + // data. They can simply be a intermediary providing timestamp services. + // SignData should be used to create a digital signature attesting to the + // veracity of some piece of data. + AnchorData(ctx context.Context, in *MsgAnchorData, opts ...grpc.CallOption) (*MsgAnchorDataResponse, error) + // SignData allows for signing of an arbitrary piece of data on the + // blockchain. By "signing" data the signers are making a statement about the + // veracity of the data itself. It is like signing a legal document, meaning + // that I agree to all conditions and to the best of my knowledge everything + // is true. When anchoring data, the sender is not attesting to the veracity + // of the data, they are simply communicating that it exists. + // + // On-chain signatures have the following benefits: + // - on-chain identities can be managed using different cryptographic keys + // that change over time through key rotation practices + // - an on-chain identity may represent an organization and through delegation + // individual members may sign on behalf of the group + // - the blockchain transaction envelope provides built-in replay protection + // and timestamping + // + // SignData implicitly calls AnchorData if the data was not already anchored. + // + // SignData can be called multiple times for the same content hash with different + // signers and those signers will be appended to the list of signers. + SignData(ctx context.Context, in *MsgSignData, opts ...grpc.CallOption) (*MsgSignDataResponse, error) + // DefineResolver defines a resolver URL and assigns it a new integer ID + // that can be used in calls to RegisterResolver. + DefineResolver(ctx context.Context, in *MsgDefineResolver, opts ...grpc.CallOption) (*MsgDefineResolverResponse, error) + // RegisterResolver registers data content hashes + RegisterResolver(ctx context.Context, in *MsgRegisterResolver, opts ...grpc.CallOption) (*MsgRegisterResolverResponse, error) +} + +type msgClient struct { + cc grpc.ClientConnInterface +} + +func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) AnchorData(ctx context.Context, in *MsgAnchorData, opts ...grpc.CallOption) (*MsgAnchorDataResponse, error) { + out := new(MsgAnchorDataResponse) + err := c.cc.Invoke(ctx, "/regen.data.v1.Msg/AnchorData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) SignData(ctx context.Context, in *MsgSignData, opts ...grpc.CallOption) (*MsgSignDataResponse, error) { + out := new(MsgSignDataResponse) + err := c.cc.Invoke(ctx, "/regen.data.v1.Msg/SignData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) DefineResolver(ctx context.Context, in *MsgDefineResolver, opts ...grpc.CallOption) (*MsgDefineResolverResponse, error) { + out := new(MsgDefineResolverResponse) + err := c.cc.Invoke(ctx, "/regen.data.v1.Msg/DefineResolver", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) RegisterResolver(ctx context.Context, in *MsgRegisterResolver, opts ...grpc.CallOption) (*MsgRegisterResolverResponse, error) { + out := new(MsgRegisterResolverResponse) + err := c.cc.Invoke(ctx, "/regen.data.v1.Msg/RegisterResolver", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +// All implementations must embed UnimplementedMsgServer +// for forward compatibility +type MsgServer interface { + // AnchorData "anchors" a piece of data to the blockchain based on its secure + // hash, effectively providing a tamper resistant timestamp. + // + // The sender in AnchorData is not attesting to the veracity of the underlying + // data. They can simply be a intermediary providing timestamp services. + // SignData should be used to create a digital signature attesting to the + // veracity of some piece of data. + AnchorData(context.Context, *MsgAnchorData) (*MsgAnchorDataResponse, error) + // SignData allows for signing of an arbitrary piece of data on the + // blockchain. By "signing" data the signers are making a statement about the + // veracity of the data itself. It is like signing a legal document, meaning + // that I agree to all conditions and to the best of my knowledge everything + // is true. When anchoring data, the sender is not attesting to the veracity + // of the data, they are simply communicating that it exists. + // + // On-chain signatures have the following benefits: + // - on-chain identities can be managed using different cryptographic keys + // that change over time through key rotation practices + // - an on-chain identity may represent an organization and through delegation + // individual members may sign on behalf of the group + // - the blockchain transaction envelope provides built-in replay protection + // and timestamping + // + // SignData implicitly calls AnchorData if the data was not already anchored. + // + // SignData can be called multiple times for the same content hash with different + // signers and those signers will be appended to the list of signers. + SignData(context.Context, *MsgSignData) (*MsgSignDataResponse, error) + // DefineResolver defines a resolver URL and assigns it a new integer ID + // that can be used in calls to RegisterResolver. + DefineResolver(context.Context, *MsgDefineResolver) (*MsgDefineResolverResponse, error) + // RegisterResolver registers data content hashes + RegisterResolver(context.Context, *MsgRegisterResolver) (*MsgRegisterResolverResponse, error) + mustEmbedUnimplementedMsgServer() +} + +// UnimplementedMsgServer must be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (UnimplementedMsgServer) AnchorData(context.Context, *MsgAnchorData) (*MsgAnchorDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AnchorData not implemented") +} +func (UnimplementedMsgServer) SignData(context.Context, *MsgSignData) (*MsgSignDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SignData not implemented") +} +func (UnimplementedMsgServer) DefineResolver(context.Context, *MsgDefineResolver) (*MsgDefineResolverResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DefineResolver not implemented") +} +func (UnimplementedMsgServer) RegisterResolver(context.Context, *MsgRegisterResolver) (*MsgRegisterResolverResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegisterResolver not implemented") +} +func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} + +// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MsgServer will +// result in compilation errors. +type UnsafeMsgServer interface { + mustEmbedUnimplementedMsgServer() +} + +func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { + s.RegisterService(&Msg_ServiceDesc, srv) +} + +func _Msg_AnchorData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgAnchorData) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).AnchorData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.data.v1.Msg/AnchorData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).AnchorData(ctx, req.(*MsgAnchorData)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_SignData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSignData) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).SignData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.data.v1.Msg/SignData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).SignData(ctx, req.(*MsgSignData)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_DefineResolver_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgDefineResolver) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).DefineResolver(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.data.v1.Msg/DefineResolver", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).DefineResolver(ctx, req.(*MsgDefineResolver)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_RegisterResolver_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRegisterResolver) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RegisterResolver(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/regen.data.v1.Msg/RegisterResolver", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RegisterResolver(ctx, req.(*MsgRegisterResolver)) + } + return interceptor(ctx, in, info, handler) +} + +// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Msg_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "regen.data.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "AnchorData", + Handler: _Msg_AnchorData_Handler, + }, + { + MethodName: "SignData", + Handler: _Msg_SignData_Handler, + }, + { + MethodName: "DefineResolver", + Handler: _Msg_DefineResolver_Handler, + }, + { + MethodName: "RegisterResolver", + Handler: _Msg_RegisterResolver_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "regen/data/v1/tx.proto", +} diff --git a/api/regen/data/v1/types.pulsar.go b/api/regen/data/v1/types.pulsar.go new file mode 100644 index 0000000000..13a5b22fed --- /dev/null +++ b/api/regen/data/v1/types.pulsar.go @@ -0,0 +1,2914 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package datav1 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + 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" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_ContentHash protoreflect.MessageDescriptor + fd_ContentHash_raw protoreflect.FieldDescriptor + fd_ContentHash_graph protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_types_proto_init() + md_ContentHash = File_regen_data_v1_types_proto.Messages().ByName("ContentHash") + fd_ContentHash_raw = md_ContentHash.Fields().ByName("raw") + fd_ContentHash_graph = md_ContentHash.Fields().ByName("graph") +} + +var _ protoreflect.Message = (*fastReflection_ContentHash)(nil) + +type fastReflection_ContentHash ContentHash + +func (x *ContentHash) ProtoReflect() protoreflect.Message { + return (*fastReflection_ContentHash)(x) +} + +func (x *ContentHash) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_types_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_ContentHash_messageType fastReflection_ContentHash_messageType +var _ protoreflect.MessageType = fastReflection_ContentHash_messageType{} + +type fastReflection_ContentHash_messageType struct{} + +func (x fastReflection_ContentHash_messageType) Zero() protoreflect.Message { + return (*fastReflection_ContentHash)(nil) +} +func (x fastReflection_ContentHash_messageType) New() protoreflect.Message { + return new(fastReflection_ContentHash) +} +func (x fastReflection_ContentHash_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ContentHash +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ContentHash) Descriptor() protoreflect.MessageDescriptor { + return md_ContentHash +} + +// 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_ContentHash) Type() protoreflect.MessageType { + return _fastReflection_ContentHash_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ContentHash) New() protoreflect.Message { + return new(fastReflection_ContentHash) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ContentHash) Interface() protoreflect.ProtoMessage { + return (*ContentHash)(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_ContentHash) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Sum != nil { + switch o := x.Sum.(type) { + case *ContentHash_Raw_: + v := o.Raw + value := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(fd_ContentHash_raw, value) { + return + } + case *ContentHash_Graph_: + v := o.Graph + value := protoreflect.ValueOfMessage(v.ProtoReflect()) + if !f(fd_ContentHash_graph, 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_ContentHash) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.ContentHash.raw": + if x.Sum == nil { + return false + } else if _, ok := x.Sum.(*ContentHash_Raw_); ok { + return true + } else { + return false + } + case "regen.data.v1.ContentHash.graph": + if x.Sum == nil { + return false + } else if _, ok := x.Sum.(*ContentHash_Graph_); ok { + return true + } else { + return false + } + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash 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_ContentHash) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.ContentHash.raw": + x.Sum = nil + case "regen.data.v1.ContentHash.graph": + x.Sum = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash 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_ContentHash) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.ContentHash.raw": + if x.Sum == nil { + return protoreflect.ValueOfMessage((*ContentHash_Raw)(nil).ProtoReflect()) + } else if v, ok := x.Sum.(*ContentHash_Raw_); ok { + return protoreflect.ValueOfMessage(v.Raw.ProtoReflect()) + } else { + return protoreflect.ValueOfMessage((*ContentHash_Raw)(nil).ProtoReflect()) + } + case "regen.data.v1.ContentHash.graph": + if x.Sum == nil { + return protoreflect.ValueOfMessage((*ContentHash_Graph)(nil).ProtoReflect()) + } else if v, ok := x.Sum.(*ContentHash_Graph_); ok { + return protoreflect.ValueOfMessage(v.Graph.ProtoReflect()) + } else { + return protoreflect.ValueOfMessage((*ContentHash_Graph)(nil).ProtoReflect()) + } + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash 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_ContentHash) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.ContentHash.raw": + cv := value.Message().Interface().(*ContentHash_Raw) + x.Sum = &ContentHash_Raw_{Raw: cv} + case "regen.data.v1.ContentHash.graph": + cv := value.Message().Interface().(*ContentHash_Graph) + x.Sum = &ContentHash_Graph_{Graph: cv} + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash 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_ContentHash) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.ContentHash.raw": + if x.Sum == nil { + value := &ContentHash_Raw{} + oneofValue := &ContentHash_Raw_{Raw: value} + x.Sum = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + switch m := x.Sum.(type) { + case *ContentHash_Raw_: + return protoreflect.ValueOfMessage(m.Raw.ProtoReflect()) + default: + value := &ContentHash_Raw{} + oneofValue := &ContentHash_Raw_{Raw: value} + x.Sum = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + case "regen.data.v1.ContentHash.graph": + if x.Sum == nil { + value := &ContentHash_Graph{} + oneofValue := &ContentHash_Graph_{Graph: value} + x.Sum = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + switch m := x.Sum.(type) { + case *ContentHash_Graph_: + return protoreflect.ValueOfMessage(m.Graph.ProtoReflect()) + default: + value := &ContentHash_Graph{} + oneofValue := &ContentHash_Graph_{Graph: value} + x.Sum = oneofValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + } + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash 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_ContentHash) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.ContentHash.raw": + value := &ContentHash_Raw{} + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.data.v1.ContentHash.graph": + value := &ContentHash_Graph{} + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash 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_ContentHash) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + case "regen.data.v1.ContentHash.sum": + if x.Sum == nil { + return nil + } + switch x.Sum.(type) { + case *ContentHash_Raw_: + return x.Descriptor().Fields().ByName("raw") + case *ContentHash_Graph_: + return x.Descriptor().Fields().ByName("graph") + } + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.ContentHash", 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_ContentHash) 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_ContentHash) 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_ContentHash) 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_ContentHash) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ContentHash) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + switch x := x.Sum.(type) { + case *ContentHash_Raw_: + if x == nil { + break + } + l = options.Size(x.Raw) + n += 1 + l + runtime.Sov(uint64(l)) + case *ContentHash_Graph_: + if x == nil { + break + } + l = options.Size(x.Graph) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*ContentHash) + 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) + } + switch x := x.Sum.(type) { + case *ContentHash_Raw_: + encoded, err := options.Marshal(x.Raw) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + case *ContentHash_Graph_: + encoded, err := options.Marshal(x.Graph) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if 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().(*ContentHash) + 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: ContentHash: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ContentHash: 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 Raw", 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 + } + v := &ContentHash_Raw{} + if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + x.Sum = &ContentHash_Raw_{v} + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Graph", 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 + } + v := &ContentHash_Graph{} + if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + x.Sum = &ContentHash_Graph_{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_ContentHash_Raw protoreflect.MessageDescriptor + fd_ContentHash_Raw_hash protoreflect.FieldDescriptor + fd_ContentHash_Raw_digest_algorithm protoreflect.FieldDescriptor + fd_ContentHash_Raw_media_type protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_types_proto_init() + md_ContentHash_Raw = File_regen_data_v1_types_proto.Messages().ByName("ContentHash").Messages().ByName("Raw") + fd_ContentHash_Raw_hash = md_ContentHash_Raw.Fields().ByName("hash") + fd_ContentHash_Raw_digest_algorithm = md_ContentHash_Raw.Fields().ByName("digest_algorithm") + fd_ContentHash_Raw_media_type = md_ContentHash_Raw.Fields().ByName("media_type") +} + +var _ protoreflect.Message = (*fastReflection_ContentHash_Raw)(nil) + +type fastReflection_ContentHash_Raw ContentHash_Raw + +func (x *ContentHash_Raw) ProtoReflect() protoreflect.Message { + return (*fastReflection_ContentHash_Raw)(x) +} + +func (x *ContentHash_Raw) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_types_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_ContentHash_Raw_messageType fastReflection_ContentHash_Raw_messageType +var _ protoreflect.MessageType = fastReflection_ContentHash_Raw_messageType{} + +type fastReflection_ContentHash_Raw_messageType struct{} + +func (x fastReflection_ContentHash_Raw_messageType) Zero() protoreflect.Message { + return (*fastReflection_ContentHash_Raw)(nil) +} +func (x fastReflection_ContentHash_Raw_messageType) New() protoreflect.Message { + return new(fastReflection_ContentHash_Raw) +} +func (x fastReflection_ContentHash_Raw_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ContentHash_Raw +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ContentHash_Raw) Descriptor() protoreflect.MessageDescriptor { + return md_ContentHash_Raw +} + +// 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_ContentHash_Raw) Type() protoreflect.MessageType { + return _fastReflection_ContentHash_Raw_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ContentHash_Raw) New() protoreflect.Message { + return new(fastReflection_ContentHash_Raw) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ContentHash_Raw) Interface() protoreflect.ProtoMessage { + return (*ContentHash_Raw)(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_ContentHash_Raw) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Hash) != 0 { + value := protoreflect.ValueOfBytes(x.Hash) + if !f(fd_ContentHash_Raw_hash, value) { + return + } + } + if x.DigestAlgorithm != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.DigestAlgorithm)) + if !f(fd_ContentHash_Raw_digest_algorithm, value) { + return + } + } + if x.MediaType != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.MediaType)) + if !f(fd_ContentHash_Raw_media_type, 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_ContentHash_Raw) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.ContentHash.Raw.hash": + return len(x.Hash) != 0 + case "regen.data.v1.ContentHash.Raw.digest_algorithm": + return x.DigestAlgorithm != 0 + case "regen.data.v1.ContentHash.Raw.media_type": + return x.MediaType != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash.Raw")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash.Raw 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_ContentHash_Raw) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.ContentHash.Raw.hash": + x.Hash = nil + case "regen.data.v1.ContentHash.Raw.digest_algorithm": + x.DigestAlgorithm = 0 + case "regen.data.v1.ContentHash.Raw.media_type": + x.MediaType = 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash.Raw")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash.Raw 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_ContentHash_Raw) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.ContentHash.Raw.hash": + value := x.Hash + return protoreflect.ValueOfBytes(value) + case "regen.data.v1.ContentHash.Raw.digest_algorithm": + value := x.DigestAlgorithm + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "regen.data.v1.ContentHash.Raw.media_type": + value := x.MediaType + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash.Raw")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash.Raw 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_ContentHash_Raw) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.ContentHash.Raw.hash": + x.Hash = value.Bytes() + case "regen.data.v1.ContentHash.Raw.digest_algorithm": + x.DigestAlgorithm = (DigestAlgorithm)(value.Enum()) + case "regen.data.v1.ContentHash.Raw.media_type": + x.MediaType = (MediaType)(value.Enum()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash.Raw")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash.Raw 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_ContentHash_Raw) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.ContentHash.Raw.hash": + panic(fmt.Errorf("field hash of message regen.data.v1.ContentHash.Raw is not mutable")) + case "regen.data.v1.ContentHash.Raw.digest_algorithm": + panic(fmt.Errorf("field digest_algorithm of message regen.data.v1.ContentHash.Raw is not mutable")) + case "regen.data.v1.ContentHash.Raw.media_type": + panic(fmt.Errorf("field media_type of message regen.data.v1.ContentHash.Raw is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash.Raw")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash.Raw 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_ContentHash_Raw) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.ContentHash.Raw.hash": + return protoreflect.ValueOfBytes(nil) + case "regen.data.v1.ContentHash.Raw.digest_algorithm": + return protoreflect.ValueOfEnum(0) + case "regen.data.v1.ContentHash.Raw.media_type": + return protoreflect.ValueOfEnum(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash.Raw")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash.Raw 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_ContentHash_Raw) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.ContentHash.Raw", 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_ContentHash_Raw) 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_ContentHash_Raw) 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_ContentHash_Raw) 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_ContentHash_Raw) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ContentHash_Raw) + 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.Hash) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.DigestAlgorithm != 0 { + n += 1 + runtime.Sov(uint64(x.DigestAlgorithm)) + } + if x.MediaType != 0 { + n += 1 + runtime.Sov(uint64(x.MediaType)) + } + 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().(*ContentHash_Raw) + 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.MediaType != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MediaType)) + i-- + dAtA[i] = 0x18 + } + if x.DigestAlgorithm != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DigestAlgorithm)) + i-- + dAtA[i] = 0x10 + } + if len(x.Hash) > 0 { + i -= len(x.Hash) + copy(dAtA[i:], x.Hash) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Hash))) + 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().(*ContentHash_Raw) + 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: ContentHash_Raw: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ContentHash_Raw: 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 Hash", wireType) + } + var byteLen 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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.Hash = append(x.Hash[:0], dAtA[iNdEx:postIndex]...) + if x.Hash == nil { + x.Hash = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DigestAlgorithm", wireType) + } + x.DigestAlgorithm = 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.DigestAlgorithm |= DigestAlgorithm(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MediaType", wireType) + } + x.MediaType = 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.MediaType |= MediaType(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_ContentHash_Graph protoreflect.MessageDescriptor + fd_ContentHash_Graph_hash protoreflect.FieldDescriptor + fd_ContentHash_Graph_digest_algorithm protoreflect.FieldDescriptor + fd_ContentHash_Graph_canonicalization_algorithm protoreflect.FieldDescriptor + fd_ContentHash_Graph_merkle_tree protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_types_proto_init() + md_ContentHash_Graph = File_regen_data_v1_types_proto.Messages().ByName("ContentHash").Messages().ByName("Graph") + fd_ContentHash_Graph_hash = md_ContentHash_Graph.Fields().ByName("hash") + fd_ContentHash_Graph_digest_algorithm = md_ContentHash_Graph.Fields().ByName("digest_algorithm") + fd_ContentHash_Graph_canonicalization_algorithm = md_ContentHash_Graph.Fields().ByName("canonicalization_algorithm") + fd_ContentHash_Graph_merkle_tree = md_ContentHash_Graph.Fields().ByName("merkle_tree") +} + +var _ protoreflect.Message = (*fastReflection_ContentHash_Graph)(nil) + +type fastReflection_ContentHash_Graph ContentHash_Graph + +func (x *ContentHash_Graph) ProtoReflect() protoreflect.Message { + return (*fastReflection_ContentHash_Graph)(x) +} + +func (x *ContentHash_Graph) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_types_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_ContentHash_Graph_messageType fastReflection_ContentHash_Graph_messageType +var _ protoreflect.MessageType = fastReflection_ContentHash_Graph_messageType{} + +type fastReflection_ContentHash_Graph_messageType struct{} + +func (x fastReflection_ContentHash_Graph_messageType) Zero() protoreflect.Message { + return (*fastReflection_ContentHash_Graph)(nil) +} +func (x fastReflection_ContentHash_Graph_messageType) New() protoreflect.Message { + return new(fastReflection_ContentHash_Graph) +} +func (x fastReflection_ContentHash_Graph_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ContentHash_Graph +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ContentHash_Graph) Descriptor() protoreflect.MessageDescriptor { + return md_ContentHash_Graph +} + +// 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_ContentHash_Graph) Type() protoreflect.MessageType { + return _fastReflection_ContentHash_Graph_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ContentHash_Graph) New() protoreflect.Message { + return new(fastReflection_ContentHash_Graph) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ContentHash_Graph) Interface() protoreflect.ProtoMessage { + return (*ContentHash_Graph)(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_ContentHash_Graph) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Hash) != 0 { + value := protoreflect.ValueOfBytes(x.Hash) + if !f(fd_ContentHash_Graph_hash, value) { + return + } + } + if x.DigestAlgorithm != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.DigestAlgorithm)) + if !f(fd_ContentHash_Graph_digest_algorithm, value) { + return + } + } + if x.CanonicalizationAlgorithm != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.CanonicalizationAlgorithm)) + if !f(fd_ContentHash_Graph_canonicalization_algorithm, value) { + return + } + } + if x.MerkleTree != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.MerkleTree)) + if !f(fd_ContentHash_Graph_merkle_tree, 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_ContentHash_Graph) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.ContentHash.Graph.hash": + return len(x.Hash) != 0 + case "regen.data.v1.ContentHash.Graph.digest_algorithm": + return x.DigestAlgorithm != 0 + case "regen.data.v1.ContentHash.Graph.canonicalization_algorithm": + return x.CanonicalizationAlgorithm != 0 + case "regen.data.v1.ContentHash.Graph.merkle_tree": + return x.MerkleTree != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash.Graph")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash.Graph 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_ContentHash_Graph) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.ContentHash.Graph.hash": + x.Hash = nil + case "regen.data.v1.ContentHash.Graph.digest_algorithm": + x.DigestAlgorithm = 0 + case "regen.data.v1.ContentHash.Graph.canonicalization_algorithm": + x.CanonicalizationAlgorithm = 0 + case "regen.data.v1.ContentHash.Graph.merkle_tree": + x.MerkleTree = 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash.Graph")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash.Graph 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_ContentHash_Graph) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.ContentHash.Graph.hash": + value := x.Hash + return protoreflect.ValueOfBytes(value) + case "regen.data.v1.ContentHash.Graph.digest_algorithm": + value := x.DigestAlgorithm + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "regen.data.v1.ContentHash.Graph.canonicalization_algorithm": + value := x.CanonicalizationAlgorithm + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + case "regen.data.v1.ContentHash.Graph.merkle_tree": + value := x.MerkleTree + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash.Graph")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash.Graph 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_ContentHash_Graph) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.ContentHash.Graph.hash": + x.Hash = value.Bytes() + case "regen.data.v1.ContentHash.Graph.digest_algorithm": + x.DigestAlgorithm = (DigestAlgorithm)(value.Enum()) + case "regen.data.v1.ContentHash.Graph.canonicalization_algorithm": + x.CanonicalizationAlgorithm = (GraphCanonicalizationAlgorithm)(value.Enum()) + case "regen.data.v1.ContentHash.Graph.merkle_tree": + x.MerkleTree = (GraphMerkleTree)(value.Enum()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash.Graph")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash.Graph 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_ContentHash_Graph) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.ContentHash.Graph.hash": + panic(fmt.Errorf("field hash of message regen.data.v1.ContentHash.Graph is not mutable")) + case "regen.data.v1.ContentHash.Graph.digest_algorithm": + panic(fmt.Errorf("field digest_algorithm of message regen.data.v1.ContentHash.Graph is not mutable")) + case "regen.data.v1.ContentHash.Graph.canonicalization_algorithm": + panic(fmt.Errorf("field canonicalization_algorithm of message regen.data.v1.ContentHash.Graph is not mutable")) + case "regen.data.v1.ContentHash.Graph.merkle_tree": + panic(fmt.Errorf("field merkle_tree of message regen.data.v1.ContentHash.Graph is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash.Graph")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash.Graph 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_ContentHash_Graph) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.ContentHash.Graph.hash": + return protoreflect.ValueOfBytes(nil) + case "regen.data.v1.ContentHash.Graph.digest_algorithm": + return protoreflect.ValueOfEnum(0) + case "regen.data.v1.ContentHash.Graph.canonicalization_algorithm": + return protoreflect.ValueOfEnum(0) + case "regen.data.v1.ContentHash.Graph.merkle_tree": + return protoreflect.ValueOfEnum(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.ContentHash.Graph")) + } + panic(fmt.Errorf("message regen.data.v1.ContentHash.Graph 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_ContentHash_Graph) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.ContentHash.Graph", 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_ContentHash_Graph) 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_ContentHash_Graph) 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_ContentHash_Graph) 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_ContentHash_Graph) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ContentHash_Graph) + 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.Hash) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.DigestAlgorithm != 0 { + n += 1 + runtime.Sov(uint64(x.DigestAlgorithm)) + } + if x.CanonicalizationAlgorithm != 0 { + n += 1 + runtime.Sov(uint64(x.CanonicalizationAlgorithm)) + } + if x.MerkleTree != 0 { + n += 1 + runtime.Sov(uint64(x.MerkleTree)) + } + 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().(*ContentHash_Graph) + 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.MerkleTree != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MerkleTree)) + i-- + dAtA[i] = 0x20 + } + if x.CanonicalizationAlgorithm != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.CanonicalizationAlgorithm)) + i-- + dAtA[i] = 0x18 + } + if x.DigestAlgorithm != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.DigestAlgorithm)) + i-- + dAtA[i] = 0x10 + } + if len(x.Hash) > 0 { + i -= len(x.Hash) + copy(dAtA[i:], x.Hash) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Hash))) + 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().(*ContentHash_Graph) + 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: ContentHash_Graph: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ContentHash_Graph: 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 Hash", wireType) + } + var byteLen 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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.Hash = append(x.Hash[:0], dAtA[iNdEx:postIndex]...) + if x.Hash == nil { + x.Hash = []byte{} + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DigestAlgorithm", wireType) + } + x.DigestAlgorithm = 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.DigestAlgorithm |= DigestAlgorithm(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CanonicalizationAlgorithm", wireType) + } + x.CanonicalizationAlgorithm = 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.CanonicalizationAlgorithm |= GraphCanonicalizationAlgorithm(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MerkleTree", wireType) + } + x.MerkleTree = 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.MerkleTree |= GraphMerkleTree(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_SignerEntry protoreflect.MessageDescriptor + fd_SignerEntry_signer protoreflect.FieldDescriptor + fd_SignerEntry_timestamp protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1_types_proto_init() + md_SignerEntry = File_regen_data_v1_types_proto.Messages().ByName("SignerEntry") + fd_SignerEntry_signer = md_SignerEntry.Fields().ByName("signer") + fd_SignerEntry_timestamp = md_SignerEntry.Fields().ByName("timestamp") +} + +var _ protoreflect.Message = (*fastReflection_SignerEntry)(nil) + +type fastReflection_SignerEntry SignerEntry + +func (x *SignerEntry) ProtoReflect() protoreflect.Message { + return (*fastReflection_SignerEntry)(x) +} + +func (x *SignerEntry) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1_types_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_SignerEntry_messageType fastReflection_SignerEntry_messageType +var _ protoreflect.MessageType = fastReflection_SignerEntry_messageType{} + +type fastReflection_SignerEntry_messageType struct{} + +func (x fastReflection_SignerEntry_messageType) Zero() protoreflect.Message { + return (*fastReflection_SignerEntry)(nil) +} +func (x fastReflection_SignerEntry_messageType) New() protoreflect.Message { + return new(fastReflection_SignerEntry) +} +func (x fastReflection_SignerEntry_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_SignerEntry +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_SignerEntry) Descriptor() protoreflect.MessageDescriptor { + return md_SignerEntry +} + +// 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_SignerEntry) Type() protoreflect.MessageType { + return _fastReflection_SignerEntry_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_SignerEntry) New() protoreflect.Message { + return new(fastReflection_SignerEntry) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_SignerEntry) Interface() protoreflect.ProtoMessage { + return (*SignerEntry)(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_SignerEntry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Signer != "" { + value := protoreflect.ValueOfString(x.Signer) + if !f(fd_SignerEntry_signer, value) { + return + } + } + if x.Timestamp != nil { + value := protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + if !f(fd_SignerEntry_timestamp, 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_SignerEntry) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1.SignerEntry.signer": + return x.Signer != "" + case "regen.data.v1.SignerEntry.timestamp": + return x.Timestamp != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.SignerEntry")) + } + panic(fmt.Errorf("message regen.data.v1.SignerEntry 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_SignerEntry) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1.SignerEntry.signer": + x.Signer = "" + case "regen.data.v1.SignerEntry.timestamp": + x.Timestamp = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.SignerEntry")) + } + panic(fmt.Errorf("message regen.data.v1.SignerEntry 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_SignerEntry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1.SignerEntry.signer": + value := x.Signer + return protoreflect.ValueOfString(value) + case "regen.data.v1.SignerEntry.timestamp": + value := x.Timestamp + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.SignerEntry")) + } + panic(fmt.Errorf("message regen.data.v1.SignerEntry 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_SignerEntry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1.SignerEntry.signer": + x.Signer = value.Interface().(string) + case "regen.data.v1.SignerEntry.timestamp": + x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.SignerEntry")) + } + panic(fmt.Errorf("message regen.data.v1.SignerEntry 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_SignerEntry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.SignerEntry.timestamp": + if x.Timestamp == nil { + x.Timestamp = new(timestamppb.Timestamp) + } + return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "regen.data.v1.SignerEntry.signer": + panic(fmt.Errorf("field signer of message regen.data.v1.SignerEntry is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.SignerEntry")) + } + panic(fmt.Errorf("message regen.data.v1.SignerEntry 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_SignerEntry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1.SignerEntry.signer": + return protoreflect.ValueOfString("") + case "regen.data.v1.SignerEntry.timestamp": + m := new(timestamppb.Timestamp) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1.SignerEntry")) + } + panic(fmt.Errorf("message regen.data.v1.SignerEntry 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_SignerEntry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1.SignerEntry", 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_SignerEntry) 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_SignerEntry) 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_SignerEntry) 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_SignerEntry) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*SignerEntry) + 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.Signer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Timestamp != nil { + l = options.Size(x.Timestamp) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*SignerEntry) + 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.Timestamp != nil { + encoded, err := options.Marshal(x.Timestamp) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.Signer) > 0 { + i -= len(x.Signer) + copy(dAtA[i:], x.Signer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signer))) + 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().(*SignerEntry) + 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: SignerEntry: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: SignerEntry: 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 Signer", 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.Signer = 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 Timestamp", 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.Timestamp == nil { + x.Timestamp = ×tamppb.Timestamp{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Timestamp); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc v3.19.1 +// source: regen/data/v1/types.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) +) + +// MediaType defines MIME media types to be used with a ContentHash.Raw hash. +type MediaType int32 + +const ( + // MEDIA_TYPE_UNSPECIFIED can be used for raw binary data + MediaType_MEDIA_TYPE_UNSPECIFIED MediaType = 0 + // plain text + MediaType_MEDIA_TYPE_TEXT_PLAIN MediaType = 1 + // JSON + MediaType_MEDIA_TYPE_JSON MediaType = 2 + // CSV + MediaType_MEDIA_TYPE_CSV MediaType = 3 + // XML + MediaType_MEDIA_TYPE_XML MediaType = 4 + // PDF + MediaType_MEDIA_TYPE_PDF MediaType = 5 + // TIIF + MediaType_MEDIA_TYPE_TIFF MediaType = 16 + // JPG + MediaType_MEDIA_TYPE_JPG MediaType = 17 + // PNG + MediaType_MEDIA_TYPE_PNG MediaType = 18 + // SVG + MediaType_MEDIA_TYPE_SVG MediaType = 19 + // WEBP + MediaType_MEDIA_TYPE_WEBP MediaType = 20 + // AVIF + MediaType_MEDIA_TYPE_AVIF MediaType = 21 + // GIF + MediaType_MEDIA_TYPE_GIF MediaType = 22 + // APNG + MediaType_MEDIA_TYPE_APNG MediaType = 23 + // MPEG + MediaType_MEDIA_TYPE_MPEG MediaType = 32 + // MP4 + MediaType_MEDIA_TYPE_MP4 MediaType = 33 + // WEBM + MediaType_MEDIA_TYPE_WEBM MediaType = 34 + // OGG + MediaType_MEDIA_TYPE_OGG MediaType = 35 +) + +// Enum value maps for MediaType. +var ( + MediaType_name = map[int32]string{ + 0: "MEDIA_TYPE_UNSPECIFIED", + 1: "MEDIA_TYPE_TEXT_PLAIN", + 2: "MEDIA_TYPE_JSON", + 3: "MEDIA_TYPE_CSV", + 4: "MEDIA_TYPE_XML", + 5: "MEDIA_TYPE_PDF", + 16: "MEDIA_TYPE_TIFF", + 17: "MEDIA_TYPE_JPG", + 18: "MEDIA_TYPE_PNG", + 19: "MEDIA_TYPE_SVG", + 20: "MEDIA_TYPE_WEBP", + 21: "MEDIA_TYPE_AVIF", + 22: "MEDIA_TYPE_GIF", + 23: "MEDIA_TYPE_APNG", + 32: "MEDIA_TYPE_MPEG", + 33: "MEDIA_TYPE_MP4", + 34: "MEDIA_TYPE_WEBM", + 35: "MEDIA_TYPE_OGG", + } + MediaType_value = map[string]int32{ + "MEDIA_TYPE_UNSPECIFIED": 0, + "MEDIA_TYPE_TEXT_PLAIN": 1, + "MEDIA_TYPE_JSON": 2, + "MEDIA_TYPE_CSV": 3, + "MEDIA_TYPE_XML": 4, + "MEDIA_TYPE_PDF": 5, + "MEDIA_TYPE_TIFF": 16, + "MEDIA_TYPE_JPG": 17, + "MEDIA_TYPE_PNG": 18, + "MEDIA_TYPE_SVG": 19, + "MEDIA_TYPE_WEBP": 20, + "MEDIA_TYPE_AVIF": 21, + "MEDIA_TYPE_GIF": 22, + "MEDIA_TYPE_APNG": 23, + "MEDIA_TYPE_MPEG": 32, + "MEDIA_TYPE_MP4": 33, + "MEDIA_TYPE_WEBM": 34, + "MEDIA_TYPE_OGG": 35, + } +) + +func (x MediaType) Enum() *MediaType { + p := new(MediaType) + *p = x + return p +} + +func (x MediaType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MediaType) Descriptor() protoreflect.EnumDescriptor { + return file_regen_data_v1_types_proto_enumTypes[0].Descriptor() +} + +func (MediaType) Type() protoreflect.EnumType { + return &file_regen_data_v1_types_proto_enumTypes[0] +} + +func (x MediaType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MediaType.Descriptor instead. +func (MediaType) EnumDescriptor() ([]byte, []int) { + return file_regen_data_v1_types_proto_rawDescGZIP(), []int{0} +} + +// GraphCanonicalizationAlgorithm is the graph canonicalization algorithm +type GraphCanonicalizationAlgorithm int32 + +const ( + // unspecified and invalid + GraphCanonicalizationAlgorithm_GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED GraphCanonicalizationAlgorithm = 0 + // URDNA2015 graph hashing + GraphCanonicalizationAlgorithm_GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 GraphCanonicalizationAlgorithm = 1 +) + +// Enum value maps for GraphCanonicalizationAlgorithm. +var ( + GraphCanonicalizationAlgorithm_name = map[int32]string{ + 0: "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED", + 1: "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015", + } + GraphCanonicalizationAlgorithm_value = map[string]int32{ + "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED": 0, + "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015": 1, + } +) + +func (x GraphCanonicalizationAlgorithm) Enum() *GraphCanonicalizationAlgorithm { + p := new(GraphCanonicalizationAlgorithm) + *p = x + return p +} + +func (x GraphCanonicalizationAlgorithm) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GraphCanonicalizationAlgorithm) Descriptor() protoreflect.EnumDescriptor { + return file_regen_data_v1_types_proto_enumTypes[1].Descriptor() +} + +func (GraphCanonicalizationAlgorithm) Type() protoreflect.EnumType { + return &file_regen_data_v1_types_proto_enumTypes[1] +} + +func (x GraphCanonicalizationAlgorithm) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GraphCanonicalizationAlgorithm.Descriptor instead. +func (GraphCanonicalizationAlgorithm) EnumDescriptor() ([]byte, []int) { + return file_regen_data_v1_types_proto_rawDescGZIP(), []int{1} +} + +// GraphMerkleTree is the graph merkle tree type used for hashing, if any +type GraphMerkleTree int32 + +const ( + // no merkle tree + GraphMerkleTree_GRAPH_MERKLE_TREE_NONE_UNSPECIFIED GraphMerkleTree = 0 +) + +// Enum value maps for GraphMerkleTree. +var ( + GraphMerkleTree_name = map[int32]string{ + 0: "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED", + } + GraphMerkleTree_value = map[string]int32{ + "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED": 0, + } +) + +func (x GraphMerkleTree) Enum() *GraphMerkleTree { + p := new(GraphMerkleTree) + *p = x + return p +} + +func (x GraphMerkleTree) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GraphMerkleTree) Descriptor() protoreflect.EnumDescriptor { + return file_regen_data_v1_types_proto_enumTypes[2].Descriptor() +} + +func (GraphMerkleTree) Type() protoreflect.EnumType { + return &file_regen_data_v1_types_proto_enumTypes[2] +} + +func (x GraphMerkleTree) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GraphMerkleTree.Descriptor instead. +func (GraphMerkleTree) EnumDescriptor() ([]byte, []int) { + return file_regen_data_v1_types_proto_rawDescGZIP(), []int{2} +} + +// DigestAlgorithm is the hash digest algorithm +type DigestAlgorithm int32 + +const ( + // unspecified and invalid + DigestAlgorithm_DIGEST_ALGORITHM_UNSPECIFIED DigestAlgorithm = 0 + // BLAKE2b-256 + DigestAlgorithm_DIGEST_ALGORITHM_BLAKE2B_256 DigestAlgorithm = 1 +) + +// Enum value maps for DigestAlgorithm. +var ( + DigestAlgorithm_name = map[int32]string{ + 0: "DIGEST_ALGORITHM_UNSPECIFIED", + 1: "DIGEST_ALGORITHM_BLAKE2B_256", + } + DigestAlgorithm_value = map[string]int32{ + "DIGEST_ALGORITHM_UNSPECIFIED": 0, + "DIGEST_ALGORITHM_BLAKE2B_256": 1, + } +) + +func (x DigestAlgorithm) Enum() *DigestAlgorithm { + p := new(DigestAlgorithm) + *p = x + return p +} + +func (x DigestAlgorithm) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DigestAlgorithm) Descriptor() protoreflect.EnumDescriptor { + return file_regen_data_v1_types_proto_enumTypes[3].Descriptor() +} + +func (DigestAlgorithm) Type() protoreflect.EnumType { + return &file_regen_data_v1_types_proto_enumTypes[3] +} + +func (x DigestAlgorithm) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DigestAlgorithm.Descriptor instead. +func (DigestAlgorithm) EnumDescriptor() ([]byte, []int) { + return file_regen_data_v1_types_proto_rawDescGZIP(), []int{3} +} + +// ContentHash specifies a hash based content identifier for a piece of data +type ContentHash struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // sum selects the type of content hash + // + // Types that are assignable to Sum: + // *ContentHash_Raw_ + // *ContentHash_Graph_ + Sum isContentHash_Sum `protobuf_oneof:"sum"` +} + +func (x *ContentHash) Reset() { + *x = ContentHash{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ContentHash) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContentHash) ProtoMessage() {} + +// Deprecated: Use ContentHash.ProtoReflect.Descriptor instead. +func (*ContentHash) Descriptor() ([]byte, []int) { + return file_regen_data_v1_types_proto_rawDescGZIP(), []int{0} +} + +func (x *ContentHash) GetSum() isContentHash_Sum { + if x != nil { + return x.Sum + } + return nil +} + +func (x *ContentHash) GetRaw() *ContentHash_Raw { + if x, ok := x.GetSum().(*ContentHash_Raw_); ok { + return x.Raw + } + return nil +} + +func (x *ContentHash) GetGraph() *ContentHash_Graph { + if x, ok := x.GetSum().(*ContentHash_Graph_); ok { + return x.Graph + } + return nil +} + +type isContentHash_Sum interface { + isContentHash_Sum() +} + +type ContentHash_Raw_ struct { + // Raw specifies "raw" data which does not specify a deterministic, canonical encoding. + // Users of these hashes MUST maintain a copy of the hashed data which is preserved bit by bit. + // All other content encodings specify a deterministic, canonical encoding allowing implementations to + // choose from a variety of alternative formats for transport and encoding while maintaining the guarantee + // that the canonical hash will not change. The media type for "raw" data is defined by the MediaType enum. + Raw *ContentHash_Raw `protobuf:"bytes,1,opt,name=raw,proto3,oneof"` +} + +type ContentHash_Graph_ struct { + // Graph specifies graph data that conforms to the RDF data model. + // The canonicalization algorithm used for an RDF graph is specified by GraphCanonicalizationAlgorithm. + Graph *ContentHash_Graph `protobuf:"bytes,2,opt,name=graph,proto3,oneof"` +} + +func (*ContentHash_Raw_) isContentHash_Sum() {} + +func (*ContentHash_Graph_) isContentHash_Sum() {} + +// SignerEntry is a signer entry wrapping a signer address and timestamp +type SignerEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // signer is the address of the signer + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` + // timestamp is the time at which the data was signed + Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` +} + +func (x *SignerEntry) Reset() { + *x = SignerEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignerEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignerEntry) ProtoMessage() {} + +// Deprecated: Use SignerEntry.ProtoReflect.Descriptor instead. +func (*SignerEntry) Descriptor() ([]byte, []int) { + return file_regen_data_v1_types_proto_rawDescGZIP(), []int{1} +} + +func (x *SignerEntry) GetSigner() string { + if x != nil { + return x.Signer + } + return "" +} + +func (x *SignerEntry) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +// Raw is the content hash type used for raw data +type ContentHash_Raw struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // hash represents the hash of the data based on the specified digest_algorithm + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + // digest_algorithm represents the hash digest algorithm. + DigestAlgorithm DigestAlgorithm `protobuf:"varint,2,opt,name=digest_algorithm,json=digestAlgorithm,proto3,enum=regen.data.v1.DigestAlgorithm" json:"digest_algorithm,omitempty"` + // media_type represents the MediaType for raw data. + MediaType MediaType `protobuf:"varint,3,opt,name=media_type,json=mediaType,proto3,enum=regen.data.v1.MediaType" json:"media_type,omitempty"` +} + +func (x *ContentHash_Raw) Reset() { + *x = ContentHash_Raw{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_types_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ContentHash_Raw) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContentHash_Raw) ProtoMessage() {} + +// Deprecated: Use ContentHash_Raw.ProtoReflect.Descriptor instead. +func (*ContentHash_Raw) Descriptor() ([]byte, []int) { + return file_regen_data_v1_types_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *ContentHash_Raw) GetHash() []byte { + if x != nil { + return x.Hash + } + return nil +} + +func (x *ContentHash_Raw) GetDigestAlgorithm() DigestAlgorithm { + if x != nil { + return x.DigestAlgorithm + } + return DigestAlgorithm_DIGEST_ALGORITHM_UNSPECIFIED +} + +func (x *ContentHash_Raw) GetMediaType() MediaType { + if x != nil { + return x.MediaType + } + return MediaType_MEDIA_TYPE_UNSPECIFIED +} + +// Graph is the content hash type used for RDF graph data +type ContentHash_Graph struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // hash represents the hash of the data based on the specified digest_algorithm + Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + // digest_algorithm represents the hash digest algorithm. + DigestAlgorithm DigestAlgorithm `protobuf:"varint,2,opt,name=digest_algorithm,json=digestAlgorithm,proto3,enum=regen.data.v1.DigestAlgorithm" json:"digest_algorithm,omitempty"` + // graph_canonicalization_algorithm represents the RDF graph canonicalization algorithm. + CanonicalizationAlgorithm GraphCanonicalizationAlgorithm `protobuf:"varint,3,opt,name=canonicalization_algorithm,json=canonicalizationAlgorithm,proto3,enum=regen.data.v1.GraphCanonicalizationAlgorithm" json:"canonicalization_algorithm,omitempty"` + // merkle_tree is the merkle tree type used for the graph hash, if any + MerkleTree GraphMerkleTree `protobuf:"varint,4,opt,name=merkle_tree,json=merkleTree,proto3,enum=regen.data.v1.GraphMerkleTree" json:"merkle_tree,omitempty"` +} + +func (x *ContentHash_Graph) Reset() { + *x = ContentHash_Graph{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1_types_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ContentHash_Graph) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContentHash_Graph) ProtoMessage() {} + +// Deprecated: Use ContentHash_Graph.ProtoReflect.Descriptor instead. +func (*ContentHash_Graph) Descriptor() ([]byte, []int) { + return file_regen_data_v1_types_proto_rawDescGZIP(), []int{0, 1} +} + +func (x *ContentHash_Graph) GetHash() []byte { + if x != nil { + return x.Hash + } + return nil +} + +func (x *ContentHash_Graph) GetDigestAlgorithm() DigestAlgorithm { + if x != nil { + return x.DigestAlgorithm + } + return DigestAlgorithm_DIGEST_ALGORITHM_UNSPECIFIED +} + +func (x *ContentHash_Graph) GetCanonicalizationAlgorithm() GraphCanonicalizationAlgorithm { + if x != nil { + return x.CanonicalizationAlgorithm + } + return GraphCanonicalizationAlgorithm_GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED +} + +func (x *ContentHash_Graph) GetMerkleTree() GraphMerkleTree { + if x != nil { + return x.MerkleTree + } + return GraphMerkleTree_GRAPH_MERKLE_TREE_NONE_UNSPECIFIED +} + +var File_regen_data_v1_types_proto protoreflect.FileDescriptor + +var file_regen_data_v1_types_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 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, 0xba, 0x04, 0x0a, 0x0b, + 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x32, 0x0a, 0x03, 0x72, + 0x61, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x48, 0x61, 0x73, 0x68, 0x2e, 0x52, 0x61, 0x77, 0x48, 0x00, 0x52, 0x03, 0x72, 0x61, 0x77, 0x12, + 0x38, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x70, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, + 0x48, 0x00, 0x52, 0x05, 0x67, 0x72, 0x61, 0x70, 0x68, 0x1a, 0x9d, 0x01, 0x0a, 0x03, 0x52, 0x61, + 0x77, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x49, 0x0a, 0x10, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x5f, + 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x52, + 0x0f, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, + 0x12, 0x37, 0x0a, 0x0a, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, + 0x6d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x95, 0x02, 0x0a, 0x05, 0x47, 0x72, + 0x61, 0x70, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x49, 0x0a, 0x10, 0x64, 0x69, 0x67, 0x65, 0x73, + 0x74, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, + 0x6d, 0x52, 0x0f, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, + 0x68, 0x6d, 0x12, 0x6c, 0x0a, 0x1a, 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x43, 0x61, 0x6e, 0x6f, + 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x67, 0x6f, + 0x72, 0x69, 0x74, 0x68, 0x6d, 0x52, 0x19, 0x63, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, + 0x12, 0x3f, 0x0a, 0x0b, 0x6d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x4d, 0x65, 0x72, 0x6b, 0x6c, + 0x65, 0x54, 0x72, 0x65, 0x65, 0x52, 0x0a, 0x6d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x54, 0x72, 0x65, + 0x65, 0x42, 0x05, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x22, 0x5f, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, + 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, + 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2a, 0x89, 0x03, 0x0a, 0x09, 0x4d, 0x65, + 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x45, 0x44, 0x49, 0x41, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, + 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x13, + 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4a, 0x53, 0x4f, + 0x4e, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x43, 0x53, 0x56, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x58, 0x4d, 0x4c, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x4d, + 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x44, 0x46, 0x10, 0x05, 0x12, + 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x49, + 0x46, 0x46, 0x10, 0x10, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x4a, 0x50, 0x47, 0x10, 0x11, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, + 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4e, 0x47, 0x10, 0x12, 0x12, 0x12, 0x0a, 0x0e, + 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x56, 0x47, 0x10, 0x13, + 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, + 0x45, 0x42, 0x50, 0x10, 0x14, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x41, 0x56, 0x49, 0x46, 0x10, 0x15, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, + 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49, 0x46, 0x10, 0x16, 0x12, 0x13, + 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x50, 0x4e, + 0x47, 0x10, 0x17, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x4d, 0x50, 0x45, 0x47, 0x10, 0x20, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, + 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x50, 0x34, 0x10, 0x21, 0x12, 0x13, 0x0a, 0x0f, + 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x45, 0x42, 0x4d, 0x10, + 0x22, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x4f, 0x47, 0x47, 0x10, 0x23, 0x2a, 0x82, 0x01, 0x0a, 0x1e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x43, + 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, + 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x30, 0x0a, 0x2c, 0x47, 0x52, 0x41, 0x50, + 0x48, 0x5f, 0x43, 0x41, 0x4e, 0x4f, 0x4e, 0x49, 0x43, 0x41, 0x4c, 0x49, 0x5a, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x41, 0x4c, 0x47, 0x4f, 0x52, 0x49, 0x54, 0x48, 0x4d, 0x5f, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x2e, 0x0a, 0x2a, 0x47, 0x52, + 0x41, 0x50, 0x48, 0x5f, 0x43, 0x41, 0x4e, 0x4f, 0x4e, 0x49, 0x43, 0x41, 0x4c, 0x49, 0x5a, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x4c, 0x47, 0x4f, 0x52, 0x49, 0x54, 0x48, 0x4d, 0x5f, 0x55, + 0x52, 0x44, 0x4e, 0x41, 0x32, 0x30, 0x31, 0x35, 0x10, 0x01, 0x2a, 0x39, 0x0a, 0x0f, 0x47, 0x72, + 0x61, 0x70, 0x68, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x54, 0x72, 0x65, 0x65, 0x12, 0x26, 0x0a, + 0x22, 0x47, 0x52, 0x41, 0x50, 0x48, 0x5f, 0x4d, 0x45, 0x52, 0x4b, 0x4c, 0x45, 0x5f, 0x54, 0x52, + 0x45, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x2a, 0x55, 0x0a, 0x0f, 0x44, 0x69, 0x67, 0x65, 0x73, 0x74, 0x41, + 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x49, 0x47, 0x45, + 0x53, 0x54, 0x5f, 0x41, 0x4c, 0x47, 0x4f, 0x52, 0x49, 0x54, 0x48, 0x4d, 0x5f, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x49, + 0x47, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x4c, 0x47, 0x4f, 0x52, 0x49, 0x54, 0x48, 0x4d, 0x5f, 0x42, + 0x4c, 0x41, 0x4b, 0x45, 0x32, 0x42, 0x5f, 0x32, 0x35, 0x36, 0x10, 0x01, 0x42, 0xb5, 0x01, 0x0a, + 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, 0xaa, 0x02, 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x44, + 0x61, 0x74, 0x61, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, + 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, + 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x0f, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_regen_data_v1_types_proto_rawDescOnce sync.Once + file_regen_data_v1_types_proto_rawDescData = file_regen_data_v1_types_proto_rawDesc +) + +func file_regen_data_v1_types_proto_rawDescGZIP() []byte { + file_regen_data_v1_types_proto_rawDescOnce.Do(func() { + file_regen_data_v1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_regen_data_v1_types_proto_rawDescData) + }) + return file_regen_data_v1_types_proto_rawDescData +} + +var file_regen_data_v1_types_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_regen_data_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_regen_data_v1_types_proto_goTypes = []interface{}{ + (MediaType)(0), // 0: regen.data.v1.MediaType + (GraphCanonicalizationAlgorithm)(0), // 1: regen.data.v1.GraphCanonicalizationAlgorithm + (GraphMerkleTree)(0), // 2: regen.data.v1.GraphMerkleTree + (DigestAlgorithm)(0), // 3: regen.data.v1.DigestAlgorithm + (*ContentHash)(nil), // 4: regen.data.v1.ContentHash + (*SignerEntry)(nil), // 5: regen.data.v1.SignerEntry + (*ContentHash_Raw)(nil), // 6: regen.data.v1.ContentHash.Raw + (*ContentHash_Graph)(nil), // 7: regen.data.v1.ContentHash.Graph + (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp +} +var file_regen_data_v1_types_proto_depIdxs = []int32{ + 6, // 0: regen.data.v1.ContentHash.raw:type_name -> regen.data.v1.ContentHash.Raw + 7, // 1: regen.data.v1.ContentHash.graph:type_name -> regen.data.v1.ContentHash.Graph + 8, // 2: regen.data.v1.SignerEntry.timestamp:type_name -> google.protobuf.Timestamp + 3, // 3: regen.data.v1.ContentHash.Raw.digest_algorithm:type_name -> regen.data.v1.DigestAlgorithm + 0, // 4: regen.data.v1.ContentHash.Raw.media_type:type_name -> regen.data.v1.MediaType + 3, // 5: regen.data.v1.ContentHash.Graph.digest_algorithm:type_name -> regen.data.v1.DigestAlgorithm + 1, // 6: regen.data.v1.ContentHash.Graph.canonicalization_algorithm:type_name -> regen.data.v1.GraphCanonicalizationAlgorithm + 2, // 7: regen.data.v1.ContentHash.Graph.merkle_tree:type_name -> regen.data.v1.GraphMerkleTree + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_regen_data_v1_types_proto_init() } +func file_regen_data_v1_types_proto_init() { + if File_regen_data_v1_types_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_regen_data_v1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContentHash); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignerEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContentHash_Raw); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContentHash_Graph); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_regen_data_v1_types_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*ContentHash_Raw_)(nil), + (*ContentHash_Graph_)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_regen_data_v1_types_proto_rawDesc, + NumEnums: 4, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_regen_data_v1_types_proto_goTypes, + DependencyIndexes: file_regen_data_v1_types_proto_depIdxs, + EnumInfos: file_regen_data_v1_types_proto_enumTypes, + MessageInfos: file_regen_data_v1_types_proto_msgTypes, + }.Build() + File_regen_data_v1_types_proto = out.File + file_regen_data_v1_types_proto_rawDesc = nil + file_regen_data_v1_types_proto_goTypes = nil + file_regen_data_v1_types_proto_depIdxs = nil +} diff --git a/api/regen/data/v1alpha2/genesis.pulsar.go b/api/regen/data/v1alpha2/genesis.pulsar.go index eff418f8f3..98743de32a 100644 --- a/api/regen/data/v1alpha2/genesis.pulsar.go +++ b/api/regen/data/v1alpha2/genesis.pulsar.go @@ -563,6 +563,7 @@ var ( fd_GenesisContentEntry_hash protoreflect.FieldDescriptor fd_GenesisContentEntry_timestamp protoreflect.FieldDescriptor fd_GenesisContentEntry_signers protoreflect.FieldDescriptor + fd_GenesisContentEntry_content protoreflect.FieldDescriptor ) func init() { @@ -571,6 +572,7 @@ func init() { fd_GenesisContentEntry_hash = md_GenesisContentEntry.Fields().ByName("hash") fd_GenesisContentEntry_timestamp = md_GenesisContentEntry.Fields().ByName("timestamp") fd_GenesisContentEntry_signers = md_GenesisContentEntry.Fields().ByName("signers") + fd_GenesisContentEntry_content = md_GenesisContentEntry.Fields().ByName("content") } var _ protoreflect.Message = (*fastReflection_GenesisContentEntry)(nil) @@ -656,6 +658,12 @@ func (x *fastReflection_GenesisContentEntry) Range(f func(protoreflect.FieldDesc return } } + if x.Content != nil { + value := protoreflect.ValueOfMessage(x.Content.ProtoReflect()) + if !f(fd_GenesisContentEntry_content, value) { + return + } + } } // Has reports whether a field is populated. @@ -677,6 +685,8 @@ func (x *fastReflection_GenesisContentEntry) Has(fd protoreflect.FieldDescriptor return x.Timestamp != nil case "regen.data.v1alpha2.GenesisContentEntry.signers": return len(x.Signers) != 0 + case "regen.data.v1alpha2.GenesisContentEntry.content": + return x.Content != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.GenesisContentEntry")) @@ -699,6 +709,8 @@ func (x *fastReflection_GenesisContentEntry) Clear(fd protoreflect.FieldDescript x.Timestamp = nil case "regen.data.v1alpha2.GenesisContentEntry.signers": x.Signers = nil + case "regen.data.v1alpha2.GenesisContentEntry.content": + x.Content = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.GenesisContentEntry")) @@ -727,6 +739,9 @@ func (x *fastReflection_GenesisContentEntry) Get(descriptor protoreflect.FieldDe } listValue := &_GenesisContentEntry_3_list{list: &x.Signers} return protoreflect.ValueOfList(listValue) + case "regen.data.v1alpha2.GenesisContentEntry.content": + value := x.Content + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.GenesisContentEntry")) @@ -755,6 +770,8 @@ func (x *fastReflection_GenesisContentEntry) Set(fd protoreflect.FieldDescriptor lv := value.List() clv := lv.(*_GenesisContentEntry_3_list) x.Signers = *clv.list + case "regen.data.v1alpha2.GenesisContentEntry.content": + x.Content = value.Message().Interface().(*Content) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.GenesisContentEntry")) @@ -791,6 +808,11 @@ func (x *fastReflection_GenesisContentEntry) Mutable(fd protoreflect.FieldDescri } value := &_GenesisContentEntry_3_list{list: &x.Signers} return protoreflect.ValueOfList(value) + case "regen.data.v1alpha2.GenesisContentEntry.content": + if x.Content == nil { + x.Content = new(Content) + } + return protoreflect.ValueOfMessage(x.Content.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.GenesisContentEntry")) @@ -813,6 +835,9 @@ func (x *fastReflection_GenesisContentEntry) NewField(fd protoreflect.FieldDescr case "regen.data.v1alpha2.GenesisContentEntry.signers": list := []*SignerEntry{} return protoreflect.ValueOfList(&_GenesisContentEntry_3_list{list: &list}) + case "regen.data.v1alpha2.GenesisContentEntry.content": + m := new(Content) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.GenesisContentEntry")) @@ -896,6 +921,10 @@ func (x *fastReflection_GenesisContentEntry) ProtoMethods() *protoiface.Methods n += 1 + l + runtime.Sov(uint64(l)) } } + if x.Content != nil { + l = options.Size(x.Content) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -925,6 +954,20 @@ func (x *fastReflection_GenesisContentEntry) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.Content != nil { + encoded, err := options.Marshal(x.Content) + 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.Signers) > 0 { for iNdEx := len(x.Signers) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.Signers[iNdEx]) @@ -1124,6 +1167,42 @@ func (x *fastReflection_GenesisContentEntry) ProtoMethods() *protoiface.Methods return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Content", 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.Content == nil { + x.Content = &Content{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Content); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1221,6 +1300,8 @@ type GenesisContentEntry struct { Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // signers are the signers, if any Signers []*SignerEntry `protobuf:"bytes,3,rep,name=signers,proto3" json:"signers,omitempty"` + // content is the actual content if stored on-chain + Content *Content `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` } func (x *GenesisContentEntry) Reset() { @@ -1264,6 +1345,13 @@ func (x *GenesisContentEntry) GetSigners() []*SignerEntry { return nil } +func (x *GenesisContentEntry) GetContent() *Content { + if x != nil { + return x.Content + } + return nil +} + var File_regen_data_v1alpha2_genesis_proto protoreflect.FileDescriptor var file_regen_data_v1alpha2_genesis_proto_rawDesc = []byte{ @@ -1279,7 +1367,7 @@ var file_regen_data_v1alpha2_genesis_proto_rawDesc = []byte{ 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0xc1, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0xf9, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x34, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, @@ -1292,21 +1380,25 @@ var file_regen_data_v1alpha2_genesis_proto_rawDesc = []byte{ 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x65, - 0x72, 0x73, 0x42, 0xe1, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x0c, - 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, - 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x3b, 0x64, 0x61, - 0x74, 0x61, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, - 0xaa, 0x02, 0x13, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xca, 0x02, 0x13, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, - 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xe2, 0x02, 0x1f, 0x52, - 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x15, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, 0x56, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x73, 0x12, 0x36, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0xe1, 0x01, 0x0a, 0x17, 0x63, + 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x32, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x32, 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, 0xaa, 0x02, 0x13, 0x52, 0x65, 0x67, 0x65, 0x6e, + 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xca, 0x02, + 0x13, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x32, 0xe2, 0x02, 0x1f, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, + 0x61, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, + 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1328,17 +1420,19 @@ var file_regen_data_v1alpha2_genesis_proto_goTypes = []interface{}{ (*ContentHash)(nil), // 2: regen.data.v1alpha2.ContentHash (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp (*SignerEntry)(nil), // 4: regen.data.v1alpha2.SignerEntry + (*Content)(nil), // 5: regen.data.v1alpha2.Content } var file_regen_data_v1alpha2_genesis_proto_depIdxs = []int32{ 1, // 0: regen.data.v1alpha2.GenesisState.entries:type_name -> regen.data.v1alpha2.GenesisContentEntry 2, // 1: regen.data.v1alpha2.GenesisContentEntry.hash:type_name -> regen.data.v1alpha2.ContentHash 3, // 2: regen.data.v1alpha2.GenesisContentEntry.timestamp:type_name -> google.protobuf.Timestamp 4, // 3: regen.data.v1alpha2.GenesisContentEntry.signers:type_name -> regen.data.v1alpha2.SignerEntry - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 5, // 4: regen.data.v1alpha2.GenesisContentEntry.content:type_name -> regen.data.v1alpha2.Content + 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_regen_data_v1alpha2_genesis_proto_init() } diff --git a/api/regen/data/v1alpha2/query.pulsar.go b/api/regen/data/v1alpha2/query.pulsar.go index 0d0479e049..749d22eadb 100644 --- a/api/regen/data/v1alpha2/query.pulsar.go +++ b/api/regen/data/v1alpha2/query.pulsar.go @@ -16,25 +16,25 @@ import ( ) var ( - md_QueryByIRIRequest protoreflect.MessageDescriptor - fd_QueryByIRIRequest_iri protoreflect.FieldDescriptor + md_QueryByHashRequest protoreflect.MessageDescriptor + fd_QueryByHashRequest_hash protoreflect.FieldDescriptor ) func init() { file_regen_data_v1alpha2_query_proto_init() - md_QueryByIRIRequest = File_regen_data_v1alpha2_query_proto.Messages().ByName("QueryByIRIRequest") - fd_QueryByIRIRequest_iri = md_QueryByIRIRequest.Fields().ByName("iri") + md_QueryByHashRequest = File_regen_data_v1alpha2_query_proto.Messages().ByName("QueryByHashRequest") + fd_QueryByHashRequest_hash = md_QueryByHashRequest.Fields().ByName("hash") } -var _ protoreflect.Message = (*fastReflection_QueryByIRIRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryByHashRequest)(nil) -type fastReflection_QueryByIRIRequest QueryByIRIRequest +type fastReflection_QueryByHashRequest QueryByHashRequest -func (x *QueryByIRIRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryByIRIRequest)(x) +func (x *QueryByHashRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryByHashRequest)(x) } -func (x *QueryByIRIRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryByHashRequest) slowProtoReflect() protoreflect.Message { mi := &file_regen_data_v1alpha2_query_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -46,43 +46,43 @@ func (x *QueryByIRIRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryByIRIRequest_messageType fastReflection_QueryByIRIRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryByIRIRequest_messageType{} +var _fastReflection_QueryByHashRequest_messageType fastReflection_QueryByHashRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryByHashRequest_messageType{} -type fastReflection_QueryByIRIRequest_messageType struct{} +type fastReflection_QueryByHashRequest_messageType struct{} -func (x fastReflection_QueryByIRIRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryByIRIRequest)(nil) +func (x fastReflection_QueryByHashRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryByHashRequest)(nil) } -func (x fastReflection_QueryByIRIRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryByIRIRequest) +func (x fastReflection_QueryByHashRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryByHashRequest) } -func (x fastReflection_QueryByIRIRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryByIRIRequest +func (x fastReflection_QueryByHashRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryByHashRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryByIRIRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryByIRIRequest +func (x *fastReflection_QueryByHashRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryByHashRequest } // 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_QueryByIRIRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryByIRIRequest_messageType +func (x *fastReflection_QueryByHashRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryByHashRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryByIRIRequest) New() protoreflect.Message { - return new(fastReflection_QueryByIRIRequest) +func (x *fastReflection_QueryByHashRequest) New() protoreflect.Message { + return new(fastReflection_QueryByHashRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryByIRIRequest) Interface() protoreflect.ProtoMessage { - return (*QueryByIRIRequest)(x) +func (x *fastReflection_QueryByHashRequest) Interface() protoreflect.ProtoMessage { + return (*QueryByHashRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -90,10 +90,10 @@ func (x *fastReflection_QueryByIRIRequest) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryByIRIRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Iri != "" { - value := protoreflect.ValueOfString(x.Iri) - if !f(fd_QueryByIRIRequest_iri, value) { +func (x *fastReflection_QueryByHashRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Hash != nil { + value := protoreflect.ValueOfMessage(x.Hash.ProtoReflect()) + if !f(fd_QueryByHashRequest_hash, value) { return } } @@ -110,15 +110,15 @@ func (x *fastReflection_QueryByIRIRequest) Range(f func(protoreflect.FieldDescri // 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_QueryByIRIRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryByHashRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.data.v1alpha2.QueryByIRIRequest.iri": - return x.Iri != "" + case "regen.data.v1alpha2.QueryByHashRequest.hash": + return x.Hash != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByIRIRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByHashRequest")) } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryByIRIRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.QueryByHashRequest does not contain field %s", fd.FullName())) } } @@ -128,15 +128,15 @@ func (x *fastReflection_QueryByIRIRequest) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryByIRIRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryByHashRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.data.v1alpha2.QueryByIRIRequest.iri": - x.Iri = "" + case "regen.data.v1alpha2.QueryByHashRequest.hash": + x.Hash = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByIRIRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByHashRequest")) } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryByIRIRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.QueryByHashRequest does not contain field %s", fd.FullName())) } } @@ -146,16 +146,16 @@ func (x *fastReflection_QueryByIRIRequest) Clear(fd protoreflect.FieldDescriptor // 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_QueryByIRIRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryByHashRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.data.v1alpha2.QueryByIRIRequest.iri": - value := x.Iri - return protoreflect.ValueOfString(value) + case "regen.data.v1alpha2.QueryByHashRequest.hash": + value := x.Hash + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByIRIRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByHashRequest")) } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryByIRIRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.QueryByHashRequest does not contain field %s", descriptor.FullName())) } } @@ -169,15 +169,15 @@ func (x *fastReflection_QueryByIRIRequest) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryByIRIRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryByHashRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.data.v1alpha2.QueryByIRIRequest.iri": - x.Iri = value.Interface().(string) + case "regen.data.v1alpha2.QueryByHashRequest.hash": + x.Hash = value.Message().Interface().(*ContentHash) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByIRIRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByHashRequest")) } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryByIRIRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.QueryByHashRequest does not contain field %s", fd.FullName())) } } @@ -191,40 +191,44 @@ func (x *fastReflection_QueryByIRIRequest) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryByIRIRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryByHashRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.QueryByIRIRequest.iri": - panic(fmt.Errorf("field iri of message regen.data.v1alpha2.QueryByIRIRequest is not mutable")) + case "regen.data.v1alpha2.QueryByHashRequest.hash": + if x.Hash == nil { + x.Hash = new(ContentHash) + } + return protoreflect.ValueOfMessage(x.Hash.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByIRIRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByHashRequest")) } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryByIRIRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.QueryByHashRequest 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_QueryByIRIRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryByHashRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.QueryByIRIRequest.iri": - return protoreflect.ValueOfString("") + case "regen.data.v1alpha2.QueryByHashRequest.hash": + m := new(ContentHash) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByIRIRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByHashRequest")) } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryByIRIRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.QueryByHashRequest 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_QueryByIRIRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryByHashRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.QueryByIRIRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.QueryByHashRequest", d.FullName())) } panic("unreachable") } @@ -232,7 +236,7 @@ func (x *fastReflection_QueryByIRIRequest) WhichOneof(d protoreflect.OneofDescri // 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_QueryByIRIRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryByHashRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -243,7 +247,7 @@ func (x *fastReflection_QueryByIRIRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryByIRIRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryByHashRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -255,7 +259,7 @@ func (x *fastReflection_QueryByIRIRequest) SetUnknown(fields protoreflect.RawFie // 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_QueryByIRIRequest) IsValid() bool { +func (x *fastReflection_QueryByHashRequest) IsValid() bool { return x != nil } @@ -265,9 +269,9 @@ func (x *fastReflection_QueryByIRIRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryByIRIRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryByHashRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryByIRIRequest) + x := input.Message.Interface().(*QueryByHashRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -279,8 +283,8 @@ func (x *fastReflection_QueryByIRIRequest) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Iri) - if l > 0 { + if x.Hash != nil { + l = options.Size(x.Hash) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -293,7 +297,7 @@ func (x *fastReflection_QueryByIRIRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryByIRIRequest) + x := input.Message.Interface().(*QueryByHashRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -312,10 +316,17 @@ func (x *fastReflection_QueryByIRIRequest) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Iri) > 0 { - i -= len(x.Iri) - copy(dAtA[i:], x.Iri) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Iri))) + if x.Hash != nil { + encoded, err := options.Marshal(x.Hash) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -330,7 +341,7 @@ func (x *fastReflection_QueryByIRIRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryByIRIRequest) + x := input.Message.Interface().(*QueryByHashRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -362,17 +373,17 @@ func (x *fastReflection_QueryByIRIRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryByIRIRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryByHashRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryByIRIRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryByHashRequest: 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 Iri", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -382,23 +393,27 @@ func (x *fastReflection_QueryByIRIRequest) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Iri = string(dAtA[iNdEx:postIndex]) + if x.Hash == nil { + x.Hash = &ContentHash{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Hash); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -436,25 +451,25 @@ func (x *fastReflection_QueryByIRIRequest) ProtoMethods() *protoiface.Methods { } var ( - md_QueryByIRIResponse protoreflect.MessageDescriptor - fd_QueryByIRIResponse_entry protoreflect.FieldDescriptor + md_QueryByHashResponse protoreflect.MessageDescriptor + fd_QueryByHashResponse_entry protoreflect.FieldDescriptor ) func init() { file_regen_data_v1alpha2_query_proto_init() - md_QueryByIRIResponse = File_regen_data_v1alpha2_query_proto.Messages().ByName("QueryByIRIResponse") - fd_QueryByIRIResponse_entry = md_QueryByIRIResponse.Fields().ByName("entry") + md_QueryByHashResponse = File_regen_data_v1alpha2_query_proto.Messages().ByName("QueryByHashResponse") + fd_QueryByHashResponse_entry = md_QueryByHashResponse.Fields().ByName("entry") } -var _ protoreflect.Message = (*fastReflection_QueryByIRIResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryByHashResponse)(nil) -type fastReflection_QueryByIRIResponse QueryByIRIResponse +type fastReflection_QueryByHashResponse QueryByHashResponse -func (x *QueryByIRIResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryByIRIResponse)(x) +func (x *QueryByHashResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryByHashResponse)(x) } -func (x *QueryByIRIResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryByHashResponse) slowProtoReflect() protoreflect.Message { mi := &file_regen_data_v1alpha2_query_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -466,43 +481,43 @@ func (x *QueryByIRIResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryByIRIResponse_messageType fastReflection_QueryByIRIResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryByIRIResponse_messageType{} +var _fastReflection_QueryByHashResponse_messageType fastReflection_QueryByHashResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryByHashResponse_messageType{} -type fastReflection_QueryByIRIResponse_messageType struct{} +type fastReflection_QueryByHashResponse_messageType struct{} -func (x fastReflection_QueryByIRIResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryByIRIResponse)(nil) +func (x fastReflection_QueryByHashResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryByHashResponse)(nil) } -func (x fastReflection_QueryByIRIResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryByIRIResponse) +func (x fastReflection_QueryByHashResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryByHashResponse) } -func (x fastReflection_QueryByIRIResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryByIRIResponse +func (x fastReflection_QueryByHashResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryByHashResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryByIRIResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryByIRIResponse +func (x *fastReflection_QueryByHashResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryByHashResponse } // 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_QueryByIRIResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryByIRIResponse_messageType +func (x *fastReflection_QueryByHashResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryByHashResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryByIRIResponse) New() protoreflect.Message { - return new(fastReflection_QueryByIRIResponse) +func (x *fastReflection_QueryByHashResponse) New() protoreflect.Message { + return new(fastReflection_QueryByHashResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryByIRIResponse) Interface() protoreflect.ProtoMessage { - return (*QueryByIRIResponse)(x) +func (x *fastReflection_QueryByHashResponse) Interface() protoreflect.ProtoMessage { + return (*QueryByHashResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -510,10 +525,10 @@ func (x *fastReflection_QueryByIRIResponse) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryByIRIResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryByHashResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Entry != nil { value := protoreflect.ValueOfMessage(x.Entry.ProtoReflect()) - if !f(fd_QueryByIRIResponse_entry, value) { + if !f(fd_QueryByHashResponse_entry, value) { return } } @@ -530,15 +545,15 @@ func (x *fastReflection_QueryByIRIResponse) Range(f func(protoreflect.FieldDescr // 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_QueryByIRIResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryByHashResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.data.v1alpha2.QueryByIRIResponse.entry": + case "regen.data.v1alpha2.QueryByHashResponse.entry": return x.Entry != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByIRIResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByHashResponse")) } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryByIRIResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.QueryByHashResponse does not contain field %s", fd.FullName())) } } @@ -548,15 +563,15 @@ func (x *fastReflection_QueryByIRIResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryByIRIResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryByHashResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.data.v1alpha2.QueryByIRIResponse.entry": + case "regen.data.v1alpha2.QueryByHashResponse.entry": x.Entry = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByIRIResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByHashResponse")) } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryByIRIResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.QueryByHashResponse does not contain field %s", fd.FullName())) } } @@ -566,16 +581,16 @@ func (x *fastReflection_QueryByIRIResponse) Clear(fd protoreflect.FieldDescripto // 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_QueryByIRIResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryByHashResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.data.v1alpha2.QueryByIRIResponse.entry": + case "regen.data.v1alpha2.QueryByHashResponse.entry": value := x.Entry return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByIRIResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByHashResponse")) } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryByIRIResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.QueryByHashResponse does not contain field %s", descriptor.FullName())) } } @@ -589,15 +604,15 @@ func (x *fastReflection_QueryByIRIResponse) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryByIRIResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryByHashResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.data.v1alpha2.QueryByIRIResponse.entry": + case "regen.data.v1alpha2.QueryByHashResponse.entry": x.Entry = value.Message().Interface().(*ContentEntry) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByIRIResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByHashResponse")) } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryByIRIResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.QueryByHashResponse does not contain field %s", fd.FullName())) } } @@ -611,44 +626,44 @@ func (x *fastReflection_QueryByIRIResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryByIRIResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryByHashResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.QueryByIRIResponse.entry": + case "regen.data.v1alpha2.QueryByHashResponse.entry": if x.Entry == nil { x.Entry = new(ContentEntry) } return protoreflect.ValueOfMessage(x.Entry.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByIRIResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByHashResponse")) } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryByIRIResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.QueryByHashResponse 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_QueryByIRIResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryByHashResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.QueryByIRIResponse.entry": + case "regen.data.v1alpha2.QueryByHashResponse.entry": m := new(ContentEntry) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByIRIResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryByHashResponse")) } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryByIRIResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.QueryByHashResponse 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_QueryByIRIResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryByHashResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.QueryByIRIResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.QueryByHashResponse", d.FullName())) } panic("unreachable") } @@ -656,7 +671,7 @@ func (x *fastReflection_QueryByIRIResponse) WhichOneof(d protoreflect.OneofDescr // 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_QueryByIRIResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryByHashResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -667,7 +682,7 @@ func (x *fastReflection_QueryByIRIResponse) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryByIRIResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryByHashResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -679,7 +694,7 @@ func (x *fastReflection_QueryByIRIResponse) SetUnknown(fields protoreflect.RawFi // 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_QueryByIRIResponse) IsValid() bool { +func (x *fastReflection_QueryByHashResponse) IsValid() bool { return x != nil } @@ -689,9 +704,9 @@ func (x *fastReflection_QueryByIRIResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryByIRIResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryByHashResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryByIRIResponse) + x := input.Message.Interface().(*QueryByHashResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -717,7 +732,7 @@ func (x *fastReflection_QueryByIRIResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryByIRIResponse) + x := input.Message.Interface().(*QueryByHashResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -761,7 +776,7 @@ func (x *fastReflection_QueryByIRIResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryByIRIResponse) + x := input.Message.Interface().(*QueryByHashResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -793,10 +808,10 @@ func (x *fastReflection_QueryByIRIResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryByIRIResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryByHashResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryByIRIResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryByHashResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1942,11 +1957,64 @@ func (x *fastReflection_QueryBySignerResponse) ProtoMethods() *protoiface.Method } } +var _ protoreflect.List = (*_ContentEntry_4_list)(nil) + +type _ContentEntry_4_list struct { + list *[]*SignerEntry +} + +func (x *_ContentEntry_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_ContentEntry_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_ContentEntry_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*SignerEntry) + (*x.list)[i] = concreteValue +} + +func (x *_ContentEntry_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*SignerEntry) + *x.list = append(*x.list, concreteValue) +} + +func (x *_ContentEntry_4_list) AppendMutable() protoreflect.Value { + v := new(SignerEntry) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ContentEntry_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_ContentEntry_4_list) NewElement() protoreflect.Value { + v := new(SignerEntry) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ContentEntry_4_list) IsValid() bool { + return x.list != nil +} + var ( md_ContentEntry protoreflect.MessageDescriptor fd_ContentEntry_hash protoreflect.FieldDescriptor fd_ContentEntry_iri protoreflect.FieldDescriptor fd_ContentEntry_timestamp protoreflect.FieldDescriptor + fd_ContentEntry_signers protoreflect.FieldDescriptor + fd_ContentEntry_content protoreflect.FieldDescriptor ) func init() { @@ -1955,6 +2023,8 @@ func init() { fd_ContentEntry_hash = md_ContentEntry.Fields().ByName("hash") fd_ContentEntry_iri = md_ContentEntry.Fields().ByName("iri") fd_ContentEntry_timestamp = md_ContentEntry.Fields().ByName("timestamp") + fd_ContentEntry_signers = md_ContentEntry.Fields().ByName("signers") + fd_ContentEntry_content = md_ContentEntry.Fields().ByName("content") } var _ protoreflect.Message = (*fastReflection_ContentEntry)(nil) @@ -2040,6 +2110,18 @@ func (x *fastReflection_ContentEntry) Range(f func(protoreflect.FieldDescriptor, return } } + if len(x.Signers) != 0 { + value := protoreflect.ValueOfList(&_ContentEntry_4_list{list: &x.Signers}) + if !f(fd_ContentEntry_signers, value) { + return + } + } + if x.Content != nil { + value := protoreflect.ValueOfMessage(x.Content.ProtoReflect()) + if !f(fd_ContentEntry_content, value) { + return + } + } } // Has reports whether a field is populated. @@ -2061,6 +2143,10 @@ func (x *fastReflection_ContentEntry) Has(fd protoreflect.FieldDescriptor) bool return x.Iri != "" case "regen.data.v1alpha2.ContentEntry.timestamp": return x.Timestamp != nil + case "regen.data.v1alpha2.ContentEntry.signers": + return len(x.Signers) != 0 + case "regen.data.v1alpha2.ContentEntry.content": + return x.Content != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.ContentEntry")) @@ -2083,6 +2169,10 @@ func (x *fastReflection_ContentEntry) Clear(fd protoreflect.FieldDescriptor) { x.Iri = "" case "regen.data.v1alpha2.ContentEntry.timestamp": x.Timestamp = nil + case "regen.data.v1alpha2.ContentEntry.signers": + x.Signers = nil + case "regen.data.v1alpha2.ContentEntry.content": + x.Content = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.ContentEntry")) @@ -2108,6 +2198,15 @@ func (x *fastReflection_ContentEntry) Get(descriptor protoreflect.FieldDescripto case "regen.data.v1alpha2.ContentEntry.timestamp": value := x.Timestamp return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.data.v1alpha2.ContentEntry.signers": + if len(x.Signers) == 0 { + return protoreflect.ValueOfList(&_ContentEntry_4_list{}) + } + listValue := &_ContentEntry_4_list{list: &x.Signers} + return protoreflect.ValueOfList(listValue) + case "regen.data.v1alpha2.ContentEntry.content": + value := x.Content + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.ContentEntry")) @@ -2134,6 +2233,12 @@ func (x *fastReflection_ContentEntry) Set(fd protoreflect.FieldDescriptor, value x.Iri = value.Interface().(string) case "regen.data.v1alpha2.ContentEntry.timestamp": x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) + case "regen.data.v1alpha2.ContentEntry.signers": + lv := value.List() + clv := lv.(*_ContentEntry_4_list) + x.Signers = *clv.list + case "regen.data.v1alpha2.ContentEntry.content": + x.Content = value.Message().Interface().(*Content) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.ContentEntry")) @@ -2164,6 +2269,17 @@ func (x *fastReflection_ContentEntry) Mutable(fd protoreflect.FieldDescriptor) p x.Timestamp = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) + case "regen.data.v1alpha2.ContentEntry.signers": + if x.Signers == nil { + x.Signers = []*SignerEntry{} + } + value := &_ContentEntry_4_list{list: &x.Signers} + return protoreflect.ValueOfList(value) + case "regen.data.v1alpha2.ContentEntry.content": + if x.Content == nil { + x.Content = new(Content) + } + return protoreflect.ValueOfMessage(x.Content.ProtoReflect()) case "regen.data.v1alpha2.ContentEntry.iri": panic(fmt.Errorf("field iri of message regen.data.v1alpha2.ContentEntry is not mutable")) default: @@ -2187,6 +2303,12 @@ func (x *fastReflection_ContentEntry) NewField(fd protoreflect.FieldDescriptor) case "regen.data.v1alpha2.ContentEntry.timestamp": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.data.v1alpha2.ContentEntry.signers": + list := []*SignerEntry{} + return protoreflect.ValueOfList(&_ContentEntry_4_list{list: &list}) + case "regen.data.v1alpha2.ContentEntry.content": + m := new(Content) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.ContentEntry")) @@ -2268,6 +2390,16 @@ func (x *fastReflection_ContentEntry) ProtoMethods() *protoiface.Methods { l = options.Size(x.Timestamp) n += 1 + l + runtime.Sov(uint64(l)) } + if len(x.Signers) > 0 { + for _, e := range x.Signers { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Content != nil { + l = options.Size(x.Content) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2297,6 +2429,36 @@ func (x *fastReflection_ContentEntry) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.Content != nil { + encoded, err := options.Marshal(x.Content) + 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.Signers) > 0 { + for iNdEx := len(x.Signers) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Signers[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } if x.Timestamp != nil { encoded, err := options.Marshal(x.Timestamp) if err != nil { @@ -2485,6 +2647,76 @@ func (x *fastReflection_ContentEntry) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Signers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Signers = append(x.Signers, &SignerEntry{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Signers[len(x.Signers)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Content", 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.Content == nil { + x.Content = &Content{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Content); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2520,3062 +2752,58 @@ func (x *fastReflection_ContentEntry) ProtoMethods() *protoiface.Methods { } } -var ( - md_QuerySignersRequest protoreflect.MessageDescriptor - fd_QuerySignersRequest_iri protoreflect.FieldDescriptor - fd_QuerySignersRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_regen_data_v1alpha2_query_proto_init() - md_QuerySignersRequest = File_regen_data_v1alpha2_query_proto.Messages().ByName("QuerySignersRequest") - fd_QuerySignersRequest_iri = md_QuerySignersRequest.Fields().ByName("iri") - fd_QuerySignersRequest_pagination = md_QuerySignersRequest.Fields().ByName("pagination") -} +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc v3.19.1 +// source: regen/data/v1alpha2/query.proto -var _ protoreflect.Message = (*fastReflection_QuerySignersRequest)(nil) +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) -type fastReflection_QuerySignersRequest QuerySignersRequest +// QueryByContentHashRequest is the Query/ByContentHash request type. +type QueryByHashRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *QuerySignersRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySignersRequest)(x) + // hash is the hash-based identifier for the anchored content. + Hash *ContentHash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` } -func (x *QuerySignersRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_query_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { +func (x *QueryByHashRequest) Reset() { + *x = QueryByHashRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1alpha2_query_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms + ms.StoreMessageInfo(mi) } - return mi.MessageOf(x) } -var _fastReflection_QuerySignersRequest_messageType fastReflection_QuerySignersRequest_messageType -var _ protoreflect.MessageType = fastReflection_QuerySignersRequest_messageType{} - -type fastReflection_QuerySignersRequest_messageType struct{} - -func (x fastReflection_QuerySignersRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySignersRequest)(nil) -} -func (x fastReflection_QuerySignersRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySignersRequest) -} -func (x fastReflection_QuerySignersRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySignersRequest +func (x *QueryByHashRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySignersRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySignersRequest +func (*QueryByHashRequest) ProtoMessage() {} + +// Deprecated: Use QueryByHashRequest.ProtoReflect.Descriptor instead. +func (*QueryByHashRequest) Descriptor() ([]byte, []int) { + return file_regen_data_v1alpha2_query_proto_rawDescGZIP(), []int{0} } -// 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_QuerySignersRequest) Type() protoreflect.MessageType { - return _fastReflection_QuerySignersRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySignersRequest) New() protoreflect.Message { - return new(fastReflection_QuerySignersRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySignersRequest) Interface() protoreflect.ProtoMessage { - return (*QuerySignersRequest)(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_QuerySignersRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Iri != "" { - value := protoreflect.ValueOfString(x.Iri) - if !f(fd_QuerySignersRequest_iri, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QuerySignersRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QuerySignersRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "regen.data.v1alpha2.QuerySignersRequest.iri": - return x.Iri != "" - case "regen.data.v1alpha2.QuerySignersRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QuerySignersRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QuerySignersRequest 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_QuerySignersRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "regen.data.v1alpha2.QuerySignersRequest.iri": - x.Iri = "" - case "regen.data.v1alpha2.QuerySignersRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QuerySignersRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QuerySignersRequest 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_QuerySignersRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "regen.data.v1alpha2.QuerySignersRequest.iri": - value := x.Iri - return protoreflect.ValueOfString(value) - case "regen.data.v1alpha2.QuerySignersRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QuerySignersRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QuerySignersRequest 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_QuerySignersRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "regen.data.v1alpha2.QuerySignersRequest.iri": - x.Iri = value.Interface().(string) - case "regen.data.v1alpha2.QuerySignersRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QuerySignersRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QuerySignersRequest 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_QuerySignersRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.QuerySignersRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "regen.data.v1alpha2.QuerySignersRequest.iri": - panic(fmt.Errorf("field iri of message regen.data.v1alpha2.QuerySignersRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QuerySignersRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QuerySignersRequest 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_QuerySignersRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.QuerySignersRequest.iri": - return protoreflect.ValueOfString("") - case "regen.data.v1alpha2.QuerySignersRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QuerySignersRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QuerySignersRequest 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_QuerySignersRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.QuerySignersRequest", 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_QuerySignersRequest) 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_QuerySignersRequest) 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_QuerySignersRequest) 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_QuerySignersRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySignersRequest) - 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.Iri) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QuerySignersRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Iri) > 0 { - i -= len(x.Iri) - copy(dAtA[i:], x.Iri) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Iri))) - 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().(*QuerySignersRequest) - 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: QuerySignersRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySignersRequest: 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 Iri", 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.Iri = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QuerySignersResponse_1_list)(nil) - -type _QuerySignersResponse_1_list struct { - list *[]string -} - -func (x *_QuerySignersResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QuerySignersResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_QuerySignersResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QuerySignersResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QuerySignersResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QuerySignersResponse at list field Signers as it is not of Message kind")) -} - -func (x *_QuerySignersResponse_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QuerySignersResponse_1_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_QuerySignersResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QuerySignersResponse protoreflect.MessageDescriptor - fd_QuerySignersResponse_signers protoreflect.FieldDescriptor - fd_QuerySignersResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_regen_data_v1alpha2_query_proto_init() - md_QuerySignersResponse = File_regen_data_v1alpha2_query_proto.Messages().ByName("QuerySignersResponse") - fd_QuerySignersResponse_signers = md_QuerySignersResponse.Fields().ByName("signers") - fd_QuerySignersResponse_pagination = md_QuerySignersResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QuerySignersResponse)(nil) - -type fastReflection_QuerySignersResponse QuerySignersResponse - -func (x *QuerySignersResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QuerySignersResponse)(x) -} - -func (x *QuerySignersResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_query_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QuerySignersResponse_messageType fastReflection_QuerySignersResponse_messageType -var _ protoreflect.MessageType = fastReflection_QuerySignersResponse_messageType{} - -type fastReflection_QuerySignersResponse_messageType struct{} - -func (x fastReflection_QuerySignersResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QuerySignersResponse)(nil) -} -func (x fastReflection_QuerySignersResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QuerySignersResponse) -} -func (x fastReflection_QuerySignersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySignersResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QuerySignersResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QuerySignersResponse -} - -// 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_QuerySignersResponse) Type() protoreflect.MessageType { - return _fastReflection_QuerySignersResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QuerySignersResponse) New() protoreflect.Message { - return new(fastReflection_QuerySignersResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QuerySignersResponse) Interface() protoreflect.ProtoMessage { - return (*QuerySignersResponse)(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_QuerySignersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Signers) != 0 { - value := protoreflect.ValueOfList(&_QuerySignersResponse_1_list{list: &x.Signers}) - if !f(fd_QuerySignersResponse_signers, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QuerySignersResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QuerySignersResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "regen.data.v1alpha2.QuerySignersResponse.signers": - return len(x.Signers) != 0 - case "regen.data.v1alpha2.QuerySignersResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QuerySignersResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QuerySignersResponse 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_QuerySignersResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "regen.data.v1alpha2.QuerySignersResponse.signers": - x.Signers = nil - case "regen.data.v1alpha2.QuerySignersResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QuerySignersResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QuerySignersResponse 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_QuerySignersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "regen.data.v1alpha2.QuerySignersResponse.signers": - if len(x.Signers) == 0 { - return protoreflect.ValueOfList(&_QuerySignersResponse_1_list{}) - } - listValue := &_QuerySignersResponse_1_list{list: &x.Signers} - return protoreflect.ValueOfList(listValue) - case "regen.data.v1alpha2.QuerySignersResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QuerySignersResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QuerySignersResponse 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_QuerySignersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "regen.data.v1alpha2.QuerySignersResponse.signers": - lv := value.List() - clv := lv.(*_QuerySignersResponse_1_list) - x.Signers = *clv.list - case "regen.data.v1alpha2.QuerySignersResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QuerySignersResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QuerySignersResponse 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_QuerySignersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.QuerySignersResponse.signers": - if x.Signers == nil { - x.Signers = []string{} - } - value := &_QuerySignersResponse_1_list{list: &x.Signers} - return protoreflect.ValueOfList(value) - case "regen.data.v1alpha2.QuerySignersResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QuerySignersResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QuerySignersResponse 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_QuerySignersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.QuerySignersResponse.signers": - list := []string{} - return protoreflect.ValueOfList(&_QuerySignersResponse_1_list{list: &list}) - case "regen.data.v1alpha2.QuerySignersResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QuerySignersResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QuerySignersResponse 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_QuerySignersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.QuerySignersResponse", 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_QuerySignersResponse) 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_QuerySignersResponse) 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_QuerySignersResponse) 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_QuerySignersResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QuerySignersResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.Signers) > 0 { - for _, s := range x.Signers { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QuerySignersResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Signers) > 0 { - for iNdEx := len(x.Signers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Signers[iNdEx]) - copy(dAtA[i:], x.Signers[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signers[iNdEx]))) - 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().(*QuerySignersResponse) - 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: QuerySignersResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QuerySignersResponse: 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 Signers", 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.Signers = append(x.Signers, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryResolversRequest protoreflect.MessageDescriptor - fd_QueryResolversRequest_iri protoreflect.FieldDescriptor - fd_QueryResolversRequest_pagination protoreflect.FieldDescriptor -) - -func init() { - file_regen_data_v1alpha2_query_proto_init() - md_QueryResolversRequest = File_regen_data_v1alpha2_query_proto.Messages().ByName("QueryResolversRequest") - fd_QueryResolversRequest_iri = md_QueryResolversRequest.Fields().ByName("iri") - fd_QueryResolversRequest_pagination = md_QueryResolversRequest.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryResolversRequest)(nil) - -type fastReflection_QueryResolversRequest QueryResolversRequest - -func (x *QueryResolversRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryResolversRequest)(x) -} - -func (x *QueryResolversRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_query_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryResolversRequest_messageType fastReflection_QueryResolversRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryResolversRequest_messageType{} - -type fastReflection_QueryResolversRequest_messageType struct{} - -func (x fastReflection_QueryResolversRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryResolversRequest)(nil) -} -func (x fastReflection_QueryResolversRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryResolversRequest) -} -func (x fastReflection_QueryResolversRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResolversRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryResolversRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResolversRequest -} - -// 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_QueryResolversRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryResolversRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryResolversRequest) New() protoreflect.Message { - return new(fastReflection_QueryResolversRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryResolversRequest) Interface() protoreflect.ProtoMessage { - return (*QueryResolversRequest)(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_QueryResolversRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Iri != "" { - value := protoreflect.ValueOfString(x.Iri) - if !f(fd_QueryResolversRequest_iri, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryResolversRequest_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryResolversRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolversRequest.iri": - return x.Iri != "" - case "regen.data.v1alpha2.QueryResolversRequest.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolversRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolversRequest 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_QueryResolversRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolversRequest.iri": - x.Iri = "" - case "regen.data.v1alpha2.QueryResolversRequest.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolversRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolversRequest 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_QueryResolversRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "regen.data.v1alpha2.QueryResolversRequest.iri": - value := x.Iri - return protoreflect.ValueOfString(value) - case "regen.data.v1alpha2.QueryResolversRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolversRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolversRequest 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_QueryResolversRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolversRequest.iri": - x.Iri = value.Interface().(string) - case "regen.data.v1alpha2.QueryResolversRequest.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolversRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolversRequest 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_QueryResolversRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolversRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "regen.data.v1alpha2.QueryResolversRequest.iri": - panic(fmt.Errorf("field iri of message regen.data.v1alpha2.QueryResolversRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolversRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolversRequest 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_QueryResolversRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolversRequest.iri": - return protoreflect.ValueOfString("") - case "regen.data.v1alpha2.QueryResolversRequest.pagination": - m := new(v1beta1.PageRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolversRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolversRequest 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_QueryResolversRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.QueryResolversRequest", 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_QueryResolversRequest) 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_QueryResolversRequest) 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_QueryResolversRequest) 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_QueryResolversRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryResolversRequest) - 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.Iri) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryResolversRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.Iri) > 0 { - i -= len(x.Iri) - copy(dAtA[i:], x.Iri) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Iri))) - 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().(*QueryResolversRequest) - 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: QueryResolversRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolversRequest: 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 Iri", 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.Iri = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageRequest{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var _ protoreflect.List = (*_QueryResolversResponse_1_list)(nil) - -type _QueryResolversResponse_1_list struct { - list *[]string -} - -func (x *_QueryResolversResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryResolversResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_QueryResolversResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryResolversResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryResolversResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryResolversResponse at list field ResolverUrls as it is not of Message kind")) -} - -func (x *_QueryResolversResponse_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryResolversResponse_1_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_QueryResolversResponse_1_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryResolversResponse protoreflect.MessageDescriptor - fd_QueryResolversResponse_resolver_urls protoreflect.FieldDescriptor - fd_QueryResolversResponse_pagination protoreflect.FieldDescriptor -) - -func init() { - file_regen_data_v1alpha2_query_proto_init() - md_QueryResolversResponse = File_regen_data_v1alpha2_query_proto.Messages().ByName("QueryResolversResponse") - fd_QueryResolversResponse_resolver_urls = md_QueryResolversResponse.Fields().ByName("resolver_urls") - fd_QueryResolversResponse_pagination = md_QueryResolversResponse.Fields().ByName("pagination") -} - -var _ protoreflect.Message = (*fastReflection_QueryResolversResponse)(nil) - -type fastReflection_QueryResolversResponse QueryResolversResponse - -func (x *QueryResolversResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryResolversResponse)(x) -} - -func (x *QueryResolversResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_query_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryResolversResponse_messageType fastReflection_QueryResolversResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryResolversResponse_messageType{} - -type fastReflection_QueryResolversResponse_messageType struct{} - -func (x fastReflection_QueryResolversResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryResolversResponse)(nil) -} -func (x fastReflection_QueryResolversResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryResolversResponse) -} -func (x fastReflection_QueryResolversResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResolversResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryResolversResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResolversResponse -} - -// 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_QueryResolversResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryResolversResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryResolversResponse) New() protoreflect.Message { - return new(fastReflection_QueryResolversResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryResolversResponse) Interface() protoreflect.ProtoMessage { - return (*QueryResolversResponse)(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_QueryResolversResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.ResolverUrls) != 0 { - value := protoreflect.ValueOfList(&_QueryResolversResponse_1_list{list: &x.ResolverUrls}) - if !f(fd_QueryResolversResponse_resolver_urls, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryResolversResponse_pagination, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryResolversResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolversResponse.resolver_urls": - return len(x.ResolverUrls) != 0 - case "regen.data.v1alpha2.QueryResolversResponse.pagination": - return x.Pagination != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolversResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolversResponse 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_QueryResolversResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolversResponse.resolver_urls": - x.ResolverUrls = nil - case "regen.data.v1alpha2.QueryResolversResponse.pagination": - x.Pagination = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolversResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolversResponse 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_QueryResolversResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "regen.data.v1alpha2.QueryResolversResponse.resolver_urls": - if len(x.ResolverUrls) == 0 { - return protoreflect.ValueOfList(&_QueryResolversResponse_1_list{}) - } - listValue := &_QueryResolversResponse_1_list{list: &x.ResolverUrls} - return protoreflect.ValueOfList(listValue) - case "regen.data.v1alpha2.QueryResolversResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolversResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolversResponse 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_QueryResolversResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolversResponse.resolver_urls": - lv := value.List() - clv := lv.(*_QueryResolversResponse_1_list) - x.ResolverUrls = *clv.list - case "regen.data.v1alpha2.QueryResolversResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolversResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolversResponse 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_QueryResolversResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolversResponse.resolver_urls": - if x.ResolverUrls == nil { - x.ResolverUrls = []string{} - } - value := &_QueryResolversResponse_1_list{list: &x.ResolverUrls} - return protoreflect.ValueOfList(value) - case "regen.data.v1alpha2.QueryResolversResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolversResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolversResponse 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_QueryResolversResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolversResponse.resolver_urls": - list := []string{} - return protoreflect.ValueOfList(&_QueryResolversResponse_1_list{list: &list}) - case "regen.data.v1alpha2.QueryResolversResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolversResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolversResponse 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_QueryResolversResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.QueryResolversResponse", 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_QueryResolversResponse) 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_QueryResolversResponse) 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_QueryResolversResponse) 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_QueryResolversResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryResolversResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if len(x.ResolverUrls) > 0 { - for _, s := range x.ResolverUrls { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryResolversResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - if len(x.ResolverUrls) > 0 { - for iNdEx := len(x.ResolverUrls) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.ResolverUrls[iNdEx]) - copy(dAtA[i:], x.ResolverUrls[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ResolverUrls[iNdEx]))) - 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().(*QueryResolversResponse) - 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: QueryResolversResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolversResponse: 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 ResolverUrls", 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.ResolverUrls = append(x.ResolverUrls, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryResolverInfoRequest protoreflect.MessageDescriptor - fd_QueryResolverInfoRequest_url protoreflect.FieldDescriptor -) - -func init() { - file_regen_data_v1alpha2_query_proto_init() - md_QueryResolverInfoRequest = File_regen_data_v1alpha2_query_proto.Messages().ByName("QueryResolverInfoRequest") - fd_QueryResolverInfoRequest_url = md_QueryResolverInfoRequest.Fields().ByName("url") -} - -var _ protoreflect.Message = (*fastReflection_QueryResolverInfoRequest)(nil) - -type fastReflection_QueryResolverInfoRequest QueryResolverInfoRequest - -func (x *QueryResolverInfoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryResolverInfoRequest)(x) -} - -func (x *QueryResolverInfoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_query_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryResolverInfoRequest_messageType fastReflection_QueryResolverInfoRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryResolverInfoRequest_messageType{} - -type fastReflection_QueryResolverInfoRequest_messageType struct{} - -func (x fastReflection_QueryResolverInfoRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryResolverInfoRequest)(nil) -} -func (x fastReflection_QueryResolverInfoRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryResolverInfoRequest) -} -func (x fastReflection_QueryResolverInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResolverInfoRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryResolverInfoRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResolverInfoRequest -} - -// 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_QueryResolverInfoRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryResolverInfoRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryResolverInfoRequest) New() protoreflect.Message { - return new(fastReflection_QueryResolverInfoRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryResolverInfoRequest) Interface() protoreflect.ProtoMessage { - return (*QueryResolverInfoRequest)(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_QueryResolverInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Url != "" { - value := protoreflect.ValueOfString(x.Url) - if !f(fd_QueryResolverInfoRequest_url, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryResolverInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolverInfoRequest.url": - return x.Url != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolverInfoRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolverInfoRequest 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_QueryResolverInfoRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolverInfoRequest.url": - x.Url = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolverInfoRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolverInfoRequest 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_QueryResolverInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "regen.data.v1alpha2.QueryResolverInfoRequest.url": - value := x.Url - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolverInfoRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolverInfoRequest 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_QueryResolverInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolverInfoRequest.url": - x.Url = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolverInfoRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolverInfoRequest 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_QueryResolverInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolverInfoRequest.url": - panic(fmt.Errorf("field url of message regen.data.v1alpha2.QueryResolverInfoRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolverInfoRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolverInfoRequest 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_QueryResolverInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolverInfoRequest.url": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolverInfoRequest")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolverInfoRequest 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_QueryResolverInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.QueryResolverInfoRequest", 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_QueryResolverInfoRequest) 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_QueryResolverInfoRequest) 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_QueryResolverInfoRequest) 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_QueryResolverInfoRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryResolverInfoRequest) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Url) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.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().(*QueryResolverInfoRequest) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Url) > 0 { - i -= len(x.Url) - copy(dAtA[i:], x.Url) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Url))) - i-- - dAtA[i] = 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().(*QueryResolverInfoRequest) - 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: QueryResolverInfoRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolverInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Url", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Url = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - 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_QueryResolverInfoResponse protoreflect.MessageDescriptor - fd_QueryResolverInfoResponse_id protoreflect.FieldDescriptor - fd_QueryResolverInfoResponse_manager protoreflect.FieldDescriptor -) - -func init() { - file_regen_data_v1alpha2_query_proto_init() - md_QueryResolverInfoResponse = File_regen_data_v1alpha2_query_proto.Messages().ByName("QueryResolverInfoResponse") - fd_QueryResolverInfoResponse_id = md_QueryResolverInfoResponse.Fields().ByName("id") - fd_QueryResolverInfoResponse_manager = md_QueryResolverInfoResponse.Fields().ByName("manager") -} - -var _ protoreflect.Message = (*fastReflection_QueryResolverInfoResponse)(nil) - -type fastReflection_QueryResolverInfoResponse QueryResolverInfoResponse - -func (x *QueryResolverInfoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryResolverInfoResponse)(x) -} - -func (x *QueryResolverInfoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_query_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryResolverInfoResponse_messageType fastReflection_QueryResolverInfoResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryResolverInfoResponse_messageType{} - -type fastReflection_QueryResolverInfoResponse_messageType struct{} - -func (x fastReflection_QueryResolverInfoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryResolverInfoResponse)(nil) -} -func (x fastReflection_QueryResolverInfoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryResolverInfoResponse) -} -func (x fastReflection_QueryResolverInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResolverInfoResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryResolverInfoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryResolverInfoResponse -} - -// 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_QueryResolverInfoResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryResolverInfoResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryResolverInfoResponse) New() protoreflect.Message { - return new(fastReflection_QueryResolverInfoResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryResolverInfoResponse) Interface() protoreflect.ProtoMessage { - return (*QueryResolverInfoResponse)(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_QueryResolverInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Id != uint64(0) { - value := protoreflect.ValueOfUint64(x.Id) - if !f(fd_QueryResolverInfoResponse_id, value) { - return - } - } - if x.Manager != "" { - value := protoreflect.ValueOfString(x.Manager) - if !f(fd_QueryResolverInfoResponse_manager, 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_QueryResolverInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolverInfoResponse.id": - return x.Id != uint64(0) - case "regen.data.v1alpha2.QueryResolverInfoResponse.manager": - return x.Manager != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolverInfoResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolverInfoResponse 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_QueryResolverInfoResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolverInfoResponse.id": - x.Id = uint64(0) - case "regen.data.v1alpha2.QueryResolverInfoResponse.manager": - x.Manager = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolverInfoResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolverInfoResponse 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_QueryResolverInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "regen.data.v1alpha2.QueryResolverInfoResponse.id": - value := x.Id - return protoreflect.ValueOfUint64(value) - case "regen.data.v1alpha2.QueryResolverInfoResponse.manager": - value := x.Manager - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolverInfoResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolverInfoResponse 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_QueryResolverInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolverInfoResponse.id": - x.Id = value.Uint() - case "regen.data.v1alpha2.QueryResolverInfoResponse.manager": - x.Manager = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolverInfoResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolverInfoResponse 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_QueryResolverInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolverInfoResponse.id": - panic(fmt.Errorf("field id of message regen.data.v1alpha2.QueryResolverInfoResponse is not mutable")) - case "regen.data.v1alpha2.QueryResolverInfoResponse.manager": - panic(fmt.Errorf("field manager of message regen.data.v1alpha2.QueryResolverInfoResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolverInfoResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolverInfoResponse 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_QueryResolverInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.QueryResolverInfoResponse.id": - return protoreflect.ValueOfUint64(uint64(0)) - case "regen.data.v1alpha2.QueryResolverInfoResponse.manager": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.QueryResolverInfoResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.QueryResolverInfoResponse 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_QueryResolverInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.QueryResolverInfoResponse", 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_QueryResolverInfoResponse) 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_QueryResolverInfoResponse) 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_QueryResolverInfoResponse) 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_QueryResolverInfoResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryResolverInfoResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.Id != 0 { - n += 1 + runtime.Sov(uint64(x.Id)) - } - l = len(x.Manager) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryResolverInfoResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Manager) > 0 { - i -= len(x.Manager) - copy(dAtA[i:], x.Manager) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Manager))) - i-- - dAtA[i] = 0x12 - } - if x.Id != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryResolverInfoResponse) - 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: QueryResolverInfoResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolverInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - x.Id = 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.Id |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Manager", 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.Manager = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc v3.19.1 -// source: regen/data/v1alpha2/query.proto - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// QueryByContentHashRequest is the Query/ByContentHash request type. -type QueryByIRIRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // hash is the hash-based identifier for the anchored content. - Iri string `protobuf:"bytes,1,opt,name=iri,proto3" json:"iri,omitempty"` -} - -func (x *QueryByIRIRequest) Reset() { - *x = QueryByIRIRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_query_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryByIRIRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryByIRIRequest) ProtoMessage() {} - -// Deprecated: Use QueryByIRIRequest.ProtoReflect.Descriptor instead. -func (*QueryByIRIRequest) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_query_proto_rawDescGZIP(), []int{0} -} - -func (x *QueryByIRIRequest) GetIri() string { - if x != nil { - return x.Iri - } - return "" +func (x *QueryByHashRequest) GetHash() *ContentHash { + if x != nil { + return x.Hash + } + return nil } // QueryByContentHashResponse is the Query/ByContentHash response type. -type QueryByIRIResponse struct { +type QueryByHashResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -5584,8 +2812,8 @@ type QueryByIRIResponse struct { Entry *ContentEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` } -func (x *QueryByIRIResponse) Reset() { - *x = QueryByIRIResponse{} +func (x *QueryByHashResponse) Reset() { + *x = QueryByHashResponse{} if protoimpl.UnsafeEnabled { mi := &file_regen_data_v1alpha2_query_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5593,18 +2821,18 @@ func (x *QueryByIRIResponse) Reset() { } } -func (x *QueryByIRIResponse) String() string { +func (x *QueryByHashResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryByIRIResponse) ProtoMessage() {} +func (*QueryByHashResponse) ProtoMessage() {} -// Deprecated: Use QueryByIRIResponse.ProtoReflect.Descriptor instead. -func (*QueryByIRIResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryByHashResponse.ProtoReflect.Descriptor instead. +func (*QueryByHashResponse) Descriptor() ([]byte, []int) { return file_regen_data_v1alpha2_query_proto_rawDescGZIP(), []int{1} } -func (x *QueryByIRIResponse) GetEntry() *ContentEntry { +func (x *QueryByHashResponse) GetEntry() *ContentEntry { if x != nil { return x.Entry } @@ -5715,6 +2943,10 @@ type ContentEntry struct { Iri string `protobuf:"bytes,2,opt,name=iri,proto3" json:"iri,omitempty"` // timestamp is the anchor Timestamp Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // signers are the signers, if any + Signers []*SignerEntry `protobuf:"bytes,4,rep,name=signers,proto3" json:"signers,omitempty"` + // content is the actual content if stored on-chain + Content *Content `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` } func (x *ContentEntry) Reset() { @@ -5758,274 +2990,20 @@ func (x *ContentEntry) GetTimestamp() *timestamppb.Timestamp { return nil } -// QuerySignersRequest is the Query/Signers request type. -type QuerySignersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // iri is the content IRI - Iri string `protobuf:"bytes,1,opt,name=iri,proto3" json:"iri,omitempty"` - // pagination is the PageRequest to use for pagination. - Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QuerySignersRequest) Reset() { - *x = QuerySignersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_query_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySignersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySignersRequest) ProtoMessage() {} - -// Deprecated: Use QuerySignersRequest.ProtoReflect.Descriptor instead. -func (*QuerySignersRequest) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_query_proto_rawDescGZIP(), []int{5} -} - -func (x *QuerySignersRequest) GetIri() string { - if x != nil { - return x.Iri - } - return "" -} - -func (x *QuerySignersRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QuerySignersResponse is the Query/Signers response type. -type QuerySignersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // signers are the addresses of the signers. - Signers []string `protobuf:"bytes,1,rep,name=signers,proto3" json:"signers,omitempty"` - // pagination is the pagination PageResponse. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QuerySignersResponse) Reset() { - *x = QuerySignersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_query_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuerySignersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuerySignersResponse) ProtoMessage() {} - -// Deprecated: Use QuerySignersResponse.ProtoReflect.Descriptor instead. -func (*QuerySignersResponse) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_query_proto_rawDescGZIP(), []int{6} -} - -func (x *QuerySignersResponse) GetSigners() []string { +func (x *ContentEntry) GetSigners() []*SignerEntry { if x != nil { return x.Signers } return nil } -func (x *QuerySignersResponse) GetPagination() *v1beta1.PageResponse { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryResolversRequest is the Query/Resolvers request type. -type QueryResolversRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // iri is the content IRI - Iri string `protobuf:"bytes,1,opt,name=iri,proto3" json:"iri,omitempty"` - // pagination is the PageRequest to use for pagination. - Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryResolversRequest) Reset() { - *x = QueryResolversRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_query_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryResolversRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryResolversRequest) ProtoMessage() {} - -// Deprecated: Use QueryResolversRequest.ProtoReflect.Descriptor instead. -func (*QueryResolversRequest) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_query_proto_rawDescGZIP(), []int{7} -} - -func (x *QueryResolversRequest) GetIri() string { - if x != nil { - return x.Iri - } - return "" -} - -func (x *QueryResolversRequest) GetPagination() *v1beta1.PageRequest { - if x != nil { - return x.Pagination - } - return nil -} - -// QueryResolversResponse is the Query/Resolvers response type. -type QueryResolversResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // resolver_urls are the resolver URLs that have been registered for this - // data object. - ResolverUrls []string `protobuf:"bytes,1,rep,name=resolver_urls,json=resolverUrls,proto3" json:"resolver_urls,omitempty"` - // pagination is the PageResponse to use for pagination. - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *QueryResolversResponse) Reset() { - *x = QueryResolversResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_query_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryResolversResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryResolversResponse) ProtoMessage() {} - -// Deprecated: Use QueryResolversResponse.ProtoReflect.Descriptor instead. -func (*QueryResolversResponse) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_query_proto_rawDescGZIP(), []int{8} -} - -func (x *QueryResolversResponse) GetResolverUrls() []string { - if x != nil { - return x.ResolverUrls - } - return nil -} - -func (x *QueryResolversResponse) GetPagination() *v1beta1.PageResponse { +func (x *ContentEntry) GetContent() *Content { if x != nil { - return x.Pagination + return x.Content } return nil } -// QueryResolverInfoRequest is the Query/ResolverInfo request type. -type QueryResolverInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // url is the URL of the resolver to query. - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` -} - -func (x *QueryResolverInfoRequest) Reset() { - *x = QueryResolverInfoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_query_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryResolverInfoRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryResolverInfoRequest) ProtoMessage() {} - -// Deprecated: Use QueryResolverInfoRequest.ProtoReflect.Descriptor instead. -func (*QueryResolverInfoRequest) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_query_proto_rawDescGZIP(), []int{9} -} - -func (x *QueryResolverInfoRequest) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -// QueryResolverInfoResponse is the Query/ResolverInfo response type. -type QueryResolverInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id is the id of the resolver which can be used in Msg/RegisterResolver. - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - // manager is the bech32 account address of the resolver manager. - Manager string `protobuf:"bytes,2,opt,name=manager,proto3" json:"manager,omitempty"` -} - -func (x *QueryResolverInfoResponse) Reset() { - *x = QueryResolverInfoResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_query_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryResolverInfoResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryResolverInfoResponse) ProtoMessage() {} - -// Deprecated: Use QueryResolverInfoResponse.ProtoReflect.Descriptor instead. -func (*QueryResolverInfoResponse) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_query_proto_rawDescGZIP(), []int{10} -} - -func (x *QueryResolverInfoResponse) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *QueryResolverInfoResponse) GetManager() string { - if x != nil { - return x.Manager - } - return "" -} - var File_regen_data_v1alpha2_query_proto protoreflect.FileDescriptor var file_regen_data_v1alpha2_query_proto_rawDesc = []byte{ @@ -6041,139 +3019,83 @@ var file_regen_data_v1alpha2_query_proto_rawDesc = []byte{ 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x25, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x49, 0x52, 0x49, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x72, 0x69, 0x22, 0x4d, 0x0a, 0x12, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x37, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x76, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x42, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0x9d, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x53, 0x69, 0x67, 0x6e, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x07, 0x65, 0x6e, - 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, + 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x48, 0x61, 0x73, + 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x4e, + 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x76, + 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x46, + 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x42, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x3b, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x47, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x02, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x34, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x10, 0x0a, + 0x03, 0x69, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x72, 0x69, 0x12, + 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 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, 0x52, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x3a, 0x0a, 0x07, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, + 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x73, 0x69, + 0x67, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x36, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x32, 0x9e, 0x02, + 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x81, 0x01, 0x0a, 0x06, 0x42, 0x79, 0x48, 0x61, + 0x73, 0x68, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, + 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, - 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0x90, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x34, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, - 0x68, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x72, 0x69, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 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, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x22, 0x6f, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, - 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x72, - 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x72, 0x69, 0x12, 0x46, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x79, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, - 0x6e, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, - 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0x71, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x72, 0x69, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x72, 0x69, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x86, 0x01, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, - 0x6c, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, - 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x55, 0x72, - 0x6c, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0x0a, 0x18, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x45, 0x0a, 0x19, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, - 0x32, 0xe1, 0x05, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x83, 0x01, 0x0a, 0x05, 0x42, - 0x79, 0x49, 0x52, 0x49, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x32, 0x2f, 0x62, 0x79, 0x2d, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, - 0x12, 0x92, 0x01, 0x0a, 0x08, 0x42, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x29, 0x2e, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x32, 0x2f, 0x62, 0x79, 0x2d, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x2f, 0x7b, 0x73, 0x69, - 0x67, 0x6e, 0x65, 0x72, 0x7d, 0x12, 0x8a, 0x01, 0x0a, 0x07, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, - 0x73, 0x12, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, - 0x6e, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, - 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x32, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x72, - 0x69, 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, - 0x12, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, - 0x6c, 0x76, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x26, 0x12, 0x24, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x73, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0x9a, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, - 0x6c, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x68, 0x61, 0x32, 0x2f, 0x62, 0x79, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x12, 0x90, 0x01, 0x0a, 0x08, + 0x42, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, - 0x23, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x7b, - 0x75, 0x72, 0x6c, 0x7d, 0x42, 0xdf, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, - 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, - 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x3b, 0x64, 0x61, - 0x74, 0x61, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, - 0xaa, 0x02, 0x13, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xca, 0x02, 0x13, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, - 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xe2, 0x02, 0x1f, 0x52, - 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x15, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, 0x56, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x75, 0x65, 0x72, 0x79, 0x42, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, + 0x79, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x73, 0x69, + 0x67, 0x6e, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x7d, 0x42, 0xdf, + 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x76, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0x32, 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, 0xaa, 0x02, 0x13, 0x52, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, + 0xca, 0x02, 0x13, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xe2, 0x02, 0x1f, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, + 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x52, 0x65, 0x67, 0x65, 0x6e, + 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -6188,50 +3110,39 @@ func file_regen_data_v1alpha2_query_proto_rawDescGZIP() []byte { return file_regen_data_v1alpha2_query_proto_rawDescData } -var file_regen_data_v1alpha2_query_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_regen_data_v1alpha2_query_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_regen_data_v1alpha2_query_proto_goTypes = []interface{}{ - (*QueryByIRIRequest)(nil), // 0: regen.data.v1alpha2.QueryByIRIRequest - (*QueryByIRIResponse)(nil), // 1: regen.data.v1alpha2.QueryByIRIResponse - (*QueryBySignerRequest)(nil), // 2: regen.data.v1alpha2.QueryBySignerRequest - (*QueryBySignerResponse)(nil), // 3: regen.data.v1alpha2.QueryBySignerResponse - (*ContentEntry)(nil), // 4: regen.data.v1alpha2.ContentEntry - (*QuerySignersRequest)(nil), // 5: regen.data.v1alpha2.QuerySignersRequest - (*QuerySignersResponse)(nil), // 6: regen.data.v1alpha2.QuerySignersResponse - (*QueryResolversRequest)(nil), // 7: regen.data.v1alpha2.QueryResolversRequest - (*QueryResolversResponse)(nil), // 8: regen.data.v1alpha2.QueryResolversResponse - (*QueryResolverInfoRequest)(nil), // 9: regen.data.v1alpha2.QueryResolverInfoRequest - (*QueryResolverInfoResponse)(nil), // 10: regen.data.v1alpha2.QueryResolverInfoResponse - (*v1beta1.PageRequest)(nil), // 11: cosmos.base.query.v1beta1.PageRequest - (*v1beta1.PageResponse)(nil), // 12: cosmos.base.query.v1beta1.PageResponse - (*ContentHash)(nil), // 13: regen.data.v1alpha2.ContentHash - (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (*QueryByHashRequest)(nil), // 0: regen.data.v1alpha2.QueryByHashRequest + (*QueryByHashResponse)(nil), // 1: regen.data.v1alpha2.QueryByHashResponse + (*QueryBySignerRequest)(nil), // 2: regen.data.v1alpha2.QueryBySignerRequest + (*QueryBySignerResponse)(nil), // 3: regen.data.v1alpha2.QueryBySignerResponse + (*ContentEntry)(nil), // 4: regen.data.v1alpha2.ContentEntry + (*ContentHash)(nil), // 5: regen.data.v1alpha2.ContentHash + (*v1beta1.PageRequest)(nil), // 6: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 7: cosmos.base.query.v1beta1.PageResponse + (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp + (*SignerEntry)(nil), // 9: regen.data.v1alpha2.SignerEntry + (*Content)(nil), // 10: regen.data.v1alpha2.Content } var file_regen_data_v1alpha2_query_proto_depIdxs = []int32{ - 4, // 0: regen.data.v1alpha2.QueryByIRIResponse.entry:type_name -> regen.data.v1alpha2.ContentEntry - 11, // 1: regen.data.v1alpha2.QueryBySignerRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 4, // 2: regen.data.v1alpha2.QueryBySignerResponse.entries:type_name -> regen.data.v1alpha2.ContentEntry - 12, // 3: regen.data.v1alpha2.QueryBySignerResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 13, // 4: regen.data.v1alpha2.ContentEntry.hash:type_name -> regen.data.v1alpha2.ContentHash - 14, // 5: regen.data.v1alpha2.ContentEntry.timestamp:type_name -> google.protobuf.Timestamp - 11, // 6: regen.data.v1alpha2.QuerySignersRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 12, // 7: regen.data.v1alpha2.QuerySignersResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 11, // 8: regen.data.v1alpha2.QueryResolversRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 12, // 9: regen.data.v1alpha2.QueryResolversResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 0, // 10: regen.data.v1alpha2.Query.ByIRI:input_type -> regen.data.v1alpha2.QueryByIRIRequest - 2, // 11: regen.data.v1alpha2.Query.BySigner:input_type -> regen.data.v1alpha2.QueryBySignerRequest - 5, // 12: regen.data.v1alpha2.Query.Signers:input_type -> regen.data.v1alpha2.QuerySignersRequest - 7, // 13: regen.data.v1alpha2.Query.Resolvers:input_type -> regen.data.v1alpha2.QueryResolversRequest - 9, // 14: regen.data.v1alpha2.Query.ResolverInfo:input_type -> regen.data.v1alpha2.QueryResolverInfoRequest - 1, // 15: regen.data.v1alpha2.Query.ByIRI:output_type -> regen.data.v1alpha2.QueryByIRIResponse - 3, // 16: regen.data.v1alpha2.Query.BySigner:output_type -> regen.data.v1alpha2.QueryBySignerResponse - 6, // 17: regen.data.v1alpha2.Query.Signers:output_type -> regen.data.v1alpha2.QuerySignersResponse - 8, // 18: regen.data.v1alpha2.Query.Resolvers:output_type -> regen.data.v1alpha2.QueryResolversResponse - 10, // 19: regen.data.v1alpha2.Query.ResolverInfo:output_type -> regen.data.v1alpha2.QueryResolverInfoResponse - 15, // [15:20] is the sub-list for method output_type - 10, // [10:15] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name + 5, // 0: regen.data.v1alpha2.QueryByHashRequest.hash:type_name -> regen.data.v1alpha2.ContentHash + 4, // 1: regen.data.v1alpha2.QueryByHashResponse.entry:type_name -> regen.data.v1alpha2.ContentEntry + 6, // 2: regen.data.v1alpha2.QueryBySignerRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 4, // 3: regen.data.v1alpha2.QueryBySignerResponse.entries:type_name -> regen.data.v1alpha2.ContentEntry + 7, // 4: regen.data.v1alpha2.QueryBySignerResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 5, // 5: regen.data.v1alpha2.ContentEntry.hash:type_name -> regen.data.v1alpha2.ContentHash + 8, // 6: regen.data.v1alpha2.ContentEntry.timestamp:type_name -> google.protobuf.Timestamp + 9, // 7: regen.data.v1alpha2.ContentEntry.signers:type_name -> regen.data.v1alpha2.SignerEntry + 10, // 8: regen.data.v1alpha2.ContentEntry.content:type_name -> regen.data.v1alpha2.Content + 0, // 9: regen.data.v1alpha2.Query.ByHash:input_type -> regen.data.v1alpha2.QueryByHashRequest + 2, // 10: regen.data.v1alpha2.Query.BySigner:input_type -> regen.data.v1alpha2.QueryBySignerRequest + 1, // 11: regen.data.v1alpha2.Query.ByHash:output_type -> regen.data.v1alpha2.QueryByHashResponse + 3, // 12: regen.data.v1alpha2.Query.BySigner:output_type -> regen.data.v1alpha2.QueryBySignerResponse + 11, // [11:13] is the sub-list for method output_type + 9, // [9:11] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name } func init() { file_regen_data_v1alpha2_query_proto_init() } @@ -6242,7 +3153,7 @@ func file_regen_data_v1alpha2_query_proto_init() { file_regen_data_v1alpha2_types_proto_init() if !protoimpl.UnsafeEnabled { file_regen_data_v1alpha2_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryByIRIRequest); i { + switch v := v.(*QueryByHashRequest); i { case 0: return &v.state case 1: @@ -6254,7 +3165,7 @@ func file_regen_data_v1alpha2_query_proto_init() { } } file_regen_data_v1alpha2_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryByIRIResponse); i { + switch v := v.(*QueryByHashResponse); i { case 0: return &v.state case 1: @@ -6301,78 +3212,6 @@ func file_regen_data_v1alpha2_query_proto_init() { return nil } } - file_regen_data_v1alpha2_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySignersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_regen_data_v1alpha2_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySignersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_regen_data_v1alpha2_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryResolversRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_regen_data_v1alpha2_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryResolversResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_regen_data_v1alpha2_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryResolverInfoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_regen_data_v1alpha2_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryResolverInfoResponse); 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{ @@ -6380,7 +3219,7 @@ func file_regen_data_v1alpha2_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_regen_data_v1alpha2_query_proto_rawDesc, NumEnums: 0, - NumMessages: 11, + NumMessages: 5, NumExtensions: 0, NumServices: 1, }, diff --git a/api/regen/data/v1alpha2/query_grpc.pb.go b/api/regen/data/v1alpha2/query_grpc.pb.go index c3f6845119..524e073dbd 100644 --- a/api/regen/data/v1alpha2/query_grpc.pb.go +++ b/api/regen/data/v1alpha2/query_grpc.pb.go @@ -23,15 +23,9 @@ const _ = grpc.SupportPackageIsVersion7 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type QueryClient interface { // ByHash queries data based on its ContentHash. - ByIRI(ctx context.Context, in *QueryByIRIRequest, opts ...grpc.CallOption) (*QueryByIRIResponse, error) + ByHash(ctx context.Context, in *QueryByHashRequest, opts ...grpc.CallOption) (*QueryByHashResponse, error) // BySigner queries data based on signers. BySigner(ctx context.Context, in *QueryBySignerRequest, opts ...grpc.CallOption) (*QueryBySignerResponse, error) - // Signers queries signers based on IRI. - Signers(ctx context.Context, in *QuerySignersRequest, opts ...grpc.CallOption) (*QuerySignersResponse, error) - // Resolvers returns the registered resolver URLs for the data IRI. - Resolvers(ctx context.Context, in *QueryResolversRequest, opts ...grpc.CallOption) (*QueryResolversResponse, error) - // ResolverInfo returns information about a resolver. - ResolverInfo(ctx context.Context, in *QueryResolverInfoRequest, opts ...grpc.CallOption) (*QueryResolverInfoResponse, error) } type queryClient struct { @@ -42,9 +36,9 @@ func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { return &queryClient{cc} } -func (c *queryClient) ByIRI(ctx context.Context, in *QueryByIRIRequest, opts ...grpc.CallOption) (*QueryByIRIResponse, error) { - out := new(QueryByIRIResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Query/ByIRI", in, out, opts...) +func (c *queryClient) ByHash(ctx context.Context, in *QueryByHashRequest, opts ...grpc.CallOption) (*QueryByHashResponse, error) { + out := new(QueryByHashResponse) + err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Query/ByHash", in, out, opts...) if err != nil { return nil, err } @@ -60,47 +54,14 @@ func (c *queryClient) BySigner(ctx context.Context, in *QueryBySignerRequest, op return out, nil } -func (c *queryClient) Signers(ctx context.Context, in *QuerySignersRequest, opts ...grpc.CallOption) (*QuerySignersResponse, error) { - out := new(QuerySignersResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Query/Signers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Resolvers(ctx context.Context, in *QueryResolversRequest, opts ...grpc.CallOption) (*QueryResolversResponse, error) { - out := new(QueryResolversResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Query/Resolvers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) ResolverInfo(ctx context.Context, in *QueryResolverInfoRequest, opts ...grpc.CallOption) (*QueryResolverInfoResponse, error) { - out := new(QueryResolverInfoResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Query/ResolverInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // QueryServer is the server API for Query service. // All implementations must embed UnimplementedQueryServer // for forward compatibility type QueryServer interface { // ByHash queries data based on its ContentHash. - ByIRI(context.Context, *QueryByIRIRequest) (*QueryByIRIResponse, error) + ByHash(context.Context, *QueryByHashRequest) (*QueryByHashResponse, error) // BySigner queries data based on signers. BySigner(context.Context, *QueryBySignerRequest) (*QueryBySignerResponse, error) - // Signers queries signers based on IRI. - Signers(context.Context, *QuerySignersRequest) (*QuerySignersResponse, error) - // Resolvers returns the registered resolver URLs for the data IRI. - Resolvers(context.Context, *QueryResolversRequest) (*QueryResolversResponse, error) - // ResolverInfo returns information about a resolver. - ResolverInfo(context.Context, *QueryResolverInfoRequest) (*QueryResolverInfoResponse, error) mustEmbedUnimplementedQueryServer() } @@ -108,21 +69,12 @@ type QueryServer interface { type UnimplementedQueryServer struct { } -func (UnimplementedQueryServer) ByIRI(context.Context, *QueryByIRIRequest) (*QueryByIRIResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ByIRI not implemented") +func (UnimplementedQueryServer) ByHash(context.Context, *QueryByHashRequest) (*QueryByHashResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ByHash not implemented") } func (UnimplementedQueryServer) BySigner(context.Context, *QueryBySignerRequest) (*QueryBySignerResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method BySigner not implemented") } -func (UnimplementedQueryServer) Signers(context.Context, *QuerySignersRequest) (*QuerySignersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Signers not implemented") -} -func (UnimplementedQueryServer) Resolvers(context.Context, *QueryResolversRequest) (*QueryResolversResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Resolvers not implemented") -} -func (UnimplementedQueryServer) ResolverInfo(context.Context, *QueryResolverInfoRequest) (*QueryResolverInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResolverInfo not implemented") -} func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} // UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. @@ -136,20 +88,20 @@ func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { s.RegisterService(&Query_ServiceDesc, srv) } -func _Query_ByIRI_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryByIRIRequest) +func _Query_ByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryByHashRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).ByIRI(ctx, in) + return srv.(QueryServer).ByHash(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1alpha2.Query/ByIRI", + FullMethod: "/regen.data.v1alpha2.Query/ByHash", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ByIRI(ctx, req.(*QueryByIRIRequest)) + return srv.(QueryServer).ByHash(ctx, req.(*QueryByHashRequest)) } return interceptor(ctx, in, info, handler) } @@ -172,60 +124,6 @@ func _Query_BySigner_Handler(srv interface{}, ctx context.Context, dec func(inte return interceptor(ctx, in, info, handler) } -func _Query_Signers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QuerySignersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Signers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.data.v1alpha2.Query/Signers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Signers(ctx, req.(*QuerySignersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Resolvers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryResolversRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Resolvers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.data.v1alpha2.Query/Resolvers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Resolvers(ctx, req.(*QueryResolversRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_ResolverInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryResolverInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).ResolverInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.data.v1alpha2.Query/ResolverInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ResolverInfo(ctx, req.(*QueryResolverInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - // Query_ServiceDesc is the grpc.ServiceDesc for Query service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -234,25 +132,13 @@ var Query_ServiceDesc = grpc.ServiceDesc{ HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "ByIRI", - Handler: _Query_ByIRI_Handler, + MethodName: "ByHash", + Handler: _Query_ByHash_Handler, }, { MethodName: "BySigner", Handler: _Query_BySigner_Handler, }, - { - MethodName: "Signers", - Handler: _Query_Signers_Handler, - }, - { - MethodName: "Resolvers", - Handler: _Query_Resolvers_Handler, - }, - { - MethodName: "ResolverInfo", - Handler: _Query_ResolverInfo_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "regen/data/v1alpha2/query.proto", diff --git a/api/regen/data/v1alpha2/tx.pulsar.go b/api/regen/data/v1alpha2/tx.pulsar.go index 067d506eb1..6094b88fbe 100644 --- a/api/regen/data/v1alpha2/tx.pulsar.go +++ b/api/regen/data/v1alpha2/tx.pulsar.go @@ -516,14 +516,12 @@ func (x *fastReflection_MsgAnchorData) ProtoMethods() *protoiface.Methods { var ( md_MsgAnchorDataResponse protoreflect.MessageDescriptor fd_MsgAnchorDataResponse_timestamp protoreflect.FieldDescriptor - fd_MsgAnchorDataResponse_iri protoreflect.FieldDescriptor ) func init() { file_regen_data_v1alpha2_tx_proto_init() md_MsgAnchorDataResponse = File_regen_data_v1alpha2_tx_proto.Messages().ByName("MsgAnchorDataResponse") fd_MsgAnchorDataResponse_timestamp = md_MsgAnchorDataResponse.Fields().ByName("timestamp") - fd_MsgAnchorDataResponse_iri = md_MsgAnchorDataResponse.Fields().ByName("iri") } var _ protoreflect.Message = (*fastReflection_MsgAnchorDataResponse)(nil) @@ -597,12 +595,6 @@ func (x *fastReflection_MsgAnchorDataResponse) Range(f func(protoreflect.FieldDe return } } - if x.Iri != "" { - value := protoreflect.ValueOfString(x.Iri) - if !f(fd_MsgAnchorDataResponse_iri, value) { - return - } - } } // Has reports whether a field is populated. @@ -620,8 +612,6 @@ func (x *fastReflection_MsgAnchorDataResponse) Has(fd protoreflect.FieldDescript switch fd.FullName() { case "regen.data.v1alpha2.MsgAnchorDataResponse.timestamp": return x.Timestamp != nil - case "regen.data.v1alpha2.MsgAnchorDataResponse.iri": - return x.Iri != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgAnchorDataResponse")) @@ -640,8 +630,6 @@ func (x *fastReflection_MsgAnchorDataResponse) Clear(fd protoreflect.FieldDescri switch fd.FullName() { case "regen.data.v1alpha2.MsgAnchorDataResponse.timestamp": x.Timestamp = nil - case "regen.data.v1alpha2.MsgAnchorDataResponse.iri": - x.Iri = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgAnchorDataResponse")) @@ -661,9 +649,6 @@ func (x *fastReflection_MsgAnchorDataResponse) Get(descriptor protoreflect.Field case "regen.data.v1alpha2.MsgAnchorDataResponse.timestamp": value := x.Timestamp return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "regen.data.v1alpha2.MsgAnchorDataResponse.iri": - value := x.Iri - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgAnchorDataResponse")) @@ -686,8 +671,6 @@ func (x *fastReflection_MsgAnchorDataResponse) Set(fd protoreflect.FieldDescript switch fd.FullName() { case "regen.data.v1alpha2.MsgAnchorDataResponse.timestamp": x.Timestamp = value.Message().Interface().(*timestamppb.Timestamp) - case "regen.data.v1alpha2.MsgAnchorDataResponse.iri": - x.Iri = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgAnchorDataResponse")) @@ -713,8 +696,6 @@ func (x *fastReflection_MsgAnchorDataResponse) Mutable(fd protoreflect.FieldDesc x.Timestamp = new(timestamppb.Timestamp) } return protoreflect.ValueOfMessage(x.Timestamp.ProtoReflect()) - case "regen.data.v1alpha2.MsgAnchorDataResponse.iri": - panic(fmt.Errorf("field iri of message regen.data.v1alpha2.MsgAnchorDataResponse is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgAnchorDataResponse")) @@ -731,8 +712,6 @@ func (x *fastReflection_MsgAnchorDataResponse) NewField(fd protoreflect.FieldDes case "regen.data.v1alpha2.MsgAnchorDataResponse.timestamp": m := new(timestamppb.Timestamp) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "regen.data.v1alpha2.MsgAnchorDataResponse.iri": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgAnchorDataResponse")) @@ -806,10 +785,6 @@ func (x *fastReflection_MsgAnchorDataResponse) ProtoMethods() *protoiface.Method l = options.Size(x.Timestamp) n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.Iri) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -839,13 +814,6 @@ func (x *fastReflection_MsgAnchorDataResponse) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Iri) > 0 { - i -= len(x.Iri) - copy(dAtA[i:], x.Iri) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Iri))) - i-- - dAtA[i] = 0x12 - } if x.Timestamp != nil { encoded, err := options.Marshal(x.Timestamp) if err != nil { @@ -945,38 +913,6 @@ func (x *fastReflection_MsgAnchorDataResponse) ProtoMethods() *protoiface.Method return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Iri", 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.Iri = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1928,27 +1864,29 @@ func (x *fastReflection_MsgSignDataResponse) ProtoMethods() *protoiface.Methods } var ( - md_MsgDefineResolver protoreflect.MessageDescriptor - fd_MsgDefineResolver_manager protoreflect.FieldDescriptor - fd_MsgDefineResolver_resolver_url protoreflect.FieldDescriptor + md_MsgStoreRawData protoreflect.MessageDescriptor + fd_MsgStoreRawData_sender protoreflect.FieldDescriptor + fd_MsgStoreRawData_content_hash protoreflect.FieldDescriptor + fd_MsgStoreRawData_content protoreflect.FieldDescriptor ) func init() { file_regen_data_v1alpha2_tx_proto_init() - md_MsgDefineResolver = File_regen_data_v1alpha2_tx_proto.Messages().ByName("MsgDefineResolver") - fd_MsgDefineResolver_manager = md_MsgDefineResolver.Fields().ByName("manager") - fd_MsgDefineResolver_resolver_url = md_MsgDefineResolver.Fields().ByName("resolver_url") + md_MsgStoreRawData = File_regen_data_v1alpha2_tx_proto.Messages().ByName("MsgStoreRawData") + fd_MsgStoreRawData_sender = md_MsgStoreRawData.Fields().ByName("sender") + fd_MsgStoreRawData_content_hash = md_MsgStoreRawData.Fields().ByName("content_hash") + fd_MsgStoreRawData_content = md_MsgStoreRawData.Fields().ByName("content") } -var _ protoreflect.Message = (*fastReflection_MsgDefineResolver)(nil) +var _ protoreflect.Message = (*fastReflection_MsgStoreRawData)(nil) -type fastReflection_MsgDefineResolver MsgDefineResolver +type fastReflection_MsgStoreRawData MsgStoreRawData -func (x *MsgDefineResolver) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgDefineResolver)(x) +func (x *MsgStoreRawData) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgStoreRawData)(x) } -func (x *MsgDefineResolver) slowProtoReflect() protoreflect.Message { +func (x *MsgStoreRawData) slowProtoReflect() protoreflect.Message { mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1960,43 +1898,43 @@ func (x *MsgDefineResolver) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgDefineResolver_messageType fastReflection_MsgDefineResolver_messageType -var _ protoreflect.MessageType = fastReflection_MsgDefineResolver_messageType{} +var _fastReflection_MsgStoreRawData_messageType fastReflection_MsgStoreRawData_messageType +var _ protoreflect.MessageType = fastReflection_MsgStoreRawData_messageType{} -type fastReflection_MsgDefineResolver_messageType struct{} +type fastReflection_MsgStoreRawData_messageType struct{} -func (x fastReflection_MsgDefineResolver_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgDefineResolver)(nil) +func (x fastReflection_MsgStoreRawData_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgStoreRawData)(nil) } -func (x fastReflection_MsgDefineResolver_messageType) New() protoreflect.Message { - return new(fastReflection_MsgDefineResolver) +func (x fastReflection_MsgStoreRawData_messageType) New() protoreflect.Message { + return new(fastReflection_MsgStoreRawData) } -func (x fastReflection_MsgDefineResolver_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDefineResolver +func (x fastReflection_MsgStoreRawData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgStoreRawData } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgDefineResolver) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDefineResolver +func (x *fastReflection_MsgStoreRawData) Descriptor() protoreflect.MessageDescriptor { + return md_MsgStoreRawData } // 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_MsgDefineResolver) Type() protoreflect.MessageType { - return _fastReflection_MsgDefineResolver_messageType +func (x *fastReflection_MsgStoreRawData) Type() protoreflect.MessageType { + return _fastReflection_MsgStoreRawData_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgDefineResolver) New() protoreflect.Message { - return new(fastReflection_MsgDefineResolver) +func (x *fastReflection_MsgStoreRawData) New() protoreflect.Message { + return new(fastReflection_MsgStoreRawData) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgDefineResolver) Interface() protoreflect.ProtoMessage { - return (*MsgDefineResolver)(x) +func (x *fastReflection_MsgStoreRawData) Interface() protoreflect.ProtoMessage { + return (*MsgStoreRawData)(x) } // Range iterates over every populated field in an undefined order, @@ -2004,16 +1942,22 @@ func (x *fastReflection_MsgDefineResolver) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgDefineResolver) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Manager != "" { - value := protoreflect.ValueOfString(x.Manager) - if !f(fd_MsgDefineResolver_manager, value) { +func (x *fastReflection_MsgStoreRawData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Sender != "" { + value := protoreflect.ValueOfString(x.Sender) + if !f(fd_MsgStoreRawData_sender, value) { + return + } + } + if x.ContentHash != nil { + value := protoreflect.ValueOfMessage(x.ContentHash.ProtoReflect()) + if !f(fd_MsgStoreRawData_content_hash, value) { return } } - if x.ResolverUrl != "" { - value := protoreflect.ValueOfString(x.ResolverUrl) - if !f(fd_MsgDefineResolver_resolver_url, value) { + if len(x.Content) != 0 { + value := protoreflect.ValueOfBytes(x.Content) + if !f(fd_MsgStoreRawData_content, value) { return } } @@ -2030,17 +1974,19 @@ func (x *fastReflection_MsgDefineResolver) Range(f func(protoreflect.FieldDescri // 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_MsgDefineResolver) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgStoreRawData) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.data.v1alpha2.MsgDefineResolver.manager": - return x.Manager != "" - case "regen.data.v1alpha2.MsgDefineResolver.resolver_url": - return x.ResolverUrl != "" + case "regen.data.v1alpha2.MsgStoreRawData.sender": + return x.Sender != "" + case "regen.data.v1alpha2.MsgStoreRawData.content_hash": + return x.ContentHash != nil + case "regen.data.v1alpha2.MsgStoreRawData.content": + return len(x.Content) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgDefineResolver")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgStoreRawData")) } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgDefineResolver does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.MsgStoreRawData does not contain field %s", fd.FullName())) } } @@ -2050,17 +1996,19 @@ func (x *fastReflection_MsgDefineResolver) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDefineResolver) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgStoreRawData) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.data.v1alpha2.MsgDefineResolver.manager": - x.Manager = "" - case "regen.data.v1alpha2.MsgDefineResolver.resolver_url": - x.ResolverUrl = "" + case "regen.data.v1alpha2.MsgStoreRawData.sender": + x.Sender = "" + case "regen.data.v1alpha2.MsgStoreRawData.content_hash": + x.ContentHash = nil + case "regen.data.v1alpha2.MsgStoreRawData.content": + x.Content = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgDefineResolver")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgStoreRawData")) } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgDefineResolver does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.MsgStoreRawData does not contain field %s", fd.FullName())) } } @@ -2070,19 +2018,22 @@ func (x *fastReflection_MsgDefineResolver) Clear(fd protoreflect.FieldDescriptor // 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_MsgDefineResolver) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgStoreRawData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.data.v1alpha2.MsgDefineResolver.manager": - value := x.Manager - return protoreflect.ValueOfString(value) - case "regen.data.v1alpha2.MsgDefineResolver.resolver_url": - value := x.ResolverUrl + case "regen.data.v1alpha2.MsgStoreRawData.sender": + value := x.Sender return protoreflect.ValueOfString(value) + case "regen.data.v1alpha2.MsgStoreRawData.content_hash": + value := x.ContentHash + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "regen.data.v1alpha2.MsgStoreRawData.content": + value := x.Content + return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgDefineResolver")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgStoreRawData")) } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgDefineResolver does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.MsgStoreRawData does not contain field %s", descriptor.FullName())) } } @@ -2096,17 +2047,19 @@ func (x *fastReflection_MsgDefineResolver) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDefineResolver) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgStoreRawData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.data.v1alpha2.MsgDefineResolver.manager": - x.Manager = value.Interface().(string) - case "regen.data.v1alpha2.MsgDefineResolver.resolver_url": - x.ResolverUrl = value.Interface().(string) + case "regen.data.v1alpha2.MsgStoreRawData.sender": + x.Sender = value.Interface().(string) + case "regen.data.v1alpha2.MsgStoreRawData.content_hash": + x.ContentHash = value.Message().Interface().(*ContentHash_Raw) + case "regen.data.v1alpha2.MsgStoreRawData.content": + x.Content = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgDefineResolver")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgStoreRawData")) } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgDefineResolver does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.MsgStoreRawData does not contain field %s", fd.FullName())) } } @@ -2120,44 +2073,52 @@ func (x *fastReflection_MsgDefineResolver) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDefineResolver) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgStoreRawData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.MsgDefineResolver.manager": - panic(fmt.Errorf("field manager of message regen.data.v1alpha2.MsgDefineResolver is not mutable")) - case "regen.data.v1alpha2.MsgDefineResolver.resolver_url": - panic(fmt.Errorf("field resolver_url of message regen.data.v1alpha2.MsgDefineResolver is not mutable")) + case "regen.data.v1alpha2.MsgStoreRawData.content_hash": + if x.ContentHash == nil { + x.ContentHash = new(ContentHash_Raw) + } + return protoreflect.ValueOfMessage(x.ContentHash.ProtoReflect()) + case "regen.data.v1alpha2.MsgStoreRawData.sender": + panic(fmt.Errorf("field sender of message regen.data.v1alpha2.MsgStoreRawData is not mutable")) + case "regen.data.v1alpha2.MsgStoreRawData.content": + panic(fmt.Errorf("field content of message regen.data.v1alpha2.MsgStoreRawData is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgDefineResolver")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgStoreRawData")) } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgDefineResolver does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.MsgStoreRawData 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_MsgDefineResolver) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgStoreRawData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.MsgDefineResolver.manager": - return protoreflect.ValueOfString("") - case "regen.data.v1alpha2.MsgDefineResolver.resolver_url": + case "regen.data.v1alpha2.MsgStoreRawData.sender": return protoreflect.ValueOfString("") + case "regen.data.v1alpha2.MsgStoreRawData.content_hash": + m := new(ContentHash_Raw) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "regen.data.v1alpha2.MsgStoreRawData.content": + return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgDefineResolver")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgStoreRawData")) } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgDefineResolver does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.MsgStoreRawData 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_MsgDefineResolver) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgStoreRawData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.MsgDefineResolver", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.MsgStoreRawData", d.FullName())) } panic("unreachable") } @@ -2165,7 +2126,7 @@ func (x *fastReflection_MsgDefineResolver) WhichOneof(d protoreflect.OneofDescri // 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_MsgDefineResolver) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgStoreRawData) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2176,7 +2137,7 @@ func (x *fastReflection_MsgDefineResolver) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDefineResolver) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgStoreRawData) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2188,7 +2149,7 @@ func (x *fastReflection_MsgDefineResolver) SetUnknown(fields protoreflect.RawFie // 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_MsgDefineResolver) IsValid() bool { +func (x *fastReflection_MsgStoreRawData) IsValid() bool { return x != nil } @@ -2198,9 +2159,9 @@ func (x *fastReflection_MsgDefineResolver) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgStoreRawData) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgDefineResolver) + x := input.Message.Interface().(*MsgStoreRawData) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2212,11 +2173,15 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Manager) + l = len(x.Sender) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.ResolverUrl) + if x.ContentHash != nil { + l = options.Size(x.ContentHash) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Content) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -2230,7 +2195,7 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgDefineResolver) + x := input.Message.Interface().(*MsgStoreRawData) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2249,17 +2214,31 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.ResolverUrl) > 0 { - i -= len(x.ResolverUrl) - copy(dAtA[i:], x.ResolverUrl) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ResolverUrl))) + if len(x.Content) > 0 { + i -= len(x.Content) + copy(dAtA[i:], x.Content) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Content))) + i-- + dAtA[i] = 0x1a + } + if x.ContentHash != nil { + encoded, err := options.Marshal(x.ContentHash) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0x12 } - if len(x.Manager) > 0 { - i -= len(x.Manager) - copy(dAtA[i:], x.Manager) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Manager))) + if len(x.Sender) > 0 { + i -= len(x.Sender) + copy(dAtA[i:], x.Sender) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Sender))) i-- dAtA[i] = 0xa } @@ -2274,7 +2253,7 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgDefineResolver) + x := input.Message.Interface().(*MsgStoreRawData) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2306,15 +2285,15 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDefineResolver: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStoreRawData: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDefineResolver: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStoreRawData: 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 Manager", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2342,13 +2321,13 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Manager = string(dAtA[iNdEx:postIndex]) + x.Sender = 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 ResolverUrl", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContentHash", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2358,23 +2337,61 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + 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.ContentHash == nil { + x.ContentHash = &ContentHash_Raw{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ContentHash); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) + } + var byteLen 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen 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.ResolverUrl = string(dAtA[iNdEx:postIndex]) + x.Content = append(x.Content[:0], dAtA[iNdEx:postIndex]...) + if x.Content == nil { + x.Content = []byte{} + } iNdEx = postIndex default: iNdEx = preIndex @@ -2412,25 +2429,23 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { } var ( - md_MsgDefineResolverResponse protoreflect.MessageDescriptor - fd_MsgDefineResolverResponse_resolver_id protoreflect.FieldDescriptor + md_MsgStoreRawDataResponse protoreflect.MessageDescriptor ) func init() { file_regen_data_v1alpha2_tx_proto_init() - md_MsgDefineResolverResponse = File_regen_data_v1alpha2_tx_proto.Messages().ByName("MsgDefineResolverResponse") - fd_MsgDefineResolverResponse_resolver_id = md_MsgDefineResolverResponse.Fields().ByName("resolver_id") + md_MsgStoreRawDataResponse = File_regen_data_v1alpha2_tx_proto.Messages().ByName("MsgStoreRawDataResponse") } -var _ protoreflect.Message = (*fastReflection_MsgDefineResolverResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgStoreRawDataResponse)(nil) -type fastReflection_MsgDefineResolverResponse MsgDefineResolverResponse +type fastReflection_MsgStoreRawDataResponse MsgStoreRawDataResponse -func (x *MsgDefineResolverResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgDefineResolverResponse)(x) +func (x *MsgStoreRawDataResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgStoreRawDataResponse)(x) } -func (x *MsgDefineResolverResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgStoreRawDataResponse) slowProtoReflect() protoreflect.Message { mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2442,43 +2457,43 @@ func (x *MsgDefineResolverResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgDefineResolverResponse_messageType fastReflection_MsgDefineResolverResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgDefineResolverResponse_messageType{} +var _fastReflection_MsgStoreRawDataResponse_messageType fastReflection_MsgStoreRawDataResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgStoreRawDataResponse_messageType{} -type fastReflection_MsgDefineResolverResponse_messageType struct{} +type fastReflection_MsgStoreRawDataResponse_messageType struct{} -func (x fastReflection_MsgDefineResolverResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgDefineResolverResponse)(nil) +func (x fastReflection_MsgStoreRawDataResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgStoreRawDataResponse)(nil) } -func (x fastReflection_MsgDefineResolverResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgDefineResolverResponse) +func (x fastReflection_MsgStoreRawDataResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgStoreRawDataResponse) } -func (x fastReflection_MsgDefineResolverResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDefineResolverResponse +func (x fastReflection_MsgStoreRawDataResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgStoreRawDataResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgDefineResolverResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgDefineResolverResponse +func (x *fastReflection_MsgStoreRawDataResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgStoreRawDataResponse } // 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_MsgDefineResolverResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgDefineResolverResponse_messageType +func (x *fastReflection_MsgStoreRawDataResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgStoreRawDataResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgDefineResolverResponse) New() protoreflect.Message { - return new(fastReflection_MsgDefineResolverResponse) +func (x *fastReflection_MsgStoreRawDataResponse) New() protoreflect.Message { + return new(fastReflection_MsgStoreRawDataResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgDefineResolverResponse) Interface() protoreflect.ProtoMessage { - return (*MsgDefineResolverResponse)(x) +func (x *fastReflection_MsgStoreRawDataResponse) Interface() protoreflect.ProtoMessage { + return (*MsgStoreRawDataResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2486,13 +2501,7 @@ func (x *fastReflection_MsgDefineResolverResponse) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgDefineResolverResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ResolverId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ResolverId) - if !f(fd_MsgDefineResolverResponse_resolver_id, value) { - return - } - } +func (x *fastReflection_MsgStoreRawDataResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -2506,15 +2515,13 @@ func (x *fastReflection_MsgDefineResolverResponse) Range(f func(protoreflect.Fie // 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_MsgDefineResolverResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgStoreRawDataResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.data.v1alpha2.MsgDefineResolverResponse.resolver_id": - return x.ResolverId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgDefineResolverResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgStoreRawDataResponse")) } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgDefineResolverResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.MsgStoreRawDataResponse does not contain field %s", fd.FullName())) } } @@ -2524,15 +2531,13 @@ func (x *fastReflection_MsgDefineResolverResponse) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDefineResolverResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgStoreRawDataResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.data.v1alpha2.MsgDefineResolverResponse.resolver_id": - x.ResolverId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgDefineResolverResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgStoreRawDataResponse")) } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgDefineResolverResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.MsgStoreRawDataResponse does not contain field %s", fd.FullName())) } } @@ -2542,16 +2547,13 @@ func (x *fastReflection_MsgDefineResolverResponse) Clear(fd protoreflect.FieldDe // 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_MsgDefineResolverResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgStoreRawDataResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.data.v1alpha2.MsgDefineResolverResponse.resolver_id": - value := x.ResolverId - return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgDefineResolverResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgStoreRawDataResponse")) } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgDefineResolverResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.MsgStoreRawDataResponse does not contain field %s", descriptor.FullName())) } } @@ -2565,15 +2567,13 @@ func (x *fastReflection_MsgDefineResolverResponse) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDefineResolverResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgStoreRawDataResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.data.v1alpha2.MsgDefineResolverResponse.resolver_id": - x.ResolverId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgDefineResolverResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgStoreRawDataResponse")) } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgDefineResolverResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.MsgStoreRawDataResponse does not contain field %s", fd.FullName())) } } @@ -2587,40 +2587,36 @@ func (x *fastReflection_MsgDefineResolverResponse) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDefineResolverResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgStoreRawDataResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.MsgDefineResolverResponse.resolver_id": - panic(fmt.Errorf("field resolver_id of message regen.data.v1alpha2.MsgDefineResolverResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgDefineResolverResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgStoreRawDataResponse")) } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgDefineResolverResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.MsgStoreRawDataResponse 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_MsgDefineResolverResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgStoreRawDataResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v1alpha2.MsgDefineResolverResponse.resolver_id": - return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgDefineResolverResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgStoreRawDataResponse")) } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgDefineResolverResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message regen.data.v1alpha2.MsgStoreRawDataResponse 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_MsgDefineResolverResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgStoreRawDataResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.MsgDefineResolverResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.MsgStoreRawDataResponse", d.FullName())) } panic("unreachable") } @@ -2628,7 +2624,7 @@ func (x *fastReflection_MsgDefineResolverResponse) WhichOneof(d protoreflect.One // 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_MsgDefineResolverResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgStoreRawDataResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2639,7 +2635,7 @@ func (x *fastReflection_MsgDefineResolverResponse) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgDefineResolverResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgStoreRawDataResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2651,7 +2647,7 @@ func (x *fastReflection_MsgDefineResolverResponse) SetUnknown(fields protoreflec // 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_MsgDefineResolverResponse) IsValid() bool { +func (x *fastReflection_MsgStoreRawDataResponse) IsValid() bool { return x != nil } @@ -2661,9 +2657,9 @@ func (x *fastReflection_MsgDefineResolverResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgDefineResolverResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgStoreRawDataResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgDefineResolverResponse) + x := input.Message.Interface().(*MsgStoreRawDataResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2675,9 +2671,6 @@ func (x *fastReflection_MsgDefineResolverResponse) ProtoMethods() *protoiface.Me var n int var l int _ = l - if x.ResolverId != 0 { - n += 1 + runtime.Sov(uint64(x.ResolverId)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2688,7 +2681,7 @@ func (x *fastReflection_MsgDefineResolverResponse) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgDefineResolverResponse) + x := input.Message.Interface().(*MsgStoreRawDataResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2707,11 +2700,6 @@ func (x *fastReflection_MsgDefineResolverResponse) ProtoMethods() *protoiface.Me i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.ResolverId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ResolverId)) - i-- - dAtA[i] = 0x8 - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -2723,7 +2711,7 @@ func (x *fastReflection_MsgDefineResolverResponse) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgDefineResolverResponse) + x := input.Message.Interface().(*MsgStoreRawDataResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2755,31 +2743,12 @@ func (x *fastReflection_MsgDefineResolverResponse) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDefineResolverResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStoreRawDataResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgDefineResolverResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgStoreRawDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ResolverId", wireType) - } - x.ResolverId = 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.ResolverId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2815,1102 +2784,131 @@ func (x *fastReflection_MsgDefineResolverResponse) ProtoMethods() *protoiface.Me } } -var _ protoreflect.List = (*_MsgRegisterResolver_3_list)(nil) +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc v3.19.1 +// source: regen/data/v1alpha2/tx.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) +) + +// MsgAnchorData is the Msg/AnchorData request type. +type MsgAnchorData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type _MsgRegisterResolver_3_list struct { - list *[]*ContentHash + // sender is the address of the sender of the transaction. + // The sender in StoreData is not attesting to the veracity of the underlying + // data. They can simply be a intermediary providing services. + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + // hash is the hash-based identifier for the anchored content. + Hash *ContentHash `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` } -func (x *_MsgRegisterResolver_3_list) Len() int { - if x.list == nil { - return 0 +func (x *MsgAnchorData) Reset() { + *x = MsgAnchorData{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(*x.list) } -func (x *_MsgRegisterResolver_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +func (x *MsgAnchorData) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *_MsgRegisterResolver_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ContentHash) - (*x.list)[i] = concreteValue -} +func (*MsgAnchorData) ProtoMessage() {} -func (x *_MsgRegisterResolver_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ContentHash) - *x.list = append(*x.list, concreteValue) +// Deprecated: Use MsgAnchorData.ProtoReflect.Descriptor instead. +func (*MsgAnchorData) Descriptor() ([]byte, []int) { + return file_regen_data_v1alpha2_tx_proto_rawDescGZIP(), []int{0} } -func (x *_MsgRegisterResolver_3_list) AppendMutable() protoreflect.Value { - v := new(ContentHash) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *MsgAnchorData) GetSender() string { + if x != nil { + return x.Sender + } + return "" } -func (x *_MsgRegisterResolver_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil +func (x *MsgAnchorData) GetHash() *ContentHash { + if x != nil { + return x.Hash } - *x.list = (*x.list)[:n] + return nil } -func (x *_MsgRegisterResolver_3_list) NewElement() protoreflect.Value { - v := new(ContentHash) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} +// MsgAnchorData is the Msg/AnchorData response type. +type MsgAnchorDataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *_MsgRegisterResolver_3_list) IsValid() bool { - return x.list != nil + // timestamp is the timestamp of the block at which the data was anchored. + Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` } -var ( - md_MsgRegisterResolver protoreflect.MessageDescriptor - fd_MsgRegisterResolver_manager protoreflect.FieldDescriptor - fd_MsgRegisterResolver_resolver_id protoreflect.FieldDescriptor - fd_MsgRegisterResolver_data protoreflect.FieldDescriptor -) - -func init() { - file_regen_data_v1alpha2_tx_proto_init() - md_MsgRegisterResolver = File_regen_data_v1alpha2_tx_proto.Messages().ByName("MsgRegisterResolver") - fd_MsgRegisterResolver_manager = md_MsgRegisterResolver.Fields().ByName("manager") - fd_MsgRegisterResolver_resolver_id = md_MsgRegisterResolver.Fields().ByName("resolver_id") - fd_MsgRegisterResolver_data = md_MsgRegisterResolver.Fields().ByName("data") +func (x *MsgAnchorDataResponse) Reset() { + *x = MsgAnchorDataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var _ protoreflect.Message = (*fastReflection_MsgRegisterResolver)(nil) +func (x *MsgAnchorDataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} -type fastReflection_MsgRegisterResolver MsgRegisterResolver +func (*MsgAnchorDataResponse) ProtoMessage() {} -func (x *MsgRegisterResolver) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRegisterResolver)(x) +// Deprecated: Use MsgAnchorDataResponse.ProtoReflect.Descriptor instead. +func (*MsgAnchorDataResponse) Descriptor() ([]byte, []int) { + return file_regen_data_v1alpha2_tx_proto_rawDescGZIP(), []int{1} } -func (x *MsgRegisterResolver) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *MsgAnchorDataResponse) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp } - return mi.MessageOf(x) + return nil } -var _fastReflection_MsgRegisterResolver_messageType fastReflection_MsgRegisterResolver_messageType -var _ protoreflect.MessageType = fastReflection_MsgRegisterResolver_messageType{} - -type fastReflection_MsgRegisterResolver_messageType struct{} +// MsgSignData is the Msg/SignData request type. +type MsgSignData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x fastReflection_MsgRegisterResolver_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRegisterResolver)(nil) -} -func (x fastReflection_MsgRegisterResolver_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRegisterResolver) -} -func (x fastReflection_MsgRegisterResolver_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRegisterResolver + // signers are the addresses of the accounts signing the data. + // By making a SignData request, the signers are attesting to the veracity + // of the data referenced by the cid. The precise meaning of this may vary + // depending on the underlying data. + Signers []string `protobuf:"bytes,1,rep,name=signers,proto3" json:"signers,omitempty"` + // hash is the hash-based identifier for the anchored content. Only RDF graph + // data can be signed as its data model is intended to specifically convey semantic meaning. + Hash *ContentHash_Graph `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` } -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgRegisterResolver) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRegisterResolver +func (x *MsgSignData) Reset() { + *x = MsgSignData{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -// 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_MsgRegisterResolver) Type() protoreflect.MessageType { - return _fastReflection_MsgRegisterResolver_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRegisterResolver) New() protoreflect.Message { - return new(fastReflection_MsgRegisterResolver) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRegisterResolver) Interface() protoreflect.ProtoMessage { - return (*MsgRegisterResolver)(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_MsgRegisterResolver) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Manager != "" { - value := protoreflect.ValueOfString(x.Manager) - if !f(fd_MsgRegisterResolver_manager, value) { - return - } - } - if x.ResolverId != uint64(0) { - value := protoreflect.ValueOfUint64(x.ResolverId) - if !f(fd_MsgRegisterResolver_resolver_id, value) { - return - } - } - if len(x.Data) != 0 { - value := protoreflect.ValueOfList(&_MsgRegisterResolver_3_list{list: &x.Data}) - if !f(fd_MsgRegisterResolver_data, 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_MsgRegisterResolver) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "regen.data.v1alpha2.MsgRegisterResolver.manager": - return x.Manager != "" - case "regen.data.v1alpha2.MsgRegisterResolver.resolver_id": - return x.ResolverId != uint64(0) - case "regen.data.v1alpha2.MsgRegisterResolver.data": - return len(x.Data) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgRegisterResolver")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgRegisterResolver 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_MsgRegisterResolver) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "regen.data.v1alpha2.MsgRegisterResolver.manager": - x.Manager = "" - case "regen.data.v1alpha2.MsgRegisterResolver.resolver_id": - x.ResolverId = uint64(0) - case "regen.data.v1alpha2.MsgRegisterResolver.data": - x.Data = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgRegisterResolver")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgRegisterResolver 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_MsgRegisterResolver) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "regen.data.v1alpha2.MsgRegisterResolver.manager": - value := x.Manager - return protoreflect.ValueOfString(value) - case "regen.data.v1alpha2.MsgRegisterResolver.resolver_id": - value := x.ResolverId - return protoreflect.ValueOfUint64(value) - case "regen.data.v1alpha2.MsgRegisterResolver.data": - if len(x.Data) == 0 { - return protoreflect.ValueOfList(&_MsgRegisterResolver_3_list{}) - } - listValue := &_MsgRegisterResolver_3_list{list: &x.Data} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgRegisterResolver")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgRegisterResolver 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_MsgRegisterResolver) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "regen.data.v1alpha2.MsgRegisterResolver.manager": - x.Manager = value.Interface().(string) - case "regen.data.v1alpha2.MsgRegisterResolver.resolver_id": - x.ResolverId = value.Uint() - case "regen.data.v1alpha2.MsgRegisterResolver.data": - lv := value.List() - clv := lv.(*_MsgRegisterResolver_3_list) - x.Data = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgRegisterResolver")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgRegisterResolver 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_MsgRegisterResolver) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.MsgRegisterResolver.data": - if x.Data == nil { - x.Data = []*ContentHash{} - } - value := &_MsgRegisterResolver_3_list{list: &x.Data} - return protoreflect.ValueOfList(value) - case "regen.data.v1alpha2.MsgRegisterResolver.manager": - panic(fmt.Errorf("field manager of message regen.data.v1alpha2.MsgRegisterResolver is not mutable")) - case "regen.data.v1alpha2.MsgRegisterResolver.resolver_id": - panic(fmt.Errorf("field resolver_id of message regen.data.v1alpha2.MsgRegisterResolver is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgRegisterResolver")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgRegisterResolver 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_MsgRegisterResolver) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "regen.data.v1alpha2.MsgRegisterResolver.manager": - return protoreflect.ValueOfString("") - case "regen.data.v1alpha2.MsgRegisterResolver.resolver_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "regen.data.v1alpha2.MsgRegisterResolver.data": - list := []*ContentHash{} - return protoreflect.ValueOfList(&_MsgRegisterResolver_3_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgRegisterResolver")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgRegisterResolver 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_MsgRegisterResolver) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.MsgRegisterResolver", 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_MsgRegisterResolver) 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_MsgRegisterResolver) 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_MsgRegisterResolver) 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_MsgRegisterResolver) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRegisterResolver) - 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.Manager) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.ResolverId != 0 { - n += 1 + runtime.Sov(uint64(x.ResolverId)) - } - if len(x.Data) > 0 { - for _, e := range x.Data { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgRegisterResolver) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Data) > 0 { - for iNdEx := len(x.Data) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Data[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - } - if x.ResolverId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ResolverId)) - i-- - dAtA[i] = 0x10 - } - if len(x.Manager) > 0 { - i -= len(x.Manager) - copy(dAtA[i:], x.Manager) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Manager))) - 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().(*MsgRegisterResolver) - 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: MsgRegisterResolver: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterResolver: 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 Manager", 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.Manager = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ResolverId", wireType) - } - x.ResolverId = 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.ResolverId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Data = append(x.Data, &ContentHash{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Data[len(x.Data)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgRegisterResolverResponse protoreflect.MessageDescriptor -) - -func init() { - file_regen_data_v1alpha2_tx_proto_init() - md_MsgRegisterResolverResponse = File_regen_data_v1alpha2_tx_proto.Messages().ByName("MsgRegisterResolverResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgRegisterResolverResponse)(nil) - -type fastReflection_MsgRegisterResolverResponse MsgRegisterResolverResponse - -func (x *MsgRegisterResolverResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRegisterResolverResponse)(x) -} - -func (x *MsgRegisterResolverResponse) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_tx_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_MsgRegisterResolverResponse_messageType fastReflection_MsgRegisterResolverResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgRegisterResolverResponse_messageType{} - -type fastReflection_MsgRegisterResolverResponse_messageType struct{} - -func (x fastReflection_MsgRegisterResolverResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRegisterResolverResponse)(nil) -} -func (x fastReflection_MsgRegisterResolverResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRegisterResolverResponse) -} -func (x fastReflection_MsgRegisterResolverResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRegisterResolverResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgRegisterResolverResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRegisterResolverResponse -} - -// 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_MsgRegisterResolverResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgRegisterResolverResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRegisterResolverResponse) New() protoreflect.Message { - return new(fastReflection_MsgRegisterResolverResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRegisterResolverResponse) Interface() protoreflect.ProtoMessage { - return (*MsgRegisterResolverResponse)(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_MsgRegisterResolverResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { -} - -// 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_MsgRegisterResolverResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgRegisterResolverResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgRegisterResolverResponse 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_MsgRegisterResolverResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgRegisterResolverResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgRegisterResolverResponse 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_MsgRegisterResolverResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgRegisterResolverResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgRegisterResolverResponse 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_MsgRegisterResolverResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgRegisterResolverResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgRegisterResolverResponse 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_MsgRegisterResolverResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgRegisterResolverResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgRegisterResolverResponse 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_MsgRegisterResolverResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.MsgRegisterResolverResponse")) - } - panic(fmt.Errorf("message regen.data.v1alpha2.MsgRegisterResolverResponse 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_MsgRegisterResolverResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.MsgRegisterResolverResponse", 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_MsgRegisterResolverResponse) 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_MsgRegisterResolverResponse) 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_MsgRegisterResolverResponse) 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_MsgRegisterResolverResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRegisterResolverResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.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().(*MsgRegisterResolverResponse) - 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 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().(*MsgRegisterResolverResponse) - 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: MsgRegisterResolverResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRegisterResolverResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - 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 v3.19.1 -// source: regen/data/v1alpha2/tx.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) -) - -// MsgAnchorData is the Msg/AnchorData request type. -type MsgAnchorData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // sender is the address of the sender of the transaction. - // The sender in StoreData is not attesting to the veracity of the underlying - // data. They can simply be a intermediary providing services. - Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` - // hash is the hash-based identifier for the anchored content. - Hash *ContentHash `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (x *MsgAnchorData) Reset() { - *x = MsgAnchorData{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgAnchorData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgAnchorData) ProtoMessage() {} - -// Deprecated: Use MsgAnchorData.ProtoReflect.Descriptor instead. -func (*MsgAnchorData) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_tx_proto_rawDescGZIP(), []int{0} -} - -func (x *MsgAnchorData) GetSender() string { - if x != nil { - return x.Sender - } - return "" -} - -func (x *MsgAnchorData) GetHash() *ContentHash { - if x != nil { - return x.Hash - } - return nil -} - -// MsgAnchorData is the Msg/AnchorData response type. -type MsgAnchorDataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // timestamp is the timestamp of the block at which the data was anchored. - Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - // iri is the IRI of the data that was anchored. - Iri string `protobuf:"bytes,2,opt,name=iri,proto3" json:"iri,omitempty"` -} - -func (x *MsgAnchorDataResponse) Reset() { - *x = MsgAnchorDataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgAnchorDataResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgAnchorDataResponse) ProtoMessage() {} - -// Deprecated: Use MsgAnchorDataResponse.ProtoReflect.Descriptor instead. -func (*MsgAnchorDataResponse) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_tx_proto_rawDescGZIP(), []int{1} -} - -func (x *MsgAnchorDataResponse) GetTimestamp() *timestamppb.Timestamp { - if x != nil { - return x.Timestamp - } - return nil -} - -func (x *MsgAnchorDataResponse) GetIri() string { - if x != nil { - return x.Iri - } - return "" -} - -// MsgSignData is the Msg/SignData request type. -type MsgSignData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // signers are the addresses of the accounts signing the data. - // By making a SignData request, the signers are attesting to the veracity - // of the data referenced by the cid. The precise meaning of this may vary - // depending on the underlying data. - Signers []string `protobuf:"bytes,1,rep,name=signers,proto3" json:"signers,omitempty"` - // hash is the hash-based identifier for the anchored content. Only RDF graph - // data can be signed as its data model is intended to specifically convey semantic meaning. - Hash *ContentHash_Graph `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (x *MsgSignData) Reset() { - *x = MsgSignData{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgSignData) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *MsgSignData) String() string { + return protoimpl.X.MessageStringOf(x) } func (*MsgSignData) ProtoMessage() {} @@ -3961,177 +2959,88 @@ func (*MsgSignDataResponse) Descriptor() ([]byte, []int) { return file_regen_data_v1alpha2_tx_proto_rawDescGZIP(), []int{3} } -// MsgDefineResolver is the Msg/DefineResolver request type. -type MsgDefineResolver struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // manager is the address of the resolver manager. The manager is able - // to make future calls using the ID returned by this operation with - // Msg/RegisterResolver. To authorize other accounts to register resolvers, - // the manager should make use of cosmos.authz. - Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` - // resolver_url is a resolver URL which should refer to an HTTP service - // which will respond to a GET request with the IRI of a ContentHash - // and return the content if it exists or a 404. For graph data, resolvers - // should use the HTTP Accept header to negotiate the RDF serialization - // format. - ResolverUrl string `protobuf:"bytes,2,opt,name=resolver_url,json=resolverUrl,proto3" json:"resolver_url,omitempty"` -} - -func (x *MsgDefineResolver) Reset() { - *x = MsgDefineResolver{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgDefineResolver) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgDefineResolver) ProtoMessage() {} - -// Deprecated: Use MsgDefineResolver.ProtoReflect.Descriptor instead. -func (*MsgDefineResolver) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_tx_proto_rawDescGZIP(), []int{4} -} - -func (x *MsgDefineResolver) GetManager() string { - if x != nil { - return x.Manager - } - return "" -} - -func (x *MsgDefineResolver) GetResolverUrl() string { - if x != nil { - return x.ResolverUrl - } - return "" -} - -// MsgDefineResolverResponse is the Msg/DefineResolver response type. -type MsgDefineResolverResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // resolver_id is the integer ID of the resolver to be used in MsgRegisterResolver. - ResolverId uint64 `protobuf:"varint,1,opt,name=resolver_id,json=resolverId,proto3" json:"resolver_id,omitempty"` -} - -func (x *MsgDefineResolverResponse) Reset() { - *x = MsgDefineResolverResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgDefineResolverResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgDefineResolverResponse) ProtoMessage() {} - -// Deprecated: Use MsgDefineResolverResponse.ProtoReflect.Descriptor instead. -func (*MsgDefineResolverResponse) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_tx_proto_rawDescGZIP(), []int{5} -} - -func (x *MsgDefineResolverResponse) GetResolverId() uint64 { - if x != nil { - return x.ResolverId - } - return 0 -} - -// MsgRegisterResolver is the Msg/RegisterResolver request type. -type MsgRegisterResolver struct { +// MsgStoreRawData is the Msg/StoreRawData request type. +type MsgStoreRawData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // manager is the address of the resolver manager who registered this - // resolver with Msg/DefinedResolver. - Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` - // resolver_id is the ID of a resolver defined with Msg/DefineResolver. - ResolverId uint64 `protobuf:"varint,2,opt,name=resolver_id,json=resolverId,proto3" json:"resolver_id,omitempty"` - // data is a list of content hashes which the resolver claims to serve. - Data []*ContentHash `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` + // sender is the address of the sender of the transaction. + // The sender in StoreData is not attesting to the veracity of the underlying + // data. They can simply be a intermediary providing services. + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + // content_hash is the hash-based identifier for the anchored content. + ContentHash *ContentHash_Raw `protobuf:"bytes,2,opt,name=content_hash,json=contentHash,proto3" json:"content_hash,omitempty"` + // content is the content of the raw data corresponding to the provided content hash. + Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` } -func (x *MsgRegisterResolver) Reset() { - *x = MsgRegisterResolver{} +func (x *MsgStoreRawData) Reset() { + *x = MsgStoreRawData{} if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[6] + mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgRegisterResolver) String() string { +func (x *MsgStoreRawData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgRegisterResolver) ProtoMessage() {} +func (*MsgStoreRawData) ProtoMessage() {} -// Deprecated: Use MsgRegisterResolver.ProtoReflect.Descriptor instead. -func (*MsgRegisterResolver) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_tx_proto_rawDescGZIP(), []int{6} +// Deprecated: Use MsgStoreRawData.ProtoReflect.Descriptor instead. +func (*MsgStoreRawData) Descriptor() ([]byte, []int) { + return file_regen_data_v1alpha2_tx_proto_rawDescGZIP(), []int{4} } -func (x *MsgRegisterResolver) GetManager() string { +func (x *MsgStoreRawData) GetSender() string { if x != nil { - return x.Manager + return x.Sender } return "" } -func (x *MsgRegisterResolver) GetResolverId() uint64 { +func (x *MsgStoreRawData) GetContentHash() *ContentHash_Raw { if x != nil { - return x.ResolverId + return x.ContentHash } - return 0 + return nil } -func (x *MsgRegisterResolver) GetData() []*ContentHash { +func (x *MsgStoreRawData) GetContent() []byte { if x != nil { - return x.Data + return x.Content } return nil } -// MsgRegisterResolverResponse is the Msg/RegisterResolver response type. -type MsgRegisterResolverResponse struct { +// MsgStoreRawData is the Msg/StoreRawData response type. +type MsgStoreRawDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgRegisterResolverResponse) Reset() { - *x = MsgRegisterResolverResponse{} +func (x *MsgStoreRawDataResponse) Reset() { + *x = MsgStoreRawDataResponse{} if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[7] + mi := &file_regen_data_v1alpha2_tx_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgRegisterResolverResponse) String() string { +func (x *MsgStoreRawDataResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgRegisterResolverResponse) ProtoMessage() {} +func (*MsgStoreRawDataResponse) ProtoMessage() {} -// Deprecated: Use MsgRegisterResolverResponse.ProtoReflect.Descriptor instead. -func (*MsgRegisterResolverResponse) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_tx_proto_rawDescGZIP(), []int{7} +// Deprecated: Use MsgStoreRawDataResponse.ProtoReflect.Descriptor instead. +func (*MsgStoreRawDataResponse) Descriptor() ([]byte, []int) { + return file_regen_data_v1alpha2_tx_proto_rawDescGZIP(), []int{5} } var File_regen_data_v1alpha2_tx_proto protoreflect.FileDescriptor @@ -4151,41 +3060,31 @@ var file_regen_data_v1alpha2_tx_proto_rawDesc = []byte{ 0x6e, 0x64, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x48, 0x61, 0x73, 0x68, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x63, 0x0a, 0x15, 0x4d, 0x73, + 0x48, 0x61, 0x73, 0x68, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x51, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x10, 0x0a, - 0x03, 0x69, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x69, 0x72, 0x69, 0x22, - 0x69, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x53, 0x69, 0x67, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, - 0x0a, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x07, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x3a, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x04, - 0x68, 0x61, 0x73, 0x68, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0x15, 0x0a, 0x13, 0x4d, 0x73, - 0x67, 0x53, 0x69, 0x67, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x50, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x52, 0x65, - 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, - 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x6c, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x55, 0x72, 0x6c, 0x22, 0x3c, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, - 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, - 0x64, 0x22, 0x86, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, - 0x65, 0x72, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x48, 0x61, 0x73, 0x68, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x95, 0x03, 0x0a, 0x03, 0x4d, 0x73, + 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x69, 0x0a, + 0x0b, 0x4d, 0x73, 0x67, 0x53, 0x69, 0x67, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x3a, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x04, 0x68, 0x61, + 0x73, 0x68, 0x3a, 0x04, 0x88, 0xa0, 0x1f, 0x00, 0x22, 0x15, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x53, + 0x69, 0x67, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x8c, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x61, 0x77, 0x44, + 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x0c, 0x63, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, + 0x61, 0x73, 0x68, 0x2e, 0x52, 0x61, 0x77, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x48, 0x61, 0x73, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x19, + 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x61, 0x77, 0x44, 0x61, 0x74, + 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x9f, 0x02, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x5c, 0x0a, 0x0a, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x22, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x44, @@ -4197,35 +3096,28 @@ var file_regen_data_v1alpha2_tx_proto_rawDesc = []byte{ 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x69, 0x67, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x69, 0x67, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x0e, 0x44, 0x65, 0x66, 0x69, 0x6e, - 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, - 0x4d, 0x73, 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x72, 0x1a, 0x2e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, - 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x6e, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, - 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x1a, - 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x42, 0xdc, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x07, 0x54, - 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x32, 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, 0xaa, 0x02, 0x13, 0x52, 0x65, 0x67, - 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, - 0xca, 0x02, 0x13, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xe2, 0x02, 0x1f, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, - 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x52, 0x65, 0x67, 0x65, 0x6e, - 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x0c, 0x53, 0x74, 0x6f, 0x72, 0x65, + 0x52, 0x61, 0x77, 0x44, 0x61, 0x74, 0x61, 0x12, 0x24, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x4d, 0x73, + 0x67, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x61, 0x77, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x2c, 0x2e, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x61, 0x77, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xdc, 0x01, 0x0a, 0x17, + 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x32, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xa2, 0x02, + 0x03, 0x52, 0x44, 0x58, 0xaa, 0x02, 0x13, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, + 0x61, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xca, 0x02, 0x13, 0x52, 0x65, 0x67, + 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, + 0xe2, 0x02, 0x1f, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x15, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, + 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -4240,38 +3132,35 @@ func file_regen_data_v1alpha2_tx_proto_rawDescGZIP() []byte { return file_regen_data_v1alpha2_tx_proto_rawDescData } -var file_regen_data_v1alpha2_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_regen_data_v1alpha2_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_regen_data_v1alpha2_tx_proto_goTypes = []interface{}{ - (*MsgAnchorData)(nil), // 0: regen.data.v1alpha2.MsgAnchorData - (*MsgAnchorDataResponse)(nil), // 1: regen.data.v1alpha2.MsgAnchorDataResponse - (*MsgSignData)(nil), // 2: regen.data.v1alpha2.MsgSignData - (*MsgSignDataResponse)(nil), // 3: regen.data.v1alpha2.MsgSignDataResponse - (*MsgDefineResolver)(nil), // 4: regen.data.v1alpha2.MsgDefineResolver - (*MsgDefineResolverResponse)(nil), // 5: regen.data.v1alpha2.MsgDefineResolverResponse - (*MsgRegisterResolver)(nil), // 6: regen.data.v1alpha2.MsgRegisterResolver - (*MsgRegisterResolverResponse)(nil), // 7: regen.data.v1alpha2.MsgRegisterResolverResponse - (*ContentHash)(nil), // 8: regen.data.v1alpha2.ContentHash - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp - (*ContentHash_Graph)(nil), // 10: regen.data.v1alpha2.ContentHash.Graph + (*MsgAnchorData)(nil), // 0: regen.data.v1alpha2.MsgAnchorData + (*MsgAnchorDataResponse)(nil), // 1: regen.data.v1alpha2.MsgAnchorDataResponse + (*MsgSignData)(nil), // 2: regen.data.v1alpha2.MsgSignData + (*MsgSignDataResponse)(nil), // 3: regen.data.v1alpha2.MsgSignDataResponse + (*MsgStoreRawData)(nil), // 4: regen.data.v1alpha2.MsgStoreRawData + (*MsgStoreRawDataResponse)(nil), // 5: regen.data.v1alpha2.MsgStoreRawDataResponse + (*ContentHash)(nil), // 6: regen.data.v1alpha2.ContentHash + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*ContentHash_Graph)(nil), // 8: regen.data.v1alpha2.ContentHash.Graph + (*ContentHash_Raw)(nil), // 9: regen.data.v1alpha2.ContentHash.Raw } var file_regen_data_v1alpha2_tx_proto_depIdxs = []int32{ - 8, // 0: regen.data.v1alpha2.MsgAnchorData.hash:type_name -> regen.data.v1alpha2.ContentHash - 9, // 1: regen.data.v1alpha2.MsgAnchorDataResponse.timestamp:type_name -> google.protobuf.Timestamp - 10, // 2: regen.data.v1alpha2.MsgSignData.hash:type_name -> regen.data.v1alpha2.ContentHash.Graph - 8, // 3: regen.data.v1alpha2.MsgRegisterResolver.data:type_name -> regen.data.v1alpha2.ContentHash - 0, // 4: regen.data.v1alpha2.Msg.AnchorData:input_type -> regen.data.v1alpha2.MsgAnchorData - 2, // 5: regen.data.v1alpha2.Msg.SignData:input_type -> regen.data.v1alpha2.MsgSignData - 4, // 6: regen.data.v1alpha2.Msg.DefineResolver:input_type -> regen.data.v1alpha2.MsgDefineResolver - 6, // 7: regen.data.v1alpha2.Msg.RegisterResolver:input_type -> regen.data.v1alpha2.MsgRegisterResolver - 1, // 8: regen.data.v1alpha2.Msg.AnchorData:output_type -> regen.data.v1alpha2.MsgAnchorDataResponse - 3, // 9: regen.data.v1alpha2.Msg.SignData:output_type -> regen.data.v1alpha2.MsgSignDataResponse - 5, // 10: regen.data.v1alpha2.Msg.DefineResolver:output_type -> regen.data.v1alpha2.MsgDefineResolverResponse - 7, // 11: regen.data.v1alpha2.Msg.RegisterResolver:output_type -> regen.data.v1alpha2.MsgRegisterResolverResponse - 8, // [8:12] is the sub-list for method output_type - 4, // [4:8] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 6, // 0: regen.data.v1alpha2.MsgAnchorData.hash:type_name -> regen.data.v1alpha2.ContentHash + 7, // 1: regen.data.v1alpha2.MsgAnchorDataResponse.timestamp:type_name -> google.protobuf.Timestamp + 8, // 2: regen.data.v1alpha2.MsgSignData.hash:type_name -> regen.data.v1alpha2.ContentHash.Graph + 9, // 3: regen.data.v1alpha2.MsgStoreRawData.content_hash:type_name -> regen.data.v1alpha2.ContentHash.Raw + 0, // 4: regen.data.v1alpha2.Msg.AnchorData:input_type -> regen.data.v1alpha2.MsgAnchorData + 2, // 5: regen.data.v1alpha2.Msg.SignData:input_type -> regen.data.v1alpha2.MsgSignData + 4, // 6: regen.data.v1alpha2.Msg.StoreRawData:input_type -> regen.data.v1alpha2.MsgStoreRawData + 1, // 7: regen.data.v1alpha2.Msg.AnchorData:output_type -> regen.data.v1alpha2.MsgAnchorDataResponse + 3, // 8: regen.data.v1alpha2.Msg.SignData:output_type -> regen.data.v1alpha2.MsgSignDataResponse + 5, // 9: regen.data.v1alpha2.Msg.StoreRawData:output_type -> regen.data.v1alpha2.MsgStoreRawDataResponse + 7, // [7:10] is the sub-list for method output_type + 4, // [4:7] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name } func init() { file_regen_data_v1alpha2_tx_proto_init() } @@ -4330,7 +3219,7 @@ func file_regen_data_v1alpha2_tx_proto_init() { } } file_regen_data_v1alpha2_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgDefineResolver); i { + switch v := v.(*MsgStoreRawData); i { case 0: return &v.state case 1: @@ -4342,31 +3231,7 @@ func file_regen_data_v1alpha2_tx_proto_init() { } } file_regen_data_v1alpha2_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgDefineResolverResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_regen_data_v1alpha2_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRegisterResolver); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_regen_data_v1alpha2_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRegisterResolverResponse); i { + switch v := v.(*MsgStoreRawDataResponse); i { case 0: return &v.state case 1: @@ -4384,7 +3249,7 @@ func file_regen_data_v1alpha2_tx_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_regen_data_v1alpha2_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 8, + NumMessages: 6, NumExtensions: 0, NumServices: 1, }, diff --git a/api/regen/data/v1alpha2/tx_grpc.pb.go b/api/regen/data/v1alpha2/tx_grpc.pb.go index be24399d47..97b9165f3c 100644 --- a/api/regen/data/v1alpha2/tx_grpc.pb.go +++ b/api/regen/data/v1alpha2/tx_grpc.pb.go @@ -50,11 +50,15 @@ type MsgClient interface { // SignData can be called multiple times for the same content hash with different // signers and those signers will be appended to the list of signers. SignData(ctx context.Context, in *MsgSignData, opts ...grpc.CallOption) (*MsgSignDataResponse, error) - // DefineResolver defines a resolver URL and assigns it a new integer ID - // that can be used in calls to RegisterResolver. - DefineResolver(ctx context.Context, in *MsgDefineResolver, opts ...grpc.CallOption) (*MsgDefineResolverResponse, error) - // RegisterResolver registers data content hashes - RegisterResolver(ctx context.Context, in *MsgRegisterResolver, opts ...grpc.CallOption) (*MsgRegisterResolverResponse, error) + // StoreRawData stores a piece of raw data corresponding to an ContentHash.Raw on the blockchain. + // + // StoreRawData implicitly calls AnchorData if the data was not already anchored. + // + // The sender in StoreRawData is not attesting to the veracity of the underlying + // data. They can simply be a intermediary providing storage services. + // SignData should be used to create a digital signature attesting to the + // veracity of some piece of data. + StoreRawData(ctx context.Context, in *MsgStoreRawData, opts ...grpc.CallOption) (*MsgStoreRawDataResponse, error) } type msgClient struct { @@ -83,18 +87,9 @@ func (c *msgClient) SignData(ctx context.Context, in *MsgSignData, opts ...grpc. return out, nil } -func (c *msgClient) DefineResolver(ctx context.Context, in *MsgDefineResolver, opts ...grpc.CallOption) (*MsgDefineResolverResponse, error) { - out := new(MsgDefineResolverResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Msg/DefineResolver", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) RegisterResolver(ctx context.Context, in *MsgRegisterResolver, opts ...grpc.CallOption) (*MsgRegisterResolverResponse, error) { - out := new(MsgRegisterResolverResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Msg/RegisterResolver", in, out, opts...) +func (c *msgClient) StoreRawData(ctx context.Context, in *MsgStoreRawData, opts ...grpc.CallOption) (*MsgStoreRawDataResponse, error) { + out := new(MsgStoreRawDataResponse) + err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Msg/StoreRawData", in, out, opts...) if err != nil { return nil, err } @@ -133,11 +128,15 @@ type MsgServer interface { // SignData can be called multiple times for the same content hash with different // signers and those signers will be appended to the list of signers. SignData(context.Context, *MsgSignData) (*MsgSignDataResponse, error) - // DefineResolver defines a resolver URL and assigns it a new integer ID - // that can be used in calls to RegisterResolver. - DefineResolver(context.Context, *MsgDefineResolver) (*MsgDefineResolverResponse, error) - // RegisterResolver registers data content hashes - RegisterResolver(context.Context, *MsgRegisterResolver) (*MsgRegisterResolverResponse, error) + // StoreRawData stores a piece of raw data corresponding to an ContentHash.Raw on the blockchain. + // + // StoreRawData implicitly calls AnchorData if the data was not already anchored. + // + // The sender in StoreRawData is not attesting to the veracity of the underlying + // data. They can simply be a intermediary providing storage services. + // SignData should be used to create a digital signature attesting to the + // veracity of some piece of data. + StoreRawData(context.Context, *MsgStoreRawData) (*MsgStoreRawDataResponse, error) mustEmbedUnimplementedMsgServer() } @@ -151,11 +150,8 @@ func (UnimplementedMsgServer) AnchorData(context.Context, *MsgAnchorData) (*MsgA func (UnimplementedMsgServer) SignData(context.Context, *MsgSignData) (*MsgSignDataResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SignData not implemented") } -func (UnimplementedMsgServer) DefineResolver(context.Context, *MsgDefineResolver) (*MsgDefineResolverResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DefineResolver not implemented") -} -func (UnimplementedMsgServer) RegisterResolver(context.Context, *MsgRegisterResolver) (*MsgRegisterResolverResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterResolver not implemented") +func (UnimplementedMsgServer) StoreRawData(context.Context, *MsgStoreRawData) (*MsgStoreRawDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StoreRawData not implemented") } func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} @@ -206,38 +202,20 @@ func _Msg_SignData_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } -func _Msg_DefineResolver_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgDefineResolver) +func _Msg_StoreRawData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgStoreRawData) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).DefineResolver(ctx, in) + return srv.(MsgServer).StoreRawData(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1alpha2.Msg/DefineResolver", + FullMethod: "/regen.data.v1alpha2.Msg/StoreRawData", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).DefineResolver(ctx, req.(*MsgDefineResolver)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_RegisterResolver_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRegisterResolver) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).RegisterResolver(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/regen.data.v1alpha2.Msg/RegisterResolver", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RegisterResolver(ctx, req.(*MsgRegisterResolver)) + return srv.(MsgServer).StoreRawData(ctx, req.(*MsgStoreRawData)) } return interceptor(ctx, in, info, handler) } @@ -258,12 +236,8 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ Handler: _Msg_SignData_Handler, }, { - MethodName: "DefineResolver", - Handler: _Msg_DefineResolver_Handler, - }, - { - MethodName: "RegisterResolver", - Handler: _Msg_RegisterResolver_Handler, + MethodName: "StoreRawData", + Handler: _Msg_StoreRawData_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/api/regen/data/v1alpha2/types.pulsar.go b/api/regen/data/v1alpha2/types.pulsar.go index 1ae5e14093..289dbb867b 100644 --- a/api/regen/data/v1alpha2/types.pulsar.go +++ b/api/regen/data/v1alpha2/types.pulsar.go @@ -615,7 +615,7 @@ func (x *ContentHash_Raw) ProtoReflect() protoreflect.Message { } func (x *ContentHash_Raw) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_types_proto_msgTypes[2] + mi := &file_regen_data_v1alpha2_types_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1135,7 +1135,7 @@ func (x *ContentHash_Graph) ProtoReflect() protoreflect.Message { } func (x *ContentHash_Graph) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_types_proto_msgTypes[3] + mi := &file_regen_data_v1alpha2_types_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1675,6 +1675,456 @@ func (x *fastReflection_ContentHash_Graph) ProtoMethods() *protoiface.Methods { } } +var ( + md_Content protoreflect.MessageDescriptor + fd_Content_raw_data protoreflect.FieldDescriptor +) + +func init() { + file_regen_data_v1alpha2_types_proto_init() + md_Content = File_regen_data_v1alpha2_types_proto.Messages().ByName("Content") + fd_Content_raw_data = md_Content.Fields().ByName("raw_data") +} + +var _ protoreflect.Message = (*fastReflection_Content)(nil) + +type fastReflection_Content Content + +func (x *Content) ProtoReflect() protoreflect.Message { + return (*fastReflection_Content)(x) +} + +func (x *Content) slowProtoReflect() protoreflect.Message { + mi := &file_regen_data_v1alpha2_types_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_Content_messageType fastReflection_Content_messageType +var _ protoreflect.MessageType = fastReflection_Content_messageType{} + +type fastReflection_Content_messageType struct{} + +func (x fastReflection_Content_messageType) Zero() protoreflect.Message { + return (*fastReflection_Content)(nil) +} +func (x fastReflection_Content_messageType) New() protoreflect.Message { + return new(fastReflection_Content) +} +func (x fastReflection_Content_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Content +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Content) Descriptor() protoreflect.MessageDescriptor { + return md_Content +} + +// 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_Content) Type() protoreflect.MessageType { + return _fastReflection_Content_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Content) New() protoreflect.Message { + return new(fastReflection_Content) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Content) Interface() protoreflect.ProtoMessage { + return (*Content)(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_Content) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Sum != nil { + switch o := x.Sum.(type) { + case *Content_RawData: + v := o.RawData + value := protoreflect.ValueOfBytes(v) + if !f(fd_Content_raw_data, 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_Content) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "regen.data.v1alpha2.Content.raw_data": + if x.Sum == nil { + return false + } else if _, ok := x.Sum.(*Content_RawData); ok { + return true + } else { + return false + } + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.Content")) + } + panic(fmt.Errorf("message regen.data.v1alpha2.Content 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_Content) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "regen.data.v1alpha2.Content.raw_data": + x.Sum = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.Content")) + } + panic(fmt.Errorf("message regen.data.v1alpha2.Content 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_Content) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "regen.data.v1alpha2.Content.raw_data": + if x.Sum == nil { + return protoreflect.ValueOfBytes(nil) + } else if v, ok := x.Sum.(*Content_RawData); ok { + return protoreflect.ValueOfBytes(v.RawData) + } else { + return protoreflect.ValueOfBytes(nil) + } + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.Content")) + } + panic(fmt.Errorf("message regen.data.v1alpha2.Content 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_Content) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "regen.data.v1alpha2.Content.raw_data": + cv := value.Bytes() + x.Sum = &Content_RawData{RawData: cv} + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.Content")) + } + panic(fmt.Errorf("message regen.data.v1alpha2.Content 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_Content) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1alpha2.Content.raw_data": + panic(fmt.Errorf("field raw_data of message regen.data.v1alpha2.Content is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.Content")) + } + panic(fmt.Errorf("message regen.data.v1alpha2.Content 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_Content) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "regen.data.v1alpha2.Content.raw_data": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v1alpha2.Content")) + } + panic(fmt.Errorf("message regen.data.v1alpha2.Content 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_Content) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + case "regen.data.v1alpha2.Content.sum": + if x.Sum == nil { + return nil + } + switch x.Sum.(type) { + case *Content_RawData: + return x.Descriptor().Fields().ByName("raw_data") + } + default: + panic(fmt.Errorf("%s is not a oneof field in regen.data.v1alpha2.Content", 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_Content) 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_Content) 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_Content) 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_Content) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Content) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + switch x := x.Sum.(type) { + case *Content_RawData: + if x == nil { + break + } + l = len(x.RawData) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Content) + 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) + } + switch x := x.Sum.(type) { + case *Content_RawData: + i -= len(x.RawData) + copy(dAtA[i:], x.RawData) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RawData))) + 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().(*Content) + 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: Content: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Content: 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 RawData", wireType) + } + var byteLen 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++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + 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 + } + v := make([]byte, postIndex-iNdEx) + copy(v, dAtA[iNdEx:postIndex]) + x.Sum = &Content_RawData{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + var ( md_SignerEntry protoreflect.MessageDescriptor fd_SignerEntry_signer protoreflect.FieldDescriptor @@ -1697,7 +2147,7 @@ func (x *SignerEntry) ProtoReflect() protoreflect.Message { } func (x *SignerEntry) slowProtoReflect() protoreflect.Message { - mi := &file_regen_data_v1alpha2_types_proto_msgTypes[1] + mi := &file_regen_data_v1alpha2_types_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2521,6 +2971,64 @@ func (*ContentHash_Raw_) isContentHash_Sum() {} func (*ContentHash_Graph_) isContentHash_Sum() {} +// Content is a wrapper for content stored on-chain +type Content struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // sum selects the type of data + // + // Types that are assignable to Sum: + // *Content_RawData + Sum isContent_Sum `protobuf_oneof:"sum"` +} + +func (x *Content) Reset() { + *x = Content{} + if protoimpl.UnsafeEnabled { + mi := &file_regen_data_v1alpha2_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Content) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Content) ProtoMessage() {} + +// Deprecated: Use Content.ProtoReflect.Descriptor instead. +func (*Content) Descriptor() ([]byte, []int) { + return file_regen_data_v1alpha2_types_proto_rawDescGZIP(), []int{1} +} + +func (x *Content) GetSum() isContent_Sum { + if x != nil { + return x.Sum + } + return nil +} + +func (x *Content) GetRawData() []byte { + if x, ok := x.GetSum().(*Content_RawData); ok { + return x.RawData + } + return nil +} + +type isContent_Sum interface { + isContent_Sum() +} + +type Content_RawData struct { + // raw_data is the oneof field for raw data + RawData []byte `protobuf:"bytes,1,opt,name=raw_data,json=rawData,proto3,oneof"` +} + +func (*Content_RawData) isContent_Sum() {} + // SignerEntry is a signer entry wrapping a signer address and timestamp type SignerEntry struct { state protoimpl.MessageState @@ -2536,7 +3044,7 @@ type SignerEntry struct { func (x *SignerEntry) Reset() { *x = SignerEntry{} if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_types_proto_msgTypes[1] + mi := &file_regen_data_v1alpha2_types_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2550,7 +3058,7 @@ func (*SignerEntry) ProtoMessage() {} // Deprecated: Use SignerEntry.ProtoReflect.Descriptor instead. func (*SignerEntry) Descriptor() ([]byte, []int) { - return file_regen_data_v1alpha2_types_proto_rawDescGZIP(), []int{1} + return file_regen_data_v1alpha2_types_proto_rawDescGZIP(), []int{2} } func (x *SignerEntry) GetSigner() string { @@ -2584,7 +3092,7 @@ type ContentHash_Raw struct { func (x *ContentHash_Raw) Reset() { *x = ContentHash_Raw{} if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_types_proto_msgTypes[2] + mi := &file_regen_data_v1alpha2_types_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2641,7 +3149,7 @@ type ContentHash_Graph struct { func (x *ContentHash_Graph) Reset() { *x = ContentHash_Graph{} if protoimpl.UnsafeEnabled { - mi := &file_regen_data_v1alpha2_types_proto_msgTypes[3] + mi := &file_regen_data_v1alpha2_types_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2732,70 +3240,73 @@ var file_regen_data_v1alpha2_types_proto_rawDesc = []byte{ 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x54, 0x72, 0x65, 0x65, 0x52, 0x0a, 0x6d, 0x65, 0x72, - 0x6b, 0x6c, 0x65, 0x54, 0x72, 0x65, 0x65, 0x42, 0x05, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x22, 0x5f, - 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2a, - 0x89, 0x03, 0x0a, 0x09, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, - 0x16, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x45, 0x44, - 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x50, 0x4c, 0x41, - 0x49, 0x4e, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, - 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x53, 0x56, 0x10, 0x03, 0x12, 0x12, 0x0a, - 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x58, 0x4d, 0x4c, 0x10, - 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x50, 0x44, 0x46, 0x10, 0x05, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x54, 0x49, 0x46, 0x46, 0x10, 0x10, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, - 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4a, 0x50, 0x47, 0x10, 0x11, 0x12, 0x12, - 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4e, 0x47, - 0x10, 0x12, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x53, 0x56, 0x47, 0x10, 0x13, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, - 0x54, 0x59, 0x50, 0x45, 0x5f, 0x57, 0x45, 0x42, 0x50, 0x10, 0x14, 0x12, 0x13, 0x0a, 0x0f, 0x4d, - 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x56, 0x49, 0x46, 0x10, 0x15, - 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, - 0x49, 0x46, 0x10, 0x16, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x41, 0x50, 0x4e, 0x47, 0x10, 0x17, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, - 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x50, 0x45, 0x47, 0x10, 0x20, 0x12, 0x12, - 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x50, 0x34, - 0x10, 0x21, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x57, 0x45, 0x42, 0x4d, 0x10, 0x22, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x47, 0x47, 0x10, 0x23, 0x2a, 0x82, 0x01, 0x0a, 0x1e, - 0x47, 0x72, 0x61, 0x70, 0x68, 0x43, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x69, 0x7a, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x30, - 0x0a, 0x2c, 0x47, 0x52, 0x41, 0x50, 0x48, 0x5f, 0x43, 0x41, 0x4e, 0x4f, 0x4e, 0x49, 0x43, 0x41, - 0x4c, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x4c, 0x47, 0x4f, 0x52, 0x49, 0x54, - 0x48, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x2e, 0x0a, 0x2a, 0x47, 0x52, 0x41, 0x50, 0x48, 0x5f, 0x43, 0x41, 0x4e, 0x4f, 0x4e, 0x49, - 0x43, 0x41, 0x4c, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x4c, 0x47, 0x4f, 0x52, - 0x49, 0x54, 0x48, 0x4d, 0x5f, 0x55, 0x52, 0x44, 0x4e, 0x41, 0x32, 0x30, 0x31, 0x35, 0x10, 0x01, - 0x2a, 0x39, 0x0a, 0x0f, 0x47, 0x72, 0x61, 0x70, 0x68, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x54, - 0x72, 0x65, 0x65, 0x12, 0x26, 0x0a, 0x22, 0x47, 0x52, 0x41, 0x50, 0x48, 0x5f, 0x4d, 0x45, 0x52, - 0x4b, 0x4c, 0x45, 0x5f, 0x54, 0x52, 0x45, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x2a, 0x55, 0x0a, 0x0f, 0x44, - 0x69, 0x67, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x20, - 0x0a, 0x1c, 0x44, 0x49, 0x47, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x4c, 0x47, 0x4f, 0x52, 0x49, 0x54, - 0x48, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x49, 0x47, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x4c, 0x47, 0x4f, 0x52, - 0x49, 0x54, 0x48, 0x4d, 0x5f, 0x42, 0x4c, 0x41, 0x4b, 0x45, 0x32, 0x42, 0x5f, 0x32, 0x35, 0x36, - 0x10, 0x01, 0x42, 0xdf, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, - 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x0a, - 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, - 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, - 0x74, 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x3b, 0x64, 0x61, 0x74, 0x61, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, 0xaa, 0x02, - 0x13, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x32, 0xca, 0x02, 0x13, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, - 0x61, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xe2, 0x02, 0x1f, 0x52, 0x65, 0x67, - 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x52, - 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6b, 0x6c, 0x65, 0x54, 0x72, 0x65, 0x65, 0x42, 0x05, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x22, 0x2d, + 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x08, 0x72, 0x61, 0x77, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x72, + 0x61, 0x77, 0x44, 0x61, 0x74, 0x61, 0x42, 0x05, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x22, 0x5f, 0x0a, + 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x69, + 0x67, 0x6e, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2a, 0x89, + 0x03, 0x0a, 0x09, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, + 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x45, 0x44, 0x49, + 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x50, 0x4c, 0x41, 0x49, + 0x4e, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, + 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x53, 0x56, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, + 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x58, 0x4d, 0x4c, 0x10, 0x04, + 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, + 0x44, 0x46, 0x10, 0x05, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x54, 0x49, 0x46, 0x46, 0x10, 0x10, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, + 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4a, 0x50, 0x47, 0x10, 0x11, 0x12, 0x12, 0x0a, + 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4e, 0x47, 0x10, + 0x12, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x53, 0x56, 0x47, 0x10, 0x13, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x57, 0x45, 0x42, 0x50, 0x10, 0x14, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, + 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x56, 0x49, 0x46, 0x10, 0x15, 0x12, + 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x49, + 0x46, 0x10, 0x16, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x41, 0x50, 0x4e, 0x47, 0x10, 0x17, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, + 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x50, 0x45, 0x47, 0x10, 0x20, 0x12, 0x12, 0x0a, + 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x50, 0x34, 0x10, + 0x21, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x57, 0x45, 0x42, 0x4d, 0x10, 0x22, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x47, 0x47, 0x10, 0x23, 0x2a, 0x82, 0x01, 0x0a, 0x1e, 0x47, + 0x72, 0x61, 0x70, 0x68, 0x43, 0x61, 0x6e, 0x6f, 0x6e, 0x69, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x30, 0x0a, + 0x2c, 0x47, 0x52, 0x41, 0x50, 0x48, 0x5f, 0x43, 0x41, 0x4e, 0x4f, 0x4e, 0x49, 0x43, 0x41, 0x4c, + 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x4c, 0x47, 0x4f, 0x52, 0x49, 0x54, 0x48, + 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x2e, 0x0a, 0x2a, 0x47, 0x52, 0x41, 0x50, 0x48, 0x5f, 0x43, 0x41, 0x4e, 0x4f, 0x4e, 0x49, 0x43, + 0x41, 0x4c, 0x49, 0x5a, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x4c, 0x47, 0x4f, 0x52, 0x49, + 0x54, 0x48, 0x4d, 0x5f, 0x55, 0x52, 0x44, 0x4e, 0x41, 0x32, 0x30, 0x31, 0x35, 0x10, 0x01, 0x2a, + 0x39, 0x0a, 0x0f, 0x47, 0x72, 0x61, 0x70, 0x68, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x54, 0x72, + 0x65, 0x65, 0x12, 0x26, 0x0a, 0x22, 0x47, 0x52, 0x41, 0x50, 0x48, 0x5f, 0x4d, 0x45, 0x52, 0x4b, + 0x4c, 0x45, 0x5f, 0x54, 0x52, 0x45, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x5f, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x2a, 0x55, 0x0a, 0x0f, 0x44, 0x69, + 0x67, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x20, 0x0a, + 0x1c, 0x44, 0x49, 0x47, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x4c, 0x47, 0x4f, 0x52, 0x49, 0x54, 0x48, + 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x20, 0x0a, 0x1c, 0x44, 0x49, 0x47, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x4c, 0x47, 0x4f, 0x52, 0x49, + 0x54, 0x48, 0x4d, 0x5f, 0x42, 0x4c, 0x41, 0x4b, 0x45, 0x32, 0x42, 0x5f, 0x32, 0x35, 0x36, 0x10, + 0x01, 0x42, 0xdf, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x42, 0x0a, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, + 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, + 0x61, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, 0xaa, 0x02, 0x13, + 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x32, 0xca, 0x02, 0x13, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, + 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0xe2, 0x02, 0x1f, 0x52, 0x65, 0x67, 0x65, + 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x15, 0x52, 0x65, + 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2811,22 +3322,23 @@ func file_regen_data_v1alpha2_types_proto_rawDescGZIP() []byte { } var file_regen_data_v1alpha2_types_proto_enumTypes = make([]protoimpl.EnumInfo, 4) -var file_regen_data_v1alpha2_types_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_regen_data_v1alpha2_types_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_regen_data_v1alpha2_types_proto_goTypes = []interface{}{ (MediaType)(0), // 0: regen.data.v1alpha2.MediaType (GraphCanonicalizationAlgorithm)(0), // 1: regen.data.v1alpha2.GraphCanonicalizationAlgorithm (GraphMerkleTree)(0), // 2: regen.data.v1alpha2.GraphMerkleTree (DigestAlgorithm)(0), // 3: regen.data.v1alpha2.DigestAlgorithm (*ContentHash)(nil), // 4: regen.data.v1alpha2.ContentHash - (*SignerEntry)(nil), // 5: regen.data.v1alpha2.SignerEntry - (*ContentHash_Raw)(nil), // 6: regen.data.v1alpha2.ContentHash.Raw - (*ContentHash_Graph)(nil), // 7: regen.data.v1alpha2.ContentHash.Graph - (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp + (*Content)(nil), // 5: regen.data.v1alpha2.Content + (*SignerEntry)(nil), // 6: regen.data.v1alpha2.SignerEntry + (*ContentHash_Raw)(nil), // 7: regen.data.v1alpha2.ContentHash.Raw + (*ContentHash_Graph)(nil), // 8: regen.data.v1alpha2.ContentHash.Graph + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp } var file_regen_data_v1alpha2_types_proto_depIdxs = []int32{ - 6, // 0: regen.data.v1alpha2.ContentHash.raw:type_name -> regen.data.v1alpha2.ContentHash.Raw - 7, // 1: regen.data.v1alpha2.ContentHash.graph:type_name -> regen.data.v1alpha2.ContentHash.Graph - 8, // 2: regen.data.v1alpha2.SignerEntry.timestamp:type_name -> google.protobuf.Timestamp + 7, // 0: regen.data.v1alpha2.ContentHash.raw:type_name -> regen.data.v1alpha2.ContentHash.Raw + 8, // 1: regen.data.v1alpha2.ContentHash.graph:type_name -> regen.data.v1alpha2.ContentHash.Graph + 9, // 2: regen.data.v1alpha2.SignerEntry.timestamp:type_name -> google.protobuf.Timestamp 3, // 3: regen.data.v1alpha2.ContentHash.Raw.digest_algorithm:type_name -> regen.data.v1alpha2.DigestAlgorithm 0, // 4: regen.data.v1alpha2.ContentHash.Raw.media_type:type_name -> regen.data.v1alpha2.MediaType 3, // 5: regen.data.v1alpha2.ContentHash.Graph.digest_algorithm:type_name -> regen.data.v1alpha2.DigestAlgorithm @@ -2858,7 +3370,7 @@ func file_regen_data_v1alpha2_types_proto_init() { } } file_regen_data_v1alpha2_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignerEntry); i { + switch v := v.(*Content); i { case 0: return &v.state case 1: @@ -2870,7 +3382,7 @@ func file_regen_data_v1alpha2_types_proto_init() { } } file_regen_data_v1alpha2_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContentHash_Raw); i { + switch v := v.(*SignerEntry); i { case 0: return &v.state case 1: @@ -2882,6 +3394,18 @@ func file_regen_data_v1alpha2_types_proto_init() { } } file_regen_data_v1alpha2_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContentHash_Raw); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_regen_data_v1alpha2_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ContentHash_Graph); i { case 0: return &v.state @@ -2898,13 +3422,16 @@ func file_regen_data_v1alpha2_types_proto_init() { (*ContentHash_Raw_)(nil), (*ContentHash_Graph_)(nil), } + file_regen_data_v1alpha2_types_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*Content_RawData)(nil), + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_regen_data_v1alpha2_types_proto_rawDesc, NumEnums: 4, - NumMessages: 4, + NumMessages: 5, NumExtensions: 0, NumServices: 0, }, diff --git a/proto/regen/data/v1/events.proto b/proto/regen/data/v1/events.proto new file mode 100644 index 0000000000..22845816b2 --- /dev/null +++ b/proto/regen/data/v1/events.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +package regen.data.v1; + +option go_package = "github.com/regen-network/regen-ledger/x/data"; + +// EventAnchorData is an event emitted when data is anchored on-chain. +message EventAnchorData { + // iri is the data IRI + string iri = 1; +} + +// EventSignData is an event emitted when data is signed on-chain. +message EventSignData { + // iri is the data IRI + string iri = 1; + + // signers are the addresses of the accounts which have signed the data. + repeated string signers = 2; +} + +// EventStoreRawData is an event emitted when data is stored on-chain. +message EventStoreRawData { + // iri is the data IRI + string iri = 1; +} diff --git a/proto/regen/data/v1/genesis.proto b/proto/regen/data/v1/genesis.proto new file mode 100644 index 0000000000..d9bd77f4cf --- /dev/null +++ b/proto/regen/data/v1/genesis.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +package regen.data.v1; + +import "regen/data/v1/types.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "github.com/regen-network/regen-ledger/x/data"; + +// GenesisState is the genesis state +message GenesisState { + // entries are the content entries + repeated GenesisContentEntry entries = 1; +} + +// GenesisContentEntry is a genesis content entry +message GenesisContentEntry { + // hash is the ContentHash + ContentHash hash = 1; + + // timestamp is the anchor Timestamp + google.protobuf.Timestamp timestamp = 2; + + // signers are the signers, if any + repeated SignerEntry signers = 3; +} diff --git a/proto/regen/data/v1/query.proto b/proto/regen/data/v1/query.proto new file mode 100644 index 0000000000..f81f7395cc --- /dev/null +++ b/proto/regen/data/v1/query.proto @@ -0,0 +1,132 @@ +syntax = "proto3"; + +package regen.data.v1; + +import "google/api/annotations.proto"; +import "google/protobuf/timestamp.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "regen/data/v1/types.proto"; + +option go_package = "github.com/regen-network/regen-ledger/x/data"; + +// Query is the regen.data.v1 Query service +service Query { + // ByHash queries data based on its ContentHash. + rpc ByIRI (QueryByIRIRequest) returns (QueryByIRIResponse) { + option (google.api.http).get = "/regen/data/v1/by-iri/{iri}"; + } + + // BySigner queries data based on signers. + rpc BySigner (QueryBySignerRequest) returns (QueryBySignerResponse) { + option (google.api.http).get = "/regen/data/v1/by-signer/{signer}"; + } + + // Signers queries signers based on IRI. + rpc Signers(QuerySignersRequest) returns (QuerySignersResponse) { + option (google.api.http).get = "/regen/data/v1/signers/{iri}"; + } + + // Resolvers returns the registered resolver URLs for the data IRI. + rpc Resolvers(QueryResolversRequest) returns (QueryResolversResponse) { + option (google.api.http).get = "/regen/data/v1/resolvers/{iri}"; + } + + // ResolverInfo returns information about a resolver. + rpc ResolverInfo(QueryResolverInfoRequest) returns (QueryResolverInfoResponse) { + option (google.api.http).get = "/regen/data/v1/resolver"; + } +} + +// QueryByContentHashRequest is the Query/ByContentHash request type. +message QueryByIRIRequest { + // hash is the hash-based identifier for the anchored content. + string iri = 1; +} + +// QueryByContentHashResponse is the Query/ByContentHash response type. +message QueryByIRIResponse { + // entry is the ContentEntry + ContentEntry entry = 1; +} + +// QueryBySignerRequest is the Query/BySigner request type. +message QueryBySignerRequest { + // signer is the address of the signer to query by. + string signer = 1; + + // pagination is the PageRequest to use for pagination. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryBySignerResponse is the Query/BySigner response type. +message QueryBySignerResponse { + // entries is the ContentEntry's signed by the queried signer + repeated ContentEntry entries = 1; + + // pagination is the pagination PageResponse. + cosmos.base.query.v1beta1.PageResponse pagination = 3; +} + +// ContentEntry describes data referenced and possibly stored on chain +message ContentEntry { + // hash is the content hash + ContentHash hash = 1; + + // iri is the content IRI + string iri = 2; + + // timestamp is the anchor Timestamp + google.protobuf.Timestamp timestamp = 3; +} + +// QuerySignersRequest is the Query/Signers request type. +message QuerySignersRequest { + // iri is the content IRI + string iri = 1; + + // pagination is the PageRequest to use for pagination. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QuerySignersResponse is the Query/Signers response type. +message QuerySignersResponse { + // signers are the addresses of the signers. + repeated string signers = 1; + + // pagination is the pagination PageResponse. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryResolversRequest is the Query/Resolvers request type. +message QueryResolversRequest { + // iri is the content IRI + string iri = 1; + + // pagination is the PageRequest to use for pagination. + cosmos.base.query.v1beta1.PageRequest pagination = 2; +} + +// QueryResolversResponse is the Query/Resolvers response type. +message QueryResolversResponse { + // resolver_urls are the resolver URLs that have been registered for this + // data object. + repeated string resolver_urls = 1; + + // pagination is the PageResponse to use for pagination. + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + +// QueryResolverInfoRequest is the Query/ResolverInfo request type. +message QueryResolverInfoRequest { + // url is the URL of the resolver to query. + string url = 1; +} + +// QueryResolverInfoResponse is the Query/ResolverInfo response type. +message QueryResolverInfoResponse { + // id is the id of the resolver which can be used in Msg/RegisterResolver. + uint64 id = 1; + + // manager is the bech32 account address of the resolver manager. + string manager = 2; +} diff --git a/proto/regen/data/v1alpha2/state.proto b/proto/regen/data/v1/state.proto similarity index 98% rename from proto/regen/data/v1alpha2/state.proto rename to proto/regen/data/v1/state.proto index a560f5c11a..0d793607ca 100644 --- a/proto/regen/data/v1alpha2/state.proto +++ b/proto/regen/data/v1/state.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package regen.data.v1alpha2; +package regen.data.v1; option go_package = "github.com/regen-network/regen-ledger/x/data"; diff --git a/proto/regen/data/v1/tx.proto b/proto/regen/data/v1/tx.proto new file mode 100644 index 0000000000..8491e97a8d --- /dev/null +++ b/proto/regen/data/v1/tx.proto @@ -0,0 +1,125 @@ +syntax = "proto3"; + +package regen.data.v1; + +import "gogoproto/gogo.proto"; +import "google/protobuf/timestamp.proto"; +import "regen/data/v1/types.proto"; + +option go_package = "github.com/regen-network/regen-ledger/x/data"; + +// Msg is the regen.data.v1alpha1 Msg service +service Msg { + // AnchorData "anchors" a piece of data to the blockchain based on its secure + // hash, effectively providing a tamper resistant timestamp. + // + // The sender in AnchorData is not attesting to the veracity of the underlying + // data. They can simply be a intermediary providing timestamp services. + // SignData should be used to create a digital signature attesting to the + // veracity of some piece of data. + rpc AnchorData(MsgAnchorData) returns (MsgAnchorDataResponse); + + // SignData allows for signing of an arbitrary piece of data on the + // blockchain. By "signing" data the signers are making a statement about the + // veracity of the data itself. It is like signing a legal document, meaning + // that I agree to all conditions and to the best of my knowledge everything + // is true. When anchoring data, the sender is not attesting to the veracity + // of the data, they are simply communicating that it exists. + // + // On-chain signatures have the following benefits: + // - on-chain identities can be managed using different cryptographic keys + // that change over time through key rotation practices + // - an on-chain identity may represent an organization and through delegation + // individual members may sign on behalf of the group + // - the blockchain transaction envelope provides built-in replay protection + // and timestamping + // + // SignData implicitly calls AnchorData if the data was not already anchored. + // + // SignData can be called multiple times for the same content hash with different + // signers and those signers will be appended to the list of signers. + rpc SignData(MsgSignData) returns (MsgSignDataResponse); + + // DefineResolver defines a resolver URL and assigns it a new integer ID + // that can be used in calls to RegisterResolver. + rpc DefineResolver(MsgDefineResolver) returns (MsgDefineResolverResponse); + + // RegisterResolver registers data content hashes + rpc RegisterResolver(MsgRegisterResolver) returns (MsgRegisterResolverResponse); +} + +// MsgAnchorData is the Msg/AnchorData request type. +message MsgAnchorData { + // sender is the address of the sender of the transaction. + // The sender in StoreData is not attesting to the veracity of the underlying + // data. They can simply be a intermediary providing services. + string sender = 1; + + // hash is the hash-based identifier for the anchored content. + ContentHash hash = 2; +} + +// MsgAnchorData is the Msg/AnchorData response type. +message MsgAnchorDataResponse { + // timestamp is the timestamp of the block at which the data was anchored. + google.protobuf.Timestamp timestamp = 1; + + // iri is the IRI of the data that was anchored. + string iri = 2; +} + +// MsgSignData is the Msg/SignData request type. +message MsgSignData { + option (gogoproto.goproto_getters) = false; + + // signers are the addresses of the accounts signing the data. + // By making a SignData request, the signers are attesting to the veracity + // of the data referenced by the cid. The precise meaning of this may vary + // depending on the underlying data. + repeated string signers = 1; + + // hash is the hash-based identifier for the anchored content. Only RDF graph + // data can be signed as its data model is intended to specifically convey semantic meaning. + ContentHash.Graph hash = 2; +} + +// MsgSignDataResponse is the Msg/SignData response type. +message MsgSignDataResponse {} + +// MsgDefineResolver is the Msg/DefineResolver request type. +message MsgDefineResolver { + // manager is the address of the resolver manager. The manager is able + // to make future calls using the ID returned by this operation with + // Msg/RegisterResolver. To authorize other accounts to register resolvers, + // the manager should make use of cosmos.authz. + string manager = 1; + + // resolver_url is a resolver URL which should refer to an HTTP service + // which will respond to a GET request with the IRI of a ContentHash + // and return the content if it exists or a 404. For graph data, resolvers + // should use the HTTP Accept header to negotiate the RDF serialization + // format. + string resolver_url = 2; +} + +// MsgDefineResolverResponse is the Msg/DefineResolver response type. +message MsgDefineResolverResponse { + // resolver_id is the integer ID of the resolver to be used in MsgRegisterResolver. + uint64 resolver_id = 1; +} + +// MsgRegisterResolver is the Msg/RegisterResolver request type. +message MsgRegisterResolver { + // manager is the address of the resolver manager who registered this + // resolver with Msg/DefinedResolver. + string manager = 1; + + // resolver_id is the ID of a resolver defined with Msg/DefineResolver. + uint64 resolver_id = 2; + + // data is a list of content hashes which the resolver claims to serve. + repeated ContentHash data = 3; +} + +// MsgRegisterResolverResponse is the Msg/RegisterResolver response type. +message MsgRegisterResolverResponse {} diff --git a/proto/regen/data/v1/types.proto b/proto/regen/data/v1/types.proto new file mode 100644 index 0000000000..c5452eda09 --- /dev/null +++ b/proto/regen/data/v1/types.proto @@ -0,0 +1,155 @@ +syntax = "proto3"; + +package regen.data.v1; + +import "google/protobuf/timestamp.proto"; + +option go_package = "github.com/regen-network/regen-ledger/x/data"; + +// ContentHash specifies a hash based content identifier for a piece of data +message ContentHash { + // sum selects the type of content hash + oneof sum { + // Raw specifies "raw" data which does not specify a deterministic, canonical encoding. + // Users of these hashes MUST maintain a copy of the hashed data which is preserved bit by bit. + // All other content encodings specify a deterministic, canonical encoding allowing implementations to + // choose from a variety of alternative formats for transport and encoding while maintaining the guarantee + // that the canonical hash will not change. The media type for "raw" data is defined by the MediaType enum. + Raw raw = 1; + + // Graph specifies graph data that conforms to the RDF data model. + // The canonicalization algorithm used for an RDF graph is specified by GraphCanonicalizationAlgorithm. + Graph graph = 2; + } + + // Raw is the content hash type used for raw data + message Raw { + // hash represents the hash of the data based on the specified digest_algorithm + bytes hash = 1; + + // digest_algorithm represents the hash digest algorithm. + DigestAlgorithm digest_algorithm = 2; + + // media_type represents the MediaType for raw data. + MediaType media_type = 3; + + } + + // Graph is the content hash type used for RDF graph data + message Graph { + // hash represents the hash of the data based on the specified digest_algorithm + bytes hash = 1; + + // digest_algorithm represents the hash digest algorithm. + DigestAlgorithm digest_algorithm = 2; + + // graph_canonicalization_algorithm represents the RDF graph canonicalization algorithm. + GraphCanonicalizationAlgorithm canonicalization_algorithm = 3; + + // merkle_tree is the merkle tree type used for the graph hash, if any + GraphMerkleTree merkle_tree = 4; + } +} + +// MediaType defines MIME media types to be used with a ContentHash.Raw hash. +enum MediaType { + // MEDIA_TYPE_UNSPECIFIED can be used for raw binary data + MEDIA_TYPE_UNSPECIFIED = 0; + + // basic formats + + // plain text + MEDIA_TYPE_TEXT_PLAIN = 1; + + // JSON + MEDIA_TYPE_JSON = 2; + + // CSV + MEDIA_TYPE_CSV = 3; + + // XML + MEDIA_TYPE_XML = 4; + + // PDF + MEDIA_TYPE_PDF = 5; + + // images + + // TIIF + MEDIA_TYPE_TIFF = 16; + + // JPG + MEDIA_TYPE_JPG = 17; + + // PNG + MEDIA_TYPE_PNG = 18; + + // SVG + MEDIA_TYPE_SVG = 19; + + // WEBP + MEDIA_TYPE_WEBP = 20; + + // AVIF + MEDIA_TYPE_AVIF = 21; + + // GIF + MEDIA_TYPE_GIF = 22; + + // APNG + MEDIA_TYPE_APNG = 23; + + // audio-visual media containers + + // MPEG + MEDIA_TYPE_MPEG = 32; + + // MP4 + MEDIA_TYPE_MP4 = 33; + + // WEBM + MEDIA_TYPE_WEBM = 34; + + // OGG + MEDIA_TYPE_OGG = 35; + + // geospatial raster formats + // TODO + + // geospatial vector formats + // TODO +} + +// GraphCanonicalizationAlgorithm is the graph canonicalization algorithm +enum GraphCanonicalizationAlgorithm { + // unspecified and invalid + GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED = 0; + + // URDNA2015 graph hashing + GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 = 1; +} + +// GraphMerkleTree is the graph merkle tree type used for hashing, if any +enum GraphMerkleTree { + // no merkle tree + GRAPH_MERKLE_TREE_NONE_UNSPECIFIED = 0; +} + +// DigestAlgorithm is the hash digest algorithm +enum DigestAlgorithm { + // unspecified and invalid + DIGEST_ALGORITHM_UNSPECIFIED = 0; + + // BLAKE2b-256 + DIGEST_ALGORITHM_BLAKE2B_256 = 1; +} + +// SignerEntry is a signer entry wrapping a signer address and timestamp +message SignerEntry { + // signer is the address of the signer + string signer = 1; + + // timestamp is the time at which the data was signed + google.protobuf.Timestamp timestamp = 2; +} + diff --git a/proto/regen/data/v1alpha2/events.proto b/proto/regen/data/v1alpha2/events.proto index faaacc6ad3..9794f14e28 100644 --- a/proto/regen/data/v1alpha2/events.proto +++ b/proto/regen/data/v1alpha2/events.proto @@ -2,8 +2,6 @@ syntax = "proto3"; package regen.data.v1alpha2; -option go_package = "github.com/regen-network/regen-ledger/x/data"; - // EventAnchorData is an event emitted when data is anchored on-chain. message EventAnchorData { // iri is the data IRI @@ -23,4 +21,4 @@ message EventSignData { message EventStoreRawData { // iri is the data IRI string iri = 1; -} +} \ No newline at end of file diff --git a/proto/regen/data/v1alpha2/genesis.proto b/proto/regen/data/v1alpha2/genesis.proto index 53429756ad..9c3cce21f8 100644 --- a/proto/regen/data/v1alpha2/genesis.proto +++ b/proto/regen/data/v1alpha2/genesis.proto @@ -5,8 +5,6 @@ package regen.data.v1alpha2; import "regen/data/v1alpha2/types.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/regen-network/regen-ledger/x/data"; - // GenesisState is the genesis state message GenesisState { // entries are the content entries @@ -23,4 +21,8 @@ message GenesisContentEntry { // signers are the signers, if any repeated SignerEntry signers = 3; -} + + // content is the actual content if stored on-chain + Content content = 4; + +} \ No newline at end of file diff --git a/proto/regen/data/v1alpha2/query.proto b/proto/regen/data/v1alpha2/query.proto index 964db3c5a5..7ba75ee75f 100644 --- a/proto/regen/data/v1alpha2/query.proto +++ b/proto/regen/data/v1alpha2/query.proto @@ -7,44 +7,27 @@ import "google/protobuf/timestamp.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "regen/data/v1alpha2/types.proto"; -option go_package = "github.com/regen-network/regen-ledger/x/data"; - // Query is the regen.data.v1alpha2 Query service service Query { // ByHash queries data based on its ContentHash. - rpc ByIRI (QueryByIRIRequest) returns (QueryByIRIResponse) { - option (google.api.http).get = "/regen/data/v1alpha2/by-iri/{iri}"; + rpc ByHash (QueryByHashRequest) returns (QueryByHashResponse) { + option (google.api.http).get = "/regen/data/v1alpha2/by_hash"; } // BySigner queries data based on signers. rpc BySigner (QueryBySignerRequest) returns (QueryBySignerResponse) { - option (google.api.http).get = "/regen/data/v1alpha2/by-signer/{signer}"; - } - - // Signers queries signers based on IRI. - rpc Signers(QuerySignersRequest) returns (QuerySignersResponse) { - option (google.api.http).get = "/regen/data/v1alpha2/signers/{iri}"; - } - - // Resolvers returns the registered resolver URLs for the data IRI. - rpc Resolvers(QueryResolversRequest) returns (QueryResolversResponse) { - option (google.api.http).get = "/regen/data/v1alpha2/resolvers/{iri}"; - } - - // ResolverInfo returns information about a resolver. - rpc ResolverInfo(QueryResolverInfoRequest) returns (QueryResolverInfoResponse) { - option (google.api.http).get = "/regen/data/v1alpha2/resolver/{url}"; + option (google.api.http).get = "/regen/data/v1alpha2/signers/{signer}"; } } // QueryByContentHashRequest is the Query/ByContentHash request type. -message QueryByIRIRequest { +message QueryByHashRequest { // hash is the hash-based identifier for the anchored content. - string iri = 1; + ContentHash hash = 1; } // QueryByContentHashResponse is the Query/ByContentHash response type. -message QueryByIRIResponse { +message QueryByHashResponse { // entry is the ContentEntry ContentEntry entry = 1; } @@ -77,58 +60,10 @@ message ContentEntry { // timestamp is the anchor Timestamp google.protobuf.Timestamp timestamp = 3; -} - -// QuerySignersRequest is the Query/Signers request type. -message QuerySignersRequest { - - // iri is the content IRI - string iri = 1; - - // pagination is the PageRequest to use for pagination. - cosmos.base.query.v1beta1.PageRequest pagination = 2; -} - -// QuerySignersResponse is the Query/Signers response type. -message QuerySignersResponse { - // signers are the addresses of the signers. - repeated string signers = 1; + // signers are the signers, if any + repeated SignerEntry signers = 4; - // pagination is the pagination PageResponse. - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - -// QueryResolversRequest is the Query/Resolvers request type. -message QueryResolversRequest { - // iri is the content IRI - string iri = 1; - - // pagination is the PageRequest to use for pagination. - cosmos.base.query.v1beta1.PageRequest pagination = 2; -} - -// QueryResolversResponse is the Query/Resolvers response type. -message QueryResolversResponse { - // resolver_urls are the resolver URLs that have been registered for this - // data object. - repeated string resolver_urls = 1; - - // pagination is the PageResponse to use for pagination. - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - -// QueryResolverInfoRequest is the Query/ResolverInfo request type. -message QueryResolverInfoRequest { - // url is the URL of the resolver to query. - string url = 1; -} - -// QueryResolverInfoResponse is the Query/ResolverInfo response type. -message QueryResolverInfoResponse { - // id is the id of the resolver which can be used in Msg/RegisterResolver. - uint64 id = 1; - - // manager is the bech32 account address of the resolver manager. - string manager = 2; -} + // content is the actual content if stored on-chain + Content content = 5; +} \ No newline at end of file diff --git a/proto/regen/data/v1alpha2/tx.proto b/proto/regen/data/v1alpha2/tx.proto index ebc92200de..02f8ef04db 100644 --- a/proto/regen/data/v1alpha2/tx.proto +++ b/proto/regen/data/v1alpha2/tx.proto @@ -6,8 +6,6 @@ import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; import "regen/data/v1alpha2/types.proto"; -option go_package = "github.com/regen-network/regen-ledger/x/data"; - // Msg is the regen.data.v1alpha1 Msg service service Msg { // AnchorData "anchors" a piece of data to the blockchain based on its secure @@ -40,12 +38,15 @@ service Msg { // signers and those signers will be appended to the list of signers. rpc SignData(MsgSignData) returns (MsgSignDataResponse); - // DefineResolver defines a resolver URL and assigns it a new integer ID - // that can be used in calls to RegisterResolver. - rpc DefineResolver(MsgDefineResolver) returns (MsgDefineResolverResponse); - - // RegisterResolver registers data content hashes - rpc RegisterResolver(MsgRegisterResolver) returns (MsgRegisterResolverResponse); + // StoreRawData stores a piece of raw data corresponding to an ContentHash.Raw on the blockchain. + // + // StoreRawData implicitly calls AnchorData if the data was not already anchored. + // + // The sender in StoreRawData is not attesting to the veracity of the underlying + // data. They can simply be a intermediary providing storage services. + // SignData should be used to create a digital signature attesting to the + // veracity of some piece of data. + rpc StoreRawData(MsgStoreRawData) returns (MsgStoreRawDataResponse); } // MsgAnchorData is the Msg/AnchorData request type. @@ -63,9 +64,6 @@ message MsgAnchorData { message MsgAnchorDataResponse { // timestamp is the timestamp of the block at which the data was anchored. google.protobuf.Timestamp timestamp = 1; - - // iri is the IRI of the data that was anchored. - string iri = 2; } // MsgSignData is the Msg/SignData request type. @@ -86,43 +84,19 @@ message MsgSignData { // MsgSignDataResponse is the Msg/SignData response type. message MsgSignDataResponse {} -// MsgDefineResolver is the Msg/DefineResolver request type. -message MsgDefineResolver { - - // manager is the address of the resolver manager. The manager is able - // to make future calls using the ID returned by this operation with - // Msg/RegisterResolver. To authorize other accounts to register resolvers, - // the manager should make use of cosmos.authz. - string manager = 1; - - // resolver_url is a resolver URL which should refer to an HTTP service - // which will respond to a GET request with the IRI of a ContentHash - // and return the content if it exists or a 404. For graph data, resolvers - // should use the HTTP Accept header to negotiate the RDF serialization - // format. - string resolver_url = 2; -} - -// MsgDefineResolverResponse is the Msg/DefineResolver response type. -message MsgDefineResolverResponse { - - // resolver_id is the integer ID of the resolver to be used in MsgRegisterResolver. - uint64 resolver_id = 1; -} - -// MsgRegisterResolver is the Msg/RegisterResolver request type. -message MsgRegisterResolver { - - // manager is the address of the resolver manager who registered this - // resolver with Msg/DefinedResolver. - string manager = 1; +// MsgStoreRawData is the Msg/StoreRawData request type. +message MsgStoreRawData { + // sender is the address of the sender of the transaction. + // The sender in StoreData is not attesting to the veracity of the underlying + // data. They can simply be a intermediary providing services. + string sender = 1; - // resolver_id is the ID of a resolver defined with Msg/DefineResolver. - uint64 resolver_id = 2; + // content_hash is the hash-based identifier for the anchored content. + ContentHash.Raw content_hash = 2; - // data is a list of content hashes which the resolver claims to serve. - repeated ContentHash data = 3; + // content is the content of the raw data corresponding to the provided content hash. + bytes content = 3; } -// MsgRegisterResolverResponse is the Msg/RegisterResolver response type. -message MsgRegisterResolverResponse {} +// MsgStoreRawData is the Msg/StoreRawData response type. +message MsgStoreRawDataResponse { } \ No newline at end of file diff --git a/proto/regen/data/v1alpha2/types.proto b/proto/regen/data/v1alpha2/types.proto index d9d697b750..34a649963e 100644 --- a/proto/regen/data/v1alpha2/types.proto +++ b/proto/regen/data/v1alpha2/types.proto @@ -4,8 +4,6 @@ package regen.data.v1alpha2; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/regen-network/regen-ledger/x/data"; - // ContentHash specifies a hash based content identifier for a piece of data message ContentHash { // sum selects the type of content hash @@ -144,6 +142,15 @@ enum DigestAlgorithm { DIGEST_ALGORITHM_BLAKE2B_256 = 1; } +// Content is a wrapper for content stored on-chain +message Content { + // sum selects the type of data + oneof sum { + // raw_data is the oneof field for raw data + bytes raw_data = 1; + } +} + // SignerEntry is a signer entry wrapping a signer address and timestamp message SignerEntry { // signer is the address of the signer @@ -152,4 +159,3 @@ message SignerEntry { // timestamp is the time at which the data was signed google.protobuf.Timestamp timestamp = 2; } - diff --git a/x/data/client/testsuite/grpc.go b/x/data/client/testsuite/grpc.go index eb8cad03c2..ce95903d5c 100644 --- a/x/data/client/testsuite/grpc.go +++ b/x/data/client/testsuite/grpc.go @@ -21,13 +21,13 @@ func (s *IntegrationTestSuite) TestQueryByIRI() { }{ { "invalid IRI", - fmt.Sprintf("%s/regen/data/v1alpha2/by-iri/%s", val.APIAddress, "foo"), + fmt.Sprintf("%s/regen/data/v1/by-iri/%s", val.APIAddress, "foo"), true, "key not found", }, { "valid request", - fmt.Sprintf("%s/regen/data/v1alpha2/by-iri/%s", val.APIAddress, iri), + fmt.Sprintf("%s/regen/data/v1/by-iri/%s", val.APIAddress, iri), false, "", }, @@ -70,21 +70,21 @@ func (s *IntegrationTestSuite) TestQueryBySigner() { }{ { "invalid signer", - fmt.Sprintf("%s/regen/data/v1alpha2/by-signer/%s", val.APIAddress, "foo"), + fmt.Sprintf("%s/regen/data/v1/by-signer/%s", val.APIAddress, "foo"), true, "invalid bech32 string", 0, }, { "valid request", - fmt.Sprintf("%s/regen/data/v1alpha2/by-signer/%s", val.APIAddress, addr), + fmt.Sprintf("%s/regen/data/v1/by-signer/%s", val.APIAddress, addr), false, "", 2, }, { "valid request pagination", - fmt.Sprintf("%s/regen/data/v1alpha2/by-signer/%s?pagination.limit=1", val.APIAddress, addr), + fmt.Sprintf("%s/regen/data/v1/by-signer/%s?pagination.limit=1", val.APIAddress, addr), false, "", 1, @@ -127,21 +127,21 @@ func (s *IntegrationTestSuite) TestQuerySigners() { }{ { "invalid signer", - fmt.Sprintf("%s/regen/data/v1alpha2/signers/%s", val.APIAddress, "foo"), + fmt.Sprintf("%s/regen/data/v1/signers/%s", val.APIAddress, "foo"), true, "key not found", 0, }, { "valid request", - fmt.Sprintf("%s/regen/data/v1alpha2/signers/%s", val.APIAddress, iri), + fmt.Sprintf("%s/regen/data/v1/signers/%s", val.APIAddress, iri), false, "", 2, }, { "valid request pagination", - fmt.Sprintf("%s/regen/data/v1alpha2/signers/%s?pagination.limit=1", val.APIAddress, iri), + fmt.Sprintf("%s/regen/data/v1/signers/%s?pagination.limit=1", val.APIAddress, iri), false, "", 1, diff --git a/x/data/events.pb.go b/x/data/events.pb.go index 4144858607..d801fd227b 100644 --- a/x/data/events.pb.go +++ b/x/data/events.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: regen/data/v1alpha2/events.proto +// source: regen/data/v1/events.proto package data @@ -32,7 +32,7 @@ func (m *EventAnchorData) Reset() { *m = EventAnchorData{} } func (m *EventAnchorData) String() string { return proto.CompactTextString(m) } func (*EventAnchorData) ProtoMessage() {} func (*EventAnchorData) Descriptor() ([]byte, []int) { - return fileDescriptor_2f405832eebe356f, []int{0} + return fileDescriptor_3e110e0930a307df, []int{0} } func (m *EventAnchorData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -80,7 +80,7 @@ func (m *EventSignData) Reset() { *m = EventSignData{} } func (m *EventSignData) String() string { return proto.CompactTextString(m) } func (*EventSignData) ProtoMessage() {} func (*EventSignData) Descriptor() ([]byte, []int) { - return fileDescriptor_2f405832eebe356f, []int{1} + return fileDescriptor_3e110e0930a307df, []int{1} } func (m *EventSignData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -133,7 +133,7 @@ func (m *EventStoreRawData) Reset() { *m = EventStoreRawData{} } func (m *EventStoreRawData) String() string { return proto.CompactTextString(m) } func (*EventStoreRawData) ProtoMessage() {} func (*EventStoreRawData) Descriptor() ([]byte, []int) { - return fileDescriptor_2f405832eebe356f, []int{2} + return fileDescriptor_3e110e0930a307df, []int{2} } func (m *EventStoreRawData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -170,29 +170,29 @@ func (m *EventStoreRawData) GetIri() string { } func init() { - proto.RegisterType((*EventAnchorData)(nil), "regen.data.v1alpha2.EventAnchorData") - proto.RegisterType((*EventSignData)(nil), "regen.data.v1alpha2.EventSignData") - proto.RegisterType((*EventStoreRawData)(nil), "regen.data.v1alpha2.EventStoreRawData") -} - -func init() { proto.RegisterFile("regen/data/v1alpha2/events.proto", fileDescriptor_2f405832eebe356f) } - -var fileDescriptor_2f405832eebe356f = []byte{ - // 216 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0x4a, 0x4d, 0x4f, - 0xcd, 0xd3, 0x4f, 0x49, 0x2c, 0x49, 0xd4, 0x2f, 0x33, 0x4c, 0xcc, 0x29, 0xc8, 0x48, 0x34, 0xd2, - 0x4f, 0x2d, 0x4b, 0xcd, 0x2b, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x06, 0xab, - 0xd0, 0x03, 0xa9, 0xd0, 0x83, 0xa9, 0x50, 0x52, 0xe6, 0xe2, 0x77, 0x05, 0x29, 0x72, 0xcc, 0x4b, - 0xce, 0xc8, 0x2f, 0x72, 0x49, 0x2c, 0x49, 0x14, 0x12, 0xe0, 0x62, 0xce, 0x2c, 0xca, 0x94, 0x60, - 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x02, 0x31, 0x95, 0xac, 0xb9, 0x78, 0xc1, 0x8a, 0x82, 0x33, 0xd3, - 0xf3, 0xb0, 0x2b, 0x11, 0x92, 0xe0, 0x62, 0x2f, 0xce, 0x4c, 0xcf, 0x4b, 0x2d, 0x2a, 0x96, 0x60, - 0x52, 0x60, 0xd6, 0xe0, 0x0c, 0x82, 0x71, 0x95, 0x54, 0xb9, 0x04, 0x21, 0x9a, 0x4b, 0xf2, 0x8b, - 0x52, 0x83, 0x12, 0xcb, 0xb1, 0x1b, 0xe0, 0xe4, 0x76, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, - 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, - 0x72, 0x0c, 0x51, 0x3a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x60, - 0x2f, 0xe8, 0xe6, 0xa5, 0x96, 0x94, 0xe7, 0x17, 0x65, 0x43, 0x79, 0x39, 0xa9, 0x29, 0xe9, 0xa9, - 0x45, 0xfa, 0x15, 0x60, 0xbf, 0x27, 0xb1, 0x81, 0x3d, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, - 0xac, 0x38, 0x94, 0xff, 0x10, 0x01, 0x00, 0x00, + proto.RegisterType((*EventAnchorData)(nil), "regen.data.v1.EventAnchorData") + proto.RegisterType((*EventSignData)(nil), "regen.data.v1.EventSignData") + proto.RegisterType((*EventStoreRawData)(nil), "regen.data.v1.EventStoreRawData") +} + +func init() { proto.RegisterFile("regen/data/v1/events.proto", fileDescriptor_3e110e0930a307df) } + +var fileDescriptor_3e110e0930a307df = []byte{ + // 210 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2a, 0x4a, 0x4d, 0x4f, + 0xcd, 0xd3, 0x4f, 0x49, 0x2c, 0x49, 0xd4, 0x2f, 0x33, 0xd4, 0x4f, 0x2d, 0x4b, 0xcd, 0x2b, 0x29, + 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x05, 0xcb, 0xe9, 0x81, 0xe4, 0xf4, 0xca, 0x0c, + 0x95, 0x94, 0xb9, 0xf8, 0x5d, 0x41, 0xd2, 0x8e, 0x79, 0xc9, 0x19, 0xf9, 0x45, 0x2e, 0x89, 0x25, + 0x89, 0x42, 0x02, 0x5c, 0xcc, 0x99, 0x45, 0x99, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x20, + 0xa6, 0x92, 0x35, 0x17, 0x2f, 0x58, 0x51, 0x70, 0x66, 0x7a, 0x1e, 0x76, 0x25, 0x42, 0x12, 0x5c, + 0xec, 0xc5, 0x99, 0xe9, 0x79, 0xa9, 0x45, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0x9c, 0x41, 0x30, + 0xae, 0x92, 0x2a, 0x97, 0x20, 0x44, 0x73, 0x49, 0x7e, 0x51, 0x6a, 0x50, 0x62, 0x39, 0x76, 0x03, + 0x9c, 0xdc, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, + 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x27, 0x3d, 0xb3, + 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0xec, 0x78, 0xdd, 0xbc, 0xd4, 0x92, 0xf2, + 0xfc, 0xa2, 0x6c, 0x28, 0x2f, 0x27, 0x35, 0x25, 0x3d, 0xb5, 0x48, 0xbf, 0x02, 0xec, 0xdf, 0x24, + 0x36, 0xb0, 0x37, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x94, 0xba, 0xde, 0xd4, 0x04, 0x01, + 0x00, 0x00, } func (m *EventAnchorData) Marshal() (dAtA []byte, err error) { diff --git a/x/data/genesis.pb.go b/x/data/genesis.pb.go index 1a9d18406a..d7ee8557d7 100644 --- a/x/data/genesis.pb.go +++ b/x/data/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: regen/data/v1alpha2/genesis.proto +// source: regen/data/v1/genesis.proto package data @@ -33,7 +33,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_599f0156c5393123, []int{0} + return fileDescriptor_eb5029b73a798ff9, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -83,7 +83,7 @@ func (m *GenesisContentEntry) Reset() { *m = GenesisContentEntry{} } func (m *GenesisContentEntry) String() string { return proto.CompactTextString(m) } func (*GenesisContentEntry) ProtoMessage() {} func (*GenesisContentEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_599f0156c5393123, []int{1} + return fileDescriptor_eb5029b73a798ff9, []int{1} } func (m *GenesisContentEntry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -134,33 +134,33 @@ func (m *GenesisContentEntry) GetSigners() []*SignerEntry { } func init() { - proto.RegisterType((*GenesisState)(nil), "regen.data.v1alpha2.GenesisState") - proto.RegisterType((*GenesisContentEntry)(nil), "regen.data.v1alpha2.GenesisContentEntry") + proto.RegisterType((*GenesisState)(nil), "regen.data.v1.GenesisState") + proto.RegisterType((*GenesisContentEntry)(nil), "regen.data.v1.GenesisContentEntry") } -func init() { proto.RegisterFile("regen/data/v1alpha2/genesis.proto", fileDescriptor_599f0156c5393123) } +func init() { proto.RegisterFile("regen/data/v1/genesis.proto", fileDescriptor_eb5029b73a798ff9) } -var fileDescriptor_599f0156c5393123 = []byte{ - // 299 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x3f, 0x4f, 0xf3, 0x30, - 0x10, 0xc6, 0xeb, 0xb7, 0xaf, 0xa8, 0x70, 0x99, 0xd2, 0x25, 0xea, 0xe0, 0x96, 0x4e, 0x1d, 0xc0, - 0x16, 0x85, 0x01, 0x31, 0x16, 0xf1, 0x67, 0x4e, 0x99, 0xd8, 0x5c, 0x7a, 0x38, 0x11, 0x8d, 0x1d, - 0xd9, 0x57, 0xa0, 0xdf, 0x82, 0xaf, 0xc4, 0xc6, 0xd8, 0x91, 0x11, 0x25, 0x5f, 0x04, 0xe1, 0x38, - 0xb0, 0x64, 0x3c, 0xe9, 0xf7, 0xbb, 0xe7, 0x1e, 0x1d, 0x3d, 0xb4, 0xa0, 0x40, 0x8b, 0x95, 0x44, - 0x29, 0x9e, 0x4f, 0xe4, 0xba, 0x48, 0xe5, 0x4c, 0x28, 0xd0, 0xe0, 0x32, 0xc7, 0x0b, 0x6b, 0xd0, - 0x44, 0x03, 0x8f, 0xf0, 0x1f, 0x84, 0x37, 0xc8, 0x70, 0xd4, 0xe6, 0xe1, 0xb6, 0x80, 0x60, 0x0d, - 0x47, 0xca, 0x18, 0xb5, 0x06, 0xe1, 0xa7, 0xe5, 0xe6, 0x51, 0x60, 0x96, 0x83, 0x43, 0x99, 0x17, - 0x35, 0x30, 0x49, 0xe8, 0xc1, 0x4d, 0x9d, 0xb3, 0x40, 0x89, 0x10, 0xcd, 0x69, 0x0f, 0x34, 0xda, - 0x0c, 0x5c, 0x4c, 0xc6, 0xdd, 0x69, 0x7f, 0x36, 0xe5, 0x2d, 0xc1, 0x3c, 0x38, 0x97, 0x46, 0x23, - 0x68, 0xbc, 0xd2, 0x68, 0xb7, 0x49, 0x23, 0x4e, 0xde, 0x09, 0x1d, 0xb4, 0x00, 0xd1, 0x19, 0xfd, - 0x9f, 0x4a, 0x97, 0xc6, 0x64, 0x4c, 0xa6, 0xfd, 0xd9, 0xb8, 0x75, 0x71, 0x10, 0x6e, 0xa5, 0x4b, - 0x13, 0x4f, 0x47, 0xe7, 0x74, 0xff, 0xf7, 0xe8, 0xf8, 0x9f, 0x57, 0x87, 0xbc, 0xae, 0xc5, 0x9b, - 0x5a, 0xfc, 0xae, 0x21, 0x92, 0x3f, 0x38, 0xba, 0xa0, 0x3d, 0x97, 0x29, 0x0d, 0xd6, 0xc5, 0x5d, - 0xdf, 0xa5, 0x3d, 0x72, 0xe1, 0x99, 0xd0, 0x21, 0x08, 0xf3, 0xeb, 0x8f, 0x92, 0x91, 0x5d, 0xc9, - 0xc8, 0x57, 0xc9, 0xc8, 0x5b, 0xc5, 0x3a, 0xbb, 0x8a, 0x75, 0x3e, 0x2b, 0xd6, 0xb9, 0x3f, 0x52, - 0x19, 0xa6, 0x9b, 0x25, 0x7f, 0x30, 0xb9, 0xf0, 0xeb, 0x8e, 0x35, 0xe0, 0x8b, 0xb1, 0x4f, 0x61, - 0x5a, 0xc3, 0x4a, 0x81, 0x15, 0xaf, 0xfe, 0x2b, 0xcb, 0x3d, 0x7f, 0xe2, 0xe9, 0x77, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x39, 0x9c, 0x64, 0xf6, 0xe2, 0x01, 0x00, 0x00, +var fileDescriptor_eb5029b73a798ff9 = []byte{ + // 296 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x3d, 0x4e, 0x03, 0x31, + 0x10, 0x85, 0x63, 0x82, 0x88, 0x70, 0xa0, 0x59, 0x9a, 0x25, 0x48, 0x26, 0x4a, 0x95, 0x02, 0x6c, + 0x25, 0x50, 0x50, 0x50, 0x81, 0xf8, 0x29, 0xa8, 0x12, 0x2a, 0x3a, 0x87, 0x0c, 0xde, 0x15, 0x89, + 0xbd, 0xb2, 0x27, 0x81, 0xdc, 0x82, 0xcb, 0x70, 0x07, 0xca, 0x94, 0x94, 0x68, 0xf7, 0x22, 0x08, + 0xaf, 0x17, 0x94, 0x88, 0x72, 0xf4, 0xbe, 0x79, 0xf3, 0xde, 0xd0, 0x03, 0x0b, 0x0a, 0xb4, 0x18, + 0x4b, 0x94, 0x62, 0xde, 0x13, 0x0a, 0x34, 0xb8, 0xd4, 0xf1, 0xcc, 0x1a, 0x34, 0xd1, 0xae, 0x17, + 0xf9, 0x8f, 0xc8, 0xe7, 0xbd, 0xd6, 0xfe, 0x2a, 0x8b, 0x8b, 0x0c, 0x02, 0xd9, 0x3a, 0x54, 0xc6, + 0xa8, 0x09, 0x08, 0x3f, 0x8d, 0x66, 0x4f, 0x02, 0xd3, 0x29, 0x38, 0x94, 0xd3, 0xac, 0x04, 0x3a, + 0x77, 0x74, 0xe7, 0xa6, 0xf4, 0x1e, 0xa2, 0x44, 0x88, 0xce, 0x69, 0x03, 0x34, 0xda, 0x14, 0x5c, + 0x4c, 0xda, 0xf5, 0x6e, 0xb3, 0xdf, 0xe1, 0x2b, 0xc7, 0x78, 0xa0, 0x2f, 0x8d, 0x46, 0xd0, 0x78, + 0xa5, 0xd1, 0x2e, 0x06, 0xd5, 0x4a, 0xe7, 0x9d, 0xd0, 0xbd, 0x7f, 0x80, 0x88, 0xd3, 0xcd, 0x44, + 0xba, 0x24, 0x26, 0x6d, 0xd2, 0x6d, 0xf6, 0x5b, 0x6b, 0x96, 0x01, 0xbd, 0x95, 0x2e, 0x19, 0x78, + 0x2e, 0x3a, 0xa3, 0xdb, 0xbf, 0x41, 0xe3, 0x8d, 0xb0, 0x54, 0x56, 0xe1, 0x55, 0x15, 0x7e, 0x5f, + 0x11, 0x83, 0x3f, 0x38, 0x3a, 0xa5, 0x0d, 0x97, 0x2a, 0x0d, 0xd6, 0xc5, 0x75, 0x9f, 0x7f, 0xfd, + 0xd8, 0xd0, 0xab, 0x21, 0x77, 0x40, 0x2f, 0xae, 0x3f, 0x72, 0x46, 0x96, 0x39, 0x23, 0x5f, 0x39, + 0x23, 0x6f, 0x05, 0xab, 0x2d, 0x0b, 0x56, 0xfb, 0x2c, 0x58, 0xed, 0xe1, 0x48, 0xa5, 0x98, 0xcc, + 0x46, 0xfc, 0xd1, 0x4c, 0x85, 0x37, 0x3a, 0xd6, 0x80, 0x2f, 0xc6, 0x3e, 0x87, 0x69, 0x02, 0x63, + 0x05, 0x56, 0xbc, 0xfa, 0xef, 0x8f, 0xb6, 0x7c, 0xb8, 0x93, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x51, 0x90, 0x80, 0x25, 0xbe, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/data/query.pb.go b/x/data/query.pb.go index 929f765162..8ed3df7991 100644 --- a/x/data/query.pb.go +++ b/x/data/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: regen/data/v1alpha2/query.proto +// source: regen/data/v1/query.proto package data @@ -40,7 +40,7 @@ func (m *QueryByIRIRequest) Reset() { *m = QueryByIRIRequest{} } func (m *QueryByIRIRequest) String() string { return proto.CompactTextString(m) } func (*QueryByIRIRequest) ProtoMessage() {} func (*QueryByIRIRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bf7739eaec65300f, []int{0} + return fileDescriptor_38d540b97ef3e368, []int{0} } func (m *QueryByIRIRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -86,7 +86,7 @@ func (m *QueryByIRIResponse) Reset() { *m = QueryByIRIResponse{} } func (m *QueryByIRIResponse) String() string { return proto.CompactTextString(m) } func (*QueryByIRIResponse) ProtoMessage() {} func (*QueryByIRIResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bf7739eaec65300f, []int{1} + return fileDescriptor_38d540b97ef3e368, []int{1} } func (m *QueryByIRIResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -134,7 +134,7 @@ func (m *QueryBySignerRequest) Reset() { *m = QueryBySignerRequest{} } func (m *QueryBySignerRequest) String() string { return proto.CompactTextString(m) } func (*QueryBySignerRequest) ProtoMessage() {} func (*QueryBySignerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bf7739eaec65300f, []int{2} + return fileDescriptor_38d540b97ef3e368, []int{2} } func (m *QueryBySignerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -189,7 +189,7 @@ func (m *QueryBySignerResponse) Reset() { *m = QueryBySignerResponse{} } func (m *QueryBySignerResponse) String() string { return proto.CompactTextString(m) } func (*QueryBySignerResponse) ProtoMessage() {} func (*QueryBySignerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bf7739eaec65300f, []int{3} + return fileDescriptor_38d540b97ef3e368, []int{3} } func (m *QueryBySignerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -246,7 +246,7 @@ func (m *ContentEntry) Reset() { *m = ContentEntry{} } func (m *ContentEntry) String() string { return proto.CompactTextString(m) } func (*ContentEntry) ProtoMessage() {} func (*ContentEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_bf7739eaec65300f, []int{4} + return fileDescriptor_38d540b97ef3e368, []int{4} } func (m *ContentEntry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -308,7 +308,7 @@ func (m *QuerySignersRequest) Reset() { *m = QuerySignersRequest{} } func (m *QuerySignersRequest) String() string { return proto.CompactTextString(m) } func (*QuerySignersRequest) ProtoMessage() {} func (*QuerySignersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bf7739eaec65300f, []int{5} + return fileDescriptor_38d540b97ef3e368, []int{5} } func (m *QuerySignersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -363,7 +363,7 @@ func (m *QuerySignersResponse) Reset() { *m = QuerySignersResponse{} } func (m *QuerySignersResponse) String() string { return proto.CompactTextString(m) } func (*QuerySignersResponse) ProtoMessage() {} func (*QuerySignersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bf7739eaec65300f, []int{6} + return fileDescriptor_38d540b97ef3e368, []int{6} } func (m *QuerySignersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -418,7 +418,7 @@ func (m *QueryResolversRequest) Reset() { *m = QueryResolversRequest{} } func (m *QueryResolversRequest) String() string { return proto.CompactTextString(m) } func (*QueryResolversRequest) ProtoMessage() {} func (*QueryResolversRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bf7739eaec65300f, []int{7} + return fileDescriptor_38d540b97ef3e368, []int{7} } func (m *QueryResolversRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -474,7 +474,7 @@ func (m *QueryResolversResponse) Reset() { *m = QueryResolversResponse{} func (m *QueryResolversResponse) String() string { return proto.CompactTextString(m) } func (*QueryResolversResponse) ProtoMessage() {} func (*QueryResolversResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bf7739eaec65300f, []int{8} + return fileDescriptor_38d540b97ef3e368, []int{8} } func (m *QueryResolversResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -527,7 +527,7 @@ func (m *QueryResolverInfoRequest) Reset() { *m = QueryResolverInfoReque func (m *QueryResolverInfoRequest) String() string { return proto.CompactTextString(m) } func (*QueryResolverInfoRequest) ProtoMessage() {} func (*QueryResolverInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bf7739eaec65300f, []int{9} + return fileDescriptor_38d540b97ef3e368, []int{9} } func (m *QueryResolverInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -575,7 +575,7 @@ func (m *QueryResolverInfoResponse) Reset() { *m = QueryResolverInfoResp func (m *QueryResolverInfoResponse) String() string { return proto.CompactTextString(m) } func (*QueryResolverInfoResponse) ProtoMessage() {} func (*QueryResolverInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bf7739eaec65300f, []int{10} + return fileDescriptor_38d540b97ef3e368, []int{10} } func (m *QueryResolverInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -619,70 +619,69 @@ func (m *QueryResolverInfoResponse) GetManager() string { } func init() { - proto.RegisterType((*QueryByIRIRequest)(nil), "regen.data.v1alpha2.QueryByIRIRequest") - proto.RegisterType((*QueryByIRIResponse)(nil), "regen.data.v1alpha2.QueryByIRIResponse") - proto.RegisterType((*QueryBySignerRequest)(nil), "regen.data.v1alpha2.QueryBySignerRequest") - proto.RegisterType((*QueryBySignerResponse)(nil), "regen.data.v1alpha2.QueryBySignerResponse") - proto.RegisterType((*ContentEntry)(nil), "regen.data.v1alpha2.ContentEntry") - proto.RegisterType((*QuerySignersRequest)(nil), "regen.data.v1alpha2.QuerySignersRequest") - proto.RegisterType((*QuerySignersResponse)(nil), "regen.data.v1alpha2.QuerySignersResponse") - proto.RegisterType((*QueryResolversRequest)(nil), "regen.data.v1alpha2.QueryResolversRequest") - proto.RegisterType((*QueryResolversResponse)(nil), "regen.data.v1alpha2.QueryResolversResponse") - proto.RegisterType((*QueryResolverInfoRequest)(nil), "regen.data.v1alpha2.QueryResolverInfoRequest") - proto.RegisterType((*QueryResolverInfoResponse)(nil), "regen.data.v1alpha2.QueryResolverInfoResponse") -} - -func init() { proto.RegisterFile("regen/data/v1alpha2/query.proto", fileDescriptor_bf7739eaec65300f) } - -var fileDescriptor_bf7739eaec65300f = []byte{ - // 739 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0xcd, 0x4f, 0x53, 0x4b, - 0x18, 0xc6, 0x39, 0x85, 0xc2, 0xed, 0x5c, 0xee, 0xcd, 0xbd, 0x83, 0x92, 0x7a, 0x62, 0x0a, 0x1c, - 0x3e, 0xcb, 0xc7, 0x4c, 0x40, 0x13, 0x4d, 0xdc, 0x61, 0x40, 0x59, 0x98, 0xe8, 0x51, 0x37, 0x6e, - 0xcc, 0x94, 0x0e, 0xa7, 0x13, 0x4f, 0xcf, 0x94, 0x99, 0x39, 0xd5, 0x86, 0xb0, 0xd1, 0xc4, 0x85, - 0x2b, 0xa2, 0x3b, 0x13, 0xff, 0x1f, 0x97, 0x24, 0x6e, 0x5c, 0x2a, 0xf8, 0x87, 0x98, 0xce, 0x47, - 0x69, 0x6b, 0x29, 0x8d, 0x21, 0xae, 0x60, 0x4e, 0x9f, 0x79, 0x9f, 0xdf, 0xfb, 0xce, 0x33, 0x03, - 0xa6, 0x04, 0x8d, 0x68, 0x82, 0xcb, 0x44, 0x11, 0x5c, 0x5f, 0x27, 0x71, 0xad, 0x42, 0x36, 0xf0, - 0x7e, 0x4a, 0x45, 0x03, 0xd5, 0x04, 0x57, 0x1c, 0x4e, 0x68, 0x01, 0x6a, 0x0a, 0x90, 0x13, 0xf8, - 0xd7, 0x23, 0xce, 0xa3, 0x98, 0x62, 0x52, 0x63, 0x98, 0x24, 0x09, 0x57, 0x44, 0x31, 0x9e, 0x48, - 0xb3, 0xc5, 0x9f, 0xb2, 0xbf, 0xea, 0x55, 0x29, 0xdd, 0xc3, 0x8a, 0x55, 0xa9, 0x54, 0xa4, 0x5a, - 0xb3, 0x82, 0xe5, 0x5d, 0x2e, 0xab, 0x5c, 0xe2, 0x12, 0x91, 0xd4, 0x98, 0xe1, 0xfa, 0x7a, 0x89, - 0x2a, 0xb2, 0x8e, 0x6b, 0x24, 0x62, 0x89, 0xae, 0xe6, 0x8a, 0xf5, 0x02, 0x54, 0x8d, 0x1a, 0xb5, - 0x6e, 0xc1, 0x3c, 0xf8, 0xff, 0x51, 0xb3, 0xc4, 0x66, 0x63, 0x27, 0xdc, 0x09, 0xe9, 0x7e, 0x4a, - 0xa5, 0x82, 0xff, 0x81, 0x61, 0x26, 0x58, 0xde, 0x9b, 0xf6, 0x96, 0x72, 0x61, 0xf3, 0xdf, 0xe0, - 0x01, 0x80, 0xed, 0x32, 0x59, 0xe3, 0x89, 0xa4, 0xf0, 0x16, 0xc8, 0xd2, 0x44, 0x89, 0x86, 0x56, - 0xfe, 0xbd, 0x31, 0x83, 0x7a, 0x74, 0x8b, 0xee, 0xf2, 0x44, 0xd1, 0x44, 0x6d, 0x35, 0x85, 0xa1, - 0xd1, 0x07, 0x75, 0x70, 0xc5, 0x96, 0x7b, 0xcc, 0xa2, 0x84, 0x0a, 0x67, 0x3c, 0x09, 0x46, 0xa5, - 0xfe, 0x60, 0xbd, 0xed, 0x0a, 0x6e, 0x03, 0x70, 0xd6, 0x5a, 0x3e, 0xa3, 0xdd, 0x16, 0x90, 0x99, - 0x03, 0x6a, 0xce, 0x01, 0x99, 0xa1, 0xdb, 0x39, 0xa0, 0x87, 0x24, 0xa2, 0xb6, 0x66, 0xd8, 0xb6, - 0x33, 0xf8, 0xe4, 0x81, 0xab, 0x5d, 0xc6, 0xb6, 0x95, 0x3b, 0x60, 0xac, 0x89, 0xc6, 0xa8, 0xcc, - 0x7b, 0xd3, 0xc3, 0x83, 0x35, 0xe3, 0x76, 0xc0, 0x7b, 0x1d, 0x78, 0xc3, 0x1a, 0x6f, 0xf1, 0x42, - 0x3c, 0xe3, 0xdc, 0xc1, 0x77, 0xe4, 0x81, 0xf1, 0x76, 0x0b, 0x78, 0x13, 0x8c, 0x54, 0x88, 0xac, - 0xd8, 0x01, 0x4f, 0xf7, 0x63, 0xba, 0x4f, 0x64, 0x25, 0xd4, 0x6a, 0x77, 0x7e, 0x99, 0xd6, 0xf9, - 0xc1, 0xdb, 0x20, 0xd7, 0x8a, 0x91, 0x05, 0xf4, 0x91, 0x09, 0x1a, 0x72, 0x41, 0x43, 0x4f, 0x9c, - 0x22, 0x3c, 0x13, 0x07, 0x1c, 0x4c, 0xe8, 0x89, 0x99, 0x79, 0xc9, 0x73, 0x23, 0x72, 0x69, 0x67, - 0xd4, 0xb0, 0xd9, 0x68, 0x19, 0xda, 0x13, 0xca, 0x83, 0x31, 0x93, 0x06, 0x73, 0x42, 0xb9, 0xd0, - 0x2d, 0xbb, 0xc6, 0x9f, 0xf9, 0xfd, 0xf1, 0xef, 0xdb, 0x74, 0x84, 0x54, 0xf2, 0xb8, 0xfe, 0x47, - 0xba, 0x7d, 0xeb, 0x81, 0xc9, 0x6e, 0x4f, 0xdb, 0xf0, 0x2c, 0xf8, 0x47, 0xd8, 0x8f, 0xcf, 0x53, - 0x11, 0xbb, 0xb6, 0xc7, 0xdd, 0xc7, 0xa7, 0x22, 0xbe, 0xc4, 0xde, 0x57, 0x41, 0xbe, 0x83, 0x63, - 0x27, 0xd9, 0xe3, 0x6d, 0xed, 0xa7, 0x22, 0x76, 0xed, 0xa7, 0x22, 0x0e, 0xb6, 0xc0, 0xb5, 0x1e, - 0x6a, 0x0b, 0xfe, 0x2f, 0xc8, 0xb0, 0xb2, 0x56, 0x8f, 0x84, 0x19, 0x56, 0x6e, 0x9e, 0x5c, 0x95, - 0x24, 0x24, 0xa2, 0xc2, 0x46, 0xd2, 0x2d, 0x37, 0xbe, 0x67, 0x41, 0x56, 0xd7, 0x81, 0x6f, 0x3c, - 0x90, 0xd5, 0x8f, 0x0b, 0x5c, 0xe8, 0x19, 0xf2, 0x5f, 0x1e, 0x29, 0x7f, 0xf1, 0x42, 0x9d, 0xc1, - 0x09, 0x8a, 0xaf, 0xbf, 0xfc, 0xf8, 0x90, 0x99, 0x85, 0x33, 0xb8, 0xd7, 0x63, 0x58, 0x6a, 0xac, - 0x31, 0xc1, 0xf0, 0x01, 0x13, 0xec, 0x10, 0xbe, 0xf7, 0xc0, 0x5f, 0xee, 0x69, 0x80, 0xc5, 0x7e, - 0x06, 0x1d, 0xef, 0x96, 0xbf, 0x3c, 0x88, 0xd4, 0xe2, 0x60, 0x8d, 0x53, 0x84, 0x8b, 0xe7, 0xe1, - 0x98, 0x58, 0xe3, 0x03, 0xf3, 0xf7, 0x10, 0xbe, 0xf3, 0xc0, 0x98, 0xbd, 0x0c, 0x70, 0xe9, 0x7c, - 0xa3, 0xce, 0x0b, 0xea, 0x17, 0x07, 0x50, 0x5a, 0xa2, 0x65, 0x4d, 0x34, 0x07, 0x83, 0x9e, 0x44, - 0xf6, 0x96, 0x9d, 0x4d, 0x28, 0xd7, 0x8a, 0x2a, 0xec, 0xd3, 0x77, 0xf7, 0x1d, 0xf2, 0x57, 0x06, - 0xd2, 0x5a, 0xa4, 0x55, 0x8d, 0xb4, 0x00, 0xe7, 0x7a, 0x22, 0xb9, 0x1b, 0xe0, 0xa0, 0x3e, 0x7a, - 0x60, 0xbc, 0x3d, 0x89, 0x70, 0xed, 0x62, 0xaf, 0xb6, 0x7c, 0xfb, 0x68, 0x50, 0xb9, 0xa5, 0x5b, - 0xd1, 0x74, 0xf3, 0x70, 0xb6, 0x2f, 0x1d, 0x3e, 0x48, 0x45, 0x7c, 0xb8, 0xb9, 0xfd, 0xf9, 0xa4, - 0xe0, 0x1d, 0x9f, 0x14, 0xbc, 0x6f, 0x27, 0x05, 0xef, 0xe8, 0xb4, 0x30, 0x74, 0x7c, 0x5a, 0x18, - 0xfa, 0x7a, 0x5a, 0x18, 0x7a, 0xb6, 0x1a, 0x31, 0x55, 0x49, 0x4b, 0x68, 0x97, 0x57, 0x4d, 0xa1, - 0xb5, 0x84, 0xaa, 0x97, 0x5c, 0xbc, 0xb0, 0xab, 0x98, 0x96, 0x23, 0x2a, 0xf0, 0x2b, 0x5d, 0xbf, - 0x34, 0xaa, 0xdf, 0xe9, 0x1b, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x71, 0xa9, 0x97, 0xc9, 0x74, - 0x08, 0x00, 0x00, + proto.RegisterType((*QueryByIRIRequest)(nil), "regen.data.v1.QueryByIRIRequest") + proto.RegisterType((*QueryByIRIResponse)(nil), "regen.data.v1.QueryByIRIResponse") + proto.RegisterType((*QueryBySignerRequest)(nil), "regen.data.v1.QueryBySignerRequest") + proto.RegisterType((*QueryBySignerResponse)(nil), "regen.data.v1.QueryBySignerResponse") + proto.RegisterType((*ContentEntry)(nil), "regen.data.v1.ContentEntry") + proto.RegisterType((*QuerySignersRequest)(nil), "regen.data.v1.QuerySignersRequest") + proto.RegisterType((*QuerySignersResponse)(nil), "regen.data.v1.QuerySignersResponse") + proto.RegisterType((*QueryResolversRequest)(nil), "regen.data.v1.QueryResolversRequest") + proto.RegisterType((*QueryResolversResponse)(nil), "regen.data.v1.QueryResolversResponse") + proto.RegisterType((*QueryResolverInfoRequest)(nil), "regen.data.v1.QueryResolverInfoRequest") + proto.RegisterType((*QueryResolverInfoResponse)(nil), "regen.data.v1.QueryResolverInfoResponse") +} + +func init() { proto.RegisterFile("regen/data/v1/query.proto", fileDescriptor_38d540b97ef3e368) } + +var fileDescriptor_38d540b97ef3e368 = []byte{ + // 725 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xdf, 0x4f, 0x13, 0x4b, + 0x18, 0x65, 0x0b, 0x85, 0xdb, 0xb9, 0x70, 0x73, 0xef, 0x5c, 0x25, 0x65, 0x81, 0xa5, 0x6c, 0xf9, + 0xa5, 0x81, 0x9d, 0x14, 0x63, 0xe2, 0x33, 0x06, 0x90, 0x37, 0x5d, 0xf5, 0xc5, 0x17, 0x33, 0xa5, + 0xc3, 0x76, 0xe2, 0x76, 0xa7, 0x9d, 0x99, 0xad, 0x34, 0x84, 0xc4, 0x98, 0x68, 0x8c, 0x4f, 0x26, + 0x3e, 0xf8, 0x2f, 0xf9, 0x48, 0xe2, 0x8b, 0x8f, 0x06, 0xfc, 0x43, 0x4c, 0x67, 0x66, 0x4b, 0x77, + 0x29, 0x6d, 0x62, 0x88, 0x4f, 0xed, 0xcc, 0x9c, 0xfd, 0xce, 0x39, 0xdf, 0x77, 0x66, 0xc0, 0x1c, + 0x27, 0x01, 0x89, 0x50, 0x0d, 0x4b, 0x8c, 0xda, 0x15, 0xd4, 0x8a, 0x09, 0xef, 0x78, 0x4d, 0xce, + 0x24, 0x83, 0x33, 0xea, 0xc8, 0xeb, 0x1e, 0x79, 0xed, 0x8a, 0xbd, 0x10, 0x30, 0x16, 0x84, 0x04, + 0xe1, 0x26, 0x45, 0x38, 0x8a, 0x98, 0xc4, 0x92, 0xb2, 0x48, 0x68, 0xb0, 0xbd, 0x64, 0x4e, 0xd5, + 0xaa, 0x1a, 0x1f, 0x21, 0x49, 0x1b, 0x44, 0x48, 0xdc, 0x68, 0x1a, 0xc0, 0xdd, 0x43, 0x26, 0x1a, + 0x4c, 0xa0, 0x2a, 0x16, 0x44, 0xd3, 0xa0, 0x76, 0xa5, 0x4a, 0x24, 0xae, 0xa0, 0x26, 0x0e, 0x68, + 0xa4, 0xaa, 0x19, 0x6c, 0x46, 0x94, 0xec, 0x34, 0x89, 0xe1, 0x71, 0x57, 0xc1, 0x7f, 0x4f, 0xba, + 0x1f, 0xef, 0x74, 0x0e, 0xfc, 0x03, 0x9f, 0xb4, 0x62, 0x22, 0x24, 0xfc, 0x17, 0x8c, 0x53, 0x4e, + 0x8b, 0x56, 0xc9, 0xda, 0x28, 0xf8, 0xdd, 0xbf, 0xee, 0x3e, 0x80, 0xfd, 0x30, 0xd1, 0x64, 0x91, + 0x20, 0xb0, 0x02, 0xf2, 0x24, 0x92, 0xbc, 0xa3, 0x90, 0x7f, 0x6f, 0xcf, 0x7b, 0x29, 0x87, 0xde, + 0x43, 0x16, 0x49, 0x12, 0xc9, 0xdd, 0x2e, 0xc4, 0xd7, 0x48, 0xb7, 0x0d, 0x6e, 0x99, 0x42, 0x4f, + 0x69, 0x10, 0x11, 0x9e, 0x50, 0xce, 0x82, 0x49, 0xa1, 0x36, 0x0c, 0xab, 0x59, 0xc1, 0x3d, 0x00, + 0x2e, 0xed, 0x14, 0x73, 0x8a, 0x67, 0xcd, 0xd3, 0xde, 0xbd, 0xae, 0x77, 0x4f, 0xb7, 0xd8, 0x78, + 0xf7, 0x1e, 0xe3, 0x80, 0x98, 0x9a, 0x7e, 0xdf, 0x97, 0xee, 0x17, 0x0b, 0xdc, 0xce, 0x10, 0x1b, + 0x13, 0xf7, 0xc1, 0x54, 0x57, 0x1a, 0x25, 0xa2, 0x68, 0x95, 0xc6, 0x47, 0xd9, 0x48, 0xb0, 0x70, + 0x3f, 0x25, 0x6c, 0x5c, 0x09, 0x5b, 0x1f, 0x29, 0x4c, 0x73, 0xa6, 0x94, 0x7d, 0xb4, 0xc0, 0x74, + 0x3f, 0x05, 0xf4, 0xc0, 0x44, 0x1d, 0x8b, 0xba, 0x69, 0xaa, 0x3d, 0x58, 0xcd, 0x23, 0x2c, 0xea, + 0xbe, 0xc2, 0x25, 0xd3, 0xca, 0xf5, 0xa6, 0x05, 0x1f, 0x80, 0x42, 0x2f, 0x2e, 0x46, 0x9a, 0xed, + 0xe9, 0x40, 0x79, 0x49, 0xa0, 0xbc, 0x67, 0x09, 0xc2, 0xbf, 0x04, 0xbb, 0x0c, 0xfc, 0xaf, 0xba, + 0xa4, 0x7b, 0x24, 0xae, 0x0d, 0xc4, 0x8d, 0xcd, 0xa5, 0x63, 0xf2, 0xd0, 0x23, 0x34, 0x53, 0x29, + 0x82, 0x29, 0x9d, 0x00, 0x3d, 0x95, 0x82, 0x9f, 0x2c, 0x33, 0x8d, 0xcf, 0xfd, 0x7e, 0xe3, 0x5b, + 0x26, 0x11, 0x3e, 0x11, 0x2c, 0x6c, 0xff, 0x11, 0xb7, 0xef, 0x2d, 0x30, 0x9b, 0xe5, 0x34, 0x86, + 0xcb, 0x60, 0x86, 0x9b, 0xcd, 0x97, 0x31, 0x0f, 0x13, 0xdb, 0xd3, 0xc9, 0xe6, 0x73, 0x1e, 0xde, + 0xa0, 0xf7, 0x4d, 0x50, 0x4c, 0xe9, 0x38, 0x88, 0x8e, 0x58, 0x9f, 0xfd, 0x98, 0x87, 0x89, 0xfd, + 0x98, 0x87, 0xee, 0x2e, 0x98, 0x1b, 0x80, 0x36, 0xc2, 0xff, 0x01, 0x39, 0x5a, 0x53, 0xe8, 0x09, + 0x3f, 0x47, 0x6b, 0xdd, 0xc9, 0x35, 0x70, 0x84, 0x03, 0xc2, 0x4d, 0x24, 0x93, 0xe5, 0xf6, 0xbb, + 0x3c, 0xc8, 0xab, 0x3a, 0xb0, 0x05, 0xf2, 0xea, 0x25, 0x81, 0xa5, 0x4c, 0xba, 0xaf, 0xbc, 0x45, + 0xf6, 0xf2, 0x10, 0x84, 0x56, 0xe0, 0x96, 0xdf, 0x7e, 0xfb, 0xf9, 0x39, 0xb7, 0x08, 0xe7, 0x51, + 0xfa, 0x9d, 0xab, 0x76, 0xb6, 0x28, 0xa7, 0xe8, 0x84, 0x72, 0x7a, 0x0a, 0xdf, 0x58, 0xe0, 0xaf, + 0xe4, 0xee, 0xc3, 0xf2, 0xe0, 0xa2, 0xa9, 0x27, 0xc9, 0x5e, 0x19, 0x0e, 0x32, 0xe4, 0x77, 0x14, + 0x79, 0x19, 0x2e, 0x5f, 0x25, 0xd7, 0x89, 0x45, 0x27, 0xfa, 0xf7, 0x14, 0x1e, 0x83, 0x29, 0x13, + 0x73, 0xe8, 0x0e, 0xaa, 0x9d, 0xbe, 0x74, 0x76, 0x79, 0x28, 0xc6, 0xd0, 0xaf, 0x28, 0x7a, 0x07, + 0x2e, 0x64, 0xe8, 0xcd, 0x6d, 0xb9, 0x34, 0x5f, 0xe8, 0x45, 0x0e, 0x0e, 0x34, 0x96, 0xbd, 0x05, + 0xf6, 0xea, 0x08, 0x94, 0x11, 0xb0, 0xa6, 0x04, 0x94, 0xa0, 0x93, 0x11, 0x90, 0xe4, 0x36, 0x91, + 0xf0, 0xc1, 0x02, 0xd3, 0xfd, 0xf9, 0x81, 0xeb, 0xc3, 0xea, 0xf7, 0xe5, 0xd1, 0xde, 0x18, 0x0d, + 0x34, 0x5a, 0x56, 0x95, 0x96, 0x25, 0xb8, 0x78, 0x8d, 0x16, 0x74, 0x12, 0xf3, 0xf0, 0x74, 0x67, + 0xef, 0xeb, 0xb9, 0x63, 0x9d, 0x9d, 0x3b, 0xd6, 0x8f, 0x73, 0xc7, 0xfa, 0x74, 0xe1, 0x8c, 0x9d, + 0x5d, 0x38, 0x63, 0xdf, 0x2f, 0x9c, 0xb1, 0x17, 0x9b, 0x01, 0x95, 0xf5, 0xb8, 0xea, 0x1d, 0xb2, + 0x86, 0x2e, 0xb1, 0x15, 0x11, 0xf9, 0x9a, 0xf1, 0x57, 0x66, 0x15, 0x92, 0x5a, 0x40, 0x38, 0x3a, + 0x56, 0x95, 0xab, 0x93, 0xea, 0x2d, 0xbd, 0xf7, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xb1, 0x6e, 0x91, + 0x7a, 0xf4, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -719,7 +718,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) ByIRI(ctx context.Context, in *QueryByIRIRequest, opts ...grpc.CallOption) (*QueryByIRIResponse, error) { out := new(QueryByIRIResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Query/ByIRI", in, out, opts...) + err := c.cc.Invoke(ctx, "/regen.data.v1.Query/ByIRI", in, out, opts...) if err != nil { return nil, err } @@ -728,7 +727,7 @@ func (c *queryClient) ByIRI(ctx context.Context, in *QueryByIRIRequest, opts ... func (c *queryClient) BySigner(ctx context.Context, in *QueryBySignerRequest, opts ...grpc.CallOption) (*QueryBySignerResponse, error) { out := new(QueryBySignerResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Query/BySigner", in, out, opts...) + err := c.cc.Invoke(ctx, "/regen.data.v1.Query/BySigner", in, out, opts...) if err != nil { return nil, err } @@ -737,7 +736,7 @@ func (c *queryClient) BySigner(ctx context.Context, in *QueryBySignerRequest, op func (c *queryClient) Signers(ctx context.Context, in *QuerySignersRequest, opts ...grpc.CallOption) (*QuerySignersResponse, error) { out := new(QuerySignersResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Query/Signers", in, out, opts...) + err := c.cc.Invoke(ctx, "/regen.data.v1.Query/Signers", in, out, opts...) if err != nil { return nil, err } @@ -746,7 +745,7 @@ func (c *queryClient) Signers(ctx context.Context, in *QuerySignersRequest, opts func (c *queryClient) Resolvers(ctx context.Context, in *QueryResolversRequest, opts ...grpc.CallOption) (*QueryResolversResponse, error) { out := new(QueryResolversResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Query/Resolvers", in, out, opts...) + err := c.cc.Invoke(ctx, "/regen.data.v1.Query/Resolvers", in, out, opts...) if err != nil { return nil, err } @@ -755,7 +754,7 @@ func (c *queryClient) Resolvers(ctx context.Context, in *QueryResolversRequest, func (c *queryClient) ResolverInfo(ctx context.Context, in *QueryResolverInfoRequest, opts ...grpc.CallOption) (*QueryResolverInfoResponse, error) { out := new(QueryResolverInfoResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Query/ResolverInfo", in, out, opts...) + err := c.cc.Invoke(ctx, "/regen.data.v1.Query/ResolverInfo", in, out, opts...) if err != nil { return nil, err } @@ -810,7 +809,7 @@ func _Query_ByIRI_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1alpha2.Query/ByIRI", + FullMethod: "/regen.data.v1.Query/ByIRI", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ByIRI(ctx, req.(*QueryByIRIRequest)) @@ -828,7 +827,7 @@ func _Query_BySigner_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1alpha2.Query/BySigner", + FullMethod: "/regen.data.v1.Query/BySigner", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).BySigner(ctx, req.(*QueryBySignerRequest)) @@ -846,7 +845,7 @@ func _Query_Signers_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1alpha2.Query/Signers", + FullMethod: "/regen.data.v1.Query/Signers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Signers(ctx, req.(*QuerySignersRequest)) @@ -864,7 +863,7 @@ func _Query_Resolvers_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1alpha2.Query/Resolvers", + FullMethod: "/regen.data.v1.Query/Resolvers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Resolvers(ctx, req.(*QueryResolversRequest)) @@ -882,7 +881,7 @@ func _Query_ResolverInfo_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1alpha2.Query/ResolverInfo", + FullMethod: "/regen.data.v1.Query/ResolverInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ResolverInfo(ctx, req.(*QueryResolverInfoRequest)) @@ -891,7 +890,7 @@ func _Query_ResolverInfo_Handler(srv interface{}, ctx context.Context, dec func( } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "regen.data.v1alpha2.Query", + ServiceName: "regen.data.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -916,7 +915,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "regen/data/v1alpha2/query.proto", + Metadata: "regen/data/v1/query.proto", } func (m *QueryByIRIRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/data/query.pb.gw.go b/x/data/query.pb.gw.go index 0f6b196cd9..adf8a01c01 100644 --- a/x/data/query.pb.gw.go +++ b/x/data/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: regen/data/v1alpha2/query.proto +// source: regen/data/v1/query.proto /* Package data is a reverse proxy. @@ -623,15 +623,15 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_ByIRI_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"regen", "data", "v1alpha2", "by-iri", "iri"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_ByIRI_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"regen", "data", "v1", "by-iri", "iri"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_BySigner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"regen", "data", "v1alpha2", "by-signer", "signer"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_BySigner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"regen", "data", "v1", "by-signer", "signer"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Signers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"regen", "data", "v1alpha2", "signers", "iri"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Signers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"regen", "data", "v1", "signers", "iri"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Resolvers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"regen", "data", "v1alpha2", "resolvers", "iri"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Resolvers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"regen", "data", "v1", "resolvers", "iri"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ResolverInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"regen", "data", "v1alpha2", "resolver", "url"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_ResolverInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"regen", "data", "v1", "resolver", "url"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/data/server/msg_server.go b/x/data/server/msg_server.go index 86bce87db6..da89a01005 100644 --- a/x/data/server/msg_server.go +++ b/x/data/server/msg_server.go @@ -10,7 +10,7 @@ import ( cosmossdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - datav1alpha2 "github.com/regen-network/regen-ledger/api/regen/data/v1alpha2" + api "github.com/regen-network/regen-ledger/api/regen/data/v1" sdk "github.com/regen-network/regen-ledger/types" "github.com/regen-network/regen-ledger/x/data" ) @@ -132,7 +132,7 @@ func (s serverImpl) DefineResolver(ctx context.Context, msg *data.MsgDefineResol return nil, err } - id, err := s.stateStore.ResolverInfoStore().InsertReturningID(ctx, &datav1alpha2.ResolverInfo{ + id, err := s.stateStore.ResolverInfoStore().InsertReturningID(ctx, &api.ResolverInfo{ Url: msg.ResolverUrl, Manager: manager.Bytes(), }) @@ -165,7 +165,7 @@ func (s serverImpl) RegisterResolver(ctx context.Context, msg *data.MsgRegisterR } err = s.stateStore.DataResolverStore().Save( ctx, - &datav1alpha2.DataResolver{ + &api.DataResolver{ ResolverId: msg.ResolverId, Id: id, }, diff --git a/x/data/server/query_server.go b/x/data/server/query_server.go index 5e4245960b..83cb811969 100644 --- a/x/data/server/query_server.go +++ b/x/data/server/query_server.go @@ -2,20 +2,19 @@ package server import ( "context" - "github.com/regen-network/regen-ledger/types/ormstore" - - "github.com/cosmos/cosmos-sdk/orm/model/ormlist" - datav1alpha2 "github.com/regen-network/regen-ledger/api/regen/data/v1alpha2" + gogotypes "github.com/gogo/protobuf/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + "github.com/cosmos/cosmos-sdk/orm/model/ormlist" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - gogotypes "github.com/gogo/protobuf/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" + api "github.com/regen-network/regen-ledger/api/regen/data/v1" "github.com/regen-network/regen-ledger/types" + "github.com/regen-network/regen-ledger/types/ormstore" "github.com/regen-network/regen-ledger/x/data" ) @@ -132,7 +131,7 @@ func (s serverImpl) Resolvers(ctx context.Context, request *data.QueryResolversR } it, err := s.stateStore.DataResolverStore(). - List(ctx, datav1alpha2.DataResolverPrimaryKey{}.WithId(id), + List(ctx, api.DataResolverPrimaryKey{}.WithId(id), ormlist.Paginate(ormstore.GogoPageReqToPulsarPageReq(request.Pagination))) if err != nil { return nil, err diff --git a/x/data/server/server.go b/x/data/server/server.go index 50cb60eae0..08530b07fe 100644 --- a/x/data/server/server.go +++ b/x/data/server/server.go @@ -1,20 +1,21 @@ package server import ( + "google.golang.org/protobuf/reflect/protoreflect" + "github.com/cosmos/cosmos-sdk/orm/model/ormdb" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/regen-network/regen-ledger/types/ormstore" - "google.golang.org/protobuf/reflect/protoreflect" - datav1alpha2 "github.com/regen-network/regen-ledger/api/regen/data/v1alpha2" + api "github.com/regen-network/regen-ledger/api/regen/data/v1" servermodule "github.com/regen-network/regen-ledger/types/module/server" + "github.com/regen-network/regen-ledger/types/ormstore" "github.com/regen-network/regen-ledger/x/data" "github.com/regen-network/regen-ledger/x/data/server/lookup" ) var ModuleSchema = ormdb.ModuleSchema{ FileDescriptors: map[uint32]protoreflect.FileDescriptor{ - 1: datav1alpha2.File_regen_data_v1alpha2_state_proto, + 1: api.File_regen_data_v1_state_proto, }, Prefix: []byte{ORMStatePrefix}, } @@ -22,7 +23,7 @@ var ModuleSchema = ormdb.ModuleSchema{ type serverImpl struct { storeKey sdk.StoreKey iriIDTable lookup.Table - stateStore datav1alpha2.StateStore + stateStore api.StateStore } func newServer(storeKey sdk.StoreKey) serverImpl { @@ -36,7 +37,7 @@ func newServer(storeKey sdk.StoreKey) serverImpl { panic(err) } - stateStore, err := datav1alpha2.NewStateStore(db) + stateStore, err := api.NewStateStore(db) if err != nil { panic(err) } diff --git a/x/data/state.pb.go b/x/data/state.pb.go index 70f53096ed..c77a80ac5a 100644 --- a/x/data/state.pb.go +++ b/x/data/state.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: regen/data/v1alpha2/state.proto +// source: regen/data/v1/state.proto package data @@ -36,7 +36,7 @@ func (m *DataID) Reset() { *m = DataID{} } func (m *DataID) String() string { return proto.CompactTextString(m) } func (*DataID) ProtoMessage() {} func (*DataID) Descriptor() ([]byte, []int) { - return fileDescriptor_60b0d5034755fd28, []int{0} + return fileDescriptor_29cc90d94a9e9542, []int{0} } func (m *DataID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -92,7 +92,7 @@ func (m *DataAnchor) Reset() { *m = DataAnchor{} } func (m *DataAnchor) String() string { return proto.CompactTextString(m) } func (*DataAnchor) ProtoMessage() {} func (*DataAnchor) Descriptor() ([]byte, []int) { - return fileDescriptor_60b0d5034755fd28, []int{1} + return fileDescriptor_29cc90d94a9e9542, []int{1} } func (m *DataAnchor) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -149,7 +149,7 @@ func (m *DataSigner) Reset() { *m = DataSigner{} } func (m *DataSigner) String() string { return proto.CompactTextString(m) } func (*DataSigner) ProtoMessage() {} func (*DataSigner) Descriptor() ([]byte, []int) { - return fileDescriptor_60b0d5034755fd28, []int{2} + return fileDescriptor_29cc90d94a9e9542, []int{2} } func (m *DataSigner) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -214,7 +214,7 @@ func (m *ResolverInfo) Reset() { *m = ResolverInfo{} } func (m *ResolverInfo) String() string { return proto.CompactTextString(m) } func (*ResolverInfo) ProtoMessage() {} func (*ResolverInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_60b0d5034755fd28, []int{3} + return fileDescriptor_29cc90d94a9e9542, []int{3} } func (m *ResolverInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -277,7 +277,7 @@ func (m *DataResolver) Reset() { *m = DataResolver{} } func (m *DataResolver) String() string { return proto.CompactTextString(m) } func (*DataResolver) ProtoMessage() {} func (*DataResolver) Descriptor() ([]byte, []int) { - return fileDescriptor_60b0d5034755fd28, []int{4} + return fileDescriptor_29cc90d94a9e9542, []int{4} } func (m *DataResolver) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -321,44 +321,44 @@ func (m *DataResolver) GetResolverId() uint64 { } func init() { - proto.RegisterType((*DataID)(nil), "regen.data.v1alpha2.DataID") - proto.RegisterType((*DataAnchor)(nil), "regen.data.v1alpha2.DataAnchor") - proto.RegisterType((*DataSigner)(nil), "regen.data.v1alpha2.DataSigner") - proto.RegisterType((*ResolverInfo)(nil), "regen.data.v1alpha2.ResolverInfo") - proto.RegisterType((*DataResolver)(nil), "regen.data.v1alpha2.DataResolver") + proto.RegisterType((*DataID)(nil), "regen.data.v1.DataID") + proto.RegisterType((*DataAnchor)(nil), "regen.data.v1.DataAnchor") + proto.RegisterType((*DataSigner)(nil), "regen.data.v1.DataSigner") + proto.RegisterType((*ResolverInfo)(nil), "regen.data.v1.ResolverInfo") + proto.RegisterType((*DataResolver)(nil), "regen.data.v1.DataResolver") } -func init() { proto.RegisterFile("regen/data/v1alpha2/state.proto", fileDescriptor_60b0d5034755fd28) } +func init() { proto.RegisterFile("regen/data/v1/state.proto", fileDescriptor_29cc90d94a9e9542) } -var fileDescriptor_60b0d5034755fd28 = []byte{ - // 431 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xb1, 0x8e, 0xd3, 0x40, - 0x14, 0xcc, 0x3a, 0xc1, 0xe0, 0x67, 0x2b, 0x58, 0x3e, 0x40, 0xc6, 0x12, 0xce, 0xc9, 0x55, 0x8a, - 0xe0, 0xd5, 0x1d, 0x0d, 0x72, 0x07, 0x3a, 0x90, 0xd2, 0x1a, 0x2a, 0x28, 0xd0, 0x26, 0xde, 0x38, - 0x2b, 0x6c, 0x6f, 0xb4, 0x5e, 0x1f, 0xfc, 0x00, 0x2d, 0xe2, 0x0b, 0xf8, 0x1e, 0xca, 0x93, 0x68, - 0x28, 0x51, 0xf2, 0x07, 0x7c, 0x01, 0xda, 0xb5, 0xf7, 0x38, 0x94, 0xea, 0x3a, 0x8f, 0xdf, 0xbc, - 0x99, 0xd9, 0xd1, 0x83, 0x99, 0xa0, 0x25, 0x6d, 0x70, 0x41, 0x24, 0xc1, 0x97, 0x67, 0xa4, 0xda, - 0x6d, 0xc9, 0x39, 0x6e, 0x25, 0x91, 0x34, 0xdd, 0x09, 0x2e, 0x79, 0x70, 0xa2, 0x09, 0xa9, 0x22, - 0xa4, 0x86, 0x10, 0x3d, 0x59, 0xf3, 0xb6, 0xe6, 0x2d, 0xe6, 0xa2, 0x36, 0x5b, 0x67, 0x0a, 0xf4, - 0x3b, 0xd1, 0xac, 0xe4, 0xbc, 0xac, 0x28, 0xd6, 0x68, 0xd5, 0x6d, 0xb0, 0x64, 0x35, 0x6d, 0x25, - 0xa9, 0x77, 0x3d, 0x21, 0x79, 0x05, 0xf6, 0x05, 0x91, 0x64, 0x79, 0x11, 0x4c, 0xc1, 0x62, 0x45, - 0x88, 0x4e, 0xd1, 0xdc, 0xcb, 0x2d, 0x56, 0x04, 0x3e, 0x8c, 0x99, 0x60, 0xa1, 0x75, 0x8a, 0xe6, - 0x4e, 0xae, 0x3e, 0xb3, 0xc7, 0x7f, 0xbe, 0xff, 0xfc, 0x3a, 0x3e, 0x81, 0x89, 0x62, 0x06, 0x8e, - 0x9e, 0xfb, 0x28, 0x44, 0x21, 0x4a, 0x36, 0x00, 0x4a, 0xe6, 0x45, 0xb3, 0xde, 0x72, 0x71, 0x24, - 0xf5, 0x1c, 0x9c, 0x6b, 0x5f, 0x2d, 0xe8, 0x9e, 0x47, 0x69, 0x9f, 0x2c, 0x35, 0xc9, 0xd2, 0xb7, - 0x86, 0x91, 0xff, 0x23, 0x67, 0x53, 0x6d, 0x79, 0xaf, 0xb7, 0x0c, 0xad, 0xe4, 0x0b, 0xea, 0x8d, - 0xde, 0xb0, 0xb2, 0xa1, 0xc7, 0x46, 0x8f, 0xc0, 0x6e, 0xf5, 0x44, 0xbb, 0x78, 0xf9, 0x80, 0xfe, - 0x0f, 0x30, 0xbe, 0x4d, 0x80, 0x87, 0x3a, 0xc0, 0x7d, 0x70, 0xc1, 0x61, 0xc5, 0x62, 0x10, 0x1f, - 0x27, 0x12, 0xbc, 0x9c, 0xb6, 0xbc, 0xba, 0xa4, 0x62, 0xd9, 0x6c, 0xf8, 0x8d, 0x20, 0x13, 0x53, - 0x5e, 0x27, 0x2a, 0x53, 0x5e, 0x27, 0xaa, 0x20, 0x84, 0xbb, 0x35, 0x69, 0x48, 0xa9, 0xd6, 0x75, - 0x36, 0x03, 0xb3, 0xb9, 0xb6, 0x48, 0xc0, 0x56, 0x1a, 0x3e, 0x52, 0xc5, 0x76, 0xa2, 0x52, 0xc5, - 0x06, 0xee, 0xf5, 0x92, 0x6f, 0x85, 0x93, 0xe4, 0x3d, 0x78, 0xea, 0xf1, 0xc6, 0xf9, 0xe8, 0xf9, - 0x33, 0x70, 0xc5, 0x30, 0xfb, 0xa0, 0xea, 0xd2, 0x71, 0xc0, 0xfc, 0x5a, 0x16, 0x59, 0xa4, 0xad, - 0x1e, 0x80, 0x0f, 0x53, 0x56, 0x2c, 0x6e, 0x72, 0xef, 0xbc, 0x7c, 0xfd, 0x63, 0x1f, 0xa3, 0xab, - 0x7d, 0x8c, 0x7e, 0xef, 0x63, 0xf4, 0xed, 0x10, 0x8f, 0xae, 0x0e, 0xf1, 0xe8, 0xd7, 0x21, 0x1e, - 0xbd, 0x5b, 0x94, 0x4c, 0x6e, 0xbb, 0x55, 0xba, 0xe6, 0x35, 0xd6, 0x37, 0xf8, 0xb4, 0xa1, 0xf2, - 0x13, 0x17, 0x1f, 0x07, 0x54, 0xd1, 0xa2, 0xa4, 0x02, 0x7f, 0xd6, 0xb7, 0xbb, 0xb2, 0x75, 0xa1, - 0xcf, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0xa5, 0xa2, 0x7c, 0x6c, 0xd0, 0x02, 0x00, 0x00, +var fileDescriptor_29cc90d94a9e9542 = []byte{ + // 430 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x4f, 0x8f, 0x93, 0x40, + 0x1c, 0xed, 0xd0, 0x5a, 0xe5, 0x07, 0x56, 0x82, 0x7f, 0xc2, 0x92, 0xc8, 0x6e, 0x38, 0xf5, 0x50, + 0x99, 0xa0, 0x17, 0xc3, 0x4d, 0xb3, 0x9a, 0xf4, 0x8a, 0x9e, 0xf4, 0x60, 0xa6, 0x65, 0x4a, 0x27, + 0x02, 0xd3, 0x0c, 0x03, 0xfa, 0x05, 0xbc, 0x1a, 0x3f, 0x81, 0x9f, 0xc7, 0xe3, 0x26, 0x5e, 0x3c, + 0x9a, 0xf6, 0x1b, 0xf8, 0x09, 0xcc, 0x0c, 0xb0, 0xd6, 0xf4, 0xb4, 0x37, 0x1e, 0xef, 0xcd, 0x7b, + 0x6f, 0x5e, 0x06, 0xce, 0x04, 0xcd, 0x69, 0x85, 0x33, 0x22, 0x09, 0x6e, 0x63, 0x5c, 0x4b, 0x22, + 0x69, 0xb4, 0x13, 0x5c, 0x72, 0xf7, 0xae, 0xa6, 0x22, 0x45, 0x45, 0x6d, 0xec, 0x3f, 0x5e, 0xf3, + 0xba, 0xe4, 0x35, 0xe6, 0xa2, 0xc4, 0x6d, 0x4c, 0x8a, 0xdd, 0x96, 0xc4, 0x0a, 0x74, 0x6a, 0xff, + 0x3c, 0xe7, 0x3c, 0x2f, 0x28, 0xd6, 0x68, 0xd5, 0x6c, 0xb0, 0x64, 0x25, 0xad, 0x25, 0x29, 0x77, + 0x9d, 0x20, 0x7c, 0x05, 0xd3, 0x4b, 0x22, 0xc9, 0xf2, 0xd2, 0x9d, 0x81, 0xc1, 0x32, 0x0f, 0x5d, + 0xa0, 0xb9, 0x9d, 0x1a, 0x2c, 0x73, 0x1d, 0x18, 0x33, 0xc1, 0x3c, 0xe3, 0x02, 0xcd, 0xcd, 0x54, + 0x7d, 0x26, 0x67, 0x7f, 0xbe, 0xff, 0xfc, 0x3a, 0xbe, 0x0f, 0x13, 0xa5, 0x74, 0x4d, 0xcd, 0x3b, + 0xc8, 0x43, 0x1e, 0x0a, 0x37, 0x00, 0xca, 0xe6, 0x45, 0xb5, 0xde, 0x72, 0x71, 0x62, 0xf5, 0x1c, + 0xcc, 0xeb, 0x5c, 0x6d, 0x68, 0x3d, 0xf5, 0xa3, 0xae, 0x59, 0x34, 0x34, 0x8b, 0xde, 0x0e, 0x8a, + 0xf4, 0x9f, 0x38, 0x99, 0xe9, 0xc8, 0x3b, 0x5d, 0xa4, 0x67, 0x84, 0x5f, 0x50, 0x17, 0xf4, 0x86, + 0xe5, 0x15, 0x3d, 0x0d, 0x7a, 0x04, 0xd3, 0x5a, 0x33, 0x3a, 0xc5, 0x4e, 0x7b, 0xf4, 0x7f, 0x81, + 0xf1, 0x4d, 0x0a, 0x3c, 0xd4, 0x05, 0xee, 0x81, 0x05, 0x26, 0xcb, 0x16, 0xbd, 0xf9, 0x38, 0x94, + 0x60, 0xa7, 0xb4, 0xe6, 0x45, 0x4b, 0xc5, 0xb2, 0xda, 0xf0, 0xa3, 0x22, 0x93, 0x61, 0xbc, 0x46, + 0x14, 0xc3, 0x78, 0x8d, 0x28, 0x5c, 0x0f, 0x6e, 0x97, 0xa4, 0x22, 0xb9, 0x3a, 0xae, 0xbb, 0x0d, + 0x30, 0x99, 0xeb, 0x88, 0x10, 0xa6, 0xca, 0xc3, 0x41, 0x6a, 0xd8, 0x46, 0x14, 0x6a, 0x58, 0xd7, + 0xba, 0x3e, 0xe4, 0x18, 0xde, 0x24, 0x7c, 0x0f, 0xb6, 0xba, 0xfc, 0x90, 0x7c, 0x72, 0xfd, 0x73, + 0xb0, 0x44, 0xcf, 0x7d, 0x50, 0x73, 0xe9, 0x3a, 0x30, 0xfc, 0x5a, 0x66, 0x89, 0xaf, 0xa3, 0x1e, + 0x80, 0x03, 0x33, 0x96, 0x2d, 0x8e, 0xb5, 0xb7, 0x5e, 0xbe, 0xfe, 0xb1, 0x0f, 0xd0, 0xd5, 0x3e, + 0x40, 0xbf, 0xf7, 0x01, 0xfa, 0x76, 0x08, 0x46, 0x57, 0x87, 0x60, 0xf4, 0xeb, 0x10, 0x8c, 0xde, + 0x2d, 0x72, 0x26, 0xb7, 0xcd, 0x2a, 0x5a, 0xf3, 0x12, 0xeb, 0xd7, 0xf7, 0xa4, 0xa2, 0xf2, 0x13, + 0x17, 0x1f, 0x7b, 0x54, 0xd0, 0x2c, 0xa7, 0x02, 0x7f, 0xd6, 0xef, 0x75, 0x35, 0xd5, 0x83, 0x3e, + 0xfb, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x39, 0x15, 0xd8, 0xaa, 0xc4, 0x02, 0x00, 0x00, } func (m *DataID) Marshal() (dAtA []byte, err error) { diff --git a/x/data/tx.pb.go b/x/data/tx.pb.go index fb25fb3da2..b7cbc0f77f 100644 --- a/x/data/tx.pb.go +++ b/x/data/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: regen/data/v1alpha2/tx.proto +// source: regen/data/v1/tx.proto package data @@ -43,7 +43,7 @@ func (m *MsgAnchorData) Reset() { *m = MsgAnchorData{} } func (m *MsgAnchorData) String() string { return proto.CompactTextString(m) } func (*MsgAnchorData) ProtoMessage() {} func (*MsgAnchorData) Descriptor() ([]byte, []int) { - return fileDescriptor_ff31907a513a4b24, []int{0} + return fileDescriptor_c87f072557099c45, []int{0} } func (m *MsgAnchorData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -98,7 +98,7 @@ func (m *MsgAnchorDataResponse) Reset() { *m = MsgAnchorDataResponse{} } func (m *MsgAnchorDataResponse) String() string { return proto.CompactTextString(m) } func (*MsgAnchorDataResponse) ProtoMessage() {} func (*MsgAnchorDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ff31907a513a4b24, []int{1} + return fileDescriptor_c87f072557099c45, []int{1} } func (m *MsgAnchorDataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -157,7 +157,7 @@ func (m *MsgSignData) Reset() { *m = MsgSignData{} } func (m *MsgSignData) String() string { return proto.CompactTextString(m) } func (*MsgSignData) ProtoMessage() {} func (*MsgSignData) Descriptor() ([]byte, []int) { - return fileDescriptor_ff31907a513a4b24, []int{2} + return fileDescriptor_c87f072557099c45, []int{2} } func (m *MsgSignData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -194,7 +194,7 @@ func (m *MsgSignDataResponse) Reset() { *m = MsgSignDataResponse{} } func (m *MsgSignDataResponse) String() string { return proto.CompactTextString(m) } func (*MsgSignDataResponse) ProtoMessage() {} func (*MsgSignDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ff31907a513a4b24, []int{3} + return fileDescriptor_c87f072557099c45, []int{3} } func (m *MsgSignDataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -242,7 +242,7 @@ func (m *MsgDefineResolver) Reset() { *m = MsgDefineResolver{} } func (m *MsgDefineResolver) String() string { return proto.CompactTextString(m) } func (*MsgDefineResolver) ProtoMessage() {} func (*MsgDefineResolver) Descriptor() ([]byte, []int) { - return fileDescriptor_ff31907a513a4b24, []int{4} + return fileDescriptor_c87f072557099c45, []int{4} } func (m *MsgDefineResolver) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -295,7 +295,7 @@ func (m *MsgDefineResolverResponse) Reset() { *m = MsgDefineResolverResp func (m *MsgDefineResolverResponse) String() string { return proto.CompactTextString(m) } func (*MsgDefineResolverResponse) ProtoMessage() {} func (*MsgDefineResolverResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ff31907a513a4b24, []int{5} + return fileDescriptor_c87f072557099c45, []int{5} } func (m *MsgDefineResolverResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -346,7 +346,7 @@ func (m *MsgRegisterResolver) Reset() { *m = MsgRegisterResolver{} } func (m *MsgRegisterResolver) String() string { return proto.CompactTextString(m) } func (*MsgRegisterResolver) ProtoMessage() {} func (*MsgRegisterResolver) Descriptor() ([]byte, []int) { - return fileDescriptor_ff31907a513a4b24, []int{6} + return fileDescriptor_c87f072557099c45, []int{6} } func (m *MsgRegisterResolver) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -404,7 +404,7 @@ func (m *MsgRegisterResolverResponse) Reset() { *m = MsgRegisterResolver func (m *MsgRegisterResolverResponse) String() string { return proto.CompactTextString(m) } func (*MsgRegisterResolverResponse) ProtoMessage() {} func (*MsgRegisterResolverResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ff31907a513a4b24, []int{7} + return fileDescriptor_c87f072557099c45, []int{7} } func (m *MsgRegisterResolverResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -434,54 +434,53 @@ func (m *MsgRegisterResolverResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRegisterResolverResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgAnchorData)(nil), "regen.data.v1alpha2.MsgAnchorData") - proto.RegisterType((*MsgAnchorDataResponse)(nil), "regen.data.v1alpha2.MsgAnchorDataResponse") - proto.RegisterType((*MsgSignData)(nil), "regen.data.v1alpha2.MsgSignData") - proto.RegisterType((*MsgSignDataResponse)(nil), "regen.data.v1alpha2.MsgSignDataResponse") - proto.RegisterType((*MsgDefineResolver)(nil), "regen.data.v1alpha2.MsgDefineResolver") - proto.RegisterType((*MsgDefineResolverResponse)(nil), "regen.data.v1alpha2.MsgDefineResolverResponse") - proto.RegisterType((*MsgRegisterResolver)(nil), "regen.data.v1alpha2.MsgRegisterResolver") - proto.RegisterType((*MsgRegisterResolverResponse)(nil), "regen.data.v1alpha2.MsgRegisterResolverResponse") -} - -func init() { proto.RegisterFile("regen/data/v1alpha2/tx.proto", fileDescriptor_ff31907a513a4b24) } - -var fileDescriptor_ff31907a513a4b24 = []byte{ - // 534 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x4f, 0x6f, 0xd3, 0x30, - 0x18, 0xc6, 0x9b, 0xa5, 0x1a, 0xf4, 0x2d, 0xa0, 0x91, 0x31, 0x54, 0x02, 0xa4, 0x21, 0x87, 0xa9, - 0x42, 0xe0, 0x40, 0xe1, 0x80, 0x26, 0x2e, 0xc0, 0xc4, 0x9f, 0x43, 0x25, 0x14, 0xfe, 0x1c, 0x10, - 0x68, 0x72, 0x5b, 0xcf, 0xb1, 0x48, 0xed, 0xc8, 0x76, 0xc7, 0xf8, 0x02, 0x88, 0x23, 0x17, 0xee, - 0x7c, 0x1c, 0x8e, 0x3b, 0x72, 0x44, 0xed, 0x17, 0x41, 0x71, 0xeb, 0xb0, 0x76, 0xad, 0xda, 0x5b, - 0x5e, 0xbf, 0x3f, 0x3f, 0xef, 0xf3, 0xd8, 0x6e, 0xe1, 0x86, 0x24, 0x94, 0xf0, 0xb8, 0x8f, 0x35, - 0x8e, 0x8f, 0xee, 0xe3, 0x2c, 0x4f, 0x71, 0x3b, 0xd6, 0xc7, 0x28, 0x97, 0x42, 0x0b, 0x6f, 0xdb, - 0x74, 0x51, 0xd1, 0x45, 0xb6, 0xeb, 0x5f, 0xa1, 0x82, 0x0a, 0xd3, 0x8f, 0x8b, 0xaf, 0x09, 0xea, - 0x37, 0xa9, 0x10, 0x34, 0x23, 0xb1, 0xa9, 0xba, 0xc3, 0xc3, 0x58, 0xb3, 0x01, 0x51, 0x1a, 0x0f, - 0x72, 0x0b, 0x2c, 0x9c, 0xf4, 0x35, 0x27, 0x6a, 0x02, 0x44, 0x9f, 0xe0, 0x62, 0x47, 0xd1, 0x27, - 0xbc, 0x97, 0x0a, 0xb9, 0x8f, 0x35, 0xf6, 0xae, 0xc2, 0xa6, 0x22, 0xbc, 0x4f, 0x64, 0xc3, 0x09, - 0x9d, 0x56, 0x2d, 0x99, 0x56, 0xde, 0x43, 0xa8, 0xa6, 0x58, 0xa5, 0x8d, 0x8d, 0xd0, 0x69, 0xd5, - 0xdb, 0x21, 0x5a, 0x60, 0x12, 0x3d, 0x13, 0x5c, 0x13, 0xae, 0x5f, 0x62, 0x95, 0x26, 0x86, 0x8e, - 0x7a, 0xb0, 0x33, 0x23, 0x9f, 0x10, 0x95, 0x0b, 0xae, 0x88, 0xf7, 0x08, 0x6a, 0xa5, 0x57, 0x33, - 0xa9, 0xde, 0xf6, 0xd1, 0x24, 0x0d, 0xb2, 0x69, 0xd0, 0x5b, 0x4b, 0x24, 0xff, 0x61, 0x6f, 0x0b, - 0x5c, 0x26, 0x99, 0xf1, 0x51, 0x4b, 0x8a, 0xcf, 0x88, 0x41, 0xbd, 0xa3, 0xe8, 0x1b, 0x46, 0xb9, - 0x49, 0xd0, 0x80, 0x73, 0x8a, 0x51, 0x4e, 0xa4, 0x6a, 0x38, 0xa1, 0xdb, 0xaa, 0x25, 0xb6, 0xf4, - 0xf6, 0x66, 0x32, 0xec, 0xae, 0xca, 0x80, 0x5e, 0x48, 0x9c, 0x4f, 0x93, 0xec, 0x55, 0xbf, 0xff, - 0x6a, 0x56, 0xa2, 0x1d, 0xd8, 0x3e, 0x35, 0xca, 0xa6, 0x89, 0x5e, 0xc3, 0xe5, 0x8e, 0xa2, 0xfb, - 0xe4, 0x90, 0x71, 0x92, 0x10, 0x25, 0xb2, 0x23, 0x22, 0x0b, 0x1f, 0x03, 0xcc, 0x31, 0x2d, 0x8f, - 0xd2, 0x96, 0xde, 0x2d, 0xb8, 0x20, 0xa7, 0xd4, 0xc1, 0x50, 0x66, 0xd3, 0x2c, 0x75, 0xbb, 0xf6, - 0x4e, 0x66, 0xd1, 0x63, 0xb8, 0x76, 0x46, 0xb1, 0x3c, 0xbc, 0x26, 0x94, 0xec, 0x01, 0xeb, 0x1b, - 0xf5, 0x6a, 0x02, 0x76, 0xe9, 0x55, 0x3f, 0xfa, 0xe6, 0x18, 0x9f, 0x09, 0xa1, 0x4c, 0x69, 0xb3, - 0x71, 0x95, 0xa5, 0x39, 0xc9, 0x8d, 0x79, 0xc9, 0xe2, 0xfe, 0x8b, 0x83, 0x6a, 0xb8, 0xa1, 0xbb, - 0xde, 0xfd, 0x17, 0xad, 0xe8, 0x26, 0x5c, 0x5f, 0xe0, 0xc3, 0x06, 0x69, 0xff, 0x74, 0xc1, 0xed, - 0x28, 0xea, 0x7d, 0x04, 0x38, 0xf5, 0x04, 0xa3, 0x85, 0xe2, 0x33, 0xef, 0xc8, 0xbf, 0xbd, 0x9a, - 0x29, 0x8f, 0xeb, 0x3d, 0x9c, 0x2f, 0x1f, 0x47, 0xb8, 0x6c, 0x9f, 0x25, 0xfc, 0xd6, 0x2a, 0xa2, - 0xd4, 0x4d, 0xe1, 0xd2, 0xdc, 0x95, 0xef, 0x2e, 0xdb, 0x3b, 0xcb, 0xf9, 0x68, 0x3d, 0xae, 0x9c, - 0xc4, 0x61, 0xeb, 0xcc, 0x5d, 0x2e, 0xf5, 0x39, 0x4f, 0xfa, 0xf7, 0xd6, 0x25, 0xed, 0xbc, 0xa7, - 0xcf, 0x7f, 0x8f, 0x02, 0xe7, 0x64, 0x14, 0x38, 0x7f, 0x47, 0x81, 0xf3, 0x63, 0x1c, 0x54, 0x4e, - 0xc6, 0x41, 0xe5, 0xcf, 0x38, 0xa8, 0x7c, 0xb8, 0x43, 0x99, 0x4e, 0x87, 0x5d, 0xd4, 0x13, 0x83, - 0xd8, 0xa8, 0xde, 0xe5, 0x44, 0x7f, 0x11, 0xf2, 0xf3, 0xb4, 0xca, 0x48, 0x9f, 0x12, 0x19, 0x1f, - 0x9b, 0xbf, 0x9c, 0xee, 0xa6, 0xf9, 0x29, 0x3f, 0xf8, 0x17, 0x00, 0x00, 0xff, 0xff, 0x75, 0x3f, - 0x36, 0xda, 0xf1, 0x04, 0x00, 0x00, + proto.RegisterType((*MsgAnchorData)(nil), "regen.data.v1.MsgAnchorData") + proto.RegisterType((*MsgAnchorDataResponse)(nil), "regen.data.v1.MsgAnchorDataResponse") + proto.RegisterType((*MsgSignData)(nil), "regen.data.v1.MsgSignData") + proto.RegisterType((*MsgSignDataResponse)(nil), "regen.data.v1.MsgSignDataResponse") + proto.RegisterType((*MsgDefineResolver)(nil), "regen.data.v1.MsgDefineResolver") + proto.RegisterType((*MsgDefineResolverResponse)(nil), "regen.data.v1.MsgDefineResolverResponse") + proto.RegisterType((*MsgRegisterResolver)(nil), "regen.data.v1.MsgRegisterResolver") + proto.RegisterType((*MsgRegisterResolverResponse)(nil), "regen.data.v1.MsgRegisterResolverResponse") +} + +func init() { proto.RegisterFile("regen/data/v1/tx.proto", fileDescriptor_c87f072557099c45) } + +var fileDescriptor_c87f072557099c45 = []byte{ + // 528 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0x4d, 0x6f, 0xd3, 0x40, + 0x10, 0x8d, 0x9b, 0xa8, 0x90, 0x09, 0x45, 0xc5, 0xd0, 0x2a, 0x35, 0xe0, 0x18, 0x8b, 0x43, 0x84, + 0x60, 0xad, 0x16, 0x0e, 0x08, 0x71, 0x01, 0x2a, 0xbe, 0xa4, 0x48, 0x95, 0x01, 0x21, 0x21, 0xa4, + 0x6a, 0x13, 0x6f, 0xd7, 0x16, 0xce, 0xae, 0xb5, 0xbb, 0x09, 0xe5, 0xc6, 0x91, 0x23, 0x3f, 0x81, + 0x9f, 0xc3, 0xb1, 0x47, 0x8e, 0x28, 0x11, 0xff, 0x03, 0x79, 0xe3, 0x35, 0xb5, 0xd3, 0x92, 0xdb, + 0xce, 0xcc, 0xdb, 0xb7, 0xef, 0xcd, 0x8c, 0x0d, 0xdb, 0x82, 0x50, 0xc2, 0x82, 0x08, 0x2b, 0x1c, + 0x4c, 0x77, 0x03, 0x75, 0x8c, 0x32, 0xc1, 0x15, 0xb7, 0x37, 0x74, 0x1e, 0xe5, 0x79, 0x34, 0xdd, + 0x75, 0xae, 0x51, 0x4e, 0xb9, 0xae, 0x04, 0xf9, 0x69, 0x01, 0x72, 0x7a, 0x94, 0x73, 0x9a, 0x92, + 0x40, 0x47, 0xc3, 0xc9, 0x51, 0xa0, 0x92, 0x31, 0x91, 0x0a, 0x8f, 0xb3, 0x02, 0xb0, 0x53, 0x63, + 0xff, 0x92, 0x11, 0xb9, 0x28, 0xf9, 0xef, 0x61, 0x63, 0x20, 0xe9, 0x13, 0x36, 0x8a, 0xb9, 0xd8, + 0xc7, 0x0a, 0xdb, 0xdb, 0xb0, 0x2e, 0x09, 0x8b, 0x88, 0xe8, 0x5a, 0x9e, 0xd5, 0x6f, 0x87, 0x45, + 0x64, 0x23, 0x68, 0xc5, 0x58, 0xc6, 0xdd, 0x35, 0xcf, 0xea, 0x77, 0xf6, 0x1c, 0x54, 0x11, 0x86, + 0x9e, 0x71, 0xa6, 0x08, 0x53, 0x2f, 0xb1, 0x8c, 0x43, 0x8d, 0xf3, 0x47, 0xb0, 0x55, 0x21, 0x0e, + 0x89, 0xcc, 0x38, 0x93, 0xc4, 0x7e, 0x08, 0xed, 0x52, 0x9f, 0x7e, 0x23, 0x67, 0x5b, 0x38, 0x40, + 0xc6, 0x01, 0x7a, 0x6b, 0x10, 0xe1, 0x3f, 0xb0, 0xbd, 0x09, 0xcd, 0x44, 0x24, 0x5a, 0x41, 0x3b, + 0xcc, 0x8f, 0xfe, 0x08, 0x3a, 0x03, 0x49, 0xdf, 0x24, 0x94, 0x69, 0xed, 0x5d, 0xb8, 0x20, 0x13, + 0xca, 0x88, 0x90, 0x5d, 0xcb, 0x6b, 0xf6, 0xdb, 0xa1, 0x09, 0xed, 0x07, 0x15, 0xf5, 0xde, 0xf9, + 0xea, 0xd1, 0x0b, 0x81, 0xb3, 0xc2, 0xc3, 0xa3, 0xd6, 0xb7, 0x1f, 0xbd, 0x86, 0xbf, 0x05, 0x57, + 0x4f, 0x3d, 0x62, 0x7c, 0xf8, 0x07, 0x70, 0x65, 0x20, 0xe9, 0x3e, 0x39, 0x4a, 0x18, 0x09, 0x89, + 0xe4, 0xe9, 0x94, 0x88, 0x5c, 0xc1, 0x18, 0x33, 0x4c, 0xcb, 0xf6, 0x99, 0xd0, 0xbe, 0x05, 0x97, + 0x44, 0x81, 0x3a, 0x9c, 0x88, 0xb4, 0x70, 0xd1, 0x31, 0xb9, 0x77, 0x22, 0xf5, 0x1f, 0xc3, 0xce, + 0x12, 0x63, 0xd9, 0xb6, 0x1e, 0x94, 0xd8, 0xc3, 0x24, 0xd2, 0xec, 0xad, 0x10, 0x4c, 0xea, 0x55, + 0xe4, 0x7f, 0xb5, 0xb4, 0xce, 0x90, 0xd0, 0x44, 0x2a, 0x7d, 0x71, 0x95, 0xa4, 0x1a, 0xe5, 0x5a, + 0x9d, 0x32, 0x9f, 0x79, 0xde, 0xa2, 0x6e, 0xd3, 0x6b, 0xae, 0x9a, 0x79, 0x9e, 0xf4, 0x6f, 0xc2, + 0xf5, 0x33, 0x14, 0x18, 0x0b, 0x7b, 0x7f, 0xd6, 0xa0, 0x39, 0x90, 0xd4, 0x3e, 0x00, 0x38, 0xb5, + 0x70, 0x37, 0x6a, 0xb4, 0x95, 0xad, 0x71, 0x6e, 0xff, 0xaf, 0x5a, 0x36, 0xe7, 0x35, 0x5c, 0x2c, + 0x97, 0xc0, 0x59, 0xbe, 0x61, 0x6a, 0x8e, 0x7f, 0x7e, 0xad, 0xe4, 0xfa, 0x08, 0x97, 0x6b, 0x43, + 0xf5, 0x96, 0x6f, 0x55, 0x11, 0x4e, 0x7f, 0x15, 0xa2, 0x64, 0x1f, 0xc2, 0xe6, 0xd2, 0x84, 0xce, + 0x50, 0x55, 0xc7, 0x38, 0x77, 0x56, 0x63, 0xcc, 0x1b, 0x4f, 0x9f, 0xff, 0x9c, 0xb9, 0xd6, 0xc9, + 0xcc, 0xb5, 0x7e, 0xcf, 0x5c, 0xeb, 0xfb, 0xdc, 0x6d, 0x9c, 0xcc, 0xdd, 0xc6, 0xaf, 0xb9, 0xdb, + 0xf8, 0x70, 0x97, 0x26, 0x2a, 0x9e, 0x0c, 0xd1, 0x88, 0x8f, 0x03, 0xcd, 0x77, 0x8f, 0x11, 0xf5, + 0x99, 0x8b, 0x4f, 0x45, 0x94, 0x92, 0x88, 0x12, 0x11, 0x1c, 0xeb, 0x5f, 0xc5, 0x70, 0x5d, 0x7f, + 0x8e, 0xf7, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x03, 0x12, 0xbd, 0xf2, 0x9d, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -541,7 +540,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) AnchorData(ctx context.Context, in *MsgAnchorData, opts ...grpc.CallOption) (*MsgAnchorDataResponse, error) { out := new(MsgAnchorDataResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Msg/AnchorData", in, out, opts...) + err := c.cc.Invoke(ctx, "/regen.data.v1.Msg/AnchorData", in, out, opts...) if err != nil { return nil, err } @@ -550,7 +549,7 @@ func (c *msgClient) AnchorData(ctx context.Context, in *MsgAnchorData, opts ...g func (c *msgClient) SignData(ctx context.Context, in *MsgSignData, opts ...grpc.CallOption) (*MsgSignDataResponse, error) { out := new(MsgSignDataResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Msg/SignData", in, out, opts...) + err := c.cc.Invoke(ctx, "/regen.data.v1.Msg/SignData", in, out, opts...) if err != nil { return nil, err } @@ -559,7 +558,7 @@ func (c *msgClient) SignData(ctx context.Context, in *MsgSignData, opts ...grpc. func (c *msgClient) DefineResolver(ctx context.Context, in *MsgDefineResolver, opts ...grpc.CallOption) (*MsgDefineResolverResponse, error) { out := new(MsgDefineResolverResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Msg/DefineResolver", in, out, opts...) + err := c.cc.Invoke(ctx, "/regen.data.v1.Msg/DefineResolver", in, out, opts...) if err != nil { return nil, err } @@ -568,7 +567,7 @@ func (c *msgClient) DefineResolver(ctx context.Context, in *MsgDefineResolver, o func (c *msgClient) RegisterResolver(ctx context.Context, in *MsgRegisterResolver, opts ...grpc.CallOption) (*MsgRegisterResolverResponse, error) { out := new(MsgRegisterResolverResponse) - err := c.cc.Invoke(ctx, "/regen.data.v1alpha2.Msg/RegisterResolver", in, out, opts...) + err := c.cc.Invoke(ctx, "/regen.data.v1.Msg/RegisterResolver", in, out, opts...) if err != nil { return nil, err } @@ -643,7 +642,7 @@ func _Msg_AnchorData_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1alpha2.Msg/AnchorData", + FullMethod: "/regen.data.v1.Msg/AnchorData", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).AnchorData(ctx, req.(*MsgAnchorData)) @@ -661,7 +660,7 @@ func _Msg_SignData_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1alpha2.Msg/SignData", + FullMethod: "/regen.data.v1.Msg/SignData", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).SignData(ctx, req.(*MsgSignData)) @@ -679,7 +678,7 @@ func _Msg_DefineResolver_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1alpha2.Msg/DefineResolver", + FullMethod: "/regen.data.v1.Msg/DefineResolver", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).DefineResolver(ctx, req.(*MsgDefineResolver)) @@ -697,7 +696,7 @@ func _Msg_RegisterResolver_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/regen.data.v1alpha2.Msg/RegisterResolver", + FullMethod: "/regen.data.v1.Msg/RegisterResolver", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RegisterResolver(ctx, req.(*MsgRegisterResolver)) @@ -706,7 +705,7 @@ func _Msg_RegisterResolver_Handler(srv interface{}, ctx context.Context, dec fun } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "regen.data.v1alpha2.Msg", + ServiceName: "regen.data.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -727,7 +726,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "regen/data/v1alpha2/tx.proto", + Metadata: "regen/data/v1/tx.proto", } func (m *MsgAnchorData) Marshal() (dAtA []byte, err error) { diff --git a/x/data/types.pb.go b/x/data/types.pb.go index 42a16a275b..0edf99d2e5 100644 --- a/x/data/types.pb.go +++ b/x/data/types.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: regen/data/v1alpha2/types.proto +// source: regen/data/v1/types.proto package data @@ -112,7 +112,7 @@ func (x MediaType) String() string { } func (MediaType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e68eefb44eeab1df, []int{0} + return fileDescriptor_a49a7c2bdb2b2846, []int{0} } // GraphCanonicalizationAlgorithm is the graph canonicalization algorithm @@ -140,7 +140,7 @@ func (x GraphCanonicalizationAlgorithm) String() string { } func (GraphCanonicalizationAlgorithm) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e68eefb44eeab1df, []int{1} + return fileDescriptor_a49a7c2bdb2b2846, []int{1} } // GraphMerkleTree is the graph merkle tree type used for hashing, if any @@ -164,7 +164,7 @@ func (x GraphMerkleTree) String() string { } func (GraphMerkleTree) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e68eefb44eeab1df, []int{2} + return fileDescriptor_a49a7c2bdb2b2846, []int{2} } // DigestAlgorithm is the hash digest algorithm @@ -192,7 +192,7 @@ func (x DigestAlgorithm) String() string { } func (DigestAlgorithm) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_e68eefb44eeab1df, []int{3} + return fileDescriptor_a49a7c2bdb2b2846, []int{3} } // ContentHash specifies a hash based content identifier for a piece of data @@ -209,7 +209,7 @@ func (m *ContentHash) Reset() { *m = ContentHash{} } func (m *ContentHash) String() string { return proto.CompactTextString(m) } func (*ContentHash) ProtoMessage() {} func (*ContentHash) Descriptor() ([]byte, []int) { - return fileDescriptor_e68eefb44eeab1df, []int{0} + return fileDescriptor_a49a7c2bdb2b2846, []int{0} } func (m *ContentHash) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -288,16 +288,16 @@ type ContentHash_Raw struct { // hash represents the hash of the data based on the specified digest_algorithm Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // digest_algorithm represents the hash digest algorithm. - DigestAlgorithm DigestAlgorithm `protobuf:"varint,2,opt,name=digest_algorithm,json=digestAlgorithm,proto3,enum=regen.data.v1alpha2.DigestAlgorithm" json:"digest_algorithm,omitempty"` + DigestAlgorithm DigestAlgorithm `protobuf:"varint,2,opt,name=digest_algorithm,json=digestAlgorithm,proto3,enum=regen.data.v1.DigestAlgorithm" json:"digest_algorithm,omitempty"` // media_type represents the MediaType for raw data. - MediaType MediaType `protobuf:"varint,3,opt,name=media_type,json=mediaType,proto3,enum=regen.data.v1alpha2.MediaType" json:"media_type,omitempty"` + MediaType MediaType `protobuf:"varint,3,opt,name=media_type,json=mediaType,proto3,enum=regen.data.v1.MediaType" json:"media_type,omitempty"` } func (m *ContentHash_Raw) Reset() { *m = ContentHash_Raw{} } func (m *ContentHash_Raw) String() string { return proto.CompactTextString(m) } func (*ContentHash_Raw) ProtoMessage() {} func (*ContentHash_Raw) Descriptor() ([]byte, []int) { - return fileDescriptor_e68eefb44eeab1df, []int{0, 0} + return fileDescriptor_a49a7c2bdb2b2846, []int{0, 0} } func (m *ContentHash_Raw) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -352,18 +352,18 @@ type ContentHash_Graph struct { // hash represents the hash of the data based on the specified digest_algorithm Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // digest_algorithm represents the hash digest algorithm. - DigestAlgorithm DigestAlgorithm `protobuf:"varint,2,opt,name=digest_algorithm,json=digestAlgorithm,proto3,enum=regen.data.v1alpha2.DigestAlgorithm" json:"digest_algorithm,omitempty"` + DigestAlgorithm DigestAlgorithm `protobuf:"varint,2,opt,name=digest_algorithm,json=digestAlgorithm,proto3,enum=regen.data.v1.DigestAlgorithm" json:"digest_algorithm,omitempty"` // graph_canonicalization_algorithm represents the RDF graph canonicalization algorithm. - CanonicalizationAlgorithm GraphCanonicalizationAlgorithm `protobuf:"varint,3,opt,name=canonicalization_algorithm,json=canonicalizationAlgorithm,proto3,enum=regen.data.v1alpha2.GraphCanonicalizationAlgorithm" json:"canonicalization_algorithm,omitempty"` + CanonicalizationAlgorithm GraphCanonicalizationAlgorithm `protobuf:"varint,3,opt,name=canonicalization_algorithm,json=canonicalizationAlgorithm,proto3,enum=regen.data.v1.GraphCanonicalizationAlgorithm" json:"canonicalization_algorithm,omitempty"` // merkle_tree is the merkle tree type used for the graph hash, if any - MerkleTree GraphMerkleTree `protobuf:"varint,4,opt,name=merkle_tree,json=merkleTree,proto3,enum=regen.data.v1alpha2.GraphMerkleTree" json:"merkle_tree,omitempty"` + MerkleTree GraphMerkleTree `protobuf:"varint,4,opt,name=merkle_tree,json=merkleTree,proto3,enum=regen.data.v1.GraphMerkleTree" json:"merkle_tree,omitempty"` } func (m *ContentHash_Graph) Reset() { *m = ContentHash_Graph{} } func (m *ContentHash_Graph) String() string { return proto.CompactTextString(m) } func (*ContentHash_Graph) ProtoMessage() {} func (*ContentHash_Graph) Descriptor() ([]byte, []int) { - return fileDescriptor_e68eefb44eeab1df, []int{0, 1} + return fileDescriptor_a49a7c2bdb2b2846, []int{0, 1} } func (m *ContentHash_Graph) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -432,7 +432,7 @@ func (m *SignerEntry) Reset() { *m = SignerEntry{} } func (m *SignerEntry) String() string { return proto.CompactTextString(m) } func (*SignerEntry) ProtoMessage() {} func (*SignerEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_e68eefb44eeab1df, []int{1} + return fileDescriptor_a49a7c2bdb2b2846, []int{1} } func (m *SignerEntry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -476,65 +476,65 @@ func (m *SignerEntry) GetTimestamp() *types.Timestamp { } func init() { - proto.RegisterEnum("regen.data.v1alpha2.MediaType", MediaType_name, MediaType_value) - proto.RegisterEnum("regen.data.v1alpha2.GraphCanonicalizationAlgorithm", GraphCanonicalizationAlgorithm_name, GraphCanonicalizationAlgorithm_value) - proto.RegisterEnum("regen.data.v1alpha2.GraphMerkleTree", GraphMerkleTree_name, GraphMerkleTree_value) - proto.RegisterEnum("regen.data.v1alpha2.DigestAlgorithm", DigestAlgorithm_name, DigestAlgorithm_value) - proto.RegisterType((*ContentHash)(nil), "regen.data.v1alpha2.ContentHash") - proto.RegisterType((*ContentHash_Raw)(nil), "regen.data.v1alpha2.ContentHash.Raw") - proto.RegisterType((*ContentHash_Graph)(nil), "regen.data.v1alpha2.ContentHash.Graph") - proto.RegisterType((*SignerEntry)(nil), "regen.data.v1alpha2.SignerEntry") -} - -func init() { proto.RegisterFile("regen/data/v1alpha2/types.proto", fileDescriptor_e68eefb44eeab1df) } - -var fileDescriptor_e68eefb44eeab1df = []byte{ - // 717 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x41, 0x4f, 0xdb, 0x48, - 0x18, 0x86, 0x63, 0x92, 0x20, 0x65, 0xb2, 0x22, 0xb3, 0xc3, 0xc2, 0x86, 0x68, 0x65, 0xd8, 0xec, - 0x0a, 0x55, 0x11, 0x75, 0x20, 0x94, 0x8a, 0x1e, 0x5a, 0xc9, 0x49, 0x1c, 0xc7, 0x10, 0x3b, 0xd6, - 0xc4, 0x50, 0xca, 0xc5, 0x1a, 0x92, 0xa9, 0x63, 0x11, 0xdb, 0x91, 0x63, 0x9a, 0xd2, 0x63, 0x6f, - 0xbd, 0xf5, 0x5f, 0x54, 0xfd, 0x27, 0x3d, 0x72, 0xec, 0xb1, 0x82, 0xfe, 0x90, 0x2a, 0x13, 0x02, - 0xe9, 0x34, 0xc0, 0xad, 0xb7, 0x99, 0x6f, 0x9e, 0xf7, 0xfd, 0x5e, 0x79, 0xbe, 0x31, 0x58, 0x0d, - 0xa9, 0x43, 0xfd, 0x62, 0x87, 0x44, 0xa4, 0xf8, 0x66, 0x8b, 0xf4, 0xfa, 0x5d, 0x52, 0x2a, 0x46, - 0xe7, 0x7d, 0x3a, 0x90, 0xfa, 0x61, 0x10, 0x05, 0x68, 0x91, 0x01, 0xd2, 0x08, 0x90, 0x26, 0x40, - 0x6e, 0xd5, 0x09, 0x02, 0xa7, 0x47, 0x8b, 0x0c, 0x39, 0x39, 0x7b, 0x5d, 0x8c, 0x5c, 0x8f, 0x0e, - 0x22, 0xe2, 0xf5, 0xc7, 0xaa, 0xfc, 0xf7, 0x04, 0x48, 0x57, 0x02, 0x3f, 0xa2, 0x7e, 0x54, 0x27, - 0x83, 0x2e, 0xda, 0x05, 0xf1, 0x90, 0x0c, 0xb3, 0xc2, 0x9a, 0xf0, 0x28, 0x5d, 0xfa, 0x5f, 0x9a, - 0xe1, 0x29, 0x4d, 0xe1, 0x12, 0x26, 0xc3, 0x7a, 0x0c, 0x8f, 0x24, 0xe8, 0x05, 0x48, 0x3a, 0x21, - 0xe9, 0x77, 0xb3, 0x73, 0x4c, 0xbb, 0xfe, 0xa0, 0x56, 0x1d, 0xd1, 0xf5, 0x18, 0x1e, 0xcb, 0x72, - 0x9f, 0x05, 0x10, 0xc7, 0x64, 0x88, 0x10, 0x48, 0x74, 0xc9, 0xa0, 0xcb, 0x22, 0xfc, 0x81, 0xd9, - 0x1a, 0x35, 0x01, 0xec, 0xb8, 0x0e, 0x1d, 0x44, 0x36, 0xe9, 0x39, 0x41, 0xe8, 0x46, 0x5d, 0x8f, - 0xb5, 0x59, 0xb8, 0x23, 0x62, 0x95, 0xc1, 0xf2, 0x84, 0xc5, 0x99, 0xce, 0xcf, 0x05, 0xf4, 0x1c, - 0x00, 0x8f, 0x76, 0x5c, 0x62, 0x8f, 0xbe, 0x60, 0x36, 0xce, 0xac, 0xc4, 0x99, 0x56, 0xfa, 0x08, - 0xb3, 0xce, 0xfb, 0x14, 0xa7, 0xbc, 0xc9, 0x32, 0xf7, 0x69, 0x0e, 0x24, 0x59, 0xfc, 0xdf, 0x93, - 0x36, 0x04, 0xb9, 0x36, 0xf1, 0x03, 0xdf, 0x6d, 0x93, 0x9e, 0xfb, 0x8e, 0x44, 0x6e, 0xe0, 0x4f, - 0x59, 0x8f, 0xd3, 0x6f, 0xcf, 0xb4, 0x66, 0x21, 0x2b, 0x9c, 0xf6, 0xb6, 0xd3, 0x4a, 0xfb, 0xae, - 0x23, 0xa4, 0x80, 0xb4, 0x47, 0xc3, 0xd3, 0x1e, 0xb5, 0xa3, 0x90, 0xd2, 0x6c, 0xe2, 0x9e, 0xfc, - 0xac, 0x89, 0xce, 0x60, 0x2b, 0xa4, 0x14, 0x03, 0xef, 0x66, 0x5d, 0x4e, 0x82, 0xf8, 0xe0, 0xcc, - 0xcb, 0xdb, 0x20, 0xdd, 0x72, 0x1d, 0x9f, 0x86, 0x8a, 0x1f, 0x85, 0xe7, 0x68, 0x19, 0xcc, 0x0f, - 0xd8, 0x96, 0x7d, 0xb7, 0x14, 0xbe, 0xde, 0xa1, 0x5d, 0x90, 0xba, 0x19, 0xd0, 0xeb, 0x39, 0xca, - 0x49, 0xe3, 0x11, 0x96, 0x26, 0x23, 0x2c, 0x59, 0x13, 0x02, 0xdf, 0xc2, 0x85, 0x0f, 0x71, 0x90, - 0xba, 0xb9, 0x2a, 0x94, 0x03, 0xcb, 0xba, 0x52, 0xd5, 0x64, 0xdb, 0x7a, 0x65, 0x2a, 0xf6, 0x81, - 0xd1, 0x32, 0x95, 0x8a, 0x56, 0xd3, 0x94, 0x2a, 0x8c, 0xa1, 0x15, 0xb0, 0x34, 0x75, 0x66, 0x29, - 0x47, 0x96, 0x6d, 0x36, 0x64, 0xcd, 0x80, 0x02, 0x5a, 0x04, 0x99, 0xa9, 0xa3, 0xbd, 0x56, 0xd3, - 0x80, 0x73, 0x08, 0x81, 0x85, 0xa9, 0x62, 0xa5, 0x75, 0x08, 0xe3, 0x5c, 0xed, 0x48, 0x6f, 0xc0, - 0x04, 0x57, 0x33, 0xab, 0x35, 0x98, 0xe4, 0x0c, 0x2d, 0xad, 0x56, 0x83, 0x90, 0x03, 0xf7, 0x4c, - 0x15, 0xfe, 0xc9, 0x8b, 0x0d, 0x15, 0x22, 0xae, 0xd6, 0x3a, 0x54, 0xe1, 0x22, 0x67, 0xf8, 0x52, - 0x29, 0x9b, 0xf0, 0x2f, 0xae, 0x28, 0x1f, 0x6a, 0x35, 0xb8, 0xc4, 0xa9, 0x55, 0xad, 0x06, 0x97, - 0x79, 0x70, 0xd4, 0xe6, 0x6f, 0xae, 0xa8, 0x9b, 0x8a, 0x0a, 0xd7, 0x38, 0xb5, 0x6e, 0x3e, 0x81, - 0xff, 0xfe, 0xda, 0x5b, 0x87, 0x79, 0x0e, 0x6c, 0xaa, 0x2a, 0xfc, 0xaf, 0xf0, 0x5e, 0x00, 0xe2, - 0xfd, 0x83, 0x87, 0x36, 0xc1, 0x86, 0x8a, 0x65, 0xb3, 0x6e, 0x57, 0x64, 0xa3, 0x69, 0x68, 0x15, - 0xb9, 0xa1, 0x1d, 0xcb, 0x96, 0xd6, 0x34, 0x6c, 0xb9, 0xa1, 0x36, 0xb1, 0x66, 0xd5, 0x75, 0xee, - 0xda, 0x24, 0x50, 0x78, 0x58, 0x81, 0xab, 0x86, 0x5c, 0xda, 0xdc, 0xda, 0x81, 0x42, 0xe1, 0x19, - 0xc8, 0x70, 0x73, 0x89, 0xd6, 0x41, 0x7e, 0x6c, 0xa1, 0x2b, 0x78, 0xbf, 0xa1, 0xd8, 0x16, 0x56, - 0x14, 0xdb, 0x68, 0x1a, 0xdc, 0x84, 0x14, 0x0e, 0x40, 0x86, 0x7b, 0x92, 0x68, 0x0d, 0xfc, 0x53, - 0xd5, 0x54, 0xa5, 0x65, 0xdd, 0x99, 0x6f, 0x16, 0x51, 0x6e, 0xc8, 0xfb, 0x4a, 0xa9, 0x6c, 0x97, - 0x76, 0x9e, 0x42, 0xa1, 0x5c, 0xfb, 0x72, 0x29, 0x0a, 0x17, 0x97, 0xa2, 0xf0, 0xed, 0x52, 0x14, - 0x3e, 0x5e, 0x89, 0xb1, 0x8b, 0x2b, 0x31, 0xf6, 0xf5, 0x4a, 0x8c, 0x1d, 0x6f, 0x38, 0x6e, 0xd4, - 0x3d, 0x3b, 0x91, 0xda, 0x81, 0x57, 0x64, 0x0f, 0xec, 0xb1, 0x4f, 0xa3, 0x61, 0x10, 0x9e, 0x5e, - 0xef, 0x7a, 0xb4, 0xe3, 0xd0, 0xb0, 0xf8, 0x96, 0xfd, 0xfd, 0x4f, 0xe6, 0xd9, 0x4b, 0xd8, 0xfe, - 0x11, 0x00, 0x00, 0xff, 0xff, 0x17, 0xca, 0xb8, 0x37, 0x12, 0x06, 0x00, 0x00, + proto.RegisterEnum("regen.data.v1.MediaType", MediaType_name, MediaType_value) + proto.RegisterEnum("regen.data.v1.GraphCanonicalizationAlgorithm", GraphCanonicalizationAlgorithm_name, GraphCanonicalizationAlgorithm_value) + proto.RegisterEnum("regen.data.v1.GraphMerkleTree", GraphMerkleTree_name, GraphMerkleTree_value) + proto.RegisterEnum("regen.data.v1.DigestAlgorithm", DigestAlgorithm_name, DigestAlgorithm_value) + proto.RegisterType((*ContentHash)(nil), "regen.data.v1.ContentHash") + proto.RegisterType((*ContentHash_Raw)(nil), "regen.data.v1.ContentHash.Raw") + proto.RegisterType((*ContentHash_Graph)(nil), "regen.data.v1.ContentHash.Graph") + proto.RegisterType((*SignerEntry)(nil), "regen.data.v1.SignerEntry") +} + +func init() { proto.RegisterFile("regen/data/v1/types.proto", fileDescriptor_a49a7c2bdb2b2846) } + +var fileDescriptor_a49a7c2bdb2b2846 = []byte{ + // 710 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xcf, 0x53, 0xd3, 0x40, + 0x14, 0xc7, 0x1b, 0xda, 0x32, 0xd3, 0xad, 0xd2, 0x75, 0x11, 0x2c, 0x1d, 0x27, 0xd6, 0x3a, 0xe3, + 0x38, 0x1d, 0x48, 0xa1, 0x8a, 0xe2, 0xc9, 0x49, 0xdb, 0x34, 0x0d, 0x34, 0x69, 0x66, 0x1b, 0x10, + 0xb9, 0x64, 0x42, 0xbb, 0xa6, 0x19, 0x9a, 0xa4, 0x93, 0x04, 0x2a, 0x1e, 0xbd, 0x79, 0xf3, 0xe2, + 0xd1, 0x7f, 0xc4, 0xbf, 0xc0, 0x23, 0x47, 0x8f, 0x0e, 0xfc, 0x23, 0x4e, 0xb7, 0x14, 0xca, 0xf2, + 0xc3, 0x93, 0xb7, 0xdd, 0xf7, 0x3e, 0xdf, 0xef, 0x7b, 0x93, 0x7d, 0x2f, 0x60, 0x29, 0x20, 0x36, + 0xf1, 0x4a, 0x5d, 0x2b, 0xb2, 0x4a, 0x47, 0x6b, 0xa5, 0xe8, 0x78, 0x40, 0x42, 0x61, 0x10, 0xf8, + 0x91, 0x8f, 0xee, 0xd3, 0x94, 0x30, 0x4a, 0x09, 0x47, 0x6b, 0xb9, 0x27, 0xb6, 0xef, 0xdb, 0x7d, + 0x52, 0xa2, 0xc9, 0xfd, 0xc3, 0x8f, 0xa5, 0xc8, 0x71, 0x49, 0x18, 0x59, 0xee, 0x60, 0xcc, 0x17, + 0x7e, 0x26, 0x40, 0xba, 0xea, 0x7b, 0x11, 0xf1, 0xa2, 0x86, 0x15, 0xf6, 0x50, 0x19, 0xc4, 0x03, + 0x6b, 0x98, 0xe5, 0xf2, 0xdc, 0x8b, 0x74, 0x99, 0x17, 0xae, 0xb8, 0x09, 0x53, 0xa0, 0x80, 0xad, + 0x61, 0x23, 0x86, 0x47, 0x30, 0xda, 0x00, 0x49, 0x3b, 0xb0, 0x06, 0xbd, 0xec, 0x0c, 0x55, 0xe5, + 0xef, 0x50, 0xc9, 0x23, 0xae, 0x11, 0xc3, 0x63, 0x41, 0xee, 0x07, 0x07, 0xe2, 0xd8, 0x1a, 0x22, + 0x04, 0x12, 0x3d, 0x2b, 0xec, 0xd1, 0xb2, 0xf7, 0x30, 0x3d, 0x23, 0x05, 0xc0, 0xae, 0x63, 0x93, + 0x30, 0x32, 0xad, 0xbe, 0xed, 0x07, 0x4e, 0xd4, 0x73, 0x69, 0x81, 0xb9, 0x6b, 0x6d, 0xd5, 0x28, + 0x26, 0x4e, 0x28, 0x9c, 0xe9, 0x5e, 0x0d, 0xa0, 0x37, 0x00, 0xb8, 0xa4, 0xeb, 0x58, 0xe6, 0xe8, + 0x4b, 0x65, 0xe3, 0xd4, 0x24, 0xcb, 0x98, 0xa8, 0x23, 0xc0, 0x38, 0x1e, 0x10, 0x9c, 0x72, 0x27, + 0xc7, 0xdc, 0xf7, 0x19, 0x90, 0xa4, 0x2d, 0xff, 0xef, 0x0e, 0xfb, 0x20, 0xd7, 0xb1, 0x3c, 0xdf, + 0x73, 0x3a, 0x56, 0xdf, 0xf9, 0x6c, 0x45, 0x8e, 0xef, 0x4d, 0x99, 0x8e, 0x3b, 0x5e, 0x61, 0x4c, + 0x69, 0x63, 0x55, 0x46, 0x75, 0x59, 0x63, 0xa9, 0x73, 0x5b, 0x0a, 0xbd, 0x03, 0x69, 0x97, 0x04, + 0x07, 0x7d, 0x62, 0x46, 0x01, 0x21, 0xd9, 0xc4, 0x8d, 0x3d, 0x53, 0x7b, 0x95, 0x62, 0x46, 0x40, + 0x08, 0x06, 0xee, 0xc5, 0xb9, 0x92, 0x04, 0xf1, 0xf0, 0xd0, 0x2d, 0x98, 0x20, 0xdd, 0x76, 0x6c, + 0x8f, 0x04, 0x92, 0x17, 0x05, 0xc7, 0x68, 0x11, 0xcc, 0x86, 0xf4, 0x4a, 0xbf, 0x52, 0x0a, 0x9f, + 0xdf, 0xd0, 0x06, 0x48, 0x5d, 0x8c, 0xdd, 0xf9, 0x8c, 0xe4, 0x84, 0xf1, 0x60, 0x0a, 0x93, 0xc1, + 0x14, 0x8c, 0x09, 0x81, 0x2f, 0xe1, 0xe2, 0xd7, 0x38, 0x48, 0x5d, 0x3c, 0x0c, 0xca, 0x81, 0x45, + 0x55, 0xaa, 0x29, 0xa2, 0x69, 0x7c, 0xd0, 0x25, 0x73, 0x5b, 0x6b, 0xeb, 0x52, 0x55, 0xa9, 0x2b, + 0x52, 0x0d, 0xc6, 0xd0, 0x12, 0x58, 0x98, 0xca, 0x19, 0xd2, 0xae, 0x61, 0xea, 0x4d, 0x51, 0xd1, + 0x20, 0x87, 0xe6, 0x41, 0x66, 0x2a, 0xb5, 0xd9, 0x6e, 0x69, 0x70, 0x06, 0x21, 0x30, 0x37, 0x15, + 0xac, 0xb6, 0x77, 0x60, 0x9c, 0x89, 0xed, 0xaa, 0x4d, 0x98, 0x60, 0x62, 0x7a, 0xad, 0x0e, 0x93, + 0x8c, 0xa1, 0xa1, 0xd4, 0xeb, 0x10, 0x32, 0xe0, 0xa6, 0x2e, 0xc3, 0x07, 0xac, 0x58, 0x93, 0x21, + 0x62, 0x62, 0xed, 0x1d, 0x19, 0xce, 0x33, 0x86, 0xef, 0xa5, 0x8a, 0x0e, 0x1f, 0x32, 0x41, 0x71, + 0x47, 0xa9, 0xc3, 0x05, 0x46, 0x2d, 0x2b, 0x75, 0xb8, 0xc8, 0x82, 0xa3, 0x32, 0x8f, 0x98, 0xa0, + 0xaa, 0x4b, 0x32, 0xcc, 0x33, 0x6a, 0x55, 0x7f, 0x05, 0x9f, 0x5e, 0xaf, 0xad, 0xc2, 0x02, 0x03, + 0xb6, 0x64, 0x19, 0x3e, 0x2b, 0x7e, 0xe1, 0x00, 0x7f, 0xf7, 0xc8, 0xa1, 0x55, 0xb0, 0x2c, 0x63, + 0x51, 0x6f, 0x98, 0x55, 0x51, 0x6b, 0x69, 0x4a, 0x55, 0x6c, 0x2a, 0x7b, 0xa2, 0xa1, 0xb4, 0x34, + 0x53, 0x6c, 0xca, 0x2d, 0xac, 0x18, 0x0d, 0x95, 0x79, 0x36, 0x01, 0x14, 0xff, 0xad, 0xc0, 0x35, + 0x4d, 0x2c, 0xaf, 0xae, 0xad, 0x43, 0xae, 0xf8, 0x16, 0x64, 0x98, 0xb9, 0x44, 0xcf, 0x41, 0x61, + 0x6c, 0xa1, 0x4a, 0x78, 0xab, 0x29, 0x99, 0x06, 0x96, 0x24, 0x53, 0x6b, 0x69, 0xcc, 0x84, 0x14, + 0xb7, 0x41, 0x86, 0x59, 0x43, 0x94, 0x07, 0x8f, 0x6b, 0x8a, 0x2c, 0xb5, 0x8d, 0x5b, 0xfb, 0xbb, + 0x89, 0xa8, 0x34, 0xc5, 0x2d, 0xa9, 0x5c, 0x31, 0xcb, 0xeb, 0xaf, 0x21, 0x57, 0xa9, 0xff, 0x3a, + 0xe5, 0xb9, 0x93, 0x53, 0x9e, 0xfb, 0x73, 0xca, 0x73, 0xdf, 0xce, 0xf8, 0xd8, 0xc9, 0x19, 0x1f, + 0xfb, 0x7d, 0xc6, 0xc7, 0xf6, 0x96, 0x6d, 0x27, 0xea, 0x1d, 0xee, 0x0b, 0x1d, 0xdf, 0x2d, 0xd1, + 0xd5, 0x5a, 0xf1, 0x48, 0x34, 0xf4, 0x83, 0x83, 0xf3, 0x5b, 0x9f, 0x74, 0x6d, 0x12, 0x94, 0x3e, + 0xd1, 0xff, 0xf8, 0xfe, 0x2c, 0xdd, 0x84, 0x97, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x64, 0x22, + 0x61, 0x6b, 0xdc, 0x05, 0x00, 0x00, } func (m *ContentHash) Marshal() (dAtA []byte, err error) {