Prathamesh Musale
d2339e2426
- Registry module - Update module state to track record / authority expiry queues - Handle expired records and authorities at the end of each block - Add a command to handle record renewal Reviewed-on: deep-stack/laconic2d#7 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
13199 lines
504 KiB
Go
13199 lines
504 KiB
Go
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
|
|
package registryv1
|
|
|
|
import (
|
|
v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1"
|
|
v1beta11 "cosmossdk.io/api/cosmos/base/v1beta1"
|
|
binary "encoding/binary"
|
|
fmt "fmt"
|
|
runtime "github.com/cosmos/cosmos-proto/runtime"
|
|
_ "github.com/cosmos/gogoproto/gogoproto"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoiface "google.golang.org/protobuf/runtime/protoiface"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
io "io"
|
|
math "math"
|
|
reflect "reflect"
|
|
sort "sort"
|
|
sync "sync"
|
|
)
|
|
|
|
var (
|
|
md_QueryParamsRequest protoreflect.MessageDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryParamsRequest = File_cerc_registry_v1_query_proto.Messages().ByName("QueryParamsRequest")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil)
|
|
|
|
type fastReflection_QueryParamsRequest QueryParamsRequest
|
|
|
|
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryParamsRequest)(x)
|
|
}
|
|
|
|
func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{}
|
|
|
|
type fastReflection_QueryParamsRequest_messageType struct{}
|
|
|
|
func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryParamsRequest)(nil)
|
|
}
|
|
func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryParamsRequest)
|
|
}
|
|
func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryParamsRequest
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryParamsRequest
|
|
}
|
|
|
|
// 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_QueryParamsRequest) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryParamsRequest_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message {
|
|
return new(fastReflection_QueryParamsRequest)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryParamsRequest)(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_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
}
|
|
|
|
// Has reports whether a field is populated.
|
|
//
|
|
// Some fields have the property of nullability where it is possible to
|
|
// distinguish between the default value of a field and whether the field
|
|
// was explicitly populated with the default value. Singular message fields,
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
|
// fields are populated only if explicitly set.
|
|
//
|
|
// In other cases (aside from the nullable cases above),
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
|
// a repeated field is populated if it is non-empty.
|
|
func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryParamsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryParamsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryParamsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryParamsRequest 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_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryParamsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryParamsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryParamsRequest 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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryParamsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryParamsRequest 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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryParamsRequest)
|
|
if x == nil {
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: 0,
|
|
}
|
|
}
|
|
options := runtime.SizeInputToOptions(input)
|
|
_ = options
|
|
var n int
|
|
var l int
|
|
_ = l
|
|
if x.unknownFields != nil {
|
|
n += len(x.unknownFields)
|
|
}
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: n,
|
|
}
|
|
}
|
|
|
|
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryParamsRequest)
|
|
if x == nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
options := runtime.MarshalInputToOptions(input)
|
|
_ = options
|
|
size := options.Size(x)
|
|
dAtA := make([]byte, size)
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if x.unknownFields != nil {
|
|
i -= len(x.unknownFields)
|
|
copy(dAtA[i:], x.unknownFields)
|
|
}
|
|
if input.Buf != nil {
|
|
input.Buf = append(input.Buf, dAtA...)
|
|
} else {
|
|
input.Buf = dAtA
|
|
}
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryParamsRequest)
|
|
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: QueryParamsRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := runtime.Skip(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if !options.DiscardUnknown {
|
|
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
|
|
}
|
|
return &protoiface.Methods{
|
|
NoUnkeyedLiterals: struct{}{},
|
|
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
|
|
Size: size,
|
|
Marshal: marshal,
|
|
Unmarshal: unmarshal,
|
|
Merge: nil,
|
|
CheckInitialized: nil,
|
|
}
|
|
}
|
|
|
|
var (
|
|
md_QueryParamsResponse protoreflect.MessageDescriptor
|
|
fd_QueryParamsResponse_params protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryParamsResponse = File_cerc_registry_v1_query_proto.Messages().ByName("QueryParamsResponse")
|
|
fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil)
|
|
|
|
type fastReflection_QueryParamsResponse QueryParamsResponse
|
|
|
|
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryParamsResponse)(x)
|
|
}
|
|
|
|
func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{}
|
|
|
|
type fastReflection_QueryParamsResponse_messageType struct{}
|
|
|
|
func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryParamsResponse)(nil)
|
|
}
|
|
func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryParamsResponse)
|
|
}
|
|
func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryParamsResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryParamsResponse
|
|
}
|
|
|
|
// 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_QueryParamsResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryParamsResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message {
|
|
return new(fastReflection_QueryParamsResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryParamsResponse)(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_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Params != nil {
|
|
value := protoreflect.ValueOfMessage(x.Params.ProtoReflect())
|
|
if !f(fd_QueryParamsResponse_params, value) {
|
|
return
|
|
}
|
|
}
|
|
}
|
|
|
|
// Has reports whether a field is populated.
|
|
//
|
|
// Some fields have the property of nullability where it is possible to
|
|
// distinguish between the default value of a field and whether the field
|
|
// was explicitly populated with the default value. Singular message fields,
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
|
// fields are populated only if explicitly set.
|
|
//
|
|
// In other cases (aside from the nullable cases above),
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
|
// a repeated field is populated if it is non-empty.
|
|
func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryParamsResponse.params":
|
|
return x.Params != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryParamsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryParamsResponse.params":
|
|
x.Params = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryParamsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryParamsResponse.params":
|
|
value := x.Params
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryParamsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryParamsResponse.params":
|
|
x.Params = value.Message().Interface().(*Params)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryParamsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryParamsResponse.params":
|
|
if x.Params == nil {
|
|
x.Params = new(Params)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Params.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryParamsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryParamsResponse 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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryParamsResponse.params":
|
|
m := new(Params)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryParamsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryParamsResponse 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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryParamsResponse)
|
|
if x == nil {
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: 0,
|
|
}
|
|
}
|
|
options := runtime.SizeInputToOptions(input)
|
|
_ = options
|
|
var n int
|
|
var l int
|
|
_ = l
|
|
if x.Params != nil {
|
|
l = options.Size(x.Params)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.unknownFields != nil {
|
|
n += len(x.unknownFields)
|
|
}
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: n,
|
|
}
|
|
}
|
|
|
|
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryParamsResponse)
|
|
if x == nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
options := runtime.MarshalInputToOptions(input)
|
|
_ = options
|
|
size := options.Size(x)
|
|
dAtA := make([]byte, size)
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if x.unknownFields != nil {
|
|
i -= len(x.unknownFields)
|
|
copy(dAtA[i:], x.unknownFields)
|
|
}
|
|
if x.Params != nil {
|
|
encoded, err := options.Marshal(x.Params)
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
if input.Buf != nil {
|
|
input.Buf = append(input.Buf, dAtA...)
|
|
} else {
|
|
input.Buf = dAtA
|
|
}
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryParamsResponse)
|
|
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: QueryParamsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
|
}
|
|
if iNdEx >= l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if postIndex > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if x.Params == nil {
|
|
x.Params = &Params{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := runtime.Skip(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if !options.DiscardUnknown {
|
|
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
|
|
}
|
|
return &protoiface.Methods{
|
|
NoUnkeyedLiterals: struct{}{},
|
|
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
|
|
Size: size,
|
|
Marshal: marshal,
|
|
Unmarshal: unmarshal,
|
|
Merge: nil,
|
|
CheckInitialized: nil,
|
|
}
|
|
}
|
|
|
|
var _ protoreflect.List = (*_QueryRecordsRequest_1_list)(nil)
|
|
|
|
type _QueryRecordsRequest_1_list struct {
|
|
list *[]*QueryRecordsRequest_KeyValueInput
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_1_list) Len() int {
|
|
if x.list == nil {
|
|
return 0
|
|
}
|
|
return len(*x.list)
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_1_list) Get(i int) protoreflect.Value {
|
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_1_list) Set(i int, value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*QueryRecordsRequest_KeyValueInput)
|
|
(*x.list)[i] = concreteValue
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_1_list) Append(value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*QueryRecordsRequest_KeyValueInput)
|
|
*x.list = append(*x.list, concreteValue)
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_1_list) AppendMutable() protoreflect.Value {
|
|
v := new(QueryRecordsRequest_KeyValueInput)
|
|
*x.list = append(*x.list, v)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_1_list) Truncate(n int) {
|
|
for i := n; i < len(*x.list); i++ {
|
|
(*x.list)[i] = nil
|
|
}
|
|
*x.list = (*x.list)[:n]
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_1_list) NewElement() protoreflect.Value {
|
|
v := new(QueryRecordsRequest_KeyValueInput)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_1_list) IsValid() bool {
|
|
return x.list != nil
|
|
}
|
|
|
|
var (
|
|
md_QueryRecordsRequest protoreflect.MessageDescriptor
|
|
fd_QueryRecordsRequest_attributes protoreflect.FieldDescriptor
|
|
fd_QueryRecordsRequest_all protoreflect.FieldDescriptor
|
|
fd_QueryRecordsRequest_pagination protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryRecordsRequest = File_cerc_registry_v1_query_proto.Messages().ByName("QueryRecordsRequest")
|
|
fd_QueryRecordsRequest_attributes = md_QueryRecordsRequest.Fields().ByName("attributes")
|
|
fd_QueryRecordsRequest_all = md_QueryRecordsRequest.Fields().ByName("all")
|
|
fd_QueryRecordsRequest_pagination = md_QueryRecordsRequest.Fields().ByName("pagination")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryRecordsRequest)(nil)
|
|
|
|
type fastReflection_QueryRecordsRequest QueryRecordsRequest
|
|
|
|
func (x *QueryRecordsRequest) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsRequest)(x)
|
|
}
|
|
|
|
func (x *QueryRecordsRequest) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[2]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryRecordsRequest_messageType fastReflection_QueryRecordsRequest_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryRecordsRequest_messageType{}
|
|
|
|
type fastReflection_QueryRecordsRequest_messageType struct{}
|
|
|
|
func (x fastReflection_QueryRecordsRequest_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsRequest)(nil)
|
|
}
|
|
func (x fastReflection_QueryRecordsRequest_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsRequest)
|
|
}
|
|
func (x fastReflection_QueryRecordsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsRequest
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryRecordsRequest) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsRequest
|
|
}
|
|
|
|
// 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_QueryRecordsRequest) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryRecordsRequest_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryRecordsRequest) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsRequest)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryRecordsRequest) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryRecordsRequest)(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_QueryRecordsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if len(x.Attributes) != 0 {
|
|
value := protoreflect.ValueOfList(&_QueryRecordsRequest_1_list{list: &x.Attributes})
|
|
if !f(fd_QueryRecordsRequest_attributes, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.All != false {
|
|
value := protoreflect.ValueOfBool(x.All)
|
|
if !f(fd_QueryRecordsRequest_all, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Pagination != nil {
|
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
|
if !f(fd_QueryRecordsRequest_pagination, value) {
|
|
return
|
|
}
|
|
}
|
|
}
|
|
|
|
// Has reports whether a field is populated.
|
|
//
|
|
// Some fields have the property of nullability where it is possible to
|
|
// distinguish between the default value of a field and whether the field
|
|
// was explicitly populated with the default value. Singular message fields,
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
|
// fields are populated only if explicitly set.
|
|
//
|
|
// In other cases (aside from the nullable cases above),
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
|
// a repeated field is populated if it is non-empty.
|
|
func (x *fastReflection_QueryRecordsRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.attributes":
|
|
return len(x.Attributes) != 0
|
|
case "cerc.registry.v1.QueryRecordsRequest.all":
|
|
return x.All != false
|
|
case "cerc.registry.v1.QueryRecordsRequest.pagination":
|
|
return x.Pagination != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest 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_QueryRecordsRequest) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.attributes":
|
|
x.Attributes = nil
|
|
case "cerc.registry.v1.QueryRecordsRequest.all":
|
|
x.All = false
|
|
case "cerc.registry.v1.QueryRecordsRequest.pagination":
|
|
x.Pagination = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest 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_QueryRecordsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.attributes":
|
|
if len(x.Attributes) == 0 {
|
|
return protoreflect.ValueOfList(&_QueryRecordsRequest_1_list{})
|
|
}
|
|
listValue := &_QueryRecordsRequest_1_list{list: &x.Attributes}
|
|
return protoreflect.ValueOfList(listValue)
|
|
case "cerc.registry.v1.QueryRecordsRequest.all":
|
|
value := x.All
|
|
return protoreflect.ValueOfBool(value)
|
|
case "cerc.registry.v1.QueryRecordsRequest.pagination":
|
|
value := x.Pagination
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest 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_QueryRecordsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.attributes":
|
|
lv := value.List()
|
|
clv := lv.(*_QueryRecordsRequest_1_list)
|
|
x.Attributes = *clv.list
|
|
case "cerc.registry.v1.QueryRecordsRequest.all":
|
|
x.All = value.Bool()
|
|
case "cerc.registry.v1.QueryRecordsRequest.pagination":
|
|
x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest 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_QueryRecordsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.attributes":
|
|
if x.Attributes == nil {
|
|
x.Attributes = []*QueryRecordsRequest_KeyValueInput{}
|
|
}
|
|
value := &_QueryRecordsRequest_1_list{list: &x.Attributes}
|
|
return protoreflect.ValueOfList(value)
|
|
case "cerc.registry.v1.QueryRecordsRequest.pagination":
|
|
if x.Pagination == nil {
|
|
x.Pagination = new(v1beta1.PageRequest)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
|
case "cerc.registry.v1.QueryRecordsRequest.all":
|
|
panic(fmt.Errorf("field all of message cerc.registry.v1.QueryRecordsRequest is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest 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_QueryRecordsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.attributes":
|
|
list := []*QueryRecordsRequest_KeyValueInput{}
|
|
return protoreflect.ValueOfList(&_QueryRecordsRequest_1_list{list: &list})
|
|
case "cerc.registry.v1.QueryRecordsRequest.all":
|
|
return protoreflect.ValueOfBool(false)
|
|
case "cerc.registry.v1.QueryRecordsRequest.pagination":
|
|
m := new(v1beta1.PageRequest)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest 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_QueryRecordsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryRecordsRequest", 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_QueryRecordsRequest) 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_QueryRecordsRequest) 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_QueryRecordsRequest) 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_QueryRecordsRequest) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryRecordsRequest)
|
|
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.Attributes) > 0 {
|
|
for _, e := range x.Attributes {
|
|
l = options.Size(e)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
}
|
|
if x.All {
|
|
n += 2
|
|
}
|
|
if x.Pagination != nil {
|
|
l = options.Size(x.Pagination)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.unknownFields != nil {
|
|
n += len(x.unknownFields)
|
|
}
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: n,
|
|
}
|
|
}
|
|
|
|
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryRecordsRequest)
|
|
if x == nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
options := runtime.MarshalInputToOptions(input)
|
|
_ = options
|
|
size := options.Size(x)
|
|
dAtA := make([]byte, size)
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if x.unknownFields != nil {
|
|
i -= len(x.unknownFields)
|
|
copy(dAtA[i:], x.unknownFields)
|
|
}
|
|
if x.Pagination != nil {
|
|
encoded, err := options.Marshal(x.Pagination)
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if x.All {
|
|
i--
|
|
if x.All {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if len(x.Attributes) > 0 {
|
|
for iNdEx := len(x.Attributes) - 1; iNdEx >= 0; iNdEx-- {
|
|
encoded, err := options.Marshal(x.Attributes[iNdEx])
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
if input.Buf != nil {
|
|
input.Buf = append(input.Buf, dAtA...)
|
|
} else {
|
|
input.Buf = dAtA
|
|
}
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryRecordsRequest)
|
|
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: QueryRecordsRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRecordsRequest: 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 Attributes", 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.Attributes = append(x.Attributes, &QueryRecordsRequest_KeyValueInput{})
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Attributes[len(x.Attributes)-1]); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field All", 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.All = bool(v != 0)
|
|
case 3:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
|
}
|
|
if iNdEx >= l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if postIndex > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if x.Pagination == nil {
|
|
x.Pagination = &v1beta1.PageRequest{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := runtime.Skip(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if !options.DiscardUnknown {
|
|
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
|
|
}
|
|
return &protoiface.Methods{
|
|
NoUnkeyedLiterals: struct{}{},
|
|
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
|
|
Size: size,
|
|
Marshal: marshal,
|
|
Unmarshal: unmarshal,
|
|
Merge: nil,
|
|
CheckInitialized: nil,
|
|
}
|
|
}
|
|
|
|
var _ protoreflect.List = (*_QueryRecordsRequest_ArrayInput_1_list)(nil)
|
|
|
|
type _QueryRecordsRequest_ArrayInput_1_list struct {
|
|
list *[]*QueryRecordsRequest_ValueInput
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_ArrayInput_1_list) Len() int {
|
|
if x.list == nil {
|
|
return 0
|
|
}
|
|
return len(*x.list)
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_ArrayInput_1_list) Get(i int) protoreflect.Value {
|
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_ArrayInput_1_list) Set(i int, value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*QueryRecordsRequest_ValueInput)
|
|
(*x.list)[i] = concreteValue
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_ArrayInput_1_list) Append(value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*QueryRecordsRequest_ValueInput)
|
|
*x.list = append(*x.list, concreteValue)
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_ArrayInput_1_list) AppendMutable() protoreflect.Value {
|
|
v := new(QueryRecordsRequest_ValueInput)
|
|
*x.list = append(*x.list, v)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_ArrayInput_1_list) Truncate(n int) {
|
|
for i := n; i < len(*x.list); i++ {
|
|
(*x.list)[i] = nil
|
|
}
|
|
*x.list = (*x.list)[:n]
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_ArrayInput_1_list) NewElement() protoreflect.Value {
|
|
v := new(QueryRecordsRequest_ValueInput)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_ArrayInput_1_list) IsValid() bool {
|
|
return x.list != nil
|
|
}
|
|
|
|
var (
|
|
md_QueryRecordsRequest_ArrayInput protoreflect.MessageDescriptor
|
|
fd_QueryRecordsRequest_ArrayInput_values protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryRecordsRequest_ArrayInput = File_cerc_registry_v1_query_proto.Messages().ByName("QueryRecordsRequest").Messages().ByName("ArrayInput")
|
|
fd_QueryRecordsRequest_ArrayInput_values = md_QueryRecordsRequest_ArrayInput.Fields().ByName("values")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryRecordsRequest_ArrayInput)(nil)
|
|
|
|
type fastReflection_QueryRecordsRequest_ArrayInput QueryRecordsRequest_ArrayInput
|
|
|
|
func (x *QueryRecordsRequest_ArrayInput) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsRequest_ArrayInput)(x)
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ArrayInput) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[19]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryRecordsRequest_ArrayInput_messageType fastReflection_QueryRecordsRequest_ArrayInput_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryRecordsRequest_ArrayInput_messageType{}
|
|
|
|
type fastReflection_QueryRecordsRequest_ArrayInput_messageType struct{}
|
|
|
|
func (x fastReflection_QueryRecordsRequest_ArrayInput_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsRequest_ArrayInput)(nil)
|
|
}
|
|
func (x fastReflection_QueryRecordsRequest_ArrayInput_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsRequest_ArrayInput)
|
|
}
|
|
func (x fastReflection_QueryRecordsRequest_ArrayInput_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsRequest_ArrayInput
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryRecordsRequest_ArrayInput) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsRequest_ArrayInput
|
|
}
|
|
|
|
// 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_QueryRecordsRequest_ArrayInput) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryRecordsRequest_ArrayInput_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryRecordsRequest_ArrayInput) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsRequest_ArrayInput)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryRecordsRequest_ArrayInput) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryRecordsRequest_ArrayInput)(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_QueryRecordsRequest_ArrayInput) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if len(x.Values) != 0 {
|
|
value := protoreflect.ValueOfList(&_QueryRecordsRequest_ArrayInput_1_list{list: &x.Values})
|
|
if !f(fd_QueryRecordsRequest_ArrayInput_values, 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_QueryRecordsRequest_ArrayInput) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.ArrayInput.values":
|
|
return len(x.Values) != 0
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.ArrayInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.ArrayInput 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_QueryRecordsRequest_ArrayInput) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.ArrayInput.values":
|
|
x.Values = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.ArrayInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.ArrayInput 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_QueryRecordsRequest_ArrayInput) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.ArrayInput.values":
|
|
if len(x.Values) == 0 {
|
|
return protoreflect.ValueOfList(&_QueryRecordsRequest_ArrayInput_1_list{})
|
|
}
|
|
listValue := &_QueryRecordsRequest_ArrayInput_1_list{list: &x.Values}
|
|
return protoreflect.ValueOfList(listValue)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.ArrayInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.ArrayInput 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_QueryRecordsRequest_ArrayInput) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.ArrayInput.values":
|
|
lv := value.List()
|
|
clv := lv.(*_QueryRecordsRequest_ArrayInput_1_list)
|
|
x.Values = *clv.list
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.ArrayInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.ArrayInput 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_QueryRecordsRequest_ArrayInput) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.ArrayInput.values":
|
|
if x.Values == nil {
|
|
x.Values = []*QueryRecordsRequest_ValueInput{}
|
|
}
|
|
value := &_QueryRecordsRequest_ArrayInput_1_list{list: &x.Values}
|
|
return protoreflect.ValueOfList(value)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.ArrayInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.ArrayInput 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_QueryRecordsRequest_ArrayInput) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.ArrayInput.values":
|
|
list := []*QueryRecordsRequest_ValueInput{}
|
|
return protoreflect.ValueOfList(&_QueryRecordsRequest_ArrayInput_1_list{list: &list})
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.ArrayInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.ArrayInput 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_QueryRecordsRequest_ArrayInput) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryRecordsRequest.ArrayInput", 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_QueryRecordsRequest_ArrayInput) 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_QueryRecordsRequest_ArrayInput) 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_QueryRecordsRequest_ArrayInput) 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_QueryRecordsRequest_ArrayInput) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryRecordsRequest_ArrayInput)
|
|
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.Values) > 0 {
|
|
for _, e := range x.Values {
|
|
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().(*QueryRecordsRequest_ArrayInput)
|
|
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.Values) > 0 {
|
|
for iNdEx := len(x.Values) - 1; iNdEx >= 0; iNdEx-- {
|
|
encoded, err := options.Marshal(x.Values[iNdEx])
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
if input.Buf != nil {
|
|
input.Buf = append(input.Buf, dAtA...)
|
|
} else {
|
|
input.Buf = dAtA
|
|
}
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryRecordsRequest_ArrayInput)
|
|
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: QueryRecordsRequest_ArrayInput: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRecordsRequest_ArrayInput: 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 Values", 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.Values = append(x.Values, &QueryRecordsRequest_ValueInput{})
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Values[len(x.Values)-1]); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := runtime.Skip(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if !options.DiscardUnknown {
|
|
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
|
|
}
|
|
return &protoiface.Methods{
|
|
NoUnkeyedLiterals: struct{}{},
|
|
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
|
|
Size: size,
|
|
Marshal: marshal,
|
|
Unmarshal: unmarshal,
|
|
Merge: nil,
|
|
CheckInitialized: nil,
|
|
}
|
|
}
|
|
|
|
var _ protoreflect.Map = (*_QueryRecordsRequest_MapInput_1_map)(nil)
|
|
|
|
type _QueryRecordsRequest_MapInput_1_map struct {
|
|
m *map[string]*QueryRecordsRequest_ValueInput
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_MapInput_1_map) Len() int {
|
|
if x.m == nil {
|
|
return 0
|
|
}
|
|
return len(*x.m)
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_MapInput_1_map) Range(f func(protoreflect.MapKey, protoreflect.Value) bool) {
|
|
if x.m == nil {
|
|
return
|
|
}
|
|
for k, v := range *x.m {
|
|
mapKey := (protoreflect.MapKey)(protoreflect.ValueOfString(k))
|
|
mapValue := protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
if !f(mapKey, mapValue) {
|
|
break
|
|
}
|
|
}
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_MapInput_1_map) Has(key protoreflect.MapKey) bool {
|
|
if x.m == nil {
|
|
return false
|
|
}
|
|
keyUnwrapped := key.String()
|
|
concreteValue := keyUnwrapped
|
|
_, ok := (*x.m)[concreteValue]
|
|
return ok
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_MapInput_1_map) Clear(key protoreflect.MapKey) {
|
|
if x.m == nil {
|
|
return
|
|
}
|
|
keyUnwrapped := key.String()
|
|
concreteKey := keyUnwrapped
|
|
delete(*x.m, concreteKey)
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_MapInput_1_map) Get(key protoreflect.MapKey) protoreflect.Value {
|
|
if x.m == nil {
|
|
return protoreflect.Value{}
|
|
}
|
|
keyUnwrapped := key.String()
|
|
concreteKey := keyUnwrapped
|
|
v, ok := (*x.m)[concreteKey]
|
|
if !ok {
|
|
return protoreflect.Value{}
|
|
}
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_MapInput_1_map) Set(key protoreflect.MapKey, value protoreflect.Value) {
|
|
if !key.IsValid() || !value.IsValid() {
|
|
panic("invalid key or value provided")
|
|
}
|
|
keyUnwrapped := key.String()
|
|
concreteKey := keyUnwrapped
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*QueryRecordsRequest_ValueInput)
|
|
(*x.m)[concreteKey] = concreteValue
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_MapInput_1_map) Mutable(key protoreflect.MapKey) protoreflect.Value {
|
|
keyUnwrapped := key.String()
|
|
concreteKey := keyUnwrapped
|
|
v, ok := (*x.m)[concreteKey]
|
|
if ok {
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
newValue := new(QueryRecordsRequest_ValueInput)
|
|
(*x.m)[concreteKey] = newValue
|
|
return protoreflect.ValueOfMessage(newValue.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_MapInput_1_map) NewValue() protoreflect.Value {
|
|
v := new(QueryRecordsRequest_ValueInput)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsRequest_MapInput_1_map) IsValid() bool {
|
|
return x.m != nil
|
|
}
|
|
|
|
var (
|
|
md_QueryRecordsRequest_MapInput protoreflect.MessageDescriptor
|
|
fd_QueryRecordsRequest_MapInput_values protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryRecordsRequest_MapInput = File_cerc_registry_v1_query_proto.Messages().ByName("QueryRecordsRequest").Messages().ByName("MapInput")
|
|
fd_QueryRecordsRequest_MapInput_values = md_QueryRecordsRequest_MapInput.Fields().ByName("values")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryRecordsRequest_MapInput)(nil)
|
|
|
|
type fastReflection_QueryRecordsRequest_MapInput QueryRecordsRequest_MapInput
|
|
|
|
func (x *QueryRecordsRequest_MapInput) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsRequest_MapInput)(x)
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_MapInput) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[20]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryRecordsRequest_MapInput_messageType fastReflection_QueryRecordsRequest_MapInput_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryRecordsRequest_MapInput_messageType{}
|
|
|
|
type fastReflection_QueryRecordsRequest_MapInput_messageType struct{}
|
|
|
|
func (x fastReflection_QueryRecordsRequest_MapInput_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsRequest_MapInput)(nil)
|
|
}
|
|
func (x fastReflection_QueryRecordsRequest_MapInput_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsRequest_MapInput)
|
|
}
|
|
func (x fastReflection_QueryRecordsRequest_MapInput_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsRequest_MapInput
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryRecordsRequest_MapInput) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsRequest_MapInput
|
|
}
|
|
|
|
// 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_QueryRecordsRequest_MapInput) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryRecordsRequest_MapInput_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryRecordsRequest_MapInput) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsRequest_MapInput)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryRecordsRequest_MapInput) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryRecordsRequest_MapInput)(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_QueryRecordsRequest_MapInput) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if len(x.Values) != 0 {
|
|
value := protoreflect.ValueOfMap(&_QueryRecordsRequest_MapInput_1_map{m: &x.Values})
|
|
if !f(fd_QueryRecordsRequest_MapInput_values, 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_QueryRecordsRequest_MapInput) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.MapInput.values":
|
|
return len(x.Values) != 0
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.MapInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.MapInput 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_QueryRecordsRequest_MapInput) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.MapInput.values":
|
|
x.Values = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.MapInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.MapInput 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_QueryRecordsRequest_MapInput) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.MapInput.values":
|
|
if len(x.Values) == 0 {
|
|
return protoreflect.ValueOfMap(&_QueryRecordsRequest_MapInput_1_map{})
|
|
}
|
|
mapValue := &_QueryRecordsRequest_MapInput_1_map{m: &x.Values}
|
|
return protoreflect.ValueOfMap(mapValue)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.MapInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.MapInput 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_QueryRecordsRequest_MapInput) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.MapInput.values":
|
|
mv := value.Map()
|
|
cmv := mv.(*_QueryRecordsRequest_MapInput_1_map)
|
|
x.Values = *cmv.m
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.MapInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.MapInput 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_QueryRecordsRequest_MapInput) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.MapInput.values":
|
|
if x.Values == nil {
|
|
x.Values = make(map[string]*QueryRecordsRequest_ValueInput)
|
|
}
|
|
value := &_QueryRecordsRequest_MapInput_1_map{m: &x.Values}
|
|
return protoreflect.ValueOfMap(value)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.MapInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.MapInput 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_QueryRecordsRequest_MapInput) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.MapInput.values":
|
|
m := make(map[string]*QueryRecordsRequest_ValueInput)
|
|
return protoreflect.ValueOfMap(&_QueryRecordsRequest_MapInput_1_map{m: &m})
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.MapInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.MapInput 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_QueryRecordsRequest_MapInput) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryRecordsRequest.MapInput", 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_QueryRecordsRequest_MapInput) 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_QueryRecordsRequest_MapInput) 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_QueryRecordsRequest_MapInput) 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_QueryRecordsRequest_MapInput) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryRecordsRequest_MapInput)
|
|
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.Values) > 0 {
|
|
SiZeMaP := func(k string, v *QueryRecordsRequest_ValueInput) {
|
|
l := 0
|
|
if v != nil {
|
|
l = options.Size(v)
|
|
}
|
|
l += 1 + runtime.Sov(uint64(l))
|
|
mapEntrySize := 1 + len(k) + runtime.Sov(uint64(len(k))) + l
|
|
n += mapEntrySize + 1 + runtime.Sov(uint64(mapEntrySize))
|
|
}
|
|
if options.Deterministic {
|
|
sortme := make([]string, 0, len(x.Values))
|
|
for k := range x.Values {
|
|
sortme = append(sortme, k)
|
|
}
|
|
sort.Strings(sortme)
|
|
for _, k := range sortme {
|
|
v := x.Values[k]
|
|
SiZeMaP(k, v)
|
|
}
|
|
} else {
|
|
for k, v := range x.Values {
|
|
SiZeMaP(k, v)
|
|
}
|
|
}
|
|
}
|
|
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().(*QueryRecordsRequest_MapInput)
|
|
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.Values) > 0 {
|
|
MaRsHaLmAp := func(k string, v *QueryRecordsRequest_ValueInput) (protoiface.MarshalOutput, error) {
|
|
baseI := i
|
|
encoded, err := options.Marshal(v)
|
|
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
|
|
i -= len(k)
|
|
copy(dAtA[i:], k)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(k)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(baseI-i))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
return protoiface.MarshalOutput{}, nil
|
|
}
|
|
if options.Deterministic {
|
|
keysForValues := make([]string, 0, len(x.Values))
|
|
for k := range x.Values {
|
|
keysForValues = append(keysForValues, string(k))
|
|
}
|
|
sort.Slice(keysForValues, func(i, j int) bool {
|
|
return keysForValues[i] < keysForValues[j]
|
|
})
|
|
for iNdEx := len(keysForValues) - 1; iNdEx >= 0; iNdEx-- {
|
|
v := x.Values[string(keysForValues[iNdEx])]
|
|
out, err := MaRsHaLmAp(keysForValues[iNdEx], v)
|
|
if err != nil {
|
|
return out, err
|
|
}
|
|
}
|
|
} else {
|
|
for k := range x.Values {
|
|
v := x.Values[k]
|
|
out, err := MaRsHaLmAp(k, v)
|
|
if err != nil {
|
|
return out, err
|
|
}
|
|
}
|
|
}
|
|
}
|
|
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().(*QueryRecordsRequest_MapInput)
|
|
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: QueryRecordsRequest_MapInput: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRecordsRequest_MapInput: 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 Values", 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.Values == nil {
|
|
x.Values = make(map[string]*QueryRecordsRequest_ValueInput)
|
|
}
|
|
var mapkey string
|
|
var mapvalue *QueryRecordsRequest_ValueInput
|
|
for iNdEx < postIndex {
|
|
entryPreIndex := 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)
|
|
if fieldNum == 1 {
|
|
var stringLenmapkey 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++
|
|
stringLenmapkey |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLenmapkey := int(stringLenmapkey)
|
|
if intStringLenmapkey < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
postStringIndexmapkey := iNdEx + intStringLenmapkey
|
|
if postStringIndexmapkey < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if postStringIndexmapkey > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
|
|
iNdEx = postStringIndexmapkey
|
|
} else if fieldNum == 2 {
|
|
var mapmsglen 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++
|
|
mapmsglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if mapmsglen < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
postmsgIndex := iNdEx + mapmsglen
|
|
if postmsgIndex < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if postmsgIndex > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
mapvalue = &QueryRecordsRequest_ValueInput{}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postmsgIndex], mapvalue); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postmsgIndex
|
|
} else {
|
|
iNdEx = entryPreIndex
|
|
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) > postIndex {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
x.Values[mapkey] = mapvalue
|
|
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_QueryRecordsRequest_ValueInput protoreflect.MessageDescriptor
|
|
fd_QueryRecordsRequest_ValueInput_string protoreflect.FieldDescriptor
|
|
fd_QueryRecordsRequest_ValueInput_int protoreflect.FieldDescriptor
|
|
fd_QueryRecordsRequest_ValueInput_float protoreflect.FieldDescriptor
|
|
fd_QueryRecordsRequest_ValueInput_boolean protoreflect.FieldDescriptor
|
|
fd_QueryRecordsRequest_ValueInput_link protoreflect.FieldDescriptor
|
|
fd_QueryRecordsRequest_ValueInput_array protoreflect.FieldDescriptor
|
|
fd_QueryRecordsRequest_ValueInput_map protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryRecordsRequest_ValueInput = File_cerc_registry_v1_query_proto.Messages().ByName("QueryRecordsRequest").Messages().ByName("ValueInput")
|
|
fd_QueryRecordsRequest_ValueInput_string = md_QueryRecordsRequest_ValueInput.Fields().ByName("string")
|
|
fd_QueryRecordsRequest_ValueInput_int = md_QueryRecordsRequest_ValueInput.Fields().ByName("int")
|
|
fd_QueryRecordsRequest_ValueInput_float = md_QueryRecordsRequest_ValueInput.Fields().ByName("float")
|
|
fd_QueryRecordsRequest_ValueInput_boolean = md_QueryRecordsRequest_ValueInput.Fields().ByName("boolean")
|
|
fd_QueryRecordsRequest_ValueInput_link = md_QueryRecordsRequest_ValueInput.Fields().ByName("link")
|
|
fd_QueryRecordsRequest_ValueInput_array = md_QueryRecordsRequest_ValueInput.Fields().ByName("array")
|
|
fd_QueryRecordsRequest_ValueInput_map = md_QueryRecordsRequest_ValueInput.Fields().ByName("map")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryRecordsRequest_ValueInput)(nil)
|
|
|
|
type fastReflection_QueryRecordsRequest_ValueInput QueryRecordsRequest_ValueInput
|
|
|
|
func (x *QueryRecordsRequest_ValueInput) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsRequest_ValueInput)(x)
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ValueInput) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[21]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryRecordsRequest_ValueInput_messageType fastReflection_QueryRecordsRequest_ValueInput_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryRecordsRequest_ValueInput_messageType{}
|
|
|
|
type fastReflection_QueryRecordsRequest_ValueInput_messageType struct{}
|
|
|
|
func (x fastReflection_QueryRecordsRequest_ValueInput_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsRequest_ValueInput)(nil)
|
|
}
|
|
func (x fastReflection_QueryRecordsRequest_ValueInput_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsRequest_ValueInput)
|
|
}
|
|
func (x fastReflection_QueryRecordsRequest_ValueInput_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsRequest_ValueInput
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryRecordsRequest_ValueInput) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsRequest_ValueInput
|
|
}
|
|
|
|
// 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_QueryRecordsRequest_ValueInput) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryRecordsRequest_ValueInput_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryRecordsRequest_ValueInput) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsRequest_ValueInput)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryRecordsRequest_ValueInput) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryRecordsRequest_ValueInput)(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_QueryRecordsRequest_ValueInput) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Value != nil {
|
|
switch o := x.Value.(type) {
|
|
case *QueryRecordsRequest_ValueInput_String_:
|
|
v := o.String_
|
|
value := protoreflect.ValueOfString(v)
|
|
if !f(fd_QueryRecordsRequest_ValueInput_string, value) {
|
|
return
|
|
}
|
|
case *QueryRecordsRequest_ValueInput_Int:
|
|
v := o.Int
|
|
value := protoreflect.ValueOfInt64(v)
|
|
if !f(fd_QueryRecordsRequest_ValueInput_int, value) {
|
|
return
|
|
}
|
|
case *QueryRecordsRequest_ValueInput_Float:
|
|
v := o.Float
|
|
value := protoreflect.ValueOfFloat64(v)
|
|
if !f(fd_QueryRecordsRequest_ValueInput_float, value) {
|
|
return
|
|
}
|
|
case *QueryRecordsRequest_ValueInput_Boolean:
|
|
v := o.Boolean
|
|
value := protoreflect.ValueOfBool(v)
|
|
if !f(fd_QueryRecordsRequest_ValueInput_boolean, value) {
|
|
return
|
|
}
|
|
case *QueryRecordsRequest_ValueInput_Link:
|
|
v := o.Link
|
|
value := protoreflect.ValueOfString(v)
|
|
if !f(fd_QueryRecordsRequest_ValueInput_link, value) {
|
|
return
|
|
}
|
|
case *QueryRecordsRequest_ValueInput_Array:
|
|
v := o.Array
|
|
value := protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
if !f(fd_QueryRecordsRequest_ValueInput_array, value) {
|
|
return
|
|
}
|
|
case *QueryRecordsRequest_ValueInput_Map:
|
|
v := o.Map
|
|
value := protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
if !f(fd_QueryRecordsRequest_ValueInput_map, 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_QueryRecordsRequest_ValueInput) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.string":
|
|
if x.Value == nil {
|
|
return false
|
|
} else if _, ok := x.Value.(*QueryRecordsRequest_ValueInput_String_); ok {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.int":
|
|
if x.Value == nil {
|
|
return false
|
|
} else if _, ok := x.Value.(*QueryRecordsRequest_ValueInput_Int); ok {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.float":
|
|
if x.Value == nil {
|
|
return false
|
|
} else if _, ok := x.Value.(*QueryRecordsRequest_ValueInput_Float); ok {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.boolean":
|
|
if x.Value == nil {
|
|
return false
|
|
} else if _, ok := x.Value.(*QueryRecordsRequest_ValueInput_Boolean); ok {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.link":
|
|
if x.Value == nil {
|
|
return false
|
|
} else if _, ok := x.Value.(*QueryRecordsRequest_ValueInput_Link); ok {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.array":
|
|
if x.Value == nil {
|
|
return false
|
|
} else if _, ok := x.Value.(*QueryRecordsRequest_ValueInput_Array); ok {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.map":
|
|
if x.Value == nil {
|
|
return false
|
|
} else if _, ok := x.Value.(*QueryRecordsRequest_ValueInput_Map); ok {
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.ValueInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.ValueInput 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_QueryRecordsRequest_ValueInput) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.string":
|
|
x.Value = nil
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.int":
|
|
x.Value = nil
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.float":
|
|
x.Value = nil
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.boolean":
|
|
x.Value = nil
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.link":
|
|
x.Value = nil
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.array":
|
|
x.Value = nil
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.map":
|
|
x.Value = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.ValueInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.ValueInput 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_QueryRecordsRequest_ValueInput) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.string":
|
|
if x.Value == nil {
|
|
return protoreflect.ValueOfString("")
|
|
} else if v, ok := x.Value.(*QueryRecordsRequest_ValueInput_String_); ok {
|
|
return protoreflect.ValueOfString(v.String_)
|
|
} else {
|
|
return protoreflect.ValueOfString("")
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.int":
|
|
if x.Value == nil {
|
|
return protoreflect.ValueOfInt64(int64(0))
|
|
} else if v, ok := x.Value.(*QueryRecordsRequest_ValueInput_Int); ok {
|
|
return protoreflect.ValueOfInt64(v.Int)
|
|
} else {
|
|
return protoreflect.ValueOfInt64(int64(0))
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.float":
|
|
if x.Value == nil {
|
|
return protoreflect.ValueOfFloat64(float64(0))
|
|
} else if v, ok := x.Value.(*QueryRecordsRequest_ValueInput_Float); ok {
|
|
return protoreflect.ValueOfFloat64(v.Float)
|
|
} else {
|
|
return protoreflect.ValueOfFloat64(float64(0))
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.boolean":
|
|
if x.Value == nil {
|
|
return protoreflect.ValueOfBool(false)
|
|
} else if v, ok := x.Value.(*QueryRecordsRequest_ValueInput_Boolean); ok {
|
|
return protoreflect.ValueOfBool(v.Boolean)
|
|
} else {
|
|
return protoreflect.ValueOfBool(false)
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.link":
|
|
if x.Value == nil {
|
|
return protoreflect.ValueOfString("")
|
|
} else if v, ok := x.Value.(*QueryRecordsRequest_ValueInput_Link); ok {
|
|
return protoreflect.ValueOfString(v.Link)
|
|
} else {
|
|
return protoreflect.ValueOfString("")
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.array":
|
|
if x.Value == nil {
|
|
return protoreflect.ValueOfMessage((*QueryRecordsRequest_ArrayInput)(nil).ProtoReflect())
|
|
} else if v, ok := x.Value.(*QueryRecordsRequest_ValueInput_Array); ok {
|
|
return protoreflect.ValueOfMessage(v.Array.ProtoReflect())
|
|
} else {
|
|
return protoreflect.ValueOfMessage((*QueryRecordsRequest_ArrayInput)(nil).ProtoReflect())
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.map":
|
|
if x.Value == nil {
|
|
return protoreflect.ValueOfMessage((*QueryRecordsRequest_MapInput)(nil).ProtoReflect())
|
|
} else if v, ok := x.Value.(*QueryRecordsRequest_ValueInput_Map); ok {
|
|
return protoreflect.ValueOfMessage(v.Map.ProtoReflect())
|
|
} else {
|
|
return protoreflect.ValueOfMessage((*QueryRecordsRequest_MapInput)(nil).ProtoReflect())
|
|
}
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.ValueInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.ValueInput 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_QueryRecordsRequest_ValueInput) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.string":
|
|
cv := value.Interface().(string)
|
|
x.Value = &QueryRecordsRequest_ValueInput_String_{String_: cv}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.int":
|
|
cv := value.Int()
|
|
x.Value = &QueryRecordsRequest_ValueInput_Int{Int: cv}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.float":
|
|
cv := value.Float()
|
|
x.Value = &QueryRecordsRequest_ValueInput_Float{Float: cv}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.boolean":
|
|
cv := value.Bool()
|
|
x.Value = &QueryRecordsRequest_ValueInput_Boolean{Boolean: cv}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.link":
|
|
cv := value.Interface().(string)
|
|
x.Value = &QueryRecordsRequest_ValueInput_Link{Link: cv}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.array":
|
|
cv := value.Message().Interface().(*QueryRecordsRequest_ArrayInput)
|
|
x.Value = &QueryRecordsRequest_ValueInput_Array{Array: cv}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.map":
|
|
cv := value.Message().Interface().(*QueryRecordsRequest_MapInput)
|
|
x.Value = &QueryRecordsRequest_ValueInput_Map{Map: cv}
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.ValueInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.ValueInput 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_QueryRecordsRequest_ValueInput) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.array":
|
|
if x.Value == nil {
|
|
value := &QueryRecordsRequest_ArrayInput{}
|
|
oneofValue := &QueryRecordsRequest_ValueInput_Array{Array: value}
|
|
x.Value = oneofValue
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
}
|
|
switch m := x.Value.(type) {
|
|
case *QueryRecordsRequest_ValueInput_Array:
|
|
return protoreflect.ValueOfMessage(m.Array.ProtoReflect())
|
|
default:
|
|
value := &QueryRecordsRequest_ArrayInput{}
|
|
oneofValue := &QueryRecordsRequest_ValueInput_Array{Array: value}
|
|
x.Value = oneofValue
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.map":
|
|
if x.Value == nil {
|
|
value := &QueryRecordsRequest_MapInput{}
|
|
oneofValue := &QueryRecordsRequest_ValueInput_Map{Map: value}
|
|
x.Value = oneofValue
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
}
|
|
switch m := x.Value.(type) {
|
|
case *QueryRecordsRequest_ValueInput_Map:
|
|
return protoreflect.ValueOfMessage(m.Map.ProtoReflect())
|
|
default:
|
|
value := &QueryRecordsRequest_MapInput{}
|
|
oneofValue := &QueryRecordsRequest_ValueInput_Map{Map: value}
|
|
x.Value = oneofValue
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
}
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.string":
|
|
panic(fmt.Errorf("field string of message cerc.registry.v1.QueryRecordsRequest.ValueInput is not mutable"))
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.int":
|
|
panic(fmt.Errorf("field int of message cerc.registry.v1.QueryRecordsRequest.ValueInput is not mutable"))
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.float":
|
|
panic(fmt.Errorf("field float of message cerc.registry.v1.QueryRecordsRequest.ValueInput is not mutable"))
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.boolean":
|
|
panic(fmt.Errorf("field boolean of message cerc.registry.v1.QueryRecordsRequest.ValueInput is not mutable"))
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.link":
|
|
panic(fmt.Errorf("field link of message cerc.registry.v1.QueryRecordsRequest.ValueInput is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.ValueInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.ValueInput 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_QueryRecordsRequest_ValueInput) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.string":
|
|
return protoreflect.ValueOfString("")
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.int":
|
|
return protoreflect.ValueOfInt64(int64(0))
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.float":
|
|
return protoreflect.ValueOfFloat64(float64(0))
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.boolean":
|
|
return protoreflect.ValueOfBool(false)
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.link":
|
|
return protoreflect.ValueOfString("")
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.array":
|
|
value := &QueryRecordsRequest_ArrayInput{}
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.map":
|
|
value := &QueryRecordsRequest_MapInput{}
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.ValueInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.ValueInput 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_QueryRecordsRequest_ValueInput) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.ValueInput.value":
|
|
if x.Value == nil {
|
|
return nil
|
|
}
|
|
switch x.Value.(type) {
|
|
case *QueryRecordsRequest_ValueInput_String_:
|
|
return x.Descriptor().Fields().ByName("string")
|
|
case *QueryRecordsRequest_ValueInput_Int:
|
|
return x.Descriptor().Fields().ByName("int")
|
|
case *QueryRecordsRequest_ValueInput_Float:
|
|
return x.Descriptor().Fields().ByName("float")
|
|
case *QueryRecordsRequest_ValueInput_Boolean:
|
|
return x.Descriptor().Fields().ByName("boolean")
|
|
case *QueryRecordsRequest_ValueInput_Link:
|
|
return x.Descriptor().Fields().ByName("link")
|
|
case *QueryRecordsRequest_ValueInput_Array:
|
|
return x.Descriptor().Fields().ByName("array")
|
|
case *QueryRecordsRequest_ValueInput_Map:
|
|
return x.Descriptor().Fields().ByName("map")
|
|
}
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryRecordsRequest.ValueInput", 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_QueryRecordsRequest_ValueInput) 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_QueryRecordsRequest_ValueInput) 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_QueryRecordsRequest_ValueInput) 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_QueryRecordsRequest_ValueInput) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryRecordsRequest_ValueInput)
|
|
if x == nil {
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: 0,
|
|
}
|
|
}
|
|
options := runtime.SizeInputToOptions(input)
|
|
_ = options
|
|
var n int
|
|
var l int
|
|
_ = l
|
|
switch x := x.Value.(type) {
|
|
case *QueryRecordsRequest_ValueInput_String_:
|
|
if x == nil {
|
|
break
|
|
}
|
|
l = len(x.String_)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
case *QueryRecordsRequest_ValueInput_Int:
|
|
if x == nil {
|
|
break
|
|
}
|
|
n += 1 + runtime.Sov(uint64(x.Int))
|
|
case *QueryRecordsRequest_ValueInput_Float:
|
|
if x == nil {
|
|
break
|
|
}
|
|
n += 9
|
|
case *QueryRecordsRequest_ValueInput_Boolean:
|
|
if x == nil {
|
|
break
|
|
}
|
|
n += 2
|
|
case *QueryRecordsRequest_ValueInput_Link:
|
|
if x == nil {
|
|
break
|
|
}
|
|
l = len(x.Link)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
case *QueryRecordsRequest_ValueInput_Array:
|
|
if x == nil {
|
|
break
|
|
}
|
|
l = options.Size(x.Array)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
case *QueryRecordsRequest_ValueInput_Map:
|
|
if x == nil {
|
|
break
|
|
}
|
|
l = options.Size(x.Map)
|
|
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().(*QueryRecordsRequest_ValueInput)
|
|
if x == nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
options := runtime.MarshalInputToOptions(input)
|
|
_ = options
|
|
size := options.Size(x)
|
|
dAtA := make([]byte, size)
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if x.unknownFields != nil {
|
|
i -= len(x.unknownFields)
|
|
copy(dAtA[i:], x.unknownFields)
|
|
}
|
|
switch x := x.Value.(type) {
|
|
case *QueryRecordsRequest_ValueInput_String_:
|
|
i -= len(x.String_)
|
|
copy(dAtA[i:], x.String_)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.String_)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
case *QueryRecordsRequest_ValueInput_Int:
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(x.Int))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
case *QueryRecordsRequest_ValueInput_Float:
|
|
i -= 8
|
|
binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(x.Float))))
|
|
i--
|
|
dAtA[i] = 0x19
|
|
case *QueryRecordsRequest_ValueInput_Boolean:
|
|
i--
|
|
if x.Boolean {
|
|
dAtA[i] = 1
|
|
} else {
|
|
dAtA[i] = 0
|
|
}
|
|
i--
|
|
dAtA[i] = 0x20
|
|
case *QueryRecordsRequest_ValueInput_Link:
|
|
i -= len(x.Link)
|
|
copy(dAtA[i:], x.Link)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Link)))
|
|
i--
|
|
dAtA[i] = 0x2a
|
|
case *QueryRecordsRequest_ValueInput_Array:
|
|
encoded, err := options.Marshal(x.Array)
|
|
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] = 0x32
|
|
case *QueryRecordsRequest_ValueInput_Map:
|
|
encoded, err := options.Marshal(x.Map)
|
|
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 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().(*QueryRecordsRequest_ValueInput)
|
|
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: QueryRecordsRequest_ValueInput: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRecordsRequest_ValueInput: 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 String_", 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 = &QueryRecordsRequest_ValueInput_String_{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 Int", wireType)
|
|
}
|
|
var v int64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.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 |= int64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
x.Value = &QueryRecordsRequest_ValueInput_Int{v}
|
|
case 3:
|
|
if wireType != 1 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Float", wireType)
|
|
}
|
|
var v uint64
|
|
if (iNdEx + 8) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
|
|
iNdEx += 8
|
|
x.Value = &QueryRecordsRequest_ValueInput_Float{float64(math.Float64frombits(v))}
|
|
case 4:
|
|
if wireType != 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Boolean", 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
|
|
}
|
|
}
|
|
b := bool(v != 0)
|
|
x.Value = &QueryRecordsRequest_ValueInput_Boolean{b}
|
|
case 5:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Link", 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 = &QueryRecordsRequest_ValueInput_Link{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 Array", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
|
}
|
|
if iNdEx >= l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if postIndex > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
v := &QueryRecordsRequest_ArrayInput{}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
x.Value = &QueryRecordsRequest_ValueInput_Array{v}
|
|
iNdEx = postIndex
|
|
case 7:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Map", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
|
}
|
|
if iNdEx >= l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if postIndex > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
v := &QueryRecordsRequest_MapInput{}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
x.Value = &QueryRecordsRequest_ValueInput_Map{v}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := runtime.Skip(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if !options.DiscardUnknown {
|
|
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
|
|
}
|
|
return &protoiface.Methods{
|
|
NoUnkeyedLiterals: struct{}{},
|
|
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
|
|
Size: size,
|
|
Marshal: marshal,
|
|
Unmarshal: unmarshal,
|
|
Merge: nil,
|
|
CheckInitialized: nil,
|
|
}
|
|
}
|
|
|
|
var (
|
|
md_QueryRecordsRequest_KeyValueInput protoreflect.MessageDescriptor
|
|
fd_QueryRecordsRequest_KeyValueInput_key protoreflect.FieldDescriptor
|
|
fd_QueryRecordsRequest_KeyValueInput_value protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryRecordsRequest_KeyValueInput = File_cerc_registry_v1_query_proto.Messages().ByName("QueryRecordsRequest").Messages().ByName("KeyValueInput")
|
|
fd_QueryRecordsRequest_KeyValueInput_key = md_QueryRecordsRequest_KeyValueInput.Fields().ByName("key")
|
|
fd_QueryRecordsRequest_KeyValueInput_value = md_QueryRecordsRequest_KeyValueInput.Fields().ByName("value")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryRecordsRequest_KeyValueInput)(nil)
|
|
|
|
type fastReflection_QueryRecordsRequest_KeyValueInput QueryRecordsRequest_KeyValueInput
|
|
|
|
func (x *QueryRecordsRequest_KeyValueInput) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsRequest_KeyValueInput)(x)
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_KeyValueInput) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[22]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryRecordsRequest_KeyValueInput_messageType fastReflection_QueryRecordsRequest_KeyValueInput_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryRecordsRequest_KeyValueInput_messageType{}
|
|
|
|
type fastReflection_QueryRecordsRequest_KeyValueInput_messageType struct{}
|
|
|
|
func (x fastReflection_QueryRecordsRequest_KeyValueInput_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsRequest_KeyValueInput)(nil)
|
|
}
|
|
func (x fastReflection_QueryRecordsRequest_KeyValueInput_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsRequest_KeyValueInput)
|
|
}
|
|
func (x fastReflection_QueryRecordsRequest_KeyValueInput_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsRequest_KeyValueInput
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryRecordsRequest_KeyValueInput) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsRequest_KeyValueInput
|
|
}
|
|
|
|
// 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_QueryRecordsRequest_KeyValueInput) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryRecordsRequest_KeyValueInput_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryRecordsRequest_KeyValueInput) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsRequest_KeyValueInput)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryRecordsRequest_KeyValueInput) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryRecordsRequest_KeyValueInput)(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_QueryRecordsRequest_KeyValueInput) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Key != "" {
|
|
value := protoreflect.ValueOfString(x.Key)
|
|
if !f(fd_QueryRecordsRequest_KeyValueInput_key, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Value != nil {
|
|
value := protoreflect.ValueOfMessage(x.Value.ProtoReflect())
|
|
if !f(fd_QueryRecordsRequest_KeyValueInput_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_QueryRecordsRequest_KeyValueInput) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.KeyValueInput.key":
|
|
return x.Key != ""
|
|
case "cerc.registry.v1.QueryRecordsRequest.KeyValueInput.value":
|
|
return x.Value != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.KeyValueInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.KeyValueInput 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_QueryRecordsRequest_KeyValueInput) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.KeyValueInput.key":
|
|
x.Key = ""
|
|
case "cerc.registry.v1.QueryRecordsRequest.KeyValueInput.value":
|
|
x.Value = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.KeyValueInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.KeyValueInput 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_QueryRecordsRequest_KeyValueInput) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.KeyValueInput.key":
|
|
value := x.Key
|
|
return protoreflect.ValueOfString(value)
|
|
case "cerc.registry.v1.QueryRecordsRequest.KeyValueInput.value":
|
|
value := x.Value
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.KeyValueInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.KeyValueInput 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_QueryRecordsRequest_KeyValueInput) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.KeyValueInput.key":
|
|
x.Key = value.Interface().(string)
|
|
case "cerc.registry.v1.QueryRecordsRequest.KeyValueInput.value":
|
|
x.Value = value.Message().Interface().(*QueryRecordsRequest_ValueInput)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.KeyValueInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.KeyValueInput 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_QueryRecordsRequest_KeyValueInput) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.KeyValueInput.value":
|
|
if x.Value == nil {
|
|
x.Value = new(QueryRecordsRequest_ValueInput)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Value.ProtoReflect())
|
|
case "cerc.registry.v1.QueryRecordsRequest.KeyValueInput.key":
|
|
panic(fmt.Errorf("field key of message cerc.registry.v1.QueryRecordsRequest.KeyValueInput is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.KeyValueInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.KeyValueInput 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_QueryRecordsRequest_KeyValueInput) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsRequest.KeyValueInput.key":
|
|
return protoreflect.ValueOfString("")
|
|
case "cerc.registry.v1.QueryRecordsRequest.KeyValueInput.value":
|
|
m := new(QueryRecordsRequest_ValueInput)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsRequest.KeyValueInput"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsRequest.KeyValueInput 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_QueryRecordsRequest_KeyValueInput) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryRecordsRequest.KeyValueInput", 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_QueryRecordsRequest_KeyValueInput) 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_QueryRecordsRequest_KeyValueInput) 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_QueryRecordsRequest_KeyValueInput) 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_QueryRecordsRequest_KeyValueInput) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryRecordsRequest_KeyValueInput)
|
|
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.Key)
|
|
if l > 0 {
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.Value != nil {
|
|
l = options.Size(x.Value)
|
|
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().(*QueryRecordsRequest_KeyValueInput)
|
|
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.Value != nil {
|
|
encoded, err := options.Marshal(x.Value)
|
|
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.Key) > 0 {
|
|
i -= len(x.Key)
|
|
copy(dAtA[i:], x.Key)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Key)))
|
|
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().(*QueryRecordsRequest_KeyValueInput)
|
|
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: QueryRecordsRequest_KeyValueInput: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRecordsRequest_KeyValueInput: 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 Key", 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.Key = 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 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.Value == nil {
|
|
x.Value = &QueryRecordsRequest_ValueInput{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Value); 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 = (*_QueryRecordsResponse_1_list)(nil)
|
|
|
|
type _QueryRecordsResponse_1_list struct {
|
|
list *[]*Record
|
|
}
|
|
|
|
func (x *_QueryRecordsResponse_1_list) Len() int {
|
|
if x.list == nil {
|
|
return 0
|
|
}
|
|
return len(*x.list)
|
|
}
|
|
|
|
func (x *_QueryRecordsResponse_1_list) Get(i int) protoreflect.Value {
|
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsResponse_1_list) Set(i int, value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*Record)
|
|
(*x.list)[i] = concreteValue
|
|
}
|
|
|
|
func (x *_QueryRecordsResponse_1_list) Append(value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*Record)
|
|
*x.list = append(*x.list, concreteValue)
|
|
}
|
|
|
|
func (x *_QueryRecordsResponse_1_list) AppendMutable() protoreflect.Value {
|
|
v := new(Record)
|
|
*x.list = append(*x.list, v)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsResponse_1_list) Truncate(n int) {
|
|
for i := n; i < len(*x.list); i++ {
|
|
(*x.list)[i] = nil
|
|
}
|
|
*x.list = (*x.list)[:n]
|
|
}
|
|
|
|
func (x *_QueryRecordsResponse_1_list) NewElement() protoreflect.Value {
|
|
v := new(Record)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsResponse_1_list) IsValid() bool {
|
|
return x.list != nil
|
|
}
|
|
|
|
var (
|
|
md_QueryRecordsResponse protoreflect.MessageDescriptor
|
|
fd_QueryRecordsResponse_records protoreflect.FieldDescriptor
|
|
fd_QueryRecordsResponse_pagination protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryRecordsResponse = File_cerc_registry_v1_query_proto.Messages().ByName("QueryRecordsResponse")
|
|
fd_QueryRecordsResponse_records = md_QueryRecordsResponse.Fields().ByName("records")
|
|
fd_QueryRecordsResponse_pagination = md_QueryRecordsResponse.Fields().ByName("pagination")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryRecordsResponse)(nil)
|
|
|
|
type fastReflection_QueryRecordsResponse QueryRecordsResponse
|
|
|
|
func (x *QueryRecordsResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsResponse)(x)
|
|
}
|
|
|
|
func (x *QueryRecordsResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[3]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryRecordsResponse_messageType fastReflection_QueryRecordsResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryRecordsResponse_messageType{}
|
|
|
|
type fastReflection_QueryRecordsResponse_messageType struct{}
|
|
|
|
func (x fastReflection_QueryRecordsResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsResponse)(nil)
|
|
}
|
|
func (x fastReflection_QueryRecordsResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsResponse)
|
|
}
|
|
func (x fastReflection_QueryRecordsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryRecordsResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsResponse
|
|
}
|
|
|
|
// 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_QueryRecordsResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryRecordsResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryRecordsResponse) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryRecordsResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryRecordsResponse)(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_QueryRecordsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if len(x.Records) != 0 {
|
|
value := protoreflect.ValueOfList(&_QueryRecordsResponse_1_list{list: &x.Records})
|
|
if !f(fd_QueryRecordsResponse_records, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Pagination != nil {
|
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
|
if !f(fd_QueryRecordsResponse_pagination, value) {
|
|
return
|
|
}
|
|
}
|
|
}
|
|
|
|
// Has reports whether a field is populated.
|
|
//
|
|
// Some fields have the property of nullability where it is possible to
|
|
// distinguish between the default value of a field and whether the field
|
|
// was explicitly populated with the default value. Singular message fields,
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
|
// fields are populated only if explicitly set.
|
|
//
|
|
// In other cases (aside from the nullable cases above),
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
|
// a repeated field is populated if it is non-empty.
|
|
func (x *fastReflection_QueryRecordsResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsResponse.records":
|
|
return len(x.Records) != 0
|
|
case "cerc.registry.v1.QueryRecordsResponse.pagination":
|
|
return x.Pagination != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsResponse 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_QueryRecordsResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsResponse.records":
|
|
x.Records = nil
|
|
case "cerc.registry.v1.QueryRecordsResponse.pagination":
|
|
x.Pagination = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsResponse 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_QueryRecordsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsResponse.records":
|
|
if len(x.Records) == 0 {
|
|
return protoreflect.ValueOfList(&_QueryRecordsResponse_1_list{})
|
|
}
|
|
listValue := &_QueryRecordsResponse_1_list{list: &x.Records}
|
|
return protoreflect.ValueOfList(listValue)
|
|
case "cerc.registry.v1.QueryRecordsResponse.pagination":
|
|
value := x.Pagination
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsResponse 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_QueryRecordsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsResponse.records":
|
|
lv := value.List()
|
|
clv := lv.(*_QueryRecordsResponse_1_list)
|
|
x.Records = *clv.list
|
|
case "cerc.registry.v1.QueryRecordsResponse.pagination":
|
|
x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsResponse 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_QueryRecordsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsResponse.records":
|
|
if x.Records == nil {
|
|
x.Records = []*Record{}
|
|
}
|
|
value := &_QueryRecordsResponse_1_list{list: &x.Records}
|
|
return protoreflect.ValueOfList(value)
|
|
case "cerc.registry.v1.QueryRecordsResponse.pagination":
|
|
if x.Pagination == nil {
|
|
x.Pagination = new(v1beta1.PageResponse)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsResponse 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_QueryRecordsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsResponse.records":
|
|
list := []*Record{}
|
|
return protoreflect.ValueOfList(&_QueryRecordsResponse_1_list{list: &list})
|
|
case "cerc.registry.v1.QueryRecordsResponse.pagination":
|
|
m := new(v1beta1.PageResponse)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsResponse 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_QueryRecordsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryRecordsResponse", 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_QueryRecordsResponse) 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_QueryRecordsResponse) 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_QueryRecordsResponse) 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_QueryRecordsResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryRecordsResponse)
|
|
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.Records) > 0 {
|
|
for _, e := range x.Records {
|
|
l = options.Size(e)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
}
|
|
if x.Pagination != nil {
|
|
l = options.Size(x.Pagination)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.unknownFields != nil {
|
|
n += len(x.unknownFields)
|
|
}
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: n,
|
|
}
|
|
}
|
|
|
|
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryRecordsResponse)
|
|
if x == nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
options := runtime.MarshalInputToOptions(input)
|
|
_ = options
|
|
size := options.Size(x)
|
|
dAtA := make([]byte, size)
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if x.unknownFields != nil {
|
|
i -= len(x.unknownFields)
|
|
copy(dAtA[i:], x.unknownFields)
|
|
}
|
|
if x.Pagination != nil {
|
|
encoded, err := options.Marshal(x.Pagination)
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(x.Records) > 0 {
|
|
for iNdEx := len(x.Records) - 1; iNdEx >= 0; iNdEx-- {
|
|
encoded, err := options.Marshal(x.Records[iNdEx])
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
if input.Buf != nil {
|
|
input.Buf = append(input.Buf, dAtA...)
|
|
} else {
|
|
input.Buf = dAtA
|
|
}
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryRecordsResponse)
|
|
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: QueryRecordsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRecordsResponse: 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 Records", 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.Records = append(x.Records, &Record{})
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Records[len(x.Records)-1]); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
|
}
|
|
if iNdEx >= l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if postIndex > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if x.Pagination == nil {
|
|
x.Pagination = &v1beta1.PageResponse{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := runtime.Skip(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if !options.DiscardUnknown {
|
|
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
|
|
}
|
|
return &protoiface.Methods{
|
|
NoUnkeyedLiterals: struct{}{},
|
|
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
|
|
Size: size,
|
|
Marshal: marshal,
|
|
Unmarshal: unmarshal,
|
|
Merge: nil,
|
|
CheckInitialized: nil,
|
|
}
|
|
}
|
|
|
|
var (
|
|
md_QueryRecordByIdRequest protoreflect.MessageDescriptor
|
|
fd_QueryRecordByIdRequest_id protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryRecordByIdRequest = File_cerc_registry_v1_query_proto.Messages().ByName("QueryRecordByIdRequest")
|
|
fd_QueryRecordByIdRequest_id = md_QueryRecordByIdRequest.Fields().ByName("id")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryRecordByIdRequest)(nil)
|
|
|
|
type fastReflection_QueryRecordByIdRequest QueryRecordByIdRequest
|
|
|
|
func (x *QueryRecordByIdRequest) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordByIdRequest)(x)
|
|
}
|
|
|
|
func (x *QueryRecordByIdRequest) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[4]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryRecordByIdRequest_messageType fastReflection_QueryRecordByIdRequest_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryRecordByIdRequest_messageType{}
|
|
|
|
type fastReflection_QueryRecordByIdRequest_messageType struct{}
|
|
|
|
func (x fastReflection_QueryRecordByIdRequest_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordByIdRequest)(nil)
|
|
}
|
|
func (x fastReflection_QueryRecordByIdRequest_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordByIdRequest)
|
|
}
|
|
func (x fastReflection_QueryRecordByIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordByIdRequest
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryRecordByIdRequest) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordByIdRequest
|
|
}
|
|
|
|
// 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_QueryRecordByIdRequest) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryRecordByIdRequest_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryRecordByIdRequest) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordByIdRequest)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryRecordByIdRequest) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryRecordByIdRequest)(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_QueryRecordByIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Id != "" {
|
|
value := protoreflect.ValueOfString(x.Id)
|
|
if !f(fd_QueryRecordByIdRequest_id, value) {
|
|
return
|
|
}
|
|
}
|
|
}
|
|
|
|
// Has reports whether a field is populated.
|
|
//
|
|
// Some fields have the property of nullability where it is possible to
|
|
// distinguish between the default value of a field and whether the field
|
|
// was explicitly populated with the default value. Singular message fields,
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
|
// fields are populated only if explicitly set.
|
|
//
|
|
// In other cases (aside from the nullable cases above),
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
|
// a repeated field is populated if it is non-empty.
|
|
func (x *fastReflection_QueryRecordByIdRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordByIdRequest.id":
|
|
return x.Id != ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordByIdRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordByIdRequest 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_QueryRecordByIdRequest) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordByIdRequest.id":
|
|
x.Id = ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordByIdRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordByIdRequest 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_QueryRecordByIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryRecordByIdRequest.id":
|
|
value := x.Id
|
|
return protoreflect.ValueOfString(value)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordByIdRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordByIdRequest 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_QueryRecordByIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordByIdRequest.id":
|
|
x.Id = value.Interface().(string)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordByIdRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordByIdRequest 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_QueryRecordByIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordByIdRequest.id":
|
|
panic(fmt.Errorf("field id of message cerc.registry.v1.QueryRecordByIdRequest is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordByIdRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordByIdRequest 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_QueryRecordByIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordByIdRequest.id":
|
|
return protoreflect.ValueOfString("")
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordByIdRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordByIdRequest 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_QueryRecordByIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryRecordByIdRequest", 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_QueryRecordByIdRequest) 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_QueryRecordByIdRequest) 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_QueryRecordByIdRequest) 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_QueryRecordByIdRequest) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryRecordByIdRequest)
|
|
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.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().(*QueryRecordByIdRequest)
|
|
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.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().(*QueryRecordByIdRequest)
|
|
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: QueryRecordByIdRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRecordByIdRequest: 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
|
|
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_QueryRecordByIdResponse protoreflect.MessageDescriptor
|
|
fd_QueryRecordByIdResponse_record protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryRecordByIdResponse = File_cerc_registry_v1_query_proto.Messages().ByName("QueryRecordByIdResponse")
|
|
fd_QueryRecordByIdResponse_record = md_QueryRecordByIdResponse.Fields().ByName("record")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryRecordByIdResponse)(nil)
|
|
|
|
type fastReflection_QueryRecordByIdResponse QueryRecordByIdResponse
|
|
|
|
func (x *QueryRecordByIdResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordByIdResponse)(x)
|
|
}
|
|
|
|
func (x *QueryRecordByIdResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[5]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryRecordByIdResponse_messageType fastReflection_QueryRecordByIdResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryRecordByIdResponse_messageType{}
|
|
|
|
type fastReflection_QueryRecordByIdResponse_messageType struct{}
|
|
|
|
func (x fastReflection_QueryRecordByIdResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordByIdResponse)(nil)
|
|
}
|
|
func (x fastReflection_QueryRecordByIdResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordByIdResponse)
|
|
}
|
|
func (x fastReflection_QueryRecordByIdResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordByIdResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryRecordByIdResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordByIdResponse
|
|
}
|
|
|
|
// 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_QueryRecordByIdResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryRecordByIdResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryRecordByIdResponse) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordByIdResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryRecordByIdResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryRecordByIdResponse)(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_QueryRecordByIdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Record != nil {
|
|
value := protoreflect.ValueOfMessage(x.Record.ProtoReflect())
|
|
if !f(fd_QueryRecordByIdResponse_record, 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_QueryRecordByIdResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordByIdResponse.record":
|
|
return x.Record != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordByIdResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordByIdResponse 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_QueryRecordByIdResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordByIdResponse.record":
|
|
x.Record = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordByIdResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordByIdResponse 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_QueryRecordByIdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryRecordByIdResponse.record":
|
|
value := x.Record
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordByIdResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordByIdResponse 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_QueryRecordByIdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordByIdResponse.record":
|
|
x.Record = value.Message().Interface().(*Record)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordByIdResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordByIdResponse 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_QueryRecordByIdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordByIdResponse.record":
|
|
if x.Record == nil {
|
|
x.Record = new(Record)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Record.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordByIdResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordByIdResponse 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_QueryRecordByIdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordByIdResponse.record":
|
|
m := new(Record)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordByIdResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordByIdResponse 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_QueryRecordByIdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryRecordByIdResponse", 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_QueryRecordByIdResponse) 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_QueryRecordByIdResponse) 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_QueryRecordByIdResponse) 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_QueryRecordByIdResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryRecordByIdResponse)
|
|
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.Record != nil {
|
|
l = options.Size(x.Record)
|
|
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().(*QueryRecordByIdResponse)
|
|
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.Record != nil {
|
|
encoded, err := options.Marshal(x.Record)
|
|
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().(*QueryRecordByIdResponse)
|
|
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: QueryRecordByIdResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRecordByIdResponse: 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 Record", 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.Record == nil {
|
|
x.Record = &Record{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Record); 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_QueryRecordsByBondIdRequest protoreflect.MessageDescriptor
|
|
fd_QueryRecordsByBondIdRequest_id protoreflect.FieldDescriptor
|
|
fd_QueryRecordsByBondIdRequest_pagination protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryRecordsByBondIdRequest = File_cerc_registry_v1_query_proto.Messages().ByName("QueryRecordsByBondIdRequest")
|
|
fd_QueryRecordsByBondIdRequest_id = md_QueryRecordsByBondIdRequest.Fields().ByName("id")
|
|
fd_QueryRecordsByBondIdRequest_pagination = md_QueryRecordsByBondIdRequest.Fields().ByName("pagination")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryRecordsByBondIdRequest)(nil)
|
|
|
|
type fastReflection_QueryRecordsByBondIdRequest QueryRecordsByBondIdRequest
|
|
|
|
func (x *QueryRecordsByBondIdRequest) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsByBondIdRequest)(x)
|
|
}
|
|
|
|
func (x *QueryRecordsByBondIdRequest) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[6]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryRecordsByBondIdRequest_messageType fastReflection_QueryRecordsByBondIdRequest_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryRecordsByBondIdRequest_messageType{}
|
|
|
|
type fastReflection_QueryRecordsByBondIdRequest_messageType struct{}
|
|
|
|
func (x fastReflection_QueryRecordsByBondIdRequest_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsByBondIdRequest)(nil)
|
|
}
|
|
func (x fastReflection_QueryRecordsByBondIdRequest_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsByBondIdRequest)
|
|
}
|
|
func (x fastReflection_QueryRecordsByBondIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsByBondIdRequest
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryRecordsByBondIdRequest) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsByBondIdRequest
|
|
}
|
|
|
|
// 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_QueryRecordsByBondIdRequest) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryRecordsByBondIdRequest_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryRecordsByBondIdRequest) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsByBondIdRequest)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryRecordsByBondIdRequest) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryRecordsByBondIdRequest)(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_QueryRecordsByBondIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Id != "" {
|
|
value := protoreflect.ValueOfString(x.Id)
|
|
if !f(fd_QueryRecordsByBondIdRequest_id, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Pagination != nil {
|
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
|
if !f(fd_QueryRecordsByBondIdRequest_pagination, value) {
|
|
return
|
|
}
|
|
}
|
|
}
|
|
|
|
// Has reports whether a field is populated.
|
|
//
|
|
// Some fields have the property of nullability where it is possible to
|
|
// distinguish between the default value of a field and whether the field
|
|
// was explicitly populated with the default value. Singular message fields,
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
|
// fields are populated only if explicitly set.
|
|
//
|
|
// In other cases (aside from the nullable cases above),
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
|
// a repeated field is populated if it is non-empty.
|
|
func (x *fastReflection_QueryRecordsByBondIdRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsByBondIdRequest.id":
|
|
return x.Id != ""
|
|
case "cerc.registry.v1.QueryRecordsByBondIdRequest.pagination":
|
|
return x.Pagination != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsByBondIdRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsByBondIdRequest 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_QueryRecordsByBondIdRequest) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsByBondIdRequest.id":
|
|
x.Id = ""
|
|
case "cerc.registry.v1.QueryRecordsByBondIdRequest.pagination":
|
|
x.Pagination = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsByBondIdRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsByBondIdRequest 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_QueryRecordsByBondIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsByBondIdRequest.id":
|
|
value := x.Id
|
|
return protoreflect.ValueOfString(value)
|
|
case "cerc.registry.v1.QueryRecordsByBondIdRequest.pagination":
|
|
value := x.Pagination
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsByBondIdRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsByBondIdRequest 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_QueryRecordsByBondIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsByBondIdRequest.id":
|
|
x.Id = value.Interface().(string)
|
|
case "cerc.registry.v1.QueryRecordsByBondIdRequest.pagination":
|
|
x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsByBondIdRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsByBondIdRequest 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_QueryRecordsByBondIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsByBondIdRequest.pagination":
|
|
if x.Pagination == nil {
|
|
x.Pagination = new(v1beta1.PageRequest)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
|
case "cerc.registry.v1.QueryRecordsByBondIdRequest.id":
|
|
panic(fmt.Errorf("field id of message cerc.registry.v1.QueryRecordsByBondIdRequest is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsByBondIdRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsByBondIdRequest 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_QueryRecordsByBondIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsByBondIdRequest.id":
|
|
return protoreflect.ValueOfString("")
|
|
case "cerc.registry.v1.QueryRecordsByBondIdRequest.pagination":
|
|
m := new(v1beta1.PageRequest)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsByBondIdRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsByBondIdRequest 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_QueryRecordsByBondIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryRecordsByBondIdRequest", 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_QueryRecordsByBondIdRequest) 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_QueryRecordsByBondIdRequest) 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_QueryRecordsByBondIdRequest) 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_QueryRecordsByBondIdRequest) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryRecordsByBondIdRequest)
|
|
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.Pagination != nil {
|
|
l = options.Size(x.Pagination)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.unknownFields != nil {
|
|
n += len(x.unknownFields)
|
|
}
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: n,
|
|
}
|
|
}
|
|
|
|
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryRecordsByBondIdRequest)
|
|
if x == nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
options := runtime.MarshalInputToOptions(input)
|
|
_ = options
|
|
size := options.Size(x)
|
|
dAtA := make([]byte, size)
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if x.unknownFields != nil {
|
|
i -= len(x.unknownFields)
|
|
copy(dAtA[i:], x.unknownFields)
|
|
}
|
|
if x.Pagination != nil {
|
|
encoded, err := options.Marshal(x.Pagination)
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(x.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().(*QueryRecordsByBondIdRequest)
|
|
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: QueryRecordsByBondIdRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRecordsByBondIdRequest: 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 Pagination", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
|
}
|
|
if iNdEx >= l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if postIndex > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if x.Pagination == nil {
|
|
x.Pagination = &v1beta1.PageRequest{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := runtime.Skip(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if !options.DiscardUnknown {
|
|
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
|
|
}
|
|
return &protoiface.Methods{
|
|
NoUnkeyedLiterals: struct{}{},
|
|
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
|
|
Size: size,
|
|
Marshal: marshal,
|
|
Unmarshal: unmarshal,
|
|
Merge: nil,
|
|
CheckInitialized: nil,
|
|
}
|
|
}
|
|
|
|
var _ protoreflect.List = (*_QueryRecordsByBondIdResponse_1_list)(nil)
|
|
|
|
type _QueryRecordsByBondIdResponse_1_list struct {
|
|
list *[]*Record
|
|
}
|
|
|
|
func (x *_QueryRecordsByBondIdResponse_1_list) Len() int {
|
|
if x.list == nil {
|
|
return 0
|
|
}
|
|
return len(*x.list)
|
|
}
|
|
|
|
func (x *_QueryRecordsByBondIdResponse_1_list) Get(i int) protoreflect.Value {
|
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsByBondIdResponse_1_list) Set(i int, value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*Record)
|
|
(*x.list)[i] = concreteValue
|
|
}
|
|
|
|
func (x *_QueryRecordsByBondIdResponse_1_list) Append(value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*Record)
|
|
*x.list = append(*x.list, concreteValue)
|
|
}
|
|
|
|
func (x *_QueryRecordsByBondIdResponse_1_list) AppendMutable() protoreflect.Value {
|
|
v := new(Record)
|
|
*x.list = append(*x.list, v)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsByBondIdResponse_1_list) Truncate(n int) {
|
|
for i := n; i < len(*x.list); i++ {
|
|
(*x.list)[i] = nil
|
|
}
|
|
*x.list = (*x.list)[:n]
|
|
}
|
|
|
|
func (x *_QueryRecordsByBondIdResponse_1_list) NewElement() protoreflect.Value {
|
|
v := new(Record)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryRecordsByBondIdResponse_1_list) IsValid() bool {
|
|
return x.list != nil
|
|
}
|
|
|
|
var (
|
|
md_QueryRecordsByBondIdResponse protoreflect.MessageDescriptor
|
|
fd_QueryRecordsByBondIdResponse_records protoreflect.FieldDescriptor
|
|
fd_QueryRecordsByBondIdResponse_pagination protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryRecordsByBondIdResponse = File_cerc_registry_v1_query_proto.Messages().ByName("QueryRecordsByBondIdResponse")
|
|
fd_QueryRecordsByBondIdResponse_records = md_QueryRecordsByBondIdResponse.Fields().ByName("records")
|
|
fd_QueryRecordsByBondIdResponse_pagination = md_QueryRecordsByBondIdResponse.Fields().ByName("pagination")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryRecordsByBondIdResponse)(nil)
|
|
|
|
type fastReflection_QueryRecordsByBondIdResponse QueryRecordsByBondIdResponse
|
|
|
|
func (x *QueryRecordsByBondIdResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsByBondIdResponse)(x)
|
|
}
|
|
|
|
func (x *QueryRecordsByBondIdResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[7]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryRecordsByBondIdResponse_messageType fastReflection_QueryRecordsByBondIdResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryRecordsByBondIdResponse_messageType{}
|
|
|
|
type fastReflection_QueryRecordsByBondIdResponse_messageType struct{}
|
|
|
|
func (x fastReflection_QueryRecordsByBondIdResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryRecordsByBondIdResponse)(nil)
|
|
}
|
|
func (x fastReflection_QueryRecordsByBondIdResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsByBondIdResponse)
|
|
}
|
|
func (x fastReflection_QueryRecordsByBondIdResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsByBondIdResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryRecordsByBondIdResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryRecordsByBondIdResponse
|
|
}
|
|
|
|
// 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_QueryRecordsByBondIdResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryRecordsByBondIdResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryRecordsByBondIdResponse) New() protoreflect.Message {
|
|
return new(fastReflection_QueryRecordsByBondIdResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryRecordsByBondIdResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryRecordsByBondIdResponse)(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_QueryRecordsByBondIdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if len(x.Records) != 0 {
|
|
value := protoreflect.ValueOfList(&_QueryRecordsByBondIdResponse_1_list{list: &x.Records})
|
|
if !f(fd_QueryRecordsByBondIdResponse_records, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Pagination != nil {
|
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
|
if !f(fd_QueryRecordsByBondIdResponse_pagination, value) {
|
|
return
|
|
}
|
|
}
|
|
}
|
|
|
|
// Has reports whether a field is populated.
|
|
//
|
|
// Some fields have the property of nullability where it is possible to
|
|
// distinguish between the default value of a field and whether the field
|
|
// was explicitly populated with the default value. Singular message fields,
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
|
// fields are populated only if explicitly set.
|
|
//
|
|
// In other cases (aside from the nullable cases above),
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
|
// a repeated field is populated if it is non-empty.
|
|
func (x *fastReflection_QueryRecordsByBondIdResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsByBondIdResponse.records":
|
|
return len(x.Records) != 0
|
|
case "cerc.registry.v1.QueryRecordsByBondIdResponse.pagination":
|
|
return x.Pagination != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsByBondIdResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsByBondIdResponse 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_QueryRecordsByBondIdResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsByBondIdResponse.records":
|
|
x.Records = nil
|
|
case "cerc.registry.v1.QueryRecordsByBondIdResponse.pagination":
|
|
x.Pagination = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsByBondIdResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsByBondIdResponse 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_QueryRecordsByBondIdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsByBondIdResponse.records":
|
|
if len(x.Records) == 0 {
|
|
return protoreflect.ValueOfList(&_QueryRecordsByBondIdResponse_1_list{})
|
|
}
|
|
listValue := &_QueryRecordsByBondIdResponse_1_list{list: &x.Records}
|
|
return protoreflect.ValueOfList(listValue)
|
|
case "cerc.registry.v1.QueryRecordsByBondIdResponse.pagination":
|
|
value := x.Pagination
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsByBondIdResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsByBondIdResponse 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_QueryRecordsByBondIdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsByBondIdResponse.records":
|
|
lv := value.List()
|
|
clv := lv.(*_QueryRecordsByBondIdResponse_1_list)
|
|
x.Records = *clv.list
|
|
case "cerc.registry.v1.QueryRecordsByBondIdResponse.pagination":
|
|
x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsByBondIdResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsByBondIdResponse 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_QueryRecordsByBondIdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsByBondIdResponse.records":
|
|
if x.Records == nil {
|
|
x.Records = []*Record{}
|
|
}
|
|
value := &_QueryRecordsByBondIdResponse_1_list{list: &x.Records}
|
|
return protoreflect.ValueOfList(value)
|
|
case "cerc.registry.v1.QueryRecordsByBondIdResponse.pagination":
|
|
if x.Pagination == nil {
|
|
x.Pagination = new(v1beta1.PageResponse)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsByBondIdResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsByBondIdResponse 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_QueryRecordsByBondIdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryRecordsByBondIdResponse.records":
|
|
list := []*Record{}
|
|
return protoreflect.ValueOfList(&_QueryRecordsByBondIdResponse_1_list{list: &list})
|
|
case "cerc.registry.v1.QueryRecordsByBondIdResponse.pagination":
|
|
m := new(v1beta1.PageResponse)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryRecordsByBondIdResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryRecordsByBondIdResponse 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_QueryRecordsByBondIdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryRecordsByBondIdResponse", 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_QueryRecordsByBondIdResponse) 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_QueryRecordsByBondIdResponse) 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_QueryRecordsByBondIdResponse) 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_QueryRecordsByBondIdResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryRecordsByBondIdResponse)
|
|
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.Records) > 0 {
|
|
for _, e := range x.Records {
|
|
l = options.Size(e)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
}
|
|
if x.Pagination != nil {
|
|
l = options.Size(x.Pagination)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.unknownFields != nil {
|
|
n += len(x.unknownFields)
|
|
}
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: n,
|
|
}
|
|
}
|
|
|
|
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryRecordsByBondIdResponse)
|
|
if x == nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
options := runtime.MarshalInputToOptions(input)
|
|
_ = options
|
|
size := options.Size(x)
|
|
dAtA := make([]byte, size)
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if x.unknownFields != nil {
|
|
i -= len(x.unknownFields)
|
|
copy(dAtA[i:], x.unknownFields)
|
|
}
|
|
if x.Pagination != nil {
|
|
encoded, err := options.Marshal(x.Pagination)
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(x.Records) > 0 {
|
|
for iNdEx := len(x.Records) - 1; iNdEx >= 0; iNdEx-- {
|
|
encoded, err := options.Marshal(x.Records[iNdEx])
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
if input.Buf != nil {
|
|
input.Buf = append(input.Buf, dAtA...)
|
|
} else {
|
|
input.Buf = dAtA
|
|
}
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryRecordsByBondIdResponse)
|
|
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: QueryRecordsByBondIdResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRecordsByBondIdResponse: 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 Records", 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.Records = append(x.Records, &Record{})
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Records[len(x.Records)-1]); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
|
}
|
|
if iNdEx >= l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if postIndex > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if x.Pagination == nil {
|
|
x.Pagination = &v1beta1.PageResponse{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := runtime.Skip(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if !options.DiscardUnknown {
|
|
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
|
|
}
|
|
return &protoiface.Methods{
|
|
NoUnkeyedLiterals: struct{}{},
|
|
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
|
|
Size: size,
|
|
Marshal: marshal,
|
|
Unmarshal: unmarshal,
|
|
Merge: nil,
|
|
CheckInitialized: nil,
|
|
}
|
|
}
|
|
|
|
var (
|
|
md_QueryNameRecordsRequest protoreflect.MessageDescriptor
|
|
fd_QueryNameRecordsRequest_pagination protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryNameRecordsRequest = File_cerc_registry_v1_query_proto.Messages().ByName("QueryNameRecordsRequest")
|
|
fd_QueryNameRecordsRequest_pagination = md_QueryNameRecordsRequest.Fields().ByName("pagination")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryNameRecordsRequest)(nil)
|
|
|
|
type fastReflection_QueryNameRecordsRequest QueryNameRecordsRequest
|
|
|
|
func (x *QueryNameRecordsRequest) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryNameRecordsRequest)(x)
|
|
}
|
|
|
|
func (x *QueryNameRecordsRequest) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[8]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryNameRecordsRequest_messageType fastReflection_QueryNameRecordsRequest_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryNameRecordsRequest_messageType{}
|
|
|
|
type fastReflection_QueryNameRecordsRequest_messageType struct{}
|
|
|
|
func (x fastReflection_QueryNameRecordsRequest_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryNameRecordsRequest)(nil)
|
|
}
|
|
func (x fastReflection_QueryNameRecordsRequest_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryNameRecordsRequest)
|
|
}
|
|
func (x fastReflection_QueryNameRecordsRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryNameRecordsRequest
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryNameRecordsRequest) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryNameRecordsRequest
|
|
}
|
|
|
|
// 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_QueryNameRecordsRequest) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryNameRecordsRequest_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryNameRecordsRequest) New() protoreflect.Message {
|
|
return new(fastReflection_QueryNameRecordsRequest)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryNameRecordsRequest) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryNameRecordsRequest)(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_QueryNameRecordsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Pagination != nil {
|
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
|
if !f(fd_QueryNameRecordsRequest_pagination, value) {
|
|
return
|
|
}
|
|
}
|
|
}
|
|
|
|
// Has reports whether a field is populated.
|
|
//
|
|
// Some fields have the property of nullability where it is possible to
|
|
// distinguish between the default value of a field and whether the field
|
|
// was explicitly populated with the default value. Singular message fields,
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
|
// fields are populated only if explicitly set.
|
|
//
|
|
// In other cases (aside from the nullable cases above),
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
|
// a repeated field is populated if it is non-empty.
|
|
func (x *fastReflection_QueryNameRecordsRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryNameRecordsRequest.pagination":
|
|
return x.Pagination != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryNameRecordsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryNameRecordsRequest 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_QueryNameRecordsRequest) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryNameRecordsRequest.pagination":
|
|
x.Pagination = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryNameRecordsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryNameRecordsRequest 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_QueryNameRecordsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryNameRecordsRequest.pagination":
|
|
value := x.Pagination
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryNameRecordsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryNameRecordsRequest 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_QueryNameRecordsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryNameRecordsRequest.pagination":
|
|
x.Pagination = value.Message().Interface().(*v1beta1.PageRequest)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryNameRecordsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryNameRecordsRequest 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_QueryNameRecordsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryNameRecordsRequest.pagination":
|
|
if x.Pagination == nil {
|
|
x.Pagination = new(v1beta1.PageRequest)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryNameRecordsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryNameRecordsRequest 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_QueryNameRecordsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryNameRecordsRequest.pagination":
|
|
m := new(v1beta1.PageRequest)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryNameRecordsRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryNameRecordsRequest 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_QueryNameRecordsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryNameRecordsRequest", 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_QueryNameRecordsRequest) 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_QueryNameRecordsRequest) 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_QueryNameRecordsRequest) 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_QueryNameRecordsRequest) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryNameRecordsRequest)
|
|
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.Pagination != nil {
|
|
l = options.Size(x.Pagination)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.unknownFields != nil {
|
|
n += len(x.unknownFields)
|
|
}
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: n,
|
|
}
|
|
}
|
|
|
|
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryNameRecordsRequest)
|
|
if x == nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
options := runtime.MarshalInputToOptions(input)
|
|
_ = options
|
|
size := options.Size(x)
|
|
dAtA := make([]byte, size)
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if x.unknownFields != nil {
|
|
i -= len(x.unknownFields)
|
|
copy(dAtA[i:], x.unknownFields)
|
|
}
|
|
if x.Pagination != nil {
|
|
encoded, err := options.Marshal(x.Pagination)
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 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().(*QueryNameRecordsRequest)
|
|
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: QueryNameRecordsRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNameRecordsRequest: 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 Pagination", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
|
}
|
|
if iNdEx >= l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if postIndex > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if x.Pagination == nil {
|
|
x.Pagination = &v1beta1.PageRequest{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := runtime.Skip(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if !options.DiscardUnknown {
|
|
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
|
|
}
|
|
return &protoiface.Methods{
|
|
NoUnkeyedLiterals: struct{}{},
|
|
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
|
|
Size: size,
|
|
Marshal: marshal,
|
|
Unmarshal: unmarshal,
|
|
Merge: nil,
|
|
CheckInitialized: nil,
|
|
}
|
|
}
|
|
|
|
var _ protoreflect.List = (*_QueryNameRecordsResponse_1_list)(nil)
|
|
|
|
type _QueryNameRecordsResponse_1_list struct {
|
|
list *[]*NameEntry
|
|
}
|
|
|
|
func (x *_QueryNameRecordsResponse_1_list) Len() int {
|
|
if x.list == nil {
|
|
return 0
|
|
}
|
|
return len(*x.list)
|
|
}
|
|
|
|
func (x *_QueryNameRecordsResponse_1_list) Get(i int) protoreflect.Value {
|
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryNameRecordsResponse_1_list) Set(i int, value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*NameEntry)
|
|
(*x.list)[i] = concreteValue
|
|
}
|
|
|
|
func (x *_QueryNameRecordsResponse_1_list) Append(value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*NameEntry)
|
|
*x.list = append(*x.list, concreteValue)
|
|
}
|
|
|
|
func (x *_QueryNameRecordsResponse_1_list) AppendMutable() protoreflect.Value {
|
|
v := new(NameEntry)
|
|
*x.list = append(*x.list, v)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryNameRecordsResponse_1_list) Truncate(n int) {
|
|
for i := n; i < len(*x.list); i++ {
|
|
(*x.list)[i] = nil
|
|
}
|
|
*x.list = (*x.list)[:n]
|
|
}
|
|
|
|
func (x *_QueryNameRecordsResponse_1_list) NewElement() protoreflect.Value {
|
|
v := new(NameEntry)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryNameRecordsResponse_1_list) IsValid() bool {
|
|
return x.list != nil
|
|
}
|
|
|
|
var (
|
|
md_QueryNameRecordsResponse protoreflect.MessageDescriptor
|
|
fd_QueryNameRecordsResponse_names protoreflect.FieldDescriptor
|
|
fd_QueryNameRecordsResponse_pagination protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryNameRecordsResponse = File_cerc_registry_v1_query_proto.Messages().ByName("QueryNameRecordsResponse")
|
|
fd_QueryNameRecordsResponse_names = md_QueryNameRecordsResponse.Fields().ByName("names")
|
|
fd_QueryNameRecordsResponse_pagination = md_QueryNameRecordsResponse.Fields().ByName("pagination")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryNameRecordsResponse)(nil)
|
|
|
|
type fastReflection_QueryNameRecordsResponse QueryNameRecordsResponse
|
|
|
|
func (x *QueryNameRecordsResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryNameRecordsResponse)(x)
|
|
}
|
|
|
|
func (x *QueryNameRecordsResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[9]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryNameRecordsResponse_messageType fastReflection_QueryNameRecordsResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryNameRecordsResponse_messageType{}
|
|
|
|
type fastReflection_QueryNameRecordsResponse_messageType struct{}
|
|
|
|
func (x fastReflection_QueryNameRecordsResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryNameRecordsResponse)(nil)
|
|
}
|
|
func (x fastReflection_QueryNameRecordsResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryNameRecordsResponse)
|
|
}
|
|
func (x fastReflection_QueryNameRecordsResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryNameRecordsResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryNameRecordsResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryNameRecordsResponse
|
|
}
|
|
|
|
// 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_QueryNameRecordsResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryNameRecordsResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryNameRecordsResponse) New() protoreflect.Message {
|
|
return new(fastReflection_QueryNameRecordsResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryNameRecordsResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryNameRecordsResponse)(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_QueryNameRecordsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if len(x.Names) != 0 {
|
|
value := protoreflect.ValueOfList(&_QueryNameRecordsResponse_1_list{list: &x.Names})
|
|
if !f(fd_QueryNameRecordsResponse_names, value) {
|
|
return
|
|
}
|
|
}
|
|
if x.Pagination != nil {
|
|
value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
|
if !f(fd_QueryNameRecordsResponse_pagination, value) {
|
|
return
|
|
}
|
|
}
|
|
}
|
|
|
|
// Has reports whether a field is populated.
|
|
//
|
|
// Some fields have the property of nullability where it is possible to
|
|
// distinguish between the default value of a field and whether the field
|
|
// was explicitly populated with the default value. Singular message fields,
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
|
// fields are populated only if explicitly set.
|
|
//
|
|
// In other cases (aside from the nullable cases above),
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
|
// a repeated field is populated if it is non-empty.
|
|
func (x *fastReflection_QueryNameRecordsResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryNameRecordsResponse.names":
|
|
return len(x.Names) != 0
|
|
case "cerc.registry.v1.QueryNameRecordsResponse.pagination":
|
|
return x.Pagination != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryNameRecordsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryNameRecordsResponse 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_QueryNameRecordsResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryNameRecordsResponse.names":
|
|
x.Names = nil
|
|
case "cerc.registry.v1.QueryNameRecordsResponse.pagination":
|
|
x.Pagination = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryNameRecordsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryNameRecordsResponse 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_QueryNameRecordsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryNameRecordsResponse.names":
|
|
if len(x.Names) == 0 {
|
|
return protoreflect.ValueOfList(&_QueryNameRecordsResponse_1_list{})
|
|
}
|
|
listValue := &_QueryNameRecordsResponse_1_list{list: &x.Names}
|
|
return protoreflect.ValueOfList(listValue)
|
|
case "cerc.registry.v1.QueryNameRecordsResponse.pagination":
|
|
value := x.Pagination
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryNameRecordsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryNameRecordsResponse 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_QueryNameRecordsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryNameRecordsResponse.names":
|
|
lv := value.List()
|
|
clv := lv.(*_QueryNameRecordsResponse_1_list)
|
|
x.Names = *clv.list
|
|
case "cerc.registry.v1.QueryNameRecordsResponse.pagination":
|
|
x.Pagination = value.Message().Interface().(*v1beta1.PageResponse)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryNameRecordsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryNameRecordsResponse 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_QueryNameRecordsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryNameRecordsResponse.names":
|
|
if x.Names == nil {
|
|
x.Names = []*NameEntry{}
|
|
}
|
|
value := &_QueryNameRecordsResponse_1_list{list: &x.Names}
|
|
return protoreflect.ValueOfList(value)
|
|
case "cerc.registry.v1.QueryNameRecordsResponse.pagination":
|
|
if x.Pagination == nil {
|
|
x.Pagination = new(v1beta1.PageResponse)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryNameRecordsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryNameRecordsResponse 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_QueryNameRecordsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryNameRecordsResponse.names":
|
|
list := []*NameEntry{}
|
|
return protoreflect.ValueOfList(&_QueryNameRecordsResponse_1_list{list: &list})
|
|
case "cerc.registry.v1.QueryNameRecordsResponse.pagination":
|
|
m := new(v1beta1.PageResponse)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryNameRecordsResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryNameRecordsResponse 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_QueryNameRecordsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryNameRecordsResponse", 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_QueryNameRecordsResponse) 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_QueryNameRecordsResponse) 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_QueryNameRecordsResponse) 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_QueryNameRecordsResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryNameRecordsResponse)
|
|
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.Names) > 0 {
|
|
for _, e := range x.Names {
|
|
l = options.Size(e)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
}
|
|
if x.Pagination != nil {
|
|
l = options.Size(x.Pagination)
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if x.unknownFields != nil {
|
|
n += len(x.unknownFields)
|
|
}
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: n,
|
|
}
|
|
}
|
|
|
|
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryNameRecordsResponse)
|
|
if x == nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
options := runtime.MarshalInputToOptions(input)
|
|
_ = options
|
|
size := options.Size(x)
|
|
dAtA := make([]byte, size)
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if x.unknownFields != nil {
|
|
i -= len(x.unknownFields)
|
|
copy(dAtA[i:], x.unknownFields)
|
|
}
|
|
if x.Pagination != nil {
|
|
encoded, err := options.Marshal(x.Pagination)
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(x.Names) > 0 {
|
|
for iNdEx := len(x.Names) - 1; iNdEx >= 0; iNdEx-- {
|
|
encoded, err := options.Marshal(x.Names[iNdEx])
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
if input.Buf != nil {
|
|
input.Buf = append(input.Buf, dAtA...)
|
|
} else {
|
|
input.Buf = dAtA
|
|
}
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryNameRecordsResponse)
|
|
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: QueryNameRecordsResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNameRecordsResponse: 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 Names", 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.Names = append(x.Names, &NameEntry{})
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Names[len(x.Names)-1]); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
|
|
}
|
|
if iNdEx >= l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if postIndex > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if x.Pagination == nil {
|
|
x.Pagination = &v1beta1.PageResponse{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := runtime.Skip(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if !options.DiscardUnknown {
|
|
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
|
|
}
|
|
return &protoiface.Methods{
|
|
NoUnkeyedLiterals: struct{}{},
|
|
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
|
|
Size: size,
|
|
Marshal: marshal,
|
|
Unmarshal: unmarshal,
|
|
Merge: nil,
|
|
CheckInitialized: nil,
|
|
}
|
|
}
|
|
|
|
var (
|
|
md_QueryWhoisRequest protoreflect.MessageDescriptor
|
|
fd_QueryWhoisRequest_name protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryWhoisRequest = File_cerc_registry_v1_query_proto.Messages().ByName("QueryWhoisRequest")
|
|
fd_QueryWhoisRequest_name = md_QueryWhoisRequest.Fields().ByName("name")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryWhoisRequest)(nil)
|
|
|
|
type fastReflection_QueryWhoisRequest QueryWhoisRequest
|
|
|
|
func (x *QueryWhoisRequest) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryWhoisRequest)(x)
|
|
}
|
|
|
|
func (x *QueryWhoisRequest) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[10]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryWhoisRequest_messageType fastReflection_QueryWhoisRequest_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryWhoisRequest_messageType{}
|
|
|
|
type fastReflection_QueryWhoisRequest_messageType struct{}
|
|
|
|
func (x fastReflection_QueryWhoisRequest_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryWhoisRequest)(nil)
|
|
}
|
|
func (x fastReflection_QueryWhoisRequest_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryWhoisRequest)
|
|
}
|
|
func (x fastReflection_QueryWhoisRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryWhoisRequest
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryWhoisRequest) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryWhoisRequest
|
|
}
|
|
|
|
// 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_QueryWhoisRequest) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryWhoisRequest_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryWhoisRequest) New() protoreflect.Message {
|
|
return new(fastReflection_QueryWhoisRequest)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryWhoisRequest) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryWhoisRequest)(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_QueryWhoisRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Name != "" {
|
|
value := protoreflect.ValueOfString(x.Name)
|
|
if !f(fd_QueryWhoisRequest_name, 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_QueryWhoisRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryWhoisRequest.name":
|
|
return x.Name != ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryWhoisRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryWhoisRequest 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_QueryWhoisRequest) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryWhoisRequest.name":
|
|
x.Name = ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryWhoisRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryWhoisRequest 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_QueryWhoisRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryWhoisRequest.name":
|
|
value := x.Name
|
|
return protoreflect.ValueOfString(value)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryWhoisRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryWhoisRequest 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_QueryWhoisRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryWhoisRequest.name":
|
|
x.Name = value.Interface().(string)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryWhoisRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryWhoisRequest 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_QueryWhoisRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryWhoisRequest.name":
|
|
panic(fmt.Errorf("field name of message cerc.registry.v1.QueryWhoisRequest is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryWhoisRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryWhoisRequest 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_QueryWhoisRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryWhoisRequest.name":
|
|
return protoreflect.ValueOfString("")
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryWhoisRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryWhoisRequest 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_QueryWhoisRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryWhoisRequest", 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_QueryWhoisRequest) 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_QueryWhoisRequest) 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_QueryWhoisRequest) 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_QueryWhoisRequest) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryWhoisRequest)
|
|
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.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().(*QueryWhoisRequest)
|
|
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.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().(*QueryWhoisRequest)
|
|
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: QueryWhoisRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWhoisRequest: 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
|
|
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_QueryWhoisResponse protoreflect.MessageDescriptor
|
|
fd_QueryWhoisResponse_name_authority protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryWhoisResponse = File_cerc_registry_v1_query_proto.Messages().ByName("QueryWhoisResponse")
|
|
fd_QueryWhoisResponse_name_authority = md_QueryWhoisResponse.Fields().ByName("name_authority")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryWhoisResponse)(nil)
|
|
|
|
type fastReflection_QueryWhoisResponse QueryWhoisResponse
|
|
|
|
func (x *QueryWhoisResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryWhoisResponse)(x)
|
|
}
|
|
|
|
func (x *QueryWhoisResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[11]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryWhoisResponse_messageType fastReflection_QueryWhoisResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryWhoisResponse_messageType{}
|
|
|
|
type fastReflection_QueryWhoisResponse_messageType struct{}
|
|
|
|
func (x fastReflection_QueryWhoisResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryWhoisResponse)(nil)
|
|
}
|
|
func (x fastReflection_QueryWhoisResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryWhoisResponse)
|
|
}
|
|
func (x fastReflection_QueryWhoisResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryWhoisResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryWhoisResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryWhoisResponse
|
|
}
|
|
|
|
// 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_QueryWhoisResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryWhoisResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryWhoisResponse) New() protoreflect.Message {
|
|
return new(fastReflection_QueryWhoisResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryWhoisResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryWhoisResponse)(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_QueryWhoisResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.NameAuthority != nil {
|
|
value := protoreflect.ValueOfMessage(x.NameAuthority.ProtoReflect())
|
|
if !f(fd_QueryWhoisResponse_name_authority, 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_QueryWhoisResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryWhoisResponse.name_authority":
|
|
return x.NameAuthority != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryWhoisResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryWhoisResponse 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_QueryWhoisResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryWhoisResponse.name_authority":
|
|
x.NameAuthority = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryWhoisResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryWhoisResponse 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_QueryWhoisResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryWhoisResponse.name_authority":
|
|
value := x.NameAuthority
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryWhoisResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryWhoisResponse 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_QueryWhoisResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryWhoisResponse.name_authority":
|
|
x.NameAuthority = value.Message().Interface().(*NameAuthority)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryWhoisResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryWhoisResponse 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_QueryWhoisResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryWhoisResponse.name_authority":
|
|
if x.NameAuthority == nil {
|
|
x.NameAuthority = new(NameAuthority)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.NameAuthority.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryWhoisResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryWhoisResponse 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_QueryWhoisResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryWhoisResponse.name_authority":
|
|
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.QueryWhoisResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryWhoisResponse 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_QueryWhoisResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryWhoisResponse", 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_QueryWhoisResponse) 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_QueryWhoisResponse) 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_QueryWhoisResponse) 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_QueryWhoisResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryWhoisResponse)
|
|
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.NameAuthority != nil {
|
|
l = options.Size(x.NameAuthority)
|
|
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().(*QueryWhoisResponse)
|
|
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.NameAuthority != nil {
|
|
encoded, err := options.Marshal(x.NameAuthority)
|
|
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().(*QueryWhoisResponse)
|
|
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: QueryWhoisResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWhoisResponse: 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 NameAuthority", 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.NameAuthority == nil {
|
|
x.NameAuthority = &NameAuthority{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NameAuthority); 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_QueryLookupCrnRequest protoreflect.MessageDescriptor
|
|
fd_QueryLookupCrnRequest_crn protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryLookupCrnRequest = File_cerc_registry_v1_query_proto.Messages().ByName("QueryLookupCrnRequest")
|
|
fd_QueryLookupCrnRequest_crn = md_QueryLookupCrnRequest.Fields().ByName("crn")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryLookupCrnRequest)(nil)
|
|
|
|
type fastReflection_QueryLookupCrnRequest QueryLookupCrnRequest
|
|
|
|
func (x *QueryLookupCrnRequest) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryLookupCrnRequest)(x)
|
|
}
|
|
|
|
func (x *QueryLookupCrnRequest) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[12]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryLookupCrnRequest_messageType fastReflection_QueryLookupCrnRequest_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryLookupCrnRequest_messageType{}
|
|
|
|
type fastReflection_QueryLookupCrnRequest_messageType struct{}
|
|
|
|
func (x fastReflection_QueryLookupCrnRequest_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryLookupCrnRequest)(nil)
|
|
}
|
|
func (x fastReflection_QueryLookupCrnRequest_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryLookupCrnRequest)
|
|
}
|
|
func (x fastReflection_QueryLookupCrnRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryLookupCrnRequest
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryLookupCrnRequest) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryLookupCrnRequest
|
|
}
|
|
|
|
// 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_QueryLookupCrnRequest) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryLookupCrnRequest_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryLookupCrnRequest) New() protoreflect.Message {
|
|
return new(fastReflection_QueryLookupCrnRequest)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryLookupCrnRequest) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryLookupCrnRequest)(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_QueryLookupCrnRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Crn != "" {
|
|
value := protoreflect.ValueOfString(x.Crn)
|
|
if !f(fd_QueryLookupCrnRequest_crn, 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_QueryLookupCrnRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryLookupCrnRequest.crn":
|
|
return x.Crn != ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnRequest 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_QueryLookupCrnRequest) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryLookupCrnRequest.crn":
|
|
x.Crn = ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnRequest 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_QueryLookupCrnRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryLookupCrnRequest.crn":
|
|
value := x.Crn
|
|
return protoreflect.ValueOfString(value)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnRequest 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_QueryLookupCrnRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryLookupCrnRequest.crn":
|
|
x.Crn = value.Interface().(string)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnRequest 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_QueryLookupCrnRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryLookupCrnRequest.crn":
|
|
panic(fmt.Errorf("field crn of message cerc.registry.v1.QueryLookupCrnRequest is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnRequest 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_QueryLookupCrnRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryLookupCrnRequest.crn":
|
|
return protoreflect.ValueOfString("")
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnRequest 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_QueryLookupCrnRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryLookupCrnRequest", 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_QueryLookupCrnRequest) 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_QueryLookupCrnRequest) 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_QueryLookupCrnRequest) 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_QueryLookupCrnRequest) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryLookupCrnRequest)
|
|
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.Crn)
|
|
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().(*QueryLookupCrnRequest)
|
|
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.Crn) > 0 {
|
|
i -= len(x.Crn)
|
|
copy(dAtA[i:], x.Crn)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Crn)))
|
|
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().(*QueryLookupCrnRequest)
|
|
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: QueryLookupCrnRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLookupCrnRequest: 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 Crn", 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.Crn = 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_QueryLookupCrnResponse protoreflect.MessageDescriptor
|
|
fd_QueryLookupCrnResponse_name protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryLookupCrnResponse = File_cerc_registry_v1_query_proto.Messages().ByName("QueryLookupCrnResponse")
|
|
fd_QueryLookupCrnResponse_name = md_QueryLookupCrnResponse.Fields().ByName("name")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryLookupCrnResponse)(nil)
|
|
|
|
type fastReflection_QueryLookupCrnResponse QueryLookupCrnResponse
|
|
|
|
func (x *QueryLookupCrnResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryLookupCrnResponse)(x)
|
|
}
|
|
|
|
func (x *QueryLookupCrnResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[13]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryLookupCrnResponse_messageType fastReflection_QueryLookupCrnResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryLookupCrnResponse_messageType{}
|
|
|
|
type fastReflection_QueryLookupCrnResponse_messageType struct{}
|
|
|
|
func (x fastReflection_QueryLookupCrnResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryLookupCrnResponse)(nil)
|
|
}
|
|
func (x fastReflection_QueryLookupCrnResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryLookupCrnResponse)
|
|
}
|
|
func (x fastReflection_QueryLookupCrnResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryLookupCrnResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryLookupCrnResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryLookupCrnResponse
|
|
}
|
|
|
|
// 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_QueryLookupCrnResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryLookupCrnResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryLookupCrnResponse) New() protoreflect.Message {
|
|
return new(fastReflection_QueryLookupCrnResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryLookupCrnResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryLookupCrnResponse)(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_QueryLookupCrnResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Name != nil {
|
|
value := protoreflect.ValueOfMessage(x.Name.ProtoReflect())
|
|
if !f(fd_QueryLookupCrnResponse_name, 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_QueryLookupCrnResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryLookupCrnResponse.name":
|
|
return x.Name != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnResponse 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_QueryLookupCrnResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryLookupCrnResponse.name":
|
|
x.Name = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnResponse 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_QueryLookupCrnResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryLookupCrnResponse.name":
|
|
value := x.Name
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnResponse 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_QueryLookupCrnResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryLookupCrnResponse.name":
|
|
x.Name = value.Message().Interface().(*NameRecord)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnResponse 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_QueryLookupCrnResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryLookupCrnResponse.name":
|
|
if x.Name == nil {
|
|
x.Name = new(NameRecord)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Name.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryLookupCrnResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnResponse 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_QueryLookupCrnResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryLookupCrnResponse.name":
|
|
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.QueryLookupCrnResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryLookupCrnResponse 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_QueryLookupCrnResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryLookupCrnResponse", 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_QueryLookupCrnResponse) 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_QueryLookupCrnResponse) 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_QueryLookupCrnResponse) 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_QueryLookupCrnResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryLookupCrnResponse)
|
|
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.Name != nil {
|
|
l = options.Size(x.Name)
|
|
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().(*QueryLookupCrnResponse)
|
|
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.Name != nil {
|
|
encoded, err := options.Marshal(x.Name)
|
|
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().(*QueryLookupCrnResponse)
|
|
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: QueryLookupCrnResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLookupCrnResponse: 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 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.Name == nil {
|
|
x.Name = &NameRecord{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Name); 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_QueryResolveCrnRequest protoreflect.MessageDescriptor
|
|
fd_QueryResolveCrnRequest_crn protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryResolveCrnRequest = File_cerc_registry_v1_query_proto.Messages().ByName("QueryResolveCrnRequest")
|
|
fd_QueryResolveCrnRequest_crn = md_QueryResolveCrnRequest.Fields().ByName("crn")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryResolveCrnRequest)(nil)
|
|
|
|
type fastReflection_QueryResolveCrnRequest QueryResolveCrnRequest
|
|
|
|
func (x *QueryResolveCrnRequest) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryResolveCrnRequest)(x)
|
|
}
|
|
|
|
func (x *QueryResolveCrnRequest) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[14]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryResolveCrnRequest_messageType fastReflection_QueryResolveCrnRequest_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryResolveCrnRequest_messageType{}
|
|
|
|
type fastReflection_QueryResolveCrnRequest_messageType struct{}
|
|
|
|
func (x fastReflection_QueryResolveCrnRequest_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryResolveCrnRequest)(nil)
|
|
}
|
|
func (x fastReflection_QueryResolveCrnRequest_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryResolveCrnRequest)
|
|
}
|
|
func (x fastReflection_QueryResolveCrnRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryResolveCrnRequest
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryResolveCrnRequest) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryResolveCrnRequest
|
|
}
|
|
|
|
// 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_QueryResolveCrnRequest) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryResolveCrnRequest_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryResolveCrnRequest) New() protoreflect.Message {
|
|
return new(fastReflection_QueryResolveCrnRequest)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryResolveCrnRequest) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryResolveCrnRequest)(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_QueryResolveCrnRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Crn != "" {
|
|
value := protoreflect.ValueOfString(x.Crn)
|
|
if !f(fd_QueryResolveCrnRequest_crn, 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_QueryResolveCrnRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryResolveCrnRequest.crn":
|
|
return x.Crn != ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnRequest 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_QueryResolveCrnRequest) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryResolveCrnRequest.crn":
|
|
x.Crn = ""
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnRequest 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_QueryResolveCrnRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryResolveCrnRequest.crn":
|
|
value := x.Crn
|
|
return protoreflect.ValueOfString(value)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnRequest 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_QueryResolveCrnRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryResolveCrnRequest.crn":
|
|
x.Crn = value.Interface().(string)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnRequest 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_QueryResolveCrnRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryResolveCrnRequest.crn":
|
|
panic(fmt.Errorf("field crn of message cerc.registry.v1.QueryResolveCrnRequest is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnRequest 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_QueryResolveCrnRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryResolveCrnRequest.crn":
|
|
return protoreflect.ValueOfString("")
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnRequest 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_QueryResolveCrnRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryResolveCrnRequest", 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_QueryResolveCrnRequest) 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_QueryResolveCrnRequest) 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_QueryResolveCrnRequest) 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_QueryResolveCrnRequest) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryResolveCrnRequest)
|
|
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.Crn)
|
|
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().(*QueryResolveCrnRequest)
|
|
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.Crn) > 0 {
|
|
i -= len(x.Crn)
|
|
copy(dAtA[i:], x.Crn)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Crn)))
|
|
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().(*QueryResolveCrnRequest)
|
|
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: QueryResolveCrnRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolveCrnRequest: 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 Crn", 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.Crn = 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_QueryResolveCrnResponse protoreflect.MessageDescriptor
|
|
fd_QueryResolveCrnResponse_record protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryResolveCrnResponse = File_cerc_registry_v1_query_proto.Messages().ByName("QueryResolveCrnResponse")
|
|
fd_QueryResolveCrnResponse_record = md_QueryResolveCrnResponse.Fields().ByName("record")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryResolveCrnResponse)(nil)
|
|
|
|
type fastReflection_QueryResolveCrnResponse QueryResolveCrnResponse
|
|
|
|
func (x *QueryResolveCrnResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryResolveCrnResponse)(x)
|
|
}
|
|
|
|
func (x *QueryResolveCrnResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[15]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryResolveCrnResponse_messageType fastReflection_QueryResolveCrnResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryResolveCrnResponse_messageType{}
|
|
|
|
type fastReflection_QueryResolveCrnResponse_messageType struct{}
|
|
|
|
func (x fastReflection_QueryResolveCrnResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryResolveCrnResponse)(nil)
|
|
}
|
|
func (x fastReflection_QueryResolveCrnResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryResolveCrnResponse)
|
|
}
|
|
func (x fastReflection_QueryResolveCrnResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryResolveCrnResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryResolveCrnResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryResolveCrnResponse
|
|
}
|
|
|
|
// 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_QueryResolveCrnResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryResolveCrnResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryResolveCrnResponse) New() protoreflect.Message {
|
|
return new(fastReflection_QueryResolveCrnResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryResolveCrnResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryResolveCrnResponse)(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_QueryResolveCrnResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.Record != nil {
|
|
value := protoreflect.ValueOfMessage(x.Record.ProtoReflect())
|
|
if !f(fd_QueryResolveCrnResponse_record, 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_QueryResolveCrnResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryResolveCrnResponse.record":
|
|
return x.Record != nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnResponse 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_QueryResolveCrnResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryResolveCrnResponse.record":
|
|
x.Record = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnResponse 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_QueryResolveCrnResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryResolveCrnResponse.record":
|
|
value := x.Record
|
|
return protoreflect.ValueOfMessage(value.ProtoReflect())
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnResponse 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_QueryResolveCrnResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryResolveCrnResponse.record":
|
|
x.Record = value.Message().Interface().(*Record)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnResponse 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_QueryResolveCrnResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryResolveCrnResponse.record":
|
|
if x.Record == nil {
|
|
x.Record = new(Record)
|
|
}
|
|
return protoreflect.ValueOfMessage(x.Record.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnResponse 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_QueryResolveCrnResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryResolveCrnResponse.record":
|
|
m := new(Record)
|
|
return protoreflect.ValueOfMessage(m.ProtoReflect())
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryResolveCrnResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryResolveCrnResponse 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_QueryResolveCrnResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryResolveCrnResponse", 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_QueryResolveCrnResponse) 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_QueryResolveCrnResponse) 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_QueryResolveCrnResponse) 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_QueryResolveCrnResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryResolveCrnResponse)
|
|
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.Record != nil {
|
|
l = options.Size(x.Record)
|
|
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().(*QueryResolveCrnResponse)
|
|
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.Record != nil {
|
|
encoded, err := options.Marshal(x.Record)
|
|
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().(*QueryResolveCrnResponse)
|
|
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: QueryResolveCrnResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryResolveCrnResponse: 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 Record", 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.Record == nil {
|
|
x.Record = &Record{}
|
|
}
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Record); 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_QueryGetRegistryModuleBalanceRequest protoreflect.MessageDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryGetRegistryModuleBalanceRequest = File_cerc_registry_v1_query_proto.Messages().ByName("QueryGetRegistryModuleBalanceRequest")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryGetRegistryModuleBalanceRequest)(nil)
|
|
|
|
type fastReflection_QueryGetRegistryModuleBalanceRequest QueryGetRegistryModuleBalanceRequest
|
|
|
|
func (x *QueryGetRegistryModuleBalanceRequest) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryGetRegistryModuleBalanceRequest)(x)
|
|
}
|
|
|
|
func (x *QueryGetRegistryModuleBalanceRequest) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[16]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryGetRegistryModuleBalanceRequest_messageType fastReflection_QueryGetRegistryModuleBalanceRequest_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryGetRegistryModuleBalanceRequest_messageType{}
|
|
|
|
type fastReflection_QueryGetRegistryModuleBalanceRequest_messageType struct{}
|
|
|
|
func (x fastReflection_QueryGetRegistryModuleBalanceRequest_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryGetRegistryModuleBalanceRequest)(nil)
|
|
}
|
|
func (x fastReflection_QueryGetRegistryModuleBalanceRequest_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryGetRegistryModuleBalanceRequest)
|
|
}
|
|
func (x fastReflection_QueryGetRegistryModuleBalanceRequest_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryGetRegistryModuleBalanceRequest
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryGetRegistryModuleBalanceRequest) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryGetRegistryModuleBalanceRequest
|
|
}
|
|
|
|
// 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_QueryGetRegistryModuleBalanceRequest) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryGetRegistryModuleBalanceRequest_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryGetRegistryModuleBalanceRequest) New() protoreflect.Message {
|
|
return new(fastReflection_QueryGetRegistryModuleBalanceRequest)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryGetRegistryModuleBalanceRequest) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryGetRegistryModuleBalanceRequest)(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_QueryGetRegistryModuleBalanceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
}
|
|
|
|
// Has reports whether a field is populated.
|
|
//
|
|
// Some fields have the property of nullability where it is possible to
|
|
// distinguish between the default value of a field and whether the field
|
|
// was explicitly populated with the default value. Singular message fields,
|
|
// member fields of a oneof, and proto2 scalar fields are nullable. Such
|
|
// fields are populated only if explicitly set.
|
|
//
|
|
// In other cases (aside from the nullable cases above),
|
|
// a proto3 scalar field is populated if it contains a non-zero value, and
|
|
// a repeated field is populated if it is non-empty.
|
|
func (x *fastReflection_QueryGetRegistryModuleBalanceRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryGetRegistryModuleBalanceRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryGetRegistryModuleBalanceRequest 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_QueryGetRegistryModuleBalanceRequest) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryGetRegistryModuleBalanceRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryGetRegistryModuleBalanceRequest 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_QueryGetRegistryModuleBalanceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryGetRegistryModuleBalanceRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryGetRegistryModuleBalanceRequest 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_QueryGetRegistryModuleBalanceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryGetRegistryModuleBalanceRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryGetRegistryModuleBalanceRequest 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_QueryGetRegistryModuleBalanceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryGetRegistryModuleBalanceRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryGetRegistryModuleBalanceRequest 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_QueryGetRegistryModuleBalanceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryGetRegistryModuleBalanceRequest"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryGetRegistryModuleBalanceRequest 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_QueryGetRegistryModuleBalanceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryGetRegistryModuleBalanceRequest", 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_QueryGetRegistryModuleBalanceRequest) 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_QueryGetRegistryModuleBalanceRequest) 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_QueryGetRegistryModuleBalanceRequest) 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_QueryGetRegistryModuleBalanceRequest) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryGetRegistryModuleBalanceRequest)
|
|
if x == nil {
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: 0,
|
|
}
|
|
}
|
|
options := runtime.SizeInputToOptions(input)
|
|
_ = options
|
|
var n int
|
|
var l int
|
|
_ = l
|
|
if x.unknownFields != nil {
|
|
n += len(x.unknownFields)
|
|
}
|
|
return protoiface.SizeOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Size: n,
|
|
}
|
|
}
|
|
|
|
marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryGetRegistryModuleBalanceRequest)
|
|
if x == nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
options := runtime.MarshalInputToOptions(input)
|
|
_ = options
|
|
size := options.Size(x)
|
|
dAtA := make([]byte, size)
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if x.unknownFields != nil {
|
|
i -= len(x.unknownFields)
|
|
copy(dAtA[i:], x.unknownFields)
|
|
}
|
|
if input.Buf != nil {
|
|
input.Buf = append(input.Buf, dAtA...)
|
|
} else {
|
|
input.Buf = dAtA
|
|
}
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryGetRegistryModuleBalanceRequest)
|
|
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: QueryGetRegistryModuleBalanceRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetRegistryModuleBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := runtime.Skip(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if !options.DiscardUnknown {
|
|
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
|
|
}
|
|
return &protoiface.Methods{
|
|
NoUnkeyedLiterals: struct{}{},
|
|
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
|
|
Size: size,
|
|
Marshal: marshal,
|
|
Unmarshal: unmarshal,
|
|
Merge: nil,
|
|
CheckInitialized: nil,
|
|
}
|
|
}
|
|
|
|
var _ protoreflect.List = (*_QueryGetRegistryModuleBalanceResponse_1_list)(nil)
|
|
|
|
type _QueryGetRegistryModuleBalanceResponse_1_list struct {
|
|
list *[]*AccountBalance
|
|
}
|
|
|
|
func (x *_QueryGetRegistryModuleBalanceResponse_1_list) Len() int {
|
|
if x.list == nil {
|
|
return 0
|
|
}
|
|
return len(*x.list)
|
|
}
|
|
|
|
func (x *_QueryGetRegistryModuleBalanceResponse_1_list) Get(i int) protoreflect.Value {
|
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryGetRegistryModuleBalanceResponse_1_list) Set(i int, value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*AccountBalance)
|
|
(*x.list)[i] = concreteValue
|
|
}
|
|
|
|
func (x *_QueryGetRegistryModuleBalanceResponse_1_list) Append(value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*AccountBalance)
|
|
*x.list = append(*x.list, concreteValue)
|
|
}
|
|
|
|
func (x *_QueryGetRegistryModuleBalanceResponse_1_list) AppendMutable() protoreflect.Value {
|
|
v := new(AccountBalance)
|
|
*x.list = append(*x.list, v)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryGetRegistryModuleBalanceResponse_1_list) Truncate(n int) {
|
|
for i := n; i < len(*x.list); i++ {
|
|
(*x.list)[i] = nil
|
|
}
|
|
*x.list = (*x.list)[:n]
|
|
}
|
|
|
|
func (x *_QueryGetRegistryModuleBalanceResponse_1_list) NewElement() protoreflect.Value {
|
|
v := new(AccountBalance)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_QueryGetRegistryModuleBalanceResponse_1_list) IsValid() bool {
|
|
return x.list != nil
|
|
}
|
|
|
|
var (
|
|
md_QueryGetRegistryModuleBalanceResponse protoreflect.MessageDescriptor
|
|
fd_QueryGetRegistryModuleBalanceResponse_balances protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_QueryGetRegistryModuleBalanceResponse = File_cerc_registry_v1_query_proto.Messages().ByName("QueryGetRegistryModuleBalanceResponse")
|
|
fd_QueryGetRegistryModuleBalanceResponse_balances = md_QueryGetRegistryModuleBalanceResponse.Fields().ByName("balances")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_QueryGetRegistryModuleBalanceResponse)(nil)
|
|
|
|
type fastReflection_QueryGetRegistryModuleBalanceResponse QueryGetRegistryModuleBalanceResponse
|
|
|
|
func (x *QueryGetRegistryModuleBalanceResponse) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_QueryGetRegistryModuleBalanceResponse)(x)
|
|
}
|
|
|
|
func (x *QueryGetRegistryModuleBalanceResponse) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[17]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_QueryGetRegistryModuleBalanceResponse_messageType fastReflection_QueryGetRegistryModuleBalanceResponse_messageType
|
|
var _ protoreflect.MessageType = fastReflection_QueryGetRegistryModuleBalanceResponse_messageType{}
|
|
|
|
type fastReflection_QueryGetRegistryModuleBalanceResponse_messageType struct{}
|
|
|
|
func (x fastReflection_QueryGetRegistryModuleBalanceResponse_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_QueryGetRegistryModuleBalanceResponse)(nil)
|
|
}
|
|
func (x fastReflection_QueryGetRegistryModuleBalanceResponse_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_QueryGetRegistryModuleBalanceResponse)
|
|
}
|
|
func (x fastReflection_QueryGetRegistryModuleBalanceResponse_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryGetRegistryModuleBalanceResponse
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_QueryGetRegistryModuleBalanceResponse) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_QueryGetRegistryModuleBalanceResponse
|
|
}
|
|
|
|
// 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_QueryGetRegistryModuleBalanceResponse) Type() protoreflect.MessageType {
|
|
return _fastReflection_QueryGetRegistryModuleBalanceResponse_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_QueryGetRegistryModuleBalanceResponse) New() protoreflect.Message {
|
|
return new(fastReflection_QueryGetRegistryModuleBalanceResponse)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_QueryGetRegistryModuleBalanceResponse) Interface() protoreflect.ProtoMessage {
|
|
return (*QueryGetRegistryModuleBalanceResponse)(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_QueryGetRegistryModuleBalanceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if len(x.Balances) != 0 {
|
|
value := protoreflect.ValueOfList(&_QueryGetRegistryModuleBalanceResponse_1_list{list: &x.Balances})
|
|
if !f(fd_QueryGetRegistryModuleBalanceResponse_balances, 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_QueryGetRegistryModuleBalanceResponse) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryGetRegistryModuleBalanceResponse.balances":
|
|
return len(x.Balances) != 0
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryGetRegistryModuleBalanceResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryGetRegistryModuleBalanceResponse 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_QueryGetRegistryModuleBalanceResponse) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryGetRegistryModuleBalanceResponse.balances":
|
|
x.Balances = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryGetRegistryModuleBalanceResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryGetRegistryModuleBalanceResponse 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_QueryGetRegistryModuleBalanceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.QueryGetRegistryModuleBalanceResponse.balances":
|
|
if len(x.Balances) == 0 {
|
|
return protoreflect.ValueOfList(&_QueryGetRegistryModuleBalanceResponse_1_list{})
|
|
}
|
|
listValue := &_QueryGetRegistryModuleBalanceResponse_1_list{list: &x.Balances}
|
|
return protoreflect.ValueOfList(listValue)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryGetRegistryModuleBalanceResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryGetRegistryModuleBalanceResponse 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_QueryGetRegistryModuleBalanceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryGetRegistryModuleBalanceResponse.balances":
|
|
lv := value.List()
|
|
clv := lv.(*_QueryGetRegistryModuleBalanceResponse_1_list)
|
|
x.Balances = *clv.list
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryGetRegistryModuleBalanceResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryGetRegistryModuleBalanceResponse 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_QueryGetRegistryModuleBalanceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryGetRegistryModuleBalanceResponse.balances":
|
|
if x.Balances == nil {
|
|
x.Balances = []*AccountBalance{}
|
|
}
|
|
value := &_QueryGetRegistryModuleBalanceResponse_1_list{list: &x.Balances}
|
|
return protoreflect.ValueOfList(value)
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryGetRegistryModuleBalanceResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryGetRegistryModuleBalanceResponse 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_QueryGetRegistryModuleBalanceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.QueryGetRegistryModuleBalanceResponse.balances":
|
|
list := []*AccountBalance{}
|
|
return protoreflect.ValueOfList(&_QueryGetRegistryModuleBalanceResponse_1_list{list: &list})
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.QueryGetRegistryModuleBalanceResponse"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.QueryGetRegistryModuleBalanceResponse 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_QueryGetRegistryModuleBalanceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.QueryGetRegistryModuleBalanceResponse", 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_QueryGetRegistryModuleBalanceResponse) 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_QueryGetRegistryModuleBalanceResponse) 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_QueryGetRegistryModuleBalanceResponse) 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_QueryGetRegistryModuleBalanceResponse) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*QueryGetRegistryModuleBalanceResponse)
|
|
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.Balances) > 0 {
|
|
for _, e := range x.Balances {
|
|
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().(*QueryGetRegistryModuleBalanceResponse)
|
|
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.Balances) > 0 {
|
|
for iNdEx := len(x.Balances) - 1; iNdEx >= 0; iNdEx-- {
|
|
encoded, err := options.Marshal(x.Balances[iNdEx])
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
if input.Buf != nil {
|
|
input.Buf = append(input.Buf, dAtA...)
|
|
} else {
|
|
input.Buf = dAtA
|
|
}
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, nil
|
|
}
|
|
unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
|
|
x := input.Message.Interface().(*QueryGetRegistryModuleBalanceResponse)
|
|
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: QueryGetRegistryModuleBalanceResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetRegistryModuleBalanceResponse: 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 Balances", 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.Balances = append(x.Balances, &AccountBalance{})
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Balances[len(x.Balances)-1]); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := runtime.Skip(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if !options.DiscardUnknown {
|
|
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
|
|
}
|
|
return &protoiface.Methods{
|
|
NoUnkeyedLiterals: struct{}{},
|
|
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
|
|
Size: size,
|
|
Marshal: marshal,
|
|
Unmarshal: unmarshal,
|
|
Merge: nil,
|
|
CheckInitialized: nil,
|
|
}
|
|
}
|
|
|
|
var _ protoreflect.List = (*_AccountBalance_3_list)(nil)
|
|
|
|
type _AccountBalance_3_list struct {
|
|
list *[]*v1beta11.Coin
|
|
}
|
|
|
|
func (x *_AccountBalance_3_list) Len() int {
|
|
if x.list == nil {
|
|
return 0
|
|
}
|
|
return len(*x.list)
|
|
}
|
|
|
|
func (x *_AccountBalance_3_list) Get(i int) protoreflect.Value {
|
|
return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect())
|
|
}
|
|
|
|
func (x *_AccountBalance_3_list) Set(i int, value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta11.Coin)
|
|
(*x.list)[i] = concreteValue
|
|
}
|
|
|
|
func (x *_AccountBalance_3_list) Append(value protoreflect.Value) {
|
|
valueUnwrapped := value.Message()
|
|
concreteValue := valueUnwrapped.Interface().(*v1beta11.Coin)
|
|
*x.list = append(*x.list, concreteValue)
|
|
}
|
|
|
|
func (x *_AccountBalance_3_list) AppendMutable() protoreflect.Value {
|
|
v := new(v1beta11.Coin)
|
|
*x.list = append(*x.list, v)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_AccountBalance_3_list) Truncate(n int) {
|
|
for i := n; i < len(*x.list); i++ {
|
|
(*x.list)[i] = nil
|
|
}
|
|
*x.list = (*x.list)[:n]
|
|
}
|
|
|
|
func (x *_AccountBalance_3_list) NewElement() protoreflect.Value {
|
|
v := new(v1beta11.Coin)
|
|
return protoreflect.ValueOfMessage(v.ProtoReflect())
|
|
}
|
|
|
|
func (x *_AccountBalance_3_list) IsValid() bool {
|
|
return x.list != nil
|
|
}
|
|
|
|
var (
|
|
md_AccountBalance protoreflect.MessageDescriptor
|
|
fd_AccountBalance_account_name protoreflect.FieldDescriptor
|
|
fd_AccountBalance_balance protoreflect.FieldDescriptor
|
|
)
|
|
|
|
func init() {
|
|
file_cerc_registry_v1_query_proto_init()
|
|
md_AccountBalance = File_cerc_registry_v1_query_proto.Messages().ByName("AccountBalance")
|
|
fd_AccountBalance_account_name = md_AccountBalance.Fields().ByName("account_name")
|
|
fd_AccountBalance_balance = md_AccountBalance.Fields().ByName("balance")
|
|
}
|
|
|
|
var _ protoreflect.Message = (*fastReflection_AccountBalance)(nil)
|
|
|
|
type fastReflection_AccountBalance AccountBalance
|
|
|
|
func (x *AccountBalance) ProtoReflect() protoreflect.Message {
|
|
return (*fastReflection_AccountBalance)(x)
|
|
}
|
|
|
|
func (x *AccountBalance) slowProtoReflect() protoreflect.Message {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[18]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
var _fastReflection_AccountBalance_messageType fastReflection_AccountBalance_messageType
|
|
var _ protoreflect.MessageType = fastReflection_AccountBalance_messageType{}
|
|
|
|
type fastReflection_AccountBalance_messageType struct{}
|
|
|
|
func (x fastReflection_AccountBalance_messageType) Zero() protoreflect.Message {
|
|
return (*fastReflection_AccountBalance)(nil)
|
|
}
|
|
func (x fastReflection_AccountBalance_messageType) New() protoreflect.Message {
|
|
return new(fastReflection_AccountBalance)
|
|
}
|
|
func (x fastReflection_AccountBalance_messageType) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_AccountBalance
|
|
}
|
|
|
|
// Descriptor returns message descriptor, which contains only the protobuf
|
|
// type information for the message.
|
|
func (x *fastReflection_AccountBalance) Descriptor() protoreflect.MessageDescriptor {
|
|
return md_AccountBalance
|
|
}
|
|
|
|
// 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_AccountBalance) Type() protoreflect.MessageType {
|
|
return _fastReflection_AccountBalance_messageType
|
|
}
|
|
|
|
// New returns a newly allocated and mutable empty message.
|
|
func (x *fastReflection_AccountBalance) New() protoreflect.Message {
|
|
return new(fastReflection_AccountBalance)
|
|
}
|
|
|
|
// Interface unwraps the message reflection interface and
|
|
// returns the underlying ProtoMessage interface.
|
|
func (x *fastReflection_AccountBalance) Interface() protoreflect.ProtoMessage {
|
|
return (*AccountBalance)(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_AccountBalance) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
|
if x.AccountName != "" {
|
|
value := protoreflect.ValueOfString(x.AccountName)
|
|
if !f(fd_AccountBalance_account_name, value) {
|
|
return
|
|
}
|
|
}
|
|
if len(x.Balance) != 0 {
|
|
value := protoreflect.ValueOfList(&_AccountBalance_3_list{list: &x.Balance})
|
|
if !f(fd_AccountBalance_balance, 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_AccountBalance) Has(fd protoreflect.FieldDescriptor) bool {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.AccountBalance.account_name":
|
|
return x.AccountName != ""
|
|
case "cerc.registry.v1.AccountBalance.balance":
|
|
return len(x.Balance) != 0
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AccountBalance"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.AccountBalance 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_AccountBalance) Clear(fd protoreflect.FieldDescriptor) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.AccountBalance.account_name":
|
|
x.AccountName = ""
|
|
case "cerc.registry.v1.AccountBalance.balance":
|
|
x.Balance = nil
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AccountBalance"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.AccountBalance 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_AccountBalance) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch descriptor.FullName() {
|
|
case "cerc.registry.v1.AccountBalance.account_name":
|
|
value := x.AccountName
|
|
return protoreflect.ValueOfString(value)
|
|
case "cerc.registry.v1.AccountBalance.balance":
|
|
if len(x.Balance) == 0 {
|
|
return protoreflect.ValueOfList(&_AccountBalance_3_list{})
|
|
}
|
|
listValue := &_AccountBalance_3_list{list: &x.Balance}
|
|
return protoreflect.ValueOfList(listValue)
|
|
default:
|
|
if descriptor.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AccountBalance"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.AccountBalance 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_AccountBalance) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.AccountBalance.account_name":
|
|
x.AccountName = value.Interface().(string)
|
|
case "cerc.registry.v1.AccountBalance.balance":
|
|
lv := value.List()
|
|
clv := lv.(*_AccountBalance_3_list)
|
|
x.Balance = *clv.list
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AccountBalance"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.AccountBalance 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_AccountBalance) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.AccountBalance.balance":
|
|
if x.Balance == nil {
|
|
x.Balance = []*v1beta11.Coin{}
|
|
}
|
|
value := &_AccountBalance_3_list{list: &x.Balance}
|
|
return protoreflect.ValueOfList(value)
|
|
case "cerc.registry.v1.AccountBalance.account_name":
|
|
panic(fmt.Errorf("field account_name of message cerc.registry.v1.AccountBalance is not mutable"))
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AccountBalance"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.AccountBalance 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_AccountBalance) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
|
switch fd.FullName() {
|
|
case "cerc.registry.v1.AccountBalance.account_name":
|
|
return protoreflect.ValueOfString("")
|
|
case "cerc.registry.v1.AccountBalance.balance":
|
|
list := []*v1beta11.Coin{}
|
|
return protoreflect.ValueOfList(&_AccountBalance_3_list{list: &list})
|
|
default:
|
|
if fd.IsExtension() {
|
|
panic(fmt.Errorf("proto3 declared messages do not support extensions: cerc.registry.v1.AccountBalance"))
|
|
}
|
|
panic(fmt.Errorf("message cerc.registry.v1.AccountBalance 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_AccountBalance) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
|
|
switch d.FullName() {
|
|
default:
|
|
panic(fmt.Errorf("%s is not a oneof field in cerc.registry.v1.AccountBalance", 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_AccountBalance) 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_AccountBalance) 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_AccountBalance) 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_AccountBalance) ProtoMethods() *protoiface.Methods {
|
|
size := func(input protoiface.SizeInput) protoiface.SizeOutput {
|
|
x := input.Message.Interface().(*AccountBalance)
|
|
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.AccountName)
|
|
if l > 0 {
|
|
n += 1 + l + runtime.Sov(uint64(l))
|
|
}
|
|
if len(x.Balance) > 0 {
|
|
for _, e := range x.Balance {
|
|
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().(*AccountBalance)
|
|
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.Balance) > 0 {
|
|
for iNdEx := len(x.Balance) - 1; iNdEx >= 0; iNdEx-- {
|
|
encoded, err := options.Marshal(x.Balance[iNdEx])
|
|
if err != nil {
|
|
return protoiface.MarshalOutput{
|
|
NoUnkeyedLiterals: input.NoUnkeyedLiterals,
|
|
Buf: input.Buf,
|
|
}, err
|
|
}
|
|
i -= len(encoded)
|
|
copy(dAtA[i:], encoded)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
}
|
|
if len(x.AccountName) > 0 {
|
|
i -= len(x.AccountName)
|
|
copy(dAtA[i:], x.AccountName)
|
|
i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AccountName)))
|
|
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().(*AccountBalance)
|
|
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: AccountBalance: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AccountBalance: 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 AccountName", 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.AccountName = 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 Balance", 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.Balance = append(x.Balance, &v1beta11.Coin{})
|
|
if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Balance[len(x.Balance)-1]); err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := runtime.Skip(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
if !options.DiscardUnknown {
|
|
x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
|
|
}
|
|
return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
|
|
}
|
|
return &protoiface.Methods{
|
|
NoUnkeyedLiterals: struct{}{},
|
|
Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
|
|
Size: size,
|
|
Marshal: marshal,
|
|
Unmarshal: unmarshal,
|
|
Merge: nil,
|
|
CheckInitialized: nil,
|
|
}
|
|
}
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.27.0
|
|
// protoc (unknown)
|
|
// source: cerc/registry/v1/query.proto
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// QueryParamsRequest is request type for registry params
|
|
type QueryParamsRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *QueryParamsRequest) Reset() {
|
|
*x = QueryParamsRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryParamsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryParamsRequest) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryParamsRequest) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
// QueryParamsResponse is response type for registry params
|
|
type QueryParamsResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
|
|
}
|
|
|
|
func (x *QueryParamsResponse) Reset() {
|
|
*x = QueryParamsResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryParamsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryParamsResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
|
|
func (*QueryParamsResponse) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *QueryParamsResponse) GetParams() *Params {
|
|
if x != nil {
|
|
return x.Params
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// QueryRecordsRequest is request type for registry records list
|
|
type QueryRecordsRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Attributes []*QueryRecordsRequest_KeyValueInput `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
|
|
All bool `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"`
|
|
// pagination defines an optional pagination for the request.
|
|
Pagination *v1beta1.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
}
|
|
|
|
func (x *QueryRecordsRequest) Reset() {
|
|
*x = QueryRecordsRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryRecordsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryRecordsRequest) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryRecordsRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryRecordsRequest) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *QueryRecordsRequest) GetAttributes() []*QueryRecordsRequest_KeyValueInput {
|
|
if x != nil {
|
|
return x.Attributes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *QueryRecordsRequest) GetAll() bool {
|
|
if x != nil {
|
|
return x.All
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *QueryRecordsRequest) GetPagination() *v1beta1.PageRequest {
|
|
if x != nil {
|
|
return x.Pagination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// QueryRecordsResponse is response type for registry records list
|
|
type QueryRecordsResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
|
|
// pagination defines the pagination in the response.
|
|
Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
}
|
|
|
|
func (x *QueryRecordsResponse) Reset() {
|
|
*x = QueryRecordsResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryRecordsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryRecordsResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryRecordsResponse.ProtoReflect.Descriptor instead.
|
|
func (*QueryRecordsResponse) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *QueryRecordsResponse) GetRecords() []*Record {
|
|
if x != nil {
|
|
return x.Records
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *QueryRecordsResponse) GetPagination() *v1beta1.PageResponse {
|
|
if x != nil {
|
|
return x.Pagination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// QueryRecordByIdRequest is request type for registry records by id
|
|
type QueryRecordByIdRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
}
|
|
|
|
func (x *QueryRecordByIdRequest) Reset() {
|
|
*x = QueryRecordByIdRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryRecordByIdRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryRecordByIdRequest) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryRecordByIdRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryRecordByIdRequest) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *QueryRecordByIdRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// QueryRecordByIdResponse is response type for registry records by id
|
|
type QueryRecordByIdResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
|
|
}
|
|
|
|
func (x *QueryRecordByIdResponse) Reset() {
|
|
*x = QueryRecordByIdResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryRecordByIdResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryRecordByIdResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryRecordByIdResponse.ProtoReflect.Descriptor instead.
|
|
func (*QueryRecordByIdResponse) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *QueryRecordByIdResponse) GetRecord() *Record {
|
|
if x != nil {
|
|
return x.Record
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// QueryRecordsByBondIdRequest is request type for get the records by bond-id
|
|
type QueryRecordsByBondIdRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
// pagination defines an optional pagination for the request.
|
|
Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
}
|
|
|
|
func (x *QueryRecordsByBondIdRequest) Reset() {
|
|
*x = QueryRecordsByBondIdRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryRecordsByBondIdRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryRecordsByBondIdRequest) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryRecordsByBondIdRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryRecordsByBondIdRequest) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *QueryRecordsByBondIdRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *QueryRecordsByBondIdRequest) GetPagination() *v1beta1.PageRequest {
|
|
if x != nil {
|
|
return x.Pagination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// QueryRecordsByBondIdResponse is response type for records list by bond-id
|
|
type QueryRecordsByBondIdResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
|
|
// pagination defines the pagination in the response.
|
|
Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
}
|
|
|
|
func (x *QueryRecordsByBondIdResponse) Reset() {
|
|
*x = QueryRecordsByBondIdResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryRecordsByBondIdResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryRecordsByBondIdResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryRecordsByBondIdResponse.ProtoReflect.Descriptor instead.
|
|
func (*QueryRecordsByBondIdResponse) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *QueryRecordsByBondIdResponse) GetRecords() []*Record {
|
|
if x != nil {
|
|
return x.Records
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *QueryRecordsByBondIdResponse) GetPagination() *v1beta1.PageResponse {
|
|
if x != nil {
|
|
return x.Pagination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// QueryNameRecordsRequest is request type for registry names records
|
|
type QueryNameRecordsRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// pagination defines an optional pagination for the request.
|
|
Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
}
|
|
|
|
func (x *QueryNameRecordsRequest) Reset() {
|
|
*x = QueryNameRecordsRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryNameRecordsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryNameRecordsRequest) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryNameRecordsRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryNameRecordsRequest) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *QueryNameRecordsRequest) GetPagination() *v1beta1.PageRequest {
|
|
if x != nil {
|
|
return x.Pagination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// QueryNameRecordsResponse is response type for registry names records
|
|
type QueryNameRecordsResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Names []*NameEntry `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
|
|
// pagination defines the pagination in the response.
|
|
Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
}
|
|
|
|
func (x *QueryNameRecordsResponse) Reset() {
|
|
*x = QueryNameRecordsResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryNameRecordsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryNameRecordsResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryNameRecordsResponse.ProtoReflect.Descriptor instead.
|
|
func (*QueryNameRecordsResponse) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *QueryNameRecordsResponse) GetNames() []*NameEntry {
|
|
if x != nil {
|
|
return x.Names
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *QueryNameRecordsResponse) GetPagination() *v1beta1.PageResponse {
|
|
if x != nil {
|
|
return x.Pagination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// QueryWhoisRequest is request type for Get NameAuthority
|
|
type QueryWhoisRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
}
|
|
|
|
func (x *QueryWhoisRequest) Reset() {
|
|
*x = QueryWhoisRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryWhoisRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryWhoisRequest) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryWhoisRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryWhoisRequest) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *QueryWhoisRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// QueryWhoisResponse is response type for whois request
|
|
type QueryWhoisResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
NameAuthority *NameAuthority `protobuf:"bytes,1,opt,name=name_authority,json=nameAuthority,proto3" json:"name_authority,omitempty"`
|
|
}
|
|
|
|
func (x *QueryWhoisResponse) Reset() {
|
|
*x = QueryWhoisResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryWhoisResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryWhoisResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryWhoisResponse.ProtoReflect.Descriptor instead.
|
|
func (*QueryWhoisResponse) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *QueryWhoisResponse) GetNameAuthority() *NameAuthority {
|
|
if x != nil {
|
|
return x.NameAuthority
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// QueryLookupCrnRequest is request type for LookupCrn
|
|
type QueryLookupCrnRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"`
|
|
}
|
|
|
|
func (x *QueryLookupCrnRequest) Reset() {
|
|
*x = QueryLookupCrnRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryLookupCrnRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryLookupCrnRequest) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryLookupCrnRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryLookupCrnRequest) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *QueryLookupCrnRequest) GetCrn() string {
|
|
if x != nil {
|
|
return x.Crn
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// QueryLookupCrnResponse is response type for QueryLookupCrnRequest
|
|
type QueryLookupCrnResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Name *NameRecord `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
}
|
|
|
|
func (x *QueryLookupCrnResponse) Reset() {
|
|
*x = QueryLookupCrnResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryLookupCrnResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryLookupCrnResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryLookupCrnResponse.ProtoReflect.Descriptor instead.
|
|
func (*QueryLookupCrnResponse) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *QueryLookupCrnResponse) GetName() *NameRecord {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// QueryResolveCrnRequest is request type for ResolveCrn
|
|
type QueryResolveCrnRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Crn string `protobuf:"bytes,1,opt,name=crn,proto3" json:"crn,omitempty"`
|
|
}
|
|
|
|
func (x *QueryResolveCrnRequest) Reset() {
|
|
*x = QueryResolveCrnRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryResolveCrnRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryResolveCrnRequest) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryResolveCrnRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryResolveCrnRequest) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *QueryResolveCrnRequest) GetCrn() string {
|
|
if x != nil {
|
|
return x.Crn
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// QueryResolveCrnResponse is response type for QueryResolveCrnRequest
|
|
type QueryResolveCrnResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
|
|
}
|
|
|
|
func (x *QueryResolveCrnResponse) Reset() {
|
|
*x = QueryResolveCrnResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryResolveCrnResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryResolveCrnResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryResolveCrnResponse.ProtoReflect.Descriptor instead.
|
|
func (*QueryResolveCrnResponse) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *QueryResolveCrnResponse) GetRecord() *Record {
|
|
if x != nil {
|
|
return x.Record
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// QueryGetRegistryModuleBalanceRequest is request type for registry module accounts balance
|
|
type QueryGetRegistryModuleBalanceRequest struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *QueryGetRegistryModuleBalanceRequest) Reset() {
|
|
*x = QueryGetRegistryModuleBalanceRequest{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryGetRegistryModuleBalanceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryGetRegistryModuleBalanceRequest) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryGetRegistryModuleBalanceRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryGetRegistryModuleBalanceRequest) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
// QueryGetRegistryModuleBalanceResponse is response type for registry module accounts balance
|
|
type QueryGetRegistryModuleBalanceResponse struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Balances []*AccountBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"`
|
|
}
|
|
|
|
func (x *QueryGetRegistryModuleBalanceResponse) Reset() {
|
|
*x = QueryGetRegistryModuleBalanceResponse{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryGetRegistryModuleBalanceResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryGetRegistryModuleBalanceResponse) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryGetRegistryModuleBalanceResponse.ProtoReflect.Descriptor instead.
|
|
func (*QueryGetRegistryModuleBalanceResponse) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *QueryGetRegistryModuleBalanceResponse) GetBalances() []*AccountBalance {
|
|
if x != nil {
|
|
return x.Balances
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// AccountBalance is registry module account balance
|
|
type AccountBalance struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
AccountName string `protobuf:"bytes,1,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
|
|
Balance []*v1beta11.Coin `protobuf:"bytes,3,rep,name=balance,proto3" json:"balance,omitempty"`
|
|
}
|
|
|
|
func (x *AccountBalance) Reset() {
|
|
*x = AccountBalance{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *AccountBalance) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AccountBalance) ProtoMessage() {}
|
|
|
|
// Deprecated: Use AccountBalance.ProtoReflect.Descriptor instead.
|
|
func (*AccountBalance) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *AccountBalance) GetAccountName() string {
|
|
if x != nil {
|
|
return x.AccountName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AccountBalance) GetBalance() []*v1beta11.Coin {
|
|
if x != nil {
|
|
return x.Balance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QueryRecordsRequest_ArrayInput struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Values []*QueryRecordsRequest_ValueInput `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ArrayInput) Reset() {
|
|
*x = QueryRecordsRequest_ArrayInput{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ArrayInput) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryRecordsRequest_ArrayInput) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryRecordsRequest_ArrayInput.ProtoReflect.Descriptor instead.
|
|
func (*QueryRecordsRequest_ArrayInput) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{2, 0}
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ArrayInput) GetValues() []*QueryRecordsRequest_ValueInput {
|
|
if x != nil {
|
|
return x.Values
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QueryRecordsRequest_MapInput struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Values map[string]*QueryRecordsRequest_ValueInput `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_MapInput) Reset() {
|
|
*x = QueryRecordsRequest_MapInput{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_MapInput) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryRecordsRequest_MapInput) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryRecordsRequest_MapInput.ProtoReflect.Descriptor instead.
|
|
func (*QueryRecordsRequest_MapInput) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{2, 1}
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_MapInput) GetValues() map[string]*QueryRecordsRequest_ValueInput {
|
|
if x != nil {
|
|
return x.Values
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QueryRecordsRequest_ValueInput struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
// Type of record attribute value
|
|
//
|
|
// Types that are assignable to Value:
|
|
//
|
|
// *QueryRecordsRequest_ValueInput_String_
|
|
// *QueryRecordsRequest_ValueInput_Int
|
|
// *QueryRecordsRequest_ValueInput_Float
|
|
// *QueryRecordsRequest_ValueInput_Boolean
|
|
// *QueryRecordsRequest_ValueInput_Link
|
|
// *QueryRecordsRequest_ValueInput_Array
|
|
// *QueryRecordsRequest_ValueInput_Map
|
|
Value isQueryRecordsRequest_ValueInput_Value `protobuf_oneof:"value"`
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ValueInput) Reset() {
|
|
*x = QueryRecordsRequest_ValueInput{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ValueInput) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryRecordsRequest_ValueInput) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryRecordsRequest_ValueInput.ProtoReflect.Descriptor instead.
|
|
func (*QueryRecordsRequest_ValueInput) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{2, 2}
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ValueInput) GetValue() isQueryRecordsRequest_ValueInput_Value {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ValueInput) GetString_() string {
|
|
if x, ok := x.GetValue().(*QueryRecordsRequest_ValueInput_String_); ok {
|
|
return x.String_
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ValueInput) GetInt() int64 {
|
|
if x, ok := x.GetValue().(*QueryRecordsRequest_ValueInput_Int); ok {
|
|
return x.Int
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ValueInput) GetFloat() float64 {
|
|
if x, ok := x.GetValue().(*QueryRecordsRequest_ValueInput_Float); ok {
|
|
return x.Float
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ValueInput) GetBoolean() bool {
|
|
if x, ok := x.GetValue().(*QueryRecordsRequest_ValueInput_Boolean); ok {
|
|
return x.Boolean
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ValueInput) GetLink() string {
|
|
if x, ok := x.GetValue().(*QueryRecordsRequest_ValueInput_Link); ok {
|
|
return x.Link
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ValueInput) GetArray() *QueryRecordsRequest_ArrayInput {
|
|
if x, ok := x.GetValue().(*QueryRecordsRequest_ValueInput_Array); ok {
|
|
return x.Array
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_ValueInput) GetMap() *QueryRecordsRequest_MapInput {
|
|
if x, ok := x.GetValue().(*QueryRecordsRequest_ValueInput_Map); ok {
|
|
return x.Map
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isQueryRecordsRequest_ValueInput_Value interface {
|
|
isQueryRecordsRequest_ValueInput_Value()
|
|
}
|
|
|
|
type QueryRecordsRequest_ValueInput_String_ struct {
|
|
String_ string `protobuf:"bytes,1,opt,name=string,proto3,oneof"`
|
|
}
|
|
|
|
type QueryRecordsRequest_ValueInput_Int struct {
|
|
Int int64 `protobuf:"varint,2,opt,name=int,proto3,oneof"`
|
|
}
|
|
|
|
type QueryRecordsRequest_ValueInput_Float struct {
|
|
Float float64 `protobuf:"fixed64,3,opt,name=float,proto3,oneof"`
|
|
}
|
|
|
|
type QueryRecordsRequest_ValueInput_Boolean struct {
|
|
Boolean bool `protobuf:"varint,4,opt,name=boolean,proto3,oneof"`
|
|
}
|
|
|
|
type QueryRecordsRequest_ValueInput_Link struct {
|
|
Link string `protobuf:"bytes,5,opt,name=link,proto3,oneof"`
|
|
}
|
|
|
|
type QueryRecordsRequest_ValueInput_Array struct {
|
|
Array *QueryRecordsRequest_ArrayInput `protobuf:"bytes,6,opt,name=array,proto3,oneof"`
|
|
}
|
|
|
|
type QueryRecordsRequest_ValueInput_Map struct {
|
|
Map *QueryRecordsRequest_MapInput `protobuf:"bytes,7,opt,name=map,proto3,oneof"`
|
|
}
|
|
|
|
func (*QueryRecordsRequest_ValueInput_String_) isQueryRecordsRequest_ValueInput_Value() {}
|
|
|
|
func (*QueryRecordsRequest_ValueInput_Int) isQueryRecordsRequest_ValueInput_Value() {}
|
|
|
|
func (*QueryRecordsRequest_ValueInput_Float) isQueryRecordsRequest_ValueInput_Value() {}
|
|
|
|
func (*QueryRecordsRequest_ValueInput_Boolean) isQueryRecordsRequest_ValueInput_Value() {}
|
|
|
|
func (*QueryRecordsRequest_ValueInput_Link) isQueryRecordsRequest_ValueInput_Value() {}
|
|
|
|
func (*QueryRecordsRequest_ValueInput_Array) isQueryRecordsRequest_ValueInput_Value() {}
|
|
|
|
func (*QueryRecordsRequest_ValueInput_Map) isQueryRecordsRequest_ValueInput_Value() {}
|
|
|
|
type QueryRecordsRequest_KeyValueInput struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Value *QueryRecordsRequest_ValueInput `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_KeyValueInput) Reset() {
|
|
*x = QueryRecordsRequest_KeyValueInput{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_cerc_registry_v1_query_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_KeyValueInput) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryRecordsRequest_KeyValueInput) ProtoMessage() {}
|
|
|
|
// Deprecated: Use QueryRecordsRequest_KeyValueInput.ProtoReflect.Descriptor instead.
|
|
func (*QueryRecordsRequest_KeyValueInput) Descriptor() ([]byte, []int) {
|
|
return file_cerc_registry_v1_query_proto_rawDescGZIP(), []int{2, 3}
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_KeyValueInput) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *QueryRecordsRequest_KeyValueInput) GetValue() *QueryRecordsRequest_ValueInput {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_cerc_registry_v1_query_proto protoreflect.FileDescriptor
|
|
|
|
var file_cerc_registry_v1_query_proto_rawDesc = []byte{
|
|
0x0a, 0x1c, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
|
|
0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 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, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e,
|
|
0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a,
|
|
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72,
|
|
0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61,
|
|
0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 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,
|
|
0x1a, 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, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x47, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79,
|
|
0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30,
|
|
0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18,
|
|
0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76,
|
|
0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73,
|
|
0x22, 0xf3, 0x06, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
|
|
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x53, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72,
|
|
0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x63,
|
|
0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e,
|
|
0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x70, 0x75,
|
|
0x74, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x10, 0x0a,
|
|
0x03, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x6c, 0x6c, 0x12,
|
|
0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,
|
|
0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73,
|
|
0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
|
|
0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67,
|
|
0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x56, 0x0a, 0x0a, 0x41, 0x72, 0x72, 0x61, 0x79,
|
|
0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x48, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18,
|
|
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67,
|
|
0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65,
|
|
0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c,
|
|
0x75, 0x65, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a,
|
|
0xcb, 0x01, 0x0a, 0x08, 0x4d, 0x61, 0x70, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x52, 0x0a, 0x06,
|
|
0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x63,
|
|
0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e,
|
|
0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x2e, 0x4d, 0x61, 0x70, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x2e, 0x56, 0x61, 0x6c,
|
|
0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
|
|
0x1a, 0x6b, 0x0a, 0x0b, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
|
|
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
|
|
0x79, 0x12, 0x46, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
|
0x32, 0x30, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
|
|
0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73,
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x70,
|
|
0x75, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x9b, 0x02,
|
|
0x0a, 0x0a, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x18, 0x0a, 0x06,
|
|
0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06,
|
|
0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x03, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20,
|
|
0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x03, 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x05, 0x66, 0x6c,
|
|
0x6f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x05, 0x66, 0x6c, 0x6f,
|
|
0x61, 0x74, 0x12, 0x1a, 0x0a, 0x07, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x18, 0x04, 0x20,
|
|
0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x07, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x12, 0x14,
|
|
0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04,
|
|
0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x48, 0x0a, 0x05, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x06, 0x20,
|
|
0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73,
|
|
0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f,
|
|
0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x72, 0x72, 0x61, 0x79,
|
|
0x49, 0x6e, 0x70, 0x75, 0x74, 0x48, 0x00, 0x52, 0x05, 0x61, 0x72, 0x72, 0x61, 0x79, 0x12, 0x42,
|
|
0x0a, 0x03, 0x6d, 0x61, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x65,
|
|
0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51,
|
|
0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
0x73, 0x74, 0x2e, 0x4d, 0x61, 0x70, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x48, 0x00, 0x52, 0x03, 0x6d,
|
|
0x61, 0x70, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x69, 0x0a, 0x0d, 0x4b,
|
|
0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x12, 0x10, 0x0a, 0x03,
|
|
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x46,
|
|
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e,
|
|
0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31,
|
|
0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71,
|
|
0x75, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x52,
|
|
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x99, 0x01, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79,
|
|
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
0x38, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
|
0x32, 0x18, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79,
|
|
0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00,
|
|
0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67,
|
|
0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e,
|
|
0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72,
|
|
0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65,
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
|
|
0x6f, 0x6e, 0x22, 0x28, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72,
|
|
0x64, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
|
|
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x51, 0x0a, 0x17,
|
|
0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x79, 0x49, 0x64, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x72, 0x65, 0x63, 0x6f, 0x72,
|
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72,
|
|
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72,
|
|
0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22,
|
|
0x75, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x42,
|
|
0x79, 0x42, 0x6f, 0x6e, 0x64, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e,
|
|
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x46,
|
|
0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65,
|
|
0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50,
|
|
0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69,
|
|
0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa1, 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79,
|
|
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x42, 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x49, 0x64, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72,
|
|
0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e,
|
|
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f,
|
|
0x72, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64,
|
|
0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
|
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62,
|
|
0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
|
|
0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a,
|
|
0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x61, 0x0a, 0x17, 0x51, 0x75,
|
|
0x65, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65,
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74,
|
|
0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d,
|
|
0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31,
|
|
0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9c, 0x01,
|
|
0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72,
|
|
0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x6e, 0x61,
|
|
0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x65, 0x72, 0x63,
|
|
0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x61, 0x6d,
|
|
0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x05, 0x6e, 0x61,
|
|
0x6d, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f,
|
|
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73,
|
|
0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65,
|
|
0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x27, 0x0a, 0x11,
|
|
0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x68, 0x6f, 0x69, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57,
|
|
0x68, 0x6f, 0x69, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x0e,
|
|
0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01,
|
|
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, 0x42, 0x33, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x2b, 0x6a,
|
|
0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72,
|
|
0x69, 0x74, 0x79, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x5f,
|
|
0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x52, 0x0d, 0x6e, 0x61, 0x6d, 0x65,
|
|
0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x22, 0x29, 0x0a, 0x15, 0x51, 0x75, 0x65,
|
|
0x72, 0x79, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x43, 0x72, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x03, 0x63, 0x72, 0x6e, 0x22, 0x4a, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x6f,
|
|
0x6b, 0x75, 0x70, 0x43, 0x72, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30,
|
|
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 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, 0x04, 0x6e, 0x61, 0x6d, 0x65,
|
|
0x22, 0x2a, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65,
|
|
0x43, 0x72, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x72,
|
|
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x72, 0x6e, 0x22, 0x4b, 0x0a, 0x17,
|
|
0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x72, 0x6e, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x72, 0x65, 0x63, 0x6f, 0x72,
|
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72,
|
|
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72,
|
|
0x64, 0x52, 0x06, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x26, 0x0a, 0x24, 0x51, 0x75, 0x65,
|
|
0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x4d, 0x6f, 0x64,
|
|
0x75, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
0x74, 0x22, 0x65, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x67,
|
|
0x69, 0x73, 0x74, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e,
|
|
0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x08, 0x62, 0x61,
|
|
0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63,
|
|
0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e,
|
|
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08,
|
|
0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0xe9, 0x01, 0x0a, 0x0e, 0x41, 0x63, 0x63,
|
|
0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x4e, 0x0a, 0x0c, 0x61,
|
|
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x09, 0x42, 0x2b, 0xf2, 0xde, 0x1f, 0x27, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x61, 0x63, 0x63,
|
|
0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a,
|
|
0x22, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x52, 0x0b,
|
|
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x07,
|
|
0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x03, 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, 0x1d, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x22, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22,
|
|
0x20, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xaa,
|
|
0xdf, 0x1f, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f,
|
|
0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f,
|
|
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x07, 0x62, 0x61, 0x6c,
|
|
0x61, 0x6e, 0x63, 0x65, 0x32, 0xf0, 0x09, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x77,
|
|
0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x24, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e,
|
|
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72,
|
|
0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25,
|
|
0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76,
|
|
0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73,
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f,
|
|
0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31,
|
|
0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x7b, 0x0a, 0x07, 0x52, 0x65, 0x63, 0x6f, 0x72,
|
|
0x64, 0x73, 0x12, 0x25, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
|
|
0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72,
|
|
0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x65, 0x72, 0x63,
|
|
0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65,
|
|
0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x63, 0x65, 0x72, 0x63,
|
|
0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x63,
|
|
0x6f, 0x72, 0x64, 0x73, 0x12, 0x88, 0x01, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f,
|
|
0x72, 0x64, 0x12, 0x28, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
|
|
0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72,
|
|
0x64, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63,
|
|
0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e,
|
|
0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x79, 0x49, 0x64, 0x52,
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12,
|
|
0x1e, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f,
|
|
0x76, 0x31, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12,
|
|
0xa6, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x42, 0x79,
|
|
0x42, 0x6f, 0x6e, 0x64, 0x49, 0x64, 0x12, 0x2d, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65,
|
|
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52,
|
|
0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x42, 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x49, 0x64, 0x52, 0x65,
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67,
|
|
0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65,
|
|
0x63, 0x6f, 0x72, 0x64, 0x73, 0x42, 0x79, 0x42, 0x6f, 0x6e, 0x64, 0x49, 0x64, 0x52, 0x65, 0x73,
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f,
|
|
0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31,
|
|
0x2f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x62, 0x6f, 0x6e, 0x64,
|
|
0x2d, 0x69, 0x64, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x85, 0x01, 0x0a, 0x0b, 0x4e, 0x61, 0x6d,
|
|
0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x29, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e,
|
|
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72,
|
|
0x79, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73,
|
|
0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65,
|
|
0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
|
|
0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72,
|
|
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73,
|
|
0x12, 0x7a, 0x0a, 0x05, 0x57, 0x68, 0x6f, 0x69, 0x73, 0x12, 0x23, 0x2e, 0x63, 0x65, 0x72, 0x63,
|
|
0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65,
|
|
0x72, 0x79, 0x57, 0x68, 0x6f, 0x69, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24,
|
|
0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76,
|
|
0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x68, 0x6f, 0x69, 0x73, 0x52, 0x65, 0x73, 0x70,
|
|
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x63,
|
|
0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f,
|
|
0x77, 0x68, 0x6f, 0x69, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x80, 0x01, 0x0a,
|
|
0x09, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x43, 0x72, 0x6e, 0x12, 0x27, 0x2e, 0x63, 0x65, 0x72,
|
|
0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75,
|
|
0x65, 0x72, 0x79, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x43, 0x72, 0x6e, 0x52, 0x65, 0x71, 0x75,
|
|
0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73,
|
|
0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x6f, 0x6b,
|
|
0x75, 0x70, 0x43, 0x72, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82,
|
|
0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x63, 0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67,
|
|
0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x12,
|
|
0x84, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x72, 0x6e, 0x12, 0x28,
|
|
0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76,
|
|
0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x72,
|
|
0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e,
|
|
0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72,
|
|
0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x43, 0x72, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x63, 0x65,
|
|
0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x72,
|
|
0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x12, 0xae, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x65,
|
|
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61,
|
|
0x6e, 0x63, 0x65, 0x12, 0x36, 0x2e, 0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73,
|
|
0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52,
|
|
0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x61, 0x6c,
|
|
0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x65,
|
|
0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x51,
|
|
0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x4d,
|
|
0x6f, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70,
|
|
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x63,
|
|
0x65, 0x72, 0x63, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f,
|
|
0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e,
|
|
0x63, 0x65, 0x72, 0x63, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2e, 0x76, 0x31,
|
|
0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c,
|
|
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, 0x32, 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_query_proto_rawDescOnce sync.Once
|
|
file_cerc_registry_v1_query_proto_rawDescData = file_cerc_registry_v1_query_proto_rawDesc
|
|
)
|
|
|
|
func file_cerc_registry_v1_query_proto_rawDescGZIP() []byte {
|
|
file_cerc_registry_v1_query_proto_rawDescOnce.Do(func() {
|
|
file_cerc_registry_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_cerc_registry_v1_query_proto_rawDescData)
|
|
})
|
|
return file_cerc_registry_v1_query_proto_rawDescData
|
|
}
|
|
|
|
var file_cerc_registry_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
|
|
var file_cerc_registry_v1_query_proto_goTypes = []interface{}{
|
|
(*QueryParamsRequest)(nil), // 0: cerc.registry.v1.QueryParamsRequest
|
|
(*QueryParamsResponse)(nil), // 1: cerc.registry.v1.QueryParamsResponse
|
|
(*QueryRecordsRequest)(nil), // 2: cerc.registry.v1.QueryRecordsRequest
|
|
(*QueryRecordsResponse)(nil), // 3: cerc.registry.v1.QueryRecordsResponse
|
|
(*QueryRecordByIdRequest)(nil), // 4: cerc.registry.v1.QueryRecordByIdRequest
|
|
(*QueryRecordByIdResponse)(nil), // 5: cerc.registry.v1.QueryRecordByIdResponse
|
|
(*QueryRecordsByBondIdRequest)(nil), // 6: cerc.registry.v1.QueryRecordsByBondIdRequest
|
|
(*QueryRecordsByBondIdResponse)(nil), // 7: cerc.registry.v1.QueryRecordsByBondIdResponse
|
|
(*QueryNameRecordsRequest)(nil), // 8: cerc.registry.v1.QueryNameRecordsRequest
|
|
(*QueryNameRecordsResponse)(nil), // 9: cerc.registry.v1.QueryNameRecordsResponse
|
|
(*QueryWhoisRequest)(nil), // 10: cerc.registry.v1.QueryWhoisRequest
|
|
(*QueryWhoisResponse)(nil), // 11: cerc.registry.v1.QueryWhoisResponse
|
|
(*QueryLookupCrnRequest)(nil), // 12: cerc.registry.v1.QueryLookupCrnRequest
|
|
(*QueryLookupCrnResponse)(nil), // 13: cerc.registry.v1.QueryLookupCrnResponse
|
|
(*QueryResolveCrnRequest)(nil), // 14: cerc.registry.v1.QueryResolveCrnRequest
|
|
(*QueryResolveCrnResponse)(nil), // 15: cerc.registry.v1.QueryResolveCrnResponse
|
|
(*QueryGetRegistryModuleBalanceRequest)(nil), // 16: cerc.registry.v1.QueryGetRegistryModuleBalanceRequest
|
|
(*QueryGetRegistryModuleBalanceResponse)(nil), // 17: cerc.registry.v1.QueryGetRegistryModuleBalanceResponse
|
|
(*AccountBalance)(nil), // 18: cerc.registry.v1.AccountBalance
|
|
(*QueryRecordsRequest_ArrayInput)(nil), // 19: cerc.registry.v1.QueryRecordsRequest.ArrayInput
|
|
(*QueryRecordsRequest_MapInput)(nil), // 20: cerc.registry.v1.QueryRecordsRequest.MapInput
|
|
(*QueryRecordsRequest_ValueInput)(nil), // 21: cerc.registry.v1.QueryRecordsRequest.ValueInput
|
|
(*QueryRecordsRequest_KeyValueInput)(nil), // 22: cerc.registry.v1.QueryRecordsRequest.KeyValueInput
|
|
nil, // 23: cerc.registry.v1.QueryRecordsRequest.MapInput.ValuesEntry
|
|
(*Params)(nil), // 24: cerc.registry.v1.Params
|
|
(*v1beta1.PageRequest)(nil), // 25: cosmos.base.query.v1beta1.PageRequest
|
|
(*Record)(nil), // 26: cerc.registry.v1.Record
|
|
(*v1beta1.PageResponse)(nil), // 27: cosmos.base.query.v1beta1.PageResponse
|
|
(*NameEntry)(nil), // 28: cerc.registry.v1.NameEntry
|
|
(*NameAuthority)(nil), // 29: cerc.registry.v1.NameAuthority
|
|
(*NameRecord)(nil), // 30: cerc.registry.v1.NameRecord
|
|
(*v1beta11.Coin)(nil), // 31: cosmos.base.v1beta1.Coin
|
|
}
|
|
var file_cerc_registry_v1_query_proto_depIdxs = []int32{
|
|
24, // 0: cerc.registry.v1.QueryParamsResponse.params:type_name -> cerc.registry.v1.Params
|
|
22, // 1: cerc.registry.v1.QueryRecordsRequest.attributes:type_name -> cerc.registry.v1.QueryRecordsRequest.KeyValueInput
|
|
25, // 2: cerc.registry.v1.QueryRecordsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
|
26, // 3: cerc.registry.v1.QueryRecordsResponse.records:type_name -> cerc.registry.v1.Record
|
|
27, // 4: cerc.registry.v1.QueryRecordsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
|
26, // 5: cerc.registry.v1.QueryRecordByIdResponse.record:type_name -> cerc.registry.v1.Record
|
|
25, // 6: cerc.registry.v1.QueryRecordsByBondIdRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
|
26, // 7: cerc.registry.v1.QueryRecordsByBondIdResponse.records:type_name -> cerc.registry.v1.Record
|
|
27, // 8: cerc.registry.v1.QueryRecordsByBondIdResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
|
25, // 9: cerc.registry.v1.QueryNameRecordsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest
|
|
28, // 10: cerc.registry.v1.QueryNameRecordsResponse.names:type_name -> cerc.registry.v1.NameEntry
|
|
27, // 11: cerc.registry.v1.QueryNameRecordsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse
|
|
29, // 12: cerc.registry.v1.QueryWhoisResponse.name_authority:type_name -> cerc.registry.v1.NameAuthority
|
|
30, // 13: cerc.registry.v1.QueryLookupCrnResponse.name:type_name -> cerc.registry.v1.NameRecord
|
|
26, // 14: cerc.registry.v1.QueryResolveCrnResponse.record:type_name -> cerc.registry.v1.Record
|
|
18, // 15: cerc.registry.v1.QueryGetRegistryModuleBalanceResponse.balances:type_name -> cerc.registry.v1.AccountBalance
|
|
31, // 16: cerc.registry.v1.AccountBalance.balance:type_name -> cosmos.base.v1beta1.Coin
|
|
21, // 17: cerc.registry.v1.QueryRecordsRequest.ArrayInput.values:type_name -> cerc.registry.v1.QueryRecordsRequest.ValueInput
|
|
23, // 18: cerc.registry.v1.QueryRecordsRequest.MapInput.values:type_name -> cerc.registry.v1.QueryRecordsRequest.MapInput.ValuesEntry
|
|
19, // 19: cerc.registry.v1.QueryRecordsRequest.ValueInput.array:type_name -> cerc.registry.v1.QueryRecordsRequest.ArrayInput
|
|
20, // 20: cerc.registry.v1.QueryRecordsRequest.ValueInput.map:type_name -> cerc.registry.v1.QueryRecordsRequest.MapInput
|
|
21, // 21: cerc.registry.v1.QueryRecordsRequest.KeyValueInput.value:type_name -> cerc.registry.v1.QueryRecordsRequest.ValueInput
|
|
21, // 22: cerc.registry.v1.QueryRecordsRequest.MapInput.ValuesEntry.value:type_name -> cerc.registry.v1.QueryRecordsRequest.ValueInput
|
|
0, // 23: cerc.registry.v1.Query.Params:input_type -> cerc.registry.v1.QueryParamsRequest
|
|
2, // 24: cerc.registry.v1.Query.Records:input_type -> cerc.registry.v1.QueryRecordsRequest
|
|
4, // 25: cerc.registry.v1.Query.GetRecord:input_type -> cerc.registry.v1.QueryRecordByIdRequest
|
|
6, // 26: cerc.registry.v1.Query.GetRecordsByBondId:input_type -> cerc.registry.v1.QueryRecordsByBondIdRequest
|
|
8, // 27: cerc.registry.v1.Query.NameRecords:input_type -> cerc.registry.v1.QueryNameRecordsRequest
|
|
10, // 28: cerc.registry.v1.Query.Whois:input_type -> cerc.registry.v1.QueryWhoisRequest
|
|
12, // 29: cerc.registry.v1.Query.LookupCrn:input_type -> cerc.registry.v1.QueryLookupCrnRequest
|
|
14, // 30: cerc.registry.v1.Query.ResolveCrn:input_type -> cerc.registry.v1.QueryResolveCrnRequest
|
|
16, // 31: cerc.registry.v1.Query.GetRegistryModuleBalance:input_type -> cerc.registry.v1.QueryGetRegistryModuleBalanceRequest
|
|
1, // 32: cerc.registry.v1.Query.Params:output_type -> cerc.registry.v1.QueryParamsResponse
|
|
3, // 33: cerc.registry.v1.Query.Records:output_type -> cerc.registry.v1.QueryRecordsResponse
|
|
5, // 34: cerc.registry.v1.Query.GetRecord:output_type -> cerc.registry.v1.QueryRecordByIdResponse
|
|
7, // 35: cerc.registry.v1.Query.GetRecordsByBondId:output_type -> cerc.registry.v1.QueryRecordsByBondIdResponse
|
|
9, // 36: cerc.registry.v1.Query.NameRecords:output_type -> cerc.registry.v1.QueryNameRecordsResponse
|
|
11, // 37: cerc.registry.v1.Query.Whois:output_type -> cerc.registry.v1.QueryWhoisResponse
|
|
13, // 38: cerc.registry.v1.Query.LookupCrn:output_type -> cerc.registry.v1.QueryLookupCrnResponse
|
|
15, // 39: cerc.registry.v1.Query.ResolveCrn:output_type -> cerc.registry.v1.QueryResolveCrnResponse
|
|
17, // 40: cerc.registry.v1.Query.GetRegistryModuleBalance:output_type -> cerc.registry.v1.QueryGetRegistryModuleBalanceResponse
|
|
32, // [32:41] is the sub-list for method output_type
|
|
23, // [23:32] is the sub-list for method input_type
|
|
23, // [23:23] is the sub-list for extension type_name
|
|
23, // [23:23] is the sub-list for extension extendee
|
|
0, // [0:23] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_cerc_registry_v1_query_proto_init() }
|
|
func file_cerc_registry_v1_query_proto_init() {
|
|
if File_cerc_registry_v1_query_proto != nil {
|
|
return
|
|
}
|
|
file_cerc_registry_v1_registry_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_cerc_registry_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryParamsRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryParamsResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryRecordsRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryRecordsResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryRecordByIdRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryRecordByIdResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryRecordsByBondIdRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryRecordsByBondIdResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryNameRecordsRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryNameRecordsResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryWhoisRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryWhoisResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryLookupCrnRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryLookupCrnResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryResolveCrnRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryResolveCrnResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryGetRegistryModuleBalanceRequest); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryGetRegistryModuleBalanceResponse); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*AccountBalance); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryRecordsRequest_ArrayInput); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryRecordsRequest_MapInput); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryRecordsRequest_ValueInput); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*QueryRecordsRequest_KeyValueInput); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
file_cerc_registry_v1_query_proto_msgTypes[21].OneofWrappers = []interface{}{
|
|
(*QueryRecordsRequest_ValueInput_String_)(nil),
|
|
(*QueryRecordsRequest_ValueInput_Int)(nil),
|
|
(*QueryRecordsRequest_ValueInput_Float)(nil),
|
|
(*QueryRecordsRequest_ValueInput_Boolean)(nil),
|
|
(*QueryRecordsRequest_ValueInput_Link)(nil),
|
|
(*QueryRecordsRequest_ValueInput_Array)(nil),
|
|
(*QueryRecordsRequest_ValueInput_Map)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_cerc_registry_v1_query_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 24,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_cerc_registry_v1_query_proto_goTypes,
|
|
DependencyIndexes: file_cerc_registry_v1_query_proto_depIdxs,
|
|
MessageInfos: file_cerc_registry_v1_query_proto_msgTypes,
|
|
}.Build()
|
|
File_cerc_registry_v1_query_proto = out.File
|
|
file_cerc_registry_v1_query_proto_rawDesc = nil
|
|
file_cerc_registry_v1_query_proto_goTypes = nil
|
|
file_cerc_registry_v1_query_proto_depIdxs = nil
|
|
}
|