forked from cerc-io/laconicd
		
	Part of https://www.notion.so/Rename-laconic2d-to-laconicd-9028d0c020d24d1288e92ebcb773d7a7 Co-authored-by: neeraj <neeraj.rtly@gmail.com> Reviewed-on: cerc-io/laconic2d#26 Co-authored-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to> Co-committed-by: Prathamesh Musale <prathamesh@noreply.git.vdb.to>
		
			
				
	
	
		
			7668 lines
		
	
	
		
			283 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			7668 lines
		
	
	
		
			283 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
 | |
| package registryv1
 | |
| 
 | |
| import (
 | |
| 	v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1"
 | |
| 	fmt "fmt"
 | |
| 	runtime "github.com/cosmos/cosmos-proto/runtime"
 | |
| 	_ "github.com/cosmos/gogoproto/gogoproto"
 | |
| 	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
 | |
| 	protoiface "google.golang.org/protobuf/runtime/protoiface"
 | |
| 	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
 | |
| 	durationpb "google.golang.org/protobuf/types/known/durationpb"
 | |
| 	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
 | |
| 	io "io"
 | |
| 	reflect "reflect"
 | |
| 	sync "sync"
 | |
| )
 | |
| 
 | |
| var (
 | |
| 	md_Params                                    protoreflect.MessageDescriptor
 | |
| 	fd_Params_record_rent                        protoreflect.FieldDescriptor
 | |
| 	fd_Params_record_rent_duration               protoreflect.FieldDescriptor
 | |
| 	fd_Params_authority_rent                     protoreflect.FieldDescriptor
 | |
| 	fd_Params_authority_rent_duration            protoreflect.FieldDescriptor
 | |
| 	fd_Params_authority_grace_period             protoreflect.FieldDescriptor
 | |
| 	fd_Params_authority_auction_enabled          protoreflect.FieldDescriptor
 | |
| 	fd_Params_authority_auction_commits_duration protoreflect.FieldDescriptor
 | |
| 	fd_Params_authority_auction_reveals_duration protoreflect.FieldDescriptor
 | |
| 	fd_Params_authority_auction_commit_fee       protoreflect.FieldDescriptor
 | |
| 	fd_Params_authority_auction_reveal_fee       protoreflect.FieldDescriptor
 | |
| 	fd_Params_authority_auction_minimum_bid      protoreflect.FieldDescriptor
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	file_cerc_registry_v1_registry_proto_init()
 | |
| 	md_Params = File_cerc_registry_v1_registry_proto.Messages().ByName("Params")
 | |
| 	fd_Params_record_rent = md_Params.Fields().ByName("record_rent")
 | |
| 	fd_Params_record_rent_duration = md_Params.Fields().ByName("record_rent_duration")
 | |
| 	fd_Params_authority_rent = md_Params.Fields().ByName("authority_rent")
 | |
| 	fd_Params_authority_rent_duration = md_Params.Fields().ByName("authority_rent_duration")
 | |
| 	fd_Params_authority_grace_period = md_Params.Fields().ByName("authority_grace_period")
 | |
| 	fd_Params_authority_auction_enabled = md_Params.Fields().ByName("authority_auction_enabled")
 | |
| 	fd_Params_authority_auction_commits_duration = md_Params.Fields().ByName("authority_auction_commits_duration")
 | |
| 	fd_Params_authority_auction_reveals_duration = md_Params.Fields().ByName("authority_auction_reveals_duration")
 | |
| 	fd_Params_authority_auction_commit_fee = md_Params.Fields().ByName("authority_auction_commit_fee")
 | |
| 	fd_Params_authority_auction_reveal_fee = md_Params.Fields().ByName("authority_auction_reveal_fee")
 | |
| 	fd_Params_authority_auction_minimum_bid = md_Params.Fields().ByName("authority_auction_minimum_bid")
 | |
| }
 | |
| 
 | |
| var _ protoreflect.Message = (*fastReflection_Params)(nil)
 | |
| 
 | |
| type fastReflection_Params Params
 | |
| 
 | |
| func (x *Params) ProtoReflect() protoreflect.Message {
 | |
| 	return (*fastReflection_Params)(x)
 | |
| }
 | |
| 
 | |
| func (x *Params) slowProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_cerc_registry_v1_registry_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_Params_messageType fastReflection_Params_messageType
 | |
| var _ protoreflect.MessageType = fastReflection_Params_messageType{}
 | |
| 
 | |
| type fastReflection_Params_messageType struct{}
 | |
| 
 | |
| func (x fastReflection_Params_messageType) Zero() protoreflect.Message {
 | |
| 	return (*fastReflection_Params)(nil)
 | |
| }
 | |
| func (x fastReflection_Params_messageType) New() protoreflect.Message {
 | |
| 	return new(fastReflection_Params)
 | |
| }
 | |
| func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_Params
 | |
| }
 | |
| 
 | |
| // Descriptor returns message descriptor, which contains only the protobuf
 | |
| // type information for the message.
 | |
| func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_Params
 | |
| }
 | |
| 
 | |
| // Type returns the message type, which encapsulates both Go and protobuf
 | |
| // type information. If the Go type information is not needed,
 | |
| // it is recommended that the message descriptor be used instead.
 | |
| func (x *fastReflection_Params) Type() protoreflect.MessageType {
 | |
| 	return _fastReflection_Params_messageType
 | |
| }
 | |
| 
 | |
| // New returns a newly allocated and mutable empty message.
 | |
| func (x *fastReflection_Params) New() protoreflect.Message {
 | |
| 	return new(fastReflection_Params)
 | |
| }
 | |
| 
 | |
| // Interface unwraps the message reflection interface and
 | |
| // returns the underlying ProtoMessage interface.
 | |
| func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage {
 | |
| 	return (*Params)(x)
 | |
| }
 | |
| 
 | |
| // Range iterates over every populated field in an undefined order,
 | |
| // calling f for each field descriptor and value encountered.
 | |
| // Range returns immediately if f returns false.
 | |
| // While iterating, mutating operations may only be performed
 | |
| // on the current field descriptor.
 | |
| func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
 | |
| 	if x.RecordRent != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.RecordRent.ProtoReflect())
 | |
| 		if !f(fd_Params_record_rent, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.RecordRentDuration != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.RecordRentDuration.ProtoReflect())
 | |
| 		if !f(fd_Params_record_rent_duration, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.AuthorityRent != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.AuthorityRent.ProtoReflect())
 | |
| 		if !f(fd_Params_authority_rent, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.AuthorityRentDuration != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.AuthorityRentDuration.ProtoReflect())
 | |
| 		if !f(fd_Params_authority_rent_duration, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.AuthorityGracePeriod != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.AuthorityGracePeriod.ProtoReflect())
 | |
| 		if !f(fd_Params_authority_grace_period, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.AuthorityAuctionEnabled != false {
 | |
| 		value := protoreflect.ValueOfBool(x.AuthorityAuctionEnabled)
 | |
| 		if !f(fd_Params_authority_auction_enabled, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.AuthorityAuctionCommitsDuration != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.AuthorityAuctionCommitsDuration.ProtoReflect())
 | |
| 		if !f(fd_Params_authority_auction_commits_duration, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.AuthorityAuctionRevealsDuration != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.AuthorityAuctionRevealsDuration.ProtoReflect())
 | |
| 		if !f(fd_Params_authority_auction_reveals_duration, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.AuthorityAuctionCommitFee != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.AuthorityAuctionCommitFee.ProtoReflect())
 | |
| 		if !f(fd_Params_authority_auction_commit_fee, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.AuthorityAuctionRevealFee != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.AuthorityAuctionRevealFee.ProtoReflect())
 | |
| 		if !f(fd_Params_authority_auction_reveal_fee, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.AuthorityAuctionMinimumBid != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.AuthorityAuctionMinimumBid.ProtoReflect())
 | |
| 		if !f(fd_Params_authority_auction_minimum_bid, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| }
 | |
| 
 | |
| // Has reports whether a field is populated.
 | |
| //
 | |
| // Some fields have the property of nullability where it is possible to
 | |
| // distinguish between the default value of a field and whether the field
 | |
| // was explicitly populated with the default value. Singular message fields,
 | |
| // member fields of a oneof, and proto2 scalar fields are nullable. Such
 | |
| // fields are populated only if explicitly set.
 | |
| //
 | |
| // In other cases (aside from the nullable cases above),
 | |
| // a proto3 scalar field is populated if it contains a non-zero value, and
 | |
| // a repeated field is populated if it is non-empty.
 | |
| func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Params.record_rent":
 | |
| 		return x.RecordRent != nil
 | |
| 	case "cerc.registry.v1.Params.record_rent_duration":
 | |
| 		return x.RecordRentDuration != nil
 | |
| 	case "cerc.registry.v1.Params.authority_rent":
 | |
| 		return x.AuthorityRent != nil
 | |
| 	case "cerc.registry.v1.Params.authority_rent_duration":
 | |
| 		return x.AuthorityRentDuration != nil
 | |
| 	case "cerc.registry.v1.Params.authority_grace_period":
 | |
| 		return x.AuthorityGracePeriod != nil
 | |
| 	case "cerc.registry.v1.Params.authority_auction_enabled":
 | |
| 		return x.AuthorityAuctionEnabled != false
 | |
| 	case "cerc.registry.v1.Params.authority_auction_commits_duration":
 | |
| 		return x.AuthorityAuctionCommitsDuration != nil
 | |
| 	case "cerc.registry.v1.Params.authority_auction_reveals_duration":
 | |
| 		return x.AuthorityAuctionRevealsDuration != nil
 | |
| 	case "cerc.registry.v1.Params.authority_auction_commit_fee":
 | |
| 		return x.AuthorityAuctionCommitFee != nil
 | |
| 	case "cerc.registry.v1.Params.authority_auction_reveal_fee":
 | |
| 		return x.AuthorityAuctionRevealFee != nil
 | |
| 	case "cerc.registry.v1.Params.authority_auction_minimum_bid":
 | |
| 		return x.AuthorityAuctionMinimumBid != nil
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Params"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Params does not contain field %s", fd.FullName()))
 | |
| 	}
 | |
| }
 | |
| 
 | |
| // Clear clears the field such that a subsequent Has call reports false.
 | |
| //
 | |
| // Clearing an extension field clears both the extension type and value
 | |
| // associated with the given field number.
 | |
| //
 | |
| // Clear is a mutating operation and unsafe for concurrent use.
 | |
| func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Params.record_rent":
 | |
| 		x.RecordRent = nil
 | |
| 	case "cerc.registry.v1.Params.record_rent_duration":
 | |
| 		x.RecordRentDuration = nil
 | |
| 	case "cerc.registry.v1.Params.authority_rent":
 | |
| 		x.AuthorityRent = nil
 | |
| 	case "cerc.registry.v1.Params.authority_rent_duration":
 | |
| 		x.AuthorityRentDuration = nil
 | |
| 	case "cerc.registry.v1.Params.authority_grace_period":
 | |
| 		x.AuthorityGracePeriod = nil
 | |
| 	case "cerc.registry.v1.Params.authority_auction_enabled":
 | |
| 		x.AuthorityAuctionEnabled = false
 | |
| 	case "cerc.registry.v1.Params.authority_auction_commits_duration":
 | |
| 		x.AuthorityAuctionCommitsDuration = nil
 | |
| 	case "cerc.registry.v1.Params.authority_auction_reveals_duration":
 | |
| 		x.AuthorityAuctionRevealsDuration = nil
 | |
| 	case "cerc.registry.v1.Params.authority_auction_commit_fee":
 | |
| 		x.AuthorityAuctionCommitFee = nil
 | |
| 	case "cerc.registry.v1.Params.authority_auction_reveal_fee":
 | |
| 		x.AuthorityAuctionRevealFee = nil
 | |
| 	case "cerc.registry.v1.Params.authority_auction_minimum_bid":
 | |
| 		x.AuthorityAuctionMinimumBid = nil
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Params"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Params does not contain field %s", fd.FullName()))
 | |
| 	}
 | |
| }
 | |
| 
 | |
| // Get retrieves the value for a field.
 | |
| //
 | |
| // For unpopulated scalars, it returns the default value, where
 | |
| // the default value of a bytes scalar is guaranteed to be a copy.
 | |
| // For unpopulated composite types, it returns an empty, read-only view
 | |
| // of the value; to obtain a mutable reference, use Mutable.
 | |
| func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch descriptor.FullName() {
 | |
| 	case "cerc.registry.v1.Params.record_rent":
 | |
| 		value := x.RecordRent
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.record_rent_duration":
 | |
| 		value := x.RecordRentDuration
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_rent":
 | |
| 		value := x.AuthorityRent
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_rent_duration":
 | |
| 		value := x.AuthorityRentDuration
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_grace_period":
 | |
| 		value := x.AuthorityGracePeriod
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_enabled":
 | |
| 		value := x.AuthorityAuctionEnabled
 | |
| 		return protoreflect.ValueOfBool(value)
 | |
| 	case "cerc.registry.v1.Params.authority_auction_commits_duration":
 | |
| 		value := x.AuthorityAuctionCommitsDuration
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_reveals_duration":
 | |
| 		value := x.AuthorityAuctionRevealsDuration
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_commit_fee":
 | |
| 		value := x.AuthorityAuctionCommitFee
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_reveal_fee":
 | |
| 		value := x.AuthorityAuctionRevealFee
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_minimum_bid":
 | |
| 		value := x.AuthorityAuctionMinimumBid
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	default:
 | |
| 		if descriptor.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Params"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Params does not contain field %s", descriptor.FullName()))
 | |
| 	}
 | |
| }
 | |
| 
 | |
| // Set stores the value for a field.
 | |
| //
 | |
| // For a field belonging to a oneof, it implicitly clears any other field
 | |
| // that may be currently set within the same oneof.
 | |
| // For extension fields, it implicitly stores the provided ExtensionType.
 | |
| // When setting a composite type, it is unspecified whether the stored value
 | |
| // aliases the source's memory in any way. If the composite value is an
 | |
| // empty, read-only value, then it panics.
 | |
| //
 | |
| // Set is a mutating operation and unsafe for concurrent use.
 | |
| func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Params.record_rent":
 | |
| 		x.RecordRent = value.Message().Interface().(*v1beta1.Coin)
 | |
| 	case "cerc.registry.v1.Params.record_rent_duration":
 | |
| 		x.RecordRentDuration = value.Message().Interface().(*durationpb.Duration)
 | |
| 	case "cerc.registry.v1.Params.authority_rent":
 | |
| 		x.AuthorityRent = value.Message().Interface().(*v1beta1.Coin)
 | |
| 	case "cerc.registry.v1.Params.authority_rent_duration":
 | |
| 		x.AuthorityRentDuration = value.Message().Interface().(*durationpb.Duration)
 | |
| 	case "cerc.registry.v1.Params.authority_grace_period":
 | |
| 		x.AuthorityGracePeriod = value.Message().Interface().(*durationpb.Duration)
 | |
| 	case "cerc.registry.v1.Params.authority_auction_enabled":
 | |
| 		x.AuthorityAuctionEnabled = value.Bool()
 | |
| 	case "cerc.registry.v1.Params.authority_auction_commits_duration":
 | |
| 		x.AuthorityAuctionCommitsDuration = value.Message().Interface().(*durationpb.Duration)
 | |
| 	case "cerc.registry.v1.Params.authority_auction_reveals_duration":
 | |
| 		x.AuthorityAuctionRevealsDuration = value.Message().Interface().(*durationpb.Duration)
 | |
| 	case "cerc.registry.v1.Params.authority_auction_commit_fee":
 | |
| 		x.AuthorityAuctionCommitFee = value.Message().Interface().(*v1beta1.Coin)
 | |
| 	case "cerc.registry.v1.Params.authority_auction_reveal_fee":
 | |
| 		x.AuthorityAuctionRevealFee = value.Message().Interface().(*v1beta1.Coin)
 | |
| 	case "cerc.registry.v1.Params.authority_auction_minimum_bid":
 | |
| 		x.AuthorityAuctionMinimumBid = value.Message().Interface().(*v1beta1.Coin)
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Params"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Params does not contain field %s", fd.FullName()))
 | |
| 	}
 | |
| }
 | |
| 
 | |
| // Mutable returns a mutable reference to a composite type.
 | |
| //
 | |
| // If the field is unpopulated, it may allocate a composite value.
 | |
| // For a field belonging to a oneof, it implicitly clears any other field
 | |
| // that may be currently set within the same oneof.
 | |
| // For extension fields, it implicitly stores the provided ExtensionType
 | |
| // if not already stored.
 | |
| // It panics if the field does not contain a composite type.
 | |
| //
 | |
| // Mutable is a mutating operation and unsafe for concurrent use.
 | |
| func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Params.record_rent":
 | |
| 		if x.RecordRent == nil {
 | |
| 			x.RecordRent = new(v1beta1.Coin)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.RecordRent.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.record_rent_duration":
 | |
| 		if x.RecordRentDuration == nil {
 | |
| 			x.RecordRentDuration = new(durationpb.Duration)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.RecordRentDuration.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_rent":
 | |
| 		if x.AuthorityRent == nil {
 | |
| 			x.AuthorityRent = new(v1beta1.Coin)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.AuthorityRent.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_rent_duration":
 | |
| 		if x.AuthorityRentDuration == nil {
 | |
| 			x.AuthorityRentDuration = new(durationpb.Duration)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.AuthorityRentDuration.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_grace_period":
 | |
| 		if x.AuthorityGracePeriod == nil {
 | |
| 			x.AuthorityGracePeriod = new(durationpb.Duration)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.AuthorityGracePeriod.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_commits_duration":
 | |
| 		if x.AuthorityAuctionCommitsDuration == nil {
 | |
| 			x.AuthorityAuctionCommitsDuration = new(durationpb.Duration)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.AuthorityAuctionCommitsDuration.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_reveals_duration":
 | |
| 		if x.AuthorityAuctionRevealsDuration == nil {
 | |
| 			x.AuthorityAuctionRevealsDuration = new(durationpb.Duration)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.AuthorityAuctionRevealsDuration.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_commit_fee":
 | |
| 		if x.AuthorityAuctionCommitFee == nil {
 | |
| 			x.AuthorityAuctionCommitFee = new(v1beta1.Coin)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.AuthorityAuctionCommitFee.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_reveal_fee":
 | |
| 		if x.AuthorityAuctionRevealFee == nil {
 | |
| 			x.AuthorityAuctionRevealFee = new(v1beta1.Coin)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.AuthorityAuctionRevealFee.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_minimum_bid":
 | |
| 		if x.AuthorityAuctionMinimumBid == nil {
 | |
| 			x.AuthorityAuctionMinimumBid = new(v1beta1.Coin)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.AuthorityAuctionMinimumBid.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_enabled":
 | |
| 		panic(fmt.Errorf("field authority_auction_enabled of message cerc.registry.v1.Params is not mutable"))
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Params"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Params does not contain field %s", fd.FullName()))
 | |
| 	}
 | |
| }
 | |
| 
 | |
| // NewField returns a new value that is assignable to the field
 | |
| // for the given descriptor. For scalars, this returns the default value.
 | |
| // For lists, maps, and messages, this returns a new, empty, mutable value.
 | |
| func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Params.record_rent":
 | |
| 		m := new(v1beta1.Coin)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.record_rent_duration":
 | |
| 		m := new(durationpb.Duration)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_rent":
 | |
| 		m := new(v1beta1.Coin)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_rent_duration":
 | |
| 		m := new(durationpb.Duration)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_grace_period":
 | |
| 		m := new(durationpb.Duration)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_enabled":
 | |
| 		return protoreflect.ValueOfBool(false)
 | |
| 	case "cerc.registry.v1.Params.authority_auction_commits_duration":
 | |
| 		m := new(durationpb.Duration)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_reveals_duration":
 | |
| 		m := new(durationpb.Duration)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_commit_fee":
 | |
| 		m := new(v1beta1.Coin)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_reveal_fee":
 | |
| 		m := new(v1beta1.Coin)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	case "cerc.registry.v1.Params.authority_auction_minimum_bid":
 | |
| 		m := new(v1beta1.Coin)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Params"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Params does not contain field %s", fd.FullName()))
 | |
| 	}
 | |
| }
 | |
| 
 | |
| // WhichOneof reports which field within the oneof is populated,
 | |
| // returning nil if none are populated.
 | |
| // It panics if the oneof descriptor does not belong to this message.
 | |
| func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
 | |
| 	switch d.FullName() {
 | |
| 	default:
 | |
| 		panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.Params", d.FullName()))
 | |
| 	}
 | |
| 	panic("unreachable")
 | |
| }
 | |
| 
 | |
| // GetUnknown retrieves the entire list of unknown fields.
 | |
| // The caller may only mutate the contents of the RawFields
 | |
| // if the mutated bytes are stored back into the message with SetUnknown.
 | |
| func (x *fastReflection_Params) GetUnknown() protoreflect.RawFields {
 | |
| 	return x.unknownFields
 | |
| }
 | |
| 
 | |
| // SetUnknown stores an entire list of unknown fields.
 | |
| // The raw fields must be syntactically valid according to the wire format.
 | |
| // An implementation may panic if this is not the case.
 | |
| // Once stored, the caller must not mutate the content of the RawFields.
 | |
| // An empty RawFields may be passed to clear the fields.
 | |
| //
 | |
| // SetUnknown is a mutating operation and unsafe for concurrent use.
 | |
| func (x *fastReflection_Params) SetUnknown(fields protoreflect.RawFields) {
 | |
| 	x.unknownFields = fields
 | |
| }
 | |
| 
 | |
| // IsValid reports whether the message is valid.
 | |
| //
 | |
| // An invalid message is an empty, read-only value.
 | |
| //
 | |
| // An invalid message often corresponds to a nil pointer of the concrete
 | |
| // message type, but the details are implementation dependent.
 | |
| // Validity is not part of the protobuf data model, and may not
 | |
| // be preserved in marshaling or other operations.
 | |
| func (x *fastReflection_Params) IsValid() bool {
 | |
| 	return x != nil
 | |
| }
 | |
| 
 | |
| // ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
 | |
| // This method may return nil.
 | |
| //
 | |
| // The returned methods type is identical to
 | |
| // "google.golang.org/protobuf/runtime/protoiface".Methods.
 | |
| // Consult the protoiface package documentation for details.
 | |
| func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods {
 | |
| 	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
 | |
| 		x := input.Message.Interface().(*Params)
 | |
| 		if x == nil {
 | |
| 			return protoiface.SizeOutput{
 | |
| 				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 				Size:              0,
 | |
| 			}
 | |
| 		}
 | |
| 		options := runtime.SizeInputToOptions(input)
 | |
| 		_ = options
 | |
| 		var n int
 | |
| 		var l int
 | |
| 		_ = l
 | |
| 		if x.RecordRent != nil {
 | |
| 			l = options.Size(x.RecordRent)
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.RecordRentDuration != nil {
 | |
| 			l = options.Size(x.RecordRentDuration)
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.AuthorityRent != nil {
 | |
| 			l = options.Size(x.AuthorityRent)
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.AuthorityRentDuration != nil {
 | |
| 			l = options.Size(x.AuthorityRentDuration)
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.AuthorityGracePeriod != nil {
 | |
| 			l = options.Size(x.AuthorityGracePeriod)
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.AuthorityAuctionEnabled {
 | |
| 			n += 2
 | |
| 		}
 | |
| 		if x.AuthorityAuctionCommitsDuration != nil {
 | |
| 			l = options.Size(x.AuthorityAuctionCommitsDuration)
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.AuthorityAuctionRevealsDuration != nil {
 | |
| 			l = options.Size(x.AuthorityAuctionRevealsDuration)
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.AuthorityAuctionCommitFee != nil {
 | |
| 			l = options.Size(x.AuthorityAuctionCommitFee)
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.AuthorityAuctionRevealFee != nil {
 | |
| 			l = options.Size(x.AuthorityAuctionRevealFee)
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.AuthorityAuctionMinimumBid != nil {
 | |
| 			l = options.Size(x.AuthorityAuctionMinimumBid)
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.unknownFields != nil {
 | |
| 			n += len(x.unknownFields)
 | |
| 		}
 | |
| 		return protoiface.SizeOutput{
 | |
| 			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 			Size:              n,
 | |
| 		}
 | |
| 	}
 | |
| 
 | |
| 	marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
 | |
| 		x := input.Message.Interface().(*Params)
 | |
| 		if x == nil {
 | |
| 			return protoiface.MarshalOutput{
 | |
| 				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 				Buf:               input.Buf,
 | |
| 			}, nil
 | |
| 		}
 | |
| 		options := runtime.MarshalInputToOptions(input)
 | |
| 		_ = options
 | |
| 		size := options.Size(x)
 | |
| 		dAtA := make([]byte, size)
 | |
| 		i := len(dAtA)
 | |
| 		_ = i
 | |
| 		var l int
 | |
| 		_ = l
 | |
| 		if x.unknownFields != nil {
 | |
| 			i -= len(x.unknownFields)
 | |
| 			copy(dAtA[i:], x.unknownFields)
 | |
| 		}
 | |
| 		if x.AuthorityAuctionMinimumBid != nil {
 | |
| 			encoded, err := options.Marshal(x.AuthorityAuctionMinimumBid)
 | |
| 			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] = 0x5a
 | |
| 		}
 | |
| 		if x.AuthorityAuctionRevealFee != nil {
 | |
| 			encoded, err := options.Marshal(x.AuthorityAuctionRevealFee)
 | |
| 			if err != nil {
 | |
| 				return protoiface.MarshalOutput{
 | |
| 					NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 					Buf:               input.Buf,
 | |
| 				}, err
 | |
| 			}
 | |
| 			i -= len(encoded)
 | |
| 			copy(dAtA[i:], encoded)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x52
 | |
| 		}
 | |
| 		if x.AuthorityAuctionCommitFee != nil {
 | |
| 			encoded, err := options.Marshal(x.AuthorityAuctionCommitFee)
 | |
| 			if err != nil {
 | |
| 				return protoiface.MarshalOutput{
 | |
| 					NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 					Buf:               input.Buf,
 | |
| 				}, err
 | |
| 			}
 | |
| 			i -= len(encoded)
 | |
| 			copy(dAtA[i:], encoded)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x4a
 | |
| 		}
 | |
| 		if x.AuthorityAuctionRevealsDuration != nil {
 | |
| 			encoded, err := options.Marshal(x.AuthorityAuctionRevealsDuration)
 | |
| 			if err != nil {
 | |
| 				return protoiface.MarshalOutput{
 | |
| 					NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 					Buf:               input.Buf,
 | |
| 				}, err
 | |
| 			}
 | |
| 			i -= len(encoded)
 | |
| 			copy(dAtA[i:], encoded)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x42
 | |
| 		}
 | |
| 		if x.AuthorityAuctionCommitsDuration != nil {
 | |
| 			encoded, err := options.Marshal(x.AuthorityAuctionCommitsDuration)
 | |
| 			if err != nil {
 | |
| 				return protoiface.MarshalOutput{
 | |
| 					NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 					Buf:               input.Buf,
 | |
| 				}, err
 | |
| 			}
 | |
| 			i -= len(encoded)
 | |
| 			copy(dAtA[i:], encoded)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x3a
 | |
| 		}
 | |
| 		if x.AuthorityAuctionEnabled {
 | |
| 			i--
 | |
| 			if x.AuthorityAuctionEnabled {
 | |
| 				dAtA[i] = 1
 | |
| 			} else {
 | |
| 				dAtA[i] = 0
 | |
| 			}
 | |
| 			i--
 | |
| 			dAtA[i] = 0x30
 | |
| 		}
 | |
| 		if x.AuthorityGracePeriod != nil {
 | |
| 			encoded, err := options.Marshal(x.AuthorityGracePeriod)
 | |
| 			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 x.AuthorityRentDuration != nil {
 | |
| 			encoded, err := options.Marshal(x.AuthorityRentDuration)
 | |
| 			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.AuthorityRent != nil {
 | |
| 			encoded, err := options.Marshal(x.AuthorityRent)
 | |
| 			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.RecordRentDuration != nil {
 | |
| 			encoded, err := options.Marshal(x.RecordRentDuration)
 | |
| 			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.RecordRent != nil {
 | |
| 			encoded, err := options.Marshal(x.RecordRent)
 | |
| 			if err != nil {
 | |
| 				return protoiface.MarshalOutput{
 | |
| 					NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 					Buf:               input.Buf,
 | |
| 				}, err
 | |
| 			}
 | |
| 			i -= len(encoded)
 | |
| 			copy(dAtA[i:], encoded)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0xa
 | |
| 		}
 | |
| 		if input.Buf != nil {
 | |
| 			input.Buf = append(input.Buf, dAtA...)
 | |
| 		} else {
 | |
| 			input.Buf = dAtA
 | |
| 		}
 | |
| 		return protoiface.MarshalOutput{
 | |
| 			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 			Buf:               input.Buf,
 | |
| 		}, nil
 | |
| 	}
 | |
| 	unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
 | |
| 		x := input.Message.Interface().(*Params)
 | |
| 		if x == nil {
 | |
| 			return protoiface.UnmarshalOutput{
 | |
| 				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 				Flags:             input.Flags,
 | |
| 			}, nil
 | |
| 		}
 | |
| 		options := runtime.UnmarshalInputToOptions(input)
 | |
| 		_ = options
 | |
| 		dAtA := input.Buf
 | |
| 		l := len(dAtA)
 | |
| 		iNdEx := 0
 | |
| 		for iNdEx < l {
 | |
| 			preIndex := iNdEx
 | |
| 			var wire uint64
 | |
| 			for shift := uint(0); ; shift += 7 {
 | |
| 				if shift >= 64 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
 | |
| 				}
 | |
| 				if iNdEx >= l {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				b := dAtA[iNdEx]
 | |
| 				iNdEx++
 | |
| 				wire |= uint64(b&0x7F) << shift
 | |
| 				if b < 0x80 {
 | |
| 					break
 | |
| 				}
 | |
| 			}
 | |
| 			fieldNum := int32(wire >> 3)
 | |
| 			wireType := int(wire & 0x7)
 | |
| 			if wireType == 4 {
 | |
| 				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: wiretype end group for non-group")
 | |
| 			}
 | |
| 			if fieldNum <= 0 {
 | |
| 				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 			}
 | |
| 			switch fieldNum {
 | |
| 			case 1:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RecordRent", 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.RecordRent == nil {
 | |
| 					x.RecordRent = &v1beta1.Coin{}
 | |
| 				}
 | |
| 				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RecordRent); 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 RecordRentDuration", 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.RecordRentDuration == nil {
 | |
| 					x.RecordRentDuration = &durationpb.Duration{}
 | |
| 				}
 | |
| 				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RecordRentDuration); 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 AuthorityRent", 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.AuthorityRent == nil {
 | |
| 					x.AuthorityRent = &v1beta1.Coin{}
 | |
| 				}
 | |
| 				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AuthorityRent); err != nil {
 | |
| 					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 AuthorityRentDuration", 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.AuthorityRentDuration == nil {
 | |
| 					x.AuthorityRentDuration = &durationpb.Duration{}
 | |
| 				}
 | |
| 				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AuthorityRentDuration); 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 AuthorityGracePeriod", 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.AuthorityGracePeriod == nil {
 | |
| 					x.AuthorityGracePeriod = &durationpb.Duration{}
 | |
| 				}
 | |
| 				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AuthorityGracePeriod); err != nil {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
 | |
| 				}
 | |
| 				iNdEx = postIndex
 | |
| 			case 6:
 | |
| 				if wireType != 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AuthorityAuctionEnabled", wireType)
 | |
| 				}
 | |
| 				var v int
 | |
| 				for shift := uint(0); ; shift += 7 {
 | |
| 					if shift >= 64 {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
 | |
| 					}
 | |
| 					if iNdEx >= l {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 					}
 | |
| 					b := dAtA[iNdEx]
 | |
| 					iNdEx++
 | |
| 					v |= int(b&0x7F) << shift
 | |
| 					if b < 0x80 {
 | |
| 						break
 | |
| 					}
 | |
| 				}
 | |
| 				x.AuthorityAuctionEnabled = bool(v != 0)
 | |
| 			case 7:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AuthorityAuctionCommitsDuration", 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.AuthorityAuctionCommitsDuration == nil {
 | |
| 					x.AuthorityAuctionCommitsDuration = &durationpb.Duration{}
 | |
| 				}
 | |
| 				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AuthorityAuctionCommitsDuration); err != nil {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
 | |
| 				}
 | |
| 				iNdEx = postIndex
 | |
| 			case 8:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AuthorityAuctionRevealsDuration", 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.AuthorityAuctionRevealsDuration == nil {
 | |
| 					x.AuthorityAuctionRevealsDuration = &durationpb.Duration{}
 | |
| 				}
 | |
| 				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AuthorityAuctionRevealsDuration); err != nil {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
 | |
| 				}
 | |
| 				iNdEx = postIndex
 | |
| 			case 9:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AuthorityAuctionCommitFee", 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.AuthorityAuctionCommitFee == nil {
 | |
| 					x.AuthorityAuctionCommitFee = &v1beta1.Coin{}
 | |
| 				}
 | |
| 				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AuthorityAuctionCommitFee); err != nil {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
 | |
| 				}
 | |
| 				iNdEx = postIndex
 | |
| 			case 10:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AuthorityAuctionRevealFee", 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.AuthorityAuctionRevealFee == nil {
 | |
| 					x.AuthorityAuctionRevealFee = &v1beta1.Coin{}
 | |
| 				}
 | |
| 				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AuthorityAuctionRevealFee); err != nil {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
 | |
| 				}
 | |
| 				iNdEx = postIndex
 | |
| 			case 11:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AuthorityAuctionMinimumBid", 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.AuthorityAuctionMinimumBid == nil {
 | |
| 					x.AuthorityAuctionMinimumBid = &v1beta1.Coin{}
 | |
| 				}
 | |
| 				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AuthorityAuctionMinimumBid); 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 = (*_Record_6_list)(nil)
 | |
| 
 | |
| type _Record_6_list struct {
 | |
| 	list *[]string
 | |
| }
 | |
| 
 | |
| func (x *_Record_6_list) Len() int {
 | |
| 	if x.list == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	return len(*x.list)
 | |
| }
 | |
| 
 | |
| func (x *_Record_6_list) Get(i int) protoreflect.Value {
 | |
| 	return protoreflect.ValueOfString((*x.list)[i])
 | |
| }
 | |
| 
 | |
| func (x *_Record_6_list) Set(i int, value protoreflect.Value) {
 | |
| 	valueUnwrapped := value.String()
 | |
| 	concreteValue := valueUnwrapped
 | |
| 	(*x.list)[i] = concreteValue
 | |
| }
 | |
| 
 | |
| func (x *_Record_6_list) Append(value protoreflect.Value) {
 | |
| 	valueUnwrapped := value.String()
 | |
| 	concreteValue := valueUnwrapped
 | |
| 	*x.list = append(*x.list, concreteValue)
 | |
| }
 | |
| 
 | |
| func (x *_Record_6_list) AppendMutable() protoreflect.Value {
 | |
| 	panic(fmt.Errorf("AppendMutable can not be called on message Record at list field Owners as it is not of Message kind"))
 | |
| }
 | |
| 
 | |
| func (x *_Record_6_list) Truncate(n int) {
 | |
| 	*x.list = (*x.list)[:n]
 | |
| }
 | |
| 
 | |
| func (x *_Record_6_list) NewElement() protoreflect.Value {
 | |
| 	v := ""
 | |
| 	return protoreflect.ValueOfString(v)
 | |
| }
 | |
| 
 | |
| func (x *_Record_6_list) IsValid() bool {
 | |
| 	return x.list != nil
 | |
| }
 | |
| 
 | |
| var _ protoreflect.List = (*_Record_8_list)(nil)
 | |
| 
 | |
| type _Record_8_list struct {
 | |
| 	list *[]string
 | |
| }
 | |
| 
 | |
| func (x *_Record_8_list) Len() int {
 | |
| 	if x.list == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	return len(*x.list)
 | |
| }
 | |
| 
 | |
| func (x *_Record_8_list) Get(i int) protoreflect.Value {
 | |
| 	return protoreflect.ValueOfString((*x.list)[i])
 | |
| }
 | |
| 
 | |
| func (x *_Record_8_list) Set(i int, value protoreflect.Value) {
 | |
| 	valueUnwrapped := value.String()
 | |
| 	concreteValue := valueUnwrapped
 | |
| 	(*x.list)[i] = concreteValue
 | |
| }
 | |
| 
 | |
| func (x *_Record_8_list) Append(value protoreflect.Value) {
 | |
| 	valueUnwrapped := value.String()
 | |
| 	concreteValue := valueUnwrapped
 | |
| 	*x.list = append(*x.list, concreteValue)
 | |
| }
 | |
| 
 | |
| func (x *_Record_8_list) AppendMutable() protoreflect.Value {
 | |
| 	panic(fmt.Errorf("AppendMutable can not be called on message Record at list field Names as it is not of Message kind"))
 | |
| }
 | |
| 
 | |
| func (x *_Record_8_list) Truncate(n int) {
 | |
| 	*x.list = (*x.list)[:n]
 | |
| }
 | |
| 
 | |
| func (x *_Record_8_list) NewElement() protoreflect.Value {
 | |
| 	v := ""
 | |
| 	return protoreflect.ValueOfString(v)
 | |
| }
 | |
| 
 | |
| func (x *_Record_8_list) IsValid() bool {
 | |
| 	return x.list != nil
 | |
| }
 | |
| 
 | |
| var (
 | |
| 	md_Record             protoreflect.MessageDescriptor
 | |
| 	fd_Record_id          protoreflect.FieldDescriptor
 | |
| 	fd_Record_bond_id     protoreflect.FieldDescriptor
 | |
| 	fd_Record_create_time protoreflect.FieldDescriptor
 | |
| 	fd_Record_expiry_time protoreflect.FieldDescriptor
 | |
| 	fd_Record_deleted     protoreflect.FieldDescriptor
 | |
| 	fd_Record_owners      protoreflect.FieldDescriptor
 | |
| 	fd_Record_attributes  protoreflect.FieldDescriptor
 | |
| 	fd_Record_names       protoreflect.FieldDescriptor
 | |
| 	fd_Record_type        protoreflect.FieldDescriptor
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	file_cerc_registry_v1_registry_proto_init()
 | |
| 	md_Record = File_cerc_registry_v1_registry_proto.Messages().ByName("Record")
 | |
| 	fd_Record_id = md_Record.Fields().ByName("id")
 | |
| 	fd_Record_bond_id = md_Record.Fields().ByName("bond_id")
 | |
| 	fd_Record_create_time = md_Record.Fields().ByName("create_time")
 | |
| 	fd_Record_expiry_time = md_Record.Fields().ByName("expiry_time")
 | |
| 	fd_Record_deleted = md_Record.Fields().ByName("deleted")
 | |
| 	fd_Record_owners = md_Record.Fields().ByName("owners")
 | |
| 	fd_Record_attributes = md_Record.Fields().ByName("attributes")
 | |
| 	fd_Record_names = md_Record.Fields().ByName("names")
 | |
| 	fd_Record_type = md_Record.Fields().ByName("type")
 | |
| }
 | |
| 
 | |
| var _ protoreflect.Message = (*fastReflection_Record)(nil)
 | |
| 
 | |
| type fastReflection_Record Record
 | |
| 
 | |
| func (x *Record) ProtoReflect() protoreflect.Message {
 | |
| 	return (*fastReflection_Record)(x)
 | |
| }
 | |
| 
 | |
| func (x *Record) slowProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_cerc_registry_v1_registry_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_Record_messageType fastReflection_Record_messageType
 | |
| var _ protoreflect.MessageType = fastReflection_Record_messageType{}
 | |
| 
 | |
| type fastReflection_Record_messageType struct{}
 | |
| 
 | |
| func (x fastReflection_Record_messageType) Zero() protoreflect.Message {
 | |
| 	return (*fastReflection_Record)(nil)
 | |
| }
 | |
| func (x fastReflection_Record_messageType) New() protoreflect.Message {
 | |
| 	return new(fastReflection_Record)
 | |
| }
 | |
| func (x fastReflection_Record_messageType) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_Record
 | |
| }
 | |
| 
 | |
| // Descriptor returns message descriptor, which contains only the protobuf
 | |
| // type information for the message.
 | |
| func (x *fastReflection_Record) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_Record
 | |
| }
 | |
| 
 | |
| // 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_Record) Type() protoreflect.MessageType {
 | |
| 	return _fastReflection_Record_messageType
 | |
| }
 | |
| 
 | |
| // New returns a newly allocated and mutable empty message.
 | |
| func (x *fastReflection_Record) New() protoreflect.Message {
 | |
| 	return new(fastReflection_Record)
 | |
| }
 | |
| 
 | |
| // Interface unwraps the message reflection interface and
 | |
| // returns the underlying ProtoMessage interface.
 | |
| func (x *fastReflection_Record) Interface() protoreflect.ProtoMessage {
 | |
| 	return (*Record)(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_Record) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
 | |
| 	if x.Id != "" {
 | |
| 		value := protoreflect.ValueOfString(x.Id)
 | |
| 		if !f(fd_Record_id, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.BondId != "" {
 | |
| 		value := protoreflect.ValueOfString(x.BondId)
 | |
| 		if !f(fd_Record_bond_id, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.CreateTime != "" {
 | |
| 		value := protoreflect.ValueOfString(x.CreateTime)
 | |
| 		if !f(fd_Record_create_time, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.ExpiryTime != "" {
 | |
| 		value := protoreflect.ValueOfString(x.ExpiryTime)
 | |
| 		if !f(fd_Record_expiry_time, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.Deleted != false {
 | |
| 		value := protoreflect.ValueOfBool(x.Deleted)
 | |
| 		if !f(fd_Record_deleted, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if len(x.Owners) != 0 {
 | |
| 		value := protoreflect.ValueOfList(&_Record_6_list{list: &x.Owners})
 | |
| 		if !f(fd_Record_owners, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if len(x.Attributes) != 0 {
 | |
| 		value := protoreflect.ValueOfBytes(x.Attributes)
 | |
| 		if !f(fd_Record_attributes, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if len(x.Names) != 0 {
 | |
| 		value := protoreflect.ValueOfList(&_Record_8_list{list: &x.Names})
 | |
| 		if !f(fd_Record_names, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.Type_ != "" {
 | |
| 		value := protoreflect.ValueOfString(x.Type_)
 | |
| 		if !f(fd_Record_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_Record) Has(fd protoreflect.FieldDescriptor) bool {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Record.id":
 | |
| 		return x.Id != ""
 | |
| 	case "cerc.registry.v1.Record.bond_id":
 | |
| 		return x.BondId != ""
 | |
| 	case "cerc.registry.v1.Record.create_time":
 | |
| 		return x.CreateTime != ""
 | |
| 	case "cerc.registry.v1.Record.expiry_time":
 | |
| 		return x.ExpiryTime != ""
 | |
| 	case "cerc.registry.v1.Record.deleted":
 | |
| 		return x.Deleted != false
 | |
| 	case "cerc.registry.v1.Record.owners":
 | |
| 		return len(x.Owners) != 0
 | |
| 	case "cerc.registry.v1.Record.attributes":
 | |
| 		return len(x.Attributes) != 0
 | |
| 	case "cerc.registry.v1.Record.names":
 | |
| 		return len(x.Names) != 0
 | |
| 	case "cerc.registry.v1.Record.type":
 | |
| 		return x.Type_ != ""
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Record"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Record 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_Record) Clear(fd protoreflect.FieldDescriptor) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Record.id":
 | |
| 		x.Id = ""
 | |
| 	case "cerc.registry.v1.Record.bond_id":
 | |
| 		x.BondId = ""
 | |
| 	case "cerc.registry.v1.Record.create_time":
 | |
| 		x.CreateTime = ""
 | |
| 	case "cerc.registry.v1.Record.expiry_time":
 | |
| 		x.ExpiryTime = ""
 | |
| 	case "cerc.registry.v1.Record.deleted":
 | |
| 		x.Deleted = false
 | |
| 	case "cerc.registry.v1.Record.owners":
 | |
| 		x.Owners = nil
 | |
| 	case "cerc.registry.v1.Record.attributes":
 | |
| 		x.Attributes = nil
 | |
| 	case "cerc.registry.v1.Record.names":
 | |
| 		x.Names = nil
 | |
| 	case "cerc.registry.v1.Record.type":
 | |
| 		x.Type_ = ""
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Record"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Record 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_Record) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch descriptor.FullName() {
 | |
| 	case "cerc.registry.v1.Record.id":
 | |
| 		value := x.Id
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.Record.bond_id":
 | |
| 		value := x.BondId
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.Record.create_time":
 | |
| 		value := x.CreateTime
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.Record.expiry_time":
 | |
| 		value := x.ExpiryTime
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.Record.deleted":
 | |
| 		value := x.Deleted
 | |
| 		return protoreflect.ValueOfBool(value)
 | |
| 	case "cerc.registry.v1.Record.owners":
 | |
| 		if len(x.Owners) == 0 {
 | |
| 			return protoreflect.ValueOfList(&_Record_6_list{})
 | |
| 		}
 | |
| 		listValue := &_Record_6_list{list: &x.Owners}
 | |
| 		return protoreflect.ValueOfList(listValue)
 | |
| 	case "cerc.registry.v1.Record.attributes":
 | |
| 		value := x.Attributes
 | |
| 		return protoreflect.ValueOfBytes(value)
 | |
| 	case "cerc.registry.v1.Record.names":
 | |
| 		if len(x.Names) == 0 {
 | |
| 			return protoreflect.ValueOfList(&_Record_8_list{})
 | |
| 		}
 | |
| 		listValue := &_Record_8_list{list: &x.Names}
 | |
| 		return protoreflect.ValueOfList(listValue)
 | |
| 	case "cerc.registry.v1.Record.type":
 | |
| 		value := x.Type_
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	default:
 | |
| 		if descriptor.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Record"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Record 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_Record) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Record.id":
 | |
| 		x.Id = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.Record.bond_id":
 | |
| 		x.BondId = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.Record.create_time":
 | |
| 		x.CreateTime = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.Record.expiry_time":
 | |
| 		x.ExpiryTime = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.Record.deleted":
 | |
| 		x.Deleted = value.Bool()
 | |
| 	case "cerc.registry.v1.Record.owners":
 | |
| 		lv := value.List()
 | |
| 		clv := lv.(*_Record_6_list)
 | |
| 		x.Owners = *clv.list
 | |
| 	case "cerc.registry.v1.Record.attributes":
 | |
| 		x.Attributes = value.Bytes()
 | |
| 	case "cerc.registry.v1.Record.names":
 | |
| 		lv := value.List()
 | |
| 		clv := lv.(*_Record_8_list)
 | |
| 		x.Names = *clv.list
 | |
| 	case "cerc.registry.v1.Record.type":
 | |
| 		x.Type_ = value.Interface().(string)
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Record"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Record 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_Record) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Record.owners":
 | |
| 		if x.Owners == nil {
 | |
| 			x.Owners = []string{}
 | |
| 		}
 | |
| 		value := &_Record_6_list{list: &x.Owners}
 | |
| 		return protoreflect.ValueOfList(value)
 | |
| 	case "cerc.registry.v1.Record.names":
 | |
| 		if x.Names == nil {
 | |
| 			x.Names = []string{}
 | |
| 		}
 | |
| 		value := &_Record_8_list{list: &x.Names}
 | |
| 		return protoreflect.ValueOfList(value)
 | |
| 	case "cerc.registry.v1.Record.id":
 | |
| 		panic(fmt.Errorf("field id of message cerc.registry.v1.Record is not mutable"))
 | |
| 	case "cerc.registry.v1.Record.bond_id":
 | |
| 		panic(fmt.Errorf("field bond_id of message cerc.registry.v1.Record is not mutable"))
 | |
| 	case "cerc.registry.v1.Record.create_time":
 | |
| 		panic(fmt.Errorf("field create_time of message cerc.registry.v1.Record is not mutable"))
 | |
| 	case "cerc.registry.v1.Record.expiry_time":
 | |
| 		panic(fmt.Errorf("field expiry_time of message cerc.registry.v1.Record is not mutable"))
 | |
| 	case "cerc.registry.v1.Record.deleted":
 | |
| 		panic(fmt.Errorf("field deleted of message cerc.registry.v1.Record is not mutable"))
 | |
| 	case "cerc.registry.v1.Record.attributes":
 | |
| 		panic(fmt.Errorf("field attributes of message cerc.registry.v1.Record is not mutable"))
 | |
| 	case "cerc.registry.v1.Record.type":
 | |
| 		panic(fmt.Errorf("field type of message cerc.registry.v1.Record is not mutable"))
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Record"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Record 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_Record) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Record.id":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.Record.bond_id":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.Record.create_time":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.Record.expiry_time":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.Record.deleted":
 | |
| 		return protoreflect.ValueOfBool(false)
 | |
| 	case "cerc.registry.v1.Record.owners":
 | |
| 		list := []string{}
 | |
| 		return protoreflect.ValueOfList(&_Record_6_list{list: &list})
 | |
| 	case "cerc.registry.v1.Record.attributes":
 | |
| 		return protoreflect.ValueOfBytes(nil)
 | |
| 	case "cerc.registry.v1.Record.names":
 | |
| 		list := []string{}
 | |
| 		return protoreflect.ValueOfList(&_Record_8_list{list: &list})
 | |
| 	case "cerc.registry.v1.Record.type":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Record"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Record 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_Record) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
 | |
| 	switch d.FullName() {
 | |
| 	default:
 | |
| 		panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.Record", 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_Record) 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_Record) 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_Record) 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_Record) ProtoMethods() *protoiface.Methods {
 | |
| 	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
 | |
| 		x := input.Message.Interface().(*Record)
 | |
| 		if x == nil {
 | |
| 			return protoiface.SizeOutput{
 | |
| 				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 				Size:              0,
 | |
| 			}
 | |
| 		}
 | |
| 		options := runtime.SizeInputToOptions(input)
 | |
| 		_ = options
 | |
| 		var n int
 | |
| 		var l int
 | |
| 		_ = l
 | |
| 		l = len(x.Id)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		l = len(x.BondId)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		l = len(x.CreateTime)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		l = len(x.ExpiryTime)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.Deleted {
 | |
| 			n += 2
 | |
| 		}
 | |
| 		if len(x.Owners) > 0 {
 | |
| 			for _, s := range x.Owners {
 | |
| 				l = len(s)
 | |
| 				n += 1 + l + runtime.Sov(uint64(l))
 | |
| 			}
 | |
| 		}
 | |
| 		l = len(x.Attributes)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if len(x.Names) > 0 {
 | |
| 			for _, s := range x.Names {
 | |
| 				l = len(s)
 | |
| 				n += 1 + l + runtime.Sov(uint64(l))
 | |
| 			}
 | |
| 		}
 | |
| 		l = len(x.Type_)
 | |
| 		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().(*Record)
 | |
| 		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.Type_) > 0 {
 | |
| 			i -= len(x.Type_)
 | |
| 			copy(dAtA[i:], x.Type_)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Type_)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x4a
 | |
| 		}
 | |
| 		if len(x.Names) > 0 {
 | |
| 			for iNdEx := len(x.Names) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 				i -= len(x.Names[iNdEx])
 | |
| 				copy(dAtA[i:], x.Names[iNdEx])
 | |
| 				i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Names[iNdEx])))
 | |
| 				i--
 | |
| 				dAtA[i] = 0x42
 | |
| 			}
 | |
| 		}
 | |
| 		if len(x.Attributes) > 0 {
 | |
| 			i -= len(x.Attributes)
 | |
| 			copy(dAtA[i:], x.Attributes)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Attributes)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x3a
 | |
| 		}
 | |
| 		if len(x.Owners) > 0 {
 | |
| 			for iNdEx := len(x.Owners) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 				i -= len(x.Owners[iNdEx])
 | |
| 				copy(dAtA[i:], x.Owners[iNdEx])
 | |
| 				i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owners[iNdEx])))
 | |
| 				i--
 | |
| 				dAtA[i] = 0x32
 | |
| 			}
 | |
| 		}
 | |
| 		if x.Deleted {
 | |
| 			i--
 | |
| 			if x.Deleted {
 | |
| 				dAtA[i] = 1
 | |
| 			} else {
 | |
| 				dAtA[i] = 0
 | |
| 			}
 | |
| 			i--
 | |
| 			dAtA[i] = 0x28
 | |
| 		}
 | |
| 		if len(x.ExpiryTime) > 0 {
 | |
| 			i -= len(x.ExpiryTime)
 | |
| 			copy(dAtA[i:], x.ExpiryTime)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ExpiryTime)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x22
 | |
| 		}
 | |
| 		if len(x.CreateTime) > 0 {
 | |
| 			i -= len(x.CreateTime)
 | |
| 			copy(dAtA[i:], x.CreateTime)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CreateTime)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x1a
 | |
| 		}
 | |
| 		if len(x.BondId) > 0 {
 | |
| 			i -= len(x.BondId)
 | |
| 			copy(dAtA[i:], x.BondId)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BondId)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x12
 | |
| 		}
 | |
| 		if len(x.Id) > 0 {
 | |
| 			i -= len(x.Id)
 | |
| 			copy(dAtA[i:], x.Id)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0xa
 | |
| 		}
 | |
| 		if input.Buf != nil {
 | |
| 			input.Buf = append(input.Buf, dAtA...)
 | |
| 		} else {
 | |
| 			input.Buf = dAtA
 | |
| 		}
 | |
| 		return protoiface.MarshalOutput{
 | |
| 			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 			Buf:               input.Buf,
 | |
| 		}, nil
 | |
| 	}
 | |
| 	unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
 | |
| 		x := input.Message.Interface().(*Record)
 | |
| 		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: Record: wiretype end group for non-group")
 | |
| 			}
 | |
| 			if fieldNum <= 0 {
 | |
| 				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Record: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 			}
 | |
| 			switch fieldNum {
 | |
| 			case 1:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
 | |
| 				}
 | |
| 				var stringLen uint64
 | |
| 				for shift := uint(0); ; shift += 7 {
 | |
| 					if shift >= 64 {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
 | |
| 					}
 | |
| 					if iNdEx >= l {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 					}
 | |
| 					b := dAtA[iNdEx]
 | |
| 					iNdEx++
 | |
| 					stringLen |= uint64(b&0x7F) << shift
 | |
| 					if b < 0x80 {
 | |
| 						break
 | |
| 					}
 | |
| 				}
 | |
| 				intStringLen := int(stringLen)
 | |
| 				if intStringLen < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				postIndex := iNdEx + intStringLen
 | |
| 				if postIndex < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				if postIndex > l {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				x.Id = string(dAtA[iNdEx:postIndex])
 | |
| 				iNdEx = postIndex
 | |
| 			case 2:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BondId", 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.BondId = 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 CreateTime", 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.CreateTime = string(dAtA[iNdEx:postIndex])
 | |
| 				iNdEx = postIndex
 | |
| 			case 4:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpiryTime", 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.ExpiryTime = string(dAtA[iNdEx:postIndex])
 | |
| 				iNdEx = postIndex
 | |
| 			case 5:
 | |
| 				if wireType != 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType)
 | |
| 				}
 | |
| 				var v int
 | |
| 				for shift := uint(0); ; shift += 7 {
 | |
| 					if shift >= 64 {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
 | |
| 					}
 | |
| 					if iNdEx >= l {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 					}
 | |
| 					b := dAtA[iNdEx]
 | |
| 					iNdEx++
 | |
| 					v |= int(b&0x7F) << shift
 | |
| 					if b < 0x80 {
 | |
| 						break
 | |
| 					}
 | |
| 				}
 | |
| 				x.Deleted = bool(v != 0)
 | |
| 			case 6:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owners", 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.Owners = append(x.Owners, string(dAtA[iNdEx:postIndex]))
 | |
| 				iNdEx = postIndex
 | |
| 			case 7:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Attributes", 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.Attributes = append(x.Attributes[:0], dAtA[iNdEx:postIndex]...)
 | |
| 				if x.Attributes == nil {
 | |
| 					x.Attributes = []byte{}
 | |
| 				}
 | |
| 				iNdEx = postIndex
 | |
| 			case 8:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Names", 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.Names = append(x.Names, string(dAtA[iNdEx:postIndex]))
 | |
| 				iNdEx = postIndex
 | |
| 			case 9:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType)
 | |
| 				}
 | |
| 				var stringLen uint64
 | |
| 				for shift := uint(0); ; shift += 7 {
 | |
| 					if shift >= 64 {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
 | |
| 					}
 | |
| 					if iNdEx >= l {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 					}
 | |
| 					b := dAtA[iNdEx]
 | |
| 					iNdEx++
 | |
| 					stringLen |= uint64(b&0x7F) << shift
 | |
| 					if b < 0x80 {
 | |
| 						break
 | |
| 					}
 | |
| 				}
 | |
| 				intStringLen := int(stringLen)
 | |
| 				if intStringLen < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				postIndex := iNdEx + intStringLen
 | |
| 				if postIndex < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				if postIndex > l {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				x.Type_ = string(dAtA[iNdEx:postIndex])
 | |
| 				iNdEx = postIndex
 | |
| 			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_AuthorityEntry       protoreflect.MessageDescriptor
 | |
| 	fd_AuthorityEntry_name  protoreflect.FieldDescriptor
 | |
| 	fd_AuthorityEntry_entry protoreflect.FieldDescriptor
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	file_cerc_registry_v1_registry_proto_init()
 | |
| 	md_AuthorityEntry = File_cerc_registry_v1_registry_proto.Messages().ByName("AuthorityEntry")
 | |
| 	fd_AuthorityEntry_name = md_AuthorityEntry.Fields().ByName("name")
 | |
| 	fd_AuthorityEntry_entry = md_AuthorityEntry.Fields().ByName("entry")
 | |
| }
 | |
| 
 | |
| var _ protoreflect.Message = (*fastReflection_AuthorityEntry)(nil)
 | |
| 
 | |
| type fastReflection_AuthorityEntry AuthorityEntry
 | |
| 
 | |
| func (x *AuthorityEntry) ProtoReflect() protoreflect.Message {
 | |
| 	return (*fastReflection_AuthorityEntry)(x)
 | |
| }
 | |
| 
 | |
| func (x *AuthorityEntry) slowProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_cerc_registry_v1_registry_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_AuthorityEntry_messageType fastReflection_AuthorityEntry_messageType
 | |
| var _ protoreflect.MessageType = fastReflection_AuthorityEntry_messageType{}
 | |
| 
 | |
| type fastReflection_AuthorityEntry_messageType struct{}
 | |
| 
 | |
| func (x fastReflection_AuthorityEntry_messageType) Zero() protoreflect.Message {
 | |
| 	return (*fastReflection_AuthorityEntry)(nil)
 | |
| }
 | |
| func (x fastReflection_AuthorityEntry_messageType) New() protoreflect.Message {
 | |
| 	return new(fastReflection_AuthorityEntry)
 | |
| }
 | |
| func (x fastReflection_AuthorityEntry_messageType) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_AuthorityEntry
 | |
| }
 | |
| 
 | |
| // Descriptor returns message descriptor, which contains only the protobuf
 | |
| // type information for the message.
 | |
| func (x *fastReflection_AuthorityEntry) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_AuthorityEntry
 | |
| }
 | |
| 
 | |
| // 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_AuthorityEntry) Type() protoreflect.MessageType {
 | |
| 	return _fastReflection_AuthorityEntry_messageType
 | |
| }
 | |
| 
 | |
| // New returns a newly allocated and mutable empty message.
 | |
| func (x *fastReflection_AuthorityEntry) New() protoreflect.Message {
 | |
| 	return new(fastReflection_AuthorityEntry)
 | |
| }
 | |
| 
 | |
| // Interface unwraps the message reflection interface and
 | |
| // returns the underlying ProtoMessage interface.
 | |
| func (x *fastReflection_AuthorityEntry) Interface() protoreflect.ProtoMessage {
 | |
| 	return (*AuthorityEntry)(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_AuthorityEntry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
 | |
| 	if x.Name != "" {
 | |
| 		value := protoreflect.ValueOfString(x.Name)
 | |
| 		if !f(fd_AuthorityEntry_name, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.Entry != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.Entry.ProtoReflect())
 | |
| 		if !f(fd_AuthorityEntry_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_AuthorityEntry) Has(fd protoreflect.FieldDescriptor) bool {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.AuthorityEntry.name":
 | |
| 		return x.Name != ""
 | |
| 	case "cerc.registry.v1.AuthorityEntry.entry":
 | |
| 		return x.Entry != nil
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AuthorityEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.AuthorityEntry 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_AuthorityEntry) Clear(fd protoreflect.FieldDescriptor) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.AuthorityEntry.name":
 | |
| 		x.Name = ""
 | |
| 	case "cerc.registry.v1.AuthorityEntry.entry":
 | |
| 		x.Entry = nil
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AuthorityEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.AuthorityEntry 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_AuthorityEntry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch descriptor.FullName() {
 | |
| 	case "cerc.registry.v1.AuthorityEntry.name":
 | |
| 		value := x.Name
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.AuthorityEntry.entry":
 | |
| 		value := x.Entry
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	default:
 | |
| 		if descriptor.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AuthorityEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.AuthorityEntry 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_AuthorityEntry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.AuthorityEntry.name":
 | |
| 		x.Name = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.AuthorityEntry.entry":
 | |
| 		x.Entry = value.Message().Interface().(*NameAuthority)
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AuthorityEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.AuthorityEntry 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_AuthorityEntry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.AuthorityEntry.entry":
 | |
| 		if x.Entry == nil {
 | |
| 			x.Entry = new(NameAuthority)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.Entry.ProtoReflect())
 | |
| 	case "cerc.registry.v1.AuthorityEntry.name":
 | |
| 		panic(fmt.Errorf("field name of message cerc.registry.v1.AuthorityEntry is not mutable"))
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AuthorityEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.AuthorityEntry 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_AuthorityEntry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.AuthorityEntry.name":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.AuthorityEntry.entry":
 | |
| 		m := new(NameAuthority)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AuthorityEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.AuthorityEntry 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_AuthorityEntry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
 | |
| 	switch d.FullName() {
 | |
| 	default:
 | |
| 		panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.AuthorityEntry", 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_AuthorityEntry) 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_AuthorityEntry) 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_AuthorityEntry) 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_AuthorityEntry) ProtoMethods() *protoiface.Methods {
 | |
| 	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
 | |
| 		x := input.Message.Interface().(*AuthorityEntry)
 | |
| 		if x == nil {
 | |
| 			return protoiface.SizeOutput{
 | |
| 				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 				Size:              0,
 | |
| 			}
 | |
| 		}
 | |
| 		options := runtime.SizeInputToOptions(input)
 | |
| 		_ = options
 | |
| 		var n int
 | |
| 		var l int
 | |
| 		_ = l
 | |
| 		l = len(x.Name)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		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().(*AuthorityEntry)
 | |
| 		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] = 0x12
 | |
| 		}
 | |
| 		if len(x.Name) > 0 {
 | |
| 			i -= len(x.Name)
 | |
| 			copy(dAtA[i:], x.Name)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0xa
 | |
| 		}
 | |
| 		if input.Buf != nil {
 | |
| 			input.Buf = append(input.Buf, dAtA...)
 | |
| 		} else {
 | |
| 			input.Buf = dAtA
 | |
| 		}
 | |
| 		return protoiface.MarshalOutput{
 | |
| 			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 			Buf:               input.Buf,
 | |
| 		}, nil
 | |
| 	}
 | |
| 	unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
 | |
| 		x := input.Message.Interface().(*AuthorityEntry)
 | |
| 		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: AuthorityEntry: wiretype end group for non-group")
 | |
| 			}
 | |
| 			if fieldNum <= 0 {
 | |
| 				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AuthorityEntry: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 			}
 | |
| 			switch fieldNum {
 | |
| 			case 1:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
 | |
| 				}
 | |
| 				var stringLen uint64
 | |
| 				for shift := uint(0); ; shift += 7 {
 | |
| 					if shift >= 64 {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
 | |
| 					}
 | |
| 					if iNdEx >= l {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 					}
 | |
| 					b := dAtA[iNdEx]
 | |
| 					iNdEx++
 | |
| 					stringLen |= uint64(b&0x7F) << shift
 | |
| 					if b < 0x80 {
 | |
| 						break
 | |
| 					}
 | |
| 				}
 | |
| 				intStringLen := int(stringLen)
 | |
| 				if intStringLen < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				postIndex := iNdEx + intStringLen
 | |
| 				if postIndex < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				if postIndex > l {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				x.Name = string(dAtA[iNdEx:postIndex])
 | |
| 				iNdEx = postIndex
 | |
| 			case 2:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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 = &NameAuthority{}
 | |
| 				}
 | |
| 				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_NameAuthority                  protoreflect.MessageDescriptor
 | |
| 	fd_NameAuthority_owner_public_key protoreflect.FieldDescriptor
 | |
| 	fd_NameAuthority_owner_address    protoreflect.FieldDescriptor
 | |
| 	fd_NameAuthority_height           protoreflect.FieldDescriptor
 | |
| 	fd_NameAuthority_status           protoreflect.FieldDescriptor
 | |
| 	fd_NameAuthority_auction_id       protoreflect.FieldDescriptor
 | |
| 	fd_NameAuthority_bond_id          protoreflect.FieldDescriptor
 | |
| 	fd_NameAuthority_expiry_time      protoreflect.FieldDescriptor
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	file_cerc_registry_v1_registry_proto_init()
 | |
| 	md_NameAuthority = File_cerc_registry_v1_registry_proto.Messages().ByName("NameAuthority")
 | |
| 	fd_NameAuthority_owner_public_key = md_NameAuthority.Fields().ByName("owner_public_key")
 | |
| 	fd_NameAuthority_owner_address = md_NameAuthority.Fields().ByName("owner_address")
 | |
| 	fd_NameAuthority_height = md_NameAuthority.Fields().ByName("height")
 | |
| 	fd_NameAuthority_status = md_NameAuthority.Fields().ByName("status")
 | |
| 	fd_NameAuthority_auction_id = md_NameAuthority.Fields().ByName("auction_id")
 | |
| 	fd_NameAuthority_bond_id = md_NameAuthority.Fields().ByName("bond_id")
 | |
| 	fd_NameAuthority_expiry_time = md_NameAuthority.Fields().ByName("expiry_time")
 | |
| }
 | |
| 
 | |
| var _ protoreflect.Message = (*fastReflection_NameAuthority)(nil)
 | |
| 
 | |
| type fastReflection_NameAuthority NameAuthority
 | |
| 
 | |
| func (x *NameAuthority) ProtoReflect() protoreflect.Message {
 | |
| 	return (*fastReflection_NameAuthority)(x)
 | |
| }
 | |
| 
 | |
| func (x *NameAuthority) slowProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_cerc_registry_v1_registry_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_NameAuthority_messageType fastReflection_NameAuthority_messageType
 | |
| var _ protoreflect.MessageType = fastReflection_NameAuthority_messageType{}
 | |
| 
 | |
| type fastReflection_NameAuthority_messageType struct{}
 | |
| 
 | |
| func (x fastReflection_NameAuthority_messageType) Zero() protoreflect.Message {
 | |
| 	return (*fastReflection_NameAuthority)(nil)
 | |
| }
 | |
| func (x fastReflection_NameAuthority_messageType) New() protoreflect.Message {
 | |
| 	return new(fastReflection_NameAuthority)
 | |
| }
 | |
| func (x fastReflection_NameAuthority_messageType) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_NameAuthority
 | |
| }
 | |
| 
 | |
| // Descriptor returns message descriptor, which contains only the protobuf
 | |
| // type information for the message.
 | |
| func (x *fastReflection_NameAuthority) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_NameAuthority
 | |
| }
 | |
| 
 | |
| // 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_NameAuthority) Type() protoreflect.MessageType {
 | |
| 	return _fastReflection_NameAuthority_messageType
 | |
| }
 | |
| 
 | |
| // New returns a newly allocated and mutable empty message.
 | |
| func (x *fastReflection_NameAuthority) New() protoreflect.Message {
 | |
| 	return new(fastReflection_NameAuthority)
 | |
| }
 | |
| 
 | |
| // Interface unwraps the message reflection interface and
 | |
| // returns the underlying ProtoMessage interface.
 | |
| func (x *fastReflection_NameAuthority) Interface() protoreflect.ProtoMessage {
 | |
| 	return (*NameAuthority)(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_NameAuthority) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
 | |
| 	if x.OwnerPublicKey != "" {
 | |
| 		value := protoreflect.ValueOfString(x.OwnerPublicKey)
 | |
| 		if !f(fd_NameAuthority_owner_public_key, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.OwnerAddress != "" {
 | |
| 		value := protoreflect.ValueOfString(x.OwnerAddress)
 | |
| 		if !f(fd_NameAuthority_owner_address, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.Height != uint64(0) {
 | |
| 		value := protoreflect.ValueOfUint64(x.Height)
 | |
| 		if !f(fd_NameAuthority_height, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.Status != "" {
 | |
| 		value := protoreflect.ValueOfString(x.Status)
 | |
| 		if !f(fd_NameAuthority_status, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.AuctionId != "" {
 | |
| 		value := protoreflect.ValueOfString(x.AuctionId)
 | |
| 		if !f(fd_NameAuthority_auction_id, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.BondId != "" {
 | |
| 		value := protoreflect.ValueOfString(x.BondId)
 | |
| 		if !f(fd_NameAuthority_bond_id, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.ExpiryTime != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.ExpiryTime.ProtoReflect())
 | |
| 		if !f(fd_NameAuthority_expiry_time, 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_NameAuthority) Has(fd protoreflect.FieldDescriptor) bool {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameAuthority.owner_public_key":
 | |
| 		return x.OwnerPublicKey != ""
 | |
| 	case "cerc.registry.v1.NameAuthority.owner_address":
 | |
| 		return x.OwnerAddress != ""
 | |
| 	case "cerc.registry.v1.NameAuthority.height":
 | |
| 		return x.Height != uint64(0)
 | |
| 	case "cerc.registry.v1.NameAuthority.status":
 | |
| 		return x.Status != ""
 | |
| 	case "cerc.registry.v1.NameAuthority.auction_id":
 | |
| 		return x.AuctionId != ""
 | |
| 	case "cerc.registry.v1.NameAuthority.bond_id":
 | |
| 		return x.BondId != ""
 | |
| 	case "cerc.registry.v1.NameAuthority.expiry_time":
 | |
| 		return x.ExpiryTime != nil
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameAuthority"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameAuthority 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_NameAuthority) Clear(fd protoreflect.FieldDescriptor) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameAuthority.owner_public_key":
 | |
| 		x.OwnerPublicKey = ""
 | |
| 	case "cerc.registry.v1.NameAuthority.owner_address":
 | |
| 		x.OwnerAddress = ""
 | |
| 	case "cerc.registry.v1.NameAuthority.height":
 | |
| 		x.Height = uint64(0)
 | |
| 	case "cerc.registry.v1.NameAuthority.status":
 | |
| 		x.Status = ""
 | |
| 	case "cerc.registry.v1.NameAuthority.auction_id":
 | |
| 		x.AuctionId = ""
 | |
| 	case "cerc.registry.v1.NameAuthority.bond_id":
 | |
| 		x.BondId = ""
 | |
| 	case "cerc.registry.v1.NameAuthority.expiry_time":
 | |
| 		x.ExpiryTime = nil
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameAuthority"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameAuthority 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_NameAuthority) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch descriptor.FullName() {
 | |
| 	case "cerc.registry.v1.NameAuthority.owner_public_key":
 | |
| 		value := x.OwnerPublicKey
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.NameAuthority.owner_address":
 | |
| 		value := x.OwnerAddress
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.NameAuthority.height":
 | |
| 		value := x.Height
 | |
| 		return protoreflect.ValueOfUint64(value)
 | |
| 	case "cerc.registry.v1.NameAuthority.status":
 | |
| 		value := x.Status
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.NameAuthority.auction_id":
 | |
| 		value := x.AuctionId
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.NameAuthority.bond_id":
 | |
| 		value := x.BondId
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.NameAuthority.expiry_time":
 | |
| 		value := x.ExpiryTime
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	default:
 | |
| 		if descriptor.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameAuthority"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameAuthority 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_NameAuthority) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameAuthority.owner_public_key":
 | |
| 		x.OwnerPublicKey = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.NameAuthority.owner_address":
 | |
| 		x.OwnerAddress = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.NameAuthority.height":
 | |
| 		x.Height = value.Uint()
 | |
| 	case "cerc.registry.v1.NameAuthority.status":
 | |
| 		x.Status = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.NameAuthority.auction_id":
 | |
| 		x.AuctionId = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.NameAuthority.bond_id":
 | |
| 		x.BondId = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.NameAuthority.expiry_time":
 | |
| 		x.ExpiryTime = value.Message().Interface().(*timestamppb.Timestamp)
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameAuthority"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameAuthority 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_NameAuthority) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameAuthority.expiry_time":
 | |
| 		if x.ExpiryTime == nil {
 | |
| 			x.ExpiryTime = new(timestamppb.Timestamp)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.ExpiryTime.ProtoReflect())
 | |
| 	case "cerc.registry.v1.NameAuthority.owner_public_key":
 | |
| 		panic(fmt.Errorf("field owner_public_key of message cerc.registry.v1.NameAuthority is not mutable"))
 | |
| 	case "cerc.registry.v1.NameAuthority.owner_address":
 | |
| 		panic(fmt.Errorf("field owner_address of message cerc.registry.v1.NameAuthority is not mutable"))
 | |
| 	case "cerc.registry.v1.NameAuthority.height":
 | |
| 		panic(fmt.Errorf("field height of message cerc.registry.v1.NameAuthority is not mutable"))
 | |
| 	case "cerc.registry.v1.NameAuthority.status":
 | |
| 		panic(fmt.Errorf("field status of message cerc.registry.v1.NameAuthority is not mutable"))
 | |
| 	case "cerc.registry.v1.NameAuthority.auction_id":
 | |
| 		panic(fmt.Errorf("field auction_id of message cerc.registry.v1.NameAuthority is not mutable"))
 | |
| 	case "cerc.registry.v1.NameAuthority.bond_id":
 | |
| 		panic(fmt.Errorf("field bond_id of message cerc.registry.v1.NameAuthority is not mutable"))
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameAuthority"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameAuthority 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_NameAuthority) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameAuthority.owner_public_key":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.NameAuthority.owner_address":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.NameAuthority.height":
 | |
| 		return protoreflect.ValueOfUint64(uint64(0))
 | |
| 	case "cerc.registry.v1.NameAuthority.status":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.NameAuthority.auction_id":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.NameAuthority.bond_id":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.NameAuthority.expiry_time":
 | |
| 		m := new(timestamppb.Timestamp)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameAuthority"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameAuthority 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_NameAuthority) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
 | |
| 	switch d.FullName() {
 | |
| 	default:
 | |
| 		panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.NameAuthority", 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_NameAuthority) 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_NameAuthority) 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_NameAuthority) 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_NameAuthority) ProtoMethods() *protoiface.Methods {
 | |
| 	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
 | |
| 		x := input.Message.Interface().(*NameAuthority)
 | |
| 		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.OwnerPublicKey)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		l = len(x.OwnerAddress)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.Height != 0 {
 | |
| 			n += 1 + runtime.Sov(uint64(x.Height))
 | |
| 		}
 | |
| 		l = len(x.Status)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		l = len(x.AuctionId)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		l = len(x.BondId)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.ExpiryTime != nil {
 | |
| 			l = options.Size(x.ExpiryTime)
 | |
| 			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().(*NameAuthority)
 | |
| 		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.ExpiryTime != nil {
 | |
| 			encoded, err := options.Marshal(x.ExpiryTime)
 | |
| 			if err != nil {
 | |
| 				return protoiface.MarshalOutput{
 | |
| 					NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 					Buf:               input.Buf,
 | |
| 				}, err
 | |
| 			}
 | |
| 			i -= len(encoded)
 | |
| 			copy(dAtA[i:], encoded)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x3a
 | |
| 		}
 | |
| 		if len(x.BondId) > 0 {
 | |
| 			i -= len(x.BondId)
 | |
| 			copy(dAtA[i:], x.BondId)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BondId)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x32
 | |
| 		}
 | |
| 		if len(x.AuctionId) > 0 {
 | |
| 			i -= len(x.AuctionId)
 | |
| 			copy(dAtA[i:], x.AuctionId)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AuctionId)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x2a
 | |
| 		}
 | |
| 		if len(x.Status) > 0 {
 | |
| 			i -= len(x.Status)
 | |
| 			copy(dAtA[i:], x.Status)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Status)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x22
 | |
| 		}
 | |
| 		if x.Height != 0 {
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(x.Height))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x18
 | |
| 		}
 | |
| 		if len(x.OwnerAddress) > 0 {
 | |
| 			i -= len(x.OwnerAddress)
 | |
| 			copy(dAtA[i:], x.OwnerAddress)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OwnerAddress)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x12
 | |
| 		}
 | |
| 		if len(x.OwnerPublicKey) > 0 {
 | |
| 			i -= len(x.OwnerPublicKey)
 | |
| 			copy(dAtA[i:], x.OwnerPublicKey)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OwnerPublicKey)))
 | |
| 			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().(*NameAuthority)
 | |
| 		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: NameAuthority: wiretype end group for non-group")
 | |
| 			}
 | |
| 			if fieldNum <= 0 {
 | |
| 				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NameAuthority: 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 OwnerPublicKey", 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.OwnerPublicKey = 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 OwnerAddress", 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.OwnerAddress = string(dAtA[iNdEx:postIndex])
 | |
| 				iNdEx = postIndex
 | |
| 			case 3:
 | |
| 				if wireType != 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
 | |
| 				}
 | |
| 				x.Height = 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.Height |= uint64(b&0x7F) << shift
 | |
| 					if b < 0x80 {
 | |
| 						break
 | |
| 					}
 | |
| 				}
 | |
| 			case 4:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Status", 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.Status = string(dAtA[iNdEx:postIndex])
 | |
| 				iNdEx = postIndex
 | |
| 			case 5:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AuctionId", 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.AuctionId = string(dAtA[iNdEx:postIndex])
 | |
| 				iNdEx = postIndex
 | |
| 			case 6:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BondId", 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.BondId = string(dAtA[iNdEx:postIndex])
 | |
| 				iNdEx = postIndex
 | |
| 			case 7:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExpiryTime", 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.ExpiryTime == nil {
 | |
| 					x.ExpiryTime = ×tamppb.Timestamp{}
 | |
| 				}
 | |
| 				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ExpiryTime); 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_NameEntry       protoreflect.MessageDescriptor
 | |
| 	fd_NameEntry_name  protoreflect.FieldDescriptor
 | |
| 	fd_NameEntry_entry protoreflect.FieldDescriptor
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	file_cerc_registry_v1_registry_proto_init()
 | |
| 	md_NameEntry = File_cerc_registry_v1_registry_proto.Messages().ByName("NameEntry")
 | |
| 	fd_NameEntry_name = md_NameEntry.Fields().ByName("name")
 | |
| 	fd_NameEntry_entry = md_NameEntry.Fields().ByName("entry")
 | |
| }
 | |
| 
 | |
| var _ protoreflect.Message = (*fastReflection_NameEntry)(nil)
 | |
| 
 | |
| type fastReflection_NameEntry NameEntry
 | |
| 
 | |
| func (x *NameEntry) ProtoReflect() protoreflect.Message {
 | |
| 	return (*fastReflection_NameEntry)(x)
 | |
| }
 | |
| 
 | |
| func (x *NameEntry) slowProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_cerc_registry_v1_registry_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_NameEntry_messageType fastReflection_NameEntry_messageType
 | |
| var _ protoreflect.MessageType = fastReflection_NameEntry_messageType{}
 | |
| 
 | |
| type fastReflection_NameEntry_messageType struct{}
 | |
| 
 | |
| func (x fastReflection_NameEntry_messageType) Zero() protoreflect.Message {
 | |
| 	return (*fastReflection_NameEntry)(nil)
 | |
| }
 | |
| func (x fastReflection_NameEntry_messageType) New() protoreflect.Message {
 | |
| 	return new(fastReflection_NameEntry)
 | |
| }
 | |
| func (x fastReflection_NameEntry_messageType) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_NameEntry
 | |
| }
 | |
| 
 | |
| // Descriptor returns message descriptor, which contains only the protobuf
 | |
| // type information for the message.
 | |
| func (x *fastReflection_NameEntry) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_NameEntry
 | |
| }
 | |
| 
 | |
| // 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_NameEntry) Type() protoreflect.MessageType {
 | |
| 	return _fastReflection_NameEntry_messageType
 | |
| }
 | |
| 
 | |
| // New returns a newly allocated and mutable empty message.
 | |
| func (x *fastReflection_NameEntry) New() protoreflect.Message {
 | |
| 	return new(fastReflection_NameEntry)
 | |
| }
 | |
| 
 | |
| // Interface unwraps the message reflection interface and
 | |
| // returns the underlying ProtoMessage interface.
 | |
| func (x *fastReflection_NameEntry) Interface() protoreflect.ProtoMessage {
 | |
| 	return (*NameEntry)(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_NameEntry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
 | |
| 	if x.Name != "" {
 | |
| 		value := protoreflect.ValueOfString(x.Name)
 | |
| 		if !f(fd_NameEntry_name, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.Entry != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.Entry.ProtoReflect())
 | |
| 		if !f(fd_NameEntry_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_NameEntry) Has(fd protoreflect.FieldDescriptor) bool {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameEntry.name":
 | |
| 		return x.Name != ""
 | |
| 	case "cerc.registry.v1.NameEntry.entry":
 | |
| 		return x.Entry != nil
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameEntry 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_NameEntry) Clear(fd protoreflect.FieldDescriptor) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameEntry.name":
 | |
| 		x.Name = ""
 | |
| 	case "cerc.registry.v1.NameEntry.entry":
 | |
| 		x.Entry = nil
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameEntry 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_NameEntry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch descriptor.FullName() {
 | |
| 	case "cerc.registry.v1.NameEntry.name":
 | |
| 		value := x.Name
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.NameEntry.entry":
 | |
| 		value := x.Entry
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	default:
 | |
| 		if descriptor.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameEntry 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_NameEntry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameEntry.name":
 | |
| 		x.Name = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.NameEntry.entry":
 | |
| 		x.Entry = value.Message().Interface().(*NameRecord)
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameEntry 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_NameEntry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameEntry.entry":
 | |
| 		if x.Entry == nil {
 | |
| 			x.Entry = new(NameRecord)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.Entry.ProtoReflect())
 | |
| 	case "cerc.registry.v1.NameEntry.name":
 | |
| 		panic(fmt.Errorf("field name of message cerc.registry.v1.NameEntry is not mutable"))
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameEntry 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_NameEntry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameEntry.name":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.NameEntry.entry":
 | |
| 		m := new(NameRecord)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameEntry 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_NameEntry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
 | |
| 	switch d.FullName() {
 | |
| 	default:
 | |
| 		panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.NameEntry", 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_NameEntry) 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_NameEntry) 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_NameEntry) 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_NameEntry) ProtoMethods() *protoiface.Methods {
 | |
| 	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
 | |
| 		x := input.Message.Interface().(*NameEntry)
 | |
| 		if x == nil {
 | |
| 			return protoiface.SizeOutput{
 | |
| 				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 				Size:              0,
 | |
| 			}
 | |
| 		}
 | |
| 		options := runtime.SizeInputToOptions(input)
 | |
| 		_ = options
 | |
| 		var n int
 | |
| 		var l int
 | |
| 		_ = l
 | |
| 		l = len(x.Name)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		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().(*NameEntry)
 | |
| 		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] = 0x12
 | |
| 		}
 | |
| 		if len(x.Name) > 0 {
 | |
| 			i -= len(x.Name)
 | |
| 			copy(dAtA[i:], x.Name)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Name)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0xa
 | |
| 		}
 | |
| 		if input.Buf != nil {
 | |
| 			input.Buf = append(input.Buf, dAtA...)
 | |
| 		} else {
 | |
| 			input.Buf = dAtA
 | |
| 		}
 | |
| 		return protoiface.MarshalOutput{
 | |
| 			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 			Buf:               input.Buf,
 | |
| 		}, nil
 | |
| 	}
 | |
| 	unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
 | |
| 		x := input.Message.Interface().(*NameEntry)
 | |
| 		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: NameEntry: wiretype end group for non-group")
 | |
| 			}
 | |
| 			if fieldNum <= 0 {
 | |
| 				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NameEntry: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 			}
 | |
| 			switch fieldNum {
 | |
| 			case 1:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
 | |
| 				}
 | |
| 				var stringLen uint64
 | |
| 				for shift := uint(0); ; shift += 7 {
 | |
| 					if shift >= 64 {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
 | |
| 					}
 | |
| 					if iNdEx >= l {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 					}
 | |
| 					b := dAtA[iNdEx]
 | |
| 					iNdEx++
 | |
| 					stringLen |= uint64(b&0x7F) << shift
 | |
| 					if b < 0x80 {
 | |
| 						break
 | |
| 					}
 | |
| 				}
 | |
| 				intStringLen := int(stringLen)
 | |
| 				if intStringLen < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				postIndex := iNdEx + intStringLen
 | |
| 				if postIndex < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				if postIndex > l {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				x.Name = string(dAtA[iNdEx:postIndex])
 | |
| 				iNdEx = postIndex
 | |
| 			case 2:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field 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 = &NameRecord{}
 | |
| 				}
 | |
| 				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 _ protoreflect.List = (*_NameRecord_2_list)(nil)
 | |
| 
 | |
| type _NameRecord_2_list struct {
 | |
| 	list *[]*NameRecordEntry
 | |
| }
 | |
| 
 | |
| func (x *_NameRecord_2_list) Len() int {
 | |
| 	if x.list == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	return len(*x.list)
 | |
| }
 | |
| 
 | |
| func (x *_NameRecord_2_list) Get(i int) protoreflect.Value {
 | |
| 	return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
 | |
| }
 | |
| 
 | |
| func (x *_NameRecord_2_list) Set(i int, value protoreflect.Value) {
 | |
| 	valueUnwrapped := value.Message()
 | |
| 	concreteValue := valueUnwrapped.Interface().(*NameRecordEntry)
 | |
| 	(*x.list)[i] = concreteValue
 | |
| }
 | |
| 
 | |
| func (x *_NameRecord_2_list) Append(value protoreflect.Value) {
 | |
| 	valueUnwrapped := value.Message()
 | |
| 	concreteValue := valueUnwrapped.Interface().(*NameRecordEntry)
 | |
| 	*x.list = append(*x.list, concreteValue)
 | |
| }
 | |
| 
 | |
| func (x *_NameRecord_2_list) AppendMutable() protoreflect.Value {
 | |
| 	v := new(NameRecordEntry)
 | |
| 	*x.list = append(*x.list, v)
 | |
| 	return protoreflect.ValueOfMessage(v.ProtoReflect())
 | |
| }
 | |
| 
 | |
| func (x *_NameRecord_2_list) Truncate(n int) {
 | |
| 	for i := n; i < len(*x.list); i++ {
 | |
| 		(*x.list)[i] = nil
 | |
| 	}
 | |
| 	*x.list = (*x.list)[:n]
 | |
| }
 | |
| 
 | |
| func (x *_NameRecord_2_list) NewElement() protoreflect.Value {
 | |
| 	v := new(NameRecordEntry)
 | |
| 	return protoreflect.ValueOfMessage(v.ProtoReflect())
 | |
| }
 | |
| 
 | |
| func (x *_NameRecord_2_list) IsValid() bool {
 | |
| 	return x.list != nil
 | |
| }
 | |
| 
 | |
| var (
 | |
| 	md_NameRecord         protoreflect.MessageDescriptor
 | |
| 	fd_NameRecord_latest  protoreflect.FieldDescriptor
 | |
| 	fd_NameRecord_history protoreflect.FieldDescriptor
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	file_cerc_registry_v1_registry_proto_init()
 | |
| 	md_NameRecord = File_cerc_registry_v1_registry_proto.Messages().ByName("NameRecord")
 | |
| 	fd_NameRecord_latest = md_NameRecord.Fields().ByName("latest")
 | |
| 	fd_NameRecord_history = md_NameRecord.Fields().ByName("history")
 | |
| }
 | |
| 
 | |
| var _ protoreflect.Message = (*fastReflection_NameRecord)(nil)
 | |
| 
 | |
| type fastReflection_NameRecord NameRecord
 | |
| 
 | |
| func (x *NameRecord) ProtoReflect() protoreflect.Message {
 | |
| 	return (*fastReflection_NameRecord)(x)
 | |
| }
 | |
| 
 | |
| func (x *NameRecord) slowProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_cerc_registry_v1_registry_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_NameRecord_messageType fastReflection_NameRecord_messageType
 | |
| var _ protoreflect.MessageType = fastReflection_NameRecord_messageType{}
 | |
| 
 | |
| type fastReflection_NameRecord_messageType struct{}
 | |
| 
 | |
| func (x fastReflection_NameRecord_messageType) Zero() protoreflect.Message {
 | |
| 	return (*fastReflection_NameRecord)(nil)
 | |
| }
 | |
| func (x fastReflection_NameRecord_messageType) New() protoreflect.Message {
 | |
| 	return new(fastReflection_NameRecord)
 | |
| }
 | |
| func (x fastReflection_NameRecord_messageType) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_NameRecord
 | |
| }
 | |
| 
 | |
| // Descriptor returns message descriptor, which contains only the protobuf
 | |
| // type information for the message.
 | |
| func (x *fastReflection_NameRecord) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_NameRecord
 | |
| }
 | |
| 
 | |
| // 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_NameRecord) Type() protoreflect.MessageType {
 | |
| 	return _fastReflection_NameRecord_messageType
 | |
| }
 | |
| 
 | |
| // New returns a newly allocated and mutable empty message.
 | |
| func (x *fastReflection_NameRecord) New() protoreflect.Message {
 | |
| 	return new(fastReflection_NameRecord)
 | |
| }
 | |
| 
 | |
| // Interface unwraps the message reflection interface and
 | |
| // returns the underlying ProtoMessage interface.
 | |
| func (x *fastReflection_NameRecord) Interface() protoreflect.ProtoMessage {
 | |
| 	return (*NameRecord)(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_NameRecord) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
 | |
| 	if x.Latest != nil {
 | |
| 		value := protoreflect.ValueOfMessage(x.Latest.ProtoReflect())
 | |
| 		if !f(fd_NameRecord_latest, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if len(x.History) != 0 {
 | |
| 		value := protoreflect.ValueOfList(&_NameRecord_2_list{list: &x.History})
 | |
| 		if !f(fd_NameRecord_history, 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_NameRecord) Has(fd protoreflect.FieldDescriptor) bool {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameRecord.latest":
 | |
| 		return x.Latest != nil
 | |
| 	case "cerc.registry.v1.NameRecord.history":
 | |
| 		return len(x.History) != 0
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameRecord"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameRecord 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_NameRecord) Clear(fd protoreflect.FieldDescriptor) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameRecord.latest":
 | |
| 		x.Latest = nil
 | |
| 	case "cerc.registry.v1.NameRecord.history":
 | |
| 		x.History = nil
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameRecord"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameRecord 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_NameRecord) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch descriptor.FullName() {
 | |
| 	case "cerc.registry.v1.NameRecord.latest":
 | |
| 		value := x.Latest
 | |
| 		return protoreflect.ValueOfMessage(value.ProtoReflect())
 | |
| 	case "cerc.registry.v1.NameRecord.history":
 | |
| 		if len(x.History) == 0 {
 | |
| 			return protoreflect.ValueOfList(&_NameRecord_2_list{})
 | |
| 		}
 | |
| 		listValue := &_NameRecord_2_list{list: &x.History}
 | |
| 		return protoreflect.ValueOfList(listValue)
 | |
| 	default:
 | |
| 		if descriptor.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameRecord"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameRecord 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_NameRecord) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameRecord.latest":
 | |
| 		x.Latest = value.Message().Interface().(*NameRecordEntry)
 | |
| 	case "cerc.registry.v1.NameRecord.history":
 | |
| 		lv := value.List()
 | |
| 		clv := lv.(*_NameRecord_2_list)
 | |
| 		x.History = *clv.list
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameRecord"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameRecord 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_NameRecord) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameRecord.latest":
 | |
| 		if x.Latest == nil {
 | |
| 			x.Latest = new(NameRecordEntry)
 | |
| 		}
 | |
| 		return protoreflect.ValueOfMessage(x.Latest.ProtoReflect())
 | |
| 	case "cerc.registry.v1.NameRecord.history":
 | |
| 		if x.History == nil {
 | |
| 			x.History = []*NameRecordEntry{}
 | |
| 		}
 | |
| 		value := &_NameRecord_2_list{list: &x.History}
 | |
| 		return protoreflect.ValueOfList(value)
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameRecord"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameRecord 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_NameRecord) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameRecord.latest":
 | |
| 		m := new(NameRecordEntry)
 | |
| 		return protoreflect.ValueOfMessage(m.ProtoReflect())
 | |
| 	case "cerc.registry.v1.NameRecord.history":
 | |
| 		list := []*NameRecordEntry{}
 | |
| 		return protoreflect.ValueOfList(&_NameRecord_2_list{list: &list})
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameRecord"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameRecord 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_NameRecord) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
 | |
| 	switch d.FullName() {
 | |
| 	default:
 | |
| 		panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.NameRecord", 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_NameRecord) 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_NameRecord) 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_NameRecord) 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_NameRecord) ProtoMethods() *protoiface.Methods {
 | |
| 	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
 | |
| 		x := input.Message.Interface().(*NameRecord)
 | |
| 		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.Latest != nil {
 | |
| 			l = options.Size(x.Latest)
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if len(x.History) > 0 {
 | |
| 			for _, e := range x.History {
 | |
| 				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().(*NameRecord)
 | |
| 		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.History) > 0 {
 | |
| 			for iNdEx := len(x.History) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 				encoded, err := options.Marshal(x.History[iNdEx])
 | |
| 				if err != nil {
 | |
| 					return protoiface.MarshalOutput{
 | |
| 						NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 						Buf:               input.Buf,
 | |
| 					}, err
 | |
| 				}
 | |
| 				i -= len(encoded)
 | |
| 				copy(dAtA[i:], encoded)
 | |
| 				i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
 | |
| 				i--
 | |
| 				dAtA[i] = 0x12
 | |
| 			}
 | |
| 		}
 | |
| 		if x.Latest != nil {
 | |
| 			encoded, err := options.Marshal(x.Latest)
 | |
| 			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().(*NameRecord)
 | |
| 		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: NameRecord: wiretype end group for non-group")
 | |
| 			}
 | |
| 			if fieldNum <= 0 {
 | |
| 				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NameRecord: 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 Latest", 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.Latest == nil {
 | |
| 					x.Latest = &NameRecordEntry{}
 | |
| 				}
 | |
| 				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Latest); 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 History", 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.History = append(x.History, &NameRecordEntry{})
 | |
| 				if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.History[len(x.History)-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_NameRecordEntry        protoreflect.MessageDescriptor
 | |
| 	fd_NameRecordEntry_id     protoreflect.FieldDescriptor
 | |
| 	fd_NameRecordEntry_height protoreflect.FieldDescriptor
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	file_cerc_registry_v1_registry_proto_init()
 | |
| 	md_NameRecordEntry = File_cerc_registry_v1_registry_proto.Messages().ByName("NameRecordEntry")
 | |
| 	fd_NameRecordEntry_id = md_NameRecordEntry.Fields().ByName("id")
 | |
| 	fd_NameRecordEntry_height = md_NameRecordEntry.Fields().ByName("height")
 | |
| }
 | |
| 
 | |
| var _ protoreflect.Message = (*fastReflection_NameRecordEntry)(nil)
 | |
| 
 | |
| type fastReflection_NameRecordEntry NameRecordEntry
 | |
| 
 | |
| func (x *NameRecordEntry) ProtoReflect() protoreflect.Message {
 | |
| 	return (*fastReflection_NameRecordEntry)(x)
 | |
| }
 | |
| 
 | |
| func (x *NameRecordEntry) slowProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_cerc_registry_v1_registry_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_NameRecordEntry_messageType fastReflection_NameRecordEntry_messageType
 | |
| var _ protoreflect.MessageType = fastReflection_NameRecordEntry_messageType{}
 | |
| 
 | |
| type fastReflection_NameRecordEntry_messageType struct{}
 | |
| 
 | |
| func (x fastReflection_NameRecordEntry_messageType) Zero() protoreflect.Message {
 | |
| 	return (*fastReflection_NameRecordEntry)(nil)
 | |
| }
 | |
| func (x fastReflection_NameRecordEntry_messageType) New() protoreflect.Message {
 | |
| 	return new(fastReflection_NameRecordEntry)
 | |
| }
 | |
| func (x fastReflection_NameRecordEntry_messageType) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_NameRecordEntry
 | |
| }
 | |
| 
 | |
| // Descriptor returns message descriptor, which contains only the protobuf
 | |
| // type information for the message.
 | |
| func (x *fastReflection_NameRecordEntry) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_NameRecordEntry
 | |
| }
 | |
| 
 | |
| // 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_NameRecordEntry) Type() protoreflect.MessageType {
 | |
| 	return _fastReflection_NameRecordEntry_messageType
 | |
| }
 | |
| 
 | |
| // New returns a newly allocated and mutable empty message.
 | |
| func (x *fastReflection_NameRecordEntry) New() protoreflect.Message {
 | |
| 	return new(fastReflection_NameRecordEntry)
 | |
| }
 | |
| 
 | |
| // Interface unwraps the message reflection interface and
 | |
| // returns the underlying ProtoMessage interface.
 | |
| func (x *fastReflection_NameRecordEntry) Interface() protoreflect.ProtoMessage {
 | |
| 	return (*NameRecordEntry)(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_NameRecordEntry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
 | |
| 	if x.Id != "" {
 | |
| 		value := protoreflect.ValueOfString(x.Id)
 | |
| 		if !f(fd_NameRecordEntry_id, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.Height != uint64(0) {
 | |
| 		value := protoreflect.ValueOfUint64(x.Height)
 | |
| 		if !f(fd_NameRecordEntry_height, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| }
 | |
| 
 | |
| // Has reports whether a field is populated.
 | |
| //
 | |
| // Some fields have the property of nullability where it is possible to
 | |
| // distinguish between the default value of a field and whether the field
 | |
| // was explicitly populated with the default value. Singular message fields,
 | |
| // member fields of a oneof, and proto2 scalar fields are nullable. Such
 | |
| // fields are populated only if explicitly set.
 | |
| //
 | |
| // In other cases (aside from the nullable cases above),
 | |
| // a proto3 scalar field is populated if it contains a non-zero value, and
 | |
| // a repeated field is populated if it is non-empty.
 | |
| func (x *fastReflection_NameRecordEntry) Has(fd protoreflect.FieldDescriptor) bool {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameRecordEntry.id":
 | |
| 		return x.Id != ""
 | |
| 	case "cerc.registry.v1.NameRecordEntry.height":
 | |
| 		return x.Height != uint64(0)
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameRecordEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameRecordEntry 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_NameRecordEntry) Clear(fd protoreflect.FieldDescriptor) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameRecordEntry.id":
 | |
| 		x.Id = ""
 | |
| 	case "cerc.registry.v1.NameRecordEntry.height":
 | |
| 		x.Height = uint64(0)
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameRecordEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameRecordEntry 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_NameRecordEntry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch descriptor.FullName() {
 | |
| 	case "cerc.registry.v1.NameRecordEntry.id":
 | |
| 		value := x.Id
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.NameRecordEntry.height":
 | |
| 		value := x.Height
 | |
| 		return protoreflect.ValueOfUint64(value)
 | |
| 	default:
 | |
| 		if descriptor.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameRecordEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameRecordEntry 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_NameRecordEntry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameRecordEntry.id":
 | |
| 		x.Id = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.NameRecordEntry.height":
 | |
| 		x.Height = value.Uint()
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameRecordEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameRecordEntry 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_NameRecordEntry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameRecordEntry.id":
 | |
| 		panic(fmt.Errorf("field id of message cerc.registry.v1.NameRecordEntry is not mutable"))
 | |
| 	case "cerc.registry.v1.NameRecordEntry.height":
 | |
| 		panic(fmt.Errorf("field height of message cerc.registry.v1.NameRecordEntry is not mutable"))
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameRecordEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameRecordEntry 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_NameRecordEntry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.NameRecordEntry.id":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.NameRecordEntry.height":
 | |
| 		return protoreflect.ValueOfUint64(uint64(0))
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.NameRecordEntry"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.NameRecordEntry 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_NameRecordEntry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
 | |
| 	switch d.FullName() {
 | |
| 	default:
 | |
| 		panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.NameRecordEntry", 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_NameRecordEntry) 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_NameRecordEntry) 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_NameRecordEntry) 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_NameRecordEntry) ProtoMethods() *protoiface.Methods {
 | |
| 	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
 | |
| 		x := input.Message.Interface().(*NameRecordEntry)
 | |
| 		if x == nil {
 | |
| 			return protoiface.SizeOutput{
 | |
| 				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 				Size:              0,
 | |
| 			}
 | |
| 		}
 | |
| 		options := runtime.SizeInputToOptions(input)
 | |
| 		_ = options
 | |
| 		var n int
 | |
| 		var l int
 | |
| 		_ = l
 | |
| 		l = len(x.Id)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if x.Height != 0 {
 | |
| 			n += 1 + runtime.Sov(uint64(x.Height))
 | |
| 		}
 | |
| 		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().(*NameRecordEntry)
 | |
| 		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.Height != 0 {
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(x.Height))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x10
 | |
| 		}
 | |
| 		if len(x.Id) > 0 {
 | |
| 			i -= len(x.Id)
 | |
| 			copy(dAtA[i:], x.Id)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0xa
 | |
| 		}
 | |
| 		if input.Buf != nil {
 | |
| 			input.Buf = append(input.Buf, dAtA...)
 | |
| 		} else {
 | |
| 			input.Buf = dAtA
 | |
| 		}
 | |
| 		return protoiface.MarshalOutput{
 | |
| 			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 			Buf:               input.Buf,
 | |
| 		}, nil
 | |
| 	}
 | |
| 	unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
 | |
| 		x := input.Message.Interface().(*NameRecordEntry)
 | |
| 		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: NameRecordEntry: wiretype end group for non-group")
 | |
| 			}
 | |
| 			if fieldNum <= 0 {
 | |
| 				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: NameRecordEntry: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 			}
 | |
| 			switch fieldNum {
 | |
| 			case 1:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
 | |
| 				}
 | |
| 				var stringLen uint64
 | |
| 				for shift := uint(0); ; shift += 7 {
 | |
| 					if shift >= 64 {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
 | |
| 					}
 | |
| 					if iNdEx >= l {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 					}
 | |
| 					b := dAtA[iNdEx]
 | |
| 					iNdEx++
 | |
| 					stringLen |= uint64(b&0x7F) << shift
 | |
| 					if b < 0x80 {
 | |
| 						break
 | |
| 					}
 | |
| 				}
 | |
| 				intStringLen := int(stringLen)
 | |
| 				if intStringLen < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				postIndex := iNdEx + intStringLen
 | |
| 				if postIndex < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				if postIndex > l {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				x.Id = string(dAtA[iNdEx:postIndex])
 | |
| 				iNdEx = postIndex
 | |
| 			case 2:
 | |
| 				if wireType != 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
 | |
| 				}
 | |
| 				x.Height = 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.Height |= uint64(b&0x7F) << shift
 | |
| 					if b < 0x80 {
 | |
| 						break
 | |
| 					}
 | |
| 				}
 | |
| 			default:
 | |
| 				iNdEx = preIndex
 | |
| 				skippy, err := runtime.Skip(dAtA[iNdEx:])
 | |
| 				if err != nil {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
 | |
| 				}
 | |
| 				if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				if (iNdEx + skippy) > l {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				if !options.DiscardUnknown {
 | |
| 					x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 				}
 | |
| 				iNdEx += skippy
 | |
| 			}
 | |
| 		}
 | |
| 
 | |
| 		if iNdEx > l {
 | |
| 			return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 		}
 | |
| 		return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
 | |
| 	}
 | |
| 	return &protoiface.Methods{
 | |
| 		NoUnkeyedLiterals: struct{}{},
 | |
| 		Flags:             protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
 | |
| 		Size:              size,
 | |
| 		Marshal:           marshal,
 | |
| 		Unmarshal:         unmarshal,
 | |
| 		Merge:             nil,
 | |
| 		CheckInitialized:  nil,
 | |
| 	}
 | |
| }
 | |
| 
 | |
| var (
 | |
| 	md_Signature         protoreflect.MessageDescriptor
 | |
| 	fd_Signature_sig     protoreflect.FieldDescriptor
 | |
| 	fd_Signature_pub_key protoreflect.FieldDescriptor
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	file_cerc_registry_v1_registry_proto_init()
 | |
| 	md_Signature = File_cerc_registry_v1_registry_proto.Messages().ByName("Signature")
 | |
| 	fd_Signature_sig = md_Signature.Fields().ByName("sig")
 | |
| 	fd_Signature_pub_key = md_Signature.Fields().ByName("pub_key")
 | |
| }
 | |
| 
 | |
| var _ protoreflect.Message = (*fastReflection_Signature)(nil)
 | |
| 
 | |
| type fastReflection_Signature Signature
 | |
| 
 | |
| func (x *Signature) ProtoReflect() protoreflect.Message {
 | |
| 	return (*fastReflection_Signature)(x)
 | |
| }
 | |
| 
 | |
| func (x *Signature) slowProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_cerc_registry_v1_registry_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_Signature_messageType fastReflection_Signature_messageType
 | |
| var _ protoreflect.MessageType = fastReflection_Signature_messageType{}
 | |
| 
 | |
| type fastReflection_Signature_messageType struct{}
 | |
| 
 | |
| func (x fastReflection_Signature_messageType) Zero() protoreflect.Message {
 | |
| 	return (*fastReflection_Signature)(nil)
 | |
| }
 | |
| func (x fastReflection_Signature_messageType) New() protoreflect.Message {
 | |
| 	return new(fastReflection_Signature)
 | |
| }
 | |
| func (x fastReflection_Signature_messageType) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_Signature
 | |
| }
 | |
| 
 | |
| // Descriptor returns message descriptor, which contains only the protobuf
 | |
| // type information for the message.
 | |
| func (x *fastReflection_Signature) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_Signature
 | |
| }
 | |
| 
 | |
| // 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_Signature) Type() protoreflect.MessageType {
 | |
| 	return _fastReflection_Signature_messageType
 | |
| }
 | |
| 
 | |
| // New returns a newly allocated and mutable empty message.
 | |
| func (x *fastReflection_Signature) New() protoreflect.Message {
 | |
| 	return new(fastReflection_Signature)
 | |
| }
 | |
| 
 | |
| // Interface unwraps the message reflection interface and
 | |
| // returns the underlying ProtoMessage interface.
 | |
| func (x *fastReflection_Signature) Interface() protoreflect.ProtoMessage {
 | |
| 	return (*Signature)(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_Signature) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
 | |
| 	if x.Sig != "" {
 | |
| 		value := protoreflect.ValueOfString(x.Sig)
 | |
| 		if !f(fd_Signature_sig, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if x.PubKey != "" {
 | |
| 		value := protoreflect.ValueOfString(x.PubKey)
 | |
| 		if !f(fd_Signature_pub_key, 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_Signature) Has(fd protoreflect.FieldDescriptor) bool {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Signature.sig":
 | |
| 		return x.Sig != ""
 | |
| 	case "cerc.registry.v1.Signature.pub_key":
 | |
| 		return x.PubKey != ""
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Signature"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Signature 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_Signature) Clear(fd protoreflect.FieldDescriptor) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Signature.sig":
 | |
| 		x.Sig = ""
 | |
| 	case "cerc.registry.v1.Signature.pub_key":
 | |
| 		x.PubKey = ""
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Signature"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Signature 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_Signature) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch descriptor.FullName() {
 | |
| 	case "cerc.registry.v1.Signature.sig":
 | |
| 		value := x.Sig
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.Signature.pub_key":
 | |
| 		value := x.PubKey
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	default:
 | |
| 		if descriptor.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Signature"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Signature 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_Signature) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Signature.sig":
 | |
| 		x.Sig = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.Signature.pub_key":
 | |
| 		x.PubKey = value.Interface().(string)
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Signature"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Signature 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_Signature) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Signature.sig":
 | |
| 		panic(fmt.Errorf("field sig of message cerc.registry.v1.Signature is not mutable"))
 | |
| 	case "cerc.registry.v1.Signature.pub_key":
 | |
| 		panic(fmt.Errorf("field pub_key of message cerc.registry.v1.Signature is not mutable"))
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Signature"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Signature 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_Signature) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.Signature.sig":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.Signature.pub_key":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.Signature"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.Signature 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_Signature) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
 | |
| 	switch d.FullName() {
 | |
| 	default:
 | |
| 		panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.Signature", 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_Signature) 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_Signature) 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_Signature) 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_Signature) ProtoMethods() *protoiface.Methods {
 | |
| 	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
 | |
| 		x := input.Message.Interface().(*Signature)
 | |
| 		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.Sig)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		l = len(x.PubKey)
 | |
| 		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().(*Signature)
 | |
| 		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.PubKey) > 0 {
 | |
| 			i -= len(x.PubKey)
 | |
| 			copy(dAtA[i:], x.PubKey)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PubKey)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0x12
 | |
| 		}
 | |
| 		if len(x.Sig) > 0 {
 | |
| 			i -= len(x.Sig)
 | |
| 			copy(dAtA[i:], x.Sig)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Sig)))
 | |
| 			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().(*Signature)
 | |
| 		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: Signature: wiretype end group for non-group")
 | |
| 			}
 | |
| 			if fieldNum <= 0 {
 | |
| 				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Signature: 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 Sig", 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.Sig = 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 PubKey", 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.PubKey = 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 = (*_ExpiryQueue_2_list)(nil)
 | |
| 
 | |
| type _ExpiryQueue_2_list struct {
 | |
| 	list *[]string
 | |
| }
 | |
| 
 | |
| func (x *_ExpiryQueue_2_list) Len() int {
 | |
| 	if x.list == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	return len(*x.list)
 | |
| }
 | |
| 
 | |
| func (x *_ExpiryQueue_2_list) Get(i int) protoreflect.Value {
 | |
| 	return protoreflect.ValueOfString((*x.list)[i])
 | |
| }
 | |
| 
 | |
| func (x *_ExpiryQueue_2_list) Set(i int, value protoreflect.Value) {
 | |
| 	valueUnwrapped := value.String()
 | |
| 	concreteValue := valueUnwrapped
 | |
| 	(*x.list)[i] = concreteValue
 | |
| }
 | |
| 
 | |
| func (x *_ExpiryQueue_2_list) Append(value protoreflect.Value) {
 | |
| 	valueUnwrapped := value.String()
 | |
| 	concreteValue := valueUnwrapped
 | |
| 	*x.list = append(*x.list, concreteValue)
 | |
| }
 | |
| 
 | |
| func (x *_ExpiryQueue_2_list) AppendMutable() protoreflect.Value {
 | |
| 	panic(fmt.Errorf("AppendMutable can not be called on message ExpiryQueue at list field Value as it is not of Message kind"))
 | |
| }
 | |
| 
 | |
| func (x *_ExpiryQueue_2_list) Truncate(n int) {
 | |
| 	*x.list = (*x.list)[:n]
 | |
| }
 | |
| 
 | |
| func (x *_ExpiryQueue_2_list) NewElement() protoreflect.Value {
 | |
| 	v := ""
 | |
| 	return protoreflect.ValueOfString(v)
 | |
| }
 | |
| 
 | |
| func (x *_ExpiryQueue_2_list) IsValid() bool {
 | |
| 	return x.list != nil
 | |
| }
 | |
| 
 | |
| var (
 | |
| 	md_ExpiryQueue       protoreflect.MessageDescriptor
 | |
| 	fd_ExpiryQueue_id    protoreflect.FieldDescriptor
 | |
| 	fd_ExpiryQueue_value protoreflect.FieldDescriptor
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	file_cerc_registry_v1_registry_proto_init()
 | |
| 	md_ExpiryQueue = File_cerc_registry_v1_registry_proto.Messages().ByName("ExpiryQueue")
 | |
| 	fd_ExpiryQueue_id = md_ExpiryQueue.Fields().ByName("id")
 | |
| 	fd_ExpiryQueue_value = md_ExpiryQueue.Fields().ByName("value")
 | |
| }
 | |
| 
 | |
| var _ protoreflect.Message = (*fastReflection_ExpiryQueue)(nil)
 | |
| 
 | |
| type fastReflection_ExpiryQueue ExpiryQueue
 | |
| 
 | |
| func (x *ExpiryQueue) ProtoReflect() protoreflect.Message {
 | |
| 	return (*fastReflection_ExpiryQueue)(x)
 | |
| }
 | |
| 
 | |
| func (x *ExpiryQueue) slowProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_cerc_registry_v1_registry_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_ExpiryQueue_messageType fastReflection_ExpiryQueue_messageType
 | |
| var _ protoreflect.MessageType = fastReflection_ExpiryQueue_messageType{}
 | |
| 
 | |
| type fastReflection_ExpiryQueue_messageType struct{}
 | |
| 
 | |
| func (x fastReflection_ExpiryQueue_messageType) Zero() protoreflect.Message {
 | |
| 	return (*fastReflection_ExpiryQueue)(nil)
 | |
| }
 | |
| func (x fastReflection_ExpiryQueue_messageType) New() protoreflect.Message {
 | |
| 	return new(fastReflection_ExpiryQueue)
 | |
| }
 | |
| func (x fastReflection_ExpiryQueue_messageType) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_ExpiryQueue
 | |
| }
 | |
| 
 | |
| // Descriptor returns message descriptor, which contains only the protobuf
 | |
| // type information for the message.
 | |
| func (x *fastReflection_ExpiryQueue) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_ExpiryQueue
 | |
| }
 | |
| 
 | |
| // 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_ExpiryQueue) Type() protoreflect.MessageType {
 | |
| 	return _fastReflection_ExpiryQueue_messageType
 | |
| }
 | |
| 
 | |
| // New returns a newly allocated and mutable empty message.
 | |
| func (x *fastReflection_ExpiryQueue) New() protoreflect.Message {
 | |
| 	return new(fastReflection_ExpiryQueue)
 | |
| }
 | |
| 
 | |
| // Interface unwraps the message reflection interface and
 | |
| // returns the underlying ProtoMessage interface.
 | |
| func (x *fastReflection_ExpiryQueue) Interface() protoreflect.ProtoMessage {
 | |
| 	return (*ExpiryQueue)(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_ExpiryQueue) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
 | |
| 	if x.Id != "" {
 | |
| 		value := protoreflect.ValueOfString(x.Id)
 | |
| 		if !f(fd_ExpiryQueue_id, value) {
 | |
| 			return
 | |
| 		}
 | |
| 	}
 | |
| 	if len(x.Value) != 0 {
 | |
| 		value := protoreflect.ValueOfList(&_ExpiryQueue_2_list{list: &x.Value})
 | |
| 		if !f(fd_ExpiryQueue_value, 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_ExpiryQueue) Has(fd protoreflect.FieldDescriptor) bool {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.ExpiryQueue.id":
 | |
| 		return x.Id != ""
 | |
| 	case "cerc.registry.v1.ExpiryQueue.value":
 | |
| 		return len(x.Value) != 0
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.ExpiryQueue"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.ExpiryQueue 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_ExpiryQueue) Clear(fd protoreflect.FieldDescriptor) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.ExpiryQueue.id":
 | |
| 		x.Id = ""
 | |
| 	case "cerc.registry.v1.ExpiryQueue.value":
 | |
| 		x.Value = nil
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.ExpiryQueue"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.ExpiryQueue 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_ExpiryQueue) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch descriptor.FullName() {
 | |
| 	case "cerc.registry.v1.ExpiryQueue.id":
 | |
| 		value := x.Id
 | |
| 		return protoreflect.ValueOfString(value)
 | |
| 	case "cerc.registry.v1.ExpiryQueue.value":
 | |
| 		if len(x.Value) == 0 {
 | |
| 			return protoreflect.ValueOfList(&_ExpiryQueue_2_list{})
 | |
| 		}
 | |
| 		listValue := &_ExpiryQueue_2_list{list: &x.Value}
 | |
| 		return protoreflect.ValueOfList(listValue)
 | |
| 	default:
 | |
| 		if descriptor.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.ExpiryQueue"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.ExpiryQueue 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_ExpiryQueue) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.ExpiryQueue.id":
 | |
| 		x.Id = value.Interface().(string)
 | |
| 	case "cerc.registry.v1.ExpiryQueue.value":
 | |
| 		lv := value.List()
 | |
| 		clv := lv.(*_ExpiryQueue_2_list)
 | |
| 		x.Value = *clv.list
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.ExpiryQueue"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.ExpiryQueue 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_ExpiryQueue) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.ExpiryQueue.value":
 | |
| 		if x.Value == nil {
 | |
| 			x.Value = []string{}
 | |
| 		}
 | |
| 		value := &_ExpiryQueue_2_list{list: &x.Value}
 | |
| 		return protoreflect.ValueOfList(value)
 | |
| 	case "cerc.registry.v1.ExpiryQueue.id":
 | |
| 		panic(fmt.Errorf("field id of message cerc.registry.v1.ExpiryQueue is not mutable"))
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.ExpiryQueue"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.ExpiryQueue 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_ExpiryQueue) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.ExpiryQueue.id":
 | |
| 		return protoreflect.ValueOfString("")
 | |
| 	case "cerc.registry.v1.ExpiryQueue.value":
 | |
| 		list := []string{}
 | |
| 		return protoreflect.ValueOfList(&_ExpiryQueue_2_list{list: &list})
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.ExpiryQueue"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.ExpiryQueue 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_ExpiryQueue) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
 | |
| 	switch d.FullName() {
 | |
| 	default:
 | |
| 		panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.ExpiryQueue", 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_ExpiryQueue) 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_ExpiryQueue) 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_ExpiryQueue) 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_ExpiryQueue) ProtoMethods() *protoiface.Methods {
 | |
| 	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
 | |
| 		x := input.Message.Interface().(*ExpiryQueue)
 | |
| 		if x == nil {
 | |
| 			return protoiface.SizeOutput{
 | |
| 				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 				Size:              0,
 | |
| 			}
 | |
| 		}
 | |
| 		options := runtime.SizeInputToOptions(input)
 | |
| 		_ = options
 | |
| 		var n int
 | |
| 		var l int
 | |
| 		_ = l
 | |
| 		l = len(x.Id)
 | |
| 		if l > 0 {
 | |
| 			n += 1 + l + runtime.Sov(uint64(l))
 | |
| 		}
 | |
| 		if len(x.Value) > 0 {
 | |
| 			for _, s := range x.Value {
 | |
| 				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().(*ExpiryQueue)
 | |
| 		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.Value) > 0 {
 | |
| 			for iNdEx := len(x.Value) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 				i -= len(x.Value[iNdEx])
 | |
| 				copy(dAtA[i:], x.Value[iNdEx])
 | |
| 				i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Value[iNdEx])))
 | |
| 				i--
 | |
| 				dAtA[i] = 0x12
 | |
| 			}
 | |
| 		}
 | |
| 		if len(x.Id) > 0 {
 | |
| 			i -= len(x.Id)
 | |
| 			copy(dAtA[i:], x.Id)
 | |
| 			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Id)))
 | |
| 			i--
 | |
| 			dAtA[i] = 0xa
 | |
| 		}
 | |
| 		if input.Buf != nil {
 | |
| 			input.Buf = append(input.Buf, dAtA...)
 | |
| 		} else {
 | |
| 			input.Buf = dAtA
 | |
| 		}
 | |
| 		return protoiface.MarshalOutput{
 | |
| 			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
 | |
| 			Buf:               input.Buf,
 | |
| 		}, nil
 | |
| 	}
 | |
| 	unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
 | |
| 		x := input.Message.Interface().(*ExpiryQueue)
 | |
| 		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: ExpiryQueue: wiretype end group for non-group")
 | |
| 			}
 | |
| 			if fieldNum <= 0 {
 | |
| 				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ExpiryQueue: illegal tag %d (wire type %d)", fieldNum, wire)
 | |
| 			}
 | |
| 			switch fieldNum {
 | |
| 			case 1:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
 | |
| 				}
 | |
| 				var stringLen uint64
 | |
| 				for shift := uint(0); ; shift += 7 {
 | |
| 					if shift >= 64 {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
 | |
| 					}
 | |
| 					if iNdEx >= l {
 | |
| 						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 					}
 | |
| 					b := dAtA[iNdEx]
 | |
| 					iNdEx++
 | |
| 					stringLen |= uint64(b&0x7F) << shift
 | |
| 					if b < 0x80 {
 | |
| 						break
 | |
| 					}
 | |
| 				}
 | |
| 				intStringLen := int(stringLen)
 | |
| 				if intStringLen < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				postIndex := iNdEx + intStringLen
 | |
| 				if postIndex < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				if postIndex > l {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				x.Id = string(dAtA[iNdEx:postIndex])
 | |
| 				iNdEx = postIndex
 | |
| 			case 2:
 | |
| 				if wireType != 2 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value = append(x.Value, 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 = (*_RecordsList_1_list)(nil)
 | |
| 
 | |
| type _RecordsList_1_list struct {
 | |
| 	list *[]string
 | |
| }
 | |
| 
 | |
| func (x *_RecordsList_1_list) Len() int {
 | |
| 	if x.list == nil {
 | |
| 		return 0
 | |
| 	}
 | |
| 	return len(*x.list)
 | |
| }
 | |
| 
 | |
| func (x *_RecordsList_1_list) Get(i int) protoreflect.Value {
 | |
| 	return protoreflect.ValueOfString((*x.list)[i])
 | |
| }
 | |
| 
 | |
| func (x *_RecordsList_1_list) Set(i int, value protoreflect.Value) {
 | |
| 	valueUnwrapped := value.String()
 | |
| 	concreteValue := valueUnwrapped
 | |
| 	(*x.list)[i] = concreteValue
 | |
| }
 | |
| 
 | |
| func (x *_RecordsList_1_list) Append(value protoreflect.Value) {
 | |
| 	valueUnwrapped := value.String()
 | |
| 	concreteValue := valueUnwrapped
 | |
| 	*x.list = append(*x.list, concreteValue)
 | |
| }
 | |
| 
 | |
| func (x *_RecordsList_1_list) AppendMutable() protoreflect.Value {
 | |
| 	panic(fmt.Errorf("AppendMutable can not be called on message RecordsList at list field Value as it is not of Message kind"))
 | |
| }
 | |
| 
 | |
| func (x *_RecordsList_1_list) Truncate(n int) {
 | |
| 	*x.list = (*x.list)[:n]
 | |
| }
 | |
| 
 | |
| func (x *_RecordsList_1_list) NewElement() protoreflect.Value {
 | |
| 	v := ""
 | |
| 	return protoreflect.ValueOfString(v)
 | |
| }
 | |
| 
 | |
| func (x *_RecordsList_1_list) IsValid() bool {
 | |
| 	return x.list != nil
 | |
| }
 | |
| 
 | |
| var (
 | |
| 	md_RecordsList       protoreflect.MessageDescriptor
 | |
| 	fd_RecordsList_value protoreflect.FieldDescriptor
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	file_cerc_registry_v1_registry_proto_init()
 | |
| 	md_RecordsList = File_cerc_registry_v1_registry_proto.Messages().ByName("RecordsList")
 | |
| 	fd_RecordsList_value = md_RecordsList.Fields().ByName("value")
 | |
| }
 | |
| 
 | |
| var _ protoreflect.Message = (*fastReflection_RecordsList)(nil)
 | |
| 
 | |
| type fastReflection_RecordsList RecordsList
 | |
| 
 | |
| func (x *RecordsList) ProtoReflect() protoreflect.Message {
 | |
| 	return (*fastReflection_RecordsList)(x)
 | |
| }
 | |
| 
 | |
| func (x *RecordsList) slowProtoReflect() protoreflect.Message {
 | |
| 	mi := &file_cerc_registry_v1_registry_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_RecordsList_messageType fastReflection_RecordsList_messageType
 | |
| var _ protoreflect.MessageType = fastReflection_RecordsList_messageType{}
 | |
| 
 | |
| type fastReflection_RecordsList_messageType struct{}
 | |
| 
 | |
| func (x fastReflection_RecordsList_messageType) Zero() protoreflect.Message {
 | |
| 	return (*fastReflection_RecordsList)(nil)
 | |
| }
 | |
| func (x fastReflection_RecordsList_messageType) New() protoreflect.Message {
 | |
| 	return new(fastReflection_RecordsList)
 | |
| }
 | |
| func (x fastReflection_RecordsList_messageType) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_RecordsList
 | |
| }
 | |
| 
 | |
| // Descriptor returns message descriptor, which contains only the protobuf
 | |
| // type information for the message.
 | |
| func (x *fastReflection_RecordsList) Descriptor() protoreflect.MessageDescriptor {
 | |
| 	return md_RecordsList
 | |
| }
 | |
| 
 | |
| // 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_RecordsList) Type() protoreflect.MessageType {
 | |
| 	return _fastReflection_RecordsList_messageType
 | |
| }
 | |
| 
 | |
| // New returns a newly allocated and mutable empty message.
 | |
| func (x *fastReflection_RecordsList) New() protoreflect.Message {
 | |
| 	return new(fastReflection_RecordsList)
 | |
| }
 | |
| 
 | |
| // Interface unwraps the message reflection interface and
 | |
| // returns the underlying ProtoMessage interface.
 | |
| func (x *fastReflection_RecordsList) Interface() protoreflect.ProtoMessage {
 | |
| 	return (*RecordsList)(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_RecordsList) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
 | |
| 	if len(x.Value) != 0 {
 | |
| 		value := protoreflect.ValueOfList(&_RecordsList_1_list{list: &x.Value})
 | |
| 		if !f(fd_RecordsList_value, 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_RecordsList) Has(fd protoreflect.FieldDescriptor) bool {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.RecordsList.value":
 | |
| 		return len(x.Value) != 0
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.RecordsList"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.RecordsList 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_RecordsList) Clear(fd protoreflect.FieldDescriptor) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.RecordsList.value":
 | |
| 		x.Value = nil
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.RecordsList"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.RecordsList 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_RecordsList) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch descriptor.FullName() {
 | |
| 	case "cerc.registry.v1.RecordsList.value":
 | |
| 		if len(x.Value) == 0 {
 | |
| 			return protoreflect.ValueOfList(&_RecordsList_1_list{})
 | |
| 		}
 | |
| 		listValue := &_RecordsList_1_list{list: &x.Value}
 | |
| 		return protoreflect.ValueOfList(listValue)
 | |
| 	default:
 | |
| 		if descriptor.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.RecordsList"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.RecordsList 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_RecordsList) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.RecordsList.value":
 | |
| 		lv := value.List()
 | |
| 		clv := lv.(*_RecordsList_1_list)
 | |
| 		x.Value = *clv.list
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.RecordsList"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.RecordsList 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_RecordsList) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.RecordsList.value":
 | |
| 		if x.Value == nil {
 | |
| 			x.Value = []string{}
 | |
| 		}
 | |
| 		value := &_RecordsList_1_list{list: &x.Value}
 | |
| 		return protoreflect.ValueOfList(value)
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.RecordsList"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.RecordsList 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_RecordsList) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
 | |
| 	switch fd.FullName() {
 | |
| 	case "cerc.registry.v1.RecordsList.value":
 | |
| 		list := []string{}
 | |
| 		return protoreflect.ValueOfList(&_RecordsList_1_list{list: &list})
 | |
| 	default:
 | |
| 		if fd.IsExtension() {
 | |
| 			panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.RecordsList"))
 | |
| 		}
 | |
| 		panic(fmt.Errorf("message cerc.registry.v1.RecordsList 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_RecordsList) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
 | |
| 	switch d.FullName() {
 | |
| 	default:
 | |
| 		panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.RecordsList", 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_RecordsList) 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_RecordsList) 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_RecordsList) 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_RecordsList) ProtoMethods() *protoiface.Methods {
 | |
| 	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
 | |
| 		x := input.Message.Interface().(*RecordsList)
 | |
| 		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.Value) > 0 {
 | |
| 			for _, s := range x.Value {
 | |
| 				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().(*RecordsList)
 | |
| 		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.Value) > 0 {
 | |
| 			for iNdEx := len(x.Value) - 1; iNdEx >= 0; iNdEx-- {
 | |
| 				i -= len(x.Value[iNdEx])
 | |
| 				copy(dAtA[i:], x.Value[iNdEx])
 | |
| 				i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Value[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().(*RecordsList)
 | |
| 		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: RecordsList: wiretype end group for non-group")
 | |
| 			}
 | |
| 			if fieldNum <= 0 {
 | |
| 				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RecordsList: 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 Value", 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.Value = append(x.Value, string(dAtA[iNdEx:postIndex]))
 | |
| 				iNdEx = postIndex
 | |
| 			default:
 | |
| 				iNdEx = preIndex
 | |
| 				skippy, err := runtime.Skip(dAtA[iNdEx:])
 | |
| 				if err != nil {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
 | |
| 				}
 | |
| 				if (skippy < 0) || (iNdEx+skippy) < 0 {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
 | |
| 				}
 | |
| 				if (iNdEx + skippy) > l {
 | |
| 					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 				}
 | |
| 				if !options.DiscardUnknown {
 | |
| 					x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
 | |
| 				}
 | |
| 				iNdEx += skippy
 | |
| 			}
 | |
| 		}
 | |
| 
 | |
| 		if iNdEx > l {
 | |
| 			return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
 | |
| 		}
 | |
| 		return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
 | |
| 	}
 | |
| 	return &protoiface.Methods{
 | |
| 		NoUnkeyedLiterals: struct{}{},
 | |
| 		Flags:             protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
 | |
| 		Size:              size,
 | |
| 		Marshal:           marshal,
 | |
| 		Unmarshal:         unmarshal,
 | |
| 		Merge:             nil,
 | |
| 		CheckInitialized:  nil,
 | |
| 	}
 | |
| }
 | |
| 
 | |
| // Code generated by protoc-gen-go. DO NOT EDIT.
 | |
| // versions:
 | |
| // 	protoc-gen-go v1.27.0
 | |
| // 	protoc        (unknown)
 | |
| // source: cerc/registry/v1/registry.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)
 | |
| )
 | |
| 
 | |
| // Params defines the registry module parameters
 | |
| type Params struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	RecordRent                      *v1beta1.Coin        `protobuf:"bytes,1,opt,name=record_rent,json=recordRent,proto3" json:"record_rent,omitempty"`
 | |
| 	RecordRentDuration              *durationpb.Duration `protobuf:"bytes,2,opt,name=record_rent_duration,json=recordRentDuration,proto3" json:"record_rent_duration,omitempty"`
 | |
| 	AuthorityRent                   *v1beta1.Coin        `protobuf:"bytes,3,opt,name=authority_rent,json=authorityRent,proto3" json:"authority_rent,omitempty"`
 | |
| 	AuthorityRentDuration           *durationpb.Duration `protobuf:"bytes,4,opt,name=authority_rent_duration,json=authorityRentDuration,proto3" json:"authority_rent_duration,omitempty"`
 | |
| 	AuthorityGracePeriod            *durationpb.Duration `protobuf:"bytes,5,opt,name=authority_grace_period,json=authorityGracePeriod,proto3" json:"authority_grace_period,omitempty"`
 | |
| 	AuthorityAuctionEnabled         bool                 `protobuf:"varint,6,opt,name=authority_auction_enabled,json=authorityAuctionEnabled,proto3" json:"authority_auction_enabled,omitempty"`
 | |
| 	AuthorityAuctionCommitsDuration *durationpb.Duration `protobuf:"bytes,7,opt,name=authority_auction_commits_duration,json=authorityAuctionCommitsDuration,proto3" json:"authority_auction_commits_duration,omitempty"`
 | |
| 	AuthorityAuctionRevealsDuration *durationpb.Duration `protobuf:"bytes,8,opt,name=authority_auction_reveals_duration,json=authorityAuctionRevealsDuration,proto3" json:"authority_auction_reveals_duration,omitempty"`
 | |
| 	AuthorityAuctionCommitFee       *v1beta1.Coin        `protobuf:"bytes,9,opt,name=authority_auction_commit_fee,json=authorityAuctionCommitFee,proto3" json:"authority_auction_commit_fee,omitempty"`
 | |
| 	AuthorityAuctionRevealFee       *v1beta1.Coin        `protobuf:"bytes,10,opt,name=authority_auction_reveal_fee,json=authorityAuctionRevealFee,proto3" json:"authority_auction_reveal_fee,omitempty"`
 | |
| 	AuthorityAuctionMinimumBid      *v1beta1.Coin        `protobuf:"bytes,11,opt,name=authority_auction_minimum_bid,json=authorityAuctionMinimumBid,proto3" json:"authority_auction_minimum_bid,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *Params) Reset() {
 | |
| 	*x = Params{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_cerc_registry_v1_registry_proto_msgTypes[0]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *Params) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*Params) ProtoMessage() {}
 | |
| 
 | |
| // Deprecated: Use Params.ProtoReflect.Descriptor instead.
 | |
| func (*Params) Descriptor() ([]byte, []int) {
 | |
| 	return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{0}
 | |
| }
 | |
| 
 | |
| func (x *Params) GetRecordRent() *v1beta1.Coin {
 | |
| 	if x != nil {
 | |
| 		return x.RecordRent
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Params) GetRecordRentDuration() *durationpb.Duration {
 | |
| 	if x != nil {
 | |
| 		return x.RecordRentDuration
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Params) GetAuthorityRent() *v1beta1.Coin {
 | |
| 	if x != nil {
 | |
| 		return x.AuthorityRent
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Params) GetAuthorityRentDuration() *durationpb.Duration {
 | |
| 	if x != nil {
 | |
| 		return x.AuthorityRentDuration
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Params) GetAuthorityGracePeriod() *durationpb.Duration {
 | |
| 	if x != nil {
 | |
| 		return x.AuthorityGracePeriod
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Params) GetAuthorityAuctionEnabled() bool {
 | |
| 	if x != nil {
 | |
| 		return x.AuthorityAuctionEnabled
 | |
| 	}
 | |
| 	return false
 | |
| }
 | |
| 
 | |
| func (x *Params) GetAuthorityAuctionCommitsDuration() *durationpb.Duration {
 | |
| 	if x != nil {
 | |
| 		return x.AuthorityAuctionCommitsDuration
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Params) GetAuthorityAuctionRevealsDuration() *durationpb.Duration {
 | |
| 	if x != nil {
 | |
| 		return x.AuthorityAuctionRevealsDuration
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Params) GetAuthorityAuctionCommitFee() *v1beta1.Coin {
 | |
| 	if x != nil {
 | |
| 		return x.AuthorityAuctionCommitFee
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Params) GetAuthorityAuctionRevealFee() *v1beta1.Coin {
 | |
| 	if x != nil {
 | |
| 		return x.AuthorityAuctionRevealFee
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Params) GetAuthorityAuctionMinimumBid() *v1beta1.Coin {
 | |
| 	if x != nil {
 | |
| 		return x.AuthorityAuctionMinimumBid
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| // Record defines a registry record
 | |
| type Record struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	Id         string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	BondId     string   `protobuf:"bytes,2,opt,name=bond_id,json=bondId,proto3" json:"bond_id,omitempty"`
 | |
| 	CreateTime string   `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
 | |
| 	ExpiryTime string   `protobuf:"bytes,4,opt,name=expiry_time,json=expiryTime,proto3" json:"expiry_time,omitempty"`
 | |
| 	Deleted    bool     `protobuf:"varint,5,opt,name=deleted,proto3" json:"deleted,omitempty"`
 | |
| 	Owners     []string `protobuf:"bytes,6,rep,name=owners,proto3" json:"owners,omitempty"`
 | |
| 	Attributes []byte   `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"`
 | |
| 	Names      []string `protobuf:"bytes,8,rep,name=names,proto3" json:"names,omitempty"`
 | |
| 	Type_      string   `protobuf:"bytes,9,opt,name=type,proto3" json:"type,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *Record) Reset() {
 | |
| 	*x = Record{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_cerc_registry_v1_registry_proto_msgTypes[1]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *Record) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*Record) ProtoMessage() {}
 | |
| 
 | |
| // Deprecated: Use Record.ProtoReflect.Descriptor instead.
 | |
| func (*Record) Descriptor() ([]byte, []int) {
 | |
| 	return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{1}
 | |
| }
 | |
| 
 | |
| func (x *Record) GetId() string {
 | |
| 	if x != nil {
 | |
| 		return x.Id
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *Record) GetBondId() string {
 | |
| 	if x != nil {
 | |
| 		return x.BondId
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *Record) GetCreateTime() string {
 | |
| 	if x != nil {
 | |
| 		return x.CreateTime
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *Record) GetExpiryTime() string {
 | |
| 	if x != nil {
 | |
| 		return x.ExpiryTime
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *Record) GetDeleted() bool {
 | |
| 	if x != nil {
 | |
| 		return x.Deleted
 | |
| 	}
 | |
| 	return false
 | |
| }
 | |
| 
 | |
| func (x *Record) GetOwners() []string {
 | |
| 	if x != nil {
 | |
| 		return x.Owners
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Record) GetAttributes() []byte {
 | |
| 	if x != nil {
 | |
| 		return x.Attributes
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Record) GetNames() []string {
 | |
| 	if x != nil {
 | |
| 		return x.Names
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *Record) GetType_() string {
 | |
| 	if x != nil {
 | |
| 		return x.Type_
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| // AuthorityEntry defines a registry authority
 | |
| type AuthorityEntry struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	Name  string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
 | |
| 	Entry *NameAuthority `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *AuthorityEntry) Reset() {
 | |
| 	*x = AuthorityEntry{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_cerc_registry_v1_registry_proto_msgTypes[2]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *AuthorityEntry) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*AuthorityEntry) ProtoMessage() {}
 | |
| 
 | |
| // Deprecated: Use AuthorityEntry.ProtoReflect.Descriptor instead.
 | |
| func (*AuthorityEntry) Descriptor() ([]byte, []int) {
 | |
| 	return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{2}
 | |
| }
 | |
| 
 | |
| func (x *AuthorityEntry) GetName() string {
 | |
| 	if x != nil {
 | |
| 		return x.Name
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *AuthorityEntry) GetEntry() *NameAuthority {
 | |
| 	if x != nil {
 | |
| 		return x.Entry
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| // NameAuthority
 | |
| type NameAuthority struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	// Owner public key.
 | |
| 	OwnerPublicKey string `protobuf:"bytes,1,opt,name=owner_public_key,json=ownerPublicKey,proto3" json:"owner_public_key,omitempty"`
 | |
| 	// Owner address.
 | |
| 	OwnerAddress string `protobuf:"bytes,2,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
 | |
| 	// height at which name/authority was created.
 | |
| 	Height     uint64                 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
 | |
| 	Status     string                 `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
 | |
| 	AuctionId  string                 `protobuf:"bytes,5,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
 | |
| 	BondId     string                 `protobuf:"bytes,6,opt,name=bond_id,json=bondId,proto3" json:"bond_id,omitempty"`
 | |
| 	ExpiryTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=expiry_time,json=expiryTime,proto3" json:"expiry_time,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *NameAuthority) Reset() {
 | |
| 	*x = NameAuthority{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_cerc_registry_v1_registry_proto_msgTypes[3]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *NameAuthority) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*NameAuthority) ProtoMessage() {}
 | |
| 
 | |
| // Deprecated: Use NameAuthority.ProtoReflect.Descriptor instead.
 | |
| func (*NameAuthority) Descriptor() ([]byte, []int) {
 | |
| 	return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{3}
 | |
| }
 | |
| 
 | |
| func (x *NameAuthority) GetOwnerPublicKey() string {
 | |
| 	if x != nil {
 | |
| 		return x.OwnerPublicKey
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *NameAuthority) GetOwnerAddress() string {
 | |
| 	if x != nil {
 | |
| 		return x.OwnerAddress
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *NameAuthority) GetHeight() uint64 {
 | |
| 	if x != nil {
 | |
| 		return x.Height
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| func (x *NameAuthority) GetStatus() string {
 | |
| 	if x != nil {
 | |
| 		return x.Status
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *NameAuthority) GetAuctionId() string {
 | |
| 	if x != nil {
 | |
| 		return x.AuctionId
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *NameAuthority) GetBondId() string {
 | |
| 	if x != nil {
 | |
| 		return x.BondId
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *NameAuthority) GetExpiryTime() *timestamppb.Timestamp {
 | |
| 	if x != nil {
 | |
| 		return x.ExpiryTime
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| // NameEntry
 | |
| type NameEntry struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	Name  string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
 | |
| 	Entry *NameRecord `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *NameEntry) Reset() {
 | |
| 	*x = NameEntry{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_cerc_registry_v1_registry_proto_msgTypes[4]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *NameEntry) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*NameEntry) ProtoMessage() {}
 | |
| 
 | |
| // Deprecated: Use NameEntry.ProtoReflect.Descriptor instead.
 | |
| func (*NameEntry) Descriptor() ([]byte, []int) {
 | |
| 	return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{4}
 | |
| }
 | |
| 
 | |
| func (x *NameEntry) GetName() string {
 | |
| 	if x != nil {
 | |
| 		return x.Name
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *NameEntry) GetEntry() *NameRecord {
 | |
| 	if x != nil {
 | |
| 		return x.Entry
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| // NameRecord defines a versioned name record
 | |
| type NameRecord struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	Latest  *NameRecordEntry   `protobuf:"bytes,1,opt,name=latest,proto3" json:"latest,omitempty"`
 | |
| 	History []*NameRecordEntry `protobuf:"bytes,2,rep,name=history,proto3" json:"history,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *NameRecord) Reset() {
 | |
| 	*x = NameRecord{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_cerc_registry_v1_registry_proto_msgTypes[5]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *NameRecord) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*NameRecord) ProtoMessage() {}
 | |
| 
 | |
| // Deprecated: Use NameRecord.ProtoReflect.Descriptor instead.
 | |
| func (*NameRecord) Descriptor() ([]byte, []int) {
 | |
| 	return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{5}
 | |
| }
 | |
| 
 | |
| func (x *NameRecord) GetLatest() *NameRecordEntry {
 | |
| 	if x != nil {
 | |
| 		return x.Latest
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func (x *NameRecord) GetHistory() []*NameRecordEntry {
 | |
| 	if x != nil {
 | |
| 		return x.History
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| // NameRecordEntry
 | |
| type NameRecordEntry struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *NameRecordEntry) Reset() {
 | |
| 	*x = NameRecordEntry{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_cerc_registry_v1_registry_proto_msgTypes[6]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *NameRecordEntry) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*NameRecordEntry) ProtoMessage() {}
 | |
| 
 | |
| // Deprecated: Use NameRecordEntry.ProtoReflect.Descriptor instead.
 | |
| func (*NameRecordEntry) Descriptor() ([]byte, []int) {
 | |
| 	return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{6}
 | |
| }
 | |
| 
 | |
| func (x *NameRecordEntry) GetId() string {
 | |
| 	if x != nil {
 | |
| 		return x.Id
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *NameRecordEntry) GetHeight() uint64 {
 | |
| 	if x != nil {
 | |
| 		return x.Height
 | |
| 	}
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| // Signature
 | |
| type Signature struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	Sig    string `protobuf:"bytes,1,opt,name=sig,proto3" json:"sig,omitempty"`
 | |
| 	PubKey string `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *Signature) Reset() {
 | |
| 	*x = Signature{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_cerc_registry_v1_registry_proto_msgTypes[7]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *Signature) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*Signature) ProtoMessage() {}
 | |
| 
 | |
| // Deprecated: Use Signature.ProtoReflect.Descriptor instead.
 | |
| func (*Signature) Descriptor() ([]byte, []int) {
 | |
| 	return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{7}
 | |
| }
 | |
| 
 | |
| func (x *Signature) GetSig() string {
 | |
| 	if x != nil {
 | |
| 		return x.Sig
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *Signature) GetPubKey() string {
 | |
| 	if x != nil {
 | |
| 		return x.PubKey
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| // ExpiryQueue: record / authority expiry queue type
 | |
| // id:    expiry time
 | |
| // value: array of ids (record cids / authority names)
 | |
| type ExpiryQueue struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	Id    string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
 | |
| 	Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *ExpiryQueue) Reset() {
 | |
| 	*x = ExpiryQueue{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_cerc_registry_v1_registry_proto_msgTypes[8]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *ExpiryQueue) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*ExpiryQueue) ProtoMessage() {}
 | |
| 
 | |
| // Deprecated: Use ExpiryQueue.ProtoReflect.Descriptor instead.
 | |
| func (*ExpiryQueue) Descriptor() ([]byte, []int) {
 | |
| 	return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{8}
 | |
| }
 | |
| 
 | |
| func (x *ExpiryQueue) GetId() string {
 | |
| 	if x != nil {
 | |
| 		return x.Id
 | |
| 	}
 | |
| 	return ""
 | |
| }
 | |
| 
 | |
| func (x *ExpiryQueue) GetValue() []string {
 | |
| 	if x != nil {
 | |
| 		return x.Value
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| // List of record ids
 | |
| // Value type to be used in AttributesMap
 | |
| type RecordsList struct {
 | |
| 	state         protoimpl.MessageState
 | |
| 	sizeCache     protoimpl.SizeCache
 | |
| 	unknownFields protoimpl.UnknownFields
 | |
| 
 | |
| 	Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
 | |
| }
 | |
| 
 | |
| func (x *RecordsList) Reset() {
 | |
| 	*x = RecordsList{}
 | |
| 	if protoimpl.UnsafeEnabled {
 | |
| 		mi := &file_cerc_registry_v1_registry_proto_msgTypes[9]
 | |
| 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | |
| 		ms.StoreMessageInfo(mi)
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (x *RecordsList) String() string {
 | |
| 	return protoimpl.X.MessageStringOf(x)
 | |
| }
 | |
| 
 | |
| func (*RecordsList) ProtoMessage() {}
 | |
| 
 | |
| // Deprecated: Use RecordsList.ProtoReflect.Descriptor instead.
 | |
| func (*RecordsList) Descriptor() ([]byte, []int) {
 | |
| 	return file_cerc_registry_v1_registry_proto_rawDescGZIP(), []int{9}
 | |
| }
 | |
| 
 | |
| func (x *RecordsList) GetValue() []string {
 | |
| 	if x != nil {
 | |
| 		return x.Value
 | |
| 	}
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| var File_cerc_registry_v1_registry_proto protoreflect.FileDescriptor
 | |
| 
 | |
| var file_cerc_registry_v1_registry_proto_rawDesc = []byte{
 | |
| 	0x0a, 0x1f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
 | |
| 	0x76, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
 | |
| 	0x6f, 0x12, 0x10, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
 | |
| 	0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
 | |
| 	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
 | |
| 	0x6f, 0x74, 0x6f, 0x1a, 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, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
 | |
| 	0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d,
 | |
| 	0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
 | |
| 	0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdd, 0x0d, 0x0a, 0x06, 0x50,
 | |
| 	0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x69, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f,
 | |
| 	0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73,
 | |
| 	0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
 | |
| 	0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x2d, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x25, 0x6a,
 | |
| 	0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x65, 0x6e, 0x74,
 | |
| 	0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x72,
 | |
| 	0x65, 0x6e, 0x74, 0x22, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x6e, 0x74,
 | |
| 	0x12, 0x90, 0x01, 0x0a, 0x14, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x65, 0x6e, 0x74,
 | |
| 	0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
 | |
| 	0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
 | |
| 	0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x43, 0xc8, 0xde, 0x1f, 0x00,
 | |
| 	0xf2, 0xde, 0x1f, 0x37, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64,
 | |
| 	0x5f, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20,
 | |
| 	0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x65, 0x6e,
 | |
| 	0x74, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x98, 0xdf, 0x1f, 0x01, 0x52,
 | |
| 	0x12, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x6e, 0x74, 0x44, 0x75, 0x72, 0x61, 0x74,
 | |
| 	0x69, 0x6f, 0x6e, 0x12, 0x75, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79,
 | |
| 	0x5f, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f,
 | |
| 	0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
 | |
| 	0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x33, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x2b,
 | |
| 	0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f,
 | |
| 	0x72, 0x65, 0x6e, 0x74, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x68,
 | |
| 	0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x52, 0x0d, 0x61, 0x75, 0x74,
 | |
| 	0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x65, 0x6e, 0x74, 0x12, 0x9c, 0x01, 0x0a, 0x17, 0x61,
 | |
| 	0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x75,
 | |
| 	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67,
 | |
| 	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44,
 | |
| 	0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x49, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f,
 | |
| 	0x3d, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79,
 | |
| 	0x5f, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20,
 | |
| 	0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f,
 | |
| 	0x72, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x98, 0xdf,
 | |
| 	0x1f, 0x01, 0x52, 0x15, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x65, 0x6e,
 | |
| 	0x74, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x98, 0x01, 0x0a, 0x16, 0x61, 0x75,
 | |
| 	0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x70, 0x65,
 | |
| 	0x72, 0x69, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f,
 | |
| 	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72,
 | |
| 	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x47, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x3b, 0x6a,
 | |
| 	0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67,
 | |
| 	0x72, 0x61, 0x63, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d,
 | |
| 	0x6c, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, 0x61,
 | |
| 	0x63, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x22, 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x14,
 | |
| 	0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65,
 | |
| 	0x72, 0x69, 0x6f, 0x64, 0x12, 0x81, 0x01, 0x0a, 0x19, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
 | |
| 	0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c,
 | |
| 	0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, 0x45, 0xf2, 0xde, 0x1f, 0x41, 0x6a, 0x73,
 | |
| 	0x6f, 0x6e, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x75,
 | |
| 	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x20, 0x79,
 | |
| 	0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x61,
 | |
| 	0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x52,
 | |
| 	0x17, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f,
 | |
| 	0x6e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0xc7, 0x01, 0x0a, 0x22, 0x61, 0x75, 0x74,
 | |
| 	0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63,
 | |
| 	0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
 | |
| 	0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
 | |
| 	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
 | |
| 	0x42, 0x5f, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x53, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22,
 | |
| 	0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f,
 | |
| 	0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,
 | |
| 	0x6f, 0x6e, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
 | |
| 	0x69, 0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x6d,
 | |
| 	0x69, 0x74, 0x73, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x98, 0xdf, 0x1f,
 | |
| 	0x01, 0x52, 0x1f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x41, 0x75, 0x63, 0x74,
 | |
| 	0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x73, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,
 | |
| 	0x6f, 0x6e, 0x12, 0xc7, 0x01, 0x0a, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79,
 | |
| 	0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x73,
 | |
| 	0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32,
 | |
| 	0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
 | |
| 	0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x5f, 0xc8, 0xde, 0x1f, 0x00,
 | |
| 	0xf2, 0xde, 0x1f, 0x53, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
 | |
| 	0x69, 0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x76, 0x65,
 | |
| 	0x61, 0x6c, 0x73, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x79, 0x61,
 | |
| 	0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x75,
 | |
| 	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x73, 0x5f, 0x64, 0x75,
 | |
| 	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x1f, 0x61, 0x75, 0x74,
 | |
| 	0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x76,
 | |
| 	0x65, 0x61, 0x6c, 0x73, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xab, 0x01, 0x0a,
 | |
| 	0x1c, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69,
 | |
| 	0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x09, 0x20,
 | |
| 	0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73,
 | |
| 	0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x4f,
 | |
| 	0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x47, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x61, 0x75,
 | |
| 	0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
 | |
| 	0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c,
 | |
| 	0x3a, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74,
 | |
| 	0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x52,
 | |
| 	0x19, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f,
 | |
| 	0x6e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x46, 0x65, 0x65, 0x12, 0xab, 0x01, 0x0a, 0x1c, 0x61,
 | |
| 	0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e,
 | |
| 	0x5f, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28,
 | |
| 	0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e,
 | |
| 	0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x4f, 0xc8, 0xde,
 | |
| 	0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x47, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x68,
 | |
| 	0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65,
 | |
| 	0x76, 0x65, 0x61, 0x6c, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22,
 | |
| 	0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f,
 | |
| 	0x6e, 0x5f, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x5f, 0x66, 0x65, 0x65, 0x22, 0x52, 0x19, 0x61,
 | |
| 	0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52,
 | |
| 	0x65, 0x76, 0x65, 0x61, 0x6c, 0x46, 0x65, 0x65, 0x12, 0xaf, 0x01, 0x0a, 0x1d, 0x61, 0x75, 0x74,
 | |
| 	0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d,
 | |
| 	0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x62, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b,
 | |
| 	0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
 | |
| 	0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x51, 0xc8, 0xde, 0x1f,
 | |
| 	0x00, 0xf2, 0xde, 0x1f, 0x49, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x61, 0x75, 0x74, 0x68, 0x6f,
 | |
| 	0x72, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x6e,
 | |
| 	0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x62, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22,
 | |
| 	0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f,
 | |
| 	0x6e, 0x5f, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x62, 0x69, 0x64, 0x22, 0x52, 0x1a,
 | |
| 	0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x41, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e,
 | |
| 	0x4d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x42, 0x69, 0x64, 0x22, 0x89, 0x04, 0x0a, 0x06, 0x52,
 | |
| 	0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x27, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
 | |
| 	0x09, 0x42, 0x17, 0xf2, 0xde, 0x1f, 0x13, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x69, 0x64, 0x22,
 | |
| 	0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x69, 0x64, 0x22, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a,
 | |
| 	0x0a, 0x07, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42,
 | |
| 	0x21, 0xf2, 0xde, 0x1f, 0x1d, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x62, 0x6f, 0x6e, 0x64, 0x5f,
 | |
| 	0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69,
 | |
| 	0x64, 0x22, 0x52, 0x06, 0x62, 0x6f, 0x6e, 0x64, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x0b, 0x63, 0x72,
 | |
| 	0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42,
 | |
| 	0x29, 0xf2, 0xde, 0x1f, 0x25, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x63, 0x72, 0x65, 0x61, 0x74,
 | |
| 	0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, 0x72,
 | |
| 	0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61,
 | |
| 	0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79,
 | |
| 	0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xf2, 0xde, 0x1f,
 | |
| 	0x25, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x5f, 0x74, 0x69,
 | |
| 	0x6d, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79,
 | |
| 	0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x54, 0x69,
 | |
| 	0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20,
 | |
| 	0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x37, 0x0a, 0x06,
 | |
| 	0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x42, 0x1f, 0xf2, 0xde,
 | |
| 	0x1f, 0x1b, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x22, 0x20,
 | |
| 	0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x22, 0x52, 0x06, 0x6f,
 | |
| 	0x77, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
 | |
| 	0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x27, 0xf2, 0xde, 0x1f, 0x23, 0x6a,
 | |
| 	0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22,
 | |
| 	0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65,
 | |
| 	0x73, 0x22, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x33,
 | |
| 	0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x42, 0x1d, 0xf2,
 | |
| 	0xde, 0x1f, 0x19, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x20,
 | |
| 	0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x52, 0x05, 0x6e, 0x61,
 | |
| 	0x6d, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28,
 | |
| 	0x09, 0x42, 0x1d, 0xf2, 0xde, 0x1f, 0x19, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x74, 0x79, 0x70,
 | |
| 	0x65, 0x73, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22,
 | |
| 	0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x5b, 0x0a, 0x0e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72,
 | |
| 	0x69, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
 | |
| 	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x05,
 | |
| 	0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x65,
 | |
| 	0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4e,
 | |
| 	0x61, 0x6d, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x05, 0x65, 0x6e,
 | |
| 	0x74, 0x72, 0x79, 0x22, 0xe6, 0x03, 0x0a, 0x0d, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x75, 0x74, 0x68,
 | |
| 	0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x5d, 0x0a, 0x10, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x70,
 | |
| 	0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
 | |
| 	0x33, 0xf2, 0xde, 0x1f, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72,
 | |
| 	0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x20, 0x79, 0x61, 0x6d,
 | |
| 	0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f,
 | |
| 	0x6b, 0x65, 0x79, 0x22, 0x52, 0x0e, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69,
 | |
| 	0x63, 0x4b, 0x65, 0x79, 0x12, 0x52, 0x0a, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64,
 | |
| 	0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2d, 0xf2, 0xde, 0x1f,
 | |
| 	0x29, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64,
 | |
| 	0x72, 0x65, 0x73, 0x73, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6f, 0x77, 0x6e, 0x65,
 | |
| 	0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x52, 0x0c, 0x6f, 0x77, 0x6e, 0x65,
 | |
| 	0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67,
 | |
| 	0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74,
 | |
| 	0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
 | |
| 	0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x61, 0x75, 0x63, 0x74,
 | |
| 	0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x27, 0xf2, 0xde,
 | |
| 	0x1f, 0x23, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
 | |
| 	0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f,
 | |
| 	0x6e, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x09, 0x61, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64,
 | |
| 	0x12, 0x3a, 0x0a, 0x07, 0x62, 0x6f, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28,
 | |
| 	0x09, 0x42, 0x21, 0xf2, 0xde, 0x1f, 0x1d, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x62, 0x6f, 0x6e,
 | |
| 	0x64, 0x5f, 0x69, 0x64, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x6f, 0x6e, 0x64,
 | |
| 	0x5f, 0x69, 0x64, 0x22, 0x52, 0x06, 0x62, 0x6f, 0x6e, 0x64, 0x49, 0x64, 0x12, 0x6e, 0x0a, 0x0b,
 | |
| 	0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
 | |
| 	0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
 | |
| 	0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x31, 0xc8,
 | |
| 	0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x25, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x65, 0x78, 0x70,
 | |
| 	0x69, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22,
 | |
| 	0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x90, 0xdf, 0x1f, 0x01,
 | |
| 	0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x53, 0x0a, 0x09,
 | |
| 	0x4e, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
 | |
| 	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a,
 | |
| 	0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63,
 | |
| 	0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e,
 | |
| 	0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72,
 | |
| 	0x79, 0x22, 0x84, 0x01, 0x0a, 0x0a, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
 | |
| 	0x12, 0x39, 0x0a, 0x06, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
 | |
| 	0x32, 0x21, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
 | |
| 	0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x45, 0x6e,
 | |
| 	0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x07, 0x68,
 | |
| 	0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63,
 | |
| 	0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e,
 | |
| 	0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
 | |
| 	0x07, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x39, 0x0a, 0x0f, 0x4e, 0x61, 0x6d, 0x65,
 | |
| 	0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69,
 | |
| 	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68,
 | |
| 	0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69,
 | |
| 	0x67, 0x68, 0x74, 0x22, 0x74, 0x0a, 0x09, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65,
 | |
| 	0x12, 0x2b, 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x19, 0xf2,
 | |
| 	0xde, 0x1f, 0x15, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x73, 0x69, 0x67, 0x22, 0x20, 0x79, 0x61,
 | |
| 	0x6d, 0x6c, 0x3a, 0x22, 0x73, 0x69, 0x67, 0x22, 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, 0x3a, 0x0a,
 | |
| 	0x07, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x21,
 | |
| 	0xf2, 0xde, 0x1f, 0x1d, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65,
 | |
| 	0x79, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79,
 | |
| 	0x22, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x33, 0x0a, 0x0b, 0x45, 0x78, 0x70,
 | |
| 	0x69, 0x72, 0x79, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
 | |
| 	0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
 | |
| 	0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23,
 | |
| 	0x0a, 0x0b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x0a,
 | |
| 	0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
 | |
| 	0x6c, 0x75, 0x65, 0x42, 0xc4, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x65, 0x72, 0x63,
 | |
| 	0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x52, 0x65,
 | |
| 	0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67,
 | |
| 	0x69, 0x74, 0x2e, 0x76, 0x64, 0x62, 0x2e, 0x74, 0x6f, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2d, 0x69,
 | |
| 	0x6f, 0x2f, 0x6c, 0x61, 0x63, 0x6f, 0x6e, 0x69, 0x63, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,
 | |
| 	0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x3b,
 | |
| 	0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x43, 0x52, 0x58,
 | |
| 	0xaa, 0x02, 0x10, 0x43, 0x65, 0x72, 0x63, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
 | |
| 	0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x43, 0x65, 0x72, 0x63, 0x5c, 0x52, 0x65, 0x67, 0x69, 0x73,
 | |
| 	0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x43, 0x65, 0x72, 0x63, 0x5c, 0x52, 0x65,
 | |
| 	0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
 | |
| 	0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x12, 0x43, 0x65, 0x72, 0x63, 0x3a, 0x3a, 0x52, 0x65,
 | |
| 	0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
 | |
| 	0x6f, 0x33,
 | |
| }
 | |
| 
 | |
| var (
 | |
| 	file_cerc_registry_v1_registry_proto_rawDescOnce sync.Once
 | |
| 	file_cerc_registry_v1_registry_proto_rawDescData = file_cerc_registry_v1_registry_proto_rawDesc
 | |
| )
 | |
| 
 | |
| func file_cerc_registry_v1_registry_proto_rawDescGZIP() []byte {
 | |
| 	file_cerc_registry_v1_registry_proto_rawDescOnce.Do(func() {
 | |
| 		file_cerc_registry_v1_registry_proto_rawDescData = protoimpl.X.CompressGZIP(file_cerc_registry_v1_registry_proto_rawDescData)
 | |
| 	})
 | |
| 	return file_cerc_registry_v1_registry_proto_rawDescData
 | |
| }
 | |
| 
 | |
| var file_cerc_registry_v1_registry_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
 | |
| var file_cerc_registry_v1_registry_proto_goTypes = []interface{}{
 | |
| 	(*Params)(nil),                // 0: cerc.registry.v1.Params
 | |
| 	(*Record)(nil),                // 1: cerc.registry.v1.Record
 | |
| 	(*AuthorityEntry)(nil),        // 2: cerc.registry.v1.AuthorityEntry
 | |
| 	(*NameAuthority)(nil),         // 3: cerc.registry.v1.NameAuthority
 | |
| 	(*NameEntry)(nil),             // 4: cerc.registry.v1.NameEntry
 | |
| 	(*NameRecord)(nil),            // 5: cerc.registry.v1.NameRecord
 | |
| 	(*NameRecordEntry)(nil),       // 6: cerc.registry.v1.NameRecordEntry
 | |
| 	(*Signature)(nil),             // 7: cerc.registry.v1.Signature
 | |
| 	(*ExpiryQueue)(nil),           // 8: cerc.registry.v1.ExpiryQueue
 | |
| 	(*RecordsList)(nil),           // 9: cerc.registry.v1.RecordsList
 | |
| 	(*v1beta1.Coin)(nil),          // 10: cosmos.base.v1beta1.Coin
 | |
| 	(*durationpb.Duration)(nil),   // 11: google.protobuf.Duration
 | |
| 	(*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp
 | |
| }
 | |
| var file_cerc_registry_v1_registry_proto_depIdxs = []int32{
 | |
| 	10, // 0: cerc.registry.v1.Params.record_rent:type_name -> cosmos.base.v1beta1.Coin
 | |
| 	11, // 1: cerc.registry.v1.Params.record_rent_duration:type_name -> google.protobuf.Duration
 | |
| 	10, // 2: cerc.registry.v1.Params.authority_rent:type_name -> cosmos.base.v1beta1.Coin
 | |
| 	11, // 3: cerc.registry.v1.Params.authority_rent_duration:type_name -> google.protobuf.Duration
 | |
| 	11, // 4: cerc.registry.v1.Params.authority_grace_period:type_name -> google.protobuf.Duration
 | |
| 	11, // 5: cerc.registry.v1.Params.authority_auction_commits_duration:type_name -> google.protobuf.Duration
 | |
| 	11, // 6: cerc.registry.v1.Params.authority_auction_reveals_duration:type_name -> google.protobuf.Duration
 | |
| 	10, // 7: cerc.registry.v1.Params.authority_auction_commit_fee:type_name -> cosmos.base.v1beta1.Coin
 | |
| 	10, // 8: cerc.registry.v1.Params.authority_auction_reveal_fee:type_name -> cosmos.base.v1beta1.Coin
 | |
| 	10, // 9: cerc.registry.v1.Params.authority_auction_minimum_bid:type_name -> cosmos.base.v1beta1.Coin
 | |
| 	3,  // 10: cerc.registry.v1.AuthorityEntry.entry:type_name -> cerc.registry.v1.NameAuthority
 | |
| 	12, // 11: cerc.registry.v1.NameAuthority.expiry_time:type_name -> google.protobuf.Timestamp
 | |
| 	5,  // 12: cerc.registry.v1.NameEntry.entry:type_name -> cerc.registry.v1.NameRecord
 | |
| 	6,  // 13: cerc.registry.v1.NameRecord.latest:type_name -> cerc.registry.v1.NameRecordEntry
 | |
| 	6,  // 14: cerc.registry.v1.NameRecord.history:type_name -> cerc.registry.v1.NameRecordEntry
 | |
| 	15, // [15:15] is the sub-list for method output_type
 | |
| 	15, // [15:15] is the sub-list for method input_type
 | |
| 	15, // [15:15] is the sub-list for extension type_name
 | |
| 	15, // [15:15] is the sub-list for extension extendee
 | |
| 	0,  // [0:15] is the sub-list for field type_name
 | |
| }
 | |
| 
 | |
| func init() { file_cerc_registry_v1_registry_proto_init() }
 | |
| func file_cerc_registry_v1_registry_proto_init() {
 | |
| 	if File_cerc_registry_v1_registry_proto != nil {
 | |
| 		return
 | |
| 	}
 | |
| 	if !protoimpl.UnsafeEnabled {
 | |
| 		file_cerc_registry_v1_registry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*Params); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_cerc_registry_v1_registry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*Record); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_cerc_registry_v1_registry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*AuthorityEntry); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_cerc_registry_v1_registry_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*NameAuthority); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_cerc_registry_v1_registry_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*NameEntry); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_cerc_registry_v1_registry_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*NameRecord); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_cerc_registry_v1_registry_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*NameRecordEntry); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_cerc_registry_v1_registry_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*Signature); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_cerc_registry_v1_registry_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*ExpiryQueue); i {
 | |
| 			case 0:
 | |
| 				return &v.state
 | |
| 			case 1:
 | |
| 				return &v.sizeCache
 | |
| 			case 2:
 | |
| 				return &v.unknownFields
 | |
| 			default:
 | |
| 				return nil
 | |
| 			}
 | |
| 		}
 | |
| 		file_cerc_registry_v1_registry_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
 | |
| 			switch v := v.(*RecordsList); 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_cerc_registry_v1_registry_proto_rawDesc,
 | |
| 			NumEnums:      0,
 | |
| 			NumMessages:   10,
 | |
| 			NumExtensions: 0,
 | |
| 			NumServices:   0,
 | |
| 		},
 | |
| 		GoTypes:           file_cerc_registry_v1_registry_proto_goTypes,
 | |
| 		DependencyIndexes: file_cerc_registry_v1_registry_proto_depIdxs,
 | |
| 		MessageInfos:      file_cerc_registry_v1_registry_proto_msgTypes,
 | |
| 	}.Build()
 | |
| 	File_cerc_registry_v1_registry_proto = out.File
 | |
| 	file_cerc_registry_v1_registry_proto_rawDesc = nil
 | |
| 	file_cerc_registry_v1_registry_proto_goTypes = nil
 | |
| 	file_cerc_registry_v1_registry_proto_depIdxs = nil
 | |
| }
 |